c++: apply friend attributes sooner
[official-gcc.git] / libgomp / ChangeLog
blobd61a80610ab71a0e6da2e5c07aedc69cf3fdea6b
1 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
3         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
4         'ptx_dev->rev_data'.
6 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
8         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
9         'static' for this variable.
10         * config/nvptx/libgomp-nvptx.h: New file.
11         * config/nvptx/target.c: Include it.
12         (GOMP_ADDITIONAL_ICVS): Declare extern var.
13         (GOMP_REV_OFFLOAD_VAR): Declare var.
14         (GOMP_target_ext): Handle reverse offload.
15         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
16         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
17         * target.c (gomp_target_rev): ... this new stub function.
18         * libgomp.h (gomp_target_rev): Declare.
19         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
20         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
21         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
22         (struct ptx_device): Add rev_data member.
23         (nvptx_open_device): Remove async_engines query, last used in
24         r10-304-g1f4c5b9b; add unified-address assert check.
25         (GOMP_OFFLOAD_get_num_devices): Claim unified address
26         support.
27         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
28         offload functions exist. Make offload var available
29         on host and device.
30         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
31         (GOMP_OFFLOAD_run): Handle reverse offload.
33 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
35         PR tree-optimization/107195
36         PR target/107344
37         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
38         regions checking.
40 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
42         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
43         New.
44         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
45         on_device_arch_gcn): New.
46         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
47         requires-4.c but using heap-allocated memory.
49 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
51         PR target/105421
52         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
54 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
56         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
57         '-foffload-options' syntax.
59 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
61         * testsuite/libgomp.fortran/task-7.f90: New test.
62         * testsuite/libgomp.fortran/task-8.f90: New test.
63         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
64         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
65         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
66         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
67         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
69 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
71         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
72         in deprecation bullet.
74 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
76         * omp.h.in (omp_in_explicit_task): Declare.
77         * omp_lib.h.in (omp_in_explicit_task): Likewise.
78         * omp_lib.f90.in (omp_in_explicit_task): New interface.
79         * libgomp.map (OMP_5.2): New symbol version, export
80         omp_in_explicit_task and omp_in_explicit_task_.
81         * task.c (omp_in_explicit_task): New function.
82         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
83         (omp_in_explicit_task_): New function.
84         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
85         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
86         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
87         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
89 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
91         * task.c (gomp_create_artificial_team): Fix up handling of invocations
92         from within explicit task.
93         * target.c (GOMP_target_ext): Likewise.
94         * testsuite/libgomp.c/task-7.c: New test.
95         * testsuite/libgomp.c/task-8.c: New test.
96         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
97         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
99 2022-10-12  Martin Liska  <mliska@suse.cz>
101         * configure: Regenerate.
103 2022-10-11  Olivier Hainque  <hainque@adacore.com>
104             Olivier Hainque  <hainque@adacore.com>
106         * configure: Regenerate.
108 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
110         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
112 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
114         * libgomp.texi (Support begin/end declare target syntax in C/C++):
115         Mark as implemented.
117 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
119         PR fortran/105318
120         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
122 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
124         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
125         for C/C++. Remove duplicated 'begin declare target' entry.
127 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
129         PR c/106981
130         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
132 2022-09-14  Julian Brown  <julian@codesourcery.com>
134         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
135         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
136         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
137         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
138         test to here, make "run" test.
140 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
142         PR libgomp/106906
143         * env.c (get_icv_member_addr): Cast false to void * before assigning
144         it to icv_addr[1], and comment the whole assignment out.
146 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
148         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
149         (nvptx): ... here.
151 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
153         * libgomp.texi (Offload-Target Specifics: nvptx): Document
154         that reverse offload requires >= -march=sm_35.
155         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
156         with -misa=sm_35.
157         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
158         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
159         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
160         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
161         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
163 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
165         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
166         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
168 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
170         PR libgomp/106894
171         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
172         (main): Avoid tests for which corresponding non-_ALL suffixed variable
173         is in the environment, or for OMP_NUM_TEAMS on the device
174         OMP_NUM_TEAMS_DEV_?.
176 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
178         * env.c (initialize_env): Include libiberty environ.h.
180 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
182         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
183         function address table '$offload_func_table' if rev_fn_table
184         is not NULL.
186 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
188         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
189         .offload_func_table to populate rev_fn_table when requested.
191 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
193         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
194         'uint64_t **rev_fn_table' argument.
195         * oacc-host.c (host_load_image): Likewise.
196         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
197         currently unused.
198         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
199         * target.c (gomp_load_image_to_device): Update call but pass
200         NULL for now.
202 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
204         PR libgomp/106894
205         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
206         char * for dest[1] initialization from params[1].  Formatting fixes.
208 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
210         PR fortran/106670
211         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
213 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
215         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
216         section; move OpenMP Context Selectors from ...
217         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
218         'nvptx' sections.
220 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
222         * config/gcn/icv-device.c (omp_get_default_device): Return device-
223         specific ICV.
224         (omp_get_max_teams): Added for GCN devices.
225         (omp_set_num_teams): Likewise.
226         (ialias): Likewise.
227         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
228         specific ICV.
229         (omp_get_max_teams): Added for NVPTX devices.
230         (omp_set_num_teams): Likewise.
231         (ialias): Likewise.
232         * env.c (struct gomp_icv_list): New struct to store entries of initial
233         ICV values.
234         (struct gomp_offload_icv_list): New struct to store entries of device-
235         specific ICV values that are copied to the device and back.
236         (struct gomp_default_icv_values): New struct to store default values of
237         ICVs according to the OpenMP standard.
238         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
239         (print_env_var_error): Function that prints an error for invalid values
240         for ICVs.
241         (parse_unsigned_long_1): Removed getenv.  Generalized.
242         (parse_unsigned_long): Likewise.
243         (parse_int_1): Likewise.
244         (parse_int): Likewise.
245         (parse_int_secure): Likewise.
246         (parse_unsigned_long_list): Likewise.
247         (parse_target_offload): Likewise.
248         (parse_bind_var): Likewise.
249         (parse_stacksize): Likewise.
250         (parse_boolean): Likewise.
251         (parse_wait_policy): Likewise.
252         (parse_allocator): Likewise.
253         (omp_display_env): Extended to output different variants of environment
254         variables.
255         (print_schedule): New helper function for omp_display_env which prints
256         the values of run_sched_var.
257         (print_proc_bind): New helper function for omp_display_env which prints
258         the values of proc_bind_var.
259         (enum gomp_parse_type): Collection of types used for parsing environment
260         variables.
261         (ENTRY): Preprocess string lengths of environment variables.
262         (OMP_VAR_CNT): Preprocess table size.
263         (OMP_HOST_VAR_CNT): Likewise.
264         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
265         number.
266         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
267         (gomp_set_icv_flag): Sets a flag for a particular ICV.
268         (print_device_specific_icvs): New helper function for omp_display_env to
269         print device specific ICV values.
270         (get_device_num): New helper function for parse_device_specific.
271         Extracts the device number from an environment variable name.
272         (get_icv_member_addr): Gets the memory address for a particular member
273         of an ICV struct.
274         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
275         (initialize_icvs): New function to initialize a gomp_initial_icvs
276         struct.
277         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
278         (startswith): Checks if a string starts with a given prefix.
279         (initialize_env): Extended to parse the new syntax of environment
280         variables.
281         * icv-device.c (omp_get_max_teams): Added.
282         (ialias): Likewise.
283         (omp_set_num_teams): Likewise.
284         * icv.c (omp_set_num_teams): Moved to icv-device.c.
285         (omp_get_max_teams): Likewise.
286         (ialias): Likewise.
287         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
288         (GOMP_ADDITIONAL_ICVS): New target-side struct that
289         holds the designated ICVs of the target device.
290         * libgomp.h (enum gomp_icvs): Collection of ICVs.
291         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
292         no suffix.
293         (enum gomp_env_suffix): Collection of possible suffixes of environment
294         variables.
295         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
296         initial values.
297         (struct gomp_default_icv):New struct to hold ICVs for which we need
298         to store initial values.
299         (struct gomp_icv_list): Definition of a linked list that is used for
300         storing ICVs for the devices and also for _DEV, _ALL, and without
301         suffix.
302         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
303         a device.
304         (struct gomp_offload_icv_list): Definition of a linked list that holds
305         device-specific ICVs that are copied to devices.
306         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
307         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
308         * libgomp.texi: Updated.
309         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
310         further ICVs from the offload image.
311         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
312         * target.c (gomp_get_offload_icv_item): Get a list item of
313         gomp_offload_icv_list.
314         (get_gomp_offload_icvs): New. Returns the ICV values
315         depending on the device num and the variable hierarchy.
316         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
317         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
318         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
319         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
320         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
321         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
322         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
324 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
326         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
327         fully supported.
328         * testsuite/libgomp.c/doacross-4.c: New test.
329         * testsuite/libgomp.c/doacross-5.c: New test.
330         * testsuite/libgomp.c/doacross-6.c: New test.
331         * testsuite/libgomp.c/doacross-7.c: New test.
333 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
335         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
337 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
339         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
340         refer to 'requires'.
341         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
342         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
343         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
344         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
346 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
348         PR middle-end/106548
349         * testsuite/libgomp.c/linear-2.c: New test.
351 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
353         * splay-tree.h: Fix splay_* macro unsetting if
354         splay_tree_prefix is defined.
356 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
358         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
360 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
362         PR middle-end/106449
363         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
365 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
367         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
369 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
371         PR middle-end/101551
372         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
373         'offloading_enabled' diagnostics issue.
375 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
377         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
378         '_Pragma' diagnostics verification.
380 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
382         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
383         improved warning locations.
384         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
386 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
388         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
389         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
390         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
391         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
392         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
394 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
396         * target.c (GOMP_offload_register, GOMP_offload_unregister):
397         Denote as legacy entry points.
398         * testsuite/lib/libgomp.exp
399         (check_effective_target_offload_target_any): New proc.
400         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
401         'offload_target_any'.
402         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
403         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
404         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
406 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
408         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
409         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
411 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
413         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
415 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
417         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
418         'data'.
419         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
421 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
422             Jakub Jelinek  <jakub@redhat.com>
424         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
426 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
427             Chung-Lin Tang  <cltang@codesourcery.com>
428             Thomas Schwinge  <thomas@codesourcery.com>
430         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
431         omp_requires_mask arg.
432         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
433         return -1 when device available but omp_requires_mask != 0.
434         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
435         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
436         Update call.
437         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
438         goacc_attach_host_thread_to_device, acc_get_num_devices,
439         acc_set_device_num, get_property_any): Likewise.
440         * target.c (omp_requires_mask): New global var.
441         (gomp_requires_to_name): New.
442         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
443         (gomp_target_init): Handle omp_requires_mask.
444         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
445         (OpenMP 5.1): Add a missed item.
446         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
447         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
448         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
449         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
450         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
451         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
452         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
453         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
454         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
455         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
456         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
457         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
458         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
459         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
460         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
461         * testsuite/libgomp.fortran/requires-1.f90: New test.
463 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
465         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
466         with fromto as implemented.
468 2022-06-28  Martin Liska  <mliska@suse.cz>
470         * acinclude.m4: Fix typo in mold linker detection.
471         * Makefile.in: Regenerate.
472         * configure: Regenerate.
474 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
475             Paul Iannetta  <piannetta@kalrayinc.com>
477         PR libgomp/106045
478         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
480 2022-06-17  Martin Liska  <mliska@suse.cz>
482         * libgomp.texi: Add table header for new features of
483         OpenMP 5.2.
485 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
487         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
488         q to ddress of an automatic variable.  Use -5 instead of -1 in
489         omp_get_mapped_ptr call.  Add test with omp_initial_device.
490         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
491         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
492         Renumber stop arguments afterwards.
494 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
496         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
497         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
498         parameters.
499         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
500         * target.c (resolve_device): Add remapped argument, handle
501         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
502         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
503         if remapped, otherwise treat omp_initial_device that way.  For
504         omp_invalid_device, always emit gomp_fatal, even when
505         OMP_TARGET_OFFLOAD isn't mandatory.
506         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
507         GOMP_target_update, GOMP_target_update_ext,
508         GOMP_target_enter_exit_data): Pass true as remapped argument to
509         resolve_device.
510         (omp_target_alloc, omp_target_free, omp_target_is_present,
511         omp_target_memcpy_check, omp_target_associate_ptr,
512         omp_target_disassociate_ptr, omp_get_mapped_ptr,
513         omp_target_is_accessible): Pass false as remapped argument to
514         resolve_device.  Treat omp_initial_device the same as
515         gomp_get_num_devices ().  Don't bypass resolve_device calls if
516         device_num is negative.
517         (omp_pause_resource): Treat omp_initial_device the same as
518         gomp_get_num_devices ().  Call resolve_device.
519         * icv-device.c (omp_set_default_device): Always set to device_num
520         even when it is negative.
521         * libgomp.texi: Document that Conforming device numbers,
522         omp_initial_device and omp_invalid_device is implemented.
523         * testsuite/libgomp.c/target-41.c (main): Add test with
524         omp_initial_device.
525         * testsuite/libgomp.c/target-45.c: New test.
526         * testsuite/libgomp.c/target-46.c: New test.
527         * testsuite/libgomp.c/target-47.c: New test.
528         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
529         test with omp_initial_device.  Use -5 instead of -1 for negative value
530         test.
531         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
532         Likewise.  Reorder stop numbers.
534 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
536         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
537         rather than "libmemkind.so".
539 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
541         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
542         * plugin/configfrag.ac (--with-cuda-driver)
543         (--with-cuda-driver-include, --with-cuda-driver-lib)
544         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
545         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
546         Remove.
547         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
548         (cuda_driver_lib): Remove.
549         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
550         * Makefile.in: Regenerate.
551         * configure: Likewise.
552         * testsuite/Makefile.in: Likewise.
554 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
556         * config/linux/allocator.c: Fix up #include directive.
558 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
560         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
561         (enum gomp_memkind_kind): New type.
562         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
563         is defined.
564         (struct gomp_memkind_data): New type.
565         (memkind_data, memkind_data_once): New variables.
566         (gomp_init_memkind, gomp_get_memkind): New functions.
567         (omp_init_allocator): Initialize data.memkind, don't fail for
568         omp_high_bw_mem_space if libmemkind supports it.
569         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
570         memkind support of LIBGOMP_USE_MEMKIND is defined.
571         * config/linux/allocator.c: New file.
573 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
575         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
576         * testsuite/libgomp.fortran/scope-2.f90: New test.
578 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
580         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
582 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
584         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
585         scope construct with allocate clause.
586         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
587         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
589 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
591         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
592         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
593         explicit 'to' and 'enter' clause.
594         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
596 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
598         PR libgomp/105745
599         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
600         defined(HAVE__ALIGNED_MALLOC) case.
601         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
602         handling as last option before fallback instead of first.
603         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
604         _aligned_free.
606 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
608         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
609         clauses to enter.
610         * testsuite/libgomp.c/target-41.c: Likewise.
612 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
614         * libgomp.texi (Other new OpenMP 5.1 features): Add
615         'begin declare target'.
616         (Other new OpenMP 5.2 features): New.
618 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
620         * task.c (gomp_task_run_post_handle_dependers): If empty_task
621         is the last task taskwait depend depends on, wake it up.
622         Similarly if it is the last child of a taskgroup, use atomic
623         store instead of decrement and awak taskgroup wait if any.
624         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
626 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
628         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
629         EF_AMDGPU_MACH_AMDGCN_GFX90a.
630         (gcn_gfx90a_s): New.
631         (isa_hsa_name): Support gfx90a.
632         (isa_code): Likewise.
634 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
636         PR c/105378
637         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
638         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
640 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
642         PR c/105378
643         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
644         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
645         * task.c (empty_task): New function.
646         (gomp_task_run_post_handle_depend_hash): Declare earlier.
647         (gomp_task_run_post_handle_depend): Declare.
648         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
649         for.
650         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
651         (GOMP_taskwait_depend_nowait): New function.
652         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
654 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
656         PR fortran/104949
657         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
658         Support attach for GOMP_MAP_FIRSTPRIVATE.
659         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
660         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
661         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
663 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
665         * libgomp.map: Added omp_target_memcpy_async and
666         omp_target_memcpy_rect_async.
667         * libgomp.texi: Both functions are now supported.
668         * omp.h.in: Added omp_target_memcpy_async and
669         omp_target_memcpy_rect_async.
670         * omp_lib.f90.in: Added interfaces for both new functions.
671         * omp_lib.h.in: Likewise.
672         * target.c (ialias_redirect): Added for GOMP_task.
673         (omp_target_memcpy): Restructured into check and copy part.
674         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
675         omp_target_memcpy_async that checks requirements.
676         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
677         omp_target_memcpy_async that performs the memcpy.
678         (omp_target_memcpy_async_helper): New helper function that is used in
679         omp_target_memcpy_async for the asynchronous task.
680         (omp_target_memcpy_async): Added.
681         (omp_target_memcpy_rect): Restructured into check and copy part.
682         (omp_target_memcpy_rect_check): New helper function for
683         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
684         requirements.
685         (omp_target_memcpy_rect_copy): New helper function for
686         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
687         the memcpy.
688         (omp_target_memcpy_rect_async_helper): New helper function that is used
689         in omp_target_memcpy_rect_async for the asynchronous task.
690         (omp_target_memcpy_rect_async): Added.
691         * task.c (ialias): Added for GOMP_task.
692         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
693         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
694         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
695         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
696         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
697         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
698         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
699         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
701 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
703         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
704         (OpenMP Context Selectors): Add missing comma.
705         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
706         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
707         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
708         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
710 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
712         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
713         comment for omp_display_env feature.
715 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
717         * libgomp.texi (Offload-Target Specifics): New chapter; add section
718         to document OpenMP context selectors.
720 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
722         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
723         from bool to unsigned char.
724         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
725         Ignore dependencies where
726         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
727         rather than just task->depend[i].is_in && ent->is_in.  Remember
728         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
729         conditional.
730         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
731         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
732         rather than just elem.is_in && ent->is_in.
733         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
734         inoutset depend-kind.
735         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
736         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
737         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
739 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
741         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
743 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
745         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
746         * testsuite/libgomp.fortran/depend-5.f90: New test.
747         * testsuite/libgomp.fortran/depend-6.f90: New test.
748         * testsuite/libgomp.fortran/depend-7.f90: New test.
750 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
752         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
753         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
754         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
756 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
758         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
760 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
762         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
764 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
766         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
767         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
768         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
769         append '$(PLUGIN_NVPTX_LDFLAGS)'.
770         * Makefile.in: Regenerate.
772 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
774         * Makefile.am (libgomp_la_LIBADD): Initialize.
775         * plugin/configfrag.ac (DL_LIBS): New.
776         (PLUGIN_GCN_LIBS): Remove.
777         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
778         * plugin/Makefrag.am (libgomp_la_LIBADD)
779         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
780         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
781         * Makefile.in: Regenerate.
782         * config.h.in: Likewise.
783         * configure: Likewise.
784         * testsuite/Makefile.in: Likewise.
786 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
788         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
789         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
790         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
791         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
792         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
793         'PLUGIN_NVPTX_LINK_LIBCUDA'.
794         * Makefile.in: Regenerate.
795         * config.h.in: Likewise.
796         * configure: Likewise.
798 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
800         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
801         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
802         * Makefile.in: Regenerate.
803         * config.h.in: Likewise.
804         * configure: Likewise.
805         * testsuite/Makefile.in: Likewise.
807 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
809         * libgomp.h (struct gomp_task): Add depend_all_memory member.
810         * task.c (gomp_init_task): Initialize depend_all_memory.
811         (gomp_task_handle_depend): Handle omp_all_memory.
812         (gomp_task_run_post_handle_depend_hash): Clear
813         parent->depend_all_memory if equal to current task.
814         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
815         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
816         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
817         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
819 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
821         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
822         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
823         * Makefile.in: Regenerate.
824         * configure: Likewise.
825         * testsuite/Makefile.in: Likewise.
827 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
829         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
830         consider 'PLUGIN_GCN_CPPFLAGS'.
831         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
832         'PLUGIN_GCN_LDFLAGS'.
833         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
834         Remove.
835         * Makefile.in: Regenerate.
836         * configure: Likewise.
837         * testsuite/Makefile.in: Likewise.
839 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
841         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
842         (HSA_RUNTIME_LDFLAGS): Remove.
843         * configure: Regenerate.
845 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
847         * testsuite/lib/libgomp.exp (libgomp_init): Don't
848         'append always_ld_library_path ":$hsa_runtime_lib"'.
849         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
851 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
853         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
854         multi-device testing.
856 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
858         * libgomp.map: Added omp_target_is_accessible.
859         * libgomp.texi: Tagged omp_target_is_accessible as supported.
860         * omp.h.in: Added omp_target_is_accessible.
861         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
862         * omp_lib.h.in: Likewise.
863         * target.c (omp_target_is_accessible): Added implementation of
864         omp_target_is_accessible.
865         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
866         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
868 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
870         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
872 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
874         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
876 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
878         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
880 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
882         * libgomp.map: Added omp_get_mapped_ptr.
883         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
884         * omp.h.in: Added omp_get_mapped_ptr.
885         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
886         * omp_lib.h.in: Likewise.
887         * target.c (omp_get_mapped_ptr): Added implementation of
888         omp_get_mapped_ptr.
889         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
890         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
891         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
892         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
893         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
894         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
895         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
896         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
898 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
900         PR fortran/104717
901         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
902         privatization scanning.  For GCN offloading compilation, raise
903         '-mgang-private-size'.
905 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
907         PR libgomp/105358
908         * work.c (gomp_init_work_share): Don't mask of adjustment for
909         dynamic long long realignment if struct gomp_work_share has smaller
910         alignof than long long.
911         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
912         struct gomp_work_share has smaller alignof than long long or if
913         sizeof (struct gomp_work_share) is smaller than
914         INLINE_ORDERED_TEAM_IDS_OFF.
915         * loop_ull.c (GOMP_loop_ull_start): Likewise.
916         * sections.c (GOMP_sections2_start): Likewise.
918 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
919             Thomas Schwinge  <thomas@codesourcery.com>
921         PR fortran/104717
922         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
924 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
926         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
928 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
930         * plugin/cuda/cuda.h: Remove file.
931         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
932         "cuda/cuda.h" instead of <cuda.h>.
933         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
934         'PLUGIN_NVPTX_CPPFLAGS'.
935         * configure: Regenerate.
937 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
939         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
941 2022-04-04  Tom de Vries  <tdevries@suse.de>
943         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
944         on_device_arch_nvptx instead of offload_target_nvptx.
945         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
947 2022-04-01  Tom de Vries  <tdevries@suse.de>
949         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
950         and use REC_DEPTH.
951         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
953 2022-04-01  Tom de Vries  <tdevries@suse.de>
955         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
956         num_workers check.
958 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
959             Lulu Cheng  <chenglulu@loongson.cn>
961         * configure.tgt: Add LoongArch triplet.
963 2022-03-28  Tom de Vries  <tdevries@suse.de>
965         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
966         instead of /libexec/.
967         * configure: Regenerate.
969 2022-03-25  Tom de Vries  <tdevries@suse.de>
971         PR libgomp/105042
972         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
973         execution time.
974         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
975         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
977 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
979         PR middle-end/104285
980         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
981         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
982         * testsuite/libgomp.c++/target-same-name-2.C: New test.
983         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
984         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
985         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
987 2022-03-22  Tom de Vries  <tdevries@suse.de>
989         PR target/104916
990         PR target/104783
991         * testsuite/libgomp.c/pr104783-2.c: New test.
993 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
995         PR fortran/103039
996         * testsuite/libgomp.fortran/associate4.f90: New test.
998 2022-03-18  Tom de Vries  <tdevries@suse.de>
1000         PR target/104952
1001         * testsuite/libgomp.c/pr104952-1.c: New test.
1002         * testsuite/libgomp.c/pr104952-2.c: New test.
1004 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
1006         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
1007         variable next to pl variable.
1009 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
1011         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1012         Enhance.
1013         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
1014         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1016 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
1018         PR middle-end/90115
1019         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
1020         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1022 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
1024         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
1025         omp_set_max_active_levels.
1026         * testsuite/libgomp.fortran/icv-8.f90: New test.
1028 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
1030         PR testsuite/102841
1031         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
1033 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
1035         * libgomp.texi: Fix typo.
1037 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
1039         PR middle-end/100280
1040         PR middle-end/104892
1041         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1042         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
1043         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1044         Likewise.
1045         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1046         Likewise.
1047         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1048         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1049         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1050         Likewise.
1052 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
1054         PR middle-end/104892
1055         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
1056         to PR104892.
1057         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
1058         enable '--param=openacc-kernels=decompose' and adjust.
1059         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1060         Likewise.
1061         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1062         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1063         Likewise.
1065 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
1067         PR middle-end/90115
1068         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
1069         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
1070         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1071         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
1073 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
1075         PR middle-end/100280
1076         PR middle-end/104086
1077         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1078         Merge this...
1079         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1080         ..., and this...
1081         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
1082         this, and adjust.
1083         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1084         Extend.
1086 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1088         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
1089         trait.  Test last index in w and v array.  Remove redundant
1090         assignment to V(1).  Move alignment checks at the end of
1091         parallel region.
1093 2022-03-10  Tom de Vries  <tdevries@suse.de>
1095         * testsuite/libgomp.c/pr104783.c: New test.
1097 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1099         PR middle-end/90115
1100         PR middle-end/102330
1101         PR middle-end/104774
1102         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1103         Enhance.
1104         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1105         Adjust.
1106         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1107         Likewise.
1108         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1109         Likewise.
1110         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1111         Likewise.
1112         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1113         Likewise.
1114         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1115         Likewise.
1116         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1117         Likewise.
1118         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1119         Likewise.
1120         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1121         Likewise.
1122         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1123         Likewise.
1124         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1125         Likewise.
1126         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1127         Likewise.
1128         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1129         Likewise.
1130         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1131         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1132         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1134 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1136         PR middle-end/90115
1137         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
1138         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1139         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1140         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
1142 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
1144         PR testsuite/104791
1145         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
1146         expected diagnostics.
1148 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
1150         PR middle-end/104784
1151         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1152         Test with '--param=openacc-kernels=decompose'.
1153         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1154         Likewise.
1155         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1156         Likewise.
1157         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1158         Likewise.
1159         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1160         Likewise.
1161         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1162         Likewise.
1163         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1164         Likewise.
1165         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1166         Likewise.
1167         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1168         Likewise.
1169         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1170         Likewise.
1171         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1172         Likewise.
1173         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1174         Likewise.
1175         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1176         Likewise.
1177         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1178         Likewise.
1179         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1180         Likewise.
1181         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1182         Likewise.
1183         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1184         Likewise.
1185         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1186         Likewise.
1187         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1188         Likewise.
1189         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1190         Likewise.
1191         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1192         Likewise.
1193         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1194         Likewise.
1195         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1196         Likewise.
1197         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1198         Likewise.
1199         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1200         Likewise.
1201         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1202         Likewise.
1203         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1204         Likewise.
1205         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1206         Likewise.
1207         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1208         Likewise.
1209         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1210         Likewise.
1211         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1212         Likewise.
1213         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1214         Likewise.
1215         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1216         Likewise.
1218 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
1220         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1221         Test '-fopt-info-omp-all'.
1222         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1223         Likewise.
1224         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1225         Likewise.
1226         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1227         Likewise.
1228         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1229         Likewise.
1230         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1231         Likewise.
1232         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1233         Likewise.
1234         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1235         Likewise.
1236         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1237         Likewise.
1238         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1239         Likewise.
1240         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1241         Likewise.
1242         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1243         Likewise.
1244         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1245         Likewise.
1246         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1247         Likewise.
1248         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1249         Likewise.
1250         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1251         Likewise.
1252         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1253         Likewise.
1254         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1255         Likewise.
1256         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1257         Likewise.
1258         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1259         Likewise.
1260         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1261         Likewise.
1262         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1263         Likewise.
1264         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1265         Likewise.
1266         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1267         Likewise.
1268         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1269         Likewise.
1270         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1271         Likewise.
1272         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1273         Likewise.
1274         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1275         Likewise.
1276         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1277         Likewise.
1278         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1279         Likewise.
1280         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1281         Likewise.
1282         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1283         Likewise.
1284         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1285         Likewise.
1287 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
1289         PR middle-end/100280
1290         PR middle-end/104132
1291         PR middle-end/104133
1292         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1293         Extend.
1295 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
1297         PR middle-end/100280
1298         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1299         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1300         Likewise.
1302 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
1304         PR middle-end/100280
1305         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1306         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1307         Likewise.
1309 2022-02-28  Tom de Vries  <tdevries@suse.de>
1311         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
1312         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
1313         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
1314         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
1315         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
1316         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
1318 2022-02-24  Tom de Vries  <tdevries@suse.de>
1320         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
1321         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
1322         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
1323         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
1324         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
1325         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
1326         * testsuite/libgomp.c/declare-variant-3.h: New header file.
1328 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
1330         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
1331         gang-redundant execution.
1333 2022-02-22  Tom de Vries  <tdevries@suse.de>
1335         PR target/99555
1336         * config/nvptx/bar.c (generation_to_barrier): New function, copied
1337         from config/rtems/bar.c.
1338         (futex_wait, futex_wake): New function.
1339         (do_spin, do_wait): New function, copied from config/linux/wait.h.
1340         (gomp_barrier_wait_end, gomp_barrier_wait_last)
1341         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
1342         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
1343         and replace with include of config/linux/bar.c.
1344         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
1345         (gomp_barrier_init): Init new fields.
1346         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
1347         workarounds.
1348         * testsuite/libgomp.c/pr99555-1.c: Same.
1349         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
1351 2022-02-22  Tom de Vries  <tdevries@suse.de>
1353         PR testsuite/104146
1354         * testsuite/libgomp.c++/pr96390.C: Add additional-option
1355         -foffload=-Wa,--verify for nvptx.
1356         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
1358 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
1360         * testsuite/libgomp.fortran/depend-4.f90: New test.
1362 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
1364         PR c++/102204
1365         * testsuite/libgomp.c++/target-virtual-1.C: New test.
1367 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
1369         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
1370         * target.c (copy_firstprivate_data): Copy only if host address is not
1371         NULL.
1372         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
1373         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
1374         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
1375         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
1376         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
1377         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
1378         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
1379         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
1380         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
1381         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
1383 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
1385         PR libgomp/104385
1386         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
1387         clear task->parent.
1388         * testsuite/libgomp.c/pr104385.c: New test.
1390 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
1392         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
1393         STOP of previous commit.
1395 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
1397         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
1398         from is_64bit_aligned_.
1399         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
1400         and use it, more implicit none, remove unused argument.
1402 2022-02-03  David Seifert  <soap@gentoo.org>
1403             Jakub Jelinek  <jakub@redhat.com>
1405         * configure.ac: Support --disable-werror.
1406         * configure: Regenerate.
1408 2022-02-01  Tom de Vries  <tdevries@suse.de>
1410         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
1411         PR83812 workaround.
1412         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
1413         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
1415 2022-02-01  Tom de Vries  <tdevries@suse.de>
1417         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
1418         num_workers for nvidia accelerator to fix libgomp error 'insufficient
1419         resources'.
1420         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1421         Same.
1422         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
1424 2022-02-01  Tom de Vries  <tdevries@suse.de>
1426         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1427         recursion depth.
1428         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1430 2022-01-31  Martin Liska  <mliska@suse.cz>
1432         * acinclude.m4: Detect *_ld_is_mold and use it.
1433         * configure: Regenerate.
1435 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
1437         * libgomp.texi (OpenMP 5.0): Update implementation status.
1439 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
1441         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
1442         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1443         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1444         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1445         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1446         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1447         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1448         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1449         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1450         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1451         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1452         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
1453         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
1454         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1455         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
1457 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
1459         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
1460         "static") to make the device num available in the offload image.
1462 2022-01-19  Martin Liska  <mliska@suse.cz>
1463             Thomas Schwinge  <thomas@codesourcery.com>
1465         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
1466         patterns.
1467         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1468         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1469         Likewise.
1470         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1471         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1472         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1473         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1474         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
1475         Likewise.
1476         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
1477         Likewise.
1478         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
1479         Likewise.
1480         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
1481         Likewise.
1482         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
1483         Likewise.
1484         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1485         Likewise.
1486         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1487         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1488         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1490 2022-01-18  Martin Liska  <mliska@suse.cz>
1492         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
1493         in dg-warning.
1494         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1495         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1496         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1497         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1498         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1499         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1500         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
1501         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
1502         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
1503         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
1504         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
1505         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
1506         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1507         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1508         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1510 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
1512         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
1513         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1514         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1516 2022-01-17  Julian Brown  <julian@codesourcery.com>
1517             Thomas Schwinge  <thomas@codesourcery.com>
1519         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
1520         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
1521         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
1523 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
1524             Andrew Stubbs   <ams@codesourcery.com>
1526         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
1527         the number of teams and threads if necessary.
1528         (gcn_exec): Automatically set the number of gangs and workers if
1529         necessary.
1531 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1533         * testsuite/libgomp.fortran/allocate-1.c: New test.
1534         * testsuite/libgomp.fortran/allocate-1.f90: New test.
1535         * libgomp.texi: Remove string that says that allocate clause
1536         support is for C/C++ only.
1538 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
1540         * testsuite/libgomp.c-c++-common/on_device_arch.h
1541         (any_device_arch, any_device_arch_intel_mic): New.
1542         * testsuite/lib/libgomp.exp
1543         (check_effective_target_offload_device_any_intel_mic): New.
1544         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
1545         * testsuite/libgomp.fortran/target10.f90: Likewise.
1547 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
1549         PR tree-optimization/102192
1550         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
1551         '-Wuninitialized' diagnostics.
1553 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
1555         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
1556         current '-Wuninitialized' diagnostics.
1557         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
1558         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
1559         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
1560         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
1561         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1562         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
1563         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
1564         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1565         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1566         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1567         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
1568         Likewise.
1570 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
1572         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
1573         for 'offload_device_intel_mic'.
1575 2022-01-13  Julian Brown  <julian@codesourcery.com>
1576             Thomas Schwinge  <thomas@codesourcery.com>
1578         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
1579         offloading execution XFAIL.
1581 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
1583         PR middle-end/100280
1584         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1585         Update.
1586         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1587         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1588         Likewise.
1590 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
1592         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1593         Enhance.
1594         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1595         Likewise.
1596         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
1597         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1598         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
1599         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
1600         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1601         Likewise.
1602         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1603         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1604         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1605         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1607 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
1609         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
1610         * testsuite/libgomp.fortran/target10.f90: Likewise.
1612 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
1614         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
1615         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
1616         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1618 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
1620         * libgomp.texi: Bump @copying's copyright year.
1622 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
1624         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
1625         * testsuite/libgomp.fortran/atomic-19.f90: New test.
1627 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
1629         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
1630         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
1631         table, not individual symbols.
1633 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
1635         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
1636         "target offload_device_nonshared_as"
1637         * testsuite/libgomp.c++/target-this-3.C: Likewise.
1638         * testsuite/libgomp.c++/target-this-4.C: Likewise.
1640 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
1642         * target.c (gomp_map_vars_existing): Make sure attached pointer is
1643         not overwritten during cross-host/device copying.
1644         (gomp_update): Likewise.
1645         (gomp_exit_data): Likewise.
1646         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
1647         * testsuite/libgomp.c++/target-12.C: Likewise.
1648         * testsuite/libgomp.c++/target-15.C: Likewise.
1649         * testsuite/libgomp.c++/target-16.C: Likewise.
1650         * testsuite/libgomp.c++/target-17.C: Likewise.
1651         * testsuite/libgomp.c++/target-21.C: Likewise.
1652         * testsuite/libgomp.c++/target-23.C: Likewise.
1653         * testsuite/libgomp.c/target-23.c: Likewise.
1654         * testsuite/libgomp.c/target-29.c: Likewise.
1655         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
1657 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
1659         PR middle-end/92120
1660         * libgomp.h (gomp_attach_pointer): Add bool parameter.
1661         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
1662         (goacc_enter_data_internal): Likewise.
1663         * target.c (gomp_map_vars_existing): Update assert condition to
1664         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
1665         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
1666         parameter, add support for mapping a pointer with NULL target.
1667         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
1668         parameter, add support for attaching a pointer with NULL target.
1669         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
1670         gomp_attach_pointer, add handling for
1671         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
1672         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
1673         * testsuite/libgomp.c++/target-23.C: New testcase.
1674         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
1675         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
1676         * testsuite/libgomp.c++/target-this-1.C: New testcase.
1677         * testsuite/libgomp.c++/target-this-2.C: New testcase.
1678         * testsuite/libgomp.c++/target-this-3.C: New testcase.
1679         * testsuite/libgomp.c++/target-this-4.C: New testcase.
1680         * testsuite/libgomp.c++/target-this-5.C: New testcase.
1682 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
1684         * libgomp.texi (OpenMP 5.1): Update status.
1686 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
1688         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
1690 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
1692         PR fortran/90030
1693         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
1694         * testsuite/libgomp.fortran/pr90030.f90: New test.
1696 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
1697             Thomas Schwinge  <thomas@codesourcery.com>
1699         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
1700         temporary skip.
1702 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
1703             Thomas Schwinge  <thomas@codesourcery.com>
1705         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
1706         skip.
1708 2021-11-29  Richard Biener  <rguenther@suse.de>
1710         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
1711         return.
1713 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
1715         PR middle-end/103384
1716         * testsuite/libgomp.c/declare-variant-2.c: New test.
1718 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
1720         * alloc.c (gomp_aligned_alloc): Fix typo.
1722 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
1724         PR libgomp/102838
1725         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
1726         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
1727         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
1728         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1729         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
1730         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
1731         gomp_aligned_alloc instead of team_malloc.
1733 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
1735         PR libgomp/102838
1736         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
1737         memalign over posix_memalign over aligned_alloc over fallback
1738         with malloc instead of aligned_alloc over _aligned_alloc over
1739         posix_memalign over memalign over fallback with malloc.  For
1740         aligned_alloc, round up size up to multiple of al.
1742 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
1744         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
1745         construct as implemented.
1747 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
1749         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
1751 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
1753         * task.c (gomp_create_target_task): Copy args array as well.
1754         * target.c (gomp_target_fallback): Add args argument.
1755         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
1756         (GOMP_target): Adjust gomp_target_fallback caller.
1757         (GOMP_target_ext): Likewise.
1758         (gomp_target_task_fn): Likewise.
1759         * config/nvptx/team.c (gomp_nvptx_main): Set
1760         gomp_global_icv.thread_limit_var.
1761         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
1763 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
1765         * config/nvptx/team.c (__gomp_team_num): Define as
1766         __attribute__((shared)) var.
1767         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
1768         * config/nvptx/target.c (__gomp_team_num): Declare as
1769         extern __attribute__((shared)) var.
1770         (GOMP_teams4): Use __gomp_team_num as the team number instead of
1771         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
1772         is bigger than num_blocks, use num_teams_lower teams and arrange for
1773         bumping of __gomp_team_num if !first and returning false once we run
1774         out of teams.
1775         * config/nvptx/teams.c (__gomp_team_num): Declare as
1776         extern __attribute__((shared)) var.
1777         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
1779 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
1781         * testsuite/libgomp.c/teams-5.c: New test.
1783 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
1785         PR target/103201
1786         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
1787         to ...
1788         * config/gcn/teams.c: ... here.  New file.
1790 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
1792         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
1793         implicit map handling to allow a "superset" existing map as valid case.
1794         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
1795         (get_implicit): New function to extract implicit status.
1796         (gomp_map_fields_existing): Adjust arguments in calls to
1797         gomp_map_vars_existing, and add uses of get_implicit.
1798         (gomp_map_vars_internal): Likewise.
1799         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
1801 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
1803         * libgomp_g.h (GOMP_teams4): Declare.
1804         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
1805         * target.c (GOMP_teams4): New function.
1806         * config/nvptx/target.c (GOMP_teams): Remove.
1807         (GOMP_teams4): New function.
1808         * config/gcn/target.c (GOMP_teams): Remove.
1809         (GOMP_teams4): New function.
1810         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
1811         teams instead of <= 2.
1812         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
1814 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
1816         * testsuite/libgomp.fortran/teams-1.f90: New test.
1818 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
1820         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
1821         * team.c (struct gomp_thread_start_data): Likewise.
1822         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
1823         (gomp_team_start): Initialize start_data->num_teams and
1824         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
1825         * teams.c (gomp_num_teams, gomp_team_num): Remove.
1826         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
1827         instead of gomp_num_teams and gomp_team_num.
1828         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
1829         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
1830         * testsuite/libgomp.c/teams-4.c: New test.
1832 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
1834         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
1836 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
1838         * env.c (parse_gomp_openacc_dim): Restore parsing.
1840 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
1842         PR middle-end/102972
1843         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
1844         parallel construct.
1845         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
1846         * testsuite/libgomp.c/target-3.c: Likewise.
1847         * testsuite/libgomp.c/target-5.c: Likewise.
1848         * testsuite/libgomp.c/target-6.c: Likewise.
1849         * testsuite/libgomp.c/target-teams-1.c: Likewise.
1850         * testsuite/libgomp.c/teams-1.c: Likewise.
1851         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1852         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
1853         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
1854         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
1855         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
1856         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
1857         * testsuite/libgomp.fortran/teams1.f90: Likewise.
1859 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
1861         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
1862         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1864 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
1866         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
1867         aren't implemented for Fortran yet.
1869 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
1871         * testsuite/libgomp.c/loop-26.c: New test.
1872         * testsuite/libgomp.c/loop-27.c: New test.
1874 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
1876         PR testsuite/102910
1877         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
1878         instead of #include <alloca.h> + alloca.
1880 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
1882         * libgomp.texi (Support of strictly structured blocks in Fortran):
1883         Adjust to 'Y'.
1884         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
1886 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
1888         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
1889         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
1891 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
1893         PR libgomp/102838
1894         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
1895         (struct gomp_work_share): Only use aligned(64) attribute if
1896         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
1897         add padding before lock to ensure lock is at offset 64 bytes
1898         into the structure.
1899         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
1900         New poor man's static assertions.
1901         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
1902         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1904 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
1905             Richard Biener  <rguenther@suse.de>
1907         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
1909 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
1911         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
1912         && gomp_places_list_len < count after nfirst <= nlast loop condition.
1914 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
1916         PR fortran/102086
1917         PR fortran/92189
1918         PR fortran/92621
1919         PR fortran/101308
1920         PR fortran/101309
1921         PR fortran/101635
1922         PR fortran/92482
1923         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
1925 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
1927         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
1928         type from char [50] to const char *.
1929         (places_array): Add a testcase for simplified syntax place followed
1930         by length or length and stride.
1932 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
1934         * env.c (parse_one_place): Handle non-negative-number the same
1935         as { non-negative-number }.  Reject even !number:1 and
1936         !number:1:stride or !place:1 or !place:1:stride instead of just
1937         length other than 1.
1938         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
1939         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
1940         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
1941         as implemented.
1942         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
1943         simplified syntax.
1945 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
1947         * env.c (parse_schedule): For strtoul or strtoull calls which don't
1948         clearly reject return value 0 as invalid handle the case where end
1949         pointer is the same as first argument as invalid.
1950         (parse_unsigned_long_1): Likewise.
1951         (parse_one_place): Likewise.
1952         (parse_places_var): Likewise.
1953         (parse_stacksize): Likewise.
1954         (parse_spincount): Likewise.
1955         (parse_affinity): Likewise.
1956         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
1957         Make code valid C89.
1958         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
1959         For strtoul calls which don't clearly reject return value 0 as
1960         invalid handle the case where end pointer is the same as first
1961         argument as invalid.
1962         (gomp_affinity_init_level_1): Likewise.
1963         (gomp_affinity_init_numa_domains): Likewise.
1964         * config/rtems/proc.c (parse_thread_pools): Likewise.
1966 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
1968         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
1969         after creating count places clean up and return immediately.
1970         * testsuite/libgomp.c/places-6.c: New test.
1971         * testsuite/libgomp.c/places-7.c: New test.
1972         * testsuite/libgomp.c/places-8.c: New test.
1973         * testsuite/libgomp.c/places-9.c: New test.
1974         * testsuite/libgomp.c/places-10.c: New test.
1976 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
1978         * env.c (parse_places_var): Handle numa_domains as level 5.
1979         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
1980         function.
1981         (gomp_affinity_init_level): Use it instead of
1982         gomp_affinity_init_level_1 for level == 5.
1983         * testsuite/libgomp.c/places-5.c: New test.
1985 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
1987         * env.c (parse_places_var): Handle ll_caches as level 4.
1988         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
1989         function.
1990         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
1991         last level cache.
1992         (gomp_affinity_init_level): Likewise.
1993         * testsuite/libgomp.c/places-1.c: New test.
1994         * testsuite/libgomp.c/places-2.c: New test.
1995         * testsuite/libgomp.c/places-3.c: New test.
1996         * testsuite/libgomp.c/places-4.c: New test.
1998 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
2000         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
2001         directive.
2003 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
2005         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
2007 2021-10-12  Julian Brown  <julian@codesourcery.com>
2009         * target.c (gomp_copy_host2dev): Release device lock on cbuf
2010         error path.
2012 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
2014         * testsuite/libgomp.fortran/icv-3.f90: New.
2015         * testsuite/libgomp.fortran/icv-4.f90: New.
2017 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
2019         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
2020         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
2021         OMP_TEAMS_THREAD_LIMIT): Document.
2023 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
2025         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
2026         to avoid makeinfo warnings.
2028 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
2030         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
2031         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
2033 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
2035         PR libgomp/102628
2036         PR libgomp/102668
2037         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
2038         allocation sizes from 420 to 320 and from 768 to 568.
2039         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
2040         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
2041         for cr from 16 to 4.
2043 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
2045         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
2046         * testsuite/libgomp.c/scan-12.c: Likewise.
2047         * testsuite/libgomp.c/scan-13.c: Likewise.
2048         * testsuite/libgomp.c/scan-14.c: Likewise.
2049         * testsuite/libgomp.c/scan-15.c: Likewise.
2050         * testsuite/libgomp.c/scan-16.c: Likewise.
2051         * testsuite/libgomp.c/scan-17.c: Likewise.
2052         * testsuite/libgomp.c/scan-18.c: Likewise.
2053         * testsuite/libgomp.c/scan-19.c: Likewise.
2054         * testsuite/libgomp.c/scan-20.c: Likewise.
2055         * testsuite/libgomp.c/scan-21.c: Likewise.
2056         * testsuite/libgomp.c/scan-22.c: Likewise.
2057         * testsuite/libgomp.c++/scan-9.C: Likewise.
2058         * testsuite/libgomp.c++/scan-10.C: Likewise.
2059         * testsuite/libgomp.c++/scan-11.C: Likewise.
2060         * testsuite/libgomp.c++/scan-12.C: Likewise.
2061         * testsuite/libgomp.c++/scan-13.C: Likewise.
2062         * testsuite/libgomp.c++/scan-14.C: Likewise.
2063         * testsuite/libgomp.c++/scan-15.C: Likewise.
2064         * testsuite/libgomp.c++/scan-16.C: Likewise.
2066 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
2068         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
2070 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
2072         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
2073         omp_atv_serialized.
2074         * omp.h.in: Add deprecated flag for omp_atv_sequential.
2075         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
2076         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
2077         * testsuite/libgomp.fortran/alloc-12.f90: New test.
2079 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
2081         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
2082         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2083         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
2084         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2085         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
2086         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2087         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
2088         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
2089         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
2090         omp_set_teams_thread_limit{,_,_8_}.
2091         * icv.c (omp_set_num_teams, omp_get_max_teams,
2092         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
2093         functions.
2094         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
2095         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
2096         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
2097         vars.
2098         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
2099         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
2100         is not specified, use gomp_nteams_var.
2101         * fortran.c (omp_set_num_teams, omp_get_max_teams,
2102         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
2103         ialias_redirect.
2104         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
2105         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
2106         omp_get_teams_thread_limit_): New functions.
2108 2021-10-09  liuhongt  <hongtao.liu@intel.com>
2110         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
2111         * testsuite/libgomp.c++/scan-11.C: Ditto.
2112         * testsuite/libgomp.c++/scan-12.C: Ditto.
2113         * testsuite/libgomp.c++/scan-13.C: Ditto.
2114         * testsuite/libgomp.c++/scan-14.C: Ditto.
2115         * testsuite/libgomp.c++/scan-15.C: Ditto.
2116         * testsuite/libgomp.c++/scan-16.C: Ditto.
2117         * testsuite/libgomp.c++/scan-9.C: Ditto.
2118         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
2119         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
2120         * testsuite/libgomp.c/scan-11.c: Ditto.
2121         * testsuite/libgomp.c/scan-12.c: Ditto.
2122         * testsuite/libgomp.c/scan-13.c: Ditto.
2123         * testsuite/libgomp.c/scan-14.c: Ditto.
2124         * testsuite/libgomp.c/scan-15.c: Ditto.
2125         * testsuite/libgomp.c/scan-16.c: Ditto.
2126         * testsuite/libgomp.c/scan-17.c: Ditto.
2127         * testsuite/libgomp.c/scan-18.c: Ditto.
2128         * testsuite/libgomp.c/scan-19.c: Ditto.
2129         * testsuite/libgomp.c/scan-20.c: Ditto.
2130         * testsuite/libgomp.c/scan-21.c: Ditto.
2131         * testsuite/libgomp.c/scan-22.c: Ditto.
2133 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
2135         * libgomp.texi (OpenMP 5.1): Mention implemented support for
2136         structured block sequences in C/C++.  Mention support for
2137         unconstrained/reproducible modifiers on order clause.
2138         Mention partial (C/C++ only) support of extentensions to atomics
2139         construct.  Mention partial (C/C++ on clause only) support of
2140         align/allocator modifiers on allocate clause.
2142 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
2144         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
2145         based on libgomp.c-c++-common/order-reproducible-1.c.
2146         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
2147         * testsuite/libgomp.fortran/my-usleep.c: New test.
2149 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
2151         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
2152         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
2153         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
2154         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
2155         based on libgomp.c-c++-common/alloc-9.c.
2157 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
2159         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
2160         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
2162 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
2164         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
2165         ialias_redirect.
2166         * env.c (handle_omp_display_env): Use ialias_call.
2167         * icv-device.c: Move ialias right below each function.
2168         (omp_get_device_num): Use ialias_call.
2169         * fortran.c (omp_fulfill_event): Add ialias_redirect.
2170         * icv.c (omp_get_active_level): Add ialias_redirect.
2172 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
2174         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
2175         __alloc_align__ (1) attribute.
2176         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
2178 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
2180         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
2181         for -fintrinsic-modules-path= warning of the C compiler.
2182         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
2183         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
2185 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
2187         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
2188         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
2189         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2190         omp_realloc): Add.
2191         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2192         omp_realloc): Add.
2193         * testsuite/libgomp.fortran/alloc-10.f90: New test.
2194         * testsuite/libgomp.fortran/alloc-6.f90: New test.
2195         * testsuite/libgomp.fortran/alloc-7.c: New test.
2196         * testsuite/libgomp.fortran/alloc-7.f90: New test.
2197         * testsuite/libgomp.fortran/alloc-8.f90: New test.
2198         * testsuite/libgomp.fortran/alloc-9.f90: New test.
2200 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
2202         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
2203         omp_realloc): New prototypes.
2204         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
2205         attribute.
2206         * allocator.c: Include string.h.
2207         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
2208         variable and use it instead of alignment so that when retrying the old
2209         alignment is used again.  Don't retry if new alignment is the same
2210         as old alignment, unless allocator had pool size.
2211         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
2212         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
2213         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
2214         omp_aligned_calloc and omp_realloc.
2215         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
2216         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
2217         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
2218         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
2219         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
2220         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
2222 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
2224         PR libgomp/96661
2225         * configure.ac: Only check for int-type = 2*size_t support when
2226         building with Fortran support.
2227         * configure: Regenerate.
2229 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
2231         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
2232         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2234 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
2236         * team.c: Initialize start_data.
2237         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2238         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
2240 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
2242         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
2243         dg-message back to dg-note.
2245 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
2247         PR fortran/94070
2248         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
2249         expected dg-note output.
2251 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
2253         PR fortran/55534
2254         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
2255         r12-3722 by removing -Wno-missing-include-dirs.
2256         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2258 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
2260         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
2261         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
2263 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
2265         PR fortran/55534
2266         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
2267         to ALWAYS_CFLAGS.
2268         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2270 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
2272         * testsuite/libgomp.c++/default-1.C: New test.
2273         * testsuite/libgomp.c-c++-common/default-1.c: New test.
2274         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
2275         to default clause in C and C++" as implemented.
2277 2021-09-17  Julian Brown  <julian@codesourcery.com>
2279         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
2281 2021-09-17  Julian Brown  <julian@codesourcery.com>
2283         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
2285 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
2287         * libgomp.texi (OpenMP 5.1): Spelling fix,
2288         declare variante -> declare variant.
2290 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
2292         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
2293         Use /* */ comments instead of //.
2294         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
2295         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
2296         * testsuite/libgomp.c++/atomic-16.C: New test.
2297         * testsuite/libgomp.c++/atomic-17.C: New test.
2299 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
2301         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
2302         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
2303         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
2305 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
2307         * libgomp.texi (OpenMP Implementation Status): Extend
2308         OpenMP 5.0 section.
2309         (OpenACC Profiling Interface): Fix typo.
2311 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
2313         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
2314         not to 4.5; link to new section.
2315         (OpenMP Implementation Status): New.
2317 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
2319         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
2321 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
2323         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
2324         dg-output.
2325         * testsuite/libgomp.fortran/error-1.f90: Likewise.
2327 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
2328             Jakub Jelinek  <jakub@redhat.com>
2330         * testsuite/libgomp.c/address-space-1.c: New file.
2332 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
2334         * testsuite/lib/libgomp.exp
2335         (check_effective_target_offload_target_intelmic): Remove 'proc'.
2336         (check_effective_target_offload_device_intel_mic): New 'proc'.
2337         * testsuite/libgomp.c-c++-common/on_device_arch.h
2338         (device_arch_intel_mic, on_device_arch_intel_mic): New.
2339         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
2340         'dg-xfail-run-if'.
2341         * testsuite/libgomp.fortran/target10.f90: Likewise.
2343 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
2345         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
2346         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
2347         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
2348         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
2350 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
2352         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
2353         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
2354         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
2356 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
2358         * config/nvptx/error.c (fwrite, exit): Override, too.
2359         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
2360         of offloading testing.
2361         * testsuite/libgomp.fortran/error-1.f90: Likewise.
2363 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
2365         * testsuite/libgomp.fortran/error-1.f90: New test.
2367 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
2369         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
2370         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
2371         * error.c (GOMP_warning, GOMP_error): New functions.
2372         * testsuite/libgomp.c-c++-common/error-1.c: New test.
2374 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
2376         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
2377         omp_target_free. omp_target_is_present, omp_target_memcpy,
2378         omp_target_memcpy_rect, omp_target_associate_ptr,
2379         omp_target_disassociate_ptr): Add interface.
2380         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
2381         omp_target_free. omp_target_is_present, omp_target_memcpy,
2382         omp_target_memcpy_rect, omp_target_associate_ptr,
2383         omp_target_disassociate_ptr): Add interface.
2384         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
2385         interface block for omp_alloc + omp_free.
2386         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
2387         * testsuite/libgomp.fortran/refcount-1.f90: New test.
2388         * testsuite/libgomp.fortran/target-12.f90: New test.
2390 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
2392         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
2394 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
2396         * testsuite/libgomp.fortran/scope-1.f90: New test.
2397         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
2399 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
2401         * Makefile.am (libgomp_la_SOURCES): Add scope.c
2402         * Makefile.in: Regenerated.
2403         * libgomp_g.h (GOMP_scope_start): Declare.
2404         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
2405         * scope.c: New file.
2406         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
2407         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
2409 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
2411         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
2412         '?:' issues.
2414 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
2416         * testsuite/libgomp.fortran/masked-1.f90: New test.
2418 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
2420         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
2422 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
2424         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
2426 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
2428         * env.c (parse_bind_var): Accept 'primary' as alias for
2429         'master'.
2430         (omp_display_env): Add TODO comment to
2431         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
2432         * libgomp.texi: Change 'master thread' to 'primary thread'
2433         in line with OpenMP 5.1.
2434         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
2435         omp_proc_bind_master is an alias of it.
2436         (OMP_PROC_BIND): Mention 'PRIMARY'.
2437         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
2438         (omp_proc_bind_primary): Add.
2439         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2440         * omp_lib.f90.in (omp_proc_bind_primary): Add.
2441         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2442         * omp_lib.h.in (omp_proc_bind_primary): Add.
2443         * testsuite/libgomp.c/affinity-1.c: Check that
2444         'primary' works and is identical to 'master'.
2446 2021-08-09  Julian Brown  <julian@codesourcery.com>
2447             Kwok Cheung Yeung  <kcy@codesourcery.com>
2448             Thomas Schwinge  <thomas@codesourcery.com>
2450         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
2451         16.
2452         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
2453         [acc_device_radeon]: Update.
2454         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
2455         [ACC_DEVICE_TYPE_radeon]: Likewise.
2456         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2457         [acc_device_radeon]: Likewise.
2458         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
2459         [ACC_DEVICE_TYPE_radeon]: Likewise.
2460         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
2461         'openacc_radeon_accel_selected' and '-O0'.
2462         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2464 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
2466         * icv-device.c (omp_get_device_num): New API function, host side.
2467         * fortran.c (omp_get_device_num_): New interface function.
2468         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
2469         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
2470         omp_get_device_num_.
2471         * libgomp.texi (omp_get_device_num): Add documentation for new API
2472         function.
2473         * omp.h.in (omp_get_device_num): Add declaration.
2474         * omp_lib.f90.in (omp_get_device_num): Likewise.
2475         * omp_lib.h.in (omp_get_device_num): Likewise.
2476         * target.c (gomp_load_image_to_device): If additional entry for device
2477         number exists at end of returned entries from 'load_image_func' hook,
2478         copy the assigned device number over to the device variable.
2479         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2480         (omp_get_device_num): New API function, device side.
2481         * plugin/plugin-gcn.c ("symcat.h"): Add include.
2482         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2483         at end of returned 'target_table' entries.
2484         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2485         (omp_get_device_num): New API function, device side.
2486         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
2487         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2488         at end of returned 'target_table' entries.
2489         * testsuite/lib/libgomp.exp
2490         (check_effective_target_offload_target_intelmic): New function for
2491         testing for intelmic offloading.
2492         * testsuite/libgomp.c-c++-common/target-45.c: New test.
2493         * testsuite/libgomp.fortran/target10.f90: New test.
2495 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
2496             Ulrich Drepper  <drepper@redhat.com>
2498         * fortran.c (omp_display_env_, omp_display_env_8_): Only
2499         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
2501 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
2502             Julian Brown  <julian@codesourcery.com>
2503             Kwok Cheung Yeung  <kcy@codesourcery.com>
2505         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
2506         's%oaccdevlow%oaccloops%g'.
2507         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2508         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2509         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
2510         Likewise.
2511         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
2512         Likewise.
2513         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
2514         Likewise.
2515         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
2516         Likewise.
2517         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
2518         Likewise.
2519         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
2520         Likewise.
2521         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
2522         Likewise.
2523         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
2524         Likewise.
2525         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2527 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
2529         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
2530         threader.
2531         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
2533 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
2535         * env.c (wait_policy, stacksize): New static variables,
2536         move out of handle_omp_display_env.
2537         (omp_display_env): New function.  The meat of the old
2538         handle_omp_display_env function.
2539         (handle_omp_display_env): Change to not take parameters
2540         and instead use the global variables.  Only perform
2541         parsing, defer to omp_display_env for the implementation.
2542         (initialize_env): Remove local variables wait_policy and
2543         stacksize.  Don't pass parameters to handle_omp_display_env.
2544         * fortran.c: Add ialias_redirect for omp_display_env.
2545         (omp_display_env_, omp_display_env_8_): New functions.
2546         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
2547         omp_display_env_, and omp_display_env_8_.
2548         * omp.h.in: Declare omp_display_env.
2549         * omp_lib.f90.in: Likewise.
2550         * omp_lib.h.in: Likewise.
2552 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
2553             Julian Brown  <julian@codesourcery.com>
2555         * target.c (gomp_coalesce_buf_add): Update comment.
2556         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
2557         'aq && cbuf'.
2558         (gomp_map_vars_internal): Only 'if (!aq)', do
2559         'gomp_coalesce_buf_add'.
2560         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
2561         XFAIL.
2563 2021-07-27  Julian Brown  <julian@codesourcery.com>
2564             Thomas Schwinge  <thomas@codesourcery.com>
2566         * libgomp.h (gomp_copy_host2dev): Update prototype.
2567         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
2568         argument to gomp_copy_host2dev (false).
2569         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
2570         (copy_data): Don't free src.
2571         (queue_push_copy): Remove free_src handling.
2572         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
2573         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
2574         snapshotting.
2575         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
2576         queue_push_copy.
2577         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
2578         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
2579         data when true, and set up deferred freeing of temporary buffer.
2580         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
2581         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
2582         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
2583         calls to gomp_copy_host2dev with appropriate ephemeral argument.
2584         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
2585         XFAIL.
2587 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
2588             Tom de Vries  <tom@codesourcery.com>
2590         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
2591         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
2593 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
2595         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
2596         sequencing of 'async' data copying vs. profiling events.
2597         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2598         Likewise.
2600 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
2601             Julian Brown  <julian@codesourcery.com>
2603         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
2604         'async'/'wait' issue.
2605         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
2606         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
2607         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
2609 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
2610             Joseph Myers  <joseph@codesourcery.com>
2611             Cesar Philippidis  <cesar@codesourcery.com>
2613         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
2614         file.
2615         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2616         Likewise.
2617         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
2618         Likewise.
2619         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2621 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
2623         PR target/101484
2624         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
2625         '-Wno-error=array-bounds'.
2626         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
2627         * libgomp.h [__AMDGCN__]: Likewise.
2629 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
2631         PR target/101484
2632         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
2633         * libgomp.h [__AMDGCN__]: Likewise.
2635 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
2636             Florian Weimer  <fweimer@redhat.com>
2638         * config/linux/sem.h: Don't include limits.h.
2639         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
2640         * config/linux/affinity.c: Include limits.h.
2642 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
2644         PR middle-end/94366
2645         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
2647 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
2649         PR other/67300
2650         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
2651         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
2652         avoid disabling other offload targets.
2653         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
2654         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
2655         * testsuite/libgomp.c/target-44.c: Likewise.
2657 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
2659         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
2660         target has shared memory and disable some scalar pointer/allocatable
2661         checks if not as firstprivate does not work.
2663 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
2665         PR testsuite/101114
2666         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
2667         Add "target offload_device_nonshared_as" condition for enabling test.
2669 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
2671         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
2672         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
2673         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
2674         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
2676 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
2678         PR middle-end/101167
2679         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
2681 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
2683         * hashtab.h (htab_clear): New function with initialization code
2684         factored out from...
2685         (htab_create): ...here, adjust to use htab_clear function.
2686         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
2687         special refcount values, add comments.
2688         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
2689         (REFCOUNT_LINK): Likewise.
2690         (REFCOUNT_STRUCTELEM): New special refcount range for structure
2691         element siblings.
2692         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
2693         sibling maps.
2694         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
2695         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
2696         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
2697         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
2698         (struct splay_tree_key_s): Add structelem_refcount and
2699         structelem_refcount_ptr fields into a union with dynamic_refcount.
2700         Add comments.
2701         (gomp_map_vars): Delete declaration.
2702         (gomp_map_vars_async): Likewise.
2703         (gomp_unmap_vars): Likewise.
2704         (gomp_unmap_vars_async): Likewise.
2705         (goacc_map_vars): New declaration.
2706         (goacc_unmap_vars): Likewise.
2707         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
2708         (goacc_enter_datum): Likewise.
2709         (goacc_enter_data_internal): Likewise.
2710         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
2711         and goacc_unmap_vars.
2712         (GOACC_data_start): Adjust to use goacc_map_vars.
2713         (GOACC_data_end): Adjust to use goacc_unmap_vars.
2714         * target.c (hash_entry_type): New typedef.
2715         (htab_alloc): New function hook for hashtab.h.
2716         (htab_free): Likewise.
2717         (htab_hash): Likewise.
2718         (htab_eq): Likewise.
2719         (hashtab.h): Add file include.
2720         (gomp_increment_refcount): New function.
2721         (gomp_decrement_refcount): Likewise.
2722         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
2723         gomp_increment_refcount.
2724         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
2725         to gomp_map_vars_existing.
2726         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
2727         variable to guard OpenMP specific paths, adjust calls to
2728         gomp_map_vars_existing, add structure element sibling splay_tree_key
2729         sequence creation code, adjust Fortran map case to avoid increment
2730         under OpenMP.
2731         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
2732         local refcount_set if caller passed in NULL, adjust call to
2733         gomp_map_vars_internal.
2734         (gomp_map_vars_async): Adjust and rename into...
2735         (goacc_map_vars): ...this new function, adjust call to
2736         gomp_map_vars_internal.
2737         (gomp_remove_splay_tree_key): New function with code factored out from
2738         gomp_remove_var_internal.
2739         (gomp_remove_var_internal): Add code to handle removing multiple
2740         splay_tree_key sequence for structure elements, adjust code to use
2741         gomp_remove_splay_tree_key for splay-tree key removal.
2742         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
2743         gomp_decrement_refcount.
2744         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
2745         local refcount_set if caller passed in NULL, adjust call to
2746         gomp_unmap_vars_internal.
2747         (gomp_unmap_vars_async): Adjust and rename into...
2748         (goacc_unmap_vars): ...this new function, adjust call to
2749         gomp_unmap_vars_internal.
2750         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
2751         gomp_unmap_vars.
2752         (GOMP_target_ext): Likewise.
2753         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
2754         (GOMP_target_data): Likewise.
2755         (GOMP_target_data_ext): Likewise.
2756         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
2757         (gomp_exit_data): Add refcount_set parameter, adjust to use
2758         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
2759         after main loop.
2760         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
2761         gomp_map_vars and gomp_exit_data.
2762         (gomp_target_task_fn): Likewise.
2763         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
2764         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
2765         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
2766         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
2767         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
2768         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
2770 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
2772         PR fortran/92568
2773         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
2775 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
2776             Thomas Schwinge  <thomas@codesourcery.com>
2778         * libgomp.map (GOACC_2.0.2): New symbol version.
2779         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
2780         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
2782 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2783             Andrew Stubbs  <ams@codesourcery.com>
2785         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
2786         extracted from...
2787         (GOACC_enter_exit_data): ... here.
2788         (GOACC_declare): Use it.
2790 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2792         * oacc-parallel.c (GOACC_declare): Move...
2793         * oacc-mem.c: ... here.
2794         * libgomp_g.h: Adjust.
2796 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
2797             Thomas Schwinge  <thomas@codesourcery.com>
2799         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
2800         handling.
2802 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
2804         PR tree-optimization/100981
2805         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
2806         dsdotr and dsdoti to 0.
2808 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
2810         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
2811         if atomic compare-and-swap is supported on 'int'.
2813 2021-06-09  Richard Biener  <rguenther@suse.de>
2815         PR tree-optimization/100981
2816         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
2818 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2820         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
2821         unconditionally.
2822         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2823         Update.
2824         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2825         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
2827 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2829         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
2830         '-DACC_MEM_SHARED=0'.
2831         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
2832         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2833         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
2834         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2835         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2836         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2837         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2838         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2839         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2840         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2841         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
2842         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
2843         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
2844         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2845         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
2846         'acc_device_radeon' testing.
2847         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
2848         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2849         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2850         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
2851         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2852         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2853         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
2854         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
2855         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2856         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2857         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
2858         for non-'openacc_nvidia_accel_selected'.
2859         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2860         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
2861         all implement this checking".
2862         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2863         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2864         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2865         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2866         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2868 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2870         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
2871         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
2873 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2875         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
2876         for 'acc_device_radeon'.
2878 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2880         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
2881         for non-'acc_device_nvidia'.
2883 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2885         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
2886         'acc_device_radeon' testing.
2887         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2888         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2889         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2891 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2893         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
2894         require 'openacc_nvidia_accel_selected'.  Fix up for
2895         'ACC_DEVICE_TYPE_radeon'.
2897 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2899         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
2900         'openacc_nvidia_accel_selected'.
2901         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2903 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2905         * testsuite/lib/libgomp.exp
2906         (check_effective_target_openacc_radeon_accel_selected):
2907         Streamline.
2909 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2911         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
2912         PR80547 workaround.
2914 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
2916         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2917         <acc_device_nvidia>: Update comment.
2919 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
2921         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
2923 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
2925         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
2926         check_effective_target_openacc_cublas,
2927         check_effective_target_openacc_cudart): New.
2928         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
2929         target openacc_cublas.
2930         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2931         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2932         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
2933         target openacc_cuda.
2934         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
2935         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
2936         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
2937         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
2938         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
2939         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
2940         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
2941         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2942         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
2943         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
2944         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
2945         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2946         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
2947         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
2948         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
2949         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2950         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
2951         targets openacc_cublas and openacc_cudart.
2952         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
2953         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
2954         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
2955         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
2956         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
2957         Require effective target openacc_cudart.
2958         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
2959         for effective target openacc_cuda and add && defined USE_CUDA_H to
2960         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
2961         effective target.
2963 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
2965         PR libgomp/100573
2966         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
2967         GOMP_target_end_data, GOMP_target_update_ext,
2968         GOMP_target_enter_exit_data): New dummy entrypoints.
2969         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
2970         GOMP_target_end_data, GOMP_target_update_ext,
2971         GOMP_target_enter_exit_data): Likewise.
2972         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
2973         OMPFROM, OMPTO): Define.
2974         (main): Remove #pragma omp target teams around all the tests.
2975         * testsuite/libgomp.c-c++-common/target-41.c: New test.
2976         * testsuite/libgomp.c-c++-common/target-42.c: New test.
2978 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
2980         PR middle-end/99928
2981         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
2983 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
2985         PR fortran/86470
2986         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
2987         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
2988         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
2990 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
2992         PR testsuite/90115
2993         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
2994         uninteresting/varying diagnostics.
2996 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
2998         PR middle-end/90115
2999         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
3000         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3002 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
3004         PR middle-end/90115
3005         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
3006         file.
3007         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3008         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
3009         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3010         Likewise.
3011         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3012         Likewise.
3013         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3014         Likewise.
3015         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3016         Likewise.
3017         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3018         Likewise.
3019         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3020         Likewise.
3021         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3022         Likewise.
3023         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3024         Likewise.
3025         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3026         Likewise.
3027         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3028         Likewise.
3029         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3030         Likewise.
3031         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3032         Likewise.
3033         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3034         Likewise.
3035         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3036         Likewise.
3037         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3038         Likewise.
3039         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3040         Likewise.
3041         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3042         Likewise.
3043         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3044         Likewise.
3045         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3046         Likewise.
3047         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3048         Likewise.
3049         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3050         Likewise.
3051         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3052         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3053         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3054         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3055         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3056         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3057         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3058         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3059         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3060         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3061         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3062         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3063         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3064         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3065         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3066         Likewise.
3067         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
3068         Likewise.
3069         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
3070         Likewise.
3071         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3072         Likewise.
3073         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3074         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3075         Likewise.
3076         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3077         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3078         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3079         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3080         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3081         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3082         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3083         Likewise.
3084         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3085         Likewise.
3086         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3087         Likewise.
3088         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3089         Likewise.
3090         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3091         Likewise.
3092         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3093         Likewise.
3094         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3095         Likewise.
3096         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3097         Likewise.
3098         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3099         Likewise.
3100         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3101         Likewise.
3102         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3103         Likewise.
3104         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3105         Likewise.
3106         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3107         Likewise.
3108         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3109         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3110         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3111         Likewise.
3112         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3113         Likewise.
3114         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3115         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3116         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3118 2021-05-21  Julian Brown  <julian@codesourcery.com>
3119             Chung-Lin Tang  <cltang@codesourcery.com>
3120             Thomas Schwinge  <thomas@codesourcery.com>
3122         PR middle-end/90115
3123         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
3124         test.
3125         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3126         Likewise.
3127         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3128         Likewise.
3130 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
3132         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
3133         for nvptx offloading.
3135 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
3137         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
3139 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
3141         PR target/83812
3142         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
3144 2021-05-19  Julian Brown  <julian@codesourcery.com>
3146         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
3148 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
3150         * testsuite/lib/libgomp.exp
3151         (check_effective_target_offload_target_nvptx): Don't shadow global
3152         'offload_targets' variable.
3154 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
3156         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
3157         '-latomic' to nvptx offloading compilation.
3158         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3160 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
3162         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
3163         offloading compilation.
3165 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
3167         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
3168         if new tasks generated.
3169         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
3171 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
3173         * testsuite/libgomp.fortran/parallel-master.f90: New test.
3175 2021-05-13  Martin Liska  <mliska@suse.cz>
3177         PR testsuite/100569
3178         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
3179         * testsuite/libgomp.c/pr46032-2.c: Likewise.
3180         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
3181         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
3183 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
3185         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
3186         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
3188 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
3190         PR middle-end/100471
3191         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
3192         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
3193         reduction pointer.
3194         * testsuite/libgomp.c/task-reduction-4.c: New test.
3196 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
3197             Tom de Vries  <tdevries@suse.de>
3199         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
3200         complex/floating-point || + && reduction with 'omp target'.
3201         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3203 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
3205         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
3206         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
3207         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
3208         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
3210 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
3212         PR testsuite/100397
3213         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
3214         declaration to scope of non-'depend'-guarded assignment to avoid races.
3216 2021-05-03  Tom de Vries  <tdevries@suse.de>
3218         PR target/100321
3219         * testsuite/libgomp.c/target-44.c: New test.
3221 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
3223         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
3225 2021-04-29  Tom de Vries  <tdevries@suse.de>
3227         * testsuite/libgomp.c/pr81778.c: New test.
3229 2021-04-29  Tom de Vries  <tdevries@suse.de>
3231         PR target/100232
3232         * testsuite/libgomp.c/target-43.c: New file.
3234 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
3235             Tobias Burnus  <tobias@codesourcery.com>
3237         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
3238         * target.c (gomp_load_plugin_for_device): If set and if a plugin
3239         can't be dlopened, silently assume it has no devices.
3240         * Makefile.in: Regenerate.
3241         * config.h.in: Regenerate.
3242         * configure: Regenerate.
3244 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
3246         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3247         Use [Ww]arning in dg-bogus as FE diagnostic and default
3248         diagnostic differ and the result depends on ENABLE_OFFLOAD.
3249         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3250         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3251         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3253 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
3255         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3256         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
3257         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3258         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3259         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3261 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
3262             Nathan Sidwell  <nathan@codesourcery.com>
3263             Tom de Vries  <vries@codesourcery.com>
3264             Julian Brown  <julian@codesourcery.com>
3265             Kwok Cheung Yeung  <kcy@codesourcery.com>
3267         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
3268         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
3269         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3270         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3271         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3272         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3273         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
3274         Likewise.
3275         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
3276         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3277         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3278         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3279         Likewise.
3280         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
3281         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3282         Likewise.
3283         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3284         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3285         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3286         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3287         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3288         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3289         Likewise.
3290         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3291         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3292         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3293         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3294         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3295         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3296         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3297         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3298         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3299         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3300         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3302 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
3304         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
3305         compile with '-w'.
3306         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3307         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3308         Likewise.
3309         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3310         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
3311         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3312         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3313         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3314         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3315         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3317 2021-04-22  Richard Biener  <rguenther@suse.de>
3319         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
3320         only on nvptx-none.
3322 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
3324         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
3325         omp_depend_kind instead of defining it as 16.
3327 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
3329         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3330         New, based on check_effective_target_offload_target_nvptx.
3331         (check_effective_target_offload_target_nvptx): Call it.
3332         (check_effective_target_offload_target_amdgcn): New.
3333         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
3334         Require target offload_target_nvptx || offload_target_amdgcn.
3335         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
3336         * testsuite/libgomp.c/pr86416-1.c: Likewise.
3337         * testsuite/libgomp.c/pr86416-2.c: Likewise.
3339 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
3341         * testsuite/libgomp.fortran/depobj-1.f90: New test.
3343 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
3345         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3346         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
3347         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3348         Likewise.
3349         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3350         Likewise.
3351         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3353 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
3355         PR target/99555
3356         * testsuite/lib/libgomp.exp
3357         (check_effective_target_offload_device_nvptx): New.
3358         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
3359         resolved, make sure that we exit quickly, with error status,
3360         XFAILed.
3361         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
3362         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3364 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
3366         PR testsuite/100071
3367         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
3368         cp = omp_alloc with cp, p arguments instead of cq, q and call
3369         c_f_pointer after last cq = omp_alloc with cq, q.
3371 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3373         PR middle-end/98088
3374         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
3375         for loop with GT/GE condition.
3376         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3378 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
3380         PR middle-end/84991
3381         PR middle-end/84992
3382         PR middle-end/90779
3383         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
3385 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
3387         PR libgomp/99984
3388         * team.c (gomp_thread_start): Call pthread_setspecific for
3389         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
3390         has been initialized to avoid false positive warning.
3392 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
3394         PR target/99555
3395         * testsuite/lib/on_device_arch.c: Move to ...
3396         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
3397         * testsuite/libgomp.fortran/on_device_arch.c: New file;
3398         #include on_device_arch.h.
3399         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
3400         on_device_arch.h instead of using dg-additional-source.
3401         * testsuite/libgomp.c/pr99555-1.c: Likewise.
3402         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
3403         on_device_arch.c without relative paths.
3405 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
3407         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
3408         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
3409         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
3410         * config.h.in: Regenerate.
3411         * configure: Likewise.
3413 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
3415         PR target/99555
3416         * testsuite/lib/on_device_arch.c: New file.
3417         * testsuite/libgomp.c/pr99555-1.c: Likewise.
3418         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
3419         skip for nvptx offloading, with error status.
3420         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3422 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
3424         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3425         OpenACC 'serial' construct diagnostic for nvptx offloading.
3427 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
3429         PR c++/99509
3430         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
3432 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
3434         PR fortran/98858
3435         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
3437 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
3439         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
3440         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
3441         checking of -m32 or -mx32 options on the command line.
3442         * config.h.in: Regenerated.
3443         * configure: Regenerated.
3445 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
3447         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
3448         support from the target.
3450 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
3451             Jakub Jelinek  <jakub@redhat.com>
3453         PR libgomp/98738
3454         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
3455         (struct gomp_task): Replace detach and completion_sem fields with
3456         union containing completion_sem and detach_team.  Add deferred_p
3457         field.
3458         (struct gomp_team): Remove task_detach_queue.
3459         * task.c: Include assert.h.
3460         (gomp_init_task): Initialize deferred_p and completion_sem fields.
3461         Rearrange initialization order of fields.
3462         (task_fulfilled_p): Delete.
3463         (GOMP_task): Use address of task as the event handle.  Remove
3464         initialization of detach field.  Initialize deferred_p field.
3465         Use automatic local for completion_sem.  Initialize detach_team field
3466         for deferred tasks.
3467         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
3468         Set kind of suspended detach task to GOMP_TASK_DETACHED and
3469         decrement task_running_count.  Move finish_cancelled block out of
3470         else branch.  Relocate call to gomp_team_barrier_done.
3471         (GOMP_taskwait): Handle tasks with completion events that have not
3472         been fulfilled.
3473         (GOMP_taskgroup_end): Likewise.
3474         (omp_fulfill_event): Use address of task as event handle.  Post to
3475         completion_sem for undeferred tasks.  Clear detach_team if task
3476         has not finished.  For finished tasks, handle post-execution tasks,
3477         call gomp_team_barrier_wake if necessary, and free task.
3478         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
3479         (free_team): Remove free of task_detach_queue.
3480         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
3481         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
3482         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
3483         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
3484         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
3485         Change data-sharing of detach events on enclosing parallel to private.
3486         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
3487         taskwait directive.
3488         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
3489         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
3490         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
3491         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
3492         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
3493         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
3494         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
3495         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
3496         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
3497         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
3498         Change data-sharing of detach events on enclosing parallel to private.
3499         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
3500         taskwait directive.
3501         * testsuite/libgomp.fortran/task-detach-7.f90: New.
3502         * testsuite/libgomp.fortran/task-detach-8.f90: New.
3503         * testsuite/libgomp.fortran/task-detach-9.f90: New.
3504         * testsuite/libgomp.fortran/task-detach-10.f90: New.
3505         * testsuite/libgomp.fortran/task-detach-11.f90: New.
3507 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
3509         PR fortran/99171
3510         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
3512 2021-02-17  Julian Brown  <julian@codesourcery.com>
3514         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
3515         expected errors.
3517 2021-02-17  Julian Brown  <julian@codesourcery.com>
3519         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
3520         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
3522 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3524         * config/linux/x86/futex.h (__futex_wait):
3525         Revert output type back to long.
3526         (__futex_wake): Ditto.
3527         (futex_wait): Update for revert.
3528         (futex_wake): Ditto.
3530 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3532         * config/linux/x86/futex.h (__futex_wait): New static inline
3533         wrapper function.  Correct output type to int and
3534         timeout type to void *.
3535         (__futex_wake): New static inline wrapper function.
3536         Correct output type to int.
3537         (futex_wait): Use __futex_wait.
3538         (futex_wake): Use __futex_wake.
3540 2021-02-10  Julian Brown  <julian@codesourcery.com>
3542         PR fortran/98979
3543         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
3544         errors.
3546 2021-02-04  Julian Brown  <julian@codesourcery.com>
3548         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
3550 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
3552         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3553         EF_AMDGPU_MACH_AMDGCN_GFX908.
3554         (gcn_gfx908_s): New constant string.
3555         (isa_hsa_name): Add gfx908.
3556         (isa_code): Add gfx908.
3558 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
3560         * libgomp.texi (omp_fulfill_event): New entry.
3562 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
3564         * task.c (GOMP_task): Rename priority argument to priority_arg,
3565         add priority automatic variable and modify that variable.  Instead of
3566         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
3567         check flags for that bit.
3569 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
3571         PR fortran/98476
3572         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
3574 2021-01-18  Andreas Schwab  <schwab@suse.de>
3576         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
3578 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3580         * config/rtems/sem.h (gomp_sem_getcount): New function.
3582 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
3584         * config/linux/sem.h (gomp_sem_getcount): New function.
3585         * config/posix/sem.h (gomp_sem_getcount): New function.
3586         * config/posix/sem.c (gomp_sem_getcount): New function.
3587         * config/accel/sem.h (gomp_sem_getcount): New function.
3588         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
3589         (omp_fulfill_event): Likewise.
3591 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
3593         * fortran.c (omp_fulfill_event_): New.
3594         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
3595         (struct gomp_team): Add task_detach_queue and task_detach_count
3596         fields.
3597         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
3598         * libgomp_g.h (GOMP_task): Add extra argument.
3599         * omp.h.in (enum omp_event_handle_t): New.
3600         (omp_fulfill_event): New.
3601         * omp_lib.f90.in (omp_event_handle_kind): New.
3602         (omp_fulfill_event): New.
3603         * omp_lib.h.in (omp_event_handle_kind): New.
3604         (omp_fulfill_event): Declare.
3605         * priority_queue.c (priority_tree_find): New.
3606         (priority_list_find): New.
3607         (priority_queue_find): New.
3608         * priority_queue.h (priority_queue_predicate): New.
3609         (priority_queue_find): New.
3610         * task.c (gomp_init_task): Initialize detach field.
3611         (task_fulfilled_p): New.
3612         (GOMP_task): Add detach argument.  Ignore detach argument if
3613         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
3614         field.  Copy address of completion_sem into detach argument and
3615         into the start of the data record.  Wait for detach event if task
3616         not deferred.
3617         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
3618         Remove completed tasks and requeue dependent tasks.
3619         (omp_fulfill_event): New.
3620         * team.c (gomp_new_team): Initialize task_detach_queue and
3621         task_detach_count fields.
3622         (free_team): Free task_detach_queue field.
3623         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
3624         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
3625         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
3626         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
3627         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
3628         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
3629         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
3630         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
3631         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
3632         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
3633         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
3634         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
3636 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
3638         PR target/70454
3639         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
3640         be added through preprocessor check on
3641         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
3643 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
3645         PR libgomp/65099
3646         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
3647         configurations.
3648         * configure: Regenerate.
3649         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
3650         check.
3652 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3654         * configure: Re-generate.
3656 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3658         * configure: Re-generate.
3660 2021-01-05  Julian Brown  <julian@codesourcery.com>
3662         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
3663         (struct ptx_device): Add omp_stacks struct.
3664         (nvptx_open_device): Initialise cached-stacks housekeeping info.
3665         (nvptx_close_device): Free cached stacks block and mutex.
3666         (nvptx_stacks_free): New function.
3667         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
3668         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
3669         (nvptx_stacks_alloc): Rename to...
3670         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
3671         size or smaller is required.
3672         (nvptx_stacks_free): Remove.
3673         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
3674         during kernel execution.
3676 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
3678         * libgomp.texi: Bump @copying's copyright year.
3680 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
3682         * libgomp.texi (Top): Avoid bad "up" link.
3684 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
3686         * testsuite/libgomp.c/task-6.c: New test.
3688 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
3690         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
3691         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
3693 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
3695         * testsuite/libgomp.fortran/scan-1.f90: New test.
3697 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
3699         PR target/97865
3700         * configure: Regenerate.
3702 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
3704         * configure: Regenerate.
3706 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
3708         * testsuite/libgomp.oacc-c++/cache-1.C: New.
3709         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
3711 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
3713         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
3714         expected results.
3716 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
3718         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
3719         (reserved): Delete unused define.
3721 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
3723         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
3724         Tcl 8.5-specific behavior.
3725         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3727 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
3729         * env.c (gomp_global_icv): Remove nest_var field.  Add
3730         max_active_levels_var field.
3731         (gomp_max_active_levels_var): Remove.
3732         (parse_boolean): Return true on success.
3733         (handle_omp_display_env): Express OMP_NESTED in terms of
3734         max_active_levels_var.  Change format specifier for
3735         max_active_levels_var.
3736         (initialize_env): Set max_active_levels_var from
3737         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
3738         OMP_PROC_BIND.
3739         * icv.c (omp_set_nested): Express in terms of
3740         max_active_levels_var.
3741         (omp_get_nested): Likewise.
3742         (omp_set_max_active_levels): Use max_active_levels_var field instead
3743         of gomp_max_active_levels_var.
3744         (omp_get_max_active_levels): Likewise.
3745         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
3746         max_active_levels_var field.
3747         (gomp_supported_active_levels): Set to UCHAR_MAX.
3748         (gomp_max_active_levels_var): Delete.
3749         * libgomp.texi (omp_get_nested): Update documentation.
3750         (omp_set_nested): Likewise.
3751         (OMP_MAX_ACTIVE_LEVELS): Likewise.
3752         (OMP_NESTED): Likewise.
3753         (OMP_NUM_THREADS): Likewise.
3754         (OMP_PROC_BIND): Likewise.
3755         * parallel.c (gomp_resolve_num_threads): Replace reference
3756         to nest_var with max_active_levels_var.  Use max_active_levels_var
3757         field instead of gomp_max_active_levels_var.
3759 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
3761         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
3762         nvptx_usleep; use also for device={arch(gcn)}.
3764 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
3766         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
3767         (foo): Add tests for non-VLA private and firstprivate clauses on
3768         omp task.
3769         (bar): Likewise.  Remove taking of address from private/firstprivate
3770         variables.
3771         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
3772         (foo): Add p, q, px and s arguments.  Add tests for array reductions
3773         and for non-VLA private and firstprivate clauses on omp task.
3774         (bar): Removed.
3775         (main): Adjust foo caller.  Don't call bar.
3777 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
3778             Thomas Schwinge  <thomas@codesourcery.com>
3780         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3781         New.
3782         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3783         Likewise.
3784         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3785         Likewise.
3786         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3787         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3789 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
3790             Thomas Schwinge  <thomas@codesourcery.com>
3792         PR fortran/94358
3793         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
3795 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
3797         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
3798         for array reductions.
3799         (main): Adjust foo callers.
3801 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
3803         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
3804         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
3805         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
3806         * allocator.c (omp_aligned_alloc): New for now static function,
3807         add alignment argument and handle it.
3808         (omp_alloc): Reimplement using omp_aligned_alloc.
3809         (GOMP_alloc, GOMP_free): New functions.
3810         (omp_free): Add ialias.
3811         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
3812         * testsuite/libgomp.c++/allocate-1.C: New test.
3814 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
3816         PR fortran/97782
3817         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
3819 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
3821         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
3822         usable.
3823         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
3824         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
3825         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
3826         (goacc_enter_data_internal): Likewise.
3827         * target.c (gomp_map_vars_internal):
3828         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
3829         of gomp_attach_pointer for OpenMP cases.
3830         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
3831         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
3832         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
3834 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
3835             Kwok Cheung Yeung  <kcy@codesourcery.com>
3837         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
3838         * Makefile.in: Regenerate.
3839         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
3840         pragmas to ignore -Wdeprecated-declarations warnings.
3841         * icv.c: Likewise.
3842         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
3843         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
3844         and omp_get_nested with __GOMP_DEPRECATED_5_0.
3845         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
3846         deprecated.
3847         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
3848         to test options.
3849         * testsuite/libgomp.c/affinity-1.c: Likewise.
3850         * testsuite/libgomp.c/affinity-2.c: Likewise.
3851         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
3852         * testsuite/libgomp.c/lib-1.c: Likewise.
3853         * testsuite/libgomp.c/nested-1.c: Likewise.
3854         * testsuite/libgomp.c/nested-2.c: Likewise.
3855         * testsuite/libgomp.c/nested-3.c: Likewise.
3856         * testsuite/libgomp.c/pr32362-1.c: Likewise.
3857         * testsuite/libgomp.c/pr32362-2.c: Likewise.
3858         * testsuite/libgomp.c/pr32362-3.c: Likewise.
3859         * testsuite/libgomp.c/pr35549.c: Likewise.
3860         * testsuite/libgomp.c/pr42942.c: Likewise.
3861         * testsuite/libgomp.c/pr61200.c: Likewise.
3862         * testsuite/libgomp.c/sort-1.c: Likewise.
3863         * testsuite/libgomp.c/target-5.c: Likewise.
3864         * testsuite/libgomp.c/target-6.c: Likewise.
3865         * testsuite/libgomp.c/teams-1.c: Likewise.
3866         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3867         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3868         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3869         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
3870         * testsuite/libgomp.fortran/lib1.f90: Likewise.
3871         * testsuite/libgomp.fortran/lib2.f: Likewise.
3872         * testsuite/libgomp.fortran/nested1.f90: Likewise.
3873         * testsuite/libgomp.fortran/teams1.f90: Likewise.
3875 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3877         PR target/85486
3878         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
3879         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3880         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3882 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3884         PR testsuite/80219
3885         PR testsuite/85303
3886         * testsuite/lib/libgomp.exp (libgomp_init): Set
3887         'gcc_warning_prefix', 'gcc_error_prefix'.
3889 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
3891         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
3892         even in field_tgt_clear initializer.
3894 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
3896         * testsuite/libgomp.c/target-42.c: New test.
3898 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
3899             Tom de Vries  <tdevries@suse.de>
3901         PR testsuite/81690
3902         * testsuite/libgomp.c/usleep.h: New file.
3903         * testsuite/libgomp.c/target-32.c: Include usleep.h.
3904         (main): Use tgt_usleep instead of usleep.
3905         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
3906         (main): Use tgt_usleep instead of usleep.
3908 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
3910         PR lto/96680
3911         * testsuite/libgomp.c/declare-variant-1.c: New test.
3913 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
3915         * testsuite/libgomp.c/target-41.c: New test.
3917 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
3919         * icv.c (omp_get_initial_device): Remove including corresponding
3920         ialias.
3921         * icv-device.c (omp_get_initial_device): New function.  Return
3922         gomp_get_num_devices ().  Add ialias.
3923         * target.c (resolve_device): Don't fail with
3924         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
3925         gomp_get_num_devices ().
3926         (omp_target_alloc, omp_target_free, omp_target_is_present,
3927         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
3928         omp_target_disassociate_ptr, omp_pause_resource): Use
3929         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
3930         first use in the functions, in uses dominated by the
3931         gomp_get_num_devices call use num_devices_openmp instead.
3932         * libgomp.texi (omp_get_initial_device): Document.
3933         * config/gcn/icv-device.c (omp_get_initial_device): New function.
3934         Add ialias.
3935         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
3936         * testsuite/libgomp.c/target-40.c: New test.
3938 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
3940         * env.c (parse_target_offload): Change new_offload var type to int,
3941         preinitialize to -1, remove found var and test new_offload != -1
3942         instead of found.
3944 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
3946         * target.c (gomp_target_init): Inside of the function, use automatic
3947         variables corresponding to num_devices, num_devices_openmp and devices
3948         global variables and update the globals only at the end of the
3949         function.
3951 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
3953         * env.c (gomp_target_offload_var): New.
3954         (parse_target_offload): New.
3955         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
3956         (initialize_env): Parse OMP_TARGET_OFFLOAD.
3957         * libgomp.h (gomp_target_offload_t): New.
3958         (gomp_target_offload_var): New.
3959         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
3960         * target.c (resolve_device): Generate error if device not found and
3961         offloading is mandatory.
3962         (gomp_target_fallback): Generate error if offloading is mandatory.
3963         (GOMP_target): Add argument in call to gomp_target_fallback.
3964         (GOMP_target_ext): Likewise.
3965         (gomp_target_data_fallback): Generate error if offloading is mandatory.
3966         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
3967         (GOMP_target_data_ext): Likewise.
3968         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
3969         (gomp_target_init): Return early if offloading is disabled.
3971 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
3973         * libgomp.texi (omp_get_max_active_levels): Modify description.
3974         (omp_get_supported_active_levels): Make descriptions consistent.
3976 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
3978         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
3980 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
3982         * env.c (gomp_max_active_levels_var): Initialize to
3983         gomp_supported_active_levels.
3984         (initialize_env): Limit gomp_max_active_levels_var to be at most
3985         equal to gomp_supported_active_levels.
3986         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
3987         (omp_get_supported_active_levels_): New.
3988         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
3989         to at most equal to gomp_supported_active_levels.
3990         (omp_get_supported_active_levels): New.
3991         * libgomp.h (gomp_supported_active_levels): New.
3992         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
3993         omp_get_supported_active_levels_.
3994         * libgomp.texi (omp_get_supported_active_levels): New.
3995         (omp_set_max_active_levels): Update.  Add reference to
3996         omp_get_supported_active_levels.
3997         * omp.h.in (omp_get_supported_active_levels): New.
3998         * omp_lib.f90.in (omp_get_supported_active_levels): New.
3999         * omp_lib.h.in (omp_get_supported_active_levels): New.
4000         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
4001         against omp_get_supported_active_levels.
4002         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
4004 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
4006         * config/t-aix: Delete and recreate libgomp before creating
4007         FAT library.
4009 2020-10-08  Tom de Vries  <tdevries@suse.de>
4011         PR libgomp/81802
4012         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
4013         dimensions.
4015 2020-10-06  Tom de Vries  <tdevries@suse.de>
4017         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
4019 2020-10-06  Tom de Vries  <tdevries@suse.de>
4021         PR middle-end/90861
4022         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
4024 2020-10-05  Tom de Vries  <tdevries@suse.de>
4026         PR fortran/95654
4027         * testsuite/libgomp.fortran/pr95654.f90: New test.
4029 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
4031         * Makefile.in: Regenerate with automake 1.15.1.
4032         * aclocal.m4: Likewise.
4033         * configure: Likewise.
4034         * testsuite/Makefile.in: Likewise.
4036 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
4038         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
4039         and amdgcn targets.
4041 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
4043         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
4045 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
4047         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
4048         total number of threads is one.
4049         (gomp_team_barrier_wake): Likewise.
4050         (gomp_team_barrier_wait_end): Likewise.
4051         (gomp_team_barrier_wait_cancel_end): Likewise.
4052         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
4053         (gomp_team_barrier_wake): Likewise.
4054         (gomp_team_barrier_wait_end): Likewise.
4055         (gomp_team_barrier_wait_cancel_end): Likewise.
4056         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
4058 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
4060         PR middle-end/96390
4061         * testsuite/libgomp.c++/pr96390.C: New test.
4062         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
4064 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
4066         * config/t-aix: Use $(AR) without -X32_64.
4068 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
4070         * testsuite/libgomp.c/loop-25.c: New test.
4072 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
4074         PR fortran/95654
4075         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
4077 2020-09-22  Tom de Vries  <tdevries@suse.de>
4079         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
4080         fails.
4082 2020-09-16  Nathan Sidwell  <nathan@acm.org>
4084         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
4086 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
4088         PR fortran/96668
4089         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
4091 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
4093         PR fortran/96668
4094         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
4095         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
4096         (gomp_map_vars_existing): Update call to it.
4097         (gomp_map_fields_existing): Likewise
4098         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
4099         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
4100         remapped.
4101         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
4102         GOMP_MAP_POINTER.
4103         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
4104         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
4106 2020-09-14  Tom de Vries  <tdevries@suse.de>
4108         * config/nvptx/atomic.c: New file.  Add
4109         __sync_val_compare_and_swap_16.
4110         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
4111         target offload_target_nvptx.
4113 2020-09-08  Julian Brown  <julian@codesourcery.com>
4115         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
4116         iteration-ordering assumptions.
4118 2020-09-08  Julian Brown  <julian@codesourcery.com>
4120         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
4121         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4123 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
4125         * plugin/plugin-nvptx.c (nvptx_free):
4126         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
4127         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
4128         comments.
4130 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
4132         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
4134 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
4136         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
4138 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
4140         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
4141         * testsuite/libgomp.c/loop-23.c (main): Likewise.
4142         * testsuite/libgomp.c/loop-24.c: New test.
4144 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
4145             Tobias Burnus  <tobias@codesourcery.com>
4147         PR fortran/93553
4148         * testsuite/libgomp.fortran/pr93553.f90: New test.
4150 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
4152         * testsuite/libgomp.c/loop-22.c: New test.
4153         * testsuite/libgomp.c/loop-23.c: New test.
4155 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
4157         PR middle-end/96459
4158         * testsuite/libgomp.c/teams-3.c: New test.
4159         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
4160         if not defined yet.
4161         (N(test)): Use it before all N(f*) calls.
4162         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
4163         (main): Don't call all test_* functions from within
4164         #pragma omp teams reduction(|:err), call them directly.
4166 2020-08-04  Tom de Vries  <tdevries@suse.de>
4168         PR target/96428
4169         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
4170         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
4172 2020-08-03  Julian Brown  <julian@codesourcery.com>
4173             Thomas Schwinge  <thomas@codesourcery.com>
4175         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
4176         shared-memory devices.  Extend with further checking.
4178 2020-08-03  Martin Jambor  <mjambor@suse.cz>
4180         * plugin/Makefrag.am: Remove configuration of HSA plugin.
4181         * aclocal.m4: Regenerated.
4182         * Makefile.in: Regenerated.
4183         * config.h.in: Regenerated.
4184         * configure: Regenerated.
4185         * plugin/configfrag.ac: Likewise.
4186         * plugin/hsa_ext_finalize.h: Removed.
4187         * plugin/plugin-hsa.c: Likewise.
4188         * testsuite/Makefile.in: Regenerated.
4189         * testsuite/lib/libgomp.exp
4190         (offload_target_to_openacc_device_type): Remove hsa case.
4191         (check_effective_target_hsa_offloading_selected_nocache): Removed
4192         (check_effective_target_hsa_offloading_selected): Likewise.
4193         (libgomp_init): Do not add -Wno-hsa to additional_flags.
4194         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
4195         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4196         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
4197         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4198         * testsuite/libgomp.hsa.c/c.exp: Likewise.
4199         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4200         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
4201         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4202         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4203         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4204         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4205         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4206         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4207         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4208         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4209         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4210         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
4211         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4212         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
4213         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4214         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4215         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
4216         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4217         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4219 2020-07-27  Julian Brown  <julian@codesourcery.com>
4220             Thomas Schwinge  <thomas@codesourcery.com>
4222         * libgomp.h (struct target_var_desc): Rename do_detach field to
4223         is_attach.
4224         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
4225         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
4226         (goacc_enter_data_internal): Don't affect reference counts
4227         for attach mappings.
4228         (goacc_exit_data_internal): Don't affect reference counts for detach
4229         mappings.
4230         * target.c (gomp_map_vars_existing): Don't affect reference counts for
4231         attach mappings.
4232         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
4233         mark attach mappings.
4234         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
4235         reference count for attach mappings.
4236         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
4237         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4238         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4239         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
4240         test as shouldfail.
4241         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
4242         gracefully in no-finalize mode.
4243         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
4245 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
4247         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
4248         use.
4249         * testsuite/libgomp.oacc-c/c.exp: Likewise.
4250         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4252 2020-07-23  Julian Brown  <julian@codesourcery.com>
4253             Thomas Schwinge  <thomas@codesourcery.com>
4255         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
4256         finalization for detach operation.
4257         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
4258         New test.
4260 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
4262         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
4263         * libgomp_f.h.in (omp_check_defines): Check whether
4264         sizeof of determined Fortran kind and C typedef match.
4265         * omp_lib.f90.in: Add omp_depened_kind.
4266         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
4267         * configure: Regenerate.
4268         * Makefile.in: Regenerate.
4269         * testsuite/Makefile.in: Regenerate.
4271 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
4273         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
4274         gcc/testsuite/c-c++-common/gomp/.
4275         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
4276         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
4277         from gcc/testsuite/gfortran.dg/gomp/.
4278         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
4280 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
4282         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
4283         * omp_lib.h.in: Likewise.
4285 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
4287         PR target/95620
4288         * testsuite/libgomp.c/pr95620.c: New test.
4290 2020-07-16  Julian Brown  <julian@codesourcery.com>
4291             Thomas Schwinge  <thomas@codesourcery.com>
4293         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
4294         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
4296 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
4298         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
4299         avoid conversion on 32bit systems from 32bit to 64bit due
4300         to -fdefault-integer-8.
4302 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
4304         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
4305         variables; add character(kind=4) tests; update TODO comment.
4307 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
4309         * allocator.c: Add ialias for omp_init_allocator and
4310         omp_destroy_allocator.
4311         * configure.ac: Set INTPTR_T_KIND.
4312         * configure: Regenerate.
4313         * Makefile.in: Regenerate.
4314         * testsuite/Makefile.in: Regenerate.
4315         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
4316         omp_set_default_allocator_, omp_get_default_allocator_): New
4317         functions and ialias_redirect.
4318         * icv.c: Add ialias for omp_set_default_allocator and
4319         omp_get_default_allocator.
4320         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
4321         omp_destroy_allocator_, omp_set_default_allocator_ and
4322         omp_get_default_allocator_.
4323         * omp_lib.f90.in: Add allocator traits parameters, declare
4324         allocator routines and add related kind parameters.
4325         * omp_lib.h.in: Likewise.
4326         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
4327         * testsuite/libgomp.fortran/alloc-1.F90: New test.
4328         * testsuite/libgomp.fortran/alloc-2.F90: New test.
4329         * testsuite/libgomp.fortran/alloc-3.F: New test.
4330         * testsuite/libgomp.fortran/alloc-4.f90: New test.
4331         * testsuite/libgomp.fortran/alloc-5.f90: New test.
4333 2020-07-14  Tom de Vries  <tom@codesourcery.com>
4334             Cesar Philippidis  <cesar@codesourcery.com>
4335             Thomas Schwinge  <thomas@codesourcery.com>
4336             Kwok Cheung Yeung  <kcy@codesourcery.com>
4338         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
4339         New variable.
4340         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
4341         acc_init_state to initializing at the start, and to initialized at the
4342         end.
4343         (self_initializing_p): New function.
4344         (acc_get_device_type): Return acc_device_none if called by thread that
4345         is currently executing acc_init_1.
4346         * libgomp.texi (acc_get_device_type): Update documentation.
4347         (Implementation Status and Implementation-Defined Behavior): Likewise.
4348         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
4350 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
4352         * config/t-aix: Set BITS from compiler cpp macro.
4354 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
4356         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
4358 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
4360         PR fortran/67311
4361         * testsuite/libgomp.fortran/target-map-1.f90: New test.
4363 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
4365         * testsuite/libgomp.c/loop-21.c: New test.
4367 2020-07-13  Julian Brown  <julian@codesourcery.com>
4368             Thomas Schwinge  <thomas@codesourcery.com>
4370         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
4372 2020-07-10  Julian Brown  <julian@codesourcery.com>
4373             Thomas Schwinge  <thomas@codesourcery.com>
4375         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
4376         dynamic_refcount.
4377         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
4378         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
4379         dynamic_refcount.
4380         (acc_unmap_data): Update comment.
4381         (goacc_map_var_existing, goacc_enter_datum): Adjust for
4382         dynamic_refcount semantics.
4383         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
4384         Adjust for dynamic_refcount semantics.
4385         (goacc_enter_data_internal): Implement "present" case of dynamic
4386         memory-map handling here.  Update "non-present" case for
4387         dynamic_refcount semantics.
4388         (goacc_exit_data_internal): Use goacc_exit_datum_1.
4389         * target.c (gomp_map_vars_internal): Remove
4390         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
4391         handling.
4392         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
4393         (gomp_load_image_to_device): Substitute dynamic_refcount for
4394         virtual_refcount.
4395         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
4396         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
4397         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
4398         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
4399         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
4400         trace output.
4401         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
4402         trace output.
4403         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
4404         test.
4405         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4406         Remove stale comment.
4407         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
4408         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4409         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4410         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4411         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4412         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
4414 2020-07-10  Julian Brown  <julian@codesourcery.com>
4415             Thomas Schwinge  <thomas@codesourcery.com>
4417         * oacc-mem.c (goacc_map_var_existing): New function.
4418         (goacc_enter_datum): Use above function.
4419         (goacc_exit_datum_1): New function.
4420         (goacc_exit_datum): Use above function.
4422 2020-07-09  Julian Brown  <julian@codesourcery.com>
4423             Thomas Schwinge  <thomas@codesourcery.com>
4425         PR middle-end/95270
4426         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
4427         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
4429 2020-07-09  Julian Brown  <julian@codesourcery.com>
4431         * oacc-mem.c (find_group_last): Group data-movement clauses
4432         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
4433         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
4435 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
4437         * testsuite/libgomp.c/loop-19.c: New test.
4438         * testsuite/libgomp.c/loop-20.c: New test.
4440 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
4442         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
4443         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
4444         it.  Remove __omp_alloctrait_value_max__.
4445         * allocator.c (omp_init_allocator): Handle omp_atv_default for
4446         omp_atk_alignment and omp_atk_pool_size.
4448 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
4450         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
4451         behavior for 'GOMP_MAP_FORCE_FROM'.
4452         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
4454 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
4456         * oacc-mem.c (goacc_exit_data_internal): Remove
4457         'GOMP_MAP_ALWAYS_FROM' handling.
4459 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
4461         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
4462         'scan-assembler' with 'scan-offload-rtl'.
4463         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4464         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4465         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
4466         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
4468 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
4470         * target.c (gomp_map_vars_existing): Assert 'kind !=
4471         GOMP_MAP_ATTACH'.
4472         (gomp_map_vars_internal): Clean up.
4474 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
4476         * testsuite/libgomp.c/loop-17.c: New test.
4477         * testsuite/libgomp.c/loop-18.c: New test.
4479 2020-06-26  Marek Polacek  <polacek@redhat.com>
4481         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
4483 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
4485         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
4486         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
4488 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
4490         * Makefile.am: Use -include.
4491         * Makefile.in: Regenerate.
4493 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
4495         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
4496         * Makefile.in: Regenerate
4497         * configure.ac (tmake_file): Substitute.
4498         * configure: Regenerate.
4499         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
4500         * config/t-aix: New file.
4502 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
4504         PR lto/94848
4505         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
4506         'dg-do run'.
4508 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
4510         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
4511         variant for HSA_RUNTIME_LIB name.
4512         (find_executable_symbol_1): Delete.
4513         (find_executable_symbol): Delete.
4514         (init_kernel_properties): Add ".kd" suffix to symbol names.
4515         (find_load_offset): Delete.
4516         (create_and_finalize_hsa_program): Remove relocation handling.
4518 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
4520         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
4522 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
4524         PR lto/94848
4525         PR middle-end/95551
4526         * testsuite/libgomp.fortran/target-var.f90: New test.
4528 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
4529             Julian Brown  <julian@codesourcery.com>
4531         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
4532         special handling.
4534 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
4535             Julian Brown  <julian@codesourcery.com>
4537         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4538         Simplify.
4540 2020-06-05  Julian Brown  <julian@codesourcery.com>
4542         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
4543         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
4545 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4547         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4548         Evaluate 'copyfrom' individually for each entry.
4549         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
4551 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4553         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4554         Evaluate 'finalize' individually for each entry.
4555         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
4556         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
4557         file.
4559 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4561         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
4562         usage.
4563         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
4565 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4566             Julian Brown  <julian@codesourcery.com>
4568         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
4569         checking.
4570         (acc_unmap_data, goacc_exit_data_internal): Restore
4571         'is_tgt_unmapped' checking.
4572         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
4573         file.
4574         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
4575         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4576         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4577         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4578         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4579         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4581 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4582             Julian Brown  <julian@codesourcery.com>
4584         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
4586 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4588         PR libgomp/92854
4589         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
4591 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4593         PR libgomp/92854
4594         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
4595         more.
4597 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4598             Julian Brown  <julian@codesourcery.com>
4600         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
4601         'gomp_map_vars'.
4602          (acc_map_data): Clean up accordingly.
4604 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4606         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
4607         of over-eager 'finalize' clause.
4608         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
4609         file.
4610         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4611         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4612         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4613         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4614         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4615         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
4616         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4617         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
4619 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4621         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
4623 2020-06-04  Julian Brown  <julian@codesourcery.com>
4625         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
4626         error path.
4627         (goacc_detach_internal): Likewise.
4629 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
4631         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
4632         the checkpoint.
4633         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4634         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4635         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4636         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4637         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4639 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
4641         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
4642         defined.
4644 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
4646         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
4648 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
4650         * allocator.c (omp_alloc): For size == 0, return NULL early.
4652 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
4654         PR bootstrap/95413
4655         * configure: Regenerated.
4657 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
4659         PR libfortran/95191
4660         * testsuite/libgomp.fortran/async_io_9.f90: New test.
4662 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
4664         * omp.h.in (omp_uintptr_t): New typedef.
4665         (__GOMP_UINTPTR_T_ENUM): Define.
4666         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
4667         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
4668         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
4669         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
4670         omp_get_default_allocator, omp_alloc, omp_free): Declare.
4671         * libgomp.h (struct gomp_team_state): Add def_allocator field.
4672         (gomp_def_allocator): Declare.
4673         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
4674         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
4675         omp_alloc and omp_free.
4676         * team.c (gomp_team_start): Copy over ts.def_allocator.
4677         * env.c (gomp_def_allocator): New variable.
4678         (parse_wait_policy): Adjust function comment.
4679         (parse_allocator): New function.
4680         (handle_omp_display_env): Print OMP_ALLOCATOR.
4681         (initialize_env): Call parse_allocator.
4682         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
4683         * allocator.c: New file.
4684         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
4685         functions.
4686         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
4687         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
4688         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
4689         * Makefile.in: Regenerated.
4691 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4693         PR bootstrap/95147
4694         * configure: Regenerated.
4696 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
4698         PR libfortran/95119
4699         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
4701 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4703         * configure: Regenerated.
4705 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
4707         * testsuite/libgomp.c-c++-common/target-40.c: New test.
4709 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
4711         PR fortran/94690
4712         * testsuite/libgomp.fortran/pr66199-3.f90: New.
4713         * testsuite/libgomp.fortran/pr66199-4.f90: New.
4714         * testsuite/libgomp.fortran/pr66199-5.f90: New.
4715         * testsuite/libgomp.fortran/pr66199-6.f90: New.
4716         * testsuite/libgomp.fortran/pr66199-7.f90: New.
4717         * testsuite/libgomp.fortran/pr66199-8.f90: New.
4718         * testsuite/libgomp.fortran/pr66199-9.f90: New.
4720 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
4722         * testsuite/libgomp.c/target-39.c: New test.
4724 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
4726         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
4727         * openacc.f90 (acc_device_current): Likewise.
4728         * openacc.h (acc_device_current): Likewise.
4729         * openacc_lib.h (acc_device_current): Likewise.
4731         PR target/94282
4732         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
4733         'dg-allow-blank-lines-in-output'.
4735         * oacc-init.c (get_openacc_name): Handle 'gcn'.
4736         * testsuite/lib/libgomp.exp
4737         (offload_target_to_openacc_device_type) [amdgcn*]: Return
4738         'radeon'.  Adjust all users.
4739         (check_effective_target_openacc_amdgcn_accel_present): Rename
4740         to...
4741         (check_effective_target_openacc_radeon_accel_present): ... this.
4742         Adjust all users.
4743         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
4744         (check_effective_target_openacc_radeon_accel_selected): ... this.
4745         Adjust all users.
4747         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
4748         'dg-do run'.
4750 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
4752         PR other/94629
4754         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
4755         hsa_iterate_agents.
4756         (GOMP_OFFLOAD_init_device): Check return values from both calls to
4757         hsa_agent_iterate_regions.
4759 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
4761         PR middle-end/94635
4762         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
4763         run'.
4765 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
4767         PR middle-end/94120
4768         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
4769         test case.
4771 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
4773         PR middle-end/94635
4774         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
4776 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
4778         PR libgomp/92843
4779         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4780         Rename to...
4781         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
4782         ... this.
4783         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4784         Rename to...
4785         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
4786         ... this.
4787         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4788         Rename to...
4789         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
4790         ... this.
4791         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4792         Rename to...
4793         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
4794         ... this.
4795         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4796         Rename to...
4797         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
4798         ... this.
4799         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4800         Rename to...
4801         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
4802         ... this.
4803         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4804         Rename to...
4805         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
4806         ... this.
4807         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4808         Rename to...
4809         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4810         ... this.
4811         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4812         Rename to...
4813         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
4814         ... this.
4815         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4816         Rename to...
4817         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
4818         ... this.
4819         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4820         Rename to...
4821         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
4822         ... this.
4823         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4824         Rename to...
4825         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
4826         ... this.
4827         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4828         Rename to...
4829         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
4830         ... this.
4831         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4832         Rename to...
4833         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
4834         ... this.
4835         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4836         Rename to...
4837         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
4838         ... this.
4839         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
4840         Rename to...
4841         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
4842         ... this.
4844 2020-04-10  Julian Brown  <julian@codesourcery.com>
4845             Thomas Schwinge  <thomas@codesourcery.com>
4847         PR libgomp/92843
4848         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4849         New file.
4850         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4851         Likewise.
4852         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4853         Likewise.
4854         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4855         Likewise.
4856         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4857         Likewise.
4858         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4859         Likewise.
4860         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4861         Likewise.
4862         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4863         Likewise.
4864         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4865         Likewise.
4866         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4867         Likewise.
4868         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4869         Likewise.
4870         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4871         Likewise.
4872         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4873         Likewise.
4874         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4875         Likewise.
4876         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4877         Likewise.
4878         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
4879         Likewise.
4881 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
4883         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
4884         run'.
4886 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
4888         PR middle-end/94120
4889         * libgomp.oacc-c++/declare-pr94120.C: New.
4891 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
4893         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
4894         files.
4895         * configure: Regenerate.
4896         * testsuite/libgomp-site-extra.exp.in: New file.
4897         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
4898         variable.
4899         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
4900         variable.
4901         * testsuite/Makefile.in: Regenerate.
4903 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
4905         PR tree-optimization/89713
4906         PR c/94392
4907         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
4908         'bar.sync'.
4909         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4911 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
4913         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
4914         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
4916 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
4918         PR libgomp/81689
4919         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
4921 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
4923         PR libgomp/94251
4924         * target.c (gomp_load_image_to_device): Fix link
4925         variable handling.
4927 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
4929         PR c++/93931
4930         * testsuite/libgomp.c++/pr93931.C: New test.
4932 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
4934         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
4935         dg-allow-blank-lines-in-output.
4937 2020-03-18  Julian Brown <julian@codesourcery.com>
4938             Tobias Burnus  <tobias@codesourcery.com>
4940         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
4941         it work concurrently.
4943 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
4945         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
4946         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
4947         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
4949 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
4951         PR middle-end/93566
4952         * testsuite/libgomp.c/pr93566.c: New test.
4954 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
4956         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
4957         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
4958         integer(acc_device_property) for the type of the return value of
4959         acc_get_property.
4961 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
4963         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
4964         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
4965         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
4966         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
4967         (acc_set_device_num): Fix Fortran argument name, use same name for C.
4968         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
4969         corrections; add note about the previous interface and named constant.
4970         (OpenACC library and environment variables): Fix two typos.
4971         * openacc.f90: Use for all procedures the argument names from the spec
4972         as for â€¦_h they are user visible.
4973         (openacc_kinds): Rename acc_device_property to
4974         acc_device_property_kinds and change value to int32 ; and update users.
4975         Re-add acc_device_property for for backward compatibility.
4976         (acc_get_property_string_h): Clean up as acc_device_property_kind
4977         changed.
4978         (acc_get_property_h): Likewise and return c_size_t instead of
4979         acc_device_property.
4980         (openacc): Also export acc_device_property_kinds.
4981         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
4982         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
4983         handling; check against /= 0 instead of == 1 to match C.
4984         * openacc_lib.h: Use for all procedures the argument names from the spec
4985         as for â€¦_h they are user visible. Place !GCC$ into the first column to
4986         be active also for fixed-form souce form.
4987         (acc_device_current, acc_device_property_kind, acc_device_property,
4988         acc_property_memory, acc_property_free_memory, acc_property_name,
4989         acc_property_vendor, acc_property_driver): New named constants.
4990         (acc_get_property, acc_get_property_string): New generic interface.
4992 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
4994         PR libgomp/93481
4995         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
4996         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
4997         optional.
4998         (gomp_target_task_fn): Assert "devicep->async_run_func".
4999         (clear_unsupported_flags): New function to remove unsupported flags
5000         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
5001         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
5002         * testsuite/libgomp.c/target-33.c:
5003         Remove xfail for offload_target_nvptx.
5004         * testsuite/libgomp.c/target-34.c: Likewise.
5006 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
5008         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
5009         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
5010         * testsuite/libgomp.c/target-34.c: Likewise.
5011         * testsuite/libgomp.c/target-link-1.c: Add xfail for
5012         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
5014 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
5016         * testsuite/libgomp.c/target-38.c: New test.
5018 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
5020         PR libgomp/93515
5021         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
5023 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
5025         * testsuite/lib/libgomp.exp
5026         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
5027         and not as 'source' argument to libgomp_target_compile.
5029 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
5031         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
5032         (gcn_gfx801_s): Remove.
5033         (isa_hsa_name): Remove gfx801.
5034         (isa_gcc_name): Remove gfx801/carizzo.
5035         (isa_code): Remove gfx801.
5037 2020-02-03  Julian Brown  <julian@codesourcery.com>
5038             Tobias Burnus  <tobias@codesourcery.com>
5040         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
5041         and *_finalize variants; document acc_attach and acc_detach; update
5042         references from OpenACC 2.0 to 2.6.
5043         * openacc.f90 (openacc_version): Update to 201711.
5044         * openacc_lib.h (openacc_version): Update to 201711.
5045         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
5046         openacc_version to 201711.
5047         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
5049 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
5051         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
5052         and vgpr_count fields.
5053         (struct kernel_info): Add a field for a hsa_kernel_description.
5054         (run_kernel): Reduce the number of threads/workers if the requested
5055         number would require too many VGPRs.
5056         (init_basic_kernel_info): Initialize description field with
5057         the hsa_kernel_description entry for the kernel.
5059 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
5061         PR bootstrap/93409
5062         * plugin/configfrag.ac (enable_offload_targets): Skip
5063         HSA and GCN plugin besides -m32 also for -mx32.
5064         * configure: Regenerate.
5066 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
5068         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
5070 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
5072         * plugin-gcn.c (struct agent_info): Add fields "name" and
5073         "vendor_name" ...
5074         (GOMP_OFFLOAD_init_device): ... and init from here.
5075         (struct hsa_context_info): Add field "driver_version_s" ...
5076         (init_hsa_contest): ... and init from here.
5077         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
5078         implementation.
5079         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5080         Enable test execution for amdgcn and host offloading targets.
5081         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
5082         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5083         (expect_device_properties): Split function into ...
5084         (expect_device_string_properties): ... this new function ...
5085         (expect_device_memory): ... and this new function.
5086         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
5087         Add test.
5089 2020-01-28  Julian Brown  <julian@codesourcery.com>
5091         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
5092         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
5093         component/non-component variable refs in a single directive.
5094         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
5096 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
5098         * configure.ac: Handle `--with-toolexeclibdir='.
5099         * Makefile.in: Regenerate.
5100         * aclocal.m4: Regenerate.
5101         * configure: Regenerate.
5102         * testsuite/Makefile.in: Regenerate.
5104 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
5106         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5107         (expect_device_properties): Remove "expected_free_mem" argument,
5108         change "expected_total_mem" argument type to size_t;
5109         change types of acc_get_property results to size_t,
5110         adapt format strings.
5111         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5112         Use %zu instead of %zd to print size_t values.
5113         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
5114         rename to ...
5115         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
5116         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
5117         rename to ...
5118         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
5120 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
5122         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
5123         the device id.
5125 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
5127         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
5128         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
5129         Adjust test dimensions for amdgcn.
5130         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
5131         gang/worker/vector expectations dynamically.
5132         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
5133         (main): Likewise.
5134         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
5135         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
5136         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
5137         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
5138         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
5139         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
5140         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
5141         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
5142         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5143         (acc_gang): Recognise acc_device_radeon.
5144         (acc_worker): Likewise.
5145         (acc_vector): Likewise.
5146         (main): Set expectations for amdgcn.
5147         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
5148         (main): Adjust gang/worker/vector expectations dynamically.
5149         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
5150         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
5151         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
5152         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
5153         for amdgcn.
5155 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
5157         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
5158         acc_device_radeon.
5159         (openacc): Likewise.
5160         * openacc.f90 (openacc_kinds): Likewise.
5161         (openacc): Likewise.
5162         * openacc.h (acc_device_t): Likewise.
5163         * openacc_lib.h: Likewise.
5164         * testsuite/lib/libgomp.exp
5165         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
5166         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
5167         (cb_compute_construct_end): Likewise.
5168         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5169         (cb_enqueue_launch_start): Likewise.
5170         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
5171         (cb_enter_data_end): Likewise.
5172         (cb_exit_data_start): Likewise.
5173         (cb_exit_data_end): Likewise.
5174         (cb_compute_construct_end): Likewise.
5175         (cb_enqueue_launch_start): Likewise.
5176         (cb_enqueue_launch_end): Likewise.
5177         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
5178         (main): Likewise.
5180 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
5182         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
5183         to use this instead of 'enum gomp_device_property'.
5184         (GOMP_OFFLOAD_get_property): Rename to...
5185         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
5186         * libgomp.h (struct gomp_device_descr): Move
5187         'GOMP_OFFLOAD_openacc_get_property'...
5188         (struct acc_dispatch_t): ... here.  Adjust all users.
5189         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
5191         * target.c (gomp_map_vars_internal)
5192         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
5193         paths.
5195 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
5197         PR libgomp/93219
5198         * libgomp.h (gomp_print_string): Change return type from void to int.
5199         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
5200         not all characters have been written.
5202 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
5204         * libgomp.texi: Fix typos, use https.
5206 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
5208         * testsuite/libgomp.fortran/optional-map.f90: Add test for
5209         unallocated/disassociated actual arguments to nonallocatable/nonpointer
5210         dummy arguments; those are/shall be regarded as absent arguments.
5211         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5212         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
5214 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
5216         Update copyright years.
5218         * libgomp.texi: Bump @copying's copyright year.
5220 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
5222         PR libgomp/93065
5223         * oacc-init.c (goacc_runtime_deinitialize): New function.
5225 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
5227         PR bootstrap/93074
5228         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
5229         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
5231 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
5232             Frederik Harwath  <frederik@codesourcery.com>
5233             Thomas Schwinge  <tschwinge@codesourcery.com>
5235         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
5236         * libgomp-plugin.h (gomp_device_property_value): New union.
5237         (gomp_device_property_value): New prototype.
5238         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
5239         constant.
5240         (acc_device_property_t): New enum.
5241         (acc_get_property, acc_get_property_string): New prototypes.
5242         * oacc-init.c (acc_get_device_type): Also assert that result
5243         is not `acc_device_current'.
5244         (get_property_any, acc_get_property, acc_get_property_string):
5245         New functions.
5246         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
5247         `acc_property_memory', `acc_property_free_memory',
5248         `acc_property_name', `acc_property_vendor' and
5249         `acc_property_driver' constants.  Add `acc_device_property' data
5250         type.
5251         (openacc_internal): Add `acc_get_property' and
5252         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
5253         `acc_get_property_string_h', `acc_get_property_l' and
5254         `acc_get_property_string_l'.
5255         * oacc-host.c (host_get_property): New function.
5256         (host_dispatch): Wire it.
5257         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
5258         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
5259         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
5260         * libgomp.texi (OpenACC Runtime Library Routines): Add
5261         `acc_get_property'.
5262         (acc_get_property): New node.
5263         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
5264         function (stub).
5265         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
5266         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
5267         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
5268         calls.
5269         (GOMP_OFFLOAD_get_property): New function.
5270         (struct ptx_device): Add new field "name".
5271         (cuda_driver_version_s): Add new static variable ...
5272         (nvptx_init): ... and init from here.
5274         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
5275         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
5276         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
5277         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
5278         with test helper functions.
5280         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
5282 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
5284         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
5285         variable.
5287 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
5289         * target.c (gomp_map_vars_internal): Restore 'omp declare target
5290         link' handling.
5292 2019-12-19  Julian Brown  <julian@codesourcery.com>
5294         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
5295         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
5296         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
5298 2019-12-19  Julian Brown  <julian@codesourcery.com>
5299             Cesar Philippidis  <cesar@codesourcery.com>
5301         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
5302         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
5303         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
5304         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
5305         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
5306         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
5307         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
5308         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
5309         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
5310         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
5311         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
5312         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
5313         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
5315 2019-12-19  Julian Brown  <julian@codesourcery.com>
5317         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
5318         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
5319         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
5320         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
5321         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
5322         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
5323         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
5324         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
5325         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
5326         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
5327         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
5328         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
5330 2019-12-19  Julian Brown  <julian@codesourcery.com>
5332         * libgomp.h (struct target_var_desc): Add do_detach flag.
5333         * oacc-init.c (acc_shutdown_1): Free aux block if present.
5334         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
5335         struct components.  Tidy up and add some new checks.
5336         (goacc_enter_data_internal): Update call to find_group_last.
5337         (goacc_exit_data_internal): Support detach operations and
5338         GOMP_MAP_STRUCT.
5339         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
5340         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
5341         attach/detach in enter/exit data detection code.
5342         * target.c (gomp_map_vars_existing): Initialise do_detach field of
5343         tgt_var_desc.
5344         (gomp_map_vars_internal): Support attach.
5345         (gomp_unmap_vars_internal): Support detach.
5347 2019-12-19  Julian Brown  <julian@codesourcery.com>
5348             Thomas Schwinge  <thomas@codesourcery.com>
5350         * libgomp.h (struct splay_tree_aux): Add attach_count field.
5351         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
5352         * libgomp.map (OACC_2.6): New section. Add acc_attach,
5353         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
5354         acc_detach_finalize_async.
5355         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
5356         acc_detach, acc_detach_async, acc_detach_finalize,
5357         acc_detach_finalize_async): New functions.
5358         * openacc.h (acc_attach, acc_attach_async, acc_detach,
5359         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
5360         prototypes.
5361         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
5362         (gomp_remove_var_internal): Free attachment counts if present.
5363         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
5364         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
5366 2019-12-19  Julian Brown  <julian@codesourcery.com>
5367             Cesar Philippidis  <cesar@codesourcery.com>
5369         * libgomp.h (gomp_map_val): Add prototype.
5370         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
5371         open-coding device-address calculation.
5372         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
5373         non-present case.
5375 2019-12-19  Julian Brown  <julian@codesourcery.com>
5377         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
5378         field for virtual_refcount.
5379         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5380         (gomp_free_memmap): Remove prototype.
5381         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
5382         instead of calling gomp_free_memmap.
5383         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
5384         dynamic_refcount.
5385         (acc_unmap_data): Open code instead of forcing target_mem_desc's
5386         to_free field to NULL then calling gomp_unmap_vars.  Handle
5387         REFCOUNT_INFINITY on target blocks.
5388         (goacc_enter_data): Rename to...
5389         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
5390         handling for mapping groups.  Use virtual_refcount instead of
5391         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
5392         map_map_vars_async call.  Re-do lookup for target pointer return value.
5393         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
5394         renamed goacc_enter_datum function.
5395         (goacc_exit_data): Rename to...
5396         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
5397         (acc_delete, acc_delete_async, acc_delete_finalize,
5398         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
5399         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
5400         goacc_exit_datum function.
5401         (gomp_acc_remove_pointer, find_pointer): Remove functions.
5402         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
5403         New functions.
5404         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
5405         goacc_exit_data_internal helper functions.
5406         * target.c (gomp_map_vars_internal): Handle
5407         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
5408         semantics.
5409         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
5410         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
5411         virtual_refcount field instead of dynamic_refcount.
5412         (gomp_free_memmap): Remove function.
5413         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
5414         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
5415         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
5417 2019-12-19  Julian Brown  <julian@codesourcery.com>
5418             Thomas Schwinge  <thomas@codesourcery.com>
5420         * libgomp.h (struct splay_tree_aux): New.
5421         (struct splay_tree_key_s): Replace link_key field with aux pointer.
5422         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
5423         to aux struct.
5424         (gomp_remove_var_internal): Free aux block if present.
5425         (gomp_load_image_to_device): Zero-initialise aux field instead of
5426         link_key field.
5427         (omp_target_associate_pointer): Zero-initialise aux field.
5429 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
5431         PR middle-end/86416
5432         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
5433         q or none.
5434         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
5435         L or none.
5437 2019-12-19  Julian Brown  <julian@codesourcery.com>
5438             Maciej W. Rozycki  <macro@codesourcery.com>
5439             Tobias Burnus  <tobias@codesourcery.com>
5440             Thomas Schwinge  <thomas@codesourcery.com>
5442         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
5443         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
5444         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
5445         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
5446         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
5447         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
5448         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
5449         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
5450         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
5452 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
5454         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5455         called...
5456         (goacc_insert_pointer): ... from here, "present" case.
5457         (goacc_insert_pointer): Inline function into...
5458         (GOACC_enter_exit_data): ... here, and simplify.
5460         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5461         called...
5462         (goacc_insert_pointer): ... from here, "not present" case.
5464         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
5465         all users.
5467         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
5468         'goacc_enter_data', 'goacc_exit_data'.
5470         * oacc-mem.c (delete_copyout): Refactor into...
5471         (goacc_exit_data): ... this.  Adjust all users.
5473         * oacc-mem.c (present_create_copy): Refactor into...
5474         (goacc_enter_data): ... this.  Adjust all users.
5476         * target.c (gomp_unmap_vars_internal): Add a safeguard to
5477         'gomp_remove_var'.
5479         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
5480         like 'GOMP_MAP_FROM'.
5482         PR libgomp/92726
5483         PR libgomp/92970
5484         PR libgomp/92984
5485         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
5486         fails.
5487         (GOACC_enter_exit_data): Simplify accordingly.
5488         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
5489         subsuming...
5490         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
5491         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
5492         file.
5493         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
5494         subsuming...
5495         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
5496         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
5497         file.
5498         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
5499         subsuming...
5500         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
5502         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
5503         'finalize' handling.
5505         PR libgomp/92848
5506         * oacc-mem.c (acc_map_data, present_create_copy)
5507         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
5508         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
5509         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
5510         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
5511         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
5512         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
5513         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
5514         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5515         Remove "XFAIL"s.
5517         * target.c (gomp_unmap_tgt): Make it 'static'.
5518         * libgomp.h (gomp_unmap_tgt): Remove.
5520 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
5522         PR middle-end/86416
5523         * testsuite/libgomp.c/pr86416-1.c: New.
5524         * testsuite/libgomp.c/pr86416-2.c: New.
5526 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
5528         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
5529         all symbols as public except for the 'use â€¦, only' imported symbol,
5530         which is private.
5531         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5532         all symbols from module openacc_kinds as PUBLIC
5533         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
5534         fix comment typo.
5535         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
5537 2019-12-13  Julian Brown  <julian@codesourcery.com>
5539         PR libgomp/92881
5541         * libgomp.h (gomp_remove_var_async): Add prototype.
5542         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
5543         gomp_remove_var.
5544         * target.c (gomp_unref_tgt): Change return type to bool, indicating
5545         whether target_mem_desc was unmapped.
5546         (gomp_unref_tgt_void): New.
5547         (gomp_remove_var): Reimplement in terms of...
5548         (gomp_remove_var_internal): ...this new helper function.
5549         (gomp_remove_var_async): New, implemented using above helper function.
5550         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
5551         gomp_unref_tgt.
5553 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
5555         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
5556         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
5557         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
5558         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
5559         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
5560         Likewise.
5561         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
5562         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
5564 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
5566         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
5567         as public except for the 'use â€¦, only' imported symbol, which is
5568         private.
5569         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5570         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
5571         attributes for acc_copyout_finalize and acc_delete_finalize.
5573 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
5575         PR fortran/92899
5576         * testsuite/libgomp.fortran/atomic1.f90: New test.
5578 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
5580         PR libgomp/92843
5581         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
5582         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
5583         assertions.
5584         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
5585         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
5586         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
5587         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5588         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5590         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
5591         * oacc-mem.c: ... here.
5592         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
5593         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
5594         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
5595         Remove.
5596         * libgomp_g.h: Update.
5598         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
5599         * oacc-async.c: ... here.
5600         * oacc-int.h (goacc_wait): Declare.
5601         * libgomp_g.h: Update
5603         PR libgomp/92854
5604         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
5605         New file.
5606         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
5607         Likewise.
5608         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
5609         Likewise.
5610         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
5611         Likewise.
5612         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
5613         Likewise.
5614         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
5615         Likewise.
5617 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
5618             Julian Brown  <julian@codesourcery.com>
5620         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
5621         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
5623 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
5625         * omp_lib.h.in: Fix spelling of function declaration
5626         omp_get_cancell(l)ation.
5627         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
5628         Fix typos.
5629         * env.c: Fix comment typos.
5630         * oacc-host.c: Likewise.
5631         * ordered.c: Likewise.
5632         * task.c: Likewise.
5633         * team.c: Likewise.
5634         * config/gcn/task.c: Likewise.
5635         * config/gcn/team.c: Likewise.
5636         * config/nvptx/task.c: Likewise.
5637         * config/nvptx/team.c: Likewise.
5638         * plugin/plugin-gcn.c: Likewise.
5639         * testsuite/libgomp.fortran/jacobi.f: Likewise.
5640         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5641         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
5643 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
5645         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
5646         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
5647         unnecessary 'dg-additional-options "-w"'.
5649 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
5650             Julian Brown  <julian@codesourcery.com>
5652         PR libgomp/92116
5653         PR libgomp/92877
5655         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
5656         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
5657         Adjust all users.
5658         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5659         Remove XFAIL.
5660         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5661         Likewise.
5662         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
5664 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
5666         PR libgomp/92503
5667         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
5668         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
5669         file.
5670         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
5671         Likewise.
5672         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
5673         Likewise.
5674         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
5675         Likewise.
5676         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5677         Likewise.
5678         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5679         Likewise.
5680         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5681         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5682         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5683         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5684         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5685         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5686         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5687         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5688         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
5689         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5691         PR libgomp/92840
5692         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
5693         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
5694         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
5695         New file.
5696         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
5697         Likewise.
5698         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
5699         Likewise.
5700         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5701         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
5703         PR libgomp/92511
5704         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
5705         this file...
5706         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
5707         this file...
5708         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
5709         file...
5710         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
5711         file...
5712         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5713         ... with their content moved into, and extended in this new file.
5714         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
5715         New file.
5716         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
5717         Likewise.
5718         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
5719         Likewise.
5720         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
5721         Likewise.
5723         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
5725         PR libgomp/92854
5726         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
5728         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
5730         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
5732 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
5734         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
5735         unique.
5736         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
5737         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5738         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
5739         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
5740         Ditto.
5741         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
5742         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
5744 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
5746         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
5748 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
5749             Kwok Cheung Yeung <kcy@codesourcery.com>
5751         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
5752         if input it a NULL pointer.
5753         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
5754         diagnostic of NULL pointer.
5755         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
5756         * testsuite/libgomp.fortran/optional-map.f90: New.
5757         * testsuite/libgomp.fortran/use_device_addr-1.f90
5758         (test_dummy_opt_callee_1_absent): New.
5759         (test_dummy_opt_call_1): Call it.
5760         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
5761         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
5762         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
5763         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
5764         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
5765         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
5766         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
5767         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
5768         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
5769         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
5770         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
5771         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
5772         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
5773         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
5774         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
5775         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
5777 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
5779         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
5780         expect dg-output of 'Error termination.' for GCN.
5781         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5782         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5784 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
5786         PR fortran/92756
5787         * testsuite/libgomp.fortran/teams1.f90: New test.
5788         * testsuite/libgomp.fortran/teams2.f90: New test.
5790 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
5792         * oacc-init.c (acc_known_device_type): Add function.
5793         (unknown_device_type_error): Add function.
5794         (name_of_acc_device_t): Change to call unknown_device_type_error
5795         on unknown type.
5796         (resolve_device): Use acc_known_device_type.
5797         (acc_init): Fail if acc_device_t argument is not valid.
5798         (acc_shutdown): Likewise.
5799         (acc_get_num_devices): Likewise.
5800         (acc_set_device_type): Likewise.
5801         (acc_get_device_num): Likewise.
5802         (acc_set_device_num): Likewise.
5803         (acc_on_device): Add comment that argument validity is not checked.
5805 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
5807         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5808         Recognize amdgcn.
5809         (check_effective_target_openacc_amdgcn_accel_present): New proc.
5810         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
5811         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
5812         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5813         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5815 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5817         PR libgomp/91938
5818         * configure.tgt: Avoid IE tls on *-*-musl*.
5820 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
5822         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
5823         adding a common-block test case.
5825 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
5827         PR c++/60228
5828         * testsuite/libgomp.c++/udr-20.C: New test.
5829         * testsuite/libgomp.c++/udr-21.C: New test.
5831 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
5833         * testsuite/lib/libgomp.exp
5834         (check_effective_target_offload_target_nvptx): New proc.
5835         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
5836         'dg-skip-if'.
5837         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
5838         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
5839         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
5841 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5843         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
5844         * testsuite/libgomp.c/pr39591-2.c: Likewise.
5845         * testsuite/libgomp.c/pr39591-3.c: Likewise.
5846         * testsuite/libgomp.c/private-1.c: Likewise.
5847         * testsuite/libgomp.c/task-1.c: Likewise.
5848         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
5850 2019-11-20  Julian Brown  <julian@codesourcery.com>
5852         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
5853         aq->mutex here.
5854         (queue_push_launch): Lock aq->mutex before calling
5855         wait_for_queue_nonfull.
5856         (queue_push_callback): Likewise.
5857         (queue_push_asyncwait): Likewise.
5858         (queue_push_placeholder): Likewise.
5860 2019-11-20  Julian Brown  <julian@codesourcery.com>
5862         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
5863         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
5864         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
5865         return code.
5867 2019-11-20  Julian Brown  <julian@codesourcery.com>
5869         PR libgomp/92511
5871         * oacc-mem.c (present_create_copy): Fix device pointer return value in
5872         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
5873         in non-present/create case.
5874         (delete_copyout): Change error condition to fail only on copies outside
5875         of mapped block.  Adjust error message accordingly.
5876         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
5877         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
5878         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
5879         message.
5880         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5881         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
5882         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5884 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
5886         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
5887         libatomic in build-tree testing.
5889 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
5891         * testsuite/Makefile.in: Regenerate.
5893 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
5895         * testsuite/libgomp.c/target-print-1.c: New file.
5896         * testsuite/libgomp.fortran/target-print-1.f90: New file.
5897         * testsuite/libgomp.oacc-c/print-1.c: New file.
5898         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
5900 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
5901             Kwok Cheung Yeung  <kcy@codesourcery.com>
5902             Julian Brown  <julian@codesourcery.com>
5903             Tom de Vries  <tom@codesourcery.com>
5905         * plugin/Makefrag.am: Add amdgcn plugin support.
5906         * plugin/configfrag.ac: Likewise.
5907         * plugin/plugin-gcn.c: New file.
5908         * configure: Regenerate.
5909         * Makefile.in: Regenerate.
5910         * testsuite/Makefile.in: Regenerate.
5912 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
5914         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
5915         and use team_malloc variants.
5916         (gomp_gcn_exit_kernel): Use team_free.
5917         * libgomp.h (TEAM_ARENA_SIZE): Define.
5918         (TEAM_ARENA_START): Define.
5919         (TEAM_ARENA_FREE): Define.
5920         (TEAM_ARENA_END): Define.
5921         (team_malloc): New function.
5922         (team_malloc_cleared): New function.
5923         (team_free): New function.
5924         * team.c (gomp_new_team): Initialize and use team_malloc.
5925         (free_team): Use team_free.
5926         (gomp_free_thread): Use team_free.
5927         (gomp_pause_host): Use team_free.
5928         * work.c (gomp_init_work_share): Use team_malloc.
5929         (gomp_fini_work_share): Use team_free.
5931 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
5932             Kwok Cheung Yeung  <kcy@codesourcery.com>
5933             Julian Brown  <julian@codesourcery.com>
5934             Tom de Vries  <tom@codesourcery.com>
5936         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
5937         * Makefile.in: Regenerate.
5938         * config.h.in (PLUGIN_GCN): Add new undef.
5939         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
5940         * config/gcn/affinity-fmt.c: New file.
5941         * config/gcn/bar.c: New file.
5942         * config/gcn/bar.h: New file.
5943         * config/gcn/doacross.h: New file.
5944         * config/gcn/icv-device.c: New file.
5945         * config/gcn/oacc-target.c: New file.
5946         * config/gcn/simple-bar.h: New file.
5947         * config/gcn/target.c: New file.
5948         * config/gcn/task.c: New file.
5949         * config/gcn/team.c: New file.
5950         * config/gcn/time.c: New file.
5951         * configure.ac: Add amdgcn*-*-*.
5952         * configure: Regenerate.
5953         * configure.tgt: Add amdgcn*-*-*.
5954         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
5955         * libgomp.h (gcn_thrs): Add amdgcn variant.
5956         (set_gcn_thrs): Likewise.
5957         (gomp_thread): Likewise.
5958         * oacc-int.h (goacc_thread): Likewise.
5959         * oacc-target.c: New file.
5960         * openacc.f90 (acc_device_gcn): New parameter.
5961         * openacc.h (acc_device_t): Add acc_device_gcn.
5962         * team.c (gomp_free_pool_helper): Add amdgcn support.
5964 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
5965             Julian Brown  <julian@codesourcery.com>
5967         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
5968         parameter.
5969         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
5970         queue constructor.
5971         * oacc-host.c (host_openacc_async_construct): Add device parameter.
5972         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
5973         device parameter.
5975 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
5977         * configure.tgt (nvptx*-*-*): Add "accel" directory.
5978         * config/nvptx/libgomp-plugin.c: Move ...
5979         * config/accel/libgomp-plugin.c: ... to here.
5980         * config/nvptx/lock.c: Move ...
5981         * config/accel/lock.c: ... to here.
5982         * config/nvptx/mutex.c: Move ...
5983         * config/accel/mutex.c: ... to here.
5984         * config/nvptx/mutex.h: Move ...
5985         * config/accel/mutex.h: ... to here.
5986         * config/nvptx/oacc-async.c: Move ...
5987         * config/accel/oacc-async.c: ... to here.
5988         * config/nvptx/oacc-cuda.c: Move ...
5989         * config/accel/oacc-cuda.c: ... to here.
5990         * config/nvptx/oacc-host.c: Move ...
5991         * config/accel/oacc-host.c: ... to here.
5992         * config/nvptx/oacc-init.c: Move ...
5993         * config/accel/oacc-init.c: ... to here.
5994         * config/nvptx/oacc-mem.c: Move ...
5995         * config/accel/oacc-mem.c: ... to here.
5996         * config/nvptx/oacc-plugin.c: Move ...
5997         * config/accel/oacc-plugin.c: ... to here.
5998         * config/nvptx/omp-lock.h: Move ...
5999         * config/accel/omp-lock.h: ... to here.
6000         * config/nvptx/openacc.f90: Move ...
6001         * config/accel/openacc.f90: ... to here.
6002         * config/nvptx/pool.h: Move ...
6003         * config/accel/pool.h: ... to here.
6004         * config/nvptx/proc.c: Move ...
6005         * config/accel/proc.c: ... to here.
6006         * config/nvptx/ptrlock.c: Move ...
6007         * config/accel/ptrlock.c: ... to here.
6008         * config/nvptx/ptrlock.h: Move ...
6009         * config/accel/ptrlock.h: ... to here.
6010         * config/nvptx/sem.c: Move ...
6011         * config/accel/sem.c: ... to here.
6012         * config/nvptx/sem.h: Move ...
6013         * config/accel/sem.h: ... to here.
6014         * config/nvptx/thread-stacksize.h: Move ...
6015         * config/accel/thread-stacksize.h: ... to here.
6017 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
6018             Tobias Burnus  <tobias@codesourcery.com>
6019             Frederik Harwath  <frederik@codesourcery.com>
6020             Thomas Schwinge  <thomas@codesourcery.com>
6022         libgomp/
6023         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
6024         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
6025         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
6027 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
6028             Kwok Cheung Yeung  <kcy@codesourcery.com>
6030         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
6031         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
6033 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
6035         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
6037         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
6038         run'.
6039         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
6040         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
6042 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
6044         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
6045         Add expected warnings about missing reduction clauses.
6046         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6047         Likewise.
6048         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
6049         Likewise.
6050         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
6051         Likewise.
6053 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
6055         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
6056         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
6057         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
6058         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6059         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6060         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6062 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
6064         PR fortran/92305
6065         * testsuite/libgomp.fortran/allocatable2.f90: Use
6066         unique numbers with 'stop'.
6067         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6068         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6069         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
6070         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
6071         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
6073 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
6075         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
6076         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
6077         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
6078         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
6079         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
6080         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
6082 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
6084         * testsuite/libgomp.fortran/target9.f90: New.
6086 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
6088         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
6089         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
6090         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
6091         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
6092         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
6093         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
6094         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
6095         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
6096         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
6097         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
6098         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
6099         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
6100         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
6101         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
6102         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
6103         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
6104         * testsuite/libgomp.fortran/associate1.f90: Ditto.
6105         * testsuite/libgomp.fortran/associate2.f90: Ditto.
6106         * testsuite/libgomp.fortran/associate3.f90: Ditto.
6107         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
6108         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
6109         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
6110         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
6111         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
6112         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
6113         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
6114         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
6115         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
6116         * testsuite/libgomp.fortran/character1.f90: Ditto.
6117         * testsuite/libgomp.fortran/character2.f90: Ditto.
6118         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
6119         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
6120         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
6121         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
6122         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
6123         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
6124         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
6125         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
6126         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
6127         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
6128         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
6129         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
6130         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
6131         * testsuite/libgomp.fortran/do1.f90: Ditto.
6132         * testsuite/libgomp.fortran/do2.f90: Ditto.
6133         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
6134         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
6135         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
6136         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
6137         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
6138         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
6139         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
6140         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
6141         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
6142         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
6143         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
6144         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
6145         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
6146         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
6147         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
6148         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
6149         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
6150         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
6151         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
6152         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
6153         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
6154         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
6155         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
6156         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
6157         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
6158         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
6159         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
6160         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
6161         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
6162         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
6163         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
6164         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
6165         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
6166         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
6167         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
6168         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
6169         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
6170         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
6171         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
6172         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
6173         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
6174         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
6175         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
6176         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
6177         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
6178         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
6179         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
6180         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
6181         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
6182         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6183         * testsuite/libgomp.fortran/lib1.f90: Ditto.
6184         * testsuite/libgomp.fortran/lib4.f90: Ditto.
6185         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
6186         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
6187         * testsuite/libgomp.fortran/nested1.f90: Ditto.
6188         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
6189         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
6190         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
6191         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6192         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
6193         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
6194         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6195         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
6196         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
6197         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
6198         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
6199         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
6200         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
6201         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
6202         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6203         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
6204         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6205         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
6206         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
6207         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
6208         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
6209         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
6210         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
6211         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
6212         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6213         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
6214         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
6215         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
6216         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
6217         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
6218         * testsuite/libgomp.fortran/pr28390.f: Ditto.
6219         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
6220         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
6221         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
6222         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
6223         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6224         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
6225         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
6226         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
6227         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
6228         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
6229         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
6230         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
6231         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
6232         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
6233         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
6234         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
6235         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
6236         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
6237         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
6238         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
6239         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
6240         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
6241         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
6242         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
6243         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
6244         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6245         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
6246         * testsuite/libgomp.fortran/reference1.f90: Ditto.
6247         * testsuite/libgomp.fortran/reference2.f90: Ditto.
6248         * testsuite/libgomp.fortran/retval1.f90: Ditto.
6249         * testsuite/libgomp.fortran/retval2.f90: Ditto.
6250         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
6251         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
6252         * testsuite/libgomp.fortran/simd1.f90: Ditto.
6253         * testsuite/libgomp.fortran/simd2.f90: Ditto.
6254         * testsuite/libgomp.fortran/simd3.f90: Ditto.
6255         * testsuite/libgomp.fortran/simd4.f90: Ditto.
6256         * testsuite/libgomp.fortran/simd5.f90: Ditto.
6257         * testsuite/libgomp.fortran/simd6.f90: Ditto.
6258         * testsuite/libgomp.fortran/simd7.f90: Ditto.
6259         * testsuite/libgomp.fortran/stack.f90: Ditto.
6260         * testsuite/libgomp.fortran/strassen.f90: Ditto.
6261         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
6262         * testsuite/libgomp.fortran/tabs2.f: Ditto.
6263         * testsuite/libgomp.fortran/target1.f90: Ditto.
6264         * testsuite/libgomp.fortran/target2.f90: Ditto.
6265         * testsuite/libgomp.fortran/target3.f90: Ditto.
6266         * testsuite/libgomp.fortran/target4.f90: Ditto.
6267         * testsuite/libgomp.fortran/target5.f90: Ditto.
6268         * testsuite/libgomp.fortran/target6.f90: Ditto.
6269         * testsuite/libgomp.fortran/target7.f90: Ditto.
6270         * testsuite/libgomp.fortran/target8.f90: Ditto.
6271         * testsuite/libgomp.fortran/task1.f90: Ditto.
6272         * testsuite/libgomp.fortran/task2.f90: Ditto.
6273         * testsuite/libgomp.fortran/task3.f90: Ditto.
6274         * testsuite/libgomp.fortran/task4.f90: Ditto.
6275         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6276         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6277         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6278         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6279         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6280         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
6281         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
6282         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
6283         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
6284         * testsuite/libgomp.fortran/udr1.f90: Ditto.
6285         * testsuite/libgomp.fortran/udr10.f90: Ditto.
6286         * testsuite/libgomp.fortran/udr11.f90: Ditto.
6287         * testsuite/libgomp.fortran/udr12.f90: Ditto.
6288         * testsuite/libgomp.fortran/udr13.f90: Ditto.
6289         * testsuite/libgomp.fortran/udr14.f90: Ditto.
6290         * testsuite/libgomp.fortran/udr15.f90: Ditto.
6291         * testsuite/libgomp.fortran/udr2.f90: Ditto.
6292         * testsuite/libgomp.fortran/udr3.f90: Ditto.
6293         * testsuite/libgomp.fortran/udr4.f90: Ditto.
6294         * testsuite/libgomp.fortran/udr5.f90: Ditto.
6295         * testsuite/libgomp.fortran/udr6.f90: Ditto.
6296         * testsuite/libgomp.fortran/udr7.f90: Ditto.
6297         * testsuite/libgomp.fortran/udr8.f90: Ditto.
6298         * testsuite/libgomp.fortran/udr9.f90: Ditto.
6299         * testsuite/libgomp.fortran/vla1.f90: Ditto.
6300         * testsuite/libgomp.fortran/vla2.f90: Ditto.
6301         * testsuite/libgomp.fortran/vla3.f90: Ditto.
6302         * testsuite/libgomp.fortran/vla4.f90: Ditto.
6303         * testsuite/libgomp.fortran/vla5.f90: Ditto.
6304         * testsuite/libgomp.fortran/vla6.f90: Ditto.
6305         * testsuite/libgomp.fortran/vla7.f90: Ditto.
6306         * testsuite/libgomp.fortran/vla8.f90: Ditto.
6307         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6308         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6310 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
6312         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
6313         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
6314         Ditto; add 'dg-do run' for torture testing.
6315         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
6316         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6317         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6318         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6319         * testsuite/libgomp.fortran/pr28390.f: Ditto.
6320         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6321         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
6322         * testsuite/libgomp.fortran/task2.f90: Ditto.
6323         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6324         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6325         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6326         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6327         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6328         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6330 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
6332         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
6333         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
6334         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
6335         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
6336         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
6337         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
6338         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
6339         Use 'stop' not abort().
6340         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
6341         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
6342         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
6343         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
6344         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
6345         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
6346         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
6347         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
6348         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
6349         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
6350         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
6351         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
6352         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
6353         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
6354         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
6355         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
6356         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6357         Ditto.
6358         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6359         Ditto.
6360         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6361         Ditto.
6362         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6363         Ditto.
6364         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6365         Ditto.
6366         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
6367         Ditto.
6368         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
6369         Ditto.
6370         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
6371         Ditto.
6372         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
6373         Ditto.
6374         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
6375         Ditto.
6376         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
6377         Ditto.
6378         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
6379         Ditto.
6380         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
6381         Ditto.
6382         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
6383         Ditto.
6384         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
6385         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
6386         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
6387         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
6388         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6389         Likewise and also add 'dg-do run'.
6390         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6391         Ditto.
6393 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
6394             Tobias Burnus  <tobias@codesourcery.com>
6396         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
6397         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
6398         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
6400 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
6402         PR libgomp/92081
6403         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
6404         than 0.
6406 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
6408         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
6409         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
6411 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
6413         PR middle-end/92036
6414         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
6415         file.
6417 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
6419         PR testsuite/91884
6420         * testsuite/libgomp.fortran/fortran.exp: Conditionally
6421         add -lquadmath.
6422         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
6424 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
6426         PR libgomp/92028
6427         * target.c (gomp_map_vars_internal): Readd the previous
6428         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
6429         though do that just in the !not_found_cnt case.
6431 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
6433         * gfortran.dg/gomp/target-simd.f90: New.
6435 2019-10-02  Julian Brown  <julian@codesourcery.com>
6436             Cesar Philippidis  <cesar@codesourcery.com>
6438         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
6439         * target.c (FIELD_TGT_EMPTY): Define.
6440         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
6441         as switch instead of list of ifs.
6442         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
6444 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
6446         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
6447         include. Replace alloca () with __builtin_alloca ().
6448         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
6450 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
6452         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
6453         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
6454         * oacc-parallel.c: Don't include "libgomp_g.h".
6455         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
6456         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
6457         * aclocal.m4: Regenerated.
6458         * config.h.in: Regenerated.
6459         * configure: Regenerated.
6460         * Makefile.in: Regenerated.
6462 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
6464         * libgomp_g.h: Include stdint.h instead of gstdint.h.
6466 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
6468         * configure: Regenerate.
6470 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
6472         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
6473         string is initialized.
6475 2019-09-06  Florian Weimer  <fweimer@redhat.com>
6477         * configure: Regenerate.
6479 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
6481         PR other/79543
6482         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
6483         scanning to conform to the GNU Coding Standards.
6484         * configure: Regenerate.
6486 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
6488         PR libgomp/91530
6489         * testsuite/libgomp.c/scan-21.c: New test.
6490         * testsuite/libgomp.c/scan-22.c: New test.
6492 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
6494         PR libgomp/91530
6495         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
6496         targets.
6497         * testsuite/libgomp.c/scan-12.c: Likewise.
6498         * testsuite/libgomp.c/scan-13.c: Likewise.
6499         * testsuite/libgomp.c/scan-14.c: Likewise.
6500         * testsuite/libgomp.c/scan-15.c: Likewise.
6501         * testsuite/libgomp.c/scan-16.c: Likewise.
6502         * testsuite/libgomp.c/scan-17.c: Likewise.
6503         * testsuite/libgomp.c/scan-18.c: Likewise.
6504         * testsuite/libgomp.c/scan-19.c: Likewise.
6505         * testsuite/libgomp.c/scan-20.c: Likewise.
6506         * testsuite/libgomp.c++/scan-9.C: Likewise.
6507         * testsuite/libgomp.c++/scan-10.C: Likewise.
6508         * testsuite/libgomp.c++/scan-11.C: Likewise.
6509         * testsuite/libgomp.c++/scan-12.C: Likewise.
6510         * testsuite/libgomp.c++/scan-14.C: Likewise.
6511         * testsuite/libgomp.c++/scan-15.C: Likewise.
6512         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
6513         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
6514         * testsuite/libgomp.c++/scan-16.C: Likewise.
6516 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
6518         PR fortran/91473
6519         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
6520         -std=legacy so invalid code in the test case is accepted.
6522 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
6524         PR fortran/91422
6525         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
6526         dimension.
6528 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
6530         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
6531         perform the lookup in the first loop only if !not_found_cnt, otherwise
6532         perform lookups for it in the second loop guarded with
6533         if (not_found_cnt || has_firstprivate).
6534         * testsuite/libgomp.c/target-37.c: New test.
6535         * testsuite/libgomp.c++/target-22.C: New test.
6537 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
6539         * testsuite/libgomp.c/target-18.c (struct S): New type.
6540         (foo): Use use_device_addr clause instead of use_device_ptr clause
6541         where required by OpenMP 5.0, add further tests for both use_device_ptr
6542         and use_device_addr clauses.
6543         * testsuite/libgomp.c++/target-9.C (struct S): New type.
6544         (foo): Use use_device_addr clause instead of use_device_ptr clause
6545         where required by OpenMP 5.0, add further tests for both use_device_ptr
6546         and use_device_addr clauses.  Add t and u arguments.
6547         (main): Adjust caller.
6549 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
6551         * testsuite/libgomp.c++/loop-13.C: New test.
6552         * testsuite/libgomp.c++/loop-14.C: New test.
6553         * testsuite/libgomp.c++/loop-15.C: New test.
6555 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
6557         PR middle-end/91301
6558         * testsuite/libgomp.c++/for-27.C: New test.
6560 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
6562         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
6563         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6565 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
6567         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
6569 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
6571         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
6572         * testsuite/libgomp.c++/scan-16.C: Likewise.
6574 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
6576         * testsuite/libgomp.c/scan-19.c: New test.
6577         * testsuite/libgomp.c/scan-20.c: New test.
6579         * testsuite/libgomp.c/scan-11.c: New test.
6580         * testsuite/libgomp.c/scan-12.c: New test.
6581         * testsuite/libgomp.c/scan-13.c: New test.
6582         * testsuite/libgomp.c/scan-14.c: New test.
6583         * testsuite/libgomp.c/scan-15.c: New test.
6584         * testsuite/libgomp.c/scan-16.c: New test.
6585         * testsuite/libgomp.c/scan-17.c: New test.
6586         * testsuite/libgomp.c/scan-18.c: New test.
6587         * testsuite/libgomp.c++/scan-9.C: New test.
6588         * testsuite/libgomp.c++/scan-10.C: New test.
6589         * testsuite/libgomp.c++/scan-11.C: New test.
6590         * testsuite/libgomp.c++/scan-12.C: New test.
6591         * testsuite/libgomp.c++/scan-13.C: New test.
6592         * testsuite/libgomp.c++/scan-14.C: New test.
6593         * testsuite/libgomp.c++/scan-15.C: New test.
6594         * testsuite/libgomp.c++/scan-16.C: New test.
6596 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
6598         * testsuite/libgomp.c/scan-9.c: New test.
6599         * testsuite/libgomp.c/scan-10.c: New test.
6601 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
6603         * testsuite/libgomp.c++/scan-1.C: New test.
6604         * testsuite/libgomp.c++/scan-2.C: New test.
6605         * testsuite/libgomp.c++/scan-3.C: New test.
6606         * testsuite/libgomp.c++/scan-4.C: New test.
6607         * testsuite/libgomp.c++/scan-5.C: New test.
6608         * testsuite/libgomp.c++/scan-6.C: New test.
6609         * testsuite/libgomp.c++/scan-7.C: New test.
6610         * testsuite/libgomp.c++/scan-8.C: New test.
6611         * testsuite/libgomp.c/scan-1.c: New test.
6612         * testsuite/libgomp.c/scan-2.c: New test.
6613         * testsuite/libgomp.c/scan-3.c: New test.
6614         * testsuite/libgomp.c/scan-4.c: New test.
6615         * testsuite/libgomp.c/scan-5.c: New test.
6616         * testsuite/libgomp.c/scan-6.c: New test.
6617         * testsuite/libgomp.c/scan-7.c: New test.
6618         * testsuite/libgomp.c/scan-8.c: New test.
6620 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
6622         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
6623         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
6624         Likewise.
6626         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
6627         check.
6629 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
6631         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
6632         file.
6634 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
6636         PR fortran/90743
6637         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
6638         case.
6639         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
6640         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
6641         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
6642         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
6644         PR testsuite/90861
6645         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
6647         PR middle-end/90862
6648         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
6650 2019-06-16  Tom de Vries  <tdevries@suse.de>
6652         PR tree-optimization/89376
6653         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
6655 2019-06-15  Tom de Vries  <tdevries@suse.de>
6657         PR tree-optimization/89713
6658         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
6659         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
6661 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
6663         PR middle-end/90779
6664         * testsuite/libgomp.c/pr90779.c: New test.
6665         * testsuite/libgomp.fortran/pr90779.f90: New test.
6667 2019-06-15  Tom de Vries  <tdevries@suse.de>
6669         PR tree-optimization/90009
6670         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
6672 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
6674         PR tree-optimization/89713
6675         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
6677 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
6679         PR target/90811
6680         * testsuite/libgomp.c/pr90811.c: New test.
6682 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
6684         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
6685         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
6687 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
6689         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
6690         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
6691         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
6692         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
6694 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6696         * configure.ac: Call AX_COUNT_CPUS.
6697         Substitute CPU_COUNT.
6698         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
6699         count fallback.
6700         * aclocal.m4: Regenerate.
6701         * configure: Regenerate.
6702         * Makefile.in, testsuite/Makefile.in: Regenerate.
6704 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
6706         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
6707         to ...
6708         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
6709         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
6710         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
6712 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
6714         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
6716         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
6718         PR libgomp/90641
6719         * work.c (gomp_init_work_share): Instead of aligning final ordered
6720         value to multiples of long long alignment, align to that the
6721         first part (ordered team ids) and if inline_ordered_team_ids
6722         is not on a long long alignment boundary within the structure,
6723         use __alignof__ (long long) - 1 pad size always.
6724         * loop.c (GOMP_loop_start): Fix *mem computation if
6725         inline_ordered_team_ids is not aligned on long long alignment boundary
6726         within the structure.
6727         * loop-ull.c (GOMP_loop_ull_start): Likewise.
6728         * sections.c (GOMP_sections2_start): Likewise.
6730 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
6732         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
6733         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
6735         PR libgomp/90585
6736         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
6737         HAVE_INTTYPES_H is defined.
6738         (print_uint64_t): New typedef.
6739         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
6740         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
6741         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
6742         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
6743         before casting to void *.
6744         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
6745         * oacc-mem.c: Don't include config.h nor stdint.h.
6746         * target.c: Don't include config.h.
6747         * oacc-cuda.c: Likewise.
6748         * oacc-host.c: Don't include stdint.h.
6750 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
6752         PR libgomp/90527
6753         * alloc.c (_GNU_SOURCE): Define.
6755 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
6757         * acc_prof.h: New file.
6758         * oacc-profiling.c: Likewise.
6759         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
6760         Add these, respectively.
6761         * Makefile.in: Regenerate.
6762         * env.c (initialize_env): Call goacc_profiling_initialize.
6763         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
6764         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
6765         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
6766         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
6767         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
6768         acc_prof_register, acc_prof_unregister, and acc_register_library.
6769         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
6770         GOMP_PLUGIN_goacc_thread.
6771         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
6772         prof_callbacks_enabled members.
6773         (goacc_prof_enabled, goacc_profiling_initialize)
6774         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
6775         (goacc_profiling_dispatch): Declare.
6776         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
6777         (GOACC_PROFILING_SETUP_P): Define.
6778         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
6779         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
6780         OpenACC Profiling Interface.
6781         * oacc-cuda.c (acc_get_current_cuda_device)
6782         (acc_get_current_cuda_context, acc_get_cuda_stream)
6783         (acc_set_cuda_stream): Likewise.
6784         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
6785         (acc_init, acc_set_device_type, acc_get_device_type)
6786         (acc_get_device_num, goacc_lazy_initialize): Likewise.
6787         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
6788         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
6789         (acc_unmap_data, present_create_copy, delete_copyout)
6790         (update_dev_host): Likewise.
6791         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
6792         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
6793         Likewise.
6794         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
6795         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
6796         Likewise.
6797         * libgomp.texi: Update.
6798         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
6799         file.
6800         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
6801         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
6802         Likewise.
6803         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
6804         Likewise.
6805         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
6806         Likewise.
6807         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
6808         Likewise.
6810 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
6812         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
6813         (struct goacc_asyncqueue_list): Likewise.
6814         (goacc_aq): Likewise.
6815         (goacc_aq_list): Likewise.
6816         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6817         (GOMP_OFFLOAD_openacc_async_test): Remove.
6818         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6819         (GOMP_OFFLOAD_openacc_async_wait): Remove.
6820         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6821         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6822         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6823         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6824         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
6825         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
6826         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
6827         (GOMP_OFFLOAD_openacc_async_exec): Declare.
6828         (GOMP_OFFLOAD_openacc_async_construct): Declare.
6829         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
6830         (GOMP_OFFLOAD_openacc_async_test): Declare.
6831         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
6832         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
6833         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
6834         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
6835         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
6837         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
6838         (gomp_acc_insert_pointer): Adjust declaration.
6839         (gomp_copy_host2dev): New declaration.
6840         (gomp_copy_dev2host): Likewise.
6841         (gomp_map_vars_async): Likewise.
6842         (gomp_unmap_tgt): Likewise.
6843         (gomp_unmap_vars_async): Likewise.
6844         (gomp_fini_device): Likewise.
6846         * oacc-async.c (get_goacc_thread): New function.
6847         (get_goacc_thread_device): New function.
6848         (lookup_goacc_asyncqueue): New function.
6849         (get_goacc_asyncqueue): New function.
6850         (acc_async_test): Adjust code to use new async design.
6851         (acc_async_test_all): Likewise.
6852         (acc_wait): Likewise.
6853         (acc_wait_async): Likewise.
6854         (acc_wait_all): Likewise.
6855         (acc_wait_all_async): Likewise.
6856         (goacc_async_free): New function.
6857         (goacc_init_asyncqueues): Likewise.
6858         (goacc_fini_asyncqueues): Likewise.
6859         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
6860         design.
6861         (acc_set_cuda_stream): Likewise.
6862         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
6863         (host_openacc_register_async_cleanup): Remove.
6864         (host_openacc_async_exec): New function.
6865         (host_openacc_async_test): Adjust parameters.
6866         (host_openacc_async_test_all): Remove.
6867         (host_openacc_async_wait): Remove.
6868         (host_openacc_async_wait_async): Remove.
6869         (host_openacc_async_wait_all): Remove.
6870         (host_openacc_async_wait_all_async): Remove.
6871         (host_openacc_async_set_async): Remove.
6872         (host_openacc_async_synchronize): New function.
6873         (host_openacc_async_serialize): New function.
6874         (host_openacc_async_host2dev): New function.
6875         (host_openacc_async_dev2host): New function.
6876         (host_openacc_async_queue_callback): New function.
6877         (host_openacc_async_construct): New function.
6878         (host_openacc_async_destruct): New function.
6879         (struct gomp_device_descr host_dispatch): Remove initialization of old
6880         interface, add initialization of new async sub-struct.
6881         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
6882         (goacc_attach_host_thread_to_device): Remove old async code usage.
6883         * oacc-int.h (goacc_init_asyncqueues): New declaration.
6884         (goacc_fini_asyncqueues): Likewise.
6885         (goacc_async_copyout_unmap_vars): Likewise.
6886         (goacc_async_free): Likewise.
6887         (get_goacc_asyncqueue): Likewise.
6888         (lookup_goacc_asyncqueue): Likewise.
6889         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
6890         design.
6891         (present_create_copy): Adjust code to use new async design.
6892         (delete_copyout): Likewise.
6893         (update_dev_host): Likewise.
6894         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
6895         async design.
6896         (gomp_acc_remove_pointer): Adjust code to use new async design.
6897         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
6898         design.
6899         (GOACC_enter_exit_data): Likewise.
6900         (goacc_wait): Likewise.
6901         (GOACC_update): Likewise.
6902         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
6903         when called, warn as obsolete in comment.
6904         * target.c (goacc_device_copy_async): New function.
6905         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
6906         add goacc_device_copy_async case.
6907         (gomp_copy_dev2host): Likewise.
6908         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
6909         (gomp_map_pointer): Likewise.
6910         (gomp_map_fields_existing): Likewise.
6911         (gomp_map_vars_internal): New always_inline function, renamed from
6912         gomp_map_vars.
6913         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
6914         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
6915         passing goacc_asyncqueue argument.
6916         (gomp_unmap_tgt): Remove static, add attribute_hidden.
6917         (gomp_unref_tgt): New function.
6918         (gomp_unmap_vars_internal): New always_inline function, renamed from
6919         gomp_unmap_vars.
6920         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
6921         (gomp_unmap_vars_async): Implement by calling
6922         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
6923         (gomp_fini_device): New function.
6924         (gomp_exit_data): Adjust gomp_copy_dev2host call.
6925         (gomp_load_plugin_for_device): Remove old interface, adjust to load
6926         new async interface.
6927         (gomp_target_fini): Adjust code to call gomp_fini_device.
6929         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
6930         (struct ptx_stream): Remove.
6931         (struct nvptx_thread): Remove current_stream field.
6932         (cuda_map_create): Remove.
6933         (cuda_map_destroy): Remove.
6934         (map_init): Remove.
6935         (map_fini): Remove.
6936         (map_pop): Remove.
6937         (map_push): Remove.
6938         (struct goacc_asyncqueue): Define.
6939         (struct nvptx_callback): Define.
6940         (struct ptx_free_block): Define.
6941         (struct ptx_device): Remove null_stream, active_streams, async_streams,
6942         stream_lock, and next fields.
6943         (enum ptx_event_type): Remove.
6944         (struct ptx_event): Remove.
6945         (ptx_event_lock): Remove.
6946         (ptx_events): Remove.
6947         (init_streams_for_device): Remove.
6948         (fini_streams_for_device): Remove.
6949         (select_stream_for_async): Remove.
6950         (nvptx_init): Remove ptx_events and ptx_event_lock references.
6951         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
6952         case.
6953         (nvptx_open_device): Add free_blocks initialization, remove
6954         init_streams_for_device call.
6955         (nvptx_close_device): Remove fini_streams_for_device call, add
6956         free_blocks destruct code.
6957         (event_gc): Remove.
6958         (event_add): Remove.
6959         (nvptx_exec): Adjust parameters and code.
6960         (nvptx_free): Likewise.
6961         (nvptx_host2dev): Remove.
6962         (nvptx_dev2host): Remove.
6963         (nvptx_set_async): Remove.
6964         (nvptx_async_test): Remove.
6965         (nvptx_async_test_all): Remove.
6966         (nvptx_wait): Remove.
6967         (nvptx_wait_async): Remove.
6968         (nvptx_wait_all): Remove.
6969         (nvptx_wait_all_async): Remove.
6970         (nvptx_get_cuda_stream): Remove.
6971         (nvptx_set_cuda_stream): Remove.
6972         (GOMP_OFFLOAD_alloc): Adjust code.
6973         (GOMP_OFFLOAD_free): Likewise.
6974         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6975         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
6976         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6977         (GOMP_OFFLOAD_openacc_async_wait): Remove.
6978         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6979         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6980         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6981         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6982         (cuda_free_argmem): New function.
6983         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
6984         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
6985         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
6986         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
6987         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
6988         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
6989         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
6990         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
6991         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
6992         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
6993         (cuda_callback_wrapper): New function.
6994         (cuda_memcpy_sanity_check): New function.
6995         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
6996         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
6997         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
6998         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
7000 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
7002         PR target/87835
7003         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
7005 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
7007         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
7009 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
7011         * team.c (gomp_team_start): Initialize pool->threads[0].
7013 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
7015         * testsuite/libgomp.oacc-c++/c++.exp: Specify
7016         "-foffload=$offload_target".
7017         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7018         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7019         * testsuite/lib/libgomp.exp
7020         (check_effective_target_openacc_nvidia_accel_configured): Remove,
7021         as (conceptually) merged into
7022         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
7023         users.
7025         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
7026         * testsuite/libgomp-test-support.exp.in: Adjust.
7027         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
7028         openacc_device_types_s.
7029         (offload_target_to_openacc_device_type): New proc.
7030         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
7031         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7032         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7033         * Makefile.in: Regenerate.
7034         * configure: Likewise.
7035         * testsuite/Makefile.in: Likewise.
7037         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
7038         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
7039         instead of OFFLOAD_TARGETS.
7040         * target.c (gomp_target_init): Adjust.
7041         * testsuite/libgomp-test-support.exp.in: Likewise.
7042         * testsuite/lib/libgomp.exp: Likewise.  Populate
7043         openacc_device_types_s instead of offload_targets_s_openacc.
7044         (check_effective_target_openacc_nvidia_accel_selected)
7045         (check_effective_target_openacc_host_selected): Adjust.
7046         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
7047         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7048         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7049         * Makefile.in: Regenerate.
7050         * config.h.in: Likewise.
7051         * configure: Likewise.
7052         * testsuite/Makefile.in: Likewise.
7054         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
7055         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
7056         "offloading: supported, but hardware not accessible".
7057         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7058         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7060 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
7062         PR c/87924
7063         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
7064         goacc_wait().
7065         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
7066         and related adjustment.
7068 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
7070         PR c++/88988
7071         * testsuite/libgomp.c++/pr88988.C: New test.
7073 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
7075         PR middle-end/89002
7076         * testsuite/libgomp.c/pr89002.c: New test.
7078 2019-01-28  Richard Biener  <rguenther@suse.de>
7080         PR testsuite/89064
7081         PR tree-optimization/86865
7082         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
7084 2019-01-24  Tom de Vries  <tdevries@suse.de>
7086         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
7087         once instantiated_devices drops to 0.
7089 2019-01-23  Tom de Vries  <tdevries@suse.de>
7091         PR target/PR88946
7092         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
7093         cuMemFree.
7094         (nvptx_exec): Don't call map_push if mapnum == 0.
7095         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
7097 2019-01-23  Tom de Vries  <tdevries@suse.de>
7099         PR target/88941
7100         PR target/88939
7101         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
7102         (map_fini): Remove "assert (!s->map->active)".
7103         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
7105 2019-01-23  Tom de Vries  <tdevries@suse.de>
7107         PR target/87835
7108         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
7109         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
7111 2019-01-15  Tom de Vries  <tdevries@suse.de>
7113         PR target/80547
7114         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
7115         New test.
7117 2019-01-12  Tom de Vries  <tdevries@suse.de>
7119         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
7120         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
7121         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
7122         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
7124 2019-01-12  Tom de Vries  <tdevries@suse.de>
7126         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
7128 2019-01-12  Tom de Vries  <tdevries@suse.de>
7130         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
7131         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
7132         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
7134 2019-01-12  Tom de Vries  <tdevries@suse.de>
7136         PR target/85486
7137         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
7138         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
7140 2019-01-12  Tom de Vries  <tdevries@suse.de>
7142         PR target/85381
7143         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
7144         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
7146 2019-01-12  Tom de Vries  <tdevries@suse.de>
7148         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
7149         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
7150         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
7152 2019-01-12  Tom de Vries  <tdevries@suse.de>
7154         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
7155         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
7156         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
7158 2019-01-12  Tom de Vries  <tdevries@suse.de>
7160         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
7161         resources diagnostic.
7163 2019-01-12  Tom de Vries  <tdevries@suse.de>
7165         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
7166         vector length to be 128.
7167         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
7168         length 2097152 to be reduced to 1024 instead of 32.
7170 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
7171             James Norris  <jnorris@codesourcery.com>
7173         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
7174         Library Routines", and "Environment Variables".
7176 2019-01-11  Tom de Vries  <tdevries@suse.de>
7178         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
7179         num_workers 16.
7181 2019-01-11  Tom de Vries  <tdevries@suse.de>
7183         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
7184         -foffload=-w.
7185         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
7186         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
7187         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
7188         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
7190 2019-01-11  Tom de Vries  <tdevries@suse.de>
7192         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
7193         test.
7195 2019-01-10  Nathan Sidwell  <nathan@acm.org>
7196             Julian Brown  <julian@codesourcery.com>
7198         PR lto/71959
7199         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
7200         * testsuite/libgomp.oacc-c++/pr71959.C: New.
7202 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7204         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
7205         and paste code.
7207 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7209         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
7210         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7211         write.
7213 2019-01-09  Tom de Vries  <tdevries@suse.de>
7215         PR target/88756
7216         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
7217         #define instead of "const int".
7218         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
7219         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
7220         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
7221         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
7223 2019-01-09  Tom de Vries  <tdevries@suse.de>
7225         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
7226         one worker.
7228 2019-01-07  Tom de Vries  <tdevries@suse.de>
7230         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
7231         GOMP_OPENACC_DIM argument.
7233 2019-01-03  Tom de Vries  <tdevries@suse.de>
7235         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
7236         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
7238 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
7240         Update copyright years.
7242 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
7244         * libgomp.texi: Bump @copying's copyright year.
7246 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
7248         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
7249         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
7250         (GOACC_declare): Redefine the "device" argument to "flags".
7252 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
7253             Cesar Philippidis  <cesar@codesourcery.com>
7255         * target.c (struct gomp_coalesce_chunk): New structure.
7256         (struct gomp_coalesce_buf): Update the chunks member to use that
7257         type.  Adjust all users.
7259 2018-12-19  Tom de Vries  <tdevries@suse.de>
7261         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
7262         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
7263         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
7265 2018-12-19  Tom de Vries  <tdevries@suse.de>
7267         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
7268         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
7269         gcc/testsuite/gcc.dg/goacc.
7270         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
7272 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
7273             Chung-Lin Tang  <cltang@codesourcery.com>
7275         * oacc-mem.c (acc_present_or_create): Remove definition and change
7276         to alias of acc_create.
7277         (acc_present_or_copyin): Remove definition and change to alias of
7278         acc_copyin.
7279         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
7280         of acc_present_or_create.
7281         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
7282         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7283         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7284         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7285         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7286         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7287         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7288         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7289         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7290         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7291         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7292         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7293         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7294         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7295         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7296         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7298 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
7300         PR libgomp/88495
7301         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
7302         "identical parameters".
7303         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
7304         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
7306         PR libgomp/88484
7307         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
7308         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
7310         PR libgomp/88407
7311         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
7312         (nvptx_wait_async): Unseen async-argument is a no-op.
7313         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
7314         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
7315         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7316         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7317         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
7318         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
7319         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
7320         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
7321         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
7323         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
7324         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7326 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
7328         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
7329         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7330         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7332 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
7334         PR libgomp/88370
7335         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
7336         (acc_set_cuda_stream): Clarify.
7337         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
7338         "async_valid_p".
7339         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
7340         acc_async_sync".
7341         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
7342         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
7343         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
7344         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7346 2018-12-14  Tom de Vries  <tdevries@suse.de>
7348         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
7349         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
7350         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
7351         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
7352         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
7354 2018-12-13  Tom de Vries  <tdevries@suse.de>
7356         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
7357         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
7358         * fortran.c (omp_display_affinity_): ... here.
7359         * libgomp.h (gomp_print_string): Declare.
7360         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
7361         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7362         write.
7364 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
7366         PR libgomp/88460
7367         * testsuite/libgomp.c++/for-24.C (results): Include it in
7368         omp declare target region.
7369         (main): Use map (always, tofrom: results) instead of
7370         map (tofrom: results).
7372 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
7374         PR fortran/88463
7375         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
7376         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
7378         * testsuite/libgomp.c-c++-common/for-16.c: New test.
7380 2018-12-12  Andreas Schwab  <schwab@suse.de>
7382         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
7383         clobbered.
7385 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
7387         PR fortran/88411
7388         * testsuite/libgomp.fortran/async_io_8.f90: New test.
7390 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7391             Jakub Jelinek  <jakub@redhat.com>
7393         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
7394         devicep->host2dev_func.
7396 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
7398         PR libgomp/87995
7399         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
7400         tls_runtime effective target.
7401         (t): New threadprivate variable.
7402         (main): Set t in threads which execute iterations of the worksharing
7403         loop.  Propagate that to the task after the loop and don't abort
7404         if the current taskgroup hasn't been cancelled.
7406 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
7408         * testsuite/libgomp.c/task-reduction-3.c: New test.
7410         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
7412 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
7414         PR libgomp/88288
7415         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
7416         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
7418 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
7420         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
7422 2018-10-19  Richard Biener  <rguenther@suse.de>
7424         PR tree-optimization/88182
7425         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
7427 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
7429         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
7430         (RUNTEST): Don't define.
7431         (RUNTESTDEFAULTFLAGS): Add.
7432         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
7433         (distclean-am): Depend on distclean-DEJAGNU.
7434         (check-am): If -j% option is present in MFLAGS and if
7435         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
7436         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
7437         * testsuite/Makefile.in: Regenerated.
7439 2018-11-26  Richard Biener  <rguenther@suse.de>
7441         PR tree-optimization/88182
7442         * testsuite/libgomp.c++/pr88182.C: New testcase.
7444 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
7446         PR bootstrap/88106
7447         * config/mingw32/affinity-fmt.c: New file.
7449 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
7451         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
7452         (gomp_display_affinity): Use __builtin_choose_expr to handle
7453         properly handle argument having integral, or pointer or some other
7454         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
7455         with uint64_t type instead of %llx and unsigned long long.
7457         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
7458         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
7460 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7462         * affinity.c: Include <string.h>, <stdio.h>.
7463         (gomp_display_affinity_place): Remove cpusetp.
7464         * teams.c: Include <limits.h>.
7466 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
7468         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
7469         in_reduction clause for s[0].
7471         * affinity.c (gomp_display_affinity_place): New function.
7472         * affinity-fmt.c: New file.
7473         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
7474         * config/linux/affinity.c (gomp_display_affinity_place): New function.
7475         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
7476         Move these functions to ...
7477         * config/nvptx/teams.c: ... here.  New file.
7478         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
7479         New functions.
7480         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
7481         functions.
7482         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
7483         and _aligned_malloc.
7484         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
7485         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
7486         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
7487         gomp_affinity_format_len): New variables.
7488         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
7489         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
7490         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
7491         modifiers.  Display (non-default) chunk sizes.  Print
7492         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
7493         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
7494         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
7495         * fortran.c: Include stdio.h and string.h.
7496         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
7497         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
7498         (omp_set_affinity_format_, omp_get_affinity_format_,
7499         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
7500         omp_pause_resource_all_): New functions.
7501         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
7502         switch.
7503         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
7504         functions to ...
7505         * teams.c: ... here.  New file.
7506         * libgomp_g.h: Include gstdint.h.
7507         (GOMP_loop_nonmonotonic_runtime_start,
7508         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
7509         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
7510         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
7511         GOMP_parallel_loop_nonmonotonic_runtime,
7512         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7513         GOMP_loop_ull_nonmonotonic_runtime_start,
7514         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
7515         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
7516         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7517         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
7518         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
7519         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7520         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7521         GOMP_teams_reg): Declare.
7522         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
7523         gomp_aligned_alloc uses fallback implementation.
7524         (gomp_aligned_alloc, gomp_aligned_free): Declare.
7525         (enum gomp_schedule_type): Add GFS_MONOTONIC.
7526         (struct gomp_doacross_work_share): Add extra field.
7527         (struct gomp_work_share): Add task_reductions field.
7528         (struct gomp_taskgroup): Add workshare and reductions fields.
7529         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
7530         (gomp_thread_handle): New typedef.
7531         (gomp_display_affinity_place, gomp_set_affinity_format,
7532         gomp_display_string, gomp_display_affinity,
7533         gomp_display_affinity_thread): Declare.
7534         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
7535         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
7536         gomp_workshare_task_reduction_register): Declare.
7537         (gomp_team_start): Add taskgroup argument.
7538         (gomp_pause_host): Declare.
7539         (gomp_init_work_share, gomp_work_share_start): Change bool argument
7540         to size_t.
7541         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
7542         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
7543         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
7544         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7545         GOMP_loop_ull_doacross_start,
7546         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7547         GOMP_loop_maybe_nonmonotonic_runtime_next,
7548         GOMP_loop_maybe_nonmonotonic_runtime_start,
7549         GOMP_loop_nonmonotonic_runtime_next,
7550         GOMP_loop_nonmonotonic_runtime_start,
7551         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7552         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7553         GOMP_loop_ull_nonmonotonic_runtime_next,
7554         GOMP_loop_ull_nonmonotonic_runtime_start,
7555         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7556         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
7557         GOMP_taskgroup_reduction_register,
7558         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7559         GOMP_teams_reg and GOMP_taskwait_depend.
7560         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
7561         omp_{capture,display}_affinity{,_}, and
7562         omp_[gs]et_affinity_format{,_}.
7563         * loop.c: Include string.h.
7564         (GOMP_loop_runtime_next): Add ialias.
7565         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7566         (gomp_loop_static_start, gomp_loop_dynamic_start,
7567         gomp_loop_guided_start, gomp_loop_ordered_static_start,
7568         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7569         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7570         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
7571         or gomp_doacross_init callers.
7572         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
7573         GOMP_loop_doacross_start): New functions.
7574         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7575         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
7576         Mask off GFS_MONOTONIC bit.
7577         (GOMP_loop_maybe_nonmonotonic_runtime_next,
7578         GOMP_loop_maybe_nonmonotonic_runtime_start,
7579         GOMP_loop_nonmonotonic_runtime_next,
7580         GOMP_loop_nonmonotonic_runtime_start,
7581         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7582         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
7583         functions.
7584         (gomp_parallel_loop_start): Pass NULL as taskgroup to
7585         gomp_team_start.
7586         * loop_ull.c: Include string.h.
7587         (GOMP_loop_ull_runtime_next): Add ialias.
7588         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7589         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
7590         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
7591         gomp_loop_ull_ordered_dynamic_start,
7592         gomp_loop_ull_ordered_guided_start,
7593         gomp_loop_ull_doacross_static_start,
7594         gomp_loop_ull_doacross_dynamic_start,
7595         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
7596         and gomp_doacross_ull_init callers.
7597         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7598         GOMP_loop_ull_doacross_start): New functions.
7599         (GOMP_loop_ull_runtime_start,
7600         GOMP_loop_ull_ordered_runtime_start,
7601         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
7602         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7603         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7604         GOMP_loop_ull_nonmonotonic_runtime_next,
7605         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
7606         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
7607         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
7608         (omp_pause_resource_t, omp_depend_t): New typedefs.
7609         (enum omp_lock_hint_t): Renamed to ...
7610         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
7611         enumerators using numbers and omp_lock_hint_* as their aliases.
7612         (omp_lock_hint_t): New typedef.  Rename to ...
7613         (omp_sync_hint_t): ... this.
7614         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
7615         omp_sync_hint_t instead of omp_lock_hint_t.
7616         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7617         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7618         Declare.
7619         (omp_target_is_present, omp_target_disassociate_ptr):
7620         Change first argument from void * to const void *.
7621         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
7622         from void * to const void *.
7623         (omp_target_associate_ptr): Change first and second arguments from
7624         void * to const void *.
7625         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
7626         omp_pause_hard): New parameters.
7627         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7628         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7629         New interfaces.
7630         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
7631         omp_pause_hard): New parameters.
7632         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7633         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7634         New externals.
7635         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
7636         EXTRA argument.  If not needed to prepare array, if extra is 0,
7637         clear ws->doacross, otherwise allocate just doacross structure and
7638         extra payload.  If array is needed, allocate also extra payload.
7639         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
7640         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
7641         doacross == NULL.
7642         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
7643         gomp_team_start.
7644         (GOMP_parallel): Likewise.  Formatting fix.
7645         (GOMP_parallel_reductions): New function.
7646         (GOMP_cancellation_point): If taskgroup has workshare
7647         flag set, check cancelled of prev taskgroup if any.
7648         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
7649         on prev taskgroup if any.
7650         * sections.c: Include string.h.
7651         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7652         (GOMP_sections_start): Adjust gomp_work_share_start caller.
7653         (GOMP_sections2_start): New function.
7654         (GOMP_parallel_sections_start, GOMP_parallel_sections):
7655         Pass NULL as taskgroup to gomp_team_start.
7656         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
7657         gomp_work_share_start callers.
7658         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
7659         If taskgroup has workshare flag set, check cancelled on prev
7660         taskgroup if any.  Guard all cancellation tests with
7661         gomp_cancel_var test.
7662         (omp_target_is_present, omp_target_disassociate_ptr):
7663         Change ptr argument from void * to const void *.
7664         (omp_target_memcpy): Change src argument from void * to const void *.
7665         (omp_target_memcpy_rect): Likewise.
7666         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
7667         instead of char * where needed.
7668         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
7669         from void * to const void *.
7670         (omp_pause_resource, omp_pause_resource_all): New functions.
7671         * task.c (gomp_task_handle_depend): Handle new depend array format
7672         in addition to the old.  Handle mutexinoutset kinds the same as
7673         inout for now, handle unspecified kinds.
7674         (gomp_create_target_task): If taskgroup has workshare flag set, check
7675         cancelled on prev taskgroup if any.  Guard all cancellation tests with
7676         gomp_cancel_var test.  Handle new depend array format count in
7677         addition to the old.
7678         (GOMP_task): Likewise.  Adjust function comment.
7679         (gomp_task_run_pre): If taskgroup has workshare flag set, check
7680         cancelled on prev taskgroup if any.  Guard all cancellation tests with
7681         gomp_cancel_var test.
7682         (GOMP_taskwait_depend): New function.
7683         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
7684         format in addition to the old.  Handle mutexinoutset kinds the same as
7685         inout for now, handle unspecified kinds.  Fix a function comment typo.
7686         (gomp_taskgroup_init): New function.
7687         (GOMP_taskgroup_start): Use it.
7688         (gomp_reduction_register, gomp_create_artificial_team,
7689         GOMP_taskgroup_reduction_register,
7690         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7691         gomp_parallel_reduction_register,
7692         gomp_workshare_task_reduction_register,
7693         gomp_workshare_taskgroup_start,
7694         GOMP_workshare_task_reduction_unregister): New functions.
7695         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
7696         check cancelled on prev taskgroup if any.  Guard all cancellation
7697         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
7698         by calling GOMP_taskgroup_reduction_register.
7699         * team.c (gomp_thread_attr): Remove comment.
7700         (struct gomp_thread_start_data): Add handle field.
7701         (gomp_thread_start): Call pthread_detach.
7702         (gomp_new_team): Adjust gomp_init_work_share caller.
7703         (gomp_free_pool_helper): Call pthread_detach.
7704         (gomp_team_start): Add taskgroup argument, initialize implicit
7705         tasks' taskgroup field to that.  Don't call
7706         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
7707         (gomp_team_end): Determine nesting by thr->ts.level != 0
7708         rather than thr->ts.team != NULL.
7709         (gomp_pause_pool_helper, gomp_pause_host): New functions.
7710         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
7711         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
7712         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
7713         if more than 1 allocate also extra payload at the end of array.  Never
7714         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
7715         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
7716         return true instead of ws.
7717         * Makefile.in: Regenerated.
7718         * configure: Regenerated.
7719         * config.h.in: Regenerated.
7720         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
7721         in some cases.
7722         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
7723         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
7724         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
7725         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
7726         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
7727         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
7728         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
7729         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
7730         * testsuite/libgomp.c-c++-common/for-10.c: New test.
7731         * testsuite/libgomp.c-c++-common/for-11.c: New test.
7732         * testsuite/libgomp.c-c++-common/for-12.c: New test.
7733         * testsuite/libgomp.c-c++-common/for-13.c: New test.
7734         * testsuite/libgomp.c-c++-common/for-14.c: New test.
7735         * testsuite/libgomp.c-c++-common/for-15.c: New test.
7736         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
7737         define a different N(test), don't define N(f0) to N(f14), but instead
7738         define N(f20) to N(f34) using != comparisons.
7739         * testsuite/libgomp.c-c++-common/for-7.c: New test.
7740         * testsuite/libgomp.c-c++-common/for-8.c: New test.
7741         * testsuite/libgomp.c-c++-common/for-9.c: New test.
7742         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
7743         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
7744         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
7745         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
7746         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
7747         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
7748         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
7749         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
7750         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
7751         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
7752         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
7753         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
7754         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
7755         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
7756         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
7757         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
7758         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
7759         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
7760         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
7761         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
7762         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
7763         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
7764         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
7765         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
7766         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
7767         * testsuite/libgomp.c++/depend-1.C: New test.
7768         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
7769         * testsuite/libgomp.c++/depobj-1.C: New test.
7770         * testsuite/libgomp.c++/for-16.C: New test.
7771         * testsuite/libgomp.c++/for-21.C: New test.
7772         * testsuite/libgomp.c++/for-22.C: New test.
7773         * testsuite/libgomp.c++/for-23.C: New test.
7774         * testsuite/libgomp.c++/for-24.C: New test.
7775         * testsuite/libgomp.c++/for-25.C: New test.
7776         * testsuite/libgomp.c++/for-26.C: New test.
7777         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
7778         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
7779         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
7780         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
7781         * testsuite/libgomp.c++/task-reduction-10.C: New test.
7782         * testsuite/libgomp.c++/task-reduction-11.C: New test.
7783         * testsuite/libgomp.c++/task-reduction-12.C: New test.
7784         * testsuite/libgomp.c++/task-reduction-13.C: New test.
7785         * testsuite/libgomp.c++/task-reduction-14.C: New test.
7786         * testsuite/libgomp.c++/task-reduction-15.C: New test.
7787         * testsuite/libgomp.c++/task-reduction-16.C: New test.
7788         * testsuite/libgomp.c++/task-reduction-17.C: New test.
7789         * testsuite/libgomp.c++/task-reduction-18.C: New test.
7790         * testsuite/libgomp.c++/task-reduction-19.C: New test.
7791         * testsuite/libgomp.c/task-reduction-1.c: New test.
7792         * testsuite/libgomp.c++/task-reduction-1.C: New test.
7793         * testsuite/libgomp.c/task-reduction-2.c: New test.
7794         * testsuite/libgomp.c++/task-reduction-2.C: New test.
7795         * testsuite/libgomp.c++/task-reduction-3.C: New test.
7796         * testsuite/libgomp.c++/task-reduction-4.C: New test.
7797         * testsuite/libgomp.c++/task-reduction-5.C: New test.
7798         * testsuite/libgomp.c++/task-reduction-6.C: New test.
7799         * testsuite/libgomp.c++/task-reduction-7.C: New test.
7800         * testsuite/libgomp.c++/task-reduction-8.C: New test.
7801         * testsuite/libgomp.c++/task-reduction-9.C: New test.
7802         * testsuite/libgomp.c/teams-1.c: New test.
7803         * testsuite/libgomp.c/teams-2.c: New test.
7804         * testsuite/libgomp.c/thread-limit-4.c: New test.
7805         * testsuite/libgomp.c/thread-limit-5.c: New test.
7806         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
7808 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
7810         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
7811         acc_memcpy_to/from_device functions, now with async parameter.
7812         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
7813         (acc_memcpy_from_device): Likewise.
7814         (acc_memcpy_to_device_async): New API function.
7815         (acc_memcpy_from_device_async): Likewise.
7816         (present_create_copy): Add async parameter and async setting/unsetting.
7817         (acc_create): Adjust present_create_copy call.
7818         (acc_copyin): Likewise.
7819         (acc_present_or_create): Likewise.
7820         (acc_present_or_copyin): Likewise.
7821         (acc_create_async): New API function.
7822         (acc_copyin_async): New API function.
7823         (delete_copyout): Add async parameter and async setting/unsetting.
7824         (acc_delete): Adjust delete_copyout call.
7825         (acc_copyout): Likewise.
7826         (acc_delete_async): New API function.
7827         (acc_copyout_async): Likewise.
7828         (update_dev_host): Add async parameter and async setting/unsetting.
7829         (acc_update_device): Adjust update_dev_host call.
7830         (acc_update_self): Likewise.
7831         (acc_update_device_async): New API function.
7832         (acc_update_self_async): Likewise.
7833         * openacc.h (acc_copyin_async): Declare new API function.
7834         (acc_create_async): Likewise.
7835         (acc_copyout_async): Likewise.
7836         (acc_delete_async): Likewise.
7837         (acc_update_device_async): Likewise.
7838         (acc_update_self_async): Likewise.
7839         (acc_memcpy_to_device_async): Likewise.
7840         (acc_memcpy_from_device_async): Likewise.
7841         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
7842         (acc_copyin_async_64_h): New subroutine.
7843         (acc_copyin_async_array_h): New subroutine.
7844         (acc_create_async_32_h): New subroutine.
7845         (acc_create_async_64_h): New subroutine.
7846         (acc_create_async_array_h): New subroutine.
7847         (acc_copyout_async_32_h): New subroutine.
7848         (acc_copyout_async_64_h): New subroutine.
7849         (acc_copyout_async_array_h): New subroutine.
7850         (acc_delete_async_32_h): New subroutine.
7851         (acc_delete_async_64_h): New subroutine.
7852         (acc_delete_async_array_h): New subroutine.
7853         (acc_update_device_async_32_h): New subroutine.
7854         (acc_update_device_async_64_h): New subroutine.
7855         (acc_update_device_async_array_h): New subroutine.
7856         (acc_update_self_async_32_h): New subroutine.
7857         (acc_update_self_async_64_h): New subroutine.
7858         (acc_update_self_async_array_h): New subroutine.
7859         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
7860         (acc_copyin_async_64_h): New subroutine.
7861         (acc_copyin_async_array_h): New subroutine.
7862         (acc_create_async_32_h): New subroutine.
7863         (acc_create_async_64_h): New subroutine.
7864         (acc_create_async_array_h): New subroutine.
7865         (acc_copyout_async_32_h): New subroutine.
7866         (acc_copyout_async_64_h): New subroutine.
7867         (acc_copyout_async_array_h): New subroutine.
7868         (acc_delete_async_32_h): New subroutine.
7869         (acc_delete_async_64_h): New subroutine.
7870         (acc_delete_async_array_h): New subroutine.
7871         (acc_update_device_async_32_h): New subroutine.
7872         (acc_update_device_async_64_h): New subroutine.
7873         (acc_update_device_async_array_h): New subroutine.
7874         (acc_update_self_async_32_h): New subroutine.
7875         (acc_update_self_async_64_h): New subroutine.
7876         (acc_update_self_async_array_h): New subroutine.
7877         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
7878         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
7879         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
7880         acc_memcpy_to_device_async*, acc_update_device_async*, and
7881         acc_update_self_async* entries.
7882         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
7883         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
7884         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
7886 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
7888         PR bootstrap/82856
7889         * Makefile.am: Include multilib.am
7890         (AUTOMAKE_OPTIONS): Add info-in-builddir.
7891         (CLEANFILES): Remove libgomp.info.
7892         * configure.ac: Remove AC_PREREQ.
7893         * testsuite/Makefile.am (RUNTEST): Remove quotes.
7894         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
7895         Regenerate.
7897 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
7898             Julian Brown  <julian@codesourcery.com>
7900         * testsuite/libgomp.oacc-c++/this.C: New.
7902 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
7904         * plugin/plugin-nvptx.c (struct cuda_map): New.
7905         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
7906         h_tail with (cuda_map *) map.
7907         (cuda_map_create): New function.
7908         (cuda_map_destroy): New function.
7909         (map_init): Update to use a linked list of cuda_map objects.
7910         (map_fini): Likewise.
7911         (map_pop): Likewise.
7912         (map_push): Likewise.  Return CUdeviceptr instead of void.
7913         (init_streams_for_device): Remove stales references to ptx_stream
7914         members.
7915         (select_stream_for_async): Likewise.
7916         (nvptx_exec): Update call to map_init.
7918 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
7919             Julian Brown  <julian@codesourcery.com>
7921         PR middle-end/86336
7922         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
7924 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
7925         Thomas Koenig <tkoenig@gcc.gnu.org>
7927         PR fortran/25829
7928         * testsuite/libgomp.fortran/async_io_1.f90: New test.
7929         * testsuite/libgomp.fortran/async_io_2.f90: New test.
7930         * testsuite/libgomp.fortran/async_io_3.f90: New test.
7931         * testsuite/libgomp.fortran/async_io_4.f90: New test.
7932         * testsuite/libgomp.fortran/async_io_5.f90: New test.
7933         * testsuite/libgomp.fortran/async_io_6.f90: New test.
7934         * testsuite/libgomp.fortran/async_io_7.f90: New test.
7936 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
7937             Tom de Vries  <tdevries@suse.de>
7939         PR target/85590
7940         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
7941         (cuOccupancyMaxPotentialBlockSize): Declare.
7942         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
7943         CUDA_ONE_CALL_MAYBE_NULL.
7944         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
7945         CUoccupancyB2DSize and declare
7946         cuOccupancyMaxPotentialBlockSize.
7947         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
7948         default num_gangs and num_workers when the driver supports it.
7950 2018-08-08  Tom de Vries  <tdevries@suse.de>
7952         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
7953         CUDA_ONE_CALL_MAYBE_NULL.
7954         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
7955         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
7956         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
7957         are not found.
7959 2018-08-08  Tom de Vries  <tdevries@suse.de>
7961         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
7962         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
7963         present.
7965 2018-08-08  Tom de Vries  <tdevries@suse.de>
7967         * plugin/plugin-nvptx.c
7968         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
7969         (nvptx_open_device): Use
7970         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
7972 2018-08-08  Tom de Vries  <tdevries@suse.de>
7974         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
7975         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
7977 2018-08-07  Tom de Vries  <tdevries@suse.de>
7979         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
7980         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
7981         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
7982         corresponding call in CUDA_ONE_CALL.  Add def/undef of
7983         CUDA_ONE_CALL_MAYBE_NULL.
7984         (CUDA_CALL_EXISTS): Define.
7986 2018-08-07  Tom de Vries  <tdevries@suse.de>
7988         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
7989         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
7990         corresponding undefs right after.
7992 2018-08-04  Tom de Vries  <tdevries@suse.de>
7994         * plugin/configfrag.ac: For --without-cuda-driver, set
7995         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
7996         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
7997         * configure: Regenerate.
7999 2018-08-02  Tom de Vries  <tdevries@suse.de>
8001         PR target/86660
8002         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
8003         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
8004         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8005         Same.
8006         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
8007         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
8008         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
8010 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
8011             Thomas Schwinge <thomas@codesourcery.com>
8013         * config/nvptx/oacc-parallel.c: Truncate.
8015 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
8016             James Norris <jnorris@codesourcery.com>
8018         * plugin/plugin-nvptx.c (struct map): Removed.
8019         (map_init, map_pop): Remove use of struct map.
8020         (map_push): Likewise and change argument list.
8021         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
8023 2018-08-01  Tom de Vries  <tdevries@suse.de>
8025         * plugin/cuda-lib.def: New file.  Factor out of ...
8026         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
8027         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
8028         using CUDA_CALLS.
8030 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8032         Revert 'AsyncI/O patch committed'.
8033         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
8034                 Thomas Koenig <tkoenig@gcc.gnu.org>
8036         PR fortran/25829
8037         * testsuite/libgomp.fortran/async_io_1.f90: New test.
8038         * testsuite/libgomp.fortran/async_io_2.f90: New test.
8039         * testsuite/libgomp.fortran/async_io_3.f90: New test.
8040         * testsuite/libgomp.fortran/async_io_4.f90: New test.
8041         * testsuite/libgomp.fortran/async_io_5.f90: New test.
8042         * testsuite/libgomp.fortran/async_io_6.f90: New test.
8043         * testsuite/libgomp.fortran/async_io_7.f90: New test.
8045 2018-07-30  Tom de Vries  <tdevries@suse.de>
8047         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
8048         (nvptx_exec): Ensure worker and vector default dims don't exceed
8049         targ_fn->max_threads_per_block.
8051 2018-07-30  Tom de Vries  <tdevries@suse.de>
8053         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
8054         (nvptx_open_device): Init default_dims for device.
8055         (nvptx_exec): Use default_dims from device.
8057 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
8059         PR testsuite/86660
8060         * testsuite/libgomp.c++/for-15.C (results): Include it in
8061         omp declare target region.
8062         (main): Use map (always, tofrom: results) instead of
8063         map (tofrom: results).
8065         PR middle-end/86660
8066         * testsuite/libgomp.c/pr86660.c: New test.
8068 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
8069             Tom de Vries  <tdevries@suse.de>
8071         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
8072         sufficient resources to launch a kernel, and give a hint on how to fix
8073         it.
8075 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
8076             Tom de Vries  <tdevries@suse.de>
8078         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
8079         max_threads_per_block and max_threads_per_multiprocessor fields.
8080         (nvptx_open_device): Initialize new fields.
8081         (nvptx_exec): Use num_sms, and new fields.
8083 2018-07-26  Tom de Vries  <tdevries@suse.de>
8085         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
8086         to correct locations.  Remove xfail.
8088 2018-07-26  Tom de Vries  <tdevries@suse.de>
8090         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
8091         acc_wait.  Move acc_async_test calls to correct locations.  Remove
8092         xfail.
8094 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
8095         Thomas Koenig <tkoenig@gcc.gnu.org>
8097         PR fortran/25829
8098         * testsuite/libgomp.fortran/async_io_1.f90: New test.
8099         * testsuite/libgomp.fortran/async_io_2.f90: New test.
8100         * testsuite/libgomp.fortran/async_io_3.f90: New test.
8101         * testsuite/libgomp.fortran/async_io_4.f90: New test.
8102         * testsuite/libgomp.fortran/async_io_5.f90: New test.
8103         * testsuite/libgomp.fortran/async_io_6.f90: New test.
8104         * testsuite/libgomp.fortran/async_io_7.f90: New test.
8106 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
8108         PR middle-end/86542
8109         * testsuite/libgomp.c++/pr86542.C: New test.
8111         PR middle-end/86539
8112         * testsuite/libgomp.c++/pr86539.C: New test.
8114 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
8116         PR c++/86443
8117         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
8118         (results): Make sure the variable is not inside declare target region.
8119         (qux): Remove unused function.
8121 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
8123         PR c++/86443
8124         * testsuite/libgomp.c++/for-15.C: New test.
8126 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
8128         PR c++/86291
8129         * testsuite/libgomp.c++/pr86291.C: New test.
8131 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
8133         * libgomp.texi (Top): Move www.openmp.org to https.
8134         (Enabling OpenMP): Ditto.
8135         (omp_get_active_level): Ditto.
8136         (omp_get_ancestor_thread_num): Ditto.
8137         (omp_get_cancellation): Ditto.
8138         (omp_get_default_device): Ditto.
8139         (omp_get_dynamic): Ditto.
8140         (omp_get_level): Ditto.
8141         (omp_get_max_active_levels): Ditto.
8142         (omp_get_max_task_priority): Ditto.
8143         (omp_get_max_threads): Ditto.
8144         (omp_get_nested): Ditto.
8145         (omp_get_num_devices): Ditto.
8146         (omp_get_num_procs): Ditto.
8147         (omp_get_num_teams): Ditto.
8148         (omp_get_num_threads): Ditto.
8149         (omp_get_proc_bind): Ditto.
8150         (omp_get_schedule): Ditto.
8151         (omp_get_team_num): Ditto.
8152         (omp_get_team_size): Ditto.
8153         (omp_get_thread_limit): Ditto.
8154         (omp_get_thread_num): Ditto.
8155         (omp_in_parallel): Ditto.
8156         (omp_in_final): Ditto.
8157         (omp_is_initial_device): Ditto.
8158         (omp_set_default_device): Ditto.
8159         (omp_set_dynamic): Ditto.
8160         (omp_set_max_active_levels): Ditto.
8161         (omp_set_nested): Ditto.
8162         (omp_set_num_threads): Ditto.
8163         (omp_set_schedule): Ditto.
8164         (omp_init_lock): Ditto.
8165         (omp_set_lock): Ditto.
8166         (omp_test_lock): Ditto.
8167         (omp_unset_lock): Ditto.
8168         (omp_destroy_lock): Ditto.
8169         (omp_init_nest_lock): Ditto.
8170         (omp_set_nest_lock): Ditto.
8171         (omp_test_nest_lock): Ditto.
8172         (omp_unset_nest_lock): Ditto.
8173         (omp_destroy_nest_lock): Ditto.
8174         (omp_get_wtick): Ditto.
8175         (omp_get_wtime): Ditto.
8176         (OMP_CANCELLATION): Ditto.
8177         (OMP_DISPLAY_ENV): Ditto.
8178         (OMP_DEFAULT_DEVICE): Ditto.
8179         (OMP_DYNAMIC): Ditto.
8180         (OMP_MAX_ACTIVE_LEVELS): Ditto.
8181         (OMP_MAX_TASK_PRIORITY): Ditto.
8182         (OMP_NESTED): Ditto.
8183         (OMP_NUM_THREADS): Ditto.
8184         (OMP_PROC_BIND): Ditto.
8185         (OMP_PLACES): Ditto.
8186         (OMP_STACKSIZE): Ditto.
8187         (OMP_SCHEDULE): Ditto.
8188         (OMP_THREAD_LIMIT): Ditto.
8189         (OMP_WAIT_POLICY): Ditto.
8191 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
8192             James Norris  <jnorris@codesourcery.com>
8193             Julian Brown  <julian@codesourcery.com>
8194             Thomas Schwinge  <thomas@codesourcery.com>
8195             Tom de Vries  <tom@codesourcery.com>
8197         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
8198         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
8199         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
8200         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
8201         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8202         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8203         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
8204         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
8205         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
8206         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
8207         Likewise.
8208         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
8209         Likewise.
8210         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
8211         Likewise.
8212         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
8213         Likewise.
8214         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
8215         Likewise.
8216         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
8217         Likewise.
8218         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
8219         Likewise.
8220         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
8221         Likewise.
8222         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
8223         Likewise.
8224         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
8225         Likewise.
8226         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
8227         Likewise.
8228         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
8229         Likewise.
8230         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
8231         Likewise.
8232         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
8233         Likewise.
8234         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
8235         Likewise.
8236         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
8237         Likewise.
8238         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
8239         Likewise.
8240         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
8241         Likewise.
8242         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
8243         Likewise.
8244         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
8245         Likewise.
8246         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
8247         Likewise.
8248         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
8249         Likewise.
8250         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
8251         Likewise.
8252         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
8253         Likewise.
8254         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
8255         Likewise.
8256         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
8257         Likewise.
8258         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
8259         Likewise.
8260         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
8261         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
8262         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
8263         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
8264         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
8265         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
8266         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
8267         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
8268         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8269         Likewise.
8270         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8271         Likewise.
8272         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
8273         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
8274         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
8275         Likewise.
8276         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
8277         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
8278         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8279         Likewise.
8280         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8281         Likewise.
8282         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8283         Likewise.
8284         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8285         Likewise.
8286         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8287         Likewise.
8288         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
8289         Likewise.
8290         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
8291         Likewise.
8292         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
8293         Likewise.
8294         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
8295         Likewise.
8296         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
8297         Likewise.
8298         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
8299         Likewise.
8300         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
8301         Likewise.
8302         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
8303         Likewise.
8304         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
8305         Likewise.
8306         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
8307         Likewise.
8308         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8309         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
8310         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
8311         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
8312         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
8313         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
8314         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
8316 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
8317             Thomas Schwinge <thomas@codesourcery.com>
8318             Cesar Philippidis  <cesar@codesourcery.com>
8320         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
8321         (gomp_acc_remove_pointer): Update declaration.
8322         (gomp_acc_declare_allocate): Declare.
8323         (gomp_remove_var): Declare.
8324         * libgomp.map (OACC_2.5): Define.
8325         * oacc-mem.c (acc_map_data): Update refcount.
8326         (acc_unmap_data): Likewise.
8327         (present_create_copy): Likewise.
8328         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
8329         (acc_copyin): Likewise.
8330         (FLAG_FINALIZE): Define.
8331         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
8332         (acc_delete_finalize): New function.
8333         (acc_delete_finalize_async): New function.
8334         (acc_copyout_finalize): New function.
8335         (acc_copyout_finalize_async): New function.
8336         (gomp_acc_insert_pointer): Update refcounts.
8337         (gomp_acc_remove_pointer): Return if data is not present on the
8338         accelerator.
8339         * oacc-parallel.c (find_pset): Rename to find_pointer.
8340         (find_pointer): Add support for GOMP_MAP_POINTER.
8341         (handle_ftn_pointers): New function.
8342         (GOACC_parallel_keyed): Update refcounts of variables.
8343         (GOACC_enter_exit_data): Add support for finalized data mappings.
8344         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
8345         of fortran arrays.
8346         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
8347         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
8348         for GOMP_MAP_FORCE_FROM.
8349         * openacc.f90 (module openacc_internal): Add
8350         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
8351         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
8352         acc_copyout_finalize and acc_delete_finalize.
8353         (acc_copyout_finalize_32_h): New subroutine.
8354         (acc_copyout_finalize_64_h): New subroutine.
8355         (acc_copyout_finalize_array_h): New subroutine.
8356         (acc_delete_finalize_32_h): New subroutine.
8357         (acc_delete_finalize_64_h): New subroutine.
8358         (acc_delete_finalize_array_h): New subroutine.
8359         * openacc.h (acc_copyout_finalize): Declare.
8360         (acc_copyout_finalize_async): Declare.
8361         (acc_delete_finalize): Declare.
8362         (acc_delete_finalize_async): Declare.
8363         * openacc_lib.h (acc_copyout_finalize): New interface.
8364         (acc_delete_finalize): New interface.
8365         * target.c (gomp_map_vars): Update dynamic_refcount.
8366         (gomp_remove_var): New function.
8367         (gomp_unmap_vars): Use it.
8368         (gomp_unload_image_from_device): Likewise.
8369         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
8370         case to utilize OpenACC 2.5 data clause semantics.
8371         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8372         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8373         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8374         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8375         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8376         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8377         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8378         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8379         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8380         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8381         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8382         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
8383         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
8384         utilize OpenACC 2.5 data clause semantics.
8385         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8386         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8387         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8388         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8389         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8390         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8391         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8392         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8393         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8395 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
8397         PR fortran/85841
8398         PR testsuite/85865
8399         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
8400         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8401         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8402         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8403         * testsuite/libgomp.fortran/task2.f90: Ditto.
8404         * testsuite/libgomp.fortran/vla1.f90: Ditto.
8405         * testsuite/libgomp.fortran/vla2.f90: Ditto.
8406         * testsuite/libgomp.fortran/vla3.f90: Ditto.
8407         * testsuite/libgomp.fortran/vla4.f90: Ditto.
8408         * testsuite/libgomp.fortran/vla5.f90: Ditto.
8409         * testsuite/libgomp.fortran/vla6.f90: Ditto.
8410         * testsuite/libgomp.fortran/vla8.f90: Ditto.
8411         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
8412         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
8414 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
8416         PR c++/85782
8417         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
8419 2018-05-09  Tom de Vries  <tom@codesourcery.com>
8421         PR libgomp/82901
8422         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
8423         to GOACC_enter_exit_data.
8425 2018-05-09  Tom de Vries  <tom@codesourcery.com>
8427         PR libgomp/83792
8428         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
8429         (async_synchronous_p): New function.
8430         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
8431         async_valid_p.
8432         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8433         async_valid_stream_id_p.
8434         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
8435         * oacc-parallel.c (GOACC_parallel_keyed): Same.
8437 2018-05-07  Tom de Vries  <tom@codesourcery.com>
8439         PR testsuite/85677
8440         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
8441         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
8443 2018-05-03  Tom de Vries  <tom@codesourcery.com>
8445         PR testsuite/85106
8446         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
8447         extra_tool_flags if it contains an -foffload=-fdump-* flag.
8448         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
8449         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
8451 2018-05-02  Tom de Vries  <tom@codesourcery.com>
8453         PR libgomp/85411
8454         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
8455         GOMP_OPENACC_DIM ...
8456         * env.c (parse_gomp_openacc_dim): ... here.  New function.
8457         (initialize_env): Call parse_gomp_openacc_dim.
8458         (goacc_default_dims): Define.
8459         * libgomp.h (goacc_default_dims): Declare.
8460         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
8461         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
8462         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
8463         GOMP_PLUGIN_acc_default_dim.
8464         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
8465         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
8467 2018-05-02  Tom de Vries  <tom@codesourcery.com>
8469         PR testsuite/83791
8470         * testsuite/libgomp.c++/udr-9.C: Update.
8471         * testsuite/libgomp.c++/atomic-16.C: Remove.
8472         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
8473         * testsuite/libgomp.c++/loop-13.C: Remove.
8474         * testsuite/libgomp.c++/loop-14.C: Remove.
8475         * testsuite/libgomp.c++/loop-15.C: Remove.
8476         * testsuite/libgomp.c++/monotonic-1.C: Remove.
8477         * testsuite/libgomp.c++/monotonic-2.C: Remove.
8478         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
8479         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
8480         * testsuite/libgomp.c++/ordered-1.C: Remove.
8481         * testsuite/libgomp.c++/pr45784.C: Remove.
8482         * testsuite/libgomp.c++/pr64824.C: Remove.
8483         * testsuite/libgomp.c++/pr64868.C: Remove.
8484         * testsuite/libgomp.c++/pr66199-1.C: Remove.
8485         * testsuite/libgomp.c++/pr66199-2.C: Remove.
8486         * testsuite/libgomp.c++/pr66199-3.C: Remove.
8487         * testsuite/libgomp.c++/pr66199-4.C: Remove.
8488         * testsuite/libgomp.c++/pr66199-5.C: Remove.
8489         * testsuite/libgomp.c++/pr66199-6.C: Remove.
8490         * testsuite/libgomp.c++/pr66199-7.C: Remove.
8491         * testsuite/libgomp.c++/pr66199-8.C: Remove.
8492         * testsuite/libgomp.c++/pr66199-9.C: Remove.
8493         * testsuite/libgomp.c++/pr69389.C: Remove.
8494         * testsuite/libgomp.c++/simd10.C: Remove.
8495         * testsuite/libgomp.c++/simd11.C: Remove.
8496         * testsuite/libgomp.c++/simd12.C: Remove.
8497         * testsuite/libgomp.c++/simd13.C: Remove.
8498         * testsuite/libgomp.c++/target-1.C: Remove.
8499         * testsuite/libgomp.c++/target-3.C: Remove.
8500         * testsuite/libgomp.c++/target-4.C: Remove.
8501         * testsuite/libgomp.c++/target-5.C: Remove.
8502         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
8503         * testsuite/libgomp.c++/taskloop-1.C: Remove.
8504         * testsuite/libgomp.c++/taskloop-2.C: Remove.
8505         * testsuite/libgomp.c++/taskloop-3.C: Remove.
8506         * testsuite/libgomp.c++/taskloop-4.C: Remove.
8507         * testsuite/libgomp.c++/udr-9.C: Remove.
8508         * testsuite/libgomp.c++/for-10.C: Remove.
8509         * testsuite/libgomp.c++/for-11.C: Remove.
8510         * testsuite/libgomp.c++/for-12.C: Remove.
8511         * testsuite/libgomp.c++/for-13.C: Remove.
8512         * testsuite/libgomp.c++/for-14.C: Remove.
8513         * testsuite/libgomp.c++/for-9.C: Remove.
8514         * testsuite/libgomp.c/atomic-18.c: Move ...
8515         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
8516         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
8517         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
8518         * testsuite/libgomp.c/loop-13.c: Move ...
8519         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
8520         * testsuite/libgomp.c/loop-14.c: Move ...
8521         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
8522         * testsuite/libgomp.c/loop-15.c: Remove.
8523         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
8524         * testsuite/libgomp.c/monotonic-1.c: Move ...
8525         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
8526         * testsuite/libgomp.c/monotonic-2.c: Move ...
8527         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
8528         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
8529         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
8530         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
8531         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
8532         * testsuite/libgomp.c/ordered-4.c: Move ...
8533         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
8534         * testsuite/libgomp.c/pr45784.c: Move ...
8535         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
8536         * testsuite/libgomp.c/pr64824.c: Move ...
8537         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
8538         * testsuite/libgomp.c/pr64868.c: Move ...
8539         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
8540         * testsuite/libgomp.c/pr66199-1.c: Move ...
8541         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
8542         * testsuite/libgomp.c/pr66199-2.c: Move ...
8543         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
8544         * testsuite/libgomp.c/pr66199-3.c: Move ...
8545         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
8546         * testsuite/libgomp.c/pr66199-4.c: Move ...
8547         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
8548         * testsuite/libgomp.c/pr66199-5.c: Move ...
8549         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
8550         * testsuite/libgomp.c/pr66199-6.c: Move ...
8551         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
8552         * testsuite/libgomp.c/pr66199-7.c: Move ...
8553         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
8554         * testsuite/libgomp.c/pr66199-8.c: Move ...
8555         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
8556         * testsuite/libgomp.c/pr66199-9.c: Move ...
8557         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
8558         * testsuite/libgomp.c/pr69389.c: Move ...
8559         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
8560         * testsuite/libgomp.c/simd-14.c: Move ...
8561         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
8562         * testsuite/libgomp.c/simd-15.c: Move ...
8563         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
8564         * testsuite/libgomp.c/simd-16.c: Move ...
8565         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
8566         * testsuite/libgomp.c/simd-17.c: Move ...
8567         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
8568         * testsuite/libgomp.c/target-1.c: Move ...
8569         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
8570         * testsuite/libgomp.c/target-10.c: Move ...
8571         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
8572         * testsuite/libgomp.c/target-13.c: Move ...
8573         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
8574         * testsuite/libgomp.c/target-2.c: Move ...
8575         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
8576         * testsuite/libgomp.c/taskgroup-1.c: Move ...
8577         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
8578         * testsuite/libgomp.c/taskloop-1.c: Move ...
8579         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
8580         * testsuite/libgomp.c/taskloop-2.c: Move ...
8581         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
8582         * testsuite/libgomp.c/taskloop-3.c: Move ...
8583         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
8584         * testsuite/libgomp.c/taskloop-4.c: Move ...
8585         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
8586         * testsuite/libgomp.c/udr-1.c: Move ...
8587         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
8588         * testsuite/libgomp.c/for-1.c: Move ...
8589         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
8590         * testsuite/libgomp.c/for-1.h: Move ...
8591         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
8592         * testsuite/libgomp.c/for-2.c: Move ...
8593         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
8594         * testsuite/libgomp.c/for-2.h: Move ...
8595         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
8596         * testsuite/libgomp.c/for-3.c: Move ...
8597         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
8598         * testsuite/libgomp.c/for-4.c: Move ...
8599         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
8600         * testsuite/libgomp.c/for-5.c: Move ...
8601         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
8602         * testsuite/libgomp.c/for-6.c: Move ...
8603         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
8605 2018-05-02  Tom de Vries  <tom@codesourcery.com>
8607         PR libgomp/82428
8608         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
8609         __builtin_goacc_parlevel_{id,size}.
8610         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
8611         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
8612         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
8613         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
8614         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
8615         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
8616         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
8617         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
8618         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
8619         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
8620         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
8621         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
8622         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
8623         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
8624         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
8625         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
8626         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
8627         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
8628         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
8629         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
8630         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
8631         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
8632         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
8634 2018-05-02  Tom de Vries  <tom@codesourcery.com>
8636         PR testsuite/85106
8637         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
8639 2018-05-02  Tom de Vries  <tom@codesourcery.com>
8641         PR testsuite/85106
8642         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
8644 2018-04-29  Julian Brown  <julian@codesourcery.com>
8645             Tom de Vries  <tom@codesourcery.com>
8647         PR testsuite/85527
8648         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
8649         arbitrary order for iterations of atomic subtract check.
8651 2018-04-28  Tom de Vries  <tom@codesourcery.com>
8653         PR testsuite/85527
8654         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
8655         atomic capture results obtained in parallel loop to an array, instead of
8656         to a scalar.
8658 2018-04-26  Tom de Vries  <tom@codesourcery.com>
8660         PR libgomp/84020
8661         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
8662         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
8663         (process_GOMP_NVPTX_JIT): New function.
8664         (link_ptx): Use process_GOMP_NVPTX_JIT.
8666 2018-04-26  Richard Biener <rguenther@suse.de>
8667             Tom de Vries  <tom@codesourcery.com>
8669         PR lto/85422
8670         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
8672 2018-04-26  Tom de Vries  <tom@codesourcery.com>
8674         PR target/85519
8675         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
8676         recursion depth from 25 to 23.
8677         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
8679 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
8681         * configure: Regenerated.
8683 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
8684             Tom de Vries  <tom@codesourcery.com>
8686         PR target/85445
8687         * testsuite/libgomp.oacc-c++/ref-1.C: New.
8689 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
8691         PR libgomp/85463
8692         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
8693         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8694         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8695         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
8696         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
8697         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
8699         PR libfortran/85166
8700         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
8701         abort".
8702         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8704 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
8706         * configure: Regenerated.
8708 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
8710         PR jit/85384
8711         * configure: Regenerate.
8713 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
8714             Tom de Vries  <tom@codesourcery.com>
8716         PR middle-end/84955
8717         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8718         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8720 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
8722         PR fortran/83064
8723         PR testsuite/85346
8724         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
8725         test from gfortran.dg to here.
8727 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
8729         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
8730         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
8732 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
8734         PR middle-end/84955
8735         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8736         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8738 2018-04-05  Tom de Vries  <tom@codesourcery.com>
8740         PR target/85204
8741         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
8743 2018-03-26  Tom de Vries  <tom@codesourcery.com>
8745         PR tree-optimization/85063
8746         * testsuite/libgomp.c/switch-conversion-2.c: New test.
8747         * testsuite/libgomp.c/switch-conversion.c: New test.
8748         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
8749         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
8751 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
8753         PR fortran/84381
8754         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
8755         call abort by STOP n.
8756         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
8757         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
8758         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
8759         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
8760         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
8761         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
8762         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
8763         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
8764         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
8765         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
8766         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
8767         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
8768         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
8769         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
8770         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
8771         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
8772         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
8773         * testsuite/libgomp.fortran/associate1.f90: Likewise.
8774         * testsuite/libgomp.fortran/associate2.f90: Likewise.
8775         * testsuite/libgomp.fortran/associate3.f90: Likewise.
8776         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
8777         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
8778         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
8779         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
8780         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
8781         * testsuite/libgomp.fortran/character1.f90: Likewise.
8782         * testsuite/libgomp.fortran/character2.f90: Likewise.
8783         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
8784         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
8785         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
8786         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
8787         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
8788         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
8789         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
8790         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
8791         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
8792         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
8793         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
8794         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
8795         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
8796         * testsuite/libgomp.fortran/do1.f90: Likewise.
8797         * testsuite/libgomp.fortran/do2.f90: Likewise.
8798         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
8799         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
8800         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
8801         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
8802         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
8803         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
8804         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8805         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
8806         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
8807         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
8808         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
8809         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
8810         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8811         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
8812         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
8813         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
8814         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
8815         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
8816         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
8817         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
8818         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
8819         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
8820         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
8821         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
8822         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
8823         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
8824         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
8825         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8826         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
8827         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
8828         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
8829         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
8830         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
8831         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8832         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8833         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
8834         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
8835         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
8836         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
8837         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
8838         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
8839         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
8840         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
8841         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
8842         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
8843         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
8844         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
8845         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
8846         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
8847         * testsuite/libgomp.fortran/lib1.f90: Likewise.
8848         * testsuite/libgomp.fortran/lib2.f: Likewise.
8849         * testsuite/libgomp.fortran/lib3.f: Likewise.
8850         * testsuite/libgomp.fortran/lib4.f90: Likewise.
8851         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
8852         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
8853         * testsuite/libgomp.fortran/nested1.f90: Likewise.
8854         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
8855         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
8856         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
8857         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
8858         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
8859         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
8860         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
8861         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
8862         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
8863         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
8864         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
8865         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
8866         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
8867         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
8868         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
8869         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
8870         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
8871         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
8872         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
8873         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8874         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
8875         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
8876         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
8877         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
8878         * testsuite/libgomp.fortran/pr25162.f: Likewise.
8879         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
8880         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
8881         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
8882         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
8883         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
8884         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
8885         * testsuite/libgomp.fortran/pr28390.f: Likewise.
8886         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
8887         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
8888         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
8889         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
8890         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
8891         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
8892         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
8893         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
8894         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
8895         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
8896         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
8897         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
8898         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
8899         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
8900         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
8901         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
8902         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
8903         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
8904         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
8905         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
8906         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
8907         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
8908         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
8909         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
8910         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
8911         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
8912         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
8913         * testsuite/libgomp.fortran/reference1.f90: Likewise.
8914         * testsuite/libgomp.fortran/reference2.f90: Likewise.
8915         * testsuite/libgomp.fortran/retval1.f90: Likewise.
8916         * testsuite/libgomp.fortran/retval2.f90: Likewise.
8917         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
8918         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
8919         * testsuite/libgomp.fortran/simd1.f90: Likewise.
8920         * testsuite/libgomp.fortran/simd2.f90: Likewise.
8921         * testsuite/libgomp.fortran/simd3.f90: Likewise.
8922         * testsuite/libgomp.fortran/simd4.f90: Likewise.
8923         * testsuite/libgomp.fortran/simd5.f90: Likewise.
8924         * testsuite/libgomp.fortran/simd6.f90: Likewise.
8925         * testsuite/libgomp.fortran/simd7.f90: Likewise.
8926         * testsuite/libgomp.fortran/stack.f90: Likewise.
8927         * testsuite/libgomp.fortran/strassen.f90: Likewise.
8928         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
8929         * testsuite/libgomp.fortran/tabs2.f: Likewise.
8930         * testsuite/libgomp.fortran/target1.f90: Likewise.
8931         * testsuite/libgomp.fortran/target2.f90: Likewise.
8932         * testsuite/libgomp.fortran/target3.f90: Likewise.
8933         * testsuite/libgomp.fortran/target4.f90: Likewise.
8934         * testsuite/libgomp.fortran/target5.f90: Likewise.
8935         * testsuite/libgomp.fortran/target6.f90: Likewise.
8936         * testsuite/libgomp.fortran/target7.f90: Likewise.
8937         * testsuite/libgomp.fortran/target8.f90: Likewise.
8938         * testsuite/libgomp.fortran/task1.f90: Likewise.
8939         * testsuite/libgomp.fortran/task2.f90: Likewise.
8940         * testsuite/libgomp.fortran/task3.f90: Likewise.
8941         * testsuite/libgomp.fortran/task4.f90: Likewise.
8942         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
8943         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
8944         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
8945         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
8946         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
8947         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
8948         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
8949         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
8950         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
8951         * testsuite/libgomp.fortran/udr1.f90: Likewise.
8952         * testsuite/libgomp.fortran/udr10.f90: Likewise.
8953         * testsuite/libgomp.fortran/udr11.f90: Likewise.
8954         * testsuite/libgomp.fortran/udr12.f90: Likewise.
8955         * testsuite/libgomp.fortran/udr13.f90: Likewise.
8956         * testsuite/libgomp.fortran/udr14.f90: Likewise.
8957         * testsuite/libgomp.fortran/udr15.f90: Likewise.
8958         * testsuite/libgomp.fortran/udr2.f90: Likewise.
8959         * testsuite/libgomp.fortran/udr3.f90: Likewise.
8960         * testsuite/libgomp.fortran/udr4.f90: Likewise.
8961         * testsuite/libgomp.fortran/udr5.f90: Likewise.
8962         * testsuite/libgomp.fortran/udr6.f90: Likewise.
8963         * testsuite/libgomp.fortran/udr7.f90: Likewise.
8964         * testsuite/libgomp.fortran/udr8.f90: Likewise.
8965         * testsuite/libgomp.fortran/udr9.f90: Likewise.
8966         * testsuite/libgomp.fortran/vla1.f90: Likewise.
8967         * testsuite/libgomp.fortran/vla2.f90: Likewise.
8968         * testsuite/libgomp.fortran/vla3.f90: Likewise.
8969         * testsuite/libgomp.fortran/vla4.f90: Likewise.
8970         * testsuite/libgomp.fortran/vla5.f90: Likewise.
8971         * testsuite/libgomp.fortran/vla6.f90: Likewise.
8972         * testsuite/libgomp.fortran/vla7.f90: Likewise.
8973         * testsuite/libgomp.fortran/vla8.f90: Likewise.
8974         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
8975         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
8976         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8977         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8978         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8979         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8980         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8981         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8982         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8983         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8984         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
8985         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
8986         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
8987         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
8988         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8989         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8990         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8991         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8992         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8993         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8994         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8995         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8996         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8997         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
8998         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
8999         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9000         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9001         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
9002         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9003         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
9004         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
9005         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9006         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9007         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9008         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9009         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9010         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
9011         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
9012         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
9013         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
9014         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
9015         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
9016         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
9017         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
9018         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
9019         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
9020         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
9021         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
9022         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
9023         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
9024         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
9025         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
9026         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9027         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9028         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
9029         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
9030         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
9031         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
9032         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
9033         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
9034         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
9035         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
9036         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
9037         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
9038         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9039         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9040         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
9041         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9042         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
9043         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9044         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
9045         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
9046         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
9047         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
9048         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
9049         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9050         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9051         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9052         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9053         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9054         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9055         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9056         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
9057         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
9058         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9059         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9060         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9061         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9062         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
9063         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
9064         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
9065         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9066         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9067         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
9069 2018-03-20  Richard Biener  <rguenther@suse.de>
9071         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
9072         parallelizable loop.
9074 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
9076         PR target/84148
9077         * configure: Regenerate.
9079 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
9081         PR fortran/84418
9082         * libgomp.fortran/pr84418-1.f90: New test.
9083         * libgomp.fortran/pr84418-2.f90: New test.
9085 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
9087         PR fortran/84313
9088         * testsuite/libgomp.fortran/threadprivate4.f90: Add
9089         -std=f2003 -fall-intrinsics into dg-additional-options.
9091 2018-02-08  Martin Jambor  <mjambor@suse.cz>
9093         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
9094         clonable.
9096 2018-02-08  Martin Jambor  <mjambor@suse.cz>
9098         * testsuite/libgomp.hsa.c/staticvar.c: New test.
9100 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9102         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
9103         [__cplusplus]: Declare extern "C".
9105 2018-02-07  Tom de Vries  <tom@codesourcery.com>
9107         PR libgomp/84217
9108         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
9110 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
9111             Jakub Jelinek  <jakub@redhat.com>
9113         PR libgomp/84096
9114         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
9115         instead of omp_lock_t.
9117 2018-01-25  Tom de Vries  <tom@codesourcery.com>
9119         PR target/84028
9120         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
9122 2018-01-24  Tom de Vries  <tom@codesourcery.com>
9124         PR target/83589
9125         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
9127 2018-01-24  Tom de Vries  <tom@codesourcery.com>
9129         PR target/81352
9130         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
9132 2018-01-19  Tom de Vries  <tom@codesourcery.com>
9133             Cesar Philippidis  <cesar@codesourcery.com>
9135         PR target/83920
9136         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
9137         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
9139 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
9141         Update copyright years.
9143         * libgomp.texi: Bump @copying's copyright year.
9145 2017-12-30  Tom de Vries  <tom@codesourcery.com>
9147         PR libgomp/83046
9148         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
9149         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
9151 2017-12-27  Tom de Vries  <tom@codesourcery.com>
9153         PR c++/83046
9154         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
9155         (test_nonstatic): Fix return type to workaround PR83046.
9157 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
9159         PR testsuite/83281
9160         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
9161         j suffix instead of i.
9162         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
9163         Likewise.
9165 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
9167         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
9168         call to acc_wait (1).
9170 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
9172         PR fortran/81304
9173         * testsuite/libgomp.fortran/pr81304.f90: New test.
9175 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
9177         PR fortran/81841
9178         * libgomp.fortran/pr81841.f90: New test.
9180 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
9182         PR libgomp/83106
9183         * target.c (gomp_target_init): Compute lengths just once and
9184         use them in both malloc size and subsequent copying.
9186 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
9188         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
9189         * acinclude.m4: Add cet.m4.
9190         * configure: Regenerate.
9191         * Makefile.in: Likewise.
9192         * testsuite/Makefile.in: Likewise.
9194 2017-11-15  Tom de Vries  <tom@codesourcery.com>
9196         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
9197         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
9198         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
9199         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
9200         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
9201         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
9203 2017-11-14  Tom de Vries  <tom@codesourcery.com>
9205         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
9206         non-nvidia devices.
9208 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
9210         PR c++/82835
9211         * testsuite/libgomp.c++/pr82835.C: New test.
9213 2017-11-06  Martin Liska  <mliska@suse.cz>
9215         * testsuite/libgomp.c++/loop-2.C: Return a value
9216         for functions with non-void return type, or change type to void,
9217         or add -Wno-return-type for test.
9218         * testsuite/libgomp.c++/loop-4.C: Likewise.
9219         * testsuite/libgomp.c++/parallel-1.C: Likewise.
9220         * testsuite/libgomp.c++/shared-1.C: Likewise.
9221         * testsuite/libgomp.c++/single-1.C: Likewise.
9222         * testsuite/libgomp.c++/single-2.C: Likewise.
9224 2017-10-31  Tom de Vries  <tom@codesourcery.com>
9226         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
9227         "do {} while (false)".
9228         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
9229         after HSA_DEBUG call.
9231 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
9233         * target.c (struct gomp_coalesce_buf): New type.
9234         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
9235         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
9236         (gomp_copy_host2dev): Add CBUF argument, if copying into
9237         the cached ranges, memcpy into buffer instead of copying
9238         into device.
9239         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
9240         Add CBUF argument, pass it through to other calls.
9241         (gomp_map_vars): Aggregate copies from host to device if small enough
9242         and with small enough gaps in between into memcpy into a buffer and
9243         fewer host to device copies from the buffer.
9244         (gomp_update): Adjust gomp_copy_host2dev caller.
9246 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
9248         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
9249         run" directive.
9250         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9251         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9252         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9253         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9255 2017-10-16  Tom de Vries  <tom@codesourcery.com>
9257         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
9258         openacc_nvidia_accel_selected.
9259         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
9260         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
9261         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
9262         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
9263         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
9264         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
9265         openacc_nvidia_accel_selected. Skip for shared memory device.
9266         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
9267         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
9269 2017-10-09  Martin Jambor  <mjambor@suse.cz>
9271         PR hsa/82416
9272         * testsuite/libgomp.hsa.c/pr82416.c: New test.
9274 2017-10-07  Tom de Vries  <tom@codesourcery.com>
9276         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
9277         Remove acc_device_nvidia references.
9278         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
9279         Same.
9281 2017-10-05  Tom de Vries  <tom@codesourcery.com>
9283         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
9284         vector_length(32) clause from acc parallel directive.
9285         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
9287 2017-10-04  Tom de Vries  <tom@codesourcery.com>
9289         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
9290         (main): Reduce sum of arr elements.  Assert that hres is exactly
9291         representable in 32-bit floating point.
9292         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
9293         (main): Reduce sum of arr elements.  Assert that hres and hmres are
9294         exactly representable in 32-bit floating point.
9295         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
9297 2017-09-28  Tom de Vries  <tom@codesourcery.com>
9299         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
9300         setting.
9301         * testsuite/libgomp.c++/pr69393.C: Same.
9302         * testsuite/libgomp.c++/taskloop-1.C: Same.
9303         * testsuite/libgomp.c++/taskloop-3.C: Same.
9304         * testsuite/libgomp.c++/taskloop-4.C: Same.
9305         * testsuite/libgomp.c/for-4.c: Same.
9306         * testsuite/libgomp.c/pr66199-3.c: Same.
9307         * testsuite/libgomp.c/pr66199-4.c: Same.
9308         * testsuite/libgomp.c/pr66199-6.c: Same.
9309         * testsuite/libgomp.c/taskloop-1.c: Same.
9310         * testsuite/libgomp.c/taskloop-3.c: Same.
9311         * testsuite/libgomp.c/taskloop-4.c: Same.
9312         * testsuite/libgomp.fortran/aligned1.f03: Same.
9313         * testsuite/libgomp.fortran/condinc1.f: Same.
9314         * testsuite/libgomp.fortran/condinc3.f90: Same.
9315         * testsuite/libgomp.fortran/crayptr1.f90: Same.
9316         * testsuite/libgomp.fortran/crayptr2.f90: Same.
9317         * testsuite/libgomp.fortran/crayptr3.f90: Same.
9318         * testsuite/libgomp.fortran/omp_cond1.f: Same.
9319         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
9320         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
9321         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
9322         * testsuite/libgomp.fortran/recursion1.f90: Same.
9323         * testsuite/libgomp.fortran/target2.f90: Same.
9324         * testsuite/libgomp.fortran/target5.f90: Same.
9325         * testsuite/libgomp.fortran/task3.f90: Same.
9327 2017-09-28  Tom de Vries  <tom@codesourcery.com>
9329         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
9330         vector_length(32) clause from acc parallel directive.
9331         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
9333 2017-09-27  Tom de Vries  <tom@codesourcery.com>
9335         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
9336         Remove acc_device_nvidia references.
9338 2017-09-16  Tom de Vries  <tom@codesourcery.com>
9340         PR c/81875
9341         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
9343 2017-09-14  Tom de Vries  <tom@codesourcery.com>
9345         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
9346         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
9347         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
9348         * testsuite/libgomp.c/c.exp: Include test-cases from
9349         libgomp.c-c++-common.
9350         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
9351         files.
9353 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
9355         PR c++/81314
9356         * testsuite/libgomp.c++/pr81314.C: New test.
9358 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
9360         * libgomp.texi (Top): www.openacc.org now uses https.
9361         (Enabling OpenACC): Ditto.
9362         (acc_get_num_devices): Ditto.
9363         (acc_set_device_type): Ditto.
9364         (acc_get_device_type): Ditto.
9365         (acc_set_device_num): Ditto.
9366         (acc_get_device_num): Ditto.
9367         (acc_async_test): Ditto.
9368         (acc_async_test_all): Ditto.
9369         (acc_wait): Ditto.
9370         (acc_wait_all): Ditto.
9371         (acc_wait_all_async): Ditto.
9372         (acc_wait_async): Ditto.
9373         (acc_init): Ditto.
9374         (acc_shutdown): Ditto.
9375         (acc_on_device): Ditto.
9376         (acc_malloc): Ditto.
9377         (acc_free): Ditto.
9378         (acc_copyin): Ditto.
9379         (acc_present_or_copyin): Ditto.
9380         (acc_create): Ditto.
9381         (acc_present_or_create): Ditto.
9382         (acc_copyout): Ditto.
9383         (acc_delete): Ditto.
9384         (acc_update_device): Ditto.
9385         (acc_update_self): Ditto.
9386         (acc_map_data): Ditto.
9387         (acc_unmap_data): Ditto.
9388         (acc_deviceptr): Ditto.
9389         (acc_hostptr): Ditto.
9390         (acc_is_present): Ditto.
9391         (acc_memcpy_to_device): Ditto.
9392         (acc_memcpy_from_device): Ditto.
9393         (acc_get_current_cuda_device): Ditto.
9394         (acc_get_current_cuda_context): Ditto.
9395         (acc_get_cuda_stream): Ditto.
9396         (acc_set_cuda_stream): Ditto.
9397         (ACC_DEVICE_TYPE): Ditto.
9398         (ACC_DEVICE_NUM): Ditto.
9399         (OpenACC Library Interoperability): Ditto.
9401 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
9403         PR c/81687
9404         * testsuite/libgomp.c/pr81687-1.c: New test.
9405         * testsuite/libgomp.c/pr81687-2.c: New test.
9407 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
9409         PR c/69389
9410         * testsuite/libgomp.c/pr69389.c: New test.
9411         * testsuite/libgomp.c++/pr69389.C: New test.
9413 2017-08-07  Tom de Vries  <tom@codesourcery.com>
9415         PR middle-end/78266
9416         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
9417         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
9419 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
9421         PR c/45784
9422         * testsuite/libgomp.c/pr45784.c: New test.
9423         * testsuite/libgomp.c++/pr45784.C: New test.
9425 2017-07-19  Tom de Vries  <tom@codesourcery.com>
9427         * testsuite/libgomp.oacc-c/vec.c: New test.
9429 2017-07-03  Tom de Vries  <tom@codesourcery.com>
9431         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
9433 2017-06-27  Tom de Vries  <tom@codesourcery.com>
9435         * plugin/plugin-nvptx.c (notify_var): New function.
9436         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
9438 2017-06-27  Tom de Vries  <tom@codesourcery.com>
9440         * env.c (parse_unsigned_long_1): Factor out of ...
9441         (parse_unsigned_long): ... here.
9442         (parse_int_1): Factor out of ...
9443         (parse_int): ... here.
9444         (parse_int_secure): New function.
9445         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
9446         * secure_getenv.h: Factor out of ...
9447         * plugin/plugin-hsa.c: ... here.
9448         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
9450 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
9452         PR c++/81130
9453         * testsuite/libgomp.c++/pr81130.C: New test.
9455 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9457         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
9458         default args.
9459         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
9460         dg-xfail-run-if default args.
9462 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9464         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
9465         * testsuite/libgomp.c/pr39591-3.c: Likewise.
9467 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
9469         PR libgomp/80822
9470         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
9471         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
9472         sibling lists, depending on level just pick up what CPUs to put
9473         together into a place vs. whether add multiple ordered places.
9475 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
9477         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
9478         * libgomp.map (OACC_2.0.1): Add these.
9479         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
9480         for "acc_wait", and "acc_wait_all", respectively.
9481         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
9482         for "acc_wait", and "acc_wait_all", respectively.
9483         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
9484         * libgomp.texi (acc_wait, acc_wait_all): Update.
9485         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
9486         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
9487         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9489         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
9490         acc_present_or_copyin and acc_present_or_create procedures,
9491         respectively.
9492         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
9493         generally different variants of OpenACC Runtime Library functions.
9494         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9496         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
9497         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9499         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
9500         of preprocessor definitions.
9501         * libgomp.h (strong_alias): Guard by "#ifdef
9502         HAVE_ATTRIBUTE_ALIAS".
9503         * oacc-mem.c: Provide "acc_pcreate" as alias for
9504         "acc_present_or_create", and "acc_pcopyin" as alias for
9505         "acc_present_or_copyin".
9506         * libgomp.map: New version "OACC_2.0.1".
9507         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
9508         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
9509         its content into...
9510         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
9511         Extend testing.
9513         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
9514         when disabling nvptx offloading.
9516 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
9518         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
9519         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
9520         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
9522         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
9523         * testsuite/lib/libgomp.exp
9524         (check_effective_target_openacc_nvidia_accel_configured): New
9525         proc.
9526         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
9527         (check_effective_target_c++): New procs.
9528         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
9529         (check_effective_target_c++): Likewise.
9531 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
9533         PR middle-end/80809
9534         * testsuite/libgomp.c/pr80809-2.c: New test.
9535         * testsuite/libgomp.c/pr80809-3.c: New test.
9537         PR middle-end/80809
9538         * testsuite/libgomp.c/pr80809-1.c: New test.
9540         PR middle-end/80853
9541         * testsuite/libgomp.c/pr80853.c: New test.
9543 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
9545         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
9546         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
9547         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9548         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9549         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
9551         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
9552         Debug output for failure.
9554 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9556         * testsuite/lib/libgomp.exp: Load scanlang.exp.
9558 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
9560         PR bootstrap/80531
9561         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
9562         bootstrap compare failures.
9564 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
9566         * testsuite/libgomp.c/target-36.c: New testcase.
9568 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
9570         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
9571         instead of char.
9573 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
9575         PR libgomp/80394
9576         * testsuite/libgomp.c/pr80394.c: New test.
9578 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
9580         PR libgomp/79876
9581         * config/posix/thread-stacksize.h: New file.
9582         * config/darwin/thread-stacksize.h: New file.
9583         * config/nvptx/thread-stacksize.h: New file.
9584         * env.c: Include thread-stacksize.h.
9585         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
9586         instead of 0.  Call pthread_attr_setstacksize even if
9587         GOMP_DEFAULT_STACKSIZE is non-zero.
9589 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
9591         * env.c (initialize_env): Initialize stacksize to 0.
9593 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
9595         PR c++/80029
9596         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
9598 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
9600         PR c/79940
9601         * testsuite/libgomp.c/pr79940.c: New test.
9603 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9605         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
9606         targets.
9607         Add __float128 options.
9609 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
9611         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
9612         hppa*-*-* dg-skip-if directive.
9614 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
9616         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
9617         dg-skip-if directive into a comment.
9619 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
9620             Chung-Lin Tang  <cltang@codesourcery.com>
9622         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
9623         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
9624         add additional case.
9625         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
9626         "openacc_nvidia_accel_selected".
9627         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
9628         Add num_workers(8) clause.
9630 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
9632         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
9633         hppa*-*-*.
9634         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
9635         include complex.h on hppa*-*-hpux*.
9636         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
9638 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
9640         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
9642         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
9643         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
9644         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
9645         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
9646         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
9647         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
9648         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
9649         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
9650         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
9651         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
9653 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
9655         * libgomp-plugin.h: #include <stdbool.h>.
9656         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
9657         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
9658         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
9659         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
9660         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
9661         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
9662         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
9663         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
9664         (GOMP_OFFLOAD_openacc_register_async_cleanup)
9665         (GOMP_OFFLOAD_openacc_async_test)
9666         (GOMP_OFFLOAD_openacc_async_test_all)
9667         (GOMP_OFFLOAD_openacc_async_wait)
9668         (GOMP_OFFLOAD_openacc_async_wait_async)
9669         (GOMP_OFFLOAD_openacc_async_wait_all)
9670         (GOMP_OFFLOAD_openacc_async_wait_all_async)
9671         (GOMP_OFFLOAD_openacc_async_set_async)
9672         (GOMP_OFFLOAD_openacc_create_thread_data)
9673         (GOMP_OFFLOAD_openacc_destroy_thread_data)
9674         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
9675         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
9676         (GOMP_OFFLOAD_openacc_get_cuda_stream)
9677         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
9678         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
9679         these.
9680         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
9681         (GOMP_OFFLOAD_unload_image): Fix argument types.
9683 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
9685         * testsuite/lib/libgomp.exp
9686         (check_effective_target_hsa_offloading_selected_nocache): Fix up
9687         check_compile invocation.  Fix up removal of executable.  Drop
9688         bogus "2>&1" argument.
9690         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
9691         directive.
9693 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
9694             Martin Jambor  <mjambor@suse.cz>
9696         * plugin/hsa.h: Moved to top level include.
9697         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
9699 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
9701         PR other/79046
9702         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
9703         of cat to get version from BASE-VER file.
9704         * testsuite/Makefile.in: Regenerated.
9706 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
9708         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
9709         for _WIN64.
9711 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
9713         * plugin/hsa.h: Add GCC runtime library exception.
9714         * plugin/hsa_ext_finalize.h: Likewise.
9716         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
9717         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
9718         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
9719         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
9720         plugin/include/cuda as include dir and -ldl instead of -lcuda as
9721         library to link ptx plugin against.
9722         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
9723         (CUDA_CALLS): Define.
9724         (cuda_lib, cuda_lib_inited): New variables.
9725         (init_cuda_lib): New function.
9726         (CUDA_CALL_PREFIX): Define.
9727         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
9728         (CUDA_CALL): Use FN instead of (FN).
9729         (CUDA_CALL_NOCHECK): Define.
9730         (cuda_error, fini_streams_for_device, select_stream_for_async,
9731         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
9732         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
9733         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
9734         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
9735         CUDA_CALL_NOCHECK.
9736         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
9737         CUDA_CALL_NOCHECK.
9738         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
9739         Use CUDA_CALL_NOCHECK.
9740         * plugin/cuda/cuda.h: New file.
9741         * config.h.in: Regenerated.
9742         * configure: Regenerated.
9744         PR other/79046
9745         * configure.ac: Add GCC_BASE_VER.
9746         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
9747         get version from BASE-VER file.
9748         * testsuite/Makefile.in: Regenerated.
9749         * configure: Regenerated.
9750         * Makefile.in: Regenerated.
9752 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9754         PR libgomp/60670
9755         * Makefile.am: Make fincludedir multilib-aware.
9756         * Makefile.in: Regenerate.
9758 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
9760         Update copyright years.
9762         * libgomp.texi: Bump @copying's copyright year.
9764 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9766         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
9767         pthread_spinlock_t instead of gomp_mutex_t lock.
9768         (gomp_get_thread_pool): Likewise.
9769         (gomp_release_thread_pool): Likewise.
9770         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
9771         Likewise.
9773 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9775         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
9776         thread pool in case nthreads == 1.
9778 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
9780         * config/nvptx/env.c: Delete.
9781         * icv.c: Move definitions of ICV variables back ...
9782         * env.c: ...here.  Do not compile environment-related functionality if
9783         LIBGOMP_OFFLOADED_ONLY is set.
9785 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
9787         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
9788         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
9789         * configure: Regenerate.
9790         * config.h.in: Likewise.
9792 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
9794         * Makefile.in: Regenerate with automake-1.11.6.
9795         * aclocal.m4: Likewise.
9796         * configure: Likewise.
9797         * testsuite/Makefile.in: Likewise.
9799 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
9801         * config/nvptx/critical.c: Delete to use generic implementation.
9803 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
9805         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
9806         ../../affinity.c as fallback.
9807         * config/nvptx/affinity.c: Delete to use fallback implementation.
9809 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
9810             Jakub Jelinek  <jakub@redhat.com>
9811             Dmitry Melnik  <dm@ispras.ru>
9813         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
9814         * Makefile.in. Regenerate.
9815         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
9816         (LIBGOMP_USE_PTHREADS): ...here; new define.
9817         * configure: Regenerate.
9818         * config.h.in: Likewise.
9819         * config/posix/affinity.c: Move to...
9820         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
9821         interface by LIBGOMP_USE_PTHREADS. 
9822         * critical.c: Split out GOMP_atomic_{start,end} into...
9823         * atomic.c: ...here (new file).
9824         * env.c: Split out ICV definitions into...
9825         * icv.c: ...here (new file) and...
9826         * icv-device.c: ...here. New file.
9827         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
9828         (gomp_destroy_lock_30): Ditto.
9829         (gomp_set_lock_30): Ditto.
9830         (gomp_unset_lock_30): Ditto.
9831         (gomp_test_lock_30): Ditto.
9832         (gomp_init_nest_lock_30): Ditto.
9833         (gomp_destroy_nest_lock_30): Ditto.
9834         (gomp_set_nest_lock_30): Ditto.
9835         (gomp_unset_nest_lock_30): Ditto.
9836         (gomp_test_nest_lock_30): Ditto.
9837         * lock.c: New.
9838         * config/nvptx/lock.c: New.
9839         * config/nvptx/bar.c: New.
9840         * config/nvptx/bar.h: New.
9841         * config/nvptx/doacross.h: New.
9842         * config/nvptx/error.c: New.
9843         * config/nvptx/icv-device.c: New.
9844         * config/nvptx/mutex.h: New.
9845         * config/nvptx/pool.h: New.
9846         * config/nvptx/proc.c: New.
9847         * config/nvptx/ptrlock.h: New.
9848         * config/nvptx/sem.h: New.
9849         * config/nvptx/simple-bar.h: New.
9850         * config/nvptx/target.c: New.
9851         * config/nvptx/task.c: New.
9852         * config/nvptx/team.c: New.
9853         * config/nvptx/time.c: New.
9854         * config/posix/simple-bar.h: New.
9855         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
9856         (gomp_num_teams_var): Declare.
9857         (struct gomp_thread_pool): Change threads_dock member to
9858         gomp_simple_barrier_t.
9859         [__nvptx__] (gomp_thread): New implementation.
9860         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
9861         (gomp_thread_destructor): Ditto.
9862         (gomp_init_thread_affinity): Ditto.
9863         * team.c: Guard uses of Pthreads-specific interfaces by
9864         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
9865         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
9866         * config/nvptx/alloc.c: Delete.
9867         * config/nvptx/barrier.c: Ditto.
9868         * config/nvptx/fortran.c: Ditto.
9869         * config/nvptx/iter.c: Ditto.
9870         * config/nvptx/iter_ull.c: Ditto.
9871         * config/nvptx/loop.c: Ditto.
9872         * config/nvptx/loop_ull.c: Ditto.
9873         * config/nvptx/ordered.c: Ditto.
9874         * config/nvptx/parallel.c: Ditto.
9875         * config/nvptx/priority_queue.c: Ditto.
9876         * config/nvptx/sections.c: Ditto.
9877         * config/nvptx/single.c: Ditto.
9878         * config/nvptx/splay-tree.c: Ditto.
9879         * config/nvptx/work.c: Ditto.
9880         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
9881         -foffload=-lgfortran in addition to -lgfortran.
9882         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
9883         * plugin/plugin-nvptx.c: Include <limits.h>.
9884         (struct targ_fn_descriptor): Add new fields.
9885         (struct ptx_device): Ditto.  Set them...
9886         (nvptx_open_device): ...here.
9887         (nvptx_adjust_launch_bounds): New.
9888         (nvptx_host2dev): Allow NULL 'nvthd'.
9889         (nvptx_dev2host): Ditto.
9890         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
9891         (link_ptx): Adjust log sizes.
9892         (nvptx_host2dev): Allow NULL 'nvthd'.
9893         (nvptx_dev2host): Ditto.
9894         (nvptx_set_clocktick): New.  Use it...
9895         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
9896         fields.
9897         (GOMP_OFFLOAD_dev2dev): New.
9898         (nvptx_adjust_launch_bounds): New.
9899         (nvptx_stacks_size): New.
9900         (nvptx_stacks_alloc): New.
9901         (nvptx_stacks_free): New.
9902         (GOMP_OFFLOAD_run): New.
9903         (GOMP_OFFLOAD_async_run): New (stub).
9905 2016-11-23  Martin Jambor  <mjambor@suse.cz>
9907         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
9908         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
9909         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
9911 2016-11-23  Martin Liska  <mliska@suse.cz>
9912             Martin Jambor  <mjambor@suse.cz>
9914         * plugin/hsa.h: New file.
9915         * plugin/hsa_ext_finalize.h: New file.
9916         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
9917         header file unistd.h, and functions secure_getenv, __secure_getenv,
9918         getuid, geteuid, getgid and getegid.
9919         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
9920         -D_GNU_SOURCE.
9921         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
9922         Handle various cases of secure_getenv presence, add an implementation
9923         when we can test effective UID and GID.
9924         (struct hsa_runtime_fn_info): New structure.
9925         (hsa_runtime_fn_info hsa_fns): New variable.
9926         (hsa_runtime_lib): Likewise.
9927         (support_cpu_devices): Likewise.
9928         (init_enviroment_variables): Load newly introduced ENV
9929         variables.
9930         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
9931         (hsa_fatal): Likewise.
9932         (DLSYM_FN): New macro.
9933         (init_hsa_runtime_functions): New function.
9934         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
9935         structure.  Depending on environment, also allow CPU devices.
9936         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
9937         (get_kernarg_memory_region): Likewise.
9938         (GOMP_OFFLOAD_init_device): Likewise.
9939         (destroy_hsa_program): Likewise.
9940         (init_basic_kernel_info): New function.
9941         (GOMP_OFFLOAD_load_image): Use it.
9942         (create_and_finalize_hsa_program): Call hsa run-time functions via
9943         hsa_fns structure.
9944         (create_single_kernel_dispatch): Likewise.
9945         (release_kernel_dispatch): Likewise.
9946         (init_single_kernel): Likewise.
9947         (parse_target_attributes): Allow up multiple HSA grid dimensions.
9948         (get_group_size): New function.
9949         (run_kernel): Likewise.
9950         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
9951         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
9952         structure.
9953         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
9954         * testsuite/libgomp-test-support.exp.in: Likewise.
9955         * Makefile.in: Regenerated.
9956         * aclocal.m4: Likewise.
9957         * config.h.in: Likewise.
9958         * configure: Likewise.
9959         * testsuite/Makefile.in: Likewise.
9961 2016-11-15  Martin Jambor  <mjambor@suse.cz>
9962             Alexander Monakov  <amonakov@ispras.ru>
9964         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
9965         mapping clauses to target constructs.
9966         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
9968 2016-11-15  Matthias Klose  <doko@ubuntu.com>
9970         * configure: Regenerate.
9972 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
9974         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
9975         * omp_lib.h.in (openmp_version): Likewise.
9976         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
9977         of 201307.
9978         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9980         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
9981         (fib_wrapper): Add map(from: x) clause.
9982         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
9983         (e_53_2): Likewise.
9984         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
9985         (accum): Add map(tmp) clause.
9986         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
9987         (accum): Add map(tofrom: tmp) clause.
9988         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
9989         (gramSchmidt): Likewise.
9990         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
9991         map(tofrom: sum) clause.
9992         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
9993         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
9994         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
9995         only allowed on the loop iterator.
9996         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
9997         * testsuite/libgomp.fortran/taskloop2.f90: New test.
9998         * testsuite/libgomp.fortran/taskloop4.f90: New test.
9999         * testsuite/libgomp.fortran/doacross1.f90: New test.
10000         * testsuite/libgomp.fortran/doacross3.f90: New test.
10001         * testsuite/libgomp.fortran/taskloop1.f90: New test.
10002         * testsuite/libgomp.fortran/taskloop3.f90: New test.
10003         * testsuite/libgomp.fortran/doacross2.f90: New test.
10004         * testsuite/libgomp.c/doacross-1.c (main): Add missing
10005         #pragma omp atomic read.
10006         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
10007         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
10009 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
10010             Nathan Sidwell  <nathan@acm.org>
10012         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
10013         to determine default geometry.
10014         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
10015         dimension.
10017 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
10019         * hashtab.h: Use standard GPLv3 with runtime exception
10020         boilerplate.
10022 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
10024         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
10025         size when allocating new thread.
10027 2016-09-14  Marek Polacek  <polacek@redhat.com>
10029         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
10031 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
10033         PR fortran/71014
10034         * testsuite/libgomp.fortran/pr71014.f90: New test.
10036 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
10038         PR middle-end/70895
10039         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
10040         firstprivate clauses.
10041         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
10042         copy clauses.
10043         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10044         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10045         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
10046         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
10047         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
10048         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
10049         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10050         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
10051         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10052         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10053         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10054         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
10056 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
10058         PR fortran/70598
10059         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
10061 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
10063         PR c++/58706
10064         * testsuite/libgomp.c++/pr58706.C: New test.
10066 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
10068         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
10069         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
10070         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10071         Likewise.
10072         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
10073         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
10074         Likewise.
10075         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
10077         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
10078         test, and don't hardcode -O0.
10080 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
10082         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
10084 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
10086         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
10087         test.
10089 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
10091         PR middle-end/71734
10092         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
10093         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
10095 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
10097         PR fortran/71717
10098         * testsuite/libgomp.fortran/associate3.f90: New test.
10100 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
10102         * testsuite/libgomp.c++/target-21.C: New test.
10104 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
10106         * testsuite/libgomp.c++/target-20.C: New test.
10108 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
10109             Cesar Philippidis  <cesar@codesourcery.com>
10111         PR middle-end/71373
10112         * libgomp.oacc-c/nested-function-1.c: New file.
10113         * libgomp.oacc-c/nested-function-2.c: Likewise.
10114         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10115         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10116         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10118 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
10120         PR c/71381
10121         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
10122         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
10123         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
10125 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
10127         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
10128         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
10130 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
10132         PR c/70688
10133         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
10135 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
10137         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
10138         instead of invalid schedule(static, 0).
10139         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
10141 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
10143         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
10144         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
10145         parameter, use to set async stream around call to gomp_unmap_vars,
10146         call gomp_unmap_vars() with 'do_copyfrom' set to true.
10147         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
10148         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
10149         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
10150         (event_add): Add int parameter, initialize 'val' field when
10151         adding new ptx_event struct.
10152         (nvptx_evec): Adjust event_add() call arguments.
10153         (nvptx_host2dev): Likewise.
10154         (nvptx_dev2host): Likewise.
10155         (nvptx_wait_async): Likewise.
10156         (nvptx_wait_all_async): Likewise.
10157         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
10158         pass to event_add() call.
10159         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
10160         parameter.
10161         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
10162         call openacc.register_async_cleanup_func() hook.
10163         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
10164         * target.c (gomp_copy_from_async): Delete function.
10165         (gomp_map_vars): Remove async_refcount.
10166         (gomp_unmap_vars): Likewise.
10167         (gomp_load_image_to_device): Likewise.
10168         (omp_target_associate_ptr): Likewise.
10169         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
10170         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
10171         (gomp_copy_from_async): Remove.
10173 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
10175         * target.c (gomp_device_copy): New function.
10176         (gomp_copy_host2dev): Likewise.
10177         (gomp_copy_dev2host): Likewise.
10178         (gomp_free_device_memory): Likewise.
10179         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
10180         (gomp_map_pointer): Likewise.
10181         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
10182         NULL value from alloc_func plugin hook.
10183         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
10184         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
10185         (gomp_unmap_vars): Likewise.
10186         (gomp_update): Adjust to call gomp_copy_dev2host and
10187         gomp_copy_host2dev functions.
10188         (gomp_unload_image_from_device): Handle false value from
10189         unload_image_func plugin hook.
10190         (gomp_init_device): Handle false value from init_device_func
10191         plugin hook.
10192         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
10193         (omp_target_free): Adjust to call gomp_free_device_memory.
10194         (omp_target_memcpy): Handle return values from host2dev_func,
10195         dev2host_func, and dev2dev_func plugin hooks.
10196         (omp_target_memcpy_rect_worker): Likewise.
10197         (gomp_target_fini): Handle false value from fini_device_func
10198         plugin hook.
10199         * libgomp.h (struct gomp_device_descr): Adjust return type of
10200         init_device_func, fini_device_func, unload_image_func, free_func,
10201         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
10202         * oacc-init.c (acc_shutdown_1): Handle false value from
10203         fini_device_func plugin hook.
10204         * oacc-host.c (host_init_device): Change return type to bool.
10205         (host_fini_device): Likewise.
10206         (host_unload_image): Likewise.
10207         (host_free): Likewise.
10208         (host_dev2host): Likewise.
10209         (host_host2dev): Likewise.
10210         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
10211         (acc_memcpy_to_device): Likewise.
10212         (acc_memcpy_from_device): Likewise.
10213         (delete_copyout): Add libfnname parameter, handle free_func
10214         hook fatal error case.
10215         (acc_delete): Adjust delete_copyout call.
10216         (acc_copyout): Likewise.
10217         (update_dev_host): Move gomp_mutex_unlock to after
10218         host2dev/dev2host hook calls.
10220         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
10221         to 'hsa_error_msg', for clarity.
10222         (hsa_fatal): Likewise.
10223         (hsa_error): New function.
10224         (init_hsa_context): Change return type to bool, adjust to return
10225         false on error.
10226         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
10227         return value.
10228         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
10229         return false on error.
10230         (get_agent_info): Adjust to return NULL on error.
10231         (destroy_hsa_program): Change return type to bool, adjust to
10232         return false on error.
10233         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
10234         (destroy_module): Change return type to bool, adjust to
10235         return false on error.
10236         (GOMP_OFFLOAD_unload_image): Likewise.
10237         (GOMP_OFFLOAD_fini_device): Likewise.
10238         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
10239         (GOMP_OFFLOAD_free): Change to return false when called.
10240         (GOMP_OFFLOAD_dev2host): Likewise.
10241         (GOMP_OFFLOAD_host2dev): Likewise.
10242         (GOMP_OFFLOAD_dev2dev): Likewise.
10244         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
10245         (CUDA_CALL): Likewise.
10246         (CUDA_CALL_ASSERT): Likewise.
10247         (map_init): Change return type to bool, use CUDA_CALL* macros.
10248         (map_fini): Likewise.
10249         (init_streams_for_device): Change return type to bool, adjust
10250         call to map_init.
10251         (fini_streams_for_device): Change return type to bool, adjust
10252         call to map_fini.
10253         (select_stream_for_async): Release stream_lock before calls to
10254         GOMP_PLUGIN_fatal, adjust call to map_init.
10255         (nvptx_init): Use CUDA_CALL* macros.
10256         (nvptx_attach_host_thread_to_device): Change return type to bool,
10257         use CUDA_CALL* macros.
10258         (nvptx_open_device): Use CUDA_CALL* macros.
10259         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
10260         macros.
10261         (nvptx_get_num_devices): Use CUDA_CALL* macros.
10262         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
10263         (nvptx_exec): Use CUDA_CALL* macros.
10264         (nvptx_alloc): Use CUDA_CALL* macros.
10265         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
10266         (nvptx_host2dev): Likewise.
10267         (nvptx_dev2host): Likewise.
10268         (nvptx_wait): Use CUDA_CALL* macros.
10269         (nvptx_wait_async): Likewise.
10270         (nvptx_wait_all): Likewise.
10271         (nvptx_wait_all_async): Likewise.
10272         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
10273         use CUDA_CALL* macros, adjust call to map_fini.
10274         (GOMP_OFFLOAD_init_device): Change return type to bool,
10275         adjust code accordingly.
10276         (GOMP_OFFLOAD_fini_device): Likewise.
10277         (GOMP_OFFLOAD_load_image): Adjust calls to
10278         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
10279         use CUDA_CALL* macros.
10280         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
10281         return code.
10282         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
10283         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
10284         handle error return.
10285         (GOMP_OFFLOAD_dev2host): Likewise.
10286         (GOMP_OFFLOAD_host2dev): Likewise.
10287         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
10288         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
10290 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
10292         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
10293         (acc_free): Likewise.
10294         (acc_memcpy_to_device): Likewise.
10295         (acc_memcpy_from_device): Likewise.
10296         (acc_deviceptr): Likewise.
10297         (acc_hostptr): Likewise.
10298         (acc_is_present): Likewise.
10299         (acc_map_data): Likewise.
10300         (acc_unmap_data): Likewise.
10301         (present_create_copy): Likewise.
10302         (delete_copyout): Likewise.
10303         (update_dev_host): Likewise.
10304         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
10305         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
10306         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
10307         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10308         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
10309         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
10310         it only runs on nvptx targets.
10311         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10312         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
10313         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10314         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10315         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10316         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10317         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10318         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10319         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10320         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
10321         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10322         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10323         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10324         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10325         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10326         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10327         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10328         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10329         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10330         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10331         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10332         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10333         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10335 2016-05-23  Martin Jambor  <mjambor@suse.cz>
10337         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
10339 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
10341         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
10342         to gomp_init_targets_once.
10343         (acc_set_device_type): Remove !cached_base_dev condition on call to
10344         gomp_init_targets_once, move call to before acc_device_lock acquire,
10345         to avoid deadlock.
10346         (acc_get_device_num): Remove !cached_base_dev condition on call to
10347         gomp_init_targets_once.
10348         (acc_set_device_num): Likewise.
10350 2016-05-16  Martin Jambor  <mjambor@suse.cz>
10352         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
10354 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
10356         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
10357         expected partitioning.
10359 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
10361         PR middle-end/70626
10362         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
10363         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
10364         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
10366 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
10368         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
10369         non-fatal.
10371 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
10373         PR middle-end/70680
10374         * testsuite/libgomp.c/pr70680-1.c: New test.
10375         * testsuite/libgomp.c/pr70680-2.c: New test.
10377 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
10379         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
10380         pass parameter variables to subroutines.
10382 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
10384         PR middle-end/70643
10385         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
10387 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
10389         PR testsuite/68242
10390         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
10391         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10393 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
10395         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
10396         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
10397         GOACC_declare prototype.
10399         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
10400         Merge this file, and...
10401         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
10402         ... this file, and...
10403         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
10404         ... this file, and...
10405         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
10406         ... this file, and...
10407         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
10408         ... this file, and...
10409         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
10410         ... this file, and...
10411         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
10412         ... this file, and...
10413         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
10414         ... this file, and...
10415         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
10416         ... this file, and...
10417         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
10418         ... this file, and...
10419         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
10420         ... this file, and...
10421         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
10422         ... this file, and...
10423         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
10424         ... this file into...
10425         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
10426         file.
10428         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
10429         Make failure observable.
10431 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10433         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
10434         field.
10435         * target.c (gomp_target_fallback_firstprivate,
10436         gomp_target_unshare_firstprivate): Removed.
10437         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
10438         before waiting for dependencies.
10439         (gomp_target_task_fn): Don't copy firstprivate vars here.
10440         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
10441         firstprivate_copies here.
10442         (gomp_create_target_task): Don't initialize firstprivate_copies field.
10443         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
10444         explicit/implicit firstprivate.
10446 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
10448         PR lto/70289
10449         PR ipa/70348
10450         PR tree-optimization/70373
10451         PR middle-end/70533
10452         PR middle-end/70534
10453         PR middle-end/70535
10454         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
10455         test.
10456         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
10457         test.
10458         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
10459         test.
10460         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
10461         test.
10462         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
10463         test.
10464         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
10465         test.
10466         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
10467         test.
10468         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
10469         test.
10470         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
10471         test.
10472         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
10473         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
10474         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
10475         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
10476         test.
10477         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
10478         test.
10479         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
10480         test.
10481         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
10482         test.
10483         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
10484         coverage.
10485         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
10486         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10487         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
10488         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
10489         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
10490         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
10491         coverage.
10492         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10493         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
10494         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
10495         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
10496         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
10497         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
10498         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
10499         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
10500         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
10501         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10502         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10503         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10504         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10505         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10506         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
10508 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
10509             James Norris  <jnorris@codesourcery.com>
10510             Nathan Sidwell  <nathan@codesourcery.com>
10511             Julian Brown  <julian@codesourcery.com>
10512             Cesar Philippidis  <cesar@codesourcery.com>
10513             Chung-Lin Tang  <cltang@codesourcery.com>
10514             Tom de Vries  <tom@codesourcery.com>
10516         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
10517         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
10518         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
10519         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
10520         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10521         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10522         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10523         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10524         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
10525         XFAIL.
10526         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
10527         Incorporate...
10528         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
10529         file.
10530         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
10531         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
10532         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
10533         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
10534         Likewise.
10535         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
10536         Likewise.
10537         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10538         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
10539         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
10540         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
10541         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10542         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10543         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10544         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10545         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10546         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
10547         Likewise.
10548         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
10549         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10550         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
10551         file...
10552         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
10553         file into...
10554         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
10555         file.  Update.
10556         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
10557         file.
10558         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
10559         Likewise.
10560         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
10561         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
10562         ... this new file.  Update.
10563         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
10564         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
10565         ... this new file.  Update.
10566         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
10567         file.  Incorporate...
10568         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
10569         file, and...
10570         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
10571         file, and...
10572         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
10573         file.
10574         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
10576 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
10578         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
10579         set-torture-options.
10581 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
10583         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
10584         gcc-dg-runtest.
10585         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10586         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
10587         -fno-builtin-acc_on_device instead of -O0.
10588         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
10589         -O0.
10590         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
10591         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
10592         Likewise.
10593         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
10594         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
10595         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
10596         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10597         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10598         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10599         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
10600         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10601         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
10602         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
10603         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
10604         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
10605         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
10606         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
10607         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
10608         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
10609         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
10610         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
10611         Don't specify -O2.
10612         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
10613         Likewise.
10614         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
10615         Likewise.
10617 2016-03-24  Martin Liska  <mliska@suse.cz>
10619         * plugin/plugin-hsa.c (packet_store_release): New function
10620         that is taken from the HSA runtime manual.
10621         (GOMP_OFFLOAD_run): Use the function.
10623 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
10625         PR c++/70376
10626         * testsuite/libgomp.c++/pr70376.C: New test.
10628 2016-03-23  Tom de Vries  <tom@codesourcery.com>
10630         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
10631         initialization of lresult and lvresult.
10632         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
10634 2016-03-23  James Norris  <jnorris@codesourcery.com>
10635             Daichi Fukuoka <dc-fukuoka@sgi.com>
10637         PR libgomp/69414
10638         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
10639         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
10640         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
10641         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
10643 2016-03-23  Martin Liska  <mliska@suse.cz>
10645         PR hsa/70337
10646         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
10647         argument just in case a dispatched kernel uses that argument.
10649 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
10651         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
10652         -ftree-parallelize-loops/-fopenacc changes.
10653         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
10654         Likewise.
10655         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10656         Likewise.
10657         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
10658         Likewise.
10659         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
10660         Likewise.
10661         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10662         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10664 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
10666         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
10667         always_ld_library_path the path to libgcc_s.
10669 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
10671         PR testsuite/70009
10672         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
10674 2016-03-09  Tom de Vries  <tom@codesourcery.com>
10676         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
10677         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
10678         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10679         Same.
10680         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
10681         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
10682         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
10683         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
10685 2016-03-07  Martin Jambor  <mjambor@suse.cz>
10687         * testsuite/lib/libgomp.exp
10688         (check_effective_target_hsa_offloading_selected_nocache): New.
10689         (check_effective_target_hsa_offloading_selected): Likewise.
10690         * testsuite/libgomp.hsa.c/c.exp: Likewise.
10691         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
10692         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
10693         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
10694         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
10695         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
10696         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
10697         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
10698         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
10699         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
10700         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
10701         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
10702         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
10703         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
10704         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
10705         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
10706         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
10708 2016-03-07  Martin Jambor  <mjambor@suse.cz>
10710         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
10711         non-shared memory accelerators.
10712         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
10713         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
10714         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
10715         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
10716         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10717         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10718         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10719         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10720         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10722 2016-03-07  Martin Jambor  <mjambor@suse.cz>
10724         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
10725         ALWAYS_CFLAGS.
10727 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
10729         PR libgomp/69555
10730         * testsuite/libgomp.c++/pr69555-1.C: New test.
10731         * testsuite/libgomp.c++/pr69555-2.C: New test.
10733 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
10734             Martin Jambor  <mjambor@suse.cz>
10736         * testsuite/lib/libgomp.exp
10737         (check_effective_target_offload_device_shared_as): New proc.
10738         * testsuite/libgomp.c++/declare_target-1.C: New test.
10740 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
10742         PR driver/68463
10743         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
10745 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
10747         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
10748         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
10749         dims.
10750         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
10751         -ftree-parallelize-loops/-fopenacc changes.
10752         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
10753         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
10754         Likewise.
10755         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
10756         Likewise.
10757         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
10758         Likewise.
10759         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
10760         Likewise.
10761         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
10762         Likewise.
10763         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
10764         Likewise.
10765         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
10766         Likewise.
10767         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
10768         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
10769         Likewise.
10770         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
10771         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
10772         Likewise.
10773         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
10774         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
10775         Likewise.
10777 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
10779         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
10781 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
10783         PR driver/69805
10784         * testsuite/libgomp.c/pr69805.c: New test.
10786 2016-02-16  Tom de Vries  <tom@codesourcery.com>
10788         PR lto/67709
10789         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
10791 2016-02-09  Tom de Vries  <tom@codesourcery.com>
10793         PR tree-optimization/69599
10794         * testsuite/libgomp.c/omp-nested-3.c: New test.
10795         * testsuite/libgomp.c/pr46032-2.c: New test.
10796         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
10797         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
10799 2016-02-09  Tom de Vries  <tom@codesourcery.com>
10801         PR lto/69707
10802         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
10804 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
10806         * testsuite/libgomp.c/target-31.c: Fix testcase.
10808 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
10810         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
10811         clause.
10812         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
10813         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
10814         reduction and map clauses.
10815         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10817 2016-02-02  James Norris  <jnorris@codesourcery.com>
10819         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
10821 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
10823         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
10824         * oacc-parallel.c (GOACC_host_data): Remove function definition.
10826         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
10827         cases.
10829         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
10830         variables.
10831         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
10832         (hsa_kmt_lib): Set variables.
10833         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
10834         always_ld_library_path.
10835         * Makefile.in: Regenerate.
10836         * configure: Likewise.
10837         * testsuite/Makefile.in: Likewise.
10839         * plugin/configfrag.ac (offload_additional_options)
10840         (offload_additional_lib_paths): Don't amend for hsa offloading.
10841         * configure: Regenerate.
10843         * plugin/configfrag.ac: Don't configure for offloading target if
10844         we don't build the corresponding plugin.
10845         * configure: Regenerate.
10847 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
10849         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
10850         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
10852 2016-01-26  Tom de Vries  <tom@codesourcery.com>
10854         PR tree-optimization/69110
10855         * testsuite/libgomp.c/pr69110.c: New test.
10857 2016-01-25  Richard Biener  <rguenther@suse.de>
10859         PR lto/69393
10860         * testsuite/libgomp.c++/pr69393.C: New testcase.
10862 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
10864         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
10865         function wasn't mapped to the device with non-shared memory.
10867 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
10869         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
10871 2016-01-19  Martin Jambor  <mjambor@suse.cz>
10872             Martin Liska  <mliska@suse.cz>
10874         * plugin/Makefrag.am: Add HSA plugin requirements.
10875         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
10876         (HSA_RUNTIME_LIB): Likewise.
10877         (HSA_RUNTIME_CPPFLAGS): Likewise.
10878         (HSA_RUNTIME_INCLUDE): New substitution.
10879         (HSA_RUNTIME_LIB): Likewise.
10880         (HSA_RUNTIME_LDFLAGS): Likewise.
10881         (hsa-runtime): New configure option.
10882         (hsa-runtime-include): Likewise.
10883         (hsa-runtime-lib): Likewise.
10884         (PLUGIN_HSA): New substitution variable.
10885         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
10886         configure options.
10887         (PLUGIN_HSA_CPPFLAGS): Likewise.
10888         (PLUGIN_HSA_LDFLAGS): Likewise.
10889         (PLUGIN_HSA_LIBS): Likewise.
10890         Check that we have access to HSA run-time.
10891         * libgomp-plugin.h (offload_target_type): New element
10892         OFFLOAD_TARGET_TYPE_HSA.
10893         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
10894         args.
10895         (bool gomp_create_target_task): Updated.
10896         (gomp_device_descr): Extra parameter of run_func and async_run_func,
10897         new field can_run_func.
10898         * libgomp_g.h (GOMP_target_ext): Update prototype.
10899         * oacc-host.c (host_run): Added a new parameter args.
10900         * target.c (calculate_firstprivate_requirements): New function.
10901         (copy_firstprivate_data): Likewise.
10902         (gomp_target_fallback_firstprivate): Use them.
10903         (gomp_target_unshare_firstprivate): New function.
10904         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
10905         devices.
10906         (GOMP_target): Do host fallback for all shared memory devices.  Do not
10907         pass any args to plugins.
10908         (GOMP_target_ext): Introduce device-specific argument parameter args.
10909         Allow host fallback if device shares memory.  Do not remap data if
10910         device has shared memory.
10911         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
10912         like host fallback for mappings.
10913         (GOMP_target_data): Treat shared memory devices like host fallback.
10914         (GOMP_target_data_ext): Likewise.
10915         (GOMP_target_update): Likewise.
10916         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
10917         gomp_create_target_task.
10918         (GOMP_target_enter_exit_data): Likewise.
10919         (omp_target_alloc): Treat shared memory devices like host fallback.
10920         (omp_target_free): Likewise.
10921         (omp_target_is_present): Likewise.
10922         (omp_target_memcpy): Likewise.
10923         (omp_target_memcpy_rect): Likewise.
10924         (omp_target_associate_ptr): Likewise.
10925         (gomp_load_plugin_for_device): Also load can_run.
10926         * task.c (GOMP_PLUGIN_target_task_completion): Free
10927         firstprivate_copies.
10928         (gomp_create_target_task): Accept new argument args and store it to
10929         ttask.
10930         * plugin/plugin-hsa.c: New file.
10932 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10934         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
10935         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
10936         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
10937         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
10938         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
10939         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
10940         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
10941         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
10942         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
10943         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
10944         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10945         Same.
10946         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10947         Same.
10948         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
10949         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
10950         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
10951         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
10952         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
10953         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
10954         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
10955         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10956         Same.
10957         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
10959 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
10961         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
10963 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
10965         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
10967 2016-01-12  James Norris  <jnorris@codesourcery.com>
10969         * libgomp.texi: Updates for OpenACC.
10971 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
10973         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
10975 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
10977         PR fortran/66680
10978         * testsuite/libgomp.fortran/pr66680.f90: New test.
10980 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
10982         PR middle-end/68960
10983         * testsuite/libgomp.c/pr68960.c: New test.
10985 2016-01-06  Nathan Sidwell  <nathan@acm.org>
10987         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
10988         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
10990 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
10992         Update copyright years.
10994         * libgomp.texi: Bump @copying's copyright year.
10996 2015-12-31  Nathan Sidwell  <nathan@acm.org>
10998         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
10999         dg-additional-options syntax.
11000         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
11001         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11002         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
11003         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11004         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
11005         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
11006         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
11007         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11008         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
11009         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
11010         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11011         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11012         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
11013         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11014         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11015         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11016         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11017         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11019 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
11021         * libgomp.h (REFCOUNT_LINK): Define.
11022         (struct splay_tree_key_s): Add link_key.
11023         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
11024         Replace target address of the pointer with target address of newly
11025         mapped object in the splay tree.  Set link pointer on target to the
11026         device address of the mapped object.
11027         (gomp_unmap_vars): Restore target address of the pointer in the splay
11028         tree for REFCOUNT_LINK objects after unmapping.
11029         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
11030         declare target link" objects.
11031         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
11032         "omp declare target link" objects, which were mapped for the image.
11033         (gomp_exit_data): Restore target address of the pointer in the splay
11034         tree for REFCOUNT_LINK objects after unmapping.
11035         * testsuite/libgomp.c/target-link-1.c: New file.
11037 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
11039         * libgomp.h (gomp_device_state): New enum.
11040         (struct gomp_device_descr): Replace is_initialized with state.
11041         (gomp_fini_device): Remove declaration.
11042         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
11043         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
11044         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
11045         (acc_set_device_type): Use state instead of is_initialized.
11046         (acc_set_device_num): Likewise.
11047         * target.c (resolve_device): Use state instead of is_initialized.
11048         Do not initialize finalized device.
11049         (gomp_map_vars): Do nothing if device is finalized.
11050         (gomp_unmap_vars): Likewise.
11051         (gomp_update): Likewise.
11052         (GOMP_offload_register_ver): Use state instead of is_initialized.
11053         (GOMP_offload_unregister_ver): Likewise.
11054         (gomp_init_device): Likewise.
11055         (gomp_unload_device): Likewise.
11056         (gomp_fini_device): Remove.
11057         (gomp_get_target_fn_addr): Do nothing if device is finalized.
11058         (GOMP_target): Go to host fallback if device is finalized.
11059         (GOMP_target_ext): Likewise.
11060         (gomp_exit_data): Do nothing if device is finalized.
11061         (gomp_target_task_fn): Go to host fallback if device is finalized.
11062         (gomp_target_fini): New static function.
11063         (gomp_target_init): Use state instead of is_initialized.
11064         Call gomp_target_fini at exit.
11066 2015-12-09  Tom de Vries  <tom@codesourcery.com>
11068         PR tree-optimization/68716
11069         * testsuite/libgomp.c/omp-nested-2.c: New test.
11071 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
11073         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
11074         target openacc_nvidia_accel_selected.
11075         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
11076         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
11077         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
11078         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
11080 2015-12-01  Julian Brown  <julian@codesourcery.com>
11081             James Norris  <James_Norris@mentor.com>
11083         * oacc-parallel.c (GOACC_host_data): New function.
11084         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
11085         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
11086         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
11087         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
11088         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
11089         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
11090         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
11092 2015-11-30  James Norris  <jnorris@codesourcery.com>
11093             Cesar Philippidis  <cesar@codesourcery.com>
11095         libgomp/
11096         * libgomp.oacc-fortran/routine-5.f90: New test.
11097         * libgomp.oacc-fortran/routine-7.f90: New test.
11098         * libgomp.oacc-fortran/routine-9.f90: New test.
11100 2015-11-30  Tom de Vries  <tom@codesourcery.com>
11102         PR tree-optimization/46032
11103         * testsuite/libgomp.c/pr46032.c: New test.
11105 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
11107         PR libgomp/68579
11108         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
11109         (gomp_create_target_task): Call it before freeing
11110         GOMP_TARGET_TASK_DATA tasks.
11112         PR c/63326
11113         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
11114         in between case label and OpenMP standalone directives.
11115         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
11117 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
11119         * configure: Regenerate.
11121 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
11123         * testsuite/libgomp.c/target-35.c: New test.
11125 2015-11-22  James Norris  <jnorris@codesourcery.com>
11126             Cesar Philippidis  <cesar@codesourcery.com>
11128         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
11129         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11130         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11131         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11132         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11134 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
11136         PR middle-end/68221
11137         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
11138         * testsuite/libgomp.c/reduction-12.c: Likewise.
11139         * testsuite/libgomp.c++/reduction-11.C: Likewise.
11140         * testsuite/libgomp.c++/reduction-12.C: Likewise.
11142 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
11144         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
11145         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
11146         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
11147         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
11148         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
11149         and fix.
11150         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11151         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11153 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
11155         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
11156         worker & gang cases.
11157         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11159 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
11161         * config/nvptx/priority_queue.c: New file.
11163 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
11165         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
11166         sections.
11168 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
11169             Aldy Hernandez  <aldyh@redhat.com>
11170             Ilya Verbin  <ilya.verbin@intel.com>
11172         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
11173         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
11174         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
11175         iterators or IV by chunk size.
11176         * parallel.c (gomp_resolve_num_threads): Don't assume that
11177         if thr->ts.team is non-NULL, then pool must be non-NULL.
11178         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
11179         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
11180         GOMP_PLUGIN_target_task_completion.
11181         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
11182         * Makefile.in: Regenerate.
11183         * libgomp.h: Shuffle prototypes and forward definitions around so
11184         priority queues can be defined.
11185         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
11186         (enum gomp_target_task_state): New enum.
11187         (struct gomp_target_task): Add state, tgt, task and team fields.
11188         (gomp_create_target_task): Change return type to bool, add
11189         state argument.
11190         (gomp_target_task_fn): Change return type to bool.
11191         (struct gomp_device_descr): Add async_run_func.
11192         (struct gomp_task): Remove children, next_child, prev_child,
11193         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
11194         Add pnode field.
11195         (struct gomp_taskgroup): Remove children.
11196         Add taskgroup_queue.
11197         (struct gomp_team): Change task_queue type to a priority queue.
11198         (splay_compare): Define inline.
11199         (priority_queue_offset): New.
11200         (priority_node_to_task): New.
11201         (task_to_priority_node): New.
11202         * oacc-mem.c: Do not include splay-tree.h.
11203         * priority_queue.c: New file.
11204         * priority_queue.h: New file.
11205         * splay-tree.c: Do not include splay-tree.h.
11206         (splay_tree_foreach_internal): New.
11207         (splay_tree_foreach): New.
11208         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
11209         (splay_tree_callback): Define typedef.
11210         * target.c (splay_compare): Move to libgomp.h.
11211         (GOMP_target): Don't adjust *thr in any way around running offloaded
11212         task.
11213         (GOMP_target_ext): Likewise.  Handle target nowait.
11214         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
11215         return value from gomp_create_target_task, if false, fallthrough
11216         as if no dependencies exist.
11217         (gomp_target_task_fn): Change return type to bool, return true
11218         if the task should have another part scheduled later.  Handle
11219         target nowait.
11220         (gomp_load_plugin_for_device): Initialize async_run.
11221         * task.c (gomp_init_task): Initialize children_queue.
11222         (gomp_clear_parent_in_list): New.
11223         (gomp_clear_parent_in_tree): New.
11224         (gomp_clear_parent): Handle priorities.
11225         (GOMP_task): Likewise.
11226         (priority_queue_move_task_first,
11227         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
11228         New functions.
11229         (gomp_create_target_task): Use priority queues.  Change return type
11230         to bool, add state argument, return false if for async
11231         {{enter,exit} data,update} constructs no dependencies need to be
11232         waited for, handle target nowait.  Set task->fn to NULL instead of
11233         gomp_target_task_fn.
11234         (verify_children_queue): Remove.
11235         (priority_list_upgrade_task): New.
11236         (priority_queue_upgrade_task): New.
11237         (verify_task_queue): Remove.
11238         (priority_list_downgrade_task): New.
11239         (priority_queue_downgrade_task): New.
11240         (gomp_task_run_pre): Use priority queues.
11241         Abstract code out to priority_queue_downgrade_task.
11242         (gomp_task_run_post_handle_dependers): Use priority queues.
11243         (gomp_task_run_post_remove_parent): Likewise.
11244         (gomp_task_run_post_remove_taskgroup): Likewise.
11245         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
11246         tasks specially.
11247         (GOMP_taskwait): Likewise.
11248         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
11249         priority-queue_upgrade_task.
11250         (GOMP_taskgroup_start): Use priority queues.
11251         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
11252         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
11253         barrier.
11254         * taskloop.c (GOMP_taskloop): Handle priorities.
11255         * team.c (gomp_new_team): Call priority_queue_init.
11256         (free_team): Call priority_queue_free.
11257         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
11258         team created for target nowait in implicit parallel region.
11259         (gomp_team_start): For nested check, test thr->ts.level instead of
11260         thr->ts.team != NULL.
11261         * testsuite/libgomp.c/doacross-3.c: New test.
11262         * testsuite/libgomp.c/ordered-5.c: New test.
11263         * testsuite/libgomp.c/priority.c: New test.
11264         * testsuite/libgomp.c/target-31.c: New test.
11265         * testsuite/libgomp.c/target-32.c: New test.
11266         * testsuite/libgomp.c/target-33.c: New test.
11267         * testsuite/libgomp.c/target-34.c: New test.
11269 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
11271         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
11273         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
11274         loop is sequential.
11276 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
11278         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
11279         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
11281 2015-11-12  James Norris  <jnorris@codesourcery.com>
11282             Joseph Myers  <joseph@codesourcery.com>
11284         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
11285         * oacc-parallel.c (GOACC_declare): New function.
11286         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
11287         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
11288         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
11289         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
11290         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
11292 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
11294         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
11296 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
11298         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
11299         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
11301 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
11303         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
11304         inadvertent commit.
11306 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
11308         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
11309         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
11310         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
11311         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
11312         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
11314 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
11316         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
11317         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11319 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
11320             Ilya Verbin  <ilya.verbin@intel.com>
11322         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
11323         GOMP_loop_nonmonotonic_dynamic_start,
11324         GOMP_loop_nonmonotonic_guided_next,
11325         GOMP_loop_nonmonotonic_guided_start,
11326         GOMP_loop_ull_nonmonotonic_dynamic_next,
11327         GOMP_loop_ull_nonmonotonic_dynamic_start,
11328         GOMP_loop_ull_nonmonotonic_guided_next,
11329         GOMP_loop_ull_nonmonotonic_guided_start,
11330         GOMP_parallel_loop_nonmonotonic_dynamic,
11331         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
11332         (GOMP_target_41): Renamed to ...
11333         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
11334         arguments.
11335         (GOMP_target_data_41): Renamed to ...
11336         (GOMP_target_data_ext): ... this.
11337         (GOMP_target_update_41): Renamed to ...
11338         (GOMP_target_update_ext): ... this.
11339         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
11340         GOMP_target_data_ext and GOMP_target_update_ext instead of
11341         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
11342         Export GOMP_loop_nonmonotonic_dynamic_next,
11343         GOMP_loop_nonmonotonic_dynamic_start,
11344         GOMP_loop_nonmonotonic_guided_next,
11345         GOMP_loop_nonmonotonic_guided_start,
11346         GOMP_loop_ull_nonmonotonic_dynamic_next,
11347         GOMP_loop_ull_nonmonotonic_dynamic_start,
11348         GOMP_loop_ull_nonmonotonic_guided_next,
11349         GOMP_loop_ull_nonmonotonic_guided_start,
11350         GOMP_parallel_loop_nonmonotonic_dynamic and
11351         GOMP_parallel_loop_nonmonotonic_guided.
11352         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
11353         GOMP_parallel_loop_nonmonotonic_guided,
11354         GOMP_loop_nonmonotonic_dynamic_start,
11355         GOMP_loop_nonmonotonic_guided_start,
11356         GOMP_loop_nonmonotonic_dynamic_next,
11357         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
11358         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
11359         GOMP_loop_ull_nonmonotonic_guided_start,
11360         GOMP_loop_ull_nonmonotonic_dynamic_next,
11361         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
11362         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
11363         functions.
11364         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
11365         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
11366         Use gomp_map_val function.
11367         (gomp_target_fallback_firstprivate): New static function.
11368         (GOMP_target_41): Renamed to ...
11369         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
11370         arguments.  Move firstprivate fallback handling into a new
11371         function.
11372         (GOMP_target_data_41): Renamed to ...
11373         (GOMP_target_data_ext): ... this.
11374         (GOMP_target_update_41): Renamed to ...
11375         (GOMP_target_update_ext): ... this.
11376         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
11377         gomp_map_0len_lookup instead of gomp_map_lookup.
11378         (omp_target_is_present): Use gomp_map_0len_lookup instead of
11379         gomp_map_lookup.
11380         * testsuite/libgomp.c/target-28.c: Likewise.
11381         * testsuite/libgomp.c/monotonic-1.c: New test.
11382         * testsuite/libgomp.c/monotonic-2.c: New test.
11383         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
11384         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
11385         * testsuite/libgomp.c/pr66199-5.c: New test.
11386         * testsuite/libgomp.c/pr66199-6.c: New test.
11387         * testsuite/libgomp.c/pr66199-7.c: New test.
11388         * testsuite/libgomp.c/pr66199-8.c: New test.
11389         * testsuite/libgomp.c/pr66199-9.c: New test.
11390         * testsuite/libgomp.c/reduction-11.c: New test.
11391         * testsuite/libgomp.c/reduction-12.c: New test.
11392         * testsuite/libgomp.c/reduction-13.c: New test.
11393         * testsuite/libgomp.c/reduction-14.c: New test.
11394         * testsuite/libgomp.c/reduction-15.c: New test.
11395         * testsuite/libgomp.c/target-12.c (main): Adjust for
11396         omp_target_is_present change for one-past-last element.
11397         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
11398         the same var is both mapped and privatized.
11399         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
11400         handling of zero-length array sections.
11401         * testsuite/libgomp.c/target-28.c: New test.
11402         * testsuite/libgomp.c/target-29.c: New test.
11403         * testsuite/libgomp.c/target-30.c: New test.
11404         * testsuite/libgomp.c/target-teams-1.c: New test.
11405         * testsuite/libgomp.c++/member-6.C: New test.
11406         * testsuite/libgomp.c++/member-7.C: New test.
11407         * testsuite/libgomp.c++/monotonic-1.C: New test.
11408         * testsuite/libgomp.c++/monotonic-2.C: New test.
11409         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
11410         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
11411         * testsuite/libgomp.c++/pr66199-3.C: New test.
11412         * testsuite/libgomp.c++/pr66199-4.C: New test.
11413         * testsuite/libgomp.c++/pr66199-5.C: New test.
11414         * testsuite/libgomp.c++/pr66199-6.C: New test.
11415         * testsuite/libgomp.c++/pr66199-7.C: New test.
11416         * testsuite/libgomp.c++/pr66199-8.C: New test.
11417         * testsuite/libgomp.c++/pr66199-9.C: New test.
11418         * testsuite/libgomp.c++/reduction-11.C: New test.
11419         * testsuite/libgomp.c++/reduction-12.C: New test.
11420         * testsuite/libgomp.c++/target-13.C: New test.
11421         * testsuite/libgomp.c++/target-14.C: New test.
11422         * testsuite/libgomp.c++/target-15.C: New test.
11423         * testsuite/libgomp.c++/target-16.C: New test.
11424         * testsuite/libgomp.c++/target-17.C: New test.
11425         * testsuite/libgomp.c++/target-18.C: New test.
11426         * testsuite/libgomp.c++/target-19.C: New test.
11428 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
11430         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
11431         and reduction copy.
11432         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11433         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11434         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11435         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11436         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
11437         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11438         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11439         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11440         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11441         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
11442         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11443         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11444         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11445         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
11447 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
11449         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
11450         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
11451         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
11452         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
11453         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
11454         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
11455         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
11456         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
11458 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
11460         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
11461         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
11462         (GOMP_OFFLOAD_openacc_parallel): Likewise.
11463         * oacc-host.c (host_openacc_exec): Likewise.
11464         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
11466 2015-11-03  Julian Brown  <julian@codesourcery.com>
11467             Thomas Schwinge  <thomas@codesourcery.com>
11469         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
11470         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11471         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
11472         Likewise.
11473         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
11474         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
11476 2015-11-03  James Norris  <jnorris@codesourcery.com>
11478         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
11479         file.
11480         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
11481         Likewise.
11482         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
11483         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
11484         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11485         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
11486         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11488 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
11490         * openacc.h (enum acc_device_t): Reformat. Ensure layout
11491         compatibility.
11492         (enum acc_async_t): Reformat.
11493         (acc_on_device): Declare compatible with builtin and provide C++
11494         wrapper.
11495         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
11497 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
11498             Cesar Philippidis  <cesar@codesourcery.com>
11500         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
11501         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
11502         ... this.  Add a description of the test at the top of the file.
11503         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
11504         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
11505         ... this.  Add a description of the test at the top of the file.
11507 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
11509         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
11510         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
11511         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
11512         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
11513         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
11514         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
11516 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
11518         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
11519         dimensions.
11521 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
11523         PR testsuite/68063
11524         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
11526 2015-10-27  James Norris  <jnorris@codesourcery.com>
11528         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
11529         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
11531 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
11533         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
11534         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11536         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
11537         acc_device_nvidia usage.
11538         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11539         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11540         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11542         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
11543         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
11545         PR libgomp/66518
11546         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
11548         PR libgomp/65437
11549         PR libgomp/66518
11550         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
11551         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
11553 2015-10-23  Tom de Vries  <tom@codesourcery.com>
11555         PR testsuite/68063
11556         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
11558 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
11560         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
11561         vector_length.
11562         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11564 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
11565             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
11567         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
11568         to 0 when mapnum is 0.
11570 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11572         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
11573         Cast to int from int32_t.
11575 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
11576             Aldy Hernandez  <aldyh@redhat.com>
11577             Ilya Verbin  <ilya.verbin@intel.com>
11579         * config/linux/affinity.c (omp_get_place_num_procs,
11580         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11581         * config/linux/doacross.h: New file.
11582         * config/posix/affinity.c (omp_get_place_num_procs,
11583         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11584         * config/posix/doacross.h: New file.
11585         * env.c: Include gomp-constants.h.
11586         (struct gomp_task_icv): Rename run_sched_modifier to
11587         run_sched_chunk_size.
11588         (gomp_max_task_priority_var): New variable.
11589         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
11590         (handle_omp_display_env): Change _OPENMP value from 201307 to
11591         201511.  Print OMP_MAX_TASK_PRIORITY.
11592         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
11593         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
11594         chunk_size and run_sched_modifier to run_sched_chunk_size.
11595         (omp_get_max_task_priority, omp_get_initial_device,
11596         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
11597         omp_get_partition_place_nums): New functions.
11598         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
11599         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
11600         to chunk_size.
11601         (omp_get_num_places_, omp_get_place_num_procs_,
11602         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
11603         omp_get_place_proc_ids_8_, omp_get_place_num_,
11604         omp_get_partition_num_places_, omp_get_partition_place_nums_,
11605         omp_get_partition_place_nums_8_, omp_get_initial_device_,
11606         omp_get_max_task_priority_): New functions.
11607         * libgomp_g.h (GOMP_loop_doacross_static_start,
11608         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
11609         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
11610         GOMP_loop_ull_doacross_dynamic_start,
11611         GOMP_loop_ull_doacross_guided_start,
11612         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
11613         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
11614         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
11615         GOMP_target_data_41, GOMP_target_update_41,
11616         GOMP_target_enter_exit_data): New prototypes.
11617         (GOMP_task): Add prototype argument.
11618         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
11619         (struct gomp_doacross_work_share): New type.
11620         (struct gomp_work_share): Add doacross field.
11621         (struct gomp_task_icv): Rename run_sched_modifier to
11622         run_sched_chunk_size.
11623         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
11624         GOMP_TASK_UNDEFERRED.  Add comments.
11625         (struct gomp_task_depend_entry): Add comments.
11626         (struct gomp_task): Likewise.
11627         (struct gomp_taskgroup): Likewise.
11628         (struct gomp_target_task): New type.
11629         (struct gomp_team): Add comment.
11630         (gomp_get_place_proc_ids_8, gomp_doacross_init,
11631         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
11632         gomp_create_target_task, gomp_target_task_fn): New prototypes.
11633         (struct target_var_desc): New type.
11634         (struct target_mem_desc): Adjust comment.  Use struct
11635         target_var_desc instead of splay_tree_key for list.
11636         (REFCOUNT_INFINITY): Define.
11637         (struct splay_tree_key_s): Remove copy_from field.
11638         (struct gomp_device_descr): Add dev2dev_func field.
11639         (enum gomp_map_vars_kind): New enum.
11640         (gomp_map_vars): Add one argument.
11641         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
11642         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
11643         omp_get_place_num_procs, omp_get_place_num_procs_,
11644         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
11645         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
11646         omp_get_place_num_, omp_get_partition_num_places,
11647         omp_get_partition_num_places_, omp_get_partition_place_nums,
11648         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
11649         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
11650         omp_target_free, omp_target_is_present, omp_target_memcpy,
11651         omp_target_memcpy_rect, omp_target_associate_ptr and
11652         omp_target_disassociate_ptr.
11653         (GOMP_4.0.2): Renamed to ...
11654         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
11655         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
11656         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
11657         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11658         GOMP_loop_doacross_static_start, GOMP_doacross_post,
11659         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
11660         GOMP_loop_ull_doacross_guided_start,
11661         GOMP_loop_ull_doacross_runtime_start,
11662         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
11663         GOMP_doacross_ull_wait.
11664         * libgomp.texi: Document omp_get_max_task_priority.
11665         Rename modifier argument to chunk_size for omp_set_schedule and
11666         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
11667         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
11668         to run_sched_chunk_size renaming.
11669         (GOMP_loop_ordered_runtime_start): Likewise.
11670         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
11671         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11672         GOMP_parallel_loop_runtime_start): New functions.
11673         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
11674         to run_sched_chunk_size renaming.
11675         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
11676         GOMP_loop_doacross_guided_start): New functions or aliases.
11677         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
11678         run_sched_modifier to run_sched_chunk_size renaming.
11679         (GOMP_loop_ull_ordered_runtime_start): Likewise.
11680         (gomp_loop_ull_doacross_static_start,
11681         gomp_loop_ull_doacross_dynamic_start,
11682         gomp_loop_ull_doacross_guided_start,
11683         GOMP_loop_ull_doacross_runtime_start): New functions.
11684         (GOMP_loop_ull_doacross_static_start,
11685         GOMP_loop_ull_doacross_dynamic_start,
11686         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
11687         * oacc-mem.c (acc_map_data, present_create_copy,
11688         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
11689         to gomp_map_vars.
11690         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
11691         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
11692         instead of false to gomp_map_vars.
11693         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
11694         * omp.h.in (omp_lock_hint_t): New type.
11695         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11696         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11697         omp_get_place_num, omp_get_partition_num_places,
11698         omp_get_partition_place_nums, omp_get_initial_device,
11699         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
11700         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
11701         omp_target_associate_ptr, omp_target_disassociate_ptr): New
11702         prototypes.
11703         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
11704         (omp_lock_hint_none, omp_lock_hint_uncontended,
11705         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11706         omp_lock_hint_speculative): New parameters.
11707         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11708         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11709         omp_get_place_num, omp_get_partition_num_places,
11710         omp_get_partition_place_nums, omp_get_initial_device,
11711         omp_get_max_task_priority): New interfaces.
11712         (omp_set_schedule, omp_get_schedule): Rename modifier argument
11713         to chunk_size.
11714         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
11715         (omp_lock_hint_none, omp_lock_hint_uncontended,
11716         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11717         omp_lock_hint_speculative): New parameters.
11718         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11719         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11720         omp_get_place_num, omp_get_partition_num_places,
11721         omp_get_partition_place_nums, omp_get_initial_device,
11722         omp_get_max_task_priority): New functions and subroutines.
11723         * ordered.c: Include stdarg.h and string.h.
11724         (MAX_COLLAPSED_BITS): Define.
11725         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
11726         gomp_doacross_ull_init, GOMP_doacross_ull_post,
11727         GOMP_doacross_ull_wait): New functions.
11728         * target.c: Include errno.h.
11729         (resolve_device): If device is not initialized, call
11730         gomp_init_device on it.
11731         (gomp_map_lookup): New function.
11732         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
11733         Don't bump refcount if REFCOUNT_INFINITY.  Handle
11734         GOMP_MAP_ALWAYS_TO_P.
11735         (get_kind): Rename is_openacc argument to short_mapkind.
11736         (gomp_map_pointer): Use gomp_map_lookup.
11737         (gomp_map_fields_existing): New function.
11738         (gomp_map_vars): Rename is_openacc argument to short_mapkind
11739         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
11740         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
11741         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
11742         Adjust for tgt->list changed type and copy_from living in there.
11743         (gomp_copy_from_async): Adjust for tgt->list changed type and
11744         copy_from living in there.
11745         (gomp_unmap_vars): Likewise.
11746         (gomp_update): Likewise.  Rename is_openacc argument to
11747         short_mapkind.  Don't fail if object is not mapped.
11748         (gomp_load_image_to_device): Initialize refcount to
11749         REFCOUNT_INFINITY.
11750         (gomp_target_fallback): New function.
11751         (gomp_get_target_fn_addr): Likewise.
11752         (GOMP_target): Adjust gomp_map_vars caller, use
11753         gomp_get_target_fn_addr and gomp_target_fallback.
11754         (GOMP_target_41): New function.
11755         (gomp_target_data_fallback): New function.
11756         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
11757         (GOMP_target_data_41): New function.
11758         (GOMP_target_update): Adjust gomp_update caller.
11759         (GOMP_target_update_41): New function.
11760         (gomp_exit_data, GOMP_target_enter_exit_data,
11761         gomp_target_task_fn, omp_target_alloc, omp_target_free,
11762         omp_target_is_present, omp_target_memcpy,
11763         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
11764         omp_target_associate_ptr, omp_target_disassociate_ptr,
11765         gomp_load_plugin_for_device): New functions.
11766         * task.c: Include gomp-constants.h.  Include taskloop.c
11767         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
11768         (gomp_task_handle_depend): New function.
11769         (GOMP_task): Use it.  Add priority argument.  Use
11770         gomp-constant.h constants instead of hardcoded numbers.
11771         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
11772         (gomp_create_target_task): New function.
11773         (verify_children_queue, verify_taskgroup_queue,
11774         verify_task_queue): New functions.
11775         (gomp_task_run_pre): Call verify_*_queue functions.
11776         If an upcoming tied task is about to leave the sibling or
11777         taskgroup queues in an invalid state, adjust appropriately.
11778         Remove taskgroup argument.  Add comments.
11779         (gomp_task_run_post_handle_dependers): Add comments.
11780         (gomp_task_run_post_remove_parent): Likewise.
11781         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
11782         (GOMP_taskwait): Likewise.  Add comments.
11783         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
11784         problem such that the first non parent_depends_on task does not
11785         end up at the end of the children queue.
11786         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
11787         GOMP_TASK_UNDEFERRED.
11788         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
11789         * taskloop.c: New file.
11790         * testsuite/lib/libgomp.exp
11791         (check_effective_target_offload_device_nonshared_as): New proc.
11792         * testsuite/libgomp.c/affinity-2.c: New test.
11793         * testsuite/libgomp.c/doacross-1.c: New test.
11794         * testsuite/libgomp.c/doacross-2.c: New test.
11795         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
11796         Add map clause to target.
11797         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
11798         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
11799         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
11800         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
11801         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
11802         Likewise.
11803         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
11804         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
11805         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
11806         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
11807         not defined.  Use those where needed.
11808         * testsuite/libgomp.c/for-4.c: New test.
11809         * testsuite/libgomp.c/for-5.c: New test.
11810         * testsuite/libgomp.c/for-6.c: New test.
11811         * testsuite/libgomp.c/linear-1.c: New test.
11812         * testsuite/libgomp.c/ordered-4.c: New test.
11813         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
11814         only allowed on the loop iterator.
11815         * testsuite/libgomp.c/pr66199-3.c: New test.
11816         * testsuite/libgomp.c/pr66199-4.c: New test.
11817         * testsuite/libgomp.c/reduction-7.c: New test.
11818         * testsuite/libgomp.c/reduction-8.c: New test.
11819         * testsuite/libgomp.c/reduction-9.c: New test.
11820         * testsuite/libgomp.c/reduction-10.c: New test.
11821         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
11822         map(tofrom:s).
11823         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
11824         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
11825         * testsuite/libgomp.c/target-11.c: New test.
11826         * testsuite/libgomp.c/target-12.c: New test.
11827         * testsuite/libgomp.c/target-13.c: New test.
11828         * testsuite/libgomp.c/target-14.c: New test.
11829         * testsuite/libgomp.c/target-15.c: New test.
11830         * testsuite/libgomp.c/target-16.c: New test.
11831         * testsuite/libgomp.c/target-17.c: New test.
11832         * testsuite/libgomp.c/target-18.c: New test.
11833         * testsuite/libgomp.c/target-19.c: New test.
11834         * testsuite/libgomp.c/target-20.c: New test.
11835         * testsuite/libgomp.c/target-21.c: New test.
11836         * testsuite/libgomp.c/target-22.c: New test.
11837         * testsuite/libgomp.c/target-23.c: New test.
11838         * testsuite/libgomp.c/target-24.c: New test.
11839         * testsuite/libgomp.c/target-25.c: New test.
11840         * testsuite/libgomp.c/target-26.c: New test.
11841         * testsuite/libgomp.c/target-27.c: New test.
11842         * testsuite/libgomp.c/taskloop-1.c: New test.
11843         * testsuite/libgomp.c/taskloop-2.c: New test.
11844         * testsuite/libgomp.c/taskloop-3.c: New test.
11845         * testsuite/libgomp.c/taskloop-4.c: New test.
11846         * testsuite/libgomp.c++/ctor-13.C: New test.
11847         * testsuite/libgomp.c++/doacross-1.C: New test.
11848         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
11849         Replace offload_device with offload_device_nonshared_as.
11850         * testsuite/libgomp.c++/for-12.C: New test.
11851         * testsuite/libgomp.c++/for-13.C: New test.
11852         * testsuite/libgomp.c++/for-14.C: New test.
11853         * testsuite/libgomp.c++/linear-1.C: New test.
11854         * testsuite/libgomp.c++/member-1.C: New test.
11855         * testsuite/libgomp.c++/member-2.C: New test.
11856         * testsuite/libgomp.c++/member-3.C: New test.
11857         * testsuite/libgomp.c++/member-4.C: New test.
11858         * testsuite/libgomp.c++/member-5.C: New test.
11859         * testsuite/libgomp.c++/ordered-1.C: New test.
11860         * testsuite/libgomp.c++/reduction-5.C: New test.
11861         * testsuite/libgomp.c++/reduction-6.C: New test.
11862         * testsuite/libgomp.c++/reduction-7.C: New test.
11863         * testsuite/libgomp.c++/reduction-8.C: New test.
11864         * testsuite/libgomp.c++/reduction-9.C: New test.
11865         * testsuite/libgomp.c++/reduction-10.C: New test.
11866         * testsuite/libgomp.c++/reference-1.C: New test.
11867         * testsuite/libgomp.c++/simd14.C: New test.
11868         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
11869         * testsuite/libgomp.c++/target-5.C: New test.
11870         * testsuite/libgomp.c++/target-6.C: New test.
11871         * testsuite/libgomp.c++/target-7.C: New test.
11872         * testsuite/libgomp.c++/target-8.C: New test.
11873         * testsuite/libgomp.c++/target-9.C: New test.
11874         * testsuite/libgomp.c++/target-10.C: New test.
11875         * testsuite/libgomp.c++/target-11.C: New test.
11876         * testsuite/libgomp.c++/target-12.C: New test.
11877         * testsuite/libgomp.c++/taskloop-1.C: New test.
11878         * testsuite/libgomp.c++/taskloop-2.C: New test.
11879         * testsuite/libgomp.c++/taskloop-3.C: New test.
11880         * testsuite/libgomp.c++/taskloop-4.C: New test.
11881         * testsuite/libgomp.c++/taskloop-5.C: New test.
11882         * testsuite/libgomp.c++/taskloop-6.C: New test.
11883         * testsuite/libgomp.c++/taskloop-7.C: New test.
11884         * testsuite/libgomp.c++/taskloop-8.C: New test.
11885         * testsuite/libgomp.c++/taskloop-9.C: New test.
11886         * testsuite/libgomp.fortran/affinity1.f90: New test.
11887         * testsuite/libgomp.fortran/affinity2.f90: New test.
11889 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11891         PR tree-optimization/67476
11892         * testsuite/libgomp.c/autopar-3.c: New test.
11893         * testsuite/libgomp.c/autopar-4.c: New test.
11894         * testsuite/libgomp.c/autopar-5.c: New test.
11895         * testsuite/libgomp.c/autopar-6.c: New test.
11896         * testsuite/libgomp.c/autopar-7.c: New test.
11897         * testsuite/libgomp.c/autopar-8.c: New test.
11899 2015-10-12  James Norris  <jnorris@codesourcery.com>
11901         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
11902         initializer.
11904 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
11906         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
11907         using load_gcc_lib.
11909 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
11911         * oacc-ptx.h: Remove file, moving its content into...
11912         * config/nvptx/fortran.c: ... here...
11913         * config/nvptx/oacc-init.c: ..., here...
11914         * config/nvptx/oacc-parallel.c: ..., and here.
11915         * config/nvptx/openacc.f90: New file.
11916         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
11917         (link_ptx): Don't link in predefined bits of PTX code.
11919 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
11920             Bernd Schmidt <bernds@codesourcery.com>
11922         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
11923         (struct targ_ptx_obj): New.
11924         (nvptx_tdata): Move earlier, change data format.
11925         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
11926         objects.
11927         (GOMP_OFFLOAD_load_image): Adjust.
11929 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
11931         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
11932         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11933         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11934         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11935         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11936         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11937         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11938         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11939         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11940         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11941         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11942         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11943         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11944         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11945         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11946         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11947         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11948         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11949         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11950         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11951         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11952         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11953         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11954         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11955         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11956         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11957         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11958         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11959         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11960         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11961         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11962         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11963         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11964         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11965         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11966         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11967         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11968         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11969         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11970         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11971         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11972         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11973         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11974         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11975         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11976         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11977         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11978         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11979         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11980         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11981         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11982         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11983         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11984         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11985         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11986         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11987         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11988         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11989         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11990         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11991         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11992         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11993         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11995 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
11997         * oacc-init.c (acc_on_device): Force optimization level.
11999 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
12001         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
12002         (cuda_errlist): Delete.
12003         (cuda_error): Reimplement.
12005 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
12007         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
12008         array.
12009         * libgomp.map (GOACC_parallel_keyed): New.
12010         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
12011         all callers.
12012         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
12013         and take keyed varargs list.  Adjust call to exec_func.
12014         (GOACC_parallel): Force host fallback.
12015         * libgomp_g.h (GOACC_parallel): Remove.
12016         (GOACC_parallel_keyed): Declare.
12017         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
12018         (struct targ_gn_descriptor): Replace name field with launch field.
12019         (nvptx_exec): Lose separate geometry args, take array.  Process
12020         dynamic dimensions and adjust.
12021         (struct nvptx_tdata): Replace fn_names field with fn_descs.
12022         (GOMP_OFFLOAD_load_image): Adjust for change in function table
12023         data.
12024         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
12025         passing.
12026         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
12027         passing.
12029 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
12031         PR libgomp/67141
12032         * oacc-int.h (goacc_host_init): Add declaration.
12033         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
12034         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
12036 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
12037             Sebastian Pop  <s.pop@samsung.com>
12039         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
12040         match o/p.
12041         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
12042         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
12043         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
12044         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
12045         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
12047 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
12049         * configure.tgt: Add missing ;; in between nvptx and rtems
12050         snippets.
12052 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12054         * config/posix/pool.h (gomp_adjust_thread_attr): New.
12055         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
12056         (gomp_thread_pool_reservoir): Add priority member.
12057         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
12058         priority.
12059         (parse_thread_pools): Likewise.
12060         * team.c (gomp_team_start): Call configuration provided
12061         gomp_adjust_thread_attr(). Destroy thread attributes if
12062         necessary.
12063         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
12065 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12067         * config/posix/pool.h: New.
12068         * config/rtems/pool.h: Likewise.
12069         * config/rtems/proc.c: Likewise.
12070         * libgomp.h (gomp_thread_destructor): Declare.
12071         * team.c: Include configuration provided "pool.h".
12072         (gomp_get_thread_pool): Define in configuration.
12073         (gomp_team_end): Call configuration defined
12074         gomp_release_thread_pool().
12076 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12078         * config/rtems/bar.c: New.
12079         * config/rtems/bar.h: Likewise.
12080         * config/rtems/mutex.c: Likewise.
12081         * config/rtems/mutex.h: Likewise.
12082         * config/rtems/sem.c: Likewise.
12083         * config/rtems/sem.h: Likewise.
12084         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
12085         <sys/lock.h> header file.
12086         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
12087         supported by Newlib.
12088         * configure: Regenerate.
12090 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12092         * team.c (gomp_new_thread_pool): Delete and move content to ...
12093         (gomp_get_thread_pool): ... new function.  Allocate and
12094         initialize thread pool on demand.
12095         (get_last_team): Use gomp_get_thread_pool().
12096         (gomp_team_start): Delete thread pool initialization.
12098 2015-09-03  Tom de Vries  <tom@codesourcery.com>
12100         PR tree-optimization/65637
12101         * testsuite/libgomp.c/autopar-2.c: New test.
12103 2015-08-29  Tom de Vries  <tom@codesourcery.com>
12105         PR tree-optimization/46193
12106         * testsuite/libgomp.c/pr46193.c: New test.
12108 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
12110         libgomp/
12111         * libgomp.map: Add 4.0.2 version.
12112         * target.c (offload_image_descr): Add version field.
12113         (gomp_load_image_to_device): Add version argument.  Adjust plugin
12114         call.  Improve load mismatch diagnostic.
12115         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
12116         call.
12117         (GOMP_offload_regster): Make stub function, move bulk to ...
12118         (GOMP_offload_register_ver): ... here.  Process version argument.
12119         (GOMP_offload_unregister): Make stub function, move bulk to ...
12120         (GOMP_offload_unregister_ver): ... here.  Process version argument.
12121         (gomp_init_device): Process version field.
12122         (gomp_unload_device): Process version field.
12123         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
12124         macros.  Check plugin version.
12125         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
12126         loader and unloader types.
12127         * oacc-host.c: Include gomp-constants.h.
12128         (host_version): New.
12129         (host_load_image, host_unload_image): Adjust.
12130         (host_dispatch): Add host_version.
12131         * plugin/plugin-nvptx.c: Include gomp-constants.h.
12132         (GOMP_OFFLOAD_version): New.
12133         (GOMP_OFFLOAD_load_image): Add version arg and check it.
12134         (GOMP_OFFLOAD_unload_image): Likewise.
12135         * plugin/plugin-host.c: Include gomp-constants.h.
12136         (GOMP_OFFLOAD_version): New.
12137         (GOMP_OFFLOAD_load_image): Add version arg.
12138         (GOMP_OFFLOAD_unload_image): Likewise.
12140 2015-08-24  Tom de Vries  <tom@codesourcery.com>
12142         PR tree-optimization/65468
12143         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
12145 2015-08-24  Tom de Vries  <tom@codesourcery.com>
12147         PR tree-optimization/65468
12148         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
12150 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
12152         PR libgomp/66761
12153         PR libgomp/67303
12154         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
12155         (gomp_iter_guided_next): Idem.
12156         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
12157         (gomp_iter_ull_guided_next): Idem.
12158         * config/linux/wait.h (do_spin): Idem.
12160 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
12162         * libgomp-plugin.h (enum offload_target_type): Remove
12163         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
12164         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
12165         * openacc.h (enum acc_device_t): Likewise.
12166         * openacc_lib.h: Likewise.
12167         * oacc-init.c (name_of_acc_device_t): Don't handle it.
12168         (acc_on_device): Just use __builtin_acc_on_device.
12169         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
12170         of acc_on_device builtin.
12171         * plugin/plugin-host.h: Remove file.
12172         * plugin/plugin-host.c: Likewise, but salvage some content into...
12173         * oacc-host.c: ... this file.
12174         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
12175         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
12176         * Makefile.in: Regenerate.
12177         * configure: Likewise.
12178         * testsuite/lib/libgomp.exp
12179         (check_effective_target_openacc_host_nonshm_selected): Remove.
12180         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
12181         ACC_DEVICE_TYPE=host_nonshm.
12182         * testsuite/libgomp.oacc-c/c.exp: Likewise.
12183         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12184         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
12185         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12186         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12187         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12189 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
12190             Jakub Jelinek  <jakub@redhat.com>
12192         * config/nvptx/affinity.c: New file.
12193         * config/nvptx/alloc.c: Likewise.
12194         * config/nvptx/bar.c: Likewise.
12195         * config/nvptx/barrier.c: Likewise.
12196         * config/nvptx/critical.c: Likewise.
12197         * config/nvptx/env.c: Likewise.
12198         * config/nvptx/error.c: Likewise.
12199         * config/nvptx/fortran.c: Likewise.
12200         * config/nvptx/iter.c: Likewise.
12201         * config/nvptx/iter_ull.c: Likewise.
12202         * config/nvptx/libgomp-plugin.c: Likewise.
12203         * config/nvptx/lock.c: Likewise.
12204         * config/nvptx/loop.c: Likewise.
12205         * config/nvptx/loop_ull.c: Likewise.
12206         * config/nvptx/mutex.c: Likewise.
12207         * config/nvptx/oacc-async.c: Likewise.
12208         * config/nvptx/oacc-cuda.c: Likewise.
12209         * config/nvptx/oacc-host.c: Likewise.
12210         * config/nvptx/oacc-init.c: Likewise.
12211         * config/nvptx/oacc-mem.c: Likewise.
12212         * config/nvptx/oacc-parallel.c: Likewise.
12213         * config/nvptx/oacc-plugin.c: Likewise.
12214         * config/nvptx/omp-lock.h: Likewise.
12215         * config/nvptx/ordered.c: Likewise.
12216         * config/nvptx/parallel.c: Likewise.
12217         * config/nvptx/proc.c: Likewise.
12218         * config/nvptx/ptrlock.c: Likewise.
12219         * config/nvptx/sections.c: Likewise.
12220         * config/nvptx/sem.c: Likewise.
12221         * config/nvptx/single.c: Likewise.
12222         * config/nvptx/splay-tree.c: Likewise.
12223         * config/nvptx/target.c: Likewise.
12224         * config/nvptx/task.c: Likewise.
12225         * config/nvptx/team.c: Likewise.
12226         * config/nvptx/time.c: Likewise.
12227         * config/nvptx/work.c: Likewise.
12228         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
12229         * configure: Regenerate.
12230         * configure.tgt (config_path): Set to "nvptx" for target
12231         nvptx*-*-*.
12233 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
12235         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
12237 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12239         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
12240         (cuda_errlist): Constify.
12241         (errmsg):  Move into ...
12242         (cuda_error): ... here.  Make smaller.
12243         (_XSTR, _STR): Delete.
12244         (cuda_synames): Delete.
12245         (verify_device_library): Delete.
12246         (nvptx_init): Don't call it.
12248 2015-07-28  Tom de Vries  <tom@codesourcery.com>
12250         * testsuite/libgomp.c/uns-outer-4.c: New test.
12252 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
12254         * testsuite/libgomp.c/pr66714.c: New test.
12256 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
12258         PR libgomp/66950
12259         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
12260         (fib_ref): New function.
12261         (fib): Correct corner cases in the recursion.
12262         (main): Replace the non-simd loop with fib_ref call.
12263         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
12264         subroutine.
12265         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
12266         for the last array element value.  Replace the non-simd loop with
12267         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
12268         of the last array element with according Fibonacci sequence element.
12269         (fib): Correct corner cases in the recursion.
12271 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
12273         * target.c (gomp_offload_image_to_device): Rename to ...
12274         (gomp_load_image_to_device): ... here.
12275         (GOMP_offload_register): Adjust call.
12276         (gomp_init_device): Likewise.
12277         (gomp_unload_image_from_device): New.  Broken out of ...
12278         (GOMP_offload_unregister): ... here.  Call it.
12279         (gomp_unload_device): New.
12280         * libgomp.h (gomp_unload_device): Declare.
12281         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
12282         mem maps.
12284 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
12286         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
12287         wait=-specific if.
12288         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
12289         !=0 condition.
12290         (goacc_waits): Move !num_waits handling to ...
12291         (GOACC_wait): ... here, the only caller that might have zero waits.
12293         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
12294         (struct ptx_image_data): Move earlier, add fns field.
12295         (struct ptx_device): Add images and image_lock fields.
12296         (ptx_images, ptx_image_lock): Delete.
12297         (nvptx_open_device): Initialize images and image_lock fields.
12298         (nvptx_close_device): Destroy image_lock.
12299         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
12300         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
12301         fields.
12303 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
12305         * target.c (GOMP_offload_register): Use int for device type arg.
12306         (GOMP_offload_unregister): Likewise.
12308         * target.c (struct_offload_image_descr): Constify host_table.
12309         (gomp_offload_image_to_device): Likewise.
12310         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
12312         * libgomp.h (gomp_device_descr): Constify target data arguments.
12313         * target.c (struct offload_image_descr): Constify target_data.
12314         (gomp_offload_image_to_device): Likewise.
12315         (GOMP_offload_register): Likewise.
12316         (GOMP_offload_unregister): Likewise.
12317         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
12318         GOMP_OFFLOAD_unload_image): Constify target data.
12319         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
12320         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
12322 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
12324         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
12325         Workaround driver library const error.
12326         (struct nvptx_tdata, nvptx_tdata_t): New.
12327         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
12328         type.
12330 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
12332         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
12333         of EPS parameter from integer to real.
12334         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
12335         type of EPS parameter from integer to real.
12337 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12339         * team.c (get_last_team): New.
12340         (gomp_new_team): Recycle last non-nested team if possible.
12341         (gomp_team_end): Move team work share list free lock destruction
12342         to ...
12343         (free_team): ... here.
12345 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
12347         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
12348         and ref from int to double.  Replaced their comparison with
12349         an inequality of their difference and EPS.
12350         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
12351         comparison of pri and a reference number with an inequality of their
12352         difference and EPS.
12353         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
12354         the comparison of sum and sum_ref with an inequality of their
12355         difference and EPS.
12356         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
12357         the comparison of pri and a reference number with an inequality of
12358         their difference and EPS.
12360 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
12362         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
12363         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
12364         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
12365         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
12366         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
12367         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
12368         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
12369         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
12370         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
12371         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
12372         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
12373         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
12374         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
12375         variables.
12376         (vec_mult): Likewise.  Add #pragma omp taskwait.
12377         (main): Adjust caller.
12378         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
12379         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
12380         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
12381         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
12382         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
12383         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
12384         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
12385         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
12386         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
12387         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
12388         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
12389         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
12390         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
12391         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
12392         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
12393         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
12394         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
12395         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
12396         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
12397         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
12398         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
12399         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
12400         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
12401         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
12402         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
12403         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
12404         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
12405         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
12406         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
12407         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
12408         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
12409         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
12410         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
12411         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
12412         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
12413         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
12414         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
12415         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
12416         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
12417         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
12418         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
12419         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
12420         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
12421         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
12422         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
12423         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
12424         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
12425         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
12426         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
12427         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
12428         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
12429         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
12430         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
12431         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
12432         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
12433         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
12434         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
12435         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
12436         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
12437         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
12438         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
12439         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
12440         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
12441         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
12442         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
12443         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
12444         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
12445         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
12446         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
12447         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
12448         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
12449         (vec_mult): Add !$omp taskwait.
12450         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
12451         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
12452         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
12453         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
12454         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
12455         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
12456         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
12457         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
12458         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
12459         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
12460         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
12461         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
12462         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
12463         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
12464         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
12465         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
12466         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
12467         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
12468         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
12469         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
12470         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
12471         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
12472         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
12473         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
12474         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
12475         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
12476         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
12477         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
12478         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
12479         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
12480         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
12481         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
12482         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
12483         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
12484         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
12485         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
12486         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
12487         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
12488         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
12489         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
12490         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
12491         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
12492         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
12493         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
12494         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
12495         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
12496         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
12497         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
12498         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
12499         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
12500         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
12501         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
12502         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
12503         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
12504         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
12505         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
12506         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
12507         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
12508         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
12509         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
12510         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
12511         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
12512         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
12513         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
12514         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
12515         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
12516         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
12518 2015-07-10  Tom de Vries  <tom@codesourcery.com>
12520         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
12521         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
12523 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
12525         PR libgomp/65099
12526         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
12527         in a 64-bit configuration.
12528         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
12529         offloading testing if no such device is available.
12530         * testsuite/libgomp.oacc-c/c.exp: Likewise.
12531         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12533 2015-07-08  Tom de Vries  <tom@codesourcery.com>
12535         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
12536         second call to f.
12537         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12539 2015-07-07  Tom de Vries  <tom@codesourcery.com>
12541         PR tree-optimization/66642
12542         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
12543         iteration count case.
12544         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
12545         function, factor out of ...
12546         (main): ... here.  Test low iteration count case.
12548 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12550         * libgomp.h (gomp_thread_pool): Comment last_team field.
12552 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
12554         * testsuite/libgomp.c++/pr66702-1.C: Require
12555         vect_simd_clones effective target.
12556         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
12558 2015-06-30  Tom de Vries  <tom@codesourcery.com>
12560         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12561         already set.  Use DEFAULT_CFLAGS in dg-runtest.
12562         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
12563         "-O2".
12565 2015-06-30  Tom de Vries  <tom@codesourcery.com>
12567         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12568         already set.  Use DEFAULT_CFLAGS in dg-runtest.
12569         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
12570         * testsuite/libgomp.c++/pr64824.C: Same.
12571         * testsuite/libgomp.c++/pr64868.C: Same.
12572         * testsuite/libgomp.c++/pr66199-1.C: Same.
12573         * testsuite/libgomp.c++/pr66199-2.C: Same.
12574         * testsuite/libgomp.c++/target-2.C: Same.
12575         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
12576         -std=<standard> option.
12577         * testsuite/libgomp.c++/udr-11.C: Same.
12578         * testsuite/libgomp.c++/udr-12.C: Same.
12579         * testsuite/libgomp.c++/udr-13.C: Same.
12580         * testsuite/libgomp.c++/udr-14.C: Same.
12581         * testsuite/libgomp.c++/udr-15.C: Same.
12582         * testsuite/libgomp.c++/udr-16.C: Same.
12583         * testsuite/libgomp.c++/udr-17.C: Same.
12584         * testsuite/libgomp.c++/udr-18.C: Same.
12585         * testsuite/libgomp.c++/udr-19.C: Same.
12586         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
12587         * testsuite/libgomp.c++/simd-1.C: Same.
12588         * testsuite/libgomp.c++/simd-2.C: Same.
12589         * testsuite/libgomp.c++/simd-3.C: Same.
12590         * testsuite/libgomp.c++/simd-4.C: Same.
12591         * testsuite/libgomp.c++/simd-5.C: Same.
12592         * testsuite/libgomp.c++/simd-6.C: Same.
12593         * testsuite/libgomp.c++/simd-7.C: Same.
12594         * testsuite/libgomp.c++/simd-8.C: Same.
12595         * testsuite/libgomp.c++/simd-9.C: Same.
12596         * testsuite/libgomp.c++/simd10.C: Same.
12597         * testsuite/libgomp.c++/simd11.C: Same.
12598         * testsuite/libgomp.c++/simd12.C: Same.
12599         * testsuite/libgomp.c++/simd13.C: Same.
12601 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
12603         PR middle-end/66702
12604         * testsuite/libgomp.c++/pr66702-1.C: New test.
12605         * testsuite/libgomp.c++/pr66702-2.C: New test.
12607 2015-06-30  Tom de Vries  <tom@codesourcery.com>
12609         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
12610         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
12611         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
12612         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
12614 2015-06-30  Tom de Vries  <tom@codesourcery.com>
12616         PR tree-optimization/66652
12617         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
12618         using restrict pointers.
12619         (main): Add arguments to calls to f.
12620         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12622 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
12624         * configure.ac: Fix check for header <sys/sysctl.h>.
12625         * configure: Regenerate.
12626         * config.h.in: Likewise.
12628 2015-06-23  Tom de Vries  <tom@codesourcery.com>
12630         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
12631         abort.
12632         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
12634 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
12636         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
12637         acc_device_nvidia.
12639         PR libgomp/66518
12640         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
12641         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12643 2015-06-15  Tom de Vries  <tom@codesourcery.com>
12645         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
12646         dg-additional-options for any remaining options.
12647         * testsuite/libgomp.c/atomic-2.c: Same.
12648         * testsuite/libgomp.c/atomic-4.c: Same.
12649         * testsuite/libgomp.c/atomic-5.c: Same.
12650         * testsuite/libgomp.c/atomic-6.c: Same.
12651         * testsuite/libgomp.c/autopar-1.c: Same.
12652         * testsuite/libgomp.c/copyin-1.c: Same.
12653         * testsuite/libgomp.c/copyin-2.c: Same.
12654         * testsuite/libgomp.c/copyin-3.c: Same.
12655         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
12656         * testsuite/libgomp.c/nestedfn-5.c: Same.
12657         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
12658         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
12659         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
12660         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12661         * testsuite/libgomp.c/pr32362-1.c: Same.
12662         * testsuite/libgomp.c/pr32362-2.c: Same.
12663         * testsuite/libgomp.c/pr32362-3.c: Same.
12664         * testsuite/libgomp.c/pr39591-1.c: Same.
12665         * testsuite/libgomp.c/pr39591-2.c: Same.
12666         * testsuite/libgomp.c/pr39591-3.c: Same.
12667         * testsuite/libgomp.c/pr58392.c: Same.
12668         * testsuite/libgomp.c/pr58756.c: Same.
12669         * testsuite/libgomp.c/simd-1.c: Same.
12670         * testsuite/libgomp.c/simd-10.c: Same.
12671         * testsuite/libgomp.c/simd-11.c: Same.
12672         * testsuite/libgomp.c/simd-12.c: Same.
12673         * testsuite/libgomp.c/simd-13.c: Same.
12674         * testsuite/libgomp.c/simd-14.c: Same.
12675         * testsuite/libgomp.c/simd-15.c: Same.
12676         * testsuite/libgomp.c/simd-2.c: Same.
12677         * testsuite/libgomp.c/simd-3.c: Same.
12678         * testsuite/libgomp.c/simd-4.c: Same.
12679         * testsuite/libgomp.c/simd-5.c: Same.
12680         * testsuite/libgomp.c/simd-6.c: Same.
12681         * testsuite/libgomp.c/simd-7.c: Same.
12682         * testsuite/libgomp.c/simd-8.c: Same.
12683         * testsuite/libgomp.c/simd-9.c: Same.
12685 2015-06-15  Tom de Vries  <tom@codesourcery.com>
12687         * testsuite/libgomp.c/pr35625.c: Fix typo.
12689 2015-06-15  Tom de Vries  <tom@codesourcery.com>
12691         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
12692         in dg-options.
12693         * testsuite/libgomp.c/atomic-3.c: Same.
12694         * testsuite/libgomp.c/debug-1.c: Same.
12695         * testsuite/libgomp.c/nqueens-1.c: Same.
12696         * testsuite/libgomp.c/pr26171.c: Same.
12697         * testsuite/libgomp.c/pr48591.c: Same.
12698         * testsuite/libgomp.c/pr64824.c: Same.
12699         * testsuite/libgomp.c/pr64868.c: Same.
12700         * testsuite/libgomp.c/pr66133.c: Same.
12701         * testsuite/libgomp.c/pr66199-1.c: Same.
12702         * testsuite/libgomp.c/pr66199-2.c: Same.
12703         * testsuite/libgomp.c/target-8.c: Same.
12705 2015-06-15  Tom de Vries  <tom@codesourcery.com>
12707         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
12708         -std={gnu99,c99}.
12709         * testsuite/libgomp.c/for-1.c: Same.
12710         * testsuite/libgomp.c/for-2.c: Same.
12711         * testsuite/libgomp.c/for-3.c: Same.
12712         * testsuite/libgomp.c/pr35625.c: Same.
12713         * testsuite/libgomp.c/pr39154.c: Same.
12714         * testsuite/libgomp.c/simd-16.c: Same.
12715         * testsuite/libgomp.c/simd-17.c: Same.
12717 2015-06-13  Tom de Vries  <tom@codesourcery.com>
12719         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
12721 2015-06-13  Tom de Vries  <tom@codesourcery.com>
12723         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
12724         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12725         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
12726         (N): Define.
12727         (main): Use N instead of hardcoded constants.
12729 2015-06-05  Tom de Vries  <tom@codesourcery.com>
12731         merge from gomp4 branch:
12732         2015-05-28  Tom de Vries  <tom@codesourcery.com>
12734         PR tree-optimization/65443
12735         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
12736         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
12737         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
12739 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12741         * testsuite/libgomp.graphite/bounds.c: Adjust for
12742         cleanup-tree-dump removal.
12743         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
12744         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12745         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12746         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12747         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12748         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12749         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12750         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12751         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12752         * testsuite/libgomp.graphite/pr41118.c: Likewise.
12754 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
12756         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
12757         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
12758         (futex_wake) [!__x86_64__]: Ditto.
12760 2015-05-28  Julian Brown  <julian@codesourcery.com>
12762         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
12763         function comment. Only call gomp_fatal if new argument is true.
12764         (acc_dev_num_out_of_range): New function.
12765         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
12766         acc_dev_num_out_of_range as appropriate.
12767         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12768         (acc_get_device_num, acc_set_device_num): Update calls to
12769         resolve_device.
12770         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
12771         output.
12773 2015-05-28  Julian Brown  <julian@codesourcery.com>
12775         PR libgomp/65742
12776         * oacc-init.c (plugin/plugin-host.h): Include.
12777         (acc_on_device): Check whether we're in an offloaded region for
12778         host_nonshm
12779         plugin. Don't use __builtin_acc_on_device.
12780         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
12781         nonshm_exec flag in thread-local data.
12782         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
12783         data for host_nonshm plugin.
12784         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
12785         for host_nonshm plugin.
12786         * plugin/plugin-host.h: New.
12788 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
12790         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
12792 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
12794         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
12795         Declare as int.
12796         (FUTEX_PRIVATE_FLAG): Remove L suffix.
12797         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
12798         Declare as int.
12800 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
12802         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
12804 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
12806         * target.c (gomp_map_pointer): New function abstracting out
12807         GOMP_MAP_POINTER handling.
12808         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
12809         gomp_map_pointer().
12811 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
12813         PR middle-end/66199
12814         * testsuite/libgomp.c/pr66199-1.c: New test.
12815         * testsuite/libgomp.c/pr66199-2.c: New test.
12816         * testsuite/libgomp.c++/pr66199-1.C: New test.
12817         * testsuite/libgomp.c++/pr66199-2.C: New test.
12818         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
12819         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
12821 2015-05-19  Julian Brown  <julian@codesourcery.com>
12823         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
12824         on cuInit failure.
12826 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
12828         PR middle-end/66133
12829         * testsuite/libgomp.c/pr66133.c: New test.
12831 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
12833         * Makefile.in: Regenerated with automake-1.11.6.
12834         * aclocal.m4: Likewise.
12835         * config.h.in: Likewise.
12836         * configure: Likewise.
12837         * testsuite/Makefile.in: Likewise.
12839 2015-05-08  Jason Merrill  <jason@redhat.com>
12841         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
12842         _Complex.
12844         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
12846 2015-05-06  Julian Brown  <julian@codesourcery.com>
12848         * oacc-init.c (acc_device_lock): Add explanatory comment.
12849         (resolve_device): Add comment about locking requirement.
12850         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
12851         gomp_init_device and gomp_fini_device calls.
12852         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12853         (acc_get_device_num, acc_set_device_num): Add locking around
12854         resolve_device and gomp_init_device calls.
12856 2015-05-06  Julian Brown  <julian@codesourcery.com>
12858         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
12859         goacc_thread_lock on error paths.
12860         * oacc-mem.c (lookup_host): Remove locking from function. Note
12861         locking requirement for caller in function comment.
12862         (lookup_dev): Likewise.
12863         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
12864         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
12865         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
12866         Add locking.
12868 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
12870         PR testsuite/65205
12871         PR libgomp/65993
12872         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
12873         don't expect "0x" prefix for "%p" format specifier, don't expect
12874         "(nil)" for NULL pointer.
12875         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12876         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12877         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12878         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12879         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12880         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12881         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12882         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12883         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12884         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12885         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12886         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12887         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12888         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12889         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12890         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12891         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12892         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12893         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12894         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12895         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12896         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12897         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12898         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12899         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12900         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12901         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12902         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12903         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
12904         accurately specify what we're looking for.
12905         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12906         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12907         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
12908         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12909         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12911 2015-04-30  James Norris  <jnorris@codesourcery.com>
12913         PR testsuite/65205
12914         * testsuite/lib/libgomp.exp
12915         (check_effective_target_openacc_host_selected)
12916         (check_effective_target_openacc_host_nonshm_selected): New
12917         procedures.
12918         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
12919         dg-shouldfail.
12920         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
12921         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12922         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12923         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12924         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12925         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12926         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12927         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12928         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12929         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12930         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12931         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12932         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12933         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12934         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12935         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
12936         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12937         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12938         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12939         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12940         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12941         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
12942         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12943         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12944         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12945         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12946         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12947         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12948         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12949         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12950         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12951         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12952         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12953         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
12954         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
12955         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
12956         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
12957         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
12958         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
12959         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
12960         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
12961         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
12962         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
12964 2015-04-08  Julian Brown  <julian@codesourcery.com>
12966         * libgomp.h (target_mem_desc: Remove mem_map field.
12967         (acc_dispatch_t): Remove open_device_func, close_device_func,
12968         get_device_num_func, set_device_num_func, target_data members.
12969         Change create_thread_data_func argument to device number instead of
12970         generic pointer.
12971         * oacc-async.c (assert.h): Include.
12972         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
12973         (acc_wait_all, acc_wait_all_async): Use current host thread's
12974         active device, not base_dev.
12975         * oacc-cuda.c (acc_get_current_cuda_device)
12976         (acc_get_current_cuda_context, acc_get_cuda_stream)
12977         (acc_set_cuda_stream): Likewise.
12978         * oacc-host.c (host_dispatch): Don't set open_device_func,
12979         close_device_func, get_device_num_func or set_device_num_func.
12980         * oacc-init.c (base_dev, init_key): Remove.
12981         (cached_base_dev): New.
12982         (name_of_acc_device_t): New.
12983         (acc_init_1): Initialise default-numbered device, not zeroth.
12984         (acc_shutdown_1): Close all devices of a given type.
12985         (goacc_destroy_thread): Don't use base_dev.
12986         (lazy_open, lazy_init, lazy_init_and_open): Remove.
12987         (goacc_attach_host_thread_to_device): New.
12988         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
12989         (acc_get_num_devices): Don't use base_dev.
12990         (acc_set_device_type): Reimplement.
12991         (acc_get_device_type): Don't use base_dev.
12992         (acc_get_device_num): Tweak logic.
12993         (acc_set_device_num): Likewise.
12994         (acc_on_device): Use acc_get_device_type.
12995         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
12996         (goacc_lazy_initialize): Reimplement with acc_init and
12997         goacc_attach_host_thread_to_device.
12998         * oacc-int.h (goacc_thread): Add base_dev field.
12999         (base_dev): Remove extern declaration.
13000         (goacc_attach_host_thread_to_device): Add prototype.
13001         * oacc-mem.c (acc_malloc): Use current thread's device instead of
13002         base_dev.
13003         (acc_free): Likewise.
13004         (acc_memcpy_to_device): Likewise.
13005         (acc_memcpy_from_device): Likewise.
13006         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
13007         goacc_lazy_initialize (throughout).
13008         (GOACC_parallel): Use tgt_offset to locate target functions.
13009         * target.c (gomp_map_vars): Don't set tgt->mem_map.
13010         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
13011         (gomp_load_plugin_for_device): Remove open_device, close_device,
13012         get_device_num, set_device_num openacc hook initialisation. Don't set
13013         openacc.target_data.
13014         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
13015         (GOMP_OFFLOAD_openacc_close_device)
13016         (GOMP_OFFLOAD_openacc_get_device_num)
13017         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
13018         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
13019         to int.
13020         * plugin/plugin-nvptx.c (ptx_inited): Remove.
13021         (instantiated_devices, ptx_dev_lock): New.
13022         (struct ptx_image_data): New.
13023         (ptx_devices, ptx_images, ptx_image_lock): New.
13024         (fini_streams_for_device): Reorder cuStreamDestroy call.
13025         (nvptx_get_num_devices): Remove forward declaration.
13026         (nvptx_init): Change return type to bool.
13027         (nvptx_fini): Remove.
13028         (nvptx_attach_host_thread_to_device): New.
13029         (nvptx_open_device): Return struct ptx_device* instead of void*.
13030         (nvptx_close_device): Change argument type to struct ptx_device*,
13031         return type to void.
13032         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
13033         (kernel_target_data, kernel_host_table): Remove static globals.
13034         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
13035         (GOMP_OFFLOAD_init_device): Reimplement.
13036         (GOMP_OFFLOAD_fini_device): Likewise.
13037         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
13038         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
13039         (GOMP_OFFLOAD_host2dev): Use ORD argument.
13040         (GOMP_OFFLOAD_openacc_open_device)
13041         (GOMP_OFFLOAD_openacc_close_device)
13042         (GOMP_OFFLOAD_openacc_set_device_num)
13043         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
13044         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
13045         (device number).
13047         testsuite/
13048         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
13050 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
13052         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
13053         * libgomp.h (struct gomp_memory_mapping): Remove.
13054         (struct target_mem_desc): Change type of mem_map from
13055         gomp_memory_mapping * to splay_tree_s *.
13056         (struct gomp_device_descr): Remove register_image_func, get_table_func.
13057         Add load_image_func, unload_image_func.
13058         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
13059         Remove offload_regions_registered.
13060         (gomp_init_tables): Remove.
13061         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13062         to splay_tree_s *.
13063         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
13064         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
13065         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
13066         offload_regions_registered.
13067         Initialize load_image_func, unload_image_func, mem_map.root.
13068         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
13069         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
13070         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
13071         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
13072         gomp_memory_mapping *.  Use dev's lock and splay_tree.
13073         (lookup_dev): Use dev's lock.
13074         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
13075         (acc_is_present): Likewise.
13076         (acc_map_data): Likewise.
13077         (acc_unmap_data): Likewise.  Use dev's lock.
13078         (present_create_copy): Likewise.
13079         (delete_copyout): Pass dev to lookup_host instead of mem_map.
13080         (update_dev_host): Likewise.
13081         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
13082         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
13083         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
13084         (GOMP_OFFLOAD_get_table): Remove
13085         (GOMP_OFFLOAD_load_image): New function.
13086         (GOMP_OFFLOAD_unload_image): New function.
13087         * target.c (register_lock): New mutex for offload image registration.
13088         (num_devices): Do not guard with PLUGIN_SUPPORT.
13089         (gomp_realloc_unlock): New static function.
13090         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
13091         before gomp_fatal.
13092         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
13093         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
13094         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
13095         mem_map's.
13096         (gomp_unmap_vars): Likewise.
13097         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
13098         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
13099         (gomp_offload_image_to_device): New static function.
13100         (GOMP_offload_register): Add mutex lock.
13101         Call gomp_offload_image_to_device for all initialized devices.
13102         Replace gomp_realloc with gomp_realloc_unlock.
13103         (GOMP_offload_unregister): New function.
13104         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
13105         get_table_func from the plugin with calls to init_device_func and
13106         gomp_offload_image_to_device.
13107         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13108         to splay_tree_s *.
13109         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
13110         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
13111         (GOMP_target_data): Do not call gomp_init_tables.
13112         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
13113         (gomp_load_plugin_for_device): Replace register_image and get_table
13114         with load_image and unload_image in DLSYM ().
13115         (gomp_register_images_for_device): Remove function.
13116         (gomp_target_init): Do not initialize current_device.mem_map.*,
13117         current_device.offload_regions_registered.
13118         Remove call to gomp_register_images_for_device.
13119         Do not free offload_images and num_offload_images.
13121 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
13123         PR fortran/65597
13124         * testsuite/libgomp.fortran/pr65597.f90: New test.
13126 2015-03-27  Tom de Vries  <tom@codesourcery.com>
13128         PR testsuite/65594
13129         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
13130         (init, check): New function.
13131         (foo): Change return type to void.
13132         (main): Call init and check.
13134 2015-03-27  Tom de Vries  <tom@codesourcery.com>
13136         PR testsuite/65594
13137         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
13138         (foo): Use M for non-inner loops to scale down test-case.
13140 2015-03-25  Kai Tietz  <ktietz@redhat.com>
13142         PR libgomp/64972
13143         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
13144         (GOACC_data_start): Likewise.
13145         * target.c (gomp_map_vars): Likewise.
13147 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
13149         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
13150         hppa*-*-hpux*.
13152 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
13154         * testsuite/libgomp.c/target-10.c: New test.
13155         * testsuite/libgomp.c++/target-4.C: New test.
13157 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
13159         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
13160         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
13162 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13164         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
13165         * configure.ac (*-*-rtems*): Assume Pthread is supported.
13166         (pthread.h): Check for this header file.
13167         * configure: Regenerate.
13169 2015-02-25  Tom de Vries  <tom@codesourcery.com>
13171         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
13172         (check_reduction_op, check_reduction_macro, max, min):
13173         Declare.
13174         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
13175         function.
13176         (main): Use new functions.
13178 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
13180         * target.c (gomp_load_plugin_for_device): Use const char * instead of
13181         char * for variables holding dlerror return values.
13182         (DLSYM_OPT): Ditto.
13184 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
13186         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
13188 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
13189             Cesar Philippidis  <cesar@codesourcery.com>
13191         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
13192         GOACC_ctaid, and GOACC_nctaid routines.
13194 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
13196         PR c/64824
13197         * testsuite/libgomp.c/atomic-18.c: New test.
13198         * testsuite/libgomp.c++/atomic-16.C: New test.
13200 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
13202         PR c/64824
13203         PR c/64868
13204         * testsuite/libgomp.c/pr64824.c: New test.
13205         * testsuite/libgomp.c/pr64868.c: New test.
13206         * testsuite/libgomp.c++/pr64824.C: New test.
13207         * testsuite/libgomp.c++/pr64868.C: New test.
13209 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
13211         PR libgomp/64635
13212         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
13213         Link with -lpthread.
13214         * config/aix/plugin-suffix.h: Delete.
13216 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
13218         PR libgomp/64635
13219         * configure.tgt (*-*-aix*): Use config_path "aix posix".
13220         (*-*-darwin*): Use config_path "bsd darwin posix".
13221         (*-*-hpux*): Use config_path "hpux posix".
13222         * target.c: Add include of plugin-suffix.h and use
13223         SONAME_SUFFIX macro.
13224         * config/aix/plugin-suffix.h: New file.
13225         * config/darwin/plugin-suffix.h: New file.
13226         * config/hpux/plugin-suffix.h: New file.
13227         * config/posix/plugin-suffix.h: New file.
13229 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
13231         PR middle-end/64734
13232         * libgomp.c/pr64734.c: New test.
13234 2015-01-23  Tom de Vries  <tom@codesourcery.com>
13236         PR libgomp/64672
13237         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
13239 2015-01-23  Tom de Vries  <tom@codesourcery.com>
13241         PR libgomp/64707
13242         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
13243         dg-options.
13245 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
13247         PR libgomp/64625
13248         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
13249         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
13250         formal parameter.  Update all users.
13251         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
13252         Document unused formal parameter.
13254 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
13256         * oacc-parallel.c: Don't include <alloca.h>.
13257         (GOACC_parallel): Use gomp_alloca instead of alloca.
13259 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
13261         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
13263 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
13264             James Norris  <jnorris@codesourcery.com>
13265             Tom de Vries  <tom@codesourcery.com>
13266             Julian Brown  <julian@codesourcery.com>
13267             Cesar Philippidis  <cesar@codesourcery.com>
13268             Nathan Sidwell  <nathan@codesourcery.com>
13269             Tobias Burnus  <burnus@net-b.de>
13271         * Makefile.am (search_path): Add $(top_srcdir)/../include.
13272         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
13273         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
13274         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
13275         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
13276         Include $(top_srcdir)/plugin/Makefrag.am.
13277         (nodist_libsubinclude_HEADERS): Add openacc.h.
13278         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
13279         openacc.f90, openacc.mod, openacc_kinds.mod.
13280         (omp_lib.mod): Generalize into...
13281         (%.mod): ... this new rule.
13282         (openacc_kinds.mod, openacc.mod): New rules.
13283         * plugin/configfrag.ac: New file.
13284         * configure.ac: Move plugin/offloading support into it.  Include
13285         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
13286         * plugin/Makefrag.am: New file.
13287         * testsuite/Makefile.am (OFFLOAD_TARGETS)
13288         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
13289         export.
13290         (libgomp-test-support.exp): New rule.
13291         (all-local): Depend on it.
13292         * Makefile.in: Regenerate.
13293         * testsuite/Makefile.in: Regenerate.
13294         * config.h.in: Likewise.
13295         * configure: Likewise.
13296         * configure.tgt: Harden shell syntax.
13297         * env.c: Include "oacc-int.h".
13298         (parse_acc_device_type): New function.
13299         (gomp_debug_var, goacc_device_type, goacc_device_num): New
13300         variables.
13301         (initialize_env): Initialize those.  Call
13302         goacc_runtime_initialize.
13303         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
13304         (gomp_fatal): Call gomp_vfatal.
13305         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
13306         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
13307         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
13308         (splay_tree_node, splay_tree, splay_tree_key)
13309         (struct target_mem_desc, struct splay_tree_key_s)
13310         (struct gomp_memory_mapping, struct acc_dispatch_t)
13311         (struct gomp_device_descr, gomp_acc_insert_pointer)
13312         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
13313         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
13314         (gomp_free_memmap, gomp_fini_device): New declarations.
13315         (gomp_vdebug, gomp_debug): New macros.
13316         Include "splay-tree.h".
13317         * libgomp.map (OACC_2.0): New symbol version.  Use for
13318         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
13319         acc_set_device_type_h_, acc_get_device_type,
13320         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
13321         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
13322         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
13323         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
13324         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
13325         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
13326         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
13327         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
13328         acc_copyin_array_h_, acc_present_or_copyin,
13329         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
13330         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
13331         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
13332         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
13333         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
13334         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
13335         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
13336         acc_update_device, acc_update_device_32_h_,
13337         acc_update_device_64_h_, acc_update_device_array_h_,
13338         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
13339         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
13340         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
13341         acc_is_present_64_h_, acc_is_present_array_h_,
13342         acc_memcpy_to_device, acc_memcpy_from_device,
13343         acc_get_current_cuda_device, acc_get_current_cuda_context,
13344         acc_get_cuda_stream, acc_set_cuda_stream.
13345         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
13346         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
13347         GOACC_update, GOACC_wait, GOACC_get_thread_num,
13348         GOACC_get_num_threads.
13349         (GOMP_PLUGIN_1.0): New symbol version.  Use for
13350         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
13351         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
13352         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
13353         GOMP_PLUGIN_acc_thread.
13354         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
13355         environment variable.
13356         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
13357         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
13358         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
13359         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
13360         (splay_tree_remove): New declarations.
13361         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
13362         (splay_tree_remove, splay_tree_lookup): Move into...
13363         * splay-tree.c: ... this new file.
13364         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
13365         (splay_tree_node, splay_tree, splay_tree_key)
13366         (struct target_mem_desc, struct splay_tree_key_s)
13367         (struct gomp_device_descr): Don't declare.
13368         (num_devices_openmp): New variable.
13369         (gomp_get_num_devices ): Use it.
13370         (gomp_init_targets_once): New function.
13371         (gomp_get_num_devices ): Use it.
13372         (get_kind, gomp_copy_from_async, gomp_free_memmap)
13373         (gomp_fini_device, gomp_register_image_for_device): New functions.
13374         (gomp_map_vars): Add devaddrs parameter.
13375         (gomp_update): Add mm parameter.
13376         (gomp_init_device): Move most of it into...
13377         (gomp_init_tables): ... this new function.
13378         (gomp_register_images_for_device): Remove function.
13379         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
13380         Make them hidden instead of static.
13381         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
13382         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
13383         (GOMP_target_end_data, GOMP_target_update)
13384         (gomp_load_plugin_for_device, gomp_target_init): Update for
13385         OpenACC changes.
13386         * oacc-async.c: New file.
13387         * oacc-cuda.c: Likewise.
13388         * oacc-host.c: Likewise.
13389         * oacc-init.c: Likewise.
13390         * oacc-int.h: Likewise.
13391         * oacc-mem.c: Likewise.
13392         * oacc-parallel.c: Likewise.
13393         * oacc-plugin.c: Likewise.
13394         * oacc-plugin.h: Likewise.
13395         * oacc-ptx.h: Likewise.
13396         * openacc.f90: Likewise.
13397         * openacc.h: Likewise.
13398         * openacc_lib.h: Likewise.
13399         * plugin/plugin-host.c: Likewise.
13400         * plugin/plugin-nvptx.c: Likewise.
13401         * libgomp-plugin.c: Likewise.
13402         * libgomp-plugin.h: Likewise.
13403         * libgomp_target.h: Remove file after merging content into the
13404         former file.  Update all users.
13405         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
13406         (offload_targets_s, offload_targets_s_openacc): New variables.
13407         (check_effective_target_openacc_nvidia_accel_present)
13408         (check_effective_target_openacc_nvidia_accel_selected): New
13409         procedures.
13410         (libgomp_init): Update for OpenACC changes.
13411         * testsuite/libgomp-test-support.exp.in: New file.
13412         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
13413         * testsuite/libgomp.oacc-c/c.exp: Likewise.
13414         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13415         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
13416         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
13417         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13418         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
13419         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13420         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13421         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
13422         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
13423         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13424         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
13425         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13426         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
13427         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13428         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
13429         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
13430         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
13431         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
13432         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
13433         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
13434         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13435         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13436         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13437         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13438         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13439         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13440         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13441         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13442         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13443         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13444         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13445         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
13446         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
13447         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13448         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13449         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13450         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
13451         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
13452         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13453         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13454         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13455         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13456         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13457         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
13458         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13459         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13460         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13461         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13462         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13463         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13464         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13465         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13466         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13467         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13468         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13469         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13470         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13471         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
13472         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
13473         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
13474         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13475         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13476         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13477         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
13478         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
13479         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13480         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13481         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13482         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
13483         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13484         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13485         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13486         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
13487         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
13488         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13489         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13490         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
13491         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
13492         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
13493         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
13494         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13495         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13496         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13497         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
13498         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
13499         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13500         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13501         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
13502         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
13503         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
13504         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
13505         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13506         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13507         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13508         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13509         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
13510         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13511         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13512         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
13513         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
13514         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
13515         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13516         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
13517         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
13518         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
13519         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
13520         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
13521         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13522         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
13523         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
13524         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13525         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
13526         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
13527         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
13528         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
13529         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
13530         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
13531         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
13532         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
13533         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
13534         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13535         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
13536         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
13537         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
13538         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
13539         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
13540         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
13541         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
13542         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
13543         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
13544         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13545         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
13546         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13547         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13548         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13549         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13550         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13551         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
13552         Likewise.
13553         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
13554         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
13555         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
13556         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13557         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
13558         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13559         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
13560         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13561         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13562         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13563         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13564         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13565         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13566         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
13567         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
13568         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
13569         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
13570         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
13571         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
13572         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
13573         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
13574         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
13575         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
13576         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
13577         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
13578         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
13579         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13580         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13581         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13582         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13583         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13584         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13585         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13586         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13587         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
13588         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
13589         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
13590         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
13591         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
13592         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
13593         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
13594         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
13595         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
13596         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
13597         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
13598         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
13599         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
13600         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
13601         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
13602         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13603         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13604         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13605         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13606         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13607         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
13608         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
13609         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
13610         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
13611         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
13612         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
13614 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
13615             Julian Brown  <julian@codesourcery.com>
13616             David Malcolm  <dmalcolm@redhat.com>
13618         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
13619         to "GNU Offloading and Multi Processing Runtime Library".  Change
13620         all users.
13621         * configure: Regenerate.
13622         * libgomp.texi: Update.
13624 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
13626         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
13627         "$tgt_dir/lib32".
13628         * configure: Regenerate.
13630         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
13631         "intelmic" in $offload_targets.
13633 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
13635         Update copyright years.
13637         * libgomp.texi: Bump @copying's copyright year.
13639 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13641         * testsuite/lib/libgomp.exp: Load target-utils.exp.
13642         Move load of target-supports.exp earlier.
13644 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
13646         * testsuite/libgomp.c/target-9.c: New test.
13648 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
13650         * config.h.in: Regenerate.
13651         * configure: Regenerate.
13652         * configure.ac: Add GCC_CHECK_EMUTLS.
13653         * libgomp.h: Add check for USE_EMUTLS: this case
13654         is equal to HAVE_TLS.
13655         * team.c: Likewise.
13657 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
13659         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
13661 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13662             Ilya Verbin  <ilya.verbin@intel.com>
13664         * testsuite/libgomp.c/target-critical-1.c: New test.
13666 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
13668         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
13669         to dg-options unless expensive testing is on.
13670         (TESTITERS): Define to N if not defined.
13671         (main): Use TESTITERS instead of N.
13672         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
13673         dg-additional-options depending on whether expensive testing is on.
13674         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
13675         Decrease N to 100000 and CHUNKSZ to 10000.
13677 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
13679         PR fortran/63938
13680         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
13681         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
13683 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
13685         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
13687 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
13689         PR bootstrap/63784
13690         * configure: Regenerated.
13692 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
13694         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
13695         vect_simd_clones effective target.
13696         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13698 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
13700         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
13701         of 32 as block_size.
13702         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
13703         instead of 32 as block_size.
13705 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13706             Ilya Verbin  <ilya.verbin@intel.com>
13708         * Makefile.in: Regenerate.
13709         * configure: Regenerate.
13710         * configure.ac: Set up offload_additional_options,
13711         offload_additional_lib_paths and offload_targets.
13712         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
13713         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
13714         * testsuite/Makefile.in: Regenerate.
13715         * testsuite/lib/libgomp.exp (libgomp_init): Append
13716         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
13717         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
13718         build directory to LD_LIBRARY_PATH for intelmic offload targets.
13720 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
13721             Ilya Verbin  <ilya.verbin@intel.com>
13722             Kirill Yukhin  <kirill.yukhin@intel.com>
13723             Ilya Tocar  <ilya.tocar@intel.com>
13725         * testsuite/lib/libgomp.exp
13726         (check_effective_target_offload_device): New.
13727         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
13728         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
13729         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
13730         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
13731         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
13732         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
13733         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
13734         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
13735         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
13736         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
13737         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
13738         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
13739         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
13740         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
13741         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
13742         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
13743         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
13744         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
13745         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
13746         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
13747         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
13748         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
13749         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
13750         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
13751         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
13752         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
13753         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
13754         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
13755         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
13756         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
13757         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
13758         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
13759         * testsuite/libgomp.c/target-7.c: Fix test.
13760         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
13761         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
13762         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
13763         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
13764         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
13765         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
13766         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
13767         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
13768         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
13769         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
13770         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
13771         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
13772         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
13773         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
13774         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
13775         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
13776         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
13777         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
13778         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13779         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
13780         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
13781         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
13782         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
13783         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
13784         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
13785         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
13786         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
13787         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
13788         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
13789         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
13790         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
13792 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
13793             Ilya Verbin  <ilya.verbin@intel.com>
13794             Thomas Schwinge  <thomas@codesourcery.com>
13795             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13797         * libgomp.map (GOMP_4.0.1): New symbol version.
13798         Add GOMP_offload_register.
13799         * libgomp_target.h: New file.
13800         * splay-tree.h: New file.
13801         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
13802         (gomp_target_init): New forward declaration.
13803         (gomp_is_initialized): New static variable.
13804         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
13805         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
13806         New structures.
13807         (offload_images, num_offload_images, devices, num_devices): New static
13808         variables.
13809         (splay_compare): New static function.
13810         (struct gomp_device_descr): New structure.
13811         (gomp_get_num_devices): Call gomp_target_init.
13812         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
13813         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
13814         (GOMP_offload_register): New function.
13815         (GOMP_target): Arrange for host callback to be performed in a separate
13816         initial thread and contention group, inheriting ICVs from
13817         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
13818         Add device initialization and lookup for target function in splay tree.
13819         (GOMP_target_data): Add device initialization and call gomp_map_vars.
13820         (GOMP_target_end_data): Call gomp_unmap_vars.
13821         (GOMP_target_update): Add device initialization and call gomp_update.
13822         (gomp_load_plugin_for_device, gomp_register_images_for_device)
13823         (gomp_target_init): New static functions.
13825 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
13826             Thomas Schwinge  <thomas@codesourcery.com>
13827             Ilya Verbin  <ilya.verbin@intel.com>
13828             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13830         * config.h.in: Regenerate.
13831         * configure: Regenerate.
13832         * configure.ac: Check for libdl, required for plugin support.
13833         (PLUGIN_SUPPORT): Define if plugins are supported.
13834         (enable_offload_targets): Support Intel MIC targets.
13835         (OFFLOAD_TARGETS): List of target names suitable for offloading.
13837 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13839         PR target/63610
13840         * configure: Regenerate.
13842 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13844         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
13846 2014-10-06  Marek Polacek  <polacek@redhat.com>
13848         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
13849         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
13850         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
13851         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13853 2014-10-06  Marek Polacek  <polacek@redhat.com>
13855         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
13856         * testsuite/libgomp.c/nqueens-1.c: Likewise.
13857         * testsuite/libgomp.c/pr26943-3.c: Likewise.
13858         * testsuite/libgomp.c/pr26943-4.c: Likewise.
13859         * testsuite/libgomp.c/pr36802-2.c: Likewise.
13860         * testsuite/libgomp.c/pr36802-3.c: Likewise.
13861         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
13862         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13863         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
13864         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
13865         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
13866         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
13867         * testsuite/libgomp.c/omp-single-1.c: Likewise.
13868         * testsuite/libgomp.c/omp-single-2.c: Likewise.
13869         * testsuite/libgomp.c/omp_matvec.c: Likewise.
13870         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
13871         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
13872         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
13873         declarations.
13875 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
13877         PR libgomp/61200
13878         * testsuite/libgomp.c/pr61200.c: New test.
13880 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
13882         PR c++/63248
13883         * testsuite/libgomp.c++/pr63248.C: New test.
13885 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
13887         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
13888         is not zero, but taskgroup->children is NULL and there are
13889         any task->children, schedule those instead of waiting.
13890         * testsuite/libgomp.c/depend-6.c: New test.
13891         * testsuite/libgomp.c/depend-7.c: New test.
13892         * testsuite/libgomp.c/depend-8.c: New test.
13893         * testsuite/libgomp.c/depend-9.c: New test.
13894         * testsuite/libgomp.c/depend-10.c: New test.
13896 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
13898         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
13899         (struct gomp_taskwait): New type.
13900         (struct gomp_task): Add taskwait and parent_depends_on, remove
13901         in_taskwait and taskwait_sem fields.
13902         (gomp_finish_task): Don't destroy taskwait_sem.
13903         * task.c (gomp_init_task): Don't init in_taskwait, instead init
13904         taskwait and parent_depends_on.
13905         (GOMP_task): For if (0) tasks with depend clause that depend on
13906         earlier tasks don't defer them, instead call
13907         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
13908         Initialize redundant_out field, for redundant out entries just
13909         move them at the end of linked list instead of removing them
13910         completely, and set redundant_out flag instead of redundant.
13911         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
13912         that task.
13913         (gomp_task_run_post_handle_dependers): If parent is in
13914         gomp_task_maybe_wait_for_dependencies and newly runnable task
13915         is not parent_depends_on, queue it in parent->children linked
13916         list after all runnable tasks with parent_depends_on set.
13917         Adjust for addition of taskwait indirection.
13918         (gomp_task_run_post_remove_parent): If parent is in
13919         gomp_task_maybe_wait_for_dependencies and task to be removed
13920         is parent_depends_on, decrement n_depend and if needed awake
13921         parent.  Adjust for addition of taskwait indirection.
13922         (GOMP_taskwait): Adjust for addition of taskwait indirection.
13923         (gomp_task_maybe_wait_for_dependencies): New function.
13924         * testsuite/libgomp.c/depend-5.c: New test.
13926 2014-07-13  Tobias Burnus  <burnus@net-b.de>
13928         * testsuite/libgomp.fortran/pr34020.f90: Make compile
13929         with TS 18508/Fortran 2015.
13931 2014-07-06  Marek Polacek  <polacek@redhat.com>
13933         PR c/6940
13934         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
13936 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
13938         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
13939         matches regex $lang_source_re, add $lang_include_flags to options.
13940         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
13941         * testsuite/libgomp.c++/c++.exp: Likewise.
13942         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
13943         and lang_include_flags instead of adding -fintrinsic-modules-path= to
13944         ALWAYS_CFLAGS.
13945         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
13947 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
13949         * testsuite/libgomp.fortran/fortran.exp: Explain
13950         gfortran-dg-runtest usage.
13952 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
13954         * testsuite/libgomp.fortran/simd5.f90: New test.
13955         * testsuite/libgomp.fortran/simd6.f90: New test.
13956         * testsuite/libgomp.fortran/simd7.f90: New test.
13958 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
13960         * testsuite/libgomp.c/for-2.c: Define SC to static for
13961         #pragma omp for simd testing.
13962         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
13963         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
13964         SC macro.
13965         * testsuite/libgomp.c/simd-14.c: New test.
13966         * testsuite/libgomp.c/simd-15.c: New test.
13967         * testsuite/libgomp.c/simd-16.c: New test.
13968         * testsuite/libgomp.c/simd-17.c: New test.
13969         * testsuite/libgomp.c++/for-10.C: Define SC to static for
13970         #pragma omp for simd testing.
13971         * testsuite/libgomp.c++/simd10.C: New test.
13972         * testsuite/libgomp.c++/simd11.C: New test.
13973         * testsuite/libgomp.c++/simd12.C: New test.
13974         * testsuite/libgomp.c++/simd13.C: New test.
13976         * testsuite/libgomp.fortran/aligned1.f03: New test.
13977         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
13978         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
13979         tasks with !$omp parallel !$omp single.
13980         * testsuite/libgomp.fortran/target8.f90: New test.
13981         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
13982         not to use trim in the combiner, instead call elemental function.
13983         (fn): New elemental function.
13984         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
13985         Make elemental.
13986         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
13987         omp_in): Likewise.
13988         * testsuite/libgomp.fortran/udr12.f90: New test.
13989         * testsuite/libgomp.fortran/udr13.f90: New test.
13990         * testsuite/libgomp.fortran/udr14.f90: New test.
13991         * testsuite/libgomp.fortran/udr15.f90: New test.
13993 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
13995         * omp_lib.f90.in (openmp_version): Set to 201307.
13996         * omp_lib.h.in (openmp_version): Likewise.
13997         * testsuite/libgomp.c/target-8.c: New test.
13998         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
13999         and inbranch clauses.
14000         * testsuite/libgomp.fortran/depend-3.f90: New test.
14001         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
14002         openmp_version.
14003         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14004         * testsuite/libgomp.fortran/target1.f90: New test.
14005         * testsuite/libgomp.fortran/target2.f90: New test.
14006         * testsuite/libgomp.fortran/target3.f90: New test.
14007         * testsuite/libgomp.fortran/target4.f90: New test.
14008         * testsuite/libgomp.fortran/target5.f90: New test.
14009         * testsuite/libgomp.fortran/target6.f90: New test.
14010         * testsuite/libgomp.fortran/target7.f90: New test.
14012 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
14014         PR fortran/60928
14015         * testsuite/libgomp.fortran/allocatable9.f90: New test.
14016         * testsuite/libgomp.fortran/allocatable10.f90: New test.
14017         * testsuite/libgomp.fortran/allocatable11.f90: New test.
14018         * testsuite/libgomp.fortran/allocatable12.f90: New test.
14019         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
14020         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
14021         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
14022         * testsuite/libgomp.fortran/associate1.f90: New test.
14023         * testsuite/libgomp.fortran/associate2.f90: New test.
14024         * testsuite/libgomp.fortran/procptr1.f90: New test.
14026 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
14028         * testsuite/libgomp.fortran/simd1.f90: New test.
14029         * testsuite/libgomp.fortran/udr1.f90: New test.
14030         * testsuite/libgomp.fortran/udr2.f90: New test.
14031         * testsuite/libgomp.fortran/udr3.f90: New test.
14032         * testsuite/libgomp.fortran/udr4.f90: New test.
14033         * testsuite/libgomp.fortran/udr5.f90: New test.
14034         * testsuite/libgomp.fortran/udr6.f90: New test.
14035         * testsuite/libgomp.fortran/udr7.f90: New test.
14036         * testsuite/libgomp.fortran/udr8.f90: New test.
14037         * testsuite/libgomp.fortran/udr9.f90: New test.
14038         * testsuite/libgomp.fortran/udr10.f90: New test.
14039         * testsuite/libgomp.fortran/udr11.f90: New test.
14041 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
14043         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
14044         vect_simd_clones effective target.
14045         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
14047 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
14049         PR middle-end/61252
14050         * testsuite/libgomp.c++/simd-9.C: New test.
14052 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
14054         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
14055         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
14056         texts according to their @menu entry positions.
14058 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
14060         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
14061         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
14062         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
14063         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
14064         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
14065         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
14066         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
14067         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
14068         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
14069         * testsuite/libgomp.fortran/depend-1.f90: New test.
14070         * testsuite/libgomp.fortran/depend-2.f90: New test.
14071         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
14072         * testsuite/libgomp.fortran/simd1.f90: New test.
14073         * testsuite/libgomp.fortran/simd2.f90: New test.
14074         * testsuite/libgomp.fortran/simd3.f90: New test.
14075         * testsuite/libgomp.fortran/simd4.f90: New test.
14076         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
14078 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
14080         * testsuite/libgomp.c/simd-10.c: New test.
14081         * testsuite/libgomp.c/simd-11.c: New test.
14082         * testsuite/libgomp.c/simd-12.c: New test.
14083         * testsuite/libgomp.c/simd-13.c: New test.
14085 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
14087         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
14088         atomic type clauses in any order and optional comma in between.
14089         * testsuite/libgomp.c++/atomic-15.C: Likewise.
14090         * testsuite/libgomp.c/atomic-17.c: Likewise.
14092         * testsuite/libgomp.c/simd-7.c: New test.
14093         * testsuite/libgomp.c/simd-8.c: New test.
14094         * testsuite/libgomp.c/simd-9.c: New test.
14095         * testsuite/libgomp.c/loop-16.c: New test.
14097 2014-04-02  Richard Henderson  <rth@redhat.com>
14099         * config/linux/futex.h (futex_wait): Get error value from errno.
14100         (futex_wake): Likewise.
14102 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
14104         PR c++/60331
14105         * testsuite/libgomp.c++/udr-11.C: New test.
14106         * testsuite/libgomp.c++/udr-12.C: New test.
14107         * testsuite/libgomp.c++/udr-13.C: New test.
14108         * testsuite/libgomp.c++/udr-14.C: New test.
14109         * testsuite/libgomp.c++/udr-15.C: New test.
14110         * testsuite/libgomp.c++/udr-16.C: New test.
14111         * testsuite/libgomp.c++/udr-17.C: New test.
14112         * testsuite/libgomp.c++/udr-18.C: New test.
14113         * testsuite/libgomp.c++/udr-19.C: New test.
14115 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14117         Update copyright years
14119 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
14121         * hashtab.h: Use the standard form for the copyright notice.
14123 2014-01-02  Tobias Burnus  <burnus@net-b.de>
14125         * libgomp.texi: Bump @copying's copyright year.
14127 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
14129         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
14130         alloca () with __builtin_alloca ().
14131         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
14132         * testsuite/libgomp.c/lock-3.c: Likewise.
14133         * testsuite/libgomp.c/pr48591.c: Likewise.
14135 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
14137         PR testsuite/59534
14138         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
14139         comparisons.
14141 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
14143         PR libgomp/58756
14144         * testsuite/libgomp.c/pr58756.c: New test.
14146 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
14148         PR libgomp/59467
14149         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
14150         !$omp parallel.
14152 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
14154         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
14155         ALWAYS_CFLAGS.
14156         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
14157         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
14158         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
14159         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
14160         Likewise.
14162         * libgomp_g.h: Include <stddef.h> for size_t.
14164         * libgomp.spec.in: Update comment about libgomp's dependencies.
14165         * configure.ac: Likewise.
14166         * configure: Regenerate.
14168 2013-10-16  Tobias Burnus  <burnus@net-b.de>
14170         * libgomp.texi: (Runtime Library Routines): Update references for
14171         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
14172         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
14173         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
14174         (Environment Variables): Update references for OpenMP 4.0. Add
14175         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
14176         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
14177         order.
14179 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
14181         * env.c (parse_bind_var): Initialize value to avoid
14182         (false positive) warning.
14184 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
14186         PR libgomp/58691
14187         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
14188         to check variable.
14189         (gomp_init_num_threads): Move i variable declaration into
14190         #ifdef CPU_ALLOC_SIZE block.
14191         * config/linux/affinity.c (gomp_affinity_init_level): Test
14192         gomp_places_list_len == 0 rather than gomp_places_list == 0
14193         when checking for topology reading error.
14194         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
14195         * env.c (parse_affinity): Add ignore argument, if true, don't populate
14196         gomp_places_list, only parse env var and always return false.
14197         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
14198         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
14199         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
14200         and either of these variables were parsed correctly into a places
14201         list.
14203 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
14204             Jakub Jelinek  <jakub@redhat.com>
14206         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
14207         of 5 loopfn matches.
14208         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14209         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14210         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14211         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14212         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14213         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14214         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14215         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14217 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
14219         * Makefile.am (omp_lib.mod): Streamline rule.
14220         * Makefile.in: Regenerate.
14222         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
14223         exceptions.
14225         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
14226         * testsuite/libgomp.fortran/lib1.f90: Likewise.
14227         * testsuite/libgomp.fortran/lib2.f: Likewise.
14228         * testsuite/libgomp.fortran/lib3.f: Likewise.
14230         * configure.ac: Typo fix.
14231         * configure: Regenerate.
14233         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
14234         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14236         * omp.h.in: Don't touch the user's namespace.
14238 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
14239             Tobias Burnus  <burnus@net-b.de>
14240             Richard Henderson  <rth@redhat.com>
14242         * target.c: New file.
14243         * Makefile.am (libgomp_la_SOURCES): Add target.c.
14244         * Makefile.in: Regenerated.
14245         * libgomp_g.h (GOMP_task): Add depend argument.
14246         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14247         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14248         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
14249         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14250         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14251         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
14252         GOMP_taskgroup_start, GOMP_taskgroup_end,
14253         GOMP_parallel_sections): New prototypes.
14254         * fortran.c (omp_is_initial_device): Add ialias_redirect.
14255         (omp_is_initial_device_): New function.
14256         (ULP, STR1, STR2, ialias_redirect): Removed.
14257         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
14258         omp_set_default_device_8_, omp_get_default_device_,
14259         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
14260         functions.
14261         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14262         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14263         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
14264         @@GOMP_4.0.
14265         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
14266         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
14267         omp_set_default_device, omp_set_default_device_,
14268         omp_set_default_device_8_, omp_get_default_device,
14269         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
14270         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
14271         omp_get_team_num_): Export @@OMP_4.0.
14272         * team.c (struct gomp_thread_start_data): Add place field.
14273         (gomp_thread_start): Clear thr->thread_pool and
14274         thr->task before returning.  Use gomp_team_barrier_wait_final
14275         instead of gomp_team_barrier_wait.  Initialize thr->place.
14276         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
14277         team_cancelled and task_queued_count fields.
14278         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
14279         before calling pthread_exit.
14280         (gomp_free_thread): No longer static.  Use
14281         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
14282         (gomp_team_start): Add flags argument.  Set
14283         thr->thread_pool->threads_busy to nthreads immediately after creating
14284         new pool.  Use gomp_managed_threads_lock instead of
14285         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
14286         (gomp_team_end): Use gomp_managed_threads_lock instead of
14287         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
14288         of gomp_team_barrier_wait.  If team->team_cancelled, call
14289         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
14290         rather than thr->ts.work_share.
14291         (initialize_team): Don't call gomp_sem_init here.
14292         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
14293         caller.
14294         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
14295         * env.c (gomp_global_icv): Add default_device_var, target_data and
14296         bind_var initializers.
14297         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14298         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14299         gomp_places_list_len): New variables.
14300         (parse_bind_var, parse_one_place, parse_places_var): New functions.
14301         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
14302         sized places.
14303         (gomp_cancel_var): New global variable.
14304         (parse_int): New function.
14305         (handle_omp_display_env): New function.
14306         (initialize_env): Use it.  Initialize default_device_var.
14307         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
14308         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
14309         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
14310         been successfully parsed (and call gomp_init_affinity in that case).
14311         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14312         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14313         omp_get_team_num, omp_is_initial_device): New functions.
14314         * libgomp.h: Include stdlib.h.
14315         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
14316         Define.
14317         (struct target_mem_desc): Forward declare.
14318         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
14319         and thread_limit_var fields.
14320         (gomp_get_num_devices): New prototype.
14321         (gomp_cancel_var): New extern decl.
14322         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
14323         team_cancelled and task_queued_count fields.  Add comments about
14324         task_{,queued_,running_}count.
14325         (gomp_cancel_kind): New enum.
14326         (gomp_work_share_end_cancel): New prototype.
14327         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
14328         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
14329         and depend fields.
14330         (struct gomp_taskgroup): New type.
14331         (struct gomp_task_depend_entry,
14332         struct gomp_dependers_vec): New types.
14333         (gomp_finish_task): Free depend_hash if non-NULL.
14334         (struct gomp_team_state): Add place_partition_off
14335         and place_partition_len fields.
14336         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14337         gomp_places_list_len): New extern decls.
14338         (struct gomp_thread): Add place field.
14339         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14340         (gomp_init_thread_affinity): Add place argument.
14341         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14342         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14343         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14344         gomp_affinity_init_level, gomp_affinity_print_place): New
14345         prototypes.
14346         (gomp_team_start): Add flags argument.
14347         (gomp_thread_limit_var, gomp_remaining_threads_count,
14348         gomp_remaining_threads_lock): Remove.
14349         (gomp_managed_threads_lock): New variable.
14350         (struct gomp_thread_pool): Add threads_busy field.
14351         (gomp_free_thread): New prototype.
14352         * task.c: Include hashtab.h.
14353         (hash_entry_type): New typedef.
14354         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
14355         (gomp_init_task): Clear dependers, depend_hash, depend_count,
14356         copy_ctors_done and taskgroup fields.
14357         (GOMP_task): Add depend argument, handle depend clauses.  If
14358         gomp_team_barrier_cancelled or if it's taskgroup has been
14359         cancelled, don't queue or start new tasks.  Set copy_ctors_done
14360         field if needed.  Initialize taskgroup field.  If copy_ctors_done
14361         and already cancelled, don't discard the task.  If taskgroup is
14362         non-NULL, enqueue the task into taskgroup queue.  Increment
14363         num_children field in taskgroup.  Increment task_queued_count.
14364         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
14365         gomp_task_run_post_remove_taskgroup): New inline functions.
14366         (gomp_task_run_post_handle_depend_hash,
14367         gomp_task_run_post_handle_dependers,
14368         gomp_task_run_post_handle_depend): New functions.
14369         (GOMP_taskwait): Use them.  If more than one new tasks
14370         have been queued, wake other threads if needed.
14371         (gomp_barrier_handle_tasks): Likewise.  If
14372         gomp_team_barrier_cancelled, don't start any new tasks, just free
14373         all tasks.
14374         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
14375         * omp_lib.f90.in
14376         (omp_proc_bind_kind, omp_proc_bind_false,
14377         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14378         omp_proc_bind_spread): New params.
14379         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14380         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14381         omp_get_team_num, omp_is_initial_device): New interfaces.
14382         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
14383         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
14384         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
14385         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
14386         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
14387         useless use omp_lib_kinds.
14388         * omp.h.in (omp_proc_bind_t): New typedef.
14389         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14390         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14391         omp_get_team_num, omp_is_initial_device): New prototypes.
14392         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
14393         through to gomp_team_start.
14394         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
14395         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
14396         Adjust gomp_parallel_loop_start callers.
14397         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14398         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14399         GOMP_loop_end_cancel): New functions.
14400         (GOMP_parallel_end): Add ialias_redirect.
14401         * hashtab.h: New file.
14402         * libgomp.texi (Environment Variables): Minor cleanup,
14403         update section refs to OpenMP 4.0rc2.
14404         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
14405         environment variables.
14406         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
14407         team->work_shares_to_free to thr->ts.work_share before calling
14408         free_work_share.
14409         (gomp_work_share_end_cancel): New function.
14410         * config/linux/proc.c: Include errno.h.
14411         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
14412         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
14413         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
14414         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
14415         gomp_cpuset_size is sizeof (cpu_set_t).
14416         (gomp_init_num_threads): Initialize gomp_cpuset_size,
14417         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
14418         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
14419         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
14420         contain any logical CPUs.
14421         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
14422         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
14423         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
14424         pthread_getaffinity_np.  Check gomp_places_list instead of
14425         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
14426         * config/linux/bar.c (gomp_barrier_wait_end,
14427         gomp_barrier_wait_last): Use BAR_* defines.
14428         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
14429         from state where needed.  Set work_share_cancelled to 0 on last
14430         thread.
14431         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
14432         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
14433         functions.
14434         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
14435         Add cpusetsize argument.
14436         (gomp_cpuset_size, gomp_cpusetp): Declare.
14437         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
14438         (affinity_counter): Remove.
14439         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
14440         if CPU_ALLOC_SIZE isn't defined.
14441         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
14442         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
14443         bind current thread to the first place.
14444         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
14445         pthread_setaffinity_np to gomp_places_list[place].
14446         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14447         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14448         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14449         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
14450         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14451         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14452         (gomp_barrier_t): Add awaited_final field.
14453         (gomp_barrier_init): Initialize awaited_final field.
14454         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
14455         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
14456         prototypes.
14457         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
14458         defines.
14459         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
14460         gomp_team_barrier_cancelled): New inline functions.
14461         (gomp_barrier_last_thread,
14462         gomp_team_barrier_set_task_pending,
14463         gomp_team_barrier_clear_task_pending,
14464         gomp_team_barrier_set_waiting_for_tasks,
14465         gomp_team_barrier_waiting_for_tasks,
14466         gomp_team_barrier_done): Use BAR_* defines.
14467         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
14468         (gomp_barrier_wait_end): Use BAR_* defines.
14469         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
14470         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
14471         Use BAR_* defines.
14472         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
14473         gomp_team_barrier_cancel): New functions.
14474         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
14475         argument.
14476         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14477         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14478         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14479         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
14480         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14481         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14482         (gomp_barrier_t): Add cancellable field.
14483         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
14484         gomp_team_barrier_cancel): New prototypes.
14485         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
14486         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
14487         gomp_team_barrier_cancelled): New inline functions.
14488         (gomp_barrier_wait_start, gomp_barrier_last_thread,
14489         gomp_team_barrier_set_task_pending,
14490         gomp_team_barrier_clear_task_pending,
14491         gomp_team_barrier_set_waiting_for_tasks,
14492         gomp_team_barrier_waiting_for_tasks,
14493         gomp_team_barrier_done): Use BAR_* defines.
14494         * barrier.c (GOMP_barrier_cancel): New function.
14495         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
14496         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14497         omp_proc_bind_spread): New params.
14498         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14499         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14500         omp_get_team_num, omp_is_initial_device): New externals.
14501         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
14502         New functions.
14503         (gomp_resolve_num_threads): Adjust for thread_limit now being in
14504         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
14505         infinity.  If not nested, just return minimum of max_num_threads
14506         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
14507         to the returned value.  Otherwise, don't update atomically
14508         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
14509         (GOMP_parallel_end): Adjust for thread_limit now being in
14510         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
14511         infinity.  Adjust threads_busy in the pool rather than
14512         gomp_remaining_threads_count.  Remember team->nthreads and call
14513         gomp_team_end before adjusting threads_busy, if not nested
14514         afterwards, just set it to 1 non-atomically.  Add ialias.
14515         (GOMP_parallel_start): Adjust gomp_team_start caller.
14516         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
14517         * testsuite/libgomp.c/affinity-1.c: New test.
14518         * testsuite/libgomp.c/atomic-15.c: New test.
14519         * testsuite/libgomp.c/atomic-16.c: New test.
14520         * testsuite/libgomp.c/atomic-17.c: New test.
14521         * testsuite/libgomp.c/cancel-for-1.c: New test.
14522         * testsuite/libgomp.c/cancel-for-2.c: New test.
14523         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
14524         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
14525         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
14526         * testsuite/libgomp.c/cancel-sections-1.c: New test.
14527         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
14528         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
14529         * testsuite/libgomp.c/depend-1.c: New test.
14530         * testsuite/libgomp.c/depend-2.c: New test.
14531         * testsuite/libgomp.c/depend-3.c: New test.
14532         * testsuite/libgomp.c/depend-4.c: New test.
14533         * testsuite/libgomp.c/for-1.c: New test.
14534         * testsuite/libgomp.c/for-1.h: New file.
14535         * testsuite/libgomp.c/for-2.c: New test.
14536         * testsuite/libgomp.c/for-2.h: New file.
14537         * testsuite/libgomp.c/for-3.c: New test.
14538         * testsuite/libgomp.c/pr58392.c: New test.
14539         * testsuite/libgomp.c/simd-1.c: New test.
14540         * testsuite/libgomp.c/simd-2.c: New test.
14541         * testsuite/libgomp.c/simd-3.c: New test.
14542         * testsuite/libgomp.c/simd-4.c: New test.
14543         * testsuite/libgomp.c/simd-5.c: New test.
14544         * testsuite/libgomp.c/simd-6.c: New test.
14545         * testsuite/libgomp.c/target-1.c: New test.
14546         * testsuite/libgomp.c/target-2.c: New test.
14547         * testsuite/libgomp.c/target-3.c: New test.
14548         * testsuite/libgomp.c/target-4.c: New test.
14549         * testsuite/libgomp.c/target-5.c: New test.
14550         * testsuite/libgomp.c/target-6.c: New test.
14551         * testsuite/libgomp.c/target-7.c: New test.
14552         * testsuite/libgomp.c/taskgroup-1.c: New test.
14553         * testsuite/libgomp.c/thread-limit-1.c: New test.
14554         * testsuite/libgomp.c/thread-limit-2.c: New test.
14555         * testsuite/libgomp.c/thread-limit-3.c: New test.
14556         * testsuite/libgomp.c/udr-1.c: New test.
14557         * testsuite/libgomp.c/udr-2.c: New test.
14558         * testsuite/libgomp.c/udr-3.c: New test.
14559         * testsuite/libgomp.c++/affinity-1.C: New test.
14560         * testsuite/libgomp.c++/atomic-10.C: New test.
14561         * testsuite/libgomp.c++/atomic-11.C: New test.
14562         * testsuite/libgomp.c++/atomic-12.C: New test.
14563         * testsuite/libgomp.c++/atomic-13.C: New test.
14564         * testsuite/libgomp.c++/atomic-14.C: New test.
14565         * testsuite/libgomp.c++/atomic-15.C: New test.
14566         * testsuite/libgomp.c++/cancel-for-1.C: New test.
14567         * testsuite/libgomp.c++/cancel-for-2.C: New test.
14568         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
14569         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
14570         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
14571         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
14572         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
14573         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
14574         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
14575         * testsuite/libgomp.c++/cancel-test.h: New file.
14576         * testsuite/libgomp.c++/for-9.C: New test.
14577         * testsuite/libgomp.c++/for-10.C: New test.
14578         * testsuite/libgomp.c++/for-11.C: New test.
14579         * testsuite/libgomp.c++/simd-1.C: New test.
14580         * testsuite/libgomp.c++/simd-2.C: New test.
14581         * testsuite/libgomp.c++/simd-3.C: New test.
14582         * testsuite/libgomp.c++/simd-4.C: New test.
14583         * testsuite/libgomp.c++/simd-5.C: New test.
14584         * testsuite/libgomp.c++/simd-6.C: New test.
14585         * testsuite/libgomp.c++/simd-7.C: New test.
14586         * testsuite/libgomp.c++/simd-8.C: New test.
14587         * testsuite/libgomp.c++/target-1.C: New test.
14588         * testsuite/libgomp.c++/target-2.C: New test.
14589         * testsuite/libgomp.c++/target-2-aux.cc: New file.
14590         * testsuite/libgomp.c++/target-3.C: New test.
14591         * testsuite/libgomp.c++/taskgroup-1.C: New test.
14592         * testsuite/libgomp.c++/udr-1.C: New test.
14593         * testsuite/libgomp.c++/udr-2.C: New test.
14594         * testsuite/libgomp.c++/udr-3.C: New test.
14595         * testsuite/libgomp.c++/udr-4.C: New test.
14596         * testsuite/libgomp.c++/udr-5.C: New test.
14597         * testsuite/libgomp.c++/udr-6.C: New test.
14598         * testsuite/libgomp.c++/udr-7.C: New test.
14599         * testsuite/libgomp.c++/udr-8.C: New test.
14600         * testsuite/libgomp.c++/udr-9.C: New test.
14602 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
14604         PR testsuite/57605
14605         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
14606         ALWAYS_CFLAGS.
14608 2013-09-20  Alan Modra  <amodra@gmail.com>
14610         * configure: Regenerate.
14612 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14614         * testsuite/libgomp.c/sections-2.c: New test.
14616 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14618         * testsuite/libgomp.fortran/strassen.f90:
14619         Add dg-skip-if aarch64_tiny.
14621 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
14622             Cesar Philippidis  <cesar@codesourcery.com>
14624         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
14625         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
14626         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
14627         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14628         * testsuite/libgomp.graphite/graphite.exp: Likewise.
14629         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
14630         Use dg-runtest rather than gfortran-dg-runtest.
14632 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
14634         * testsuite/libgomp.c/icv-2.c: Extend current handling of
14635         Linux-based x86 systems to cover all GNU systems.
14636         * testsuite/libgomp.c/lock-3.c: Likewise.
14637         * testsuite/libgomp.c/pr48591.c: Likewise.
14639 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
14641         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
14642         GNU/Hurd, as done for Linux-based systems.
14644         * config/posix/ptrlock.h: Fix comment.
14646 2013-05-27  Tobias Burnus  <burnus@net-b.de>
14648         PR fortran/57423
14649         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
14650         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
14651         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
14652         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
14653         omp_destroy_nest_lock): Correct arguments to match the one in
14654         the OpenMP spec.
14655         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
14656         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
14657         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
14658         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
14660 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
14662         * testsuite/libgomp.c/loop-13.c: New test.
14663         * testsuite/libgomp.c/loop-14.c: New test.
14664         * testsuite/libgomp.c/loop-15.c: New test.
14665         * testsuite/libgomp.c++/loop-13.C: New test.
14666         * testsuite/libgomp.c++/loop-14.C: New test.
14667         * testsuite/libgomp.c++/loop-15.C: New test.
14669 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
14671         PR middle-end/56217
14672         * testsuite/libgomp.c++/pr56217.C: New test.
14674 2013-02-01  Alan Modra  <amodra@gmail.com>
14676         * task.c (GOMP_task, GOMP_taskwait): Comment.
14678 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
14679             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
14681         PR libgomp/55561
14682         * config/linux/wait.h (do_spin): Use atomic load for addr.
14683         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
14684         for intptr and ptrlock.
14685         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
14686         for ptrlock.
14688 2013-01-22  Alan Modra  <amodra@gmail.com>
14690         PR libgomp/51376
14691         PR libgomp/56073
14692         * task.c (GOMP_task): Revert 2011-12-09 change.
14693         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
14694         barrier to read task->children..
14695         (gomp_barrier_handle_tasks): ..and matching atomic store with
14696         release barrier here when setting parent->children to NULL.
14698 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
14699             Tobias Burnus  <burnus@net-b.de>
14701         PR driver/55884
14702         * testsuite/libgomp.fortran/fortran.exp: Use
14703         -fintrinsic-modules-path= instead of
14704         -fintrinsic-modules-path.
14706 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
14708         Update copyright years.
14710 2012-12-19  Tobias Burnus  <burnus@net-b.de>
14712         * testsuite/libgomp.fortran/fortran.exp: Set
14713         -fintrinsic-modules-path.
14715 2012-12-19  Tobias Burnus  <burnus@net-b.de>
14717         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
14718         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
14720 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
14722         PR libgomp/55411
14723         * team.c (gomp_free_thread): Decrease gomp_managed_threads
14724         if pool had any threads_used.
14726 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
14728         * testsuite/libgomp.c++/pr24455.C: Use
14729         -Wl,-undefined,dynamic_lookup on darwin.
14731 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
14733         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
14735 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
14737         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
14739 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
14740             Jim MacArthur  <jim.macarthur@arm.com>
14741             Marcus Shawcroft  <marcus.shawcroft@arm.com>
14742             Nigel Stephens  <nigel.stephens@arm.com>
14743             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14744             Richard Earnshaw  <rearnsha@arm.com>
14745             Sofiane Naci  <sofiane.naci@arm.com>
14746             Stephen Thomas  <stephen.thomas@arm.com>
14747             Tejas Belagod  <tejas.belagod@arm.com>
14748             Yufeng Zhang  <yufeng.zhang@arm.com>
14750         * configure.tgt: Add AArch64.
14752 2012-10-04  Jason Merrill  <jason@redhat.com>
14754         * testsuite/libgomp.c++/tls-init1.C: New.
14756 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
14758         * configure: Regenerated.
14760 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
14762         * config/linux/mips/futex.h (sys_futex0): Change to static
14763         function with noinline, nomips16 attributes under MIPS16. Adjust
14764         asm statement to place 'li v0,SYS_futex' immediately before
14765         syscall insn.
14767 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
14769         * libgomp.texi (Library Index): Renamed from "Index" to prevent
14770         conflict with index.html on case-insensitive file systems.
14772 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
14774         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
14775         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
14777 2012-07-02  Richard Guenther  <rguenther@suse.de>
14778             Michael Matz  <matz@suse.de>
14779             Tobias Grosser <tobias@grosser.es>
14780             Sebastian Pop <sebpop@gmail.com>
14782         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
14783         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14784         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14785         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14787 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
14789         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
14791 2012-06-22  Richard Guenther  <rguenther@suse.de>
14793         Merge from graphite branch
14794         2012-01-13  Tobias Grosser  <tobias@grosser.es>
14796         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
14797         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14799 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
14801         PR middle-end/53580
14802         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
14803         use GOMP_barrier () call instead.
14804         * testsuite/libgomp.c/pr26943-3.c: Likewise.
14805         * testsuite/libgomp.c/pr26943-4.c: Likewise.
14806         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
14807         call GOMP_barrier instead.
14808         * testsuite/libgomp.fortran/vla5.f90: Likewise.
14810 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
14812         PR libgomp/52993
14813         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
14814         argument to memset call.
14816 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14818         * configure: Regenerated.
14820 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14822         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
14824 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
14826         PR bootstrap/52812
14827         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
14829 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
14831         PR middle-end/52547
14832         * testsuite/libgomp.c/pr52547.c: New test.
14834 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14836         * testsuite/lib/libgomp.exp: load fortran-modules.exp
14838 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14840         * configure.tgt (mips-sgi-irix6*): Remove.
14842 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14844         * configure.tgt (alpha*-dec-osf*): Remove.
14846         * config/osf/sem.h: Remove.
14847         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
14849 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
14851         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
14853 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14855         PR libstdc++/52188
14856         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
14857         Remove ENABLE_SYMVERS_SOL2.
14858         * configure: Regenerate.
14859         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
14860         (PREPROCESS): New variable.
14861         (libgomp.ver): New target.
14862         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
14863         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
14864         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
14865         Use libgomp.ver.
14866         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
14867         * Makefile.in: Regenerate.
14869 2012-02-14  Walter Lee  <walt@tilera.com>
14871         * configure.tgt: Handle tilegx and tilepro.
14872         * config/linux/tile/futex.h: New file.
14874 2012-02-08  Richard Guenther  <rguenther@suse.de>
14876         PR tree-optimization/46886
14877         * testsuite/libgomp.c/pr46886.c: New testcase.
14879 2012-01-25  Matthias Klose  <doko@ubuntu.com>
14881         * config/linux/arm: Remove empty directory.
14882         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
14884 2011-12-09  Alan Modra  <amodra@gmail.com>
14886         PR libgomp/51376
14887         * task.c (GOMP_taskwait): Don't access task->children outside of
14888         task_lock mutex region.
14889         (GOMP_task): Likewise.
14891 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
14893         PR libgomp/51132
14894         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
14895         to file scope.
14896         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14897         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14898         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14899         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14900         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14902 2011-12-02  Alan Modra  <amodra@gmail.com>
14904         * config/linux/affinity.c: Use atomic rather than sync builtin.
14905         * config/linux/lock.c: Likewise.
14906         * config/linux/ptrlock.h: Likewise.
14907         * config/linux/ptrlock.c: Likewise.
14908         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
14909         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
14910         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
14911         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
14912         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
14913         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
14914         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
14915         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
14916         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
14917         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
14919 2011-11-30  Alan Modra  <amodra@gmail.com>
14921         PR libgomp/51298
14922         * config/linux/bar.h: Use atomic rather than sync builtins.
14923         * config/linux/bar.c: Likewise.  Add missing acquire
14924         synchronisation on generation field.
14925         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
14926         double unlock.
14928 2011-11-30  Alan Modra  <amodra@gmail.com>
14930         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
14931         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
14932         * config/linux/mutex.h: Use atomic rather than sync builtins.
14933         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
14934         * config/linux/omp-lock.h: Comment fix.
14935         * config/linux/arm/mutex.h: Delete.
14936         * config/linux/powerpc/mutex.h: Delete.
14937         * config/linux/ia64/mutex.h: Delete.
14938         * config/linux/mips/mutex.h: Delete.
14940 2011-11-30  Alan Modra  <amodra@gmail.com>
14942         PR libgomp/51249
14943         * config/linux/sem.h: Rewrite.
14944         * config/linux/sem.c: Rewrite.
14946 2011-11-28  Richard Henderson  <rth@redhat.com>
14948         * libgomp.h (enum memmodel): New.
14950 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
14952         * configure: Regenerate.
14954 2011-10-10  Matthias Klose  <doko@ubuntu.com>
14956         * config/posix95: Remove empty directory.
14958 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
14960         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
14962 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
14964         PR fortran/49792
14965         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
14966         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
14968 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14970         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
14972 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14974         PR libgomp/49965
14975         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
14977 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
14979         * config/linux/proc.h: New.
14980         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
14981         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
14982         (gomp_init_num_threads): Update call to cpuset_popcount.
14983         (get_num_procs): Ditto.
14984         * config/linux/affinity.c (gomp_init_affinity): Call
14985         gomp_cpuset_popcount.
14987 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
14989         PR fortran/42041
14990         PR fortran/46752
14991         * omp.h.in (omp_in_final): New prototype.
14992         * omp_lib.f90.in (omp_in_final): New interface.
14993         (omp_integer_kind, omp_logical_kind): Remove
14994         and replace all its uses in the module with 4.
14995         (openmp_version): Change to 201107.
14996         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
14997         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
14998         kind for the parameters.
14999         (omp_in_final): New external.
15000         (openmp_version): Change to 201107.
15001         * task.c (omp_in_final): New function.
15002         (gomp_init_task): Initialize final_task.
15003         (GOMP_task): Remove unused attribute from flags.  Handle final
15004         tasks.
15005         (GOMP_taskyield): New function.
15006         (omp_in_final): Return true if if (false) or final (true) task
15007         or descendant of final (true).
15008         * fortran.c (omp_in_final_): New function.
15009         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
15010         (GOMP_3.0): Export GOMP_taskyield.
15011         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
15012         variables.
15013         (parse_unsigned_long_list): New function.
15014         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
15015         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
15016         even if parse_affinity returned false.
15017         * config/linux/affinity.c (gomp_init_affinity): Handle
15018         gomp_cpu_affinity_len == 0.
15019         * libgomp_g.h (GOMP_taskyield): New prototype.
15020         * libgomp.h (struct gomp_task): Add final_task field.
15021         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
15022         * team.c (gomp_team_start): Override new task's nthreads_var icv
15023         if list form OMP_NUM_THREADS has been used and it has value for
15024         the new nesting level.
15026         * testsuite/libgomp.c/atomic-11.c: New test.
15027         * testsuite/libgomp.c/atomic-12.c: New test.
15028         * testsuite/libgomp.c/atomic-13.c: New test.
15029         * testsuite/libgomp.c/atomic-14.c: New test.
15030         * testsuite/libgomp.c/reduction-6.c: New test.
15031         * testsuite/libgomp.c/task-5.c: New test.
15032         * testsuite/libgomp.c++/atomic-2.C: New test.
15033         * testsuite/libgomp.c++/atomic-3.C: New test.
15034         * testsuite/libgomp.c++/atomic-4.C: New test.
15035         * testsuite/libgomp.c++/atomic-5.C: New test.
15036         * testsuite/libgomp.c++/atomic-6.C: New test.
15037         * testsuite/libgomp.c++/atomic-7.C: New test.
15038         * testsuite/libgomp.c++/atomic-8.C: New test.
15039         * testsuite/libgomp.c++/atomic-9.C: New test.
15040         * testsuite/libgomp.c++/task-8.C: New test.
15041         * testsuite/libgomp.c++/reduction-4.C: New test.
15042         * testsuite/libgomp.fortran/allocatable7.f90: New test.
15043         * testsuite/libgomp.fortran/allocatable8.f90: New test.
15044         * testsuite/libgomp.fortran/crayptr3.f90: New test.
15045         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
15046         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
15047         * testsuite/libgomp.fortran/pointer1.f90: New test.
15048         * testsuite/libgomp.fortran/pointer2.f90: New test.
15049         * testsuite/libgomp.fortran/task4.f90: New test.
15051 2011-08-02  Tobias Burnus  <burnus@net-b.de>
15053         * libgomp.texi: Update OpenMP spec references to 3.1.
15054         (omp_in_final,OMP_PROC_BIND): New sections.
15055         (OMP_NUM_THREADS): Document that the value can be now a list.
15056         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
15058 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
15060         * config/linux/x86/futex.h: Check __x86_64__ instead of
15061         __LP64__.
15063 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
15065         PR middle-end/49897
15066         PR middle-end/49898
15067         * testsuite/libgomp.c/pr49897-1.c: New test.
15068         * testsuite/libgomp.c/pr49897-2.c: New test.
15069         * testsuite/libgomp.c/pr49898-1.c: New test.
15070         * testsuite/libgomp.c/pr49898-2.c: New test.
15072 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
15074         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
15075         for ia32 instead of ilp32.
15077         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
15078         * testsuite/libgomp.c/atomic-6.c: Likewise.
15080 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
15082         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
15083         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
15085 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15087         PR libgomp/45351
15088         * config/osf/sem.h: New file.
15089         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
15091 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15093         PR target/49541
15094         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
15095         ldflags.
15097 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
15099         * config/linux/wait.h (do_spin): New inline, largely copied
15100         from do_wait, just don't do futex_wait here, instead return true if
15101         it should be done.
15102         (do_wait): Implement using do_spin.
15103         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
15104         to prototype.
15105         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15106         __sync_bool_compare_and_swap, pass the oldval to
15107         gomp_mutex_lock_slow.
15108         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
15109         If all mutex contenders are just spinning and not sleeping, don't
15110         change state to 2 unnecessarily.  Optimize the loop when state has
15111         already become 2 to use just one atomic operation per loop instead
15112         of two.
15113         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
15114         to prototype.
15115         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15116         __sync_bool_compare_and_swap, pass the oldval to
15117         gomp_mutex_lock_slow.
15119 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
15121         PR libgomp/49490
15122         * iter.c (gomp_iter_static_next): For chunk size 0
15123         only use n ceil/ nthreads size for the first
15124         n % nthreads threads in the team instead of
15125         all threads except for the last few ones which
15126         get less work or none at all.
15127         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
15128         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
15129         chunk argument, set run_sched_modifier to 0 for static
15130         resp. 1 for other kinds.  If chunk argument is 0
15131         and not static, set value to 1.
15133 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
15135         PR c++/49043
15136         * testsuite/libgomp.c++/pr49043.C: New test.
15138         PR c++/48869
15139         * testsuite/libgomp.c++/pr48869.C: New test.
15141 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
15143         PR fortran/48894
15144         * fortran.c: Include limits.h.
15145         (TO_INT): Define.
15146         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
15147         *set.
15148         (omp_set_num_threads_8_, omp_set_schedule_8_,
15149         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
15150         omp_get_team_size_8_): Use TO_INT macro.
15151         * testsuite/libgomp.fortran/pr48894.f90: New test.
15153 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
15155         PR middle-end/48591
15156         * testsuite/libgomp.c/pr48591.c: New test.
15158 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15160         PR bootstrap/48135
15161         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
15162         * configure: Regenerate.
15164 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
15166         PR fortran/47886
15167         * testsuite/libgomp.fortran/task3.f90: New test.
15169 2011-02-24  Tobias Burnus  <burnus@net-b.de>
15171         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
15173 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
15175         PR libgomp/47854
15176         * libgomp.texi (omp_get_wtime): Don't say time in the past
15177         must be Unix Epoch.
15179 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
15181         PR libgomp/47804
15182         * testsuite/libgomp.fortran/fortran.exp: Check for both
15183         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
15184         but $blddir != "", still append ${blddir}/${lang_library_path}
15185         to ld_library_path.
15187 2011-02-16  Tobias Burnus  <burnus@net-b.de>
15189         PR libgomp/47758
15190         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
15191         of libquadmath.a before adding its libpath to ldflags.
15193 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
15195         PR libgomp/47731
15196         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
15197         to FUTEX_WAIT futex syscall.
15198         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
15200 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15202         * configure: Regenerate.
15204 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
15206         PR libstdc++/36104
15207         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
15209 2011-01-16  Gerald Pfeifer
15211         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
15213 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
15215         PR fortran/46874
15216         * libgomp.fortran/allocatable6.f90: New test.
15218 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15220         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
15221         * configure: Regenerate.
15223 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
15225         PR target/40125
15226         PR lto/46695
15227         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
15228         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
15229         * aclocal.m4: Regenerate.
15230         * configure: Regenerate.
15231         * Makefile.in: Regenerate.
15232         * testsuite/Makefile.in: Regenerate.
15234 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
15236         PR fortran/46753
15237         * libgomp.fortran/pr46753.f90: New test.
15239         PR libgomp/43706
15240         * env.c (initialize_env): Default to spin count 300000
15241         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
15242         is specified.
15244         PR libgomp/45240
15245         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
15246         at the end if sync builtins aren't supported.
15248 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15250         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
15252 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15254         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
15256 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
15258         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
15260 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15261             Tobias Burnus  <burnus@net-b.de>
15263         PR fortran/32049
15264         * configure.ac:
15265         * configure: Regenerate.
15267 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15269         * config/linux/futex.h: New.
15270         * config/linux/arm/mutex.h: New.
15271         * configure.tgt (arm*-*-linux*): Add config path.
15273 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
15275         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15277 2010-09-23  Tobias Burnus  <burnus@net-b.de>
15279         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
15280         Change Fortran datatype to LOGICAL.
15281         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
15282         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
15284 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15286         * configure: Regenerate.
15288 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
15290         * libgomp.texi: Add function keyword to a couple of Fortran
15291         interfaces, use integer instead of int for Fortran.
15293 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
15295         * libgomp.texi: Fix spelling and pasto problems throughout.
15296         Adjust prototypes to match code.
15298 2010-07-24  Tobias Burnus  <burnus@net-b.de>
15300         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
15301         silence -fwhole-file warning.
15303 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15305         * configure.tgt (*-*-solaris2.[56]*): Removed.
15307 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15309         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
15310         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
15311         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
15312         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
15313         targetting solaris2*.
15314         * configure: Regenerate.
15315         * config.h.in: Regenerate.
15317         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
15318         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
15319         Add libgomp_version_dep.
15320         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
15321         versioning.
15322         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
15323         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
15324         * Makefile.in: Regenerate.
15326         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
15327         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15328         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
15329         to common block, protected by
15330         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15332 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
15334         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
15336 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
15338         PR bootstrap/43170
15339         * configure: Regenerate.
15341 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15343         PR other/43620
15344         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
15345         * configure: Regenerate.
15346         * Makefile.in: Regenerate.
15347         * testsuite/Makefile.in: Regenerate.
15349 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
15351         PR c/43893
15352         * testsuite/libgomp.c/pr43893.c: New test.
15353         * testsuite/libgomp.c++/pr43893.C: New test.
15355 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
15357         PR middle-end/43570
15358         * testsuite/libgomp.fortran/vla8.f90: New test.
15360 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
15362         PR libgomp/43706
15363         * config/linux/affinity.c (gomp_init_affinity): Decrease
15364         gomp_available_cpus if affinity mask confines the process to fewer
15365         CPUs.
15366         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
15367         non-NULL, just return gomp_available_cpus.
15369         PR libgomp/43569
15370         * sections.c (gomp_sections_init): Initialize ws->mode.
15372 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15374         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
15375         not unused bar variable.
15376         * configure: Regenerate.
15378 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15380         * Makefile.in: Regenerate.
15381         * aclocal.m4: Regenerate.
15382         * testsuite/Makefile.in: Regenerate.
15384 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
15386         PR libgomp/42942
15387         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
15388         (initialize_env): Adjust callers.
15389         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
15390         when the argument is 0.
15392         * testsuite/libgomp.c/pr42942.c: New test.
15394 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
15396         PR middle-end/42644
15397         PR middle-end/42130
15398         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15399         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
15401 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15403         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
15404         * testsuite/libgomp.c++/task-6.C: Likewise.
15406 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
15408         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
15410 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
15412         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
15413         * configure: Regenerate.
15415 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
15417         PR fortran/42866
15418         * testsuite/libgomp.fortran/allocatable5.f90: New test.
15420 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
15422         * configure.ac: Test for executability of GFORTRAN.
15423         * configure: Regenerate.
15425 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15427         * configure: Regenerate.
15429 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
15431         PR libgomp/42602
15432         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
15434 2010-01-03  Richard Guenther  <rguenther@suse.de>
15436         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
15438 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
15440         * testsuite/libgomp.graphite/pr4118.c: New.
15442 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
15444         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
15445         for darwin, protect the test with require-effective-target tls_runtime.
15446         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
15448 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
15450         PR target/41605
15451         * testsuite/lib/libgomp.exp: Provide -B options to allow for
15452         link spec %s substitutions for static libraries.
15454 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
15456         PR testsuite/42135
15457         * libgomp.graphite/force-parallel-2.c: Reduce array size.
15459 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15461         * Makefile.in: Regenerate.
15462         * configure: Regenerate.
15463         * testsuite/Makefile.in: Regenerate.
15465 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
15467         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
15468         settings for LC_ALL and LANG.
15470 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
15472         PR fortran/42162
15473         * testsuite/libgomp.fortran/pr42162.f90: New test.
15475 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
15477         PR middle-end/42029
15478         * testsuite/libgomp.c/pr42029.c: New test.
15480 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
15482         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
15483         *s.  Accept ld version without text in ()s.
15484         * configure: Regenerated.
15486 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
15488         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
15490 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15492         PR libgomp/41418
15493         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
15494         or a hyphen (happens with fortran language disabled).
15495         * configure: Regenerate.
15497 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15499         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
15500         use sed script portable to Solaris /bin/sed for extracting ld
15501         version.
15502         * configure: Regenerate.
15504 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
15506         * testsuite/libgomp.graphite/bounds.c: New test.
15508 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15510         * Makefile.am (libgomp_la_LINK): New.
15511         * Makefile.in: Regenerate.
15513 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15515         * configure.ac (AC_PREREQ): Bump to 2.64.
15517 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15519         * Makefile.am (install-html, install-pdf): Remove.
15520         * Makefile.in: Regenerate.
15522         * Makefile.in: Regenerate.
15523         * aclocal.m4: Regenerate.
15524         * config.h.in: Regenerate.
15525         * configure: Regenerate.
15526         * testsuite/Makefile.in: Regenerate.
15528 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15530         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
15531         * Makefile.in: Regenerate.
15533 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
15535         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
15536         * Makefile.in: Regenerate.
15538 2009-08-19  Tobias Burnus  <burnus@net-b.de>
15540         PR fortran/41102
15541         omp_lib.h.in: Fix -std=f95 errors.
15543 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
15545         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
15546         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
15547         * testsuite/libgomp.graphite/graphite.exp: New.
15549 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
15551         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
15552         only build.
15554 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
15556         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
15557         needed memory barrier semantics.
15558         * config/linux/mips/mutex.h: New file.
15560 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15562         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
15564 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
15566         * configure: Regenerate.
15568 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
15570         PR testsuite/40699
15571         PR testsuite/40707
15572         PR testsuite/40709
15573         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
15574         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
15575         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
15577 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
15579         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
15580         options when choosing a multilib.
15582 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
15584         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
15585         ld_library_path.  Use add_path.  Add just find_libgcc_s to
15586         ld_library_path, not every libgcc multilib directory.
15587         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
15588         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
15589         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
15590         Use add_path.
15591         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
15593 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
15595         * Makefile.am (LTLDFLAGS): Define.
15596         (LINK): Define.
15597         * Makefile.in: Regenerate.
15599 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
15601         PR fortran/39718
15602         * testsuite/libgomp.fortran/fortran.exp: Don't link with
15603         libgfortranbegin, check existence of libgfortran.a instead of
15604         libgfortranbegin.a.
15606 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
15608         PR libgomp/40174
15609         * team.c (gomp_thread_start): Destroy thr->release semaphore.
15610         (gomp_free_pool_helper): Likewise.
15612 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
15613             Jakub Jelinek  <jakub@redhat.com>
15615         PR fortran/35423
15616         * testsuite/libgomp.fortran/workshare2.f90: New test.
15618 2009-04-09  Nick Clifton  <nickc@redhat.com>
15620         * iter.c: Change copyright header to refer to version 3 of the
15621         GNU General Public License with version 3.1 of the GCC Runtime
15622         Library Exception and to point readers at the COPYING3 and
15623         COPYING3.RUNTIME files and the FSF's license web page.
15624         * alloc.c: Likewise.
15625         * barrier.c: Likewise.
15626         * config/bsd/proc.c: Likewise.
15627         * config/linux/affinity.c: Likewise.
15628         * config/linux/alpha/futex.h: Likewise.
15629         * config/linux/bar.c: Likewise.
15630         * config/linux/bar.h: Likewise.
15631         * config/linux/ia64/futex.h: Likewise.
15632         * config/linux/ia64/mutex.h: Likewise.
15633         * config/linux/lock.c: Likewise.
15634         * config/linux/mips/futex.h: Likewise.
15635         * config/linux/mutex.c: Likewise.
15636         * config/linux/mutex.h: Likewise.
15637         * config/linux/powerpc/futex.h: Likewise.
15638         * config/linux/proc.c: Likewise.
15639         * config/linux/ptrlock.c: Likewise.
15640         * config/linux/ptrlock.h: Likewise.
15641         * config/linux/s390/futex.h: Likewise.
15642         * config/linux/sem.c: Likewise.
15643         * config/linux/sem.h: Likewise.
15644         * config/linux/sparc/futex.h: Likewise.
15645         * config/linux/wait.h: Likewise.
15646         * config/linux/x86/futex.h: Likewise.
15647         * config/mingw32/proc.c: Likewise.
15648         * config/mingw32/time.c: Likewise.
15649         * config/posix/affinity.c: Likewise.
15650         * config/posix/bar.c: Likewise.
15651         * config/posix/bar.h: Likewise.
15652         * config/posix/lock.c: Likewise.
15653         * config/posix/mutex.h: Likewise.
15654         * config/posix/proc.c: Likewise.
15655         * config/posix/ptrlock.h: Likewise.
15656         * config/posix/sem.c: Likewise.
15657         * config/posix/sem.h: Likewise.
15658         * config/posix/time.c: Likewise.
15659         * config/posix95/lock.c: Likewise.
15660         * critical.c: Likewise.
15661         * env.c: Likewise.
15662         * error.c: Likewise.
15663         * fortran.c: Likewise.
15664         * iter_ull.c: Likewise.
15665         * libgomp.h: Likewise.
15666         * libgomp_f.h.in: Likewise.
15667         * libgomp_g.h: Likewise.
15668         * loop.c: Likewise.
15669         * loop_ull.c: Likewise.
15670         * omp.h.in: Likewise.
15671         * omp_lib.f90.in: Likewise.
15672         * omp_lib.h.in: Likewise.
15673         * ordered.c: Likewise.
15674         * parallel.c: Likewise.
15675         * sections.c: Likewise.
15676         * single.c: Likewise.
15677         * task.c: Likewise.
15678         * team.c: Likewise.
15679         * work.c: Likewise.
15681 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
15683         * testsuite/config/default.exp: Change copyright header to refer to
15684         version 3 of the GNU General Public License and to point readers
15685         at the COPYING3 file and the FSF's license web page.
15687 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
15689         PR middle-end/39573
15690         * libgomp.c++/pr39573.C: New test.
15692 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15694         PR other/39591
15695         * testsuite/libgomp.c/pr39591-1.c: New test.
15696         * testsuite/libgomp.c/pr39591-2.c: New test.
15697         * testsuite/libgomp.c/pr39591-3.c: New test.
15699 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
15701         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
15702         * testsuite/libgomp.c/atomic-6.c: Ditto.
15704 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
15706         PR c/39495
15707         * testsuite/libgomp.c/loop-12.c: New test.
15708         * testsuite/libgomp.c/loop-11.c: New test.
15709         * testsuite/libgomp.c++/loop-11.C: New test.
15710         * testsuite/libgomp.c++/loop-12.C: New test.
15711         * testsuite/libgomp.c++/for-8.C: New test.
15713 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15715         * configure: Regenerate.
15717 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
15719         PR middle-end/39154
15720         * testsuite/libgomp.c/pr39154.c: New test.
15722 2009-01-30  Ian Lance Taylor  <iant@google.com>
15724         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
15725         libgomp_ld_is_gold.  Get gold version number.
15726         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
15727         * configure: Rebuild.
15729 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
15731         * testsuite/lib/libgomp.exp: Add -B option for targets that
15732         use libgfortran.a%s in their specs.
15734 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
15736         PR libgomp/38086
15737         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
15738         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
15739         HAVE_AS_SYMVER_DIRECTIVE is not defined.
15740         * configure: Regenerated.
15741         * config.h.in: Likewise.
15743 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
15745         PR c++/38650
15746         * testsuite/libgomp.c/pr38650.c: New test.
15747         * testsuite/libgomp.c++/pr38650.C: New test.
15749 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
15751         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
15753 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
15755         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
15757 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15759         * configure: Regenerate.
15761 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
15763         PR middle-end/36802
15764         * testsuite/libgomp.c/pr36802-1.c: New test.
15765         * testsuite/libgomp.c/pr36802-2.c: New test.
15766         * testsuite/libgomp.c/pr36802-3.c: New test.
15768 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
15770         PR libgomp/38270
15771         * config/linux/powerpc/mutex.h: New.
15773 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
15775         PR c++/38257
15776         * testsuite/libgomp.c++/for-7.C: New test.
15778         PR c++/38348
15779         * testsuite/libgomp.c++/for-6.C: New test.
15781 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
15783         PR testsuite/28870
15784         * testsuite/lib/libgomp.exp: Include new timeout library files.
15785         (libgomp_target_compile): Set timeout value from new proc.
15787 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
15789         PR libgomp/37938
15790         * config/linux/ia64/mutex.h: New.
15792 2008-11-04  Tobias Burnus  <burnus@net-b.de>
15794         PR libgomp/37935
15795         * libgomp.texi (Runtime library routines, environment variables):
15796         Update for OpenMP version 3.0.
15798 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
15799             Steve Ellcey  <sje@cup.hp.com>
15801         * configure: Regenerate for new libtool.
15802         * Makefile.in: Ditto.
15803         * testsuite/Makefile.in: Ditto.
15805 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
15806             Andreas Tobler  <a.tobler@schweiz.org>
15808         * config/bsd/proc.c: New file.
15809         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
15810         * configure.ac: Check for header <sys/sysctl.h>
15811         * configure: Regenerate.
15812         * config.h.in: Likewise.
15814 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
15816         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
15818 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
15820         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
15821         * Makefile.in: Regenerated.
15822         * testsuite/Makefile.in: Regenerated.
15824 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
15826         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
15827         depend on blddir if blddir exists.
15828         (libgomp_target_compile): Likewise.
15829         * testsuite/libgomp.c++/c++.exp: Likewise.
15830         * testsuite/libgomp.fortran/fortran.exp: Likewise.
15832 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15834         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
15835         Do not list GPL as Invariant Section.
15837 2008-07-28  Ilie Garbacea  <ilie@mips.com>
15838             Chao-ying Fu  <fu@mips.com>
15840         * configure.tgt: Enable futex for MIPS.
15841         * config/linux/mips/futex.h: New file.
15843 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
15845         * team.c (gomp_team_end): Free team immediately if it has
15846         just one thread.
15848 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
15850         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
15851         * testsuite/libgomp.fortran/fortran.exp: Same.
15852         * testsuite/libgomp.c/c.exp: Same.
15853         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
15854         directory to library path first.
15856 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
15858         * env.c (parse_stacksize): Add cast to avoid warning.
15859         (parse_spincount): Likewise.
15861 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
15863         * testsuite/libgomp.c/loop-10.c: New test.
15864         * libgomp.c/loop-3.c (main): Add lastprivate clause.
15865         * libgomp.c++/loop-6.C (main): Likewise.
15867         PR debug/36617
15868         * testsuite/libgomp.c/debug-1.c: New test.
15870 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
15872         * testsuite/libgomp.c/nqueens-1.c: New test.
15874         PR c++/36523
15875         * testsuite/libgomp.c++/task-7.C: New function.
15877 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15879         * configure: Regenerate.
15881 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15883         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
15884         mutex when HAVE_SYNC_BUILTINS isn't defined.
15886 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15888         * libgomp.texi (omp_test_lock): Fix typo.
15890 2008-06-12  Tobias Burnus  <burnus@net-b.de>
15892         * omp_lib.f90.in: Add "implicit none".
15894 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
15896         PR middle-end/36506
15897         * testsuite/libgomp.c/reduction-5.c: New test.
15899 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
15901         * libgomp.h (struct gomp_task): Add in_tied_task field.
15902         * task.c (gomp_init_task): Initialize it.
15903         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
15904         unconditionally.  Don't call gomp_team_barrier_wake if
15905         current task is implicit or if(0) from implicit and number of
15906         running tasks is equal to nthreads - 1.
15908         PR libgomp/36471
15909         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
15910         omp_get_team_size_8): Fix pastos.
15912         PR libgomp/36469
15913         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
15914         * configure: Regenerated.
15915         * config.h.in: Regenerated.
15916         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
15917         defined.
15919 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
15921         PR bootstrap/36452
15922         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
15923         (GOMP_loop_ull_dynamic_start): Likewise.
15924         (GOMP_loop_ull_guided_start): Likewise.
15925         (GOMP_loop_ull_ordered_static_start): Likewise.
15926         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
15927         (GOMP_loop_ull_ordered_guided_start): Likewise.
15929 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
15930             Richard Henderson  <rth@redhat.com>
15931             Ulrich Drepper  <drepper@redhat.com>
15932             Jakob Blomer  <jakob.blomer@ira.uka.de>
15934         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
15935         Substitute also OMP_*LOCK_25*.
15936         * configure: Regenerated.
15937         * config.h.in: Regenerated.
15938         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
15939         ptrlock.c and task.c.
15940         * Makefile.in: Regenerated.
15941         * testsuite/Makefile.in: Regenerated.
15942         * task.c: New file.
15943         * loop_ull.c: New file.
15944         * iter_ull.c: New file.
15945         * libgomp.h: Include ptrlock.h.
15946         (enum gomp_task_kind): New type.
15947         (struct gomp_team): Add task_lock, task_queue, task_count,
15948         task_running_count, single_count fields.  Add
15949         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
15950         Remove work_share_lock, generation_mask,
15951         oldest_live_gen, num_live_gen and init_work_shares fields, add
15952         work work_share_list_alloc, work_share_list_free and work_share_chunk
15953         fields.  Change work_shares from pointer to pointers into an array.
15954         Change ordered_release field into gomp_sem_t ** from flexible array
15955         member.  Add implicit_task and initial_work_shares fields.
15956         Move close to the end of the struct.
15957         (struct gomp_team_state): Add single_count, last_work_share,
15958         active_level and level fields, remove work_share_generation.
15959         (gomp_barrier_handle_tasks): New prototype.
15960         (gomp_finish_task): New inline function.
15961         (struct gomp_work_share): Move chunk_size, end, incr into
15962         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
15963         next_ll fields.  Reshuffle fields.  Add next_alloc,
15964         next_ws, next_free and inline_ordered_team_ids fields, change
15965         ordered_team_ids into pointer from flexible array member.
15966         Add mode field.  Put lock and next into a different cache line
15967         from most of the write-once fields.
15968         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
15969         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
15970         gomp_iter_ull_guided_next): New prototypes.
15971         (gomp_new_icv): New prototype.
15972         (struct gomp_thread): Add thread_pool and task fields.
15973         (struct gomp_thread_pool): New type.
15974         (gomp_new_team): New prototype.
15975         (gomp_team_start): Change type of last argument.
15976         (gomp_new_work_share): Removed.
15977         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
15978         (gomp_work_share_init_done): New static inline.
15979         (gomp_throttled_spin_count_var, gomp_available_cpus,
15980         gomp_managed_threads): New extern decls.
15981         (gomp_init_task): New prototype.
15982         (gomp_spin_count_var): New extern var decl.
15983         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
15984         or no alias support, or if not PIC.
15985         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
15986         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
15987         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
15988         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
15989         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
15990         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
15991         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
15992         gomp_test_nest_lock_25): New prototypes.
15993         (omp_lock_symver, strong_alias): Define.
15994         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
15995         decls.
15996         (gomp_end_task): New.
15997         (struct gomp_task_icv, gomp_global_icv): New.
15998         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
15999         (struct gomp_task): New.
16000         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16001         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16002         (gomp_icv): New.
16003         (gomp_schedule_type): Reorder enum to match
16004         omp_sched_t.
16005         * team.c (struct gomp_thread_start_data): Add thread_pool and task
16006         fields.
16007         (gomp_thread_start): Add gomp_team_barrier_wait call.
16008         For non-nested case remove clearing of docked thread thr fields.
16009         Use pool fields instead of global gomp_* variables.  Use
16010         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
16011         Create tasks for each member thread.
16012         (free_team): Only destroy team barrier, task_lock here and free it.
16013         (gomp_free_thread): Free last_team if non-NULL.
16014         (gomp_team_end): Call gomp_team_barrier_wait instead of
16015         gomp_barrier_wait.  For nested case call one extra
16016         gomp_barrier_wait.  Move here some destruction from free_team.
16017         Call free_team on pool->last_team if any, rather than freeing
16018         current team.  Destroy work_share_list_free_lock ifndef
16019         HAVE_SYNC_BUILTINS.
16020         (gomp_new_icv): New function.
16021         (gomp_threads, gomp_threads_size, gomp_threads_used,
16022         gomp_threads_dock): Removed.
16023         (gomp_thread_destructor): New variable.
16024         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
16025         functions.
16026         (gomp_team_start): Create new pool if current thread doesn't have
16027         one.  Use pool fields instead of global gomp_* variables.
16028         Initialize thread_pool field for new threads.  Clear single_count.
16029         Change last argument from ws to team, don't create
16030         new team, set ts.work_share to &team->work_shares[0] and clear
16031         ts.last_work_share.  Don't clear ts.work_share_generation.
16032         If number of threads changed, adjust atomically gomp_managed_threads.
16033         Use gomp_init_task instead of gomp_new_task,
16034         set thr->task to the corresponding implicit_task array entry.
16035         Create tasks for each member thread.  Initialize ts.level.
16036         (initialize_team): Call pthread_key_create on
16037         gomp_thread_destructor.
16038         (team_destructor): New function.
16039         (new_team): Removed.
16040         (gomp_new_team): New function.
16041         (free_team): Free gomp_work_share blocks chained through next_alloc,
16042         instead of freeing work_shares and destroying work_share_lock.
16043         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
16044         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
16045         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
16046         of gomp_barrier_wait.
16047         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
16048         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
16049         if gomp_work_share_start returned true.  Don't unlock ws->lock.
16050         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
16051         of gomp_barrier_wait.
16052         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
16053         gomp_work_share_init_done if gomp_work_share_start returned true.
16054         Don't unlock ws->lock.
16055         * work.c: Include stddef.h.
16056         (free_work_share): Use work_share_list_free_lock instead
16057         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
16058         Call gomp_fini_work_share and then either free ws if orphaned, or
16059         put it into work_share_list_free list of the current team.
16060         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
16061         functions.
16062         (gomp_work_share_start, gomp_work_share_end,
16063         gomp_work_share_end_nowait): Rewritten.
16064         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
16065         (openmp_version): Set to 200805.
16066         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
16067         omp_sched_guided, omp_sched_auto): New parameters.
16068         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16069         omp_set_max_active_levels, omp_get_max_active_levels,
16070         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16071         omp_get_active_level): New interfaces.
16072         * omp_lib.h.in (openmp_version): Set to 200805.
16073         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
16074         omp_sched_guided, omp_sched_auto): New parameters.
16075         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16076         omp_set_max_active_levels, omp_get_max_active_levels,
16077         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16078         omp_get_active_level): New externals.
16079         * loop.c: Include limits.h.
16080         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
16081         GFS_AUTO.
16082         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
16083         Likewise.  Use gomp_icv.
16084         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
16085         ts.static_trip here.
16086         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
16087         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
16088         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
16089         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
16090         don't unlock ws->lock, otherwise lock it.
16091         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
16092         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
16093         (gomp_parallel_loop_start): Call gomp_new_team instead of
16094         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
16095         Adjust gomp_team_start caller.  Pass 0 as second argument to
16096         gomp_resolve_num_threads.
16097         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
16098         If adding ws->chunk_size nthreads + 1 times after end won't
16099         overflow, set ws->mode to 1.
16100         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
16101         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
16102         GOMP_loop_ull_ordered_static_start,
16103         GOMP_loop_ull_ordered_dynamic_start,
16104         GOMP_loop_ull_ordered_guided_start,
16105         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
16106         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
16107         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
16108         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
16109         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
16110         prototypes.
16111         * libgomp.map: Export lock routines also @@OMP_2.0.
16112         (GOMP_loop_ordered_dynamic_first,
16113         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
16114         GOMP_loop_ordered_static_first): Remove.
16115         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
16116         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
16117         GOMP_loop_ull_ordered_dynamic_next,
16118         GOMP_loop_ull_ordered_dynamic_start,
16119         GOMP_loop_ull_ordered_guided_next,
16120         GOMP_loop_ull_ordered_guided_start,
16121         GOMP_loop_ull_ordered_runtime_next,
16122         GOMP_loop_ull_ordered_runtime_start,
16123         GOMP_loop_ull_ordered_static_next,
16124         GOMP_loop_ull_ordered_static_start,
16125         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
16126         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
16127         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
16128         (omp_set_schedule, omp_get_schedule,
16129         omp_get_thread_limit, omp_set_max_active_levels,
16130         omp_get_max_active_levels, omp_get_level,
16131         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
16132         omp_set_schedule_, omp_set_schedule_8_,
16133         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16134         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16135         omp_get_max_active_levels_, omp_get_level_,
16136         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16137         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16138         New exports @@OMP_3.0.
16139         * omp.h.in (omp_sched_t): New type.
16140         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16141         omp_set_max_active_levels, omp_get_max_active_levels,
16142         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16143         omp_get_active_level): New prototypes.
16144         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
16145         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
16146         gomp_thread_limit_var, gomp_remaining_threads_count,
16147         gomp_remaining_threads_lock): New variables.
16148         (parse_spincount): New function.
16149         (initialize_env): Call gomp_init_num_threads unconditionally.
16150         Initialize gomp_available_cpus.  Call parse_spincount,
16151         initialize gomp_{,throttled_}spin_count_var
16152         depending on presence and value of OMP_WAIT_POLICY and
16153         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
16154         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
16155         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
16156         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
16157         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
16158         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16159         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16160         (gomp_global_icv): New.
16161         (parse_schedule): Use it.  Parse "auto".
16162         (omp_set_num_threads): Use gomp_icv.
16163         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
16164         Likewise.
16165         (omp_get_max_threads): Move from parallel.c.
16166         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16167         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
16168         add ialias.
16169         (parse_stacksize, parse_wait_policy): New functions.
16170         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
16171         both wrappers for compatibility and new locks.
16172         (omp_set_schedule, omp_get_schedule,
16173         omp_get_thread_limit, omp_set_max_active_levels,
16174         omp_get_max_active_levels, omp_get_level,
16175         omp_get_ancestor_thread_num, omp_get_team_size,
16176         omp_get_active_level): New ialias_redirect.
16177         (omp_set_schedule_, omp_set_schedule_8_,
16178         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16179         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16180         omp_get_max_active_levels_, omp_get_level_,
16181         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16182         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16183         New functions.
16184         * parallel.c: Include limits.h.
16185         (gomp_resolve_num_threads): Add count argument.  Rewritten.
16186         (GOMP_parallel_start): Call gomp_new_team and pass that as last
16187         argument to gomp_team_start.  Pass 0 as second argument to
16188         gomp_resolve_num_threads.
16189         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
16190         if gomp_thread_limit_var != ULONG_MAX.
16191         (omp_in_parallel): Implement using ts.active_level.
16192         (omp_get_max_threads): Move to env.c.
16193         (omp_get_level, omp_get_ancestor_thread_num,
16194         omp_get_team_size, omp_get_active_level): New functions,
16195         add ialias.
16196         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
16197         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
16198         gomp_iter_dynamic_next instead of the _locked variant and don't take
16199         lock around it, otherwise acquire it before calling
16200         gomp_iter_dynamic_next_locked.
16201         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
16202         gomp_iter_dynamic_next instead of the _locked variant and don't take
16203         lock around it.
16204         (GOMP_parallel_sections_start): Call gomp_new_team instead of
16205         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
16206         Adjust gomp_team_start caller.  Pass count as second argument to
16207         gomp_resolve_num_threads, don't adjust num_threads after the call.
16208         Use gomp_icv.
16209         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
16210         ws->chunk_size by incr.
16211         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
16212         code.
16213         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
16214         types.
16215         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
16216         (omp_check_defines): Check even the compat defines.
16217         * config/linux/ptrlock.c: New file.
16218         * config/linux/ptrlock.h: New file.
16219         * config/linux/wait.h: New file.
16220         * config/posix/ptrlock.c: New file.
16221         * config/posix/ptrlock.h: New file.
16222         * config/linux/bar.h (gomp_team_barrier_wait,
16223         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16224         (gomp_team_barrier_set_task_pending,
16225         gomp_team_barrier_clear_task_pending,
16226         gomp_team_barrier_set_waiting_for_tasks,
16227         gomp_team_barrier_waiting_for_tasks,
16228         gomp_team_barrier_done): New inlines.
16229         (gomp_barrier_t): Rewritten.
16230         (gomp_barrier_state_t): New typedef.
16231         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
16232         gomp_barrier_wait_start): Rewritten.
16233         (gomp_barrier_wait_end): Change second argument to
16234         gomp_barrier_state_t.
16235         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16236         inlines.
16237         * config/linux/bar.c: Include wait.h instead of libgomp.h and
16238         futex.h.
16239         (gomp_barrier_wait_end): Rewritten.
16240         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16241         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
16242         * config/posix/bar.h (gomp_barrier_t): Add generation field.
16243         (gomp_barrier_state_t): New typedef.
16244         (gomp_team_barrier_wait,
16245         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16246         (gomp_barrier_wait_start): Or all but low 2 bits from generation
16247         into the return value.  Return gomp_barrier_state_t.
16248         (gomp_team_barrier_set_task_pending,
16249         gomp_team_barrier_clear_task_pending,
16250         gomp_team_barrier_set_waiting_for_tasks,
16251         gomp_team_barrier_waiting_for_tasks,
16252         gomp_team_barrier_done): New inlines.
16253         (gomp_barrier_wait_end): Change second argument to
16254         gomp_barrier_state_t.
16255         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16256         inlines.
16257         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
16258         (gomp_barrier_wait_end): Change second argument to
16259         gomp_barrier_state_t.
16260         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16261         gomp_team_barrier_wake): New functions.
16262         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
16263         futex.h.
16264         (gomp_futex_wake, gomp_futex_wait): New variables.
16265         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
16266         * config/linux/lock.c: Rewrite to make locks task owned,
16267         for backwards compatibility provide the old entrypoints
16268         if symbol versioning.  Include wait.h instead of libgomp.h and
16269         futex.h.
16270         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
16271         * config/posix95/lock.c: Rewrite to make locks task owned,
16272         for backwards compatibility provide the old entrypoints
16273         if symbol versioning.
16274         * config/posix/lock.c: Rewrite to make locks task owned,
16275         for backwards compatibility provide the old entrypoints
16276         if symbol versioning.
16277         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
16278         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
16279         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
16280         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16281         (sys_futex0): Return error code.
16282         (futex_wake, futex_wait): If ENOSYS was returned, clear
16283         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16284         (cpu_relax, atomic_write_barrier): New static inlines.
16285         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16286         (futex_wake, futex_wait): If ENOSYS was returned, clear
16287         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16288         (cpu_relax, atomic_write_barrier): New static inlines.
16289         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16290         (sys_futex0): Return error code.
16291         (futex_wake, futex_wait): If ENOSYS was returned, clear
16292         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16293         (cpu_relax, atomic_write_barrier): New static inlines.
16294         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16295         (sys_futex0): Return error code.
16296         (futex_wake, futex_wait): If ENOSYS was returned, clear
16297         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16298         (cpu_relax, atomic_write_barrier): New static inlines.
16299         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16300         (sys_futex0): Return error code.
16301         (futex_wake, futex_wait): If ENOSYS was returned, clear
16302         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16303         (cpu_relax, atomic_write_barrier): New static inlines.
16304         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16305         (sys_futex0): Return error code.
16306         (futex_wake, futex_wait): If ENOSYS was returned, clear
16307         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16308         (cpu_relax, atomic_write_barrier): New static inlines.
16309         * config/linux/sem.c: Include wait.h instead of libgomp.h and
16310         futex.h.
16311         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
16312         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
16313         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
16314         types.
16315         (omp_nest_lock_t): Change owner into void *, add lock field.
16316         * config/posix95/omp-lock.h: Include semaphore.h.
16317         (omp_lock_25_t, omp_nest_lock_25_t): New types.
16318         (omp_lock_t): Use sem_t instead of mutex if semaphores
16319         aren't broken.
16320         (omp_nest_lock_t): Likewise.  Change owner to void *.
16321         * config/posix/omp-lock.h: Include semaphore.h.
16322         (omp_lock_25_t, omp_nest_lock_25_t): New types.
16323         (omp_lock_t): Use sem_t instead of mutex if semaphores
16324         aren't broken.
16325         (omp_nest_lock_t): Likewise.  Add owner field.
16327 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
16329         * testsuite/libgomp.c/collapse-1.c: New test.
16330         * testsuite/libgomp.c/collapse-2.c: New test.
16331         * testsuite/libgomp.c/collapse-3.c: New test.
16332         * testsuite/libgomp.c/icv-1.c: New test.
16333         * testsuite/libgomp.c/icv-2.c: New test.
16334         * testsuite/libgomp.c/lib-2.c: New test.
16335         * testsuite/libgomp.c/lock-1.c: New test.
16336         * testsuite/libgomp.c/lock-2.c: New test.
16337         * testsuite/libgomp.c/lock-3.c: New test.
16338         * testsuite/libgomp.c/loop-4.c: New test.
16339         * testsuite/libgomp.c/loop-5.c: New test.
16340         * testsuite/libgomp.c/loop-6.c: New test.
16341         * testsuite/libgomp.c/loop-7.c: New test.
16342         * testsuite/libgomp.c/loop-8.c: New test.
16343         * testsuite/libgomp.c/loop-9.c: New test.
16344         * testsuite/libgomp.c/nested-3.c: New test.
16345         * testsuite/libgomp.c/nestedfn-6.c: New test.
16346         * testsuite/libgomp.c/sort-1.c: New test.
16347         * testsuite/libgomp.c/task-1.c: New test.
16348         * testsuite/libgomp.c/task-2.c: New test.
16349         * testsuite/libgomp.c/task-3.c: New test.
16350         * testsuite/libgomp.c/task-4.c: New test.
16351         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
16352         to C++ testsuite default compiler options.
16353         * testsuite/libgomp.c++/collapse-1.C: New test.
16354         * testsuite/libgomp.c++/collapse-2.C: New test.
16355         * testsuite/libgomp.c++/ctor-10.C: New test.
16356         * testsuite/libgomp.c++/for-1.C: New test.
16357         * testsuite/libgomp.c++/for-2.C: New test.
16358         * testsuite/libgomp.c++/for-3.C: New test.
16359         * testsuite/libgomp.c++/for-4.C: New test.
16360         * testsuite/libgomp.c++/for-5.C: New test.
16361         * testsuite/libgomp.c++/loop-8.C: New test.
16362         * testsuite/libgomp.c++/loop-9.C: New test.
16363         * testsuite/libgomp.c++/loop-10.C: New test.
16364         * testsuite/libgomp.c++/task-1.C: New test.
16365         * testsuite/libgomp.c++/task-2.C: New test.
16366         * testsuite/libgomp.c++/task-3.C: New test.
16367         * testsuite/libgomp.c++/task-4.C: New test.
16368         * testsuite/libgomp.c++/task-5.C: New test.
16369         * testsuite/libgomp.c++/task-6.C: New test.
16370         * testsuite/libgomp.fortran/allocatable1.f90: New test.
16371         * testsuite/libgomp.fortran/allocatable2.f90: New test.
16372         * testsuite/libgomp.fortran/allocatable3.f90: New test.
16373         * testsuite/libgomp.fortran/allocatable4.f90: New test.
16374         * testsuite/libgomp.fortran/collapse1.f90: New test.
16375         * testsuite/libgomp.fortran/collapse2.f90: New test.
16376         * testsuite/libgomp.fortran/collapse3.f90: New test.
16377         * testsuite/libgomp.fortran/collapse4.f90: New test.
16378         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
16379         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
16380         * testsuite/libgomp.fortran/lib4.f90: New test.
16381         * testsuite/libgomp.fortran/lock-1.f90: New test.
16382         * testsuite/libgomp.fortran/lock-2.f90: New test.
16383         * testsuite/libgomp.fortran/nested1.f90: New test.
16384         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
16385         * testsuite/libgomp.fortran/strassen.f90: New test.
16386         * testsuite/libgomp.fortran/tabs1.f90: New test.
16387         * testsuite/libgomp.fortran/tabs2.f: New test.
16388         * testsuite/libgomp.fortran/task1.f90: New test.
16389         * testsuite/libgomp.fortran/task2.f90: New test.
16390         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
16391         * testsuite/libgomp.fortran/vla5.f90: Likewise.
16392         * testsuite/libgomp.c/pr26943-2.c: Likewise.
16393         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16394         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16396 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
16398         PR c++/36308
16399         * testsuite/libgomp.c++/ctor-11.C: New test.
16400         * testsuite/libgomp.c++/ctor-12.C: New test.
16402 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
16404         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
16406 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
16408         PR middle-end/36106
16409         * testsuite/libgomp.c/atomic-5.c: New test.
16410         * testsuite/libgomp.c/atomic-6.c: New test.
16411         * testsuite/libgomp.c/autopar-1.c: New test.
16413 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16415         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
16416         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
16417         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
16418         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
16419         * configure: Regenerate.
16420         * Makefile.in, testsuite/Makefile.in: Likewise.
16422 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
16424         PR bootstrap/35457
16425         * aclocal.m4: Regenerate.
16426         * configure: Regenerate.
16428 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
16430         PR middle-end/35611
16431         * testsuite/libgomp.c/atomic-4.c: New test.
16433         PR libgomp/35625
16434         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
16435         (gomp_iter_guided_next): Likewise.
16436         * testsuite/libgomp.c/pr35625.c: New test.
16438 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16440         * aclocal.m4: Regenerate.
16441         * configure: Likewise.
16442         * Makefile.in: Likewise.
16443         * testsuite/Makefile.in: Likewise.
16445 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
16447         PR middle-end/35185
16448         * testsuite/libgomp.c++/pr35185.C: New test.
16450 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
16452         PR middle-end/35549
16453         * testsuite/libgomp.c/pr35549.c: New test.
16455 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
16457         * testsuite/libgomp.c/atomic-3.c: New test.
16459 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16461         PR fortran/33197
16462         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
16463         .F08 file suffixes.
16465 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
16467         PR libgomp/33131
16468         * configure.ac: Add ACX_HEADER_STRING.
16469         * env.c: Include strings.h.
16470         * aclocal.m4: Regenerate.
16471         * config.h.in: Regenerate.
16472         * configure: Regenerate.
16473         * Makefile.in: Regenerate.
16474         * testsuite/Makefile.in: Regenerate.
16476 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
16478         PR middle-end/35196
16479         * testsuite/libgomp.c/pr35196.c: New test.
16481         PR middle-end/35130
16482         * testsuite/libgomp.fortran/pr35130.f90: New test.
16483         * testsuite/libgomp.c/pr35130.c: New test.
16485 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
16487         PR middle-end/33880
16488         * testsuite/libgomp.c/pr33880.c: New test.
16489         * testsuite/libgomp.fortran/pr33880.f90: New test.
16491 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
16493         * configure: Regenerate.
16495 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
16497         * configure.ac: Move futex checking into ../config/futex.m4.
16498         * configure: Rebuilt.
16499         * aclocal.m4: Rebuilt.
16500         * Makefile.in: Rebuilt.
16502         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
16503         2007-10-15 ../config/tls.m4 change.
16505 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
16507         PR c++/34513
16508         * testsuite/libgomp.c/pr34513.c: New test.
16509         * testsuite/libgomp.c++/pr34513.C: New test.
16511 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
16513         PR target/32765
16514         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
16516 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
16518         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
16520 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
16522         * testsuite/libgomp.c/private-1.c: New test.
16524 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
16525             Paolo Bonzini  <bonzini@gnu.org>
16527         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
16528         instead of 'VPATH ='.
16529         * Makefile.in: Regenerate.
16531 2007-11-23  Matthias Klose  <doko@ubuntu.com>
16533         * configure.ac: Adjust makeinfo version check.
16534         * configure: Regenerate.
16536 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
16538         PR fortran/34020
16539         * testsuite/libgomp.fortran/pr34020.f90: New test.
16541 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
16543         PR c++/33894
16544         * testsuite/libgomp.c++/atomic-1.C: New test.
16546 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
16548         PR libgomp/33275
16549         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
16550         Make x and y integers rather than (implicit) reals.  Add private (j)
16551         clause to the last omp parallel.
16553 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
16555         * configure: Regenerate following changes to ../config/tls.m4.
16557 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
16559         * testsuite/libgomp.fortran/stack.f90: New test.
16561 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
16563         * config/mingw32/proc.c: New file.
16565 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
16567         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
16568         (main): Use __get_cpuid to get i386 target fetaures.
16569         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
16570         (main): Use __get_cpuid to get x86_64 target fetaures.
16572 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
16574         PR target/32765
16575         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
16576         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
16578 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
16580         PR fortran/32550
16581         * testsuite/libgomp.fortran/pr32550.f90: New test.
16582         * testsuite/libgomp.fortran/crayptr2.f90: New test.
16584 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
16586         * aclocal.m4: Regenerated.
16588 2007-07-05  Tobias Burnus  <burnus@net-b.de>
16590         PR fortran/32359
16591         * testsuite/libgomp.fortran/pr32359.f90: New.
16593 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
16595         PR libgomp/32468
16596         * sections.c (GOMP_parallel_sections_start): Only decrease
16597         number of threads to COUNT if dyn_var is true.
16598         * testsuite/libgomp.c/pr32468.c: New test.
16600 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16602         PR libgomp/26308
16603         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
16605 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
16607         PR middle-end/32362
16608         * testsuite/libgomp.c/pr32362-1.c: New test.
16609         * testsuite/libgomp.c/pr32362-2.c: New test.
16610         * testsuite/libgomp.c/pr32362-3.c: New test.
16612 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
16614         * team.c (gomp_team_start): Fix setting up thread_attr
16615         stack size.
16617 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
16619         * configure: Regenerate.
16621 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
16623         * Makefile.in: Regenerate.
16624         * configure: Regenerate.
16625         * aclocal.m4: Regenerate.
16626         * testsuite/Makefile.in: Regenerate.
16628 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
16630         * config/linux/proc.c: New file.
16632         PR libgomp/28482
16633         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
16635 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
16637         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
16639 2007-04-16  Matthias Klose  <doko@debian.org>
16641         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
16642         flags if not building with -m64.
16643         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
16644         flag for i?86-*-* targets, if current target matches -m64.
16646 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
16648         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
16649         * Makefile.in: Regenerate.
16651 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16653         PR testsuite/31369
16654         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
16655         ld_library_path.
16656         * testsuite/libgomp.fortran/fortran.exp: Likewise.
16658 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
16660         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
16661         decls.
16662         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
16663         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
16664         (parse_affinity): New function.
16665         (initialize_env): Call it and gomp_init_affinity.
16666         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
16667         create new pthread_attr_t and call gomp_init_thread_affinity
16668         on it for each thread before passing the attribute to pthread_create.
16669         * config/linux/affinity.c: New file.
16670         * config/posix/affinity.c: New file.
16671         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
16672         * configure: Rebuilt.
16673         * config.h.in: Rebuilt.
16674         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
16675         * Makefile.in: Rebuilt.
16677 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
16679         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
16680         *-*-darwin*.
16681         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
16682         and use it if found.
16684 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
16686         * testsuite/config/default.exp: New file.
16687         * testsuite/lib/libgomp.exp: New file.
16688         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
16689         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
16690         load_lib *, load_gcc_lib *): Move to libgomp.exp.
16691         (libgomp_load): Remove.
16692         * testsuite/lib/libgomp.exp (libgomp_init): Compute
16693         always_ld_library_path, not ld_library_path.  Set additional_flags
16694         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
16695         (target_compile): Do not call libgomp_init.  Append lang_library_path
16696         and lang_link_flags to options.
16697         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
16698         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
16699         here.
16700         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
16701         always_ld_library_path.  Set LD_LIBRARY_PATH here.
16702         * testsuite/libgomp.fortran/fortran.exp: Ditto.
16703         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
16704         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
16705         CX8 flag.
16706         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
16707         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
16708         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
16709         * testsuite/libgomp.c/pr29947-1.c: Ditto.
16710         * testsuite/libgomp.c/atomic-10.c: Ditto.
16712 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
16714         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
16715         dg-final cleanup-modules line.
16716         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
16717         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
16718         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
16719         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
16720         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
16721         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
16722         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
16724 2007-03-18  Andreas Schwab  <schwab@suse.de>
16726         * acinclude.m4: Adjust regular expression for ld version
16727         extraction.
16728         * configure: Regenerate.
16730 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
16732         * Makefile.am: Add install-pdf target as copied from
16733         automake v1.10 rules.
16734         * Makefile.in: Regenerate
16736 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
16738         PR libgomp/28486
16739         * configure: Regenerate.
16741         PR c++/30703
16742         * testsuite/libgomp.c++/pr30703.C: New test.
16744 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
16746         Revert:
16747         2006-07-05  Eric Christopher  <echristo@apple.com>
16748         * configure.ac: Depend addition of -pthread on host OS.
16749         * configure: Regenerate.
16751 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16753         * libgomp.texi: Fix spacing after abbreviations.
16755 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
16757         PR libgomp/30546
16758         * configure.ac: Add check for makeinfo
16759         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
16760         if an appropriate version of makeinfo is found.
16761         * aclocal.m4: Regenerated.
16762         * configure: Regenerated.
16763         * Makefile.in: Regenerated.
16764         * testsuite/Makefile.in: Regenerated.
16766 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
16768         PR libgomp/30540
16769         * libgomp.texi: More about implementation-dependent settings.
16771 2007-01-26  Tobias Burnus  <burnus@net-b.de>
16773         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
16775 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
16777         PR middle-end/30494
16778         * testsuite/libgomp.c/pr30494.c: New test.
16780 2007-01-15  Tom Tromey  <tromey@redhat.com>
16782         * configure: Rebuilt.
16783         * configure.ac: Fixed comment.
16785 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
16787         * libgomp.texi: Document implementation specific default values of
16788         environment variables.
16790 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
16792         PR libgomp/28209
16793         * libgomp.texi: New file.
16794         * configure.ac: Add --enable-generated-files-in-srcdir option.
16795         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
16796         files to srcdir.
16797         * Makefile.in: Regenerated.
16798         * config.h.in: Regenerated.
16799         * testsuite/Makefile.in: Regenerated.
16800         * NOTES: Removed.
16802 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
16804         PR libgomp/29949
16805         * env.c (omp_set_num_threads): Set illegal thread count to 1.
16807 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
16809         * configure: Regenerate.
16811 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
16813         PR libgomp/29947
16814         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
16815         start if there shouldn't be any loop iterations.
16816         (gomp_loop_ordered_static_start): Remove start == end test.
16817         * testsuite/libgomp.c/pr29947-1.c: New test.
16818         * testsuite/libgomp.c/pr29947-2.c: New test.
16820 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
16822         * configure.tgt: Force initial-exec TLS model on Linux only.
16824 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
16826         * configure: Regenerated.
16828 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
16830         * env.c (parse_schedule): Reject out of range values.
16831         (parse_unsigned_long): Reject out of range, negative or zero values.
16833 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
16835         PR fortran/29629
16836         * testsuite/libgomp.fortran/pr29629.f90: New test.
16838 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
16840         PR libgomp/29494
16841         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
16842         * config/posix95: New directory.
16843         * config/posix95/omp-lock.h: New file.
16844         * config/posix95/lock.c: Likewise.
16846 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
16848         * aclocal.m4: Regenerate.
16849         * configure: Regenerate.
16851 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
16853         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
16854         '<' to '<='.
16856 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
16858         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
16859         test.
16860         * configure: Regenerate.
16861         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
16863 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
16865         PR middle-end/25261
16866         PR middle-end/28790
16867         * testsuite/libgomp.c/nestedfn-4.c: New test.
16868         * testsuite/libgomp.c/nestedfn-5.c: New test.
16869         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
16871         PR fortran/29097
16872         * testsuite/libgomp.fortran/condinc1.f: New test.
16873         * testsuite/libgomp.fortran/condinc2.f: New test.
16874         * testsuite/libgomp.fortran/condinc3.f90: New test.
16875         * testsuite/libgomp.fortran/condinc4.f90: New test.
16876         * testsuite/libgomp.fortran/condinc1.inc: New file.
16878 2006-09-18  Tom Tromey  <tromey@redhat.com>
16880         * configure: Rebuilt.
16882 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
16884         PR c/28768
16885         PR preprocessor/14634
16886         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
16887         to AC_DEFINE.
16888         * configure: Regenerate.
16890 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
16892         * testsuite/libgomp.fortran/reduction3.f90: Change
16893         -2147483648 to -huge(i)-1 to avoid overflow.
16894         * testsuite/libgomp.fortran/reduction4.f90: Change
16895         Z'ffffffff' to not(0) to avoid overflow.
16897 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
16899         PR libgomp/25938
16900         * Makefile.am (libsubincludedir): New.
16901         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
16902         * Makefile.in: Regenerate.
16904 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
16906         PR libgomp/28725
16907         * env.c: Include ctype.h.
16908         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
16909         leading and/or trailing whitespace and compare strings case
16910         insensitively.
16912 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
16914         PR fortran/28390
16915         * testsuite/libgomp.fortran/pr28390.f: New test.
16917 2006-07-05  Eric Christopher  <echristo@apple.com>
16919         * configure.ac: Depend addition of -pthread on host OS.
16920         * configure: Regenerate.
16922 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
16924         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
16925         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
16926         defined.
16928 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
16930         PR libgomp/26175
16931         PR libgomp/26477
16932         * configure.ac: If neither --enable-linux-futex nor
16933         --disable-linux-futex is passed, determine the default by checking
16934         for compiling and/or running against NPTL.  With --enable-linux-futex,
16935         check if SYS_gettid and SYS_futex are defined.
16936         * configure: Rebuilt.
16938 2006-06-14  Richard Henderson  <rth@redhat.com>
16940         PR libgomp/28008
16941         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
16942         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
16944 2006-06-09  Richard Henderson  <rth@redhat.com>
16946         * env.c (gomp_nthreads_var): Change to unsigned long.
16947         (gomp_run_sched_chunk): Likewise.
16948         (parse_unsigned_long): Rename from parse_num_threads and generalize.
16949         (initialize_env): Initialize gomp_thread_attr.
16950         * libgomp.h (gomp_nthreads_var): Update decl.
16951         (gomp_run_sched_chunk): Likewise.
16952         (gomp_thread_attr): Declare.
16953         * team.c (gomp_thread_attr): Export.
16954         (initialize_team): Don't initialize it.
16956 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
16958         PR fortran/27916
16959         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
16960         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
16962 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
16964         * config/mingw32/time.c: New file.
16965         * configure.tgt: Use it.
16967 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
16969         * Makefile.am: Add install-html target. Add install-html to .PHONY
16970         * Makefile.in: Regenerate.
16972 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16974         PR libgomp/27612
16975         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
16976         * testsuite/libgomp.c/critical-1.c: Likewise.
16977         * testsuite/libgomp.c/loop-1.c: Likewise.
16978         * testsuite/libgomp.c/loop-2.c: Likewise.
16979         * testsuite/libgomp.c/single-1.c: Likewise.
16980         * testsuite/libgomp.c/ordered-1.c: Likewise.
16981         * testsuite/libgomp.c/ordered-2.c: Likewise.
16983 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
16985         PR middle-end/27416
16986         * libgomp.fortran/pr27416-1.f90: New test.
16988 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
16990         PR fortran/27395
16991         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
16992         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
16994 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
16996         PR c++/26943
16997         * testsuite/libgomp.c/pr26943-1.c: New test.
16998         * testsuite/libgomp.c/pr26943-2.c: New test.
16999         * testsuite/libgomp.c/pr26943-3.c: New test.
17000         * testsuite/libgomp.c/pr26943-4.c: New test.
17001         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
17002         * testsuite/libgomp.c++/pr26943.C: New test.
17004 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
17006         PR middle-end/27337
17007         * testsuite/libgomp.c++/pr27337.C: New test.
17009 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
17011         PR c/26171
17012         * testsuite/libgomp.c/pr26171.c: New test.
17014 2006-04-25  Richard Henderson  <rth@redhat.com>
17016         PR libgomp/25865
17017         * configure.ac: Use GCC_CHECK_TLS.
17018         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
17019         * Makefile.in, aclocal.m4, configure: Regenerate.
17021 2006-04-10  Matthias Klose  <doko@debian.org>
17023         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
17024         directory names containing underscores.
17026 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
17028         PR c++/26691
17029         * testsuite/libgomp.c++/pr26691.C: New test.
17031 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
17033         * testsuite/libgomp.fortran/retval2.f90: New test.
17035 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
17037         * testsuite/libgomp.c++: New directory.
17039 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
17041         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
17042         * config/posix/sem.c: Implement the above.
17044 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
17046         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
17047         define HAVE_BROKEN_POSIX_SEMAPHORES.
17048         * configure: Rebuilt.
17049         * config.h.in: Rebuilt.
17051 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
17053         PR bootstrap/26161
17054         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
17055         for the other pthread check.
17056         * configure: Regenerate.
17057         * config.h.in: Regenerate.
17059 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
17061         PR libgomp/25938
17062         PR libgomp/25984
17063         * Makefile.am (fincludedir): New variable.
17064         (nodist_include_HEADERS): Remove Fortran files.
17065         (nodist_finclude_HEADERS): New variable.
17066         * Makefile.in: Regenerated.
17068 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
17070         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
17071         Remove tests for returning assumed character length arrays.
17073 2006-02-12  Roger Sayle  <roger@eyesopen.com>
17074             John David Anglin  <dave@hiauly1.hia.nrc.ca>
17076         PR libgomp/25936
17077         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
17079 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
17081         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
17083 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
17085         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
17086         part of LD_LIBRARY_PATH manually.
17088 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
17090         PR libgomp/25852
17091         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
17092         libgomp_init.
17094 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
17096         PR libgomp/25884
17097         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
17098         * configure.ac (PERL): Don't set.
17099         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
17100         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
17101         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
17102         * omp.h.in: Wrap the new configure substitutions with @ characters.
17103         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
17104         * aclocal.m4, configure, Makefile.in: Regenerate.
17105         * mkomp_h.pl: Delete.
17107 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
17109         PR libgomp/25259
17110         * configure.ac: Use GCC_HEADER_STDINT.
17111         * libgomp.h: Include gstdint.h.
17112         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
17113         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
17115 2006-01-24  Richard Henderson  <rth@redhat.com>
17117         PR libgomp/25942
17118         * configure.ac: Add AM_MAINTAINER_MODE.
17119         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
17121 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
17123         * Makefile.in: Regenerate.
17124         * testsuite/Makefile.in: Regenerate.
17125         * aclocal.m4: Regenerate.
17127 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
17129         * config/posix/proc.c: Conditional include of sys/loadavg.h for
17130         Solaris.
17131         * configure.ac: Add check for loadavg.h.
17132         (link_gomp): Adjust comment.
17133         * configure: Regenerate.
17134         * config.h.in: Regenerate.
17136 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
17138         PR libgomp/25877
17139         * configure.ac: Remove check for alloca.h.
17140         * configure: Regenerate.
17141         * config.h.in: Regenerate.
17142         * libgomp.h: define gomp_alloca to be __builtin_alloca.
17143         * team.c: Remove use of alloca.h.
17144         Call gomp_alloca instead of alloca.
17146 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
17148         PR libgomp/25877
17149         * team.c: Add include of alloca.h.
17150         * configure.ac: Add check for alloca.h.
17151         * configure: Regenerate.
17152         * config.h.in: Regenerate.
17154 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
17156         PR fortran/25219
17157         * testsuite/libgomp.fortran/pr25219.f90: New test.
17159 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
17161         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
17162         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
17163         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17164         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17165         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
17166         testsuite/libgomp.fortran/threadprivate1.f90,
17167         testsuite/libgomp.fortran/threadprivate2.f90,
17168         testsuite/libgomp.fortran/threadprivate3.f90,
17169         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17170         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17171         testsuite/libgomp.fortran/omp_parse3.f90: Change required
17172         effective-target to TLS runtime.
17174         * testsuite/libgomp.fortran/pr25162.f: Require
17175         effective-target TLS runtime.
17177 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
17179         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
17180         * testsuite/libgomp.c/nestedfn-3.c: New test.
17182 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
17184         PR fortran/25162
17185         * testsuite/libgomp.fortran/pr25162.f: New test.
17187 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
17189         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
17190         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
17192 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
17194         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
17195         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
17196         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
17197         single.c, team.c, work.c, config/linux/alpha/futex.h,
17198         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
17199         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
17200         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
17201         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
17202         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
17203         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
17204         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
17205         FSF address.
17207 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
17209         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
17210         to nodist_noinst_HEADERS.
17211         * Makefile.in: Rebuilt.
17213         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
17214         add integer count field.
17215         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
17216         omp_nest_lock_t type change.
17217         (omp_init_nest_lock): Likewise.  Initialize count to 0.
17218         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
17219         Increment count.
17220         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
17221         Decrement count.
17222         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
17223         Increment count if successful and return the new nesting level.
17224         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
17225         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
17226         * testsuite/libgomp.c/lib-1.c: New test.
17227         * testsuite/libgomp.fortran/lib1.f90: New test.
17228         * testsuite/libgomp.fortran/lib2.f: New test.
17229         * testsuite/libgomp.fortran/lib3.f: New test.
17231 2005-11-17  Richard Henderson  <rth@redhat.com>
17233         PR 24845
17234         * Makefile.am (nodist_toolexeclib_HEADERS): New.
17235         * configure.ac (link_gomp): New.  Substitute it.
17236         (AC_CONFIG_FILES): Add libgomp.spec.
17237         * libgomp.spec.in: New file.
17238         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
17239         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
17241 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
17243         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
17244         reduction(-:var) behaving the same as reduction(+:var).
17245         * testsuite/libgomp.c/reduction-4.c: New test.
17247 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
17249         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
17250         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
17251         testsuite/libgomp.c/copyin-3.c,
17252         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17253         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17254         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
17255         testsuite/libgomp.c++/pr24455.C,
17256         testsuite/libgomp.fortran/threadprivate1.f90,
17257         testsuite/libgomp.fortran/threadprivate2.f90,
17258         testsuite/libgomp.fortran/threadprivate3.f90,
17259         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17260         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17261         testsuite/libgomp.fortran/omp_parse3.f90: Require
17262         effective-target TLS.
17264 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
17266         * HEADER: Remove.
17268 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
17270         PR libgomp/24797
17271         * team.c (initialize_team): Pass NULL rather than free as
17272         pthread_key_create destructor.  Initialize thread specific data
17273         pointer in initial thread to a static local variable rather than
17274         malloced memory.
17276 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
17278         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
17279         its location to ld_library_path.
17281 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
17283         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
17285 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
17287         * testsuite/libgomp.c: Rename from libgomp.dg.
17289 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
17291         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
17292         threadprivate variable 'i'.
17294 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
17296         * config/linux/s390/futex.h: New file.
17297         * configure.tgt: Use it.
17299         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
17300         before the parallel.
17302 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
17304         PR c++/24734
17305         * testsuite/libgomp.c++/master-1.C: New test.
17307 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
17309         * testsuite/libgomp.dg/copyin-3.c: New test.
17311 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
17313         * testsuite/libgomp.fortran/retval1.f90: New test.
17314         * testsuite/libgomp.fortran/vla7.f90: New test.
17316 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
17318         * testsuite/libgomp.fortran/vla2.f90: New test.
17319         * testsuite/libgomp.fortran/vla3.f90: New test.
17320         * testsuite/libgomp.fortran/vla4.f90: New test.
17321         * testsuite/libgomp.fortran/vla5.f90: New test.
17322         * testsuite/libgomp.fortran/vla6.f90: New test.
17324 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
17326         * config/linux/sparc/futex.h: New file.
17327         * configure.tgt: Use it.
17328         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
17330         * critical.c: Include stdlib.h.
17331         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
17332         ignoring return value.
17333         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
17334         LIBGOMP_CHECK_SYNC_BUILTINS check.
17335         * configure: Rebuilt.
17337 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
17339         * testsuite/libgomp.fortran/vla1.f90: New test.
17341 2005-10-31  Richard Henderson  <rth@redhat.com>
17343         * testsuite/libgomp.fortran/character2.f90: Fix race condition
17344         setting 's' in different threads.
17346 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
17348         * libgomp.h (attribute_hidden, ialias): Define.
17349         * config/posix/proc.c (omp_get_num_procs): Add ialias.
17350         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
17351         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
17352         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17353         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17354         omp_test_lock, omp_test_nest_lock): Likewise.
17355         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
17356         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17357         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17358         omp_test_lock, omp_test_nest_lock): Likewise.
17359         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
17360         omp_get_dynamic, omp_get_nested): Likewise.
17361         * parallel.c (omp_get_num_threads, omp_get_max_threads,
17362         omp_get_thread_num, omp_in_parallel): Likewise.
17363         * fortran.c (ialias_redirect): Define.
17364         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
17365         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
17366         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
17367         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
17368         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
17369         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
17370         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
17371         omp_get_wtime): Add ialias_redirect.
17373 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
17375         * fortran.c: Include stdlib.h.
17377 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
17379         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
17380         * Makefile.in: Regenerated.
17382 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
17384         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
17385         * libgomp_f.h.in (omp_check_defines): New function.
17386         * env.c: Include libgomp_f.h.
17387         (initialize_env): Call omp_check_defines.
17389         * testsuite/libgomp.dg/copyin-2.c: New test.
17390         * testsuite/libgomp.c++/copyin-2.C: New test.
17391         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
17393         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
17394         * testsuite/libgomp.fortran/sharing2.f90: New test.
17396         * testsuite/libgomp.dg/copyin-1.c: New test.
17397         * testsuite/libgomp.c++/copyin-1.C: New test.
17399 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
17401         * testsuite/libgomp.fortran/crayptr1.f90: New test.
17403         * testsuite/libgomp.fortran/workshare1.f90: New test.
17405         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
17406         only test.
17407         * libgomp.fortran/sharing1.f90: New test.
17409 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
17411         PR c++/24502
17412         * testsuite/libgomp.c++/loop-7.C: New test.
17414         * testsuite/libgomp.dg/nestedfn-2.c: New test.
17416         * testsuite/libgomp.dg/nestedfn-1.c: New test.
17417         * testsuite/libgomp.fortran/reduction6.f90: New test.
17418         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
17420 2005-10-23  Richard Henderson  <rth@redhat.com>
17422         * testsuite/libgomp.c++/ctor-1.C: New.
17423         * testsuite/libgomp.c++/ctor-2.C: New.
17424         * testsuite/libgomp.c++/ctor-3.C: New.
17425         * testsuite/libgomp.c++/ctor-4.C: New.
17426         * testsuite/libgomp.c++/ctor-5.C: New.
17427         * testsuite/libgomp.c++/ctor-6.C: New.
17428         * testsuite/libgomp.c++/ctor-7.C: New.
17429         * testsuite/libgomp.c++/ctor-8.C: New.
17430         * testsuite/libgomp.c++/ctor-9.C: New.
17432 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
17434         PR 24455
17435         * testsuite/libgomp.c++/pr24455-1.C: New test.
17436         * testsuite/libgomp.c++/pr24455.C: New test.
17437         * testsuite/libgomp.dg/pr24455-1.c: New test.
17438         * testsuite/libgomp.dg/pr24455.c: New test.
17440 2005-10-20  Richard Henderson  <rth@redhat.com>
17442         * testsuite/libgomp.c++/loop-6.C: New.
17443         * testsuite/libgomp.dg/loop-3.c: New.
17445 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
17447         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
17448         explicitly private.
17449         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
17450         explicitly shared.
17452 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
17454         * testsuite/libgomp.fortran/jacobi.f: New test.
17456 2005-10-19  Richard Henderson  <rth@redhat.com>
17458         * configure.tgt (i?86-linux): Default to with_arch instead of
17459         CFLAGS.  Add -mtune to match target_cpu.
17460         (x86_64-linux): Tune to i686.
17462         * fortran.c (omp_test_nest_lock_): Fix typo.
17464 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
17466         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
17467         gomp_ordered_sync): Do nothing if team->nthreads == 1.
17468         * testsuite/libgomp.dg/ordered-3.c: New test.
17470         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
17471         Remove volatile keyword.
17473         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
17474         in COMMON block to avoid warnings on 64-bit targets.
17476 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
17478         * testsuite/libgomp.dg/shared-3.c: New test.
17480 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
17482         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
17483         * testsuite/libgomp.fortran/reduction5.f90: New test.
17485 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
17487         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
17488         dg-options.
17489         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
17490         flush loop now that __sync_synchronize has proper memory barrier.
17491         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
17492         Add -ffixed-form to dg-options.
17494 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
17496         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
17497         from subdirectories.
17498         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
17499         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
17500         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
17501         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
17502         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
17503         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
17504         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
17505         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
17506         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
17507         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
17508         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
17509         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
17510         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
17511         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
17512         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
17513         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
17514         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
17515         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
17516         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
17517         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
17518         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
17519         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
17520         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
17521         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
17522         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
17524 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
17526         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
17527         lang_library_path exists.  Use find instead of glob to gather tests.
17528         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
17530 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
17532         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
17533         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
17534         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
17535         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
17536         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
17537         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
17538         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
17539         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
17540         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
17541         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
17542         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
17543         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
17544         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
17546 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
17548         * testsuite/libgomp.dg/vla-1.c: New test.
17550         * testsuite/libgomp.fortran/reference2.f90: New test.
17552         * testsuite/libgomp.fortran/character2.f90: Remove explicit
17553         declaration of omp_get_thread_num.
17554         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
17555         use omp_lib.
17557         * testsuite/libgomp.fortran/reduction1.f90: New test.
17558         * testsuite/libgomp.fortran/reduction2.f90: New test.
17559         * testsuite/libgomp.fortran/reduction3.f90: New test.
17560         * testsuite/libgomp.fortran/reduction4.f90: New test.
17562 2005-10-13  Richard Henderson  <rth@redhat.com>
17564         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
17565         * Makefile.in: Regenerate.
17566         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
17567         * libgomp.h: Include bar.h.
17568         (struct gomp_barrier): Remove.
17569         (struct gomp_team): Add barrier.  Replace master_barrier with
17570         master_release.  Replace threads with ordered_release.
17571         (struct gomp_thread): Replace barrier with release.
17572         * ordered.c (gomp_ordered_first): Update for ordered_release change.
17573         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
17574         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
17575         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
17576         (GOMP_single_copy_end): Likewise.
17577         * team.c (gomp_threads_dock): New.
17578         (gomp_barrier_init, gomp_barrier_destroy): Remove.
17579         (gomp_thread_start): Use gomp_barrier_wait.
17580         (new_team, free_team): Update for gomp_team changes.
17581         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
17582         (gomp_team_end): Use gomp_barrier_wait.
17583         (initialize_team): Update for gomp_thread changes.
17584         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
17585         (gomp_work_share_end_nowait): Use atomic ops when available.
17586         * config/linux/bar.c, config/linux/bar.h: New files.
17587         * config/posix/bar.c, config/posix/bar.h: New files.
17589 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
17591         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
17592         * testsuite/libgomp.dg/single-2.c: New test.
17594         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
17595         lang_link_flags): Unset, so that they aren't inherited from previously
17596         sourced *.exp.
17598         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
17600 2005-10-12  Richard Henderson  <rth@redhat.com>
17602         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
17603         (libgomp_init): Use lang_test_file, lang_library_path, and
17604         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
17606         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
17607         (lang_test_file, lang_link_flags): New.
17608         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
17610         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
17611         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
17612         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
17613         testsuite/libgomp.c++/parallel-1.C,
17614         testsuite/libgomp.c++/reduction-1.C,
17615         testsuite/libgomp.c++/reduction-2.C,
17616         testsuite/libgomp.c++/reduction-3.C,
17617         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
17618         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
17619         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
17620         New files, largely cribbed from the C testsuite.
17622 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
17624         * testsuite/libgomp.fortran/character1.f90: New test.
17625         * testsuite/libgomp.fortran/character2.f90: New test.
17627         * testsuite/libgomp.dg/nested-1.c: New test.
17628         * testsuite/libgomp.dg/nested-2.c: New test.
17629         * testsuite/libgomp.fortran/do1.f90: New test.
17630         * testsuite/libgomp.fortran/do2.f90: New test.
17632         * testsuite/libgomp.fortran/reference1.f90: New test.
17634 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
17636         * testsuite/libgomp.dg/reduction-1.c: New test.
17637         * testsuite/libgomp.dg/reduction-2.c: New test.
17638         * testsuite/libgomp.dg/reduction-3.c: New test.
17640 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
17642         * testsuite/libgomp.dg/atomic-1.c: New test.
17643         * testsuite/libgomp.dg/atomic-2.c: New test.
17645 2005-10-09  Richard Henderson  <rth@redhat.com>
17647         * critical.c (atomic_lock): New.
17648         (initialize_critical): Initialize it.
17649         (GOMP_atomic_start, GOMP_atomic_end): New.
17650         * libgomp.map: Export them.
17651         * libgomp_g.h: Declare them.
17653         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
17655 2005-10-02  Richard Henderson  <rth@redhat.com>
17657         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
17658         to XCFLAGS instead of CFLAGS.
17660 2005-09-30  Richard Henderson  <rth@redhat.com>
17662         * configure.ac: Determine whether -pthread or -lpthread is needed.
17663         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
17664         * Makefile.in, configure: Rebuild.
17666 2005-09-28  Richard Henderson  <rth@redhat.com>
17668         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
17669         * testsuite/libgomp.dg/omp-single-3.c: New test.
17671 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
17673         * testsuite/libgomp.dg/omp-single-2.c: New test.
17674         * testsuite/libgomp.dg/shared-2.c: Fix return code.
17676 2005-09-27  Richard Henderson  <rth@redhat.com>
17678         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
17679         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
17681 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
17683         * testsuite/libgomp.dg/omp-loop03.c: New test.
17685 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
17687         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
17689 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
17691         * testsuite/libgomp.dg/omp-single-1.c: New test.
17692         * testsuite/libgomp.dg/shared-1.c: Return 0.
17693         Add prototype for abort.
17694         * testsuite/libgomp.dg/shared-2.c: Likewise.
17696 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
17698         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
17699         constructs.
17701 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
17703         * testsuite/libgomp.dg/shared-1.c: New test.
17704         * testsuite/libgomp.dg/shared-2.c: New test.
17706 2005-09-24  Richard Henderson  <rth@redhat.com>
17708         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
17710 2005-09-24  Richard Henderson  <rth@redhat.com>
17712         * iter.c (gomp_iter_static_next): Round up when computing number
17713         of iterations.  Don't bother distributing a remainder equally.
17715         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
17716         Don't call srand.  Zero b before testing.
17717         (main): New.
17719 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
17721         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
17722         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
17724 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
17726         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
17727         without !$omp end do, followed immediately by subroutine end.
17729 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
17731         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
17733 2005-09-22  Richard Henderson  <rth@redhat.com>
17735         * critical.c (GOMP_critical_name_start): Change argument to void**.
17736         Reuse the pointer space if the mutex fits.
17737         (GOMP_critical_name_end): Likewise.
17738         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
17739         * libgomp_g.h (GOMP_critical_name_start): Update decl.
17740         (GOMP_critical_name_end): Likewise.
17741         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
17742         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
17744 2005-09-20  Richard Henderson  <rth@redhat.com>
17746         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
17747         (create_lock_lock): New.
17748         (initialize_critical): Initialize it.
17749         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
17750         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
17752 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
17754         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
17756 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
17758         * testsuite/libgomp.dg/omp-loop01.c: New test.
17759         * testsuite/libgomp.dg/omp-loop02.c: New test.
17761 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
17763         * configure.ac (AC_PROG_FC): Add.
17764         (USE_FORTRAN): New automake conditional.
17765         * configure: Rebuilt.
17766         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
17767         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
17768         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
17769         Add rules to build them.
17770         * Makefile.in: Rebuilt.
17771         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
17772         OMP_NEST_LOCK_KIND.
17773         * libgomp.map: Add Fortran wrappers.
17774         * libgomp_f.h.in: New file.
17775         * omp_lib.h.in: New file.
17776         * omp_lib.f90.in: New file.
17777         * fortran.c: New file.
17778         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
17779         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
17780         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
17781         libgfortran has been built.
17782         * testsuite/libgomp.fortran/fortran.exp: New file.
17783         * testsuite/libgomp.fortran/omp_cond1.f: New test.
17784         * testsuite/libgomp.fortran/omp_cond2.f: New test.
17785         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
17786         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
17787         * testsuite/libgomp.fortran/omp_hello.f: New test.
17788         * testsuite/libgomp.fortran/omp_orphan.f: New test.
17789         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
17790         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
17791         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
17792         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
17793         * testsuite/libgomp.fortran/omp_reduction.f: New test.
17794         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
17795         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
17797 2005-08-30  Richard Henderson  <rth@redhat.com>
17799         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
17800         function for when aliases are not usable.
17801         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
17802         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
17803         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
17804         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
17805         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
17806         GOMP_loop_ordered_guided_next): Likewise.
17807         * ordered.c (GOMP_ordered_start): Likewise.
17809 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
17811         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
17812         * testsuite/libgomp.dg/omp_hello.c: Fix return code
17813         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
17814         * testsuite/libgomp.dg/omp_orphan.c: Likewise
17815         * testsuite/libgomp.dg/omp_reduction.c: Likewise
17816         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
17817         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
17818         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
17819         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
17821 2005-07-07  Eric Christopher  <echristo@redhat.com>
17822             Diego Novillo  <dnovillo@redhat.com>
17824         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
17825         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
17826         up code.
17827         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
17828         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
17829         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
17830         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
17831         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
17832         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
17833         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
17835 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
17837         * TOPLEVEL.patch: Remove.
17839 2005-05-16  Richard Henderson  <rth@redhat.com>
17841         * configure.ac: Test for clock_gettime.
17842         * config.h.in, configure: Rebuild.
17843         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
17844         (omp_get_wtime): Use clock_gettime if available.
17845         (omp_get_wtick): Use clock_getres if available.
17847 2005-05-11  Richard Henderson  <rth@redhat.com>
17849         * config/linux/ia64/futex.h: New file.
17850         * configure.tgt: Use it.
17852         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
17854 2005-05-07  Richard Henderson  <rth@redhat.com>
17856         * config/linux/powerpc/futex.h: New file.
17857         * configure.tgt: Use it.
17859         * config/linux/i486/futex.h: Merge ...
17860         * config/linux/x86_64/futex.h: ... into ...
17861         * config/linux/x86/futex.h: ... here.
17862         * configure.tgt: Update to match.
17864 2005-05-06  Richard Henderson  <rth@redhat.com>
17866         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
17867         * config/linux/i486/futex.h: Likewise.
17868         * config/linux/x86_64/futex.h: Likewise.
17870         * config/linux/lock.c: New file.
17871         * config/linux/omp-lock.h: New file.
17873         * critical.c, env.h: Don't include omp.h
17874         * config/posix/lock.c: Include libgomp.h instead of omp.h.
17875         * config/posix/time.c: Likewise.
17876         * config/posix/omp-lock.h: New file.
17877         * libgomp.h: Include omp-lock.h and omp.h.
17878         * Makefile.am (nodist_include_HEADERS): New.
17879         (omp.h): New rule.
17880         * configure.ac (PERL): New.
17881         * mkomp_h.pl: New file.
17882         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
17883         with templates.
17884         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
17886         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
17887         build directory.  Re-add -march=i486 hack.
17889         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
17890         (libgomp_link_flags): Remove.
17891         (libgomp_initialized): Remove.
17892         (libgomp_init): Don't protect from reinitialization.  Copy code
17893         from libstdc++ for getting the multilib set correctly.
17895 2005-05-05  Richard Henderson  <rth@redhat.com>
17897         * config/linux/alpha/futex.h: New file.
17898         * configure.tgt (alpha*-*-linux*): Use it.
17900         * config/posix/mutex.c: New file.
17901         * config/posix/sem.c: Use libgomp.h.
17903         * configure.tgt (x86_64-linux): Also test CC for -m32.
17904         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
17906         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
17907         after $gccpath.
17909         * Makefile.am (SUBDIRS): New.
17910         (libgomp_la_LDFLAGS): Add -lpthread.
17911         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
17912         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
17914         * libgomp_g.h: New file.
17915         * libgomp.h: Split out all public declarations to libgomp_g.h.
17916         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
17917         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
17918         * config/linux/sem.h: Likewise.
17919         * config/posix/sem.h: Likewise.
17921         * Makefile.am (AM_LDFLAGS): New.
17922         (libgomp_version_script): Split out from ...
17923         (libgomp_la_LDFLAGS): ... here.
17924         (libgomp_version_info): New.
17925         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
17926         (LIBGOMP_ENABLE): New.
17927         (LIBGOMP_CHECK_LINKER_FEATURES): New.
17928         (LIBGOMP_ENABLE_SYMVERS): New.
17929         * configure.ac (AC_INIT): Version 1.0.
17930         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
17931         (enable-linux-futex): Likewise.  Rename from enable-futex.
17932         (libtool_VERSION): New.
17933         (LIBGOMP_ENABLE_SYMVERS): Use it.
17934         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
17935         * Makefile.in, aclocal.m4, configure: Rebuild.
17937         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
17938         (gomp_mutex_unlock_slow): Fix typo.
17939         * config/linux/sem.c: Similarly.
17940         (gomp_sem_post_slow): Fix typo.
17941         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
17942         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
17943         [__PIC__] (sys_futex0): Don't use tmp output in asm.
17945         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
17946         (libgomp_la_LDFLAGS): Add top_srcdir to path.
17947         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
17948         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
17949         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
17950         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
17951         LDFLAGS.  Pull enable_futex check to top-level.
17952         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
17953         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
17955         First attempt at real configury.
17956         * Makefile, config.h: Remove file.
17957         * Makefile.am, Makefile.in: New file.
17958         * acinclude.m4 aclocal.m4: New file.
17959         * configure.ac, configure.tgt, configure: New file.
17961         * config/posix/lock.c: Rename from sys-lock.c.
17962         * config/posix/mutex.h: Rename from sys-mutex.h.
17963         * config/posix/sem.c: Rename from sys-sem.c.
17964         * config/posix/sem.h: Rename from sys-sem.h.
17965         * config/posix/proc.c: Rename from sys-proc.c.
17966         * config/posix/time.c: Rename from sys-proc.c.
17968         * config/linux/mutex.c: New file.
17969         * config/linux/mutex.h: New file.
17970         * config/linux/sem.c: New file.
17971         * config/linux/sem.h: New file.
17972         * config/linux/i486/futex.h: New file.
17973         * config/linux/x86_64/futex.h: New file.
17975 2005-05-04  Richard Henderson  <rth@redhat.com>
17977         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
17978         * libgomp.h: Declare them.
17979         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
17980         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
17982 2005-05-04  Richard Henderson  <rth@redhat.com>
17984         * libgomp-1 code drop
17986 2005-05-04  Richard Henderson  <rth@redhat.com>
17988         * iter.c (gomp_iter_static_next): Return tri-state on 0.
17989         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
17990         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
17991         (gomp_iter_static_next): Update.
17992         (gomp_ordered_static_next): Update.
17993         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
17994         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
17995         totally empty range.
17996         (gomp_loop_ordered_static_next): Refine test for calling
17997         gomp_ordered_static_next.
17998         * testsuite/ordered-1.c: Add case for more threads than iterations.
18000         * iter.c (gomp_iter_runtime_next_locked): Remove.
18001         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
18002         gomp_loop_guided_start, gomp_loop_ordered_static_start,
18003         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
18004         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
18005         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
18006         gomp_loop_ordered_guided_next): Downcase name, make static, add
18007         an external alias with the old name.
18008         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
18009         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
18010         switch and call one of the above static functions.
18011         * libgomp.h: Update.
18013         * work.c (gomp_work_share_start): Lock the mutex for !first too.
18014         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
18015         GOMP_loop_guided_start, GOMP_loop_runtime_start,
18016         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
18017         GOMP_loop_ordered_guided_start): Update to match.
18018         * sections.c (GOMP_sections_start): Likewise.
18019         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
18021         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18022         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
18023         Use bounds check instead of modulus.
18024         (gomp_ordered_sync): Split out of GOMP_ordered_start.
18025         (gomp_ordered_last): Don't sync with ordered_owner here.
18026         (gomp_ordered_next): Likewise.
18027         (gomp_ordered_static_loop_next): Likewise.
18028         * loop.c, libgomp.h: Update to match.
18030         * libgomp.h (GOMP_barrier): Declare.
18032         * testsuite/barrier-1.c: New file.
18033         * testsuite/critical-1.c: New file.
18034         * testsuite/ordered-2.c: New file.
18035         * testsuite/ordered-1.c: New file.
18036         * testsuite/sections-1.c: New file.
18037         * testsuite/single-1.c: New file.
18038         * testsuite/Makefile (TESTS): Add them.
18040 2005-05-04  Richard Henderson  <rth@redhat.com>
18042         * libgomp.h (struct gomp_work_share): Add ordered_owner.
18043         * loop.c (GOMP_loop_static_start): If not the startup thread,
18044         acquire the mutex to wait for initialization complete.
18045         (GOMP_loop_ordered_static_start): Likewise.
18046         (GOMP_loop_ordered_runtime_start): Likewise.
18047         (GOMP_loop_ordered_static_first): Remove.
18048         (GOMP_loop_ordered_dynamic_first): Remove.
18049         (GOMP_loop_ordered_guided_first): Remove.
18050         (GOMP_loop_ordered_runtime_first): Remove.
18051         * ordered.c (gomp_ordered_loop_first): Post to own release when
18052         we're the first thread.
18053         (gomp_ordered_loop_last): Wait on release if not owner.
18054         (gomp_ordered_loop_next): Likewise.
18055         (gomp_ordered_static_loop_init): New.
18056         (gomp_ordered_static_loop_next): Use ordered_owner.
18057         (GOMP_ordered_start): Likewise.
18058         * work.c (gomp_new_work_share): Initialize ordered_owner.
18060 2005-05-03  Richard Henderson  <rth@redhat.com>
18062         * Makefile (OPT): New.
18063         (CFLAGS): Use it.
18065         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
18066         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
18067         * libgomp.h, libgomp.map, NOTES: Update to match.
18069         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
18070         Add initialized and thr members.
18071         (gomp_thread_start): Pause when initially spawned to wait for
18072         the whole team to be created.
18073         (gomp_team_start): Release team members at the end.
18075         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
18076         (f_foo_1): Use GOMP_loop_end.
18077         (f_foo_2): Use GOMP_loop_end_nowait.
18079         * testsuite/loop-2.c: New file.
18080         * testsuite/Makefile (TESTS): Add it.
18082 2005-05-03  Richard Henderson  <rth@redhat.com>
18084         * iter.c (gomp_iter_static_next): Fix overflow check typo.
18085         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
18086         * team.c (new_team): Initialize oldest_live_gen to 1 if no
18087         initial work_share.
18089         * testsuite/Makefile: New file.
18090         * testsuite/loop-1.c: New file.
18092 2005-05-03  Richard Henderson  <rth@redhat.com>
18094         Initial implementation and checkin.
18096 Copyright (C) 2005-2022 Free Software Foundation, Inc.
18098 Copying and distribution of this file, with or without modification,
18099 are permitted in any medium without royalty provided the copyright
18100 notice and this notice are preserved.