]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Manually add ChangeLog entries from r13-3652-ge4cba49413ca429dc82f6aa2e88129ecb3fdd943
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2
3 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
4 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
5 documentation.
6 * plugin/configfrag.ac <enable_offload_targets>
7 [*-intelmic-* | *-intelmicemul-*]: Remove.
8 * configure: Regenerate.
9 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
10 handling.
11 (offload_target_to_openacc_device_type)
12 [$offload_target = *-intelmic*]: Remove.
13 (check_effective_target_offload_device_intel_mic)
14 (check_effective_target_offload_device_any_intel_mic): Remove.
15 * testsuite/libgomp.c-c++-common/on_device_arch.h
16 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
17 (any_device_arch_intel_mic): Remove.
18 * testsuite/libgomp.c-c++-common/target-45.c: Remove
19 'offload_device_any_intel_mic' XFAIL.
20 * testsuite/libgomp.fortran/target10.f90: Likewise.
21
22 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
23
24 * testsuite/libgomp.fortran/target-11.f90: New test.
25 * testsuite/libgomp.fortran/target-13.f90: New test.
26
27 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
28
29 PR libgomp/106643
30 PR fortran/96668
31 * oacc-mem.c (goacc_enter_data_internal): Support
32 OpenACC 'declare create' with Fortran allocatable arrays, part II.
33 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
34 Adjust.
35 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
36
37 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
38
39 PR libgomp/106643
40 * oacc-mem.c (goacc_enter_data_internal): Support
41 OpenACC 'declare create' with Fortran allocatable arrays, part I.
42 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
43 New.
44 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
45 New.
46
47 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
48
49 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
50 New.
51
52 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
53
54 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
55 New.
56
57 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
58 Thomas Schwinge <thomas@codesourcery.com>
59
60 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
61
62 2022-10-28 Julian Brown <julian@codesourcery.com>
63 Thomas Schwinge <thomas@codesourcery.com>
64
65 PR middle-end/90115
66 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
67 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
68 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
69 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
70 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
71
72 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
73
74 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
75 'ptx_dev->rev_data'.
76
77 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
78
79 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
80 'static' for this variable.
81 * config/nvptx/libgomp-nvptx.h: New file.
82 * config/nvptx/target.c: Include it.
83 (GOMP_ADDITIONAL_ICVS): Declare extern var.
84 (GOMP_REV_OFFLOAD_VAR): Declare var.
85 (GOMP_target_ext): Handle reverse offload.
86 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
87 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
88 * target.c (gomp_target_rev): ... this new stub function.
89 * libgomp.h (gomp_target_rev): Declare.
90 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
91 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
92 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
93 (struct ptx_device): Add rev_data member.
94 (nvptx_open_device): Remove async_engines query, last used in
95 r10-304-g1f4c5b9b; add unified-address assert check.
96 (GOMP_OFFLOAD_get_num_devices): Claim unified address
97 support.
98 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
99 offload functions exist. Make offload var available
100 on host and device.
101 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
102 (GOMP_OFFLOAD_run): Handle reverse offload.
103
104 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
105
106 PR tree-optimization/107195
107 PR target/107344
108 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
109 regions checking.
110
111 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
112
113 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
114 New.
115 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
116 on_device_arch_gcn): New.
117 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
118 requires-4.c but using heap-allocated memory.
119
120 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
121
122 PR target/105421
123 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
124
125 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
126
127 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
128 '-foffload-options' syntax.
129
130 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
131
132 * testsuite/libgomp.fortran/task-7.f90: New test.
133 * testsuite/libgomp.fortran/task-8.f90: New test.
134 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
135 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
136 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
137 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
138 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
139
140 2022-10-12 Jakub Jelinek <jakub@redhat.com>
141
142 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
143 in deprecation bullet.
144
145 2022-10-12 Jakub Jelinek <jakub@redhat.com>
146
147 * omp.h.in (omp_in_explicit_task): Declare.
148 * omp_lib.h.in (omp_in_explicit_task): Likewise.
149 * omp_lib.f90.in (omp_in_explicit_task): New interface.
150 * libgomp.map (OMP_5.2): New symbol version, export
151 omp_in_explicit_task and omp_in_explicit_task_.
152 * task.c (omp_in_explicit_task): New function.
153 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
154 (omp_in_explicit_task_): New function.
155 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
156 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
157 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
158 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
159
160 2022-10-12 Jakub Jelinek <jakub@redhat.com>
161
162 * task.c (gomp_create_artificial_team): Fix up handling of invocations
163 from within explicit task.
164 * target.c (GOMP_target_ext): Likewise.
165 * testsuite/libgomp.c/task-7.c: New test.
166 * testsuite/libgomp.c/task-8.c: New test.
167 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
168 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
169
170 2022-10-12 Martin Liska <mliska@suse.cz>
171
172 * configure: Regenerate.
173
174 2022-10-11 Olivier Hainque <hainque@adacore.com>
175 Olivier Hainque <hainque@adacore.com>
176
177 * configure: Regenerate.
178
179 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
180
181 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
182
183 2022-10-04 Jakub Jelinek <jakub@redhat.com>
184
185 * libgomp.texi (Support begin/end declare target syntax in C/C++):
186 Mark as implemented.
187
188 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
189
190 PR fortran/105318
191 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
192
193 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
194
195 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
196 for C/C++. Remove duplicated 'begin declare target' entry.
197
198 2022-09-24 Jakub Jelinek <jakub@redhat.com>
199
200 PR c/106981
201 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
202
203 2022-09-14 Julian Brown <julian@codesourcery.com>
204
205 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
206 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
207 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
208 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
209 test to here, make "run" test.
210
211 2022-09-13 Jakub Jelinek <jakub@redhat.com>
212
213 PR libgomp/106906
214 * env.c (get_icv_member_addr): Cast false to void * before assigning
215 it to icv_addr[1], and comment the whole assignment out.
216
217 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
218
219 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
220 (nvptx): ... here.
221
222 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
223
224 * libgomp.texi (Offload-Target Specifics: nvptx): Document
225 that reverse offload requires >= -march=sm_35.
226 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
227 with -misa=sm_35.
228 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
229 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
230 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
231 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
232 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
233
234 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
235
236 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
237 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
238
239 2022-09-12 Jakub Jelinek <jakub@redhat.com>
240
241 PR libgomp/106894
242 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
243 (main): Avoid tests for which corresponding non-_ALL suffixed variable
244 is in the environment, or for OMP_NUM_TEAMS on the device
245 OMP_NUM_TEAMS_DEV_?.
246
247 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
248
249 * env.c (initialize_env): Include libiberty environ.h.
250
251 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
252
253 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
254 function address table '$offload_func_table' if rev_fn_table
255 is not NULL.
256
257 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
258
259 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
260 .offload_func_table to populate rev_fn_table when requested.
261
262 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
263
264 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
265 'uint64_t **rev_fn_table' argument.
266 * oacc-host.c (host_load_image): Likewise.
267 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
268 currently unused.
269 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
270 * target.c (gomp_load_image_to_device): Update call but pass
271 NULL for now.
272
273 2022-09-09 Jakub Jelinek <jakub@redhat.com>
274
275 PR libgomp/106894
276 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
277 char * for dest[1] initialization from params[1]. Formatting fixes.
278
279 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
280
281 PR fortran/106670
282 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
283
284 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
285
286 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
287 section; move OpenMP Context Selectors from ...
288 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
289 'nvptx' sections.
290
291 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
292
293 * config/gcn/icv-device.c (omp_get_default_device): Return device-
294 specific ICV.
295 (omp_get_max_teams): Added for GCN devices.
296 (omp_set_num_teams): Likewise.
297 (ialias): Likewise.
298 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
299 specific ICV.
300 (omp_get_max_teams): Added for NVPTX devices.
301 (omp_set_num_teams): Likewise.
302 (ialias): Likewise.
303 * env.c (struct gomp_icv_list): New struct to store entries of initial
304 ICV values.
305 (struct gomp_offload_icv_list): New struct to store entries of device-
306 specific ICV values that are copied to the device and back.
307 (struct gomp_default_icv_values): New struct to store default values of
308 ICVs according to the OpenMP standard.
309 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
310 (print_env_var_error): Function that prints an error for invalid values
311 for ICVs.
312 (parse_unsigned_long_1): Removed getenv. Generalized.
313 (parse_unsigned_long): Likewise.
314 (parse_int_1): Likewise.
315 (parse_int): Likewise.
316 (parse_int_secure): Likewise.
317 (parse_unsigned_long_list): Likewise.
318 (parse_target_offload): Likewise.
319 (parse_bind_var): Likewise.
320 (parse_stacksize): Likewise.
321 (parse_boolean): Likewise.
322 (parse_wait_policy): Likewise.
323 (parse_allocator): Likewise.
324 (omp_display_env): Extended to output different variants of environment
325 variables.
326 (print_schedule): New helper function for omp_display_env which prints
327 the values of run_sched_var.
328 (print_proc_bind): New helper function for omp_display_env which prints
329 the values of proc_bind_var.
330 (enum gomp_parse_type): Collection of types used for parsing environment
331 variables.
332 (ENTRY): Preprocess string lengths of environment variables.
333 (OMP_VAR_CNT): Preprocess table size.
334 (OMP_HOST_VAR_CNT): Likewise.
335 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
336 number.
337 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
338 (gomp_set_icv_flag): Sets a flag for a particular ICV.
339 (print_device_specific_icvs): New helper function for omp_display_env to
340 print device specific ICV values.
341 (get_device_num): New helper function for parse_device_specific.
342 Extracts the device number from an environment variable name.
343 (get_icv_member_addr): Gets the memory address for a particular member
344 of an ICV struct.
345 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
346 (initialize_icvs): New function to initialize a gomp_initial_icvs
347 struct.
348 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
349 (startswith): Checks if a string starts with a given prefix.
350 (initialize_env): Extended to parse the new syntax of environment
351 variables.
352 * icv-device.c (omp_get_max_teams): Added.
353 (ialias): Likewise.
354 (omp_set_num_teams): Likewise.
355 * icv.c (omp_set_num_teams): Moved to icv-device.c.
356 (omp_get_max_teams): Likewise.
357 (ialias): Likewise.
358 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
359 (GOMP_ADDITIONAL_ICVS): New target-side struct that
360 holds the designated ICVs of the target device.
361 * libgomp.h (enum gomp_icvs): Collection of ICVs.
362 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
363 no suffix.
364 (enum gomp_env_suffix): Collection of possible suffixes of environment
365 variables.
366 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
367 initial values.
368 (struct gomp_default_icv):New struct to hold ICVs for which we need
369 to store initial values.
370 (struct gomp_icv_list): Definition of a linked list that is used for
371 storing ICVs for the devices and also for _DEV, _ALL, and without
372 suffix.
373 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
374 a device.
375 (struct gomp_offload_icv_list): Definition of a linked list that holds
376 device-specific ICVs that are copied to devices.
377 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
378 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
379 * libgomp.texi: Updated.
380 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
381 further ICVs from the offload image.
382 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
383 * target.c (gomp_get_offload_icv_item): Get a list item of
384 gomp_offload_icv_list.
385 (get_gomp_offload_icvs): New. Returns the ICV values
386 depending on the device num and the variable hierarchy.
387 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
388 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
389 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
390 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
391 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
392 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
393 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
394
395 2022-09-08 Jakub Jelinek <jakub@redhat.com>
396
397 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
398 fully supported.
399 * testsuite/libgomp.c/doacross-4.c: New test.
400 * testsuite/libgomp.c/doacross-5.c: New test.
401 * testsuite/libgomp.c/doacross-6.c: New test.
402 * testsuite/libgomp.c/doacross-7.c: New test.
403
404 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
405
406 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
407
408 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
409
410 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
411 refer to 'requires'.
412 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
413 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
414 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
415 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
416
417 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
418
419 PR middle-end/106548
420 * testsuite/libgomp.c/linear-2.c: New test.
421
422 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
423
424 * splay-tree.h: Fix splay_* macro unsetting if
425 splay_tree_prefix is defined.
426
427 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
428
429 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
430
431 2022-07-29 Jakub Jelinek <jakub@redhat.com>
432
433 PR middle-end/106449
434 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
435
436 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
437
438 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
439
440 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
441
442 PR middle-end/101551
443 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
444 'offloading_enabled' diagnostics issue.
445
446 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
447
448 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
449 '_Pragma' diagnostics verification.
450
451 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
452
453 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
454 improved warning locations.
455 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
456
457 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
458
459 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
460 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
461 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
462 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
463 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
464
465 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
466
467 * target.c (GOMP_offload_register, GOMP_offload_unregister):
468 Denote as legacy entry points.
469 * testsuite/lib/libgomp.exp
470 (check_effective_target_offload_target_any): New proc.
471 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
472 'offload_target_any'.
473 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
474 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
475 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
476
477 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
478
479 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
480 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
481
482 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
483
484 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
485
486 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
487
488 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
489 'data'.
490 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
491
492 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
493 Jakub Jelinek <jakub@redhat.com>
494
495 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
496
497 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
498 Chung-Lin Tang <cltang@codesourcery.com>
499 Thomas Schwinge <thomas@codesourcery.com>
500
501 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
502 omp_requires_mask arg.
503 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
504 return -1 when device available but omp_requires_mask != 0.
505 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
506 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
507 Update call.
508 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
509 goacc_attach_host_thread_to_device, acc_get_num_devices,
510 acc_set_device_num, get_property_any): Likewise.
511 * target.c (omp_requires_mask): New global var.
512 (gomp_requires_to_name): New.
513 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
514 (gomp_target_init): Handle omp_requires_mask.
515 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
516 (OpenMP 5.1): Add a missed item.
517 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
518 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
519 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
520 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
521 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
522 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
523 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
524 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
525 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
526 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
527 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
528 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
529 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
530 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
531 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
532 * testsuite/libgomp.fortran/requires-1.f90: New test.
533
534 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
535
536 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
537 with fromto as implemented.
538
539 2022-06-28 Martin Liska <mliska@suse.cz>
540
541 * acinclude.m4: Fix typo in mold linker detection.
542 * Makefile.in: Regenerate.
543 * configure: Regenerate.
544
545 2022-06-21 Jakub Jelinek <jakub@redhat.com>
546 Paul Iannetta <piannetta@kalrayinc.com>
547
548 PR libgomp/106045
549 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
550
551 2022-06-17 Martin Liska <mliska@suse.cz>
552
553 * libgomp.texi: Add table header for new features of
554 OpenMP 5.2.
555
556 2022-06-15 Jakub Jelinek <jakub@redhat.com>
557
558 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
559 q to ddress of an automatic variable. Use -5 instead of -1 in
560 omp_get_mapped_ptr call. Add test with omp_initial_device.
561 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
562 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
563 Renumber stop arguments afterwards.
564
565 2022-06-13 Jakub Jelinek <jakub@redhat.com>
566
567 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
568 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
569 parameters.
570 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
571 * target.c (resolve_device): Add remapped argument, handle
572 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
573 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
574 if remapped, otherwise treat omp_initial_device that way. For
575 omp_invalid_device, always emit gomp_fatal, even when
576 OMP_TARGET_OFFLOAD isn't mandatory.
577 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
578 GOMP_target_update, GOMP_target_update_ext,
579 GOMP_target_enter_exit_data): Pass true as remapped argument to
580 resolve_device.
581 (omp_target_alloc, omp_target_free, omp_target_is_present,
582 omp_target_memcpy_check, omp_target_associate_ptr,
583 omp_target_disassociate_ptr, omp_get_mapped_ptr,
584 omp_target_is_accessible): Pass false as remapped argument to
585 resolve_device. Treat omp_initial_device the same as
586 gomp_get_num_devices (). Don't bypass resolve_device calls if
587 device_num is negative.
588 (omp_pause_resource): Treat omp_initial_device the same as
589 gomp_get_num_devices (). Call resolve_device.
590 * icv-device.c (omp_set_default_device): Always set to device_num
591 even when it is negative.
592 * libgomp.texi: Document that Conforming device numbers,
593 omp_initial_device and omp_invalid_device is implemented.
594 * testsuite/libgomp.c/target-41.c (main): Add test with
595 omp_initial_device.
596 * testsuite/libgomp.c/target-45.c: New test.
597 * testsuite/libgomp.c/target-46.c: New test.
598 * testsuite/libgomp.c/target-47.c: New test.
599 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
600 test with omp_initial_device. Use -5 instead of -1 for negative value
601 test.
602 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
603 Likewise. Reorder stop numbers.
604
605 2022-06-10 Jakub Jelinek <jakub@redhat.com>
606
607 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
608 rather than "libmemkind.so".
609
610 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
611
612 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
613 * plugin/configfrag.ac (--with-cuda-driver)
614 (--with-cuda-driver-include, --with-cuda-driver-lib)
615 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
616 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
617 Remove.
618 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
619 (cuda_driver_lib): Remove.
620 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
621 * Makefile.in: Regenerate.
622 * configure: Likewise.
623 * testsuite/Makefile.in: Likewise.
624
625 2022-06-09 Jakub Jelinek <jakub@redhat.com>
626
627 * config/linux/allocator.c: Fix up #include directive.
628
629 2022-06-09 Jakub Jelinek <jakub@redhat.com>
630
631 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
632 (enum gomp_memkind_kind): New type.
633 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
634 is defined.
635 (struct gomp_memkind_data): New type.
636 (memkind_data, memkind_data_once): New variables.
637 (gomp_init_memkind, gomp_get_memkind): New functions.
638 (omp_init_allocator): Initialize data.memkind, don't fail for
639 omp_high_bw_mem_space if libmemkind supports it.
640 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
641 memkind support of LIBGOMP_USE_MEMKIND is defined.
642 * config/linux/allocator.c: New file.
643
644 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
645
646 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
647 * testsuite/libgomp.fortran/scope-2.f90: New test.
648
649 2022-06-02 David Malcolm <dmalcolm@redhat.com>
650
651 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
652
653 2022-05-31 Jakub Jelinek <jakub@redhat.com>
654
655 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
656 scope construct with allocate clause.
657 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
658 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
659
660 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
661
662 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
663 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
664 explicit 'to' and 'enter' clause.
665 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
666
667 2022-05-28 Jakub Jelinek <jakub@redhat.com>
668
669 PR libgomp/105745
670 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
671 defined(HAVE__ALIGNED_MALLOC) case.
672 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
673 handling as last option before fallback instead of first.
674 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
675 _aligned_free.
676
677 2022-05-27 Jakub Jelinek <jakub@redhat.com>
678
679 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
680 clauses to enter.
681 * testsuite/libgomp.c/target-41.c: Likewise.
682
683 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
684
685 * libgomp.texi (Other new OpenMP 5.1 features): Add
686 'begin declare target'.
687 (Other new OpenMP 5.2 features): New.
688
689 2022-05-25 Jakub Jelinek <jakub@redhat.com>
690
691 * task.c (gomp_task_run_post_handle_dependers): If empty_task
692 is the last task taskwait depend depends on, wake it up.
693 Similarly if it is the last child of a taskgroup, use atomic
694 store instead of decrement and awak taskgroup wait if any.
695 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
696
697 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
698
699 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
700 EF_AMDGPU_MACH_AMDGCN_GFX90a.
701 (gcn_gfx90a_s): New.
702 (isa_hsa_name): Support gfx90a.
703 (isa_code): Likewise.
704
705 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
706
707 PR c/105378
708 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
709 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
710
711 2022-05-24 Jakub Jelinek <jakub@redhat.com>
712
713 PR c/105378
714 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
715 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
716 * task.c (empty_task): New function.
717 (gomp_task_run_post_handle_depend_hash): Declare earlier.
718 (gomp_task_run_post_handle_depend): Declare.
719 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
720 for.
721 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
722 (GOMP_taskwait_depend_nowait): New function.
723 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
724
725 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
726
727 PR fortran/104949
728 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
729 Support attach for GOMP_MAP_FIRSTPRIVATE.
730 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
731 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
732 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
733
734 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
735
736 * libgomp.map: Added omp_target_memcpy_async and
737 omp_target_memcpy_rect_async.
738 * libgomp.texi: Both functions are now supported.
739 * omp.h.in: Added omp_target_memcpy_async and
740 omp_target_memcpy_rect_async.
741 * omp_lib.f90.in: Added interfaces for both new functions.
742 * omp_lib.h.in: Likewise.
743 * target.c (ialias_redirect): Added for GOMP_task.
744 (omp_target_memcpy): Restructured into check and copy part.
745 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
746 omp_target_memcpy_async that checks requirements.
747 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
748 omp_target_memcpy_async that performs the memcpy.
749 (omp_target_memcpy_async_helper): New helper function that is used in
750 omp_target_memcpy_async for the asynchronous task.
751 (omp_target_memcpy_async): Added.
752 (omp_target_memcpy_rect): Restructured into check and copy part.
753 (omp_target_memcpy_rect_check): New helper function for
754 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
755 requirements.
756 (omp_target_memcpy_rect_copy): New helper function for
757 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
758 the memcpy.
759 (omp_target_memcpy_rect_async_helper): New helper function that is used
760 in omp_target_memcpy_rect_async for the asynchronous task.
761 (omp_target_memcpy_rect_async): Added.
762 * task.c (ialias): Added for GOMP_task.
763 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
764 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
765 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
766 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
767 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
768 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
769 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
770 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
771
772 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
773
774 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
775 (OpenMP Context Selectors): Add missing comma.
776 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
777 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
778 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
779 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
780
781 2022-05-17 Jakub Jelinek <jakub@redhat.com>
782
783 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
784 comment for omp_display_env feature.
785
786 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
787
788 * libgomp.texi (Offload-Target Specifics): New chapter; add section
789 to document OpenMP context selectors.
790
791 2022-05-17 Jakub Jelinek <jakub@redhat.com>
792
793 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
794 from bool to unsigned char.
795 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
796 Ignore dependencies where
797 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
798 rather than just task->depend[i].is_in && ent->is_in. Remember
799 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
800 conditional.
801 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
802 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
803 rather than just elem.is_in && ent->is_in.
804 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
805 inoutset depend-kind.
806 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
807 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
808 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
809
810 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
811
812 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
813
814 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
815
816 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
817 * testsuite/libgomp.fortran/depend-5.f90: New test.
818 * testsuite/libgomp.fortran/depend-6.f90: New test.
819 * testsuite/libgomp.fortran/depend-7.f90: New test.
820
821 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
822
823 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
824 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
825 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
826
827 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
828
829 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
830
831 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
832
833 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
834
835 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
836
837 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
838 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
839 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
840 append '$(PLUGIN_NVPTX_LDFLAGS)'.
841 * Makefile.in: Regenerate.
842
843 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
844
845 * Makefile.am (libgomp_la_LIBADD): Initialize.
846 * plugin/configfrag.ac (DL_LIBS): New.
847 (PLUGIN_GCN_LIBS): Remove.
848 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
849 * plugin/Makefrag.am (libgomp_la_LIBADD)
850 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
851 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
852 * Makefile.in: Regenerate.
853 * config.h.in: Likewise.
854 * configure: Likewise.
855 * testsuite/Makefile.in: Likewise.
856
857 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
858
859 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
860 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
861 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
862 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
863 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
864 'PLUGIN_NVPTX_LINK_LIBCUDA'.
865 * Makefile.in: Regenerate.
866 * config.h.in: Likewise.
867 * configure: Likewise.
868
869 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
870
871 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
872 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
873 * Makefile.in: Regenerate.
874 * config.h.in: Likewise.
875 * configure: Likewise.
876 * testsuite/Makefile.in: Likewise.
877
878 2022-05-12 Jakub Jelinek <jakub@redhat.com>
879
880 * libgomp.h (struct gomp_task): Add depend_all_memory member.
881 * task.c (gomp_init_task): Initialize depend_all_memory.
882 (gomp_task_handle_depend): Handle omp_all_memory.
883 (gomp_task_run_post_handle_depend_hash): Clear
884 parent->depend_all_memory if equal to current task.
885 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
886 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
887 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
888 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
889
890 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
891
892 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
893 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
894 * Makefile.in: Regenerate.
895 * configure: Likewise.
896 * testsuite/Makefile.in: Likewise.
897
898 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
899
900 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
901 consider 'PLUGIN_GCN_CPPFLAGS'.
902 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
903 'PLUGIN_GCN_LDFLAGS'.
904 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
905 Remove.
906 * Makefile.in: Regenerate.
907 * configure: Likewise.
908 * testsuite/Makefile.in: Likewise.
909
910 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
911
912 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
913 (HSA_RUNTIME_LDFLAGS): Remove.
914 * configure: Regenerate.
915
916 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
917
918 * testsuite/lib/libgomp.exp (libgomp_init): Don't
919 'append always_ld_library_path ":$hsa_runtime_lib"'.
920 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
921
922 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
923
924 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
925 multi-device testing.
926
927 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
928
929 * libgomp.map: Added omp_target_is_accessible.
930 * libgomp.texi: Tagged omp_target_is_accessible as supported.
931 * omp.h.in: Added omp_target_is_accessible.
932 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
933 * omp_lib.h.in: Likewise.
934 * target.c (omp_target_is_accessible): Added implementation of
935 omp_target_is_accessible.
936 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
937 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
938
939 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
940
941 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
942
943 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
944
945 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
946
947 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
948
949 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
950
951 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
952
953 * libgomp.map: Added omp_get_mapped_ptr.
954 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
955 * omp.h.in: Added omp_get_mapped_ptr.
956 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
957 * omp_lib.h.in: Likewise.
958 * target.c (omp_get_mapped_ptr): Added implementation of
959 omp_get_mapped_ptr.
960 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
961 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
962 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
963 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
964 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
965 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
966 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
967 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
968
969 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
970
971 PR fortran/104717
972 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
973 privatization scanning. For GCN offloading compilation, raise
974 '-mgang-private-size'.
975
976 2022-04-26 Jakub Jelinek <jakub@redhat.com>
977
978 PR libgomp/105358
979 * work.c (gomp_init_work_share): Don't mask of adjustment for
980 dynamic long long realignment if struct gomp_work_share has smaller
981 alignof than long long.
982 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
983 struct gomp_work_share has smaller alignof than long long or if
984 sizeof (struct gomp_work_share) is smaller than
985 INLINE_ORDERED_TEAM_IDS_OFF.
986 * loop_ull.c (GOMP_loop_ull_start): Likewise.
987 * sections.c (GOMP_sections2_start): Likewise.
988
989 2022-04-25 Jakub Jelinek <jakub@redhat.com>
990 Thomas Schwinge <thomas@codesourcery.com>
991
992 PR fortran/104717
993 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
994
995 2022-04-13 Jakub Jelinek <jakub@redhat.com>
996
997 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
998
999 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
1000
1001 * plugin/cuda/cuda.h: Remove file.
1002 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
1003 "cuda/cuda.h" instead of <cuda.h>.
1004 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
1005 'PLUGIN_NVPTX_CPPFLAGS'.
1006 * configure: Regenerate.
1007
1008 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
1009
1010 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
1011
1012 2022-04-04 Tom de Vries <tdevries@suse.de>
1013
1014 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
1015 on_device_arch_nvptx instead of offload_target_nvptx.
1016 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1017
1018 2022-04-01 Tom de Vries <tdevries@suse.de>
1019
1020 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
1021 and use REC_DEPTH.
1022 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1023
1024 2022-04-01 Tom de Vries <tdevries@suse.de>
1025
1026 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
1027 num_workers check.
1028
1029 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
1030 Lulu Cheng <chenglulu@loongson.cn>
1031
1032 * configure.tgt: Add LoongArch triplet.
1033
1034 2022-03-28 Tom de Vries <tdevries@suse.de>
1035
1036 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
1037 instead of /libexec/.
1038 * configure: Regenerate.
1039
1040 2022-03-25 Tom de Vries <tdevries@suse.de>
1041
1042 PR libgomp/105042
1043 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
1044 execution time.
1045 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
1046 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
1047
1048 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
1049
1050 PR middle-end/104285
1051 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
1052 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
1053 * testsuite/libgomp.c++/target-same-name-2.C: New test.
1054 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
1055 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
1056 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
1057
1058 2022-03-22 Tom de Vries <tdevries@suse.de>
1059
1060 PR target/104916
1061 PR target/104783
1062 * testsuite/libgomp.c/pr104783-2.c: New test.
1063
1064 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
1065
1066 PR fortran/103039
1067 * testsuite/libgomp.fortran/associate4.f90: New test.
1068
1069 2022-03-18 Tom de Vries <tdevries@suse.de>
1070
1071 PR target/104952
1072 * testsuite/libgomp.c/pr104952-1.c: New test.
1073 * testsuite/libgomp.c/pr104952-2.c: New test.
1074
1075 2022-03-18 Jakub Jelinek <jakub@redhat.com>
1076
1077 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
1078 variable next to pl variable.
1079
1080 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
1081
1082 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1083 Enhance.
1084 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
1085 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1086
1087 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
1088
1089 PR middle-end/90115
1090 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
1091 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1092
1093 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
1094
1095 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
1096 omp_set_max_active_levels.
1097 * testsuite/libgomp.fortran/icv-8.f90: New test.
1098
1099 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
1100
1101 PR testsuite/102841
1102 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
1103
1104 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
1105
1106 * libgomp.texi: Fix typo.
1107
1108 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1109
1110 PR middle-end/100280
1111 PR middle-end/104892
1112 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1113 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
1114 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1115 Likewise.
1116 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1117 Likewise.
1118 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1119 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1120 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1121 Likewise.
1122
1123 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1124
1125 PR middle-end/104892
1126 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
1127 to PR104892.
1128 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
1129 enable '--param=openacc-kernels=decompose' and adjust.
1130 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1131 Likewise.
1132 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1133 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1134 Likewise.
1135
1136 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1137
1138 PR middle-end/90115
1139 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
1140 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
1141 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1142 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
1143
1144 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1145
1146 PR middle-end/100280
1147 PR middle-end/104086
1148 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1149 Merge this...
1150 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1151 ..., and this...
1152 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
1153 this, and adjust.
1154 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1155 Extend.
1156
1157 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
1158
1159 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
1160 trait. Test last index in w and v array. Remove redundant
1161 assignment to V(1). Move alignment checks at the end of
1162 parallel region.
1163
1164 2022-03-10 Tom de Vries <tdevries@suse.de>
1165
1166 * testsuite/libgomp.c/pr104783.c: New test.
1167
1168 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
1169
1170 PR middle-end/90115
1171 PR middle-end/102330
1172 PR middle-end/104774
1173 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1174 Enhance.
1175 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1176 Adjust.
1177 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1178 Likewise.
1179 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1180 Likewise.
1181 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1182 Likewise.
1183 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1184 Likewise.
1185 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1186 Likewise.
1187 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1188 Likewise.
1189 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1190 Likewise.
1191 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1192 Likewise.
1193 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1194 Likewise.
1195 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1196 Likewise.
1197 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1198 Likewise.
1199 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1200 Likewise.
1201 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1202 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1203 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1204
1205 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
1206
1207 PR middle-end/90115
1208 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
1209 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1210 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1211 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
1212
1213 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1214
1215 PR testsuite/104791
1216 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
1217 expected diagnostics.
1218
1219 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1220
1221 PR middle-end/104784
1222 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1223 Test with '--param=openacc-kernels=decompose'.
1224 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1225 Likewise.
1226 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1227 Likewise.
1228 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1229 Likewise.
1230 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1231 Likewise.
1232 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1233 Likewise.
1234 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1235 Likewise.
1236 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1237 Likewise.
1238 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1239 Likewise.
1240 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1241 Likewise.
1242 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1243 Likewise.
1244 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1245 Likewise.
1246 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1247 Likewise.
1248 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1249 Likewise.
1250 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1251 Likewise.
1252 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1253 Likewise.
1254 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1255 Likewise.
1256 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1257 Likewise.
1258 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1259 Likewise.
1260 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1261 Likewise.
1262 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1263 Likewise.
1264 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1265 Likewise.
1266 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1267 Likewise.
1268 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1269 Likewise.
1270 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1271 Likewise.
1272 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1273 Likewise.
1274 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1275 Likewise.
1276 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1277 Likewise.
1278 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1279 Likewise.
1280 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1281 Likewise.
1282 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1283 Likewise.
1284 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1285 Likewise.
1286 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1287 Likewise.
1288
1289 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1290
1291 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1292 Test '-fopt-info-omp-all'.
1293 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1294 Likewise.
1295 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1296 Likewise.
1297 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1298 Likewise.
1299 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1300 Likewise.
1301 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1302 Likewise.
1303 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1304 Likewise.
1305 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1306 Likewise.
1307 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1308 Likewise.
1309 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1310 Likewise.
1311 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1312 Likewise.
1313 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1314 Likewise.
1315 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1316 Likewise.
1317 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1318 Likewise.
1319 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1320 Likewise.
1321 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1322 Likewise.
1323 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1324 Likewise.
1325 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1326 Likewise.
1327 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1328 Likewise.
1329 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1330 Likewise.
1331 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1332 Likewise.
1333 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1334 Likewise.
1335 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1336 Likewise.
1337 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1338 Likewise.
1339 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1340 Likewise.
1341 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1342 Likewise.
1343 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1344 Likewise.
1345 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1346 Likewise.
1347 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1348 Likewise.
1349 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1350 Likewise.
1351 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1352 Likewise.
1353 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1354 Likewise.
1355 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1356 Likewise.
1357
1358 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1359
1360 PR middle-end/100280
1361 PR middle-end/104132
1362 PR middle-end/104133
1363 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1364 Extend.
1365
1366 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1367
1368 PR middle-end/100280
1369 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1370 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1371 Likewise.
1372
1373 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1374
1375 PR middle-end/100280
1376 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1377 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1378 Likewise.
1379
1380 2022-02-28 Tom de Vries <tdevries@suse.de>
1381
1382 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
1383 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
1384 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
1385 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
1386 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
1387 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
1388
1389 2022-02-24 Tom de Vries <tdevries@suse.de>
1390
1391 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
1392 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
1393 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
1394 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
1395 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
1396 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
1397 * testsuite/libgomp.c/declare-variant-3.h: New header file.
1398
1399 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
1400
1401 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
1402 gang-redundant execution.
1403
1404 2022-02-22 Tom de Vries <tdevries@suse.de>
1405
1406 PR target/99555
1407 * config/nvptx/bar.c (generation_to_barrier): New function, copied
1408 from config/rtems/bar.c.
1409 (futex_wait, futex_wake): New function.
1410 (do_spin, do_wait): New function, copied from config/linux/wait.h.
1411 (gomp_barrier_wait_end, gomp_barrier_wait_last)
1412 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
1413 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
1414 and replace with include of config/linux/bar.c.
1415 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
1416 (gomp_barrier_init): Init new fields.
1417 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
1418 workarounds.
1419 * testsuite/libgomp.c/pr99555-1.c: Same.
1420 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
1421
1422 2022-02-22 Tom de Vries <tdevries@suse.de>
1423
1424 PR testsuite/104146
1425 * testsuite/libgomp.c++/pr96390.C: Add additional-option
1426 -foffload=-Wa,--verify for nvptx.
1427 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
1428
1429 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
1430
1431 * testsuite/libgomp.fortran/depend-4.f90: New test.
1432
1433 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
1434
1435 PR c++/102204
1436 * testsuite/libgomp.c++/target-virtual-1.C: New test.
1437
1438 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
1439
1440 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
1441 * target.c (copy_firstprivate_data): Copy only if host address is not
1442 NULL.
1443 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
1444 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
1445 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
1446 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
1447 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
1448 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
1449 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
1450 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
1451 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
1452 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
1453
1454 2022-02-08 Jakub Jelinek <jakub@redhat.com>
1455
1456 PR libgomp/104385
1457 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
1458 clear task->parent.
1459 * testsuite/libgomp.c/pr104385.c: New test.
1460
1461 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1462
1463 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
1464 STOP of previous commit.
1465
1466 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1467
1468 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
1469 from is_64bit_aligned_.
1470 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
1471 and use it, more implicit none, remove unused argument.
1472
1473 2022-02-03 David Seifert <soap@gentoo.org>
1474 Jakub Jelinek <jakub@redhat.com>
1475
1476 * configure.ac: Support --disable-werror.
1477 * configure: Regenerate.
1478
1479 2022-02-01 Tom de Vries <tdevries@suse.de>
1480
1481 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
1482 PR83812 workaround.
1483 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
1484 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
1485
1486 2022-02-01 Tom de Vries <tdevries@suse.de>
1487
1488 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
1489 num_workers for nvidia accelerator to fix libgomp error 'insufficient
1490 resources'.
1491 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1492 Same.
1493 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
1494
1495 2022-02-01 Tom de Vries <tdevries@suse.de>
1496
1497 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1498 recursion depth.
1499 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1500
1501 2022-01-31 Martin Liska <mliska@suse.cz>
1502
1503 * acinclude.m4: Detect *_ld_is_mold and use it.
1504 * configure: Regenerate.
1505
1506 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
1507
1508 * libgomp.texi (OpenMP 5.0): Update implementation status.
1509
1510 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
1511
1512 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
1513 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1514 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1515 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1516 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1517 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1518 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1519 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1520 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1521 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1522 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1523 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
1524 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
1525 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1526 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
1527
1528 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
1529
1530 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
1531 "static") to make the device num available in the offload image.
1532
1533 2022-01-19 Martin Liska <mliska@suse.cz>
1534 Thomas Schwinge <thomas@codesourcery.com>
1535
1536 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
1537 patterns.
1538 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1539 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1540 Likewise.
1541 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1542 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1543 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1544 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1545 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
1546 Likewise.
1547 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
1548 Likewise.
1549 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
1550 Likewise.
1551 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
1552 Likewise.
1553 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
1554 Likewise.
1555 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1556 Likewise.
1557 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1558 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1559 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1560
1561 2022-01-18 Martin Liska <mliska@suse.cz>
1562
1563 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
1564 in dg-warning.
1565 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1566 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1567 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1568 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1569 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1570 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1571 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
1572 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
1573 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
1574 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
1575 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
1576 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
1577 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1578 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1579 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1580
1581 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
1582
1583 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
1584 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1585 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1586
1587 2022-01-17 Julian Brown <julian@codesourcery.com>
1588 Thomas Schwinge <thomas@codesourcery.com>
1589
1590 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
1591 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
1592 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
1593
1594 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1595 Andrew Stubbs <ams@codesourcery.com>
1596
1597 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
1598 the number of teams and threads if necessary.
1599 (gcn_exec): Automatically set the number of gangs and workers if
1600 necessary.
1601
1602 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
1603
1604 * testsuite/libgomp.fortran/allocate-1.c: New test.
1605 * testsuite/libgomp.fortran/allocate-1.f90: New test.
1606 * libgomp.texi: Remove string that says that allocate clause
1607 support is for C/C++ only.
1608
1609 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1610
1611 * testsuite/libgomp.c-c++-common/on_device_arch.h
1612 (any_device_arch, any_device_arch_intel_mic): New.
1613 * testsuite/lib/libgomp.exp
1614 (check_effective_target_offload_device_any_intel_mic): New.
1615 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
1616 * testsuite/libgomp.fortran/target10.f90: Likewise.
1617
1618 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1619
1620 PR tree-optimization/102192
1621 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
1622 '-Wuninitialized' diagnostics.
1623
1624 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1625
1626 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
1627 current '-Wuninitialized' diagnostics.
1628 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
1629 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
1630 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
1631 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
1632 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1633 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
1634 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
1635 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1636 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1637 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1638 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
1639 Likewise.
1640
1641 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1642
1643 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
1644 for 'offload_device_intel_mic'.
1645
1646 2022-01-13 Julian Brown <julian@codesourcery.com>
1647 Thomas Schwinge <thomas@codesourcery.com>
1648
1649 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
1650 offloading execution XFAIL.
1651
1652 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1653
1654 PR middle-end/100280
1655 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1656 Update.
1657 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1658 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1659 Likewise.
1660
1661 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1662
1663 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1664 Enhance.
1665 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1666 Likewise.
1667 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
1668 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1669 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
1670 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
1671 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1672 Likewise.
1673 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1674 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1675 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1676 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1677
1678 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
1679
1680 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
1681 * testsuite/libgomp.fortran/target10.f90: Likewise.
1682
1683 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
1684
1685 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
1686 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
1687 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1688
1689 2022-01-03 Jakub Jelinek <jakub@redhat.com>
1690
1691 * libgomp.texi: Bump @copying's copyright year.
1692
1693 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
1694
1695 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
1696 * testsuite/libgomp.fortran/atomic-19.f90: New test.
1697
1698 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
1699
1700 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
1701 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
1702 table, not individual symbols.
1703
1704 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1705
1706 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
1707 "target offload_device_nonshared_as"
1708 * testsuite/libgomp.c++/target-this-3.C: Likewise.
1709 * testsuite/libgomp.c++/target-this-4.C: Likewise.
1710
1711 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1712
1713 * target.c (gomp_map_vars_existing): Make sure attached pointer is
1714 not overwritten during cross-host/device copying.
1715 (gomp_update): Likewise.
1716 (gomp_exit_data): Likewise.
1717 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
1718 * testsuite/libgomp.c++/target-12.C: Likewise.
1719 * testsuite/libgomp.c++/target-15.C: Likewise.
1720 * testsuite/libgomp.c++/target-16.C: Likewise.
1721 * testsuite/libgomp.c++/target-17.C: Likewise.
1722 * testsuite/libgomp.c++/target-21.C: Likewise.
1723 * testsuite/libgomp.c++/target-23.C: Likewise.
1724 * testsuite/libgomp.c/target-23.c: Likewise.
1725 * testsuite/libgomp.c/target-29.c: Likewise.
1726 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
1727
1728 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1729
1730 PR middle-end/92120
1731 * libgomp.h (gomp_attach_pointer): Add bool parameter.
1732 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
1733 (goacc_enter_data_internal): Likewise.
1734 * target.c (gomp_map_vars_existing): Update assert condition to
1735 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
1736 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
1737 parameter, add support for mapping a pointer with NULL target.
1738 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
1739 parameter, add support for attaching a pointer with NULL target.
1740 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
1741 gomp_attach_pointer, add handling for
1742 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
1743 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
1744 * testsuite/libgomp.c++/target-23.C: New testcase.
1745 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
1746 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
1747 * testsuite/libgomp.c++/target-this-1.C: New testcase.
1748 * testsuite/libgomp.c++/target-this-2.C: New testcase.
1749 * testsuite/libgomp.c++/target-this-3.C: New testcase.
1750 * testsuite/libgomp.c++/target-this-4.C: New testcase.
1751 * testsuite/libgomp.c++/target-this-5.C: New testcase.
1752
1753 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
1754
1755 * libgomp.texi (OpenMP 5.1): Update status.
1756
1757 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
1758
1759 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
1760
1761 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
1762
1763 PR fortran/90030
1764 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
1765 * testsuite/libgomp.fortran/pr90030.f90: New test.
1766
1767 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1768 Thomas Schwinge <thomas@codesourcery.com>
1769
1770 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
1771 temporary skip.
1772
1773 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
1774 Thomas Schwinge <thomas@codesourcery.com>
1775
1776 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
1777 skip.
1778
1779 2021-11-29 Richard Biener <rguenther@suse.de>
1780
1781 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
1782 return.
1783
1784 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1785
1786 PR middle-end/103384
1787 * testsuite/libgomp.c/declare-variant-2.c: New test.
1788
1789 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
1790
1791 * alloc.c (gomp_aligned_alloc): Fix typo.
1792
1793 2021-11-18 Jakub Jelinek <jakub@redhat.com>
1794
1795 PR libgomp/102838
1796 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
1797 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
1798 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
1799 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1800 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
1801 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
1802 gomp_aligned_alloc instead of team_malloc.
1803
1804 2021-11-18 Jakub Jelinek <jakub@redhat.com>
1805
1806 PR libgomp/102838
1807 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
1808 memalign over posix_memalign over aligned_alloc over fallback
1809 with malloc instead of aligned_alloc over _aligned_alloc over
1810 posix_memalign over memalign over fallback with malloc. For
1811 aligned_alloc, round up size up to multiple of al.
1812
1813 2021-11-16 Jakub Jelinek <jakub@redhat.com>
1814
1815 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
1816 construct as implemented.
1817
1818 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
1819
1820 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
1821
1822 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1823
1824 * task.c (gomp_create_target_task): Copy args array as well.
1825 * target.c (gomp_target_fallback): Add args argument.
1826 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
1827 (GOMP_target): Adjust gomp_target_fallback caller.
1828 (GOMP_target_ext): Likewise.
1829 (gomp_target_task_fn): Likewise.
1830 * config/nvptx/team.c (gomp_nvptx_main): Set
1831 gomp_global_icv.thread_limit_var.
1832 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
1833
1834 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1835
1836 * config/nvptx/team.c (__gomp_team_num): Define as
1837 __attribute__((shared)) var.
1838 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
1839 * config/nvptx/target.c (__gomp_team_num): Declare as
1840 extern __attribute__((shared)) var.
1841 (GOMP_teams4): Use __gomp_team_num as the team number instead of
1842 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
1843 is bigger than num_blocks, use num_teams_lower teams and arrange for
1844 bumping of __gomp_team_num if !first and returning false once we run
1845 out of teams.
1846 * config/nvptx/teams.c (__gomp_team_num): Declare as
1847 extern __attribute__((shared)) var.
1848 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
1849
1850 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1851
1852 * testsuite/libgomp.c/teams-5.c: New test.
1853
1854 2021-11-12 Jakub Jelinek <jakub@redhat.com>
1855
1856 PR target/103201
1857 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
1858 to ...
1859 * config/gcn/teams.c: ... here. New file.
1860
1861 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
1862
1863 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
1864 implicit map handling to allow a "superset" existing map as valid case.
1865 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
1866 (get_implicit): New function to extract implicit status.
1867 (gomp_map_fields_existing): Adjust arguments in calls to
1868 gomp_map_vars_existing, and add uses of get_implicit.
1869 (gomp_map_vars_internal): Likewise.
1870 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
1871
1872 2021-11-12 Jakub Jelinek <jakub@redhat.com>
1873
1874 * libgomp_g.h (GOMP_teams4): Declare.
1875 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
1876 * target.c (GOMP_teams4): New function.
1877 * config/nvptx/target.c (GOMP_teams): Remove.
1878 (GOMP_teams4): New function.
1879 * config/gcn/target.c (GOMP_teams): Remove.
1880 (GOMP_teams4): New function.
1881 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
1882 teams instead of <= 2.
1883 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
1884
1885 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
1886
1887 * testsuite/libgomp.fortran/teams-1.f90: New test.
1888
1889 2021-11-11 Jakub Jelinek <jakub@redhat.com>
1890
1891 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
1892 * team.c (struct gomp_thread_start_data): Likewise.
1893 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
1894 (gomp_team_start): Initialize start_data->num_teams and
1895 start_data->team_num. Update nthr->num_teams and nthr->team_num.
1896 * teams.c (gomp_num_teams, gomp_team_num): Remove.
1897 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
1898 instead of gomp_num_teams and gomp_team_num.
1899 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
1900 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
1901 * testsuite/libgomp.c/teams-4.c: New test.
1902
1903 2021-11-11 Jakub Jelinek <jakub@redhat.com>
1904
1905 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
1906
1907 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
1908
1909 * env.c (parse_gomp_openacc_dim): Restore parsing.
1910
1911 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
1912
1913 PR middle-end/102972
1914 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
1915 parallel construct.
1916 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
1917 * testsuite/libgomp.c/target-3.c: Likewise.
1918 * testsuite/libgomp.c/target-5.c: Likewise.
1919 * testsuite/libgomp.c/target-6.c: Likewise.
1920 * testsuite/libgomp.c/target-teams-1.c: Likewise.
1921 * testsuite/libgomp.c/teams-1.c: Likewise.
1922 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1923 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
1924 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
1925 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
1926 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
1927 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
1928 * testsuite/libgomp.fortran/teams1.f90: Likewise.
1929
1930 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
1931
1932 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
1933 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1934
1935 2021-10-27 Jakub Jelinek <jakub@redhat.com>
1936
1937 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
1938 aren't implemented for Fortran yet.
1939
1940 2021-10-27 Jakub Jelinek <jakub@redhat.com>
1941
1942 * testsuite/libgomp.c/loop-26.c: New test.
1943 * testsuite/libgomp.c/loop-27.c: New test.
1944
1945 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
1946
1947 PR testsuite/102910
1948 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
1949 instead of #include <alloca.h> + alloca.
1950
1951 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
1952
1953 * libgomp.texi (Support of strictly structured blocks in Fortran):
1954 Adjust to 'Y'.
1955 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
1956
1957 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
1958
1959 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
1960 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
1961
1962 2021-10-20 Jakub Jelinek <jakub@redhat.com>
1963
1964 PR libgomp/102838
1965 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
1966 (struct gomp_work_share): Only use aligned(64) attribute if
1967 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
1968 add padding before lock to ensure lock is at offset 64 bytes
1969 into the structure.
1970 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
1971 New poor man's static assertions.
1972 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
1973 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1974
1975 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1976 Richard Biener <rguenther@suse.de>
1977
1978 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
1979
1980 2021-10-18 Jakub Jelinek <jakub@redhat.com>
1981
1982 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
1983 && gomp_places_list_len < count after nfirst <= nlast loop condition.
1984
1985 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
1986
1987 PR fortran/102086
1988 PR fortran/92189
1989 PR fortran/92621
1990 PR fortran/101308
1991 PR fortran/101309
1992 PR fortran/101635
1993 PR fortran/92482
1994 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
1995
1996 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1997
1998 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
1999 type from char [50] to const char *.
2000 (places_array): Add a testcase for simplified syntax place followed
2001 by length or length and stride.
2002
2003 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2004
2005 * env.c (parse_one_place): Handle non-negative-number the same
2006 as { non-negative-number }. Reject even !number:1 and
2007 !number:1:stride or !place:1 or !place:1:stride instead of just
2008 length other than 1.
2009 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
2010 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
2011 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
2012 as implemented.
2013 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
2014 simplified syntax.
2015
2016 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2017
2018 * env.c (parse_schedule): For strtoul or strtoull calls which don't
2019 clearly reject return value 0 as invalid handle the case where end
2020 pointer is the same as first argument as invalid.
2021 (parse_unsigned_long_1): Likewise.
2022 (parse_one_place): Likewise.
2023 (parse_places_var): Likewise.
2024 (parse_stacksize): Likewise.
2025 (parse_spincount): Likewise.
2026 (parse_affinity): Likewise.
2027 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
2028 Make code valid C89.
2029 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
2030 For strtoul calls which don't clearly reject return value 0 as
2031 invalid handle the case where end pointer is the same as first
2032 argument as invalid.
2033 (gomp_affinity_init_level_1): Likewise.
2034 (gomp_affinity_init_numa_domains): Likewise.
2035 * config/rtems/proc.c (parse_thread_pools): Likewise.
2036
2037 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2038
2039 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
2040 after creating count places clean up and return immediately.
2041 * testsuite/libgomp.c/places-6.c: New test.
2042 * testsuite/libgomp.c/places-7.c: New test.
2043 * testsuite/libgomp.c/places-8.c: New test.
2044 * testsuite/libgomp.c/places-9.c: New test.
2045 * testsuite/libgomp.c/places-10.c: New test.
2046
2047 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2048
2049 * env.c (parse_places_var): Handle numa_domains as level 5.
2050 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
2051 function.
2052 (gomp_affinity_init_level): Use it instead of
2053 gomp_affinity_init_level_1 for level == 5.
2054 * testsuite/libgomp.c/places-5.c: New test.
2055
2056 2021-10-15 Jakub Jelinek <jakub@redhat.com>
2057
2058 * env.c (parse_places_var): Handle ll_caches as level 4.
2059 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
2060 function.
2061 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
2062 last level cache.
2063 (gomp_affinity_init_level): Likewise.
2064 * testsuite/libgomp.c/places-1.c: New test.
2065 * testsuite/libgomp.c/places-2.c: New test.
2066 * testsuite/libgomp.c/places-3.c: New test.
2067 * testsuite/libgomp.c/places-4.c: New test.
2068
2069 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2070
2071 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
2072 directive.
2073
2074 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2075
2076 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
2077
2078 2021-10-12 Julian Brown <julian@codesourcery.com>
2079
2080 * target.c (gomp_copy_host2dev): Release device lock on cbuf
2081 error path.
2082
2083 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
2084
2085 * testsuite/libgomp.fortran/icv-3.f90: New.
2086 * testsuite/libgomp.fortran/icv-4.f90: New.
2087
2088 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2089
2090 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
2091 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
2092 OMP_TEAMS_THREAD_LIMIT): Document.
2093
2094 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2095
2096 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
2097 to avoid makeinfo warnings.
2098
2099 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2100
2101 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
2102 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
2103
2104 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2105
2106 PR libgomp/102628
2107 PR libgomp/102668
2108 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
2109 allocation sizes from 420 to 320 and from 768 to 568.
2110 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
2111 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
2112 for cr from 16 to 4.
2113
2114 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2115
2116 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
2117 * testsuite/libgomp.c/scan-12.c: Likewise.
2118 * testsuite/libgomp.c/scan-13.c: Likewise.
2119 * testsuite/libgomp.c/scan-14.c: Likewise.
2120 * testsuite/libgomp.c/scan-15.c: Likewise.
2121 * testsuite/libgomp.c/scan-16.c: Likewise.
2122 * testsuite/libgomp.c/scan-17.c: Likewise.
2123 * testsuite/libgomp.c/scan-18.c: Likewise.
2124 * testsuite/libgomp.c/scan-19.c: Likewise.
2125 * testsuite/libgomp.c/scan-20.c: Likewise.
2126 * testsuite/libgomp.c/scan-21.c: Likewise.
2127 * testsuite/libgomp.c/scan-22.c: Likewise.
2128 * testsuite/libgomp.c++/scan-9.C: Likewise.
2129 * testsuite/libgomp.c++/scan-10.C: Likewise.
2130 * testsuite/libgomp.c++/scan-11.C: Likewise.
2131 * testsuite/libgomp.c++/scan-12.C: Likewise.
2132 * testsuite/libgomp.c++/scan-13.C: Likewise.
2133 * testsuite/libgomp.c++/scan-14.C: Likewise.
2134 * testsuite/libgomp.c++/scan-15.C: Likewise.
2135 * testsuite/libgomp.c++/scan-16.C: Likewise.
2136
2137 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
2138
2139 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
2140
2141 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
2142
2143 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
2144 omp_atv_serialized.
2145 * omp.h.in: Add deprecated flag for omp_atv_sequential.
2146 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
2147 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
2148 * testsuite/libgomp.fortran/alloc-12.f90: New test.
2149
2150 2021-10-11 Jakub Jelinek <jakub@redhat.com>
2151
2152 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
2153 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2154 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
2155 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2156 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
2157 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2158 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
2159 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
2160 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
2161 omp_set_teams_thread_limit{,_,_8_}.
2162 * icv.c (omp_set_num_teams, omp_get_max_teams,
2163 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
2164 functions.
2165 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
2166 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
2167 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
2168 vars.
2169 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
2170 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
2171 is not specified, use gomp_nteams_var.
2172 * fortran.c (omp_set_num_teams, omp_get_max_teams,
2173 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
2174 ialias_redirect.
2175 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
2176 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
2177 omp_get_teams_thread_limit_): New functions.
2178
2179 2021-10-09 liuhongt <hongtao.liu@intel.com>
2180
2181 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
2182 * testsuite/libgomp.c++/scan-11.C: Ditto.
2183 * testsuite/libgomp.c++/scan-12.C: Ditto.
2184 * testsuite/libgomp.c++/scan-13.C: Ditto.
2185 * testsuite/libgomp.c++/scan-14.C: Ditto.
2186 * testsuite/libgomp.c++/scan-15.C: Ditto.
2187 * testsuite/libgomp.c++/scan-16.C: Ditto.
2188 * testsuite/libgomp.c++/scan-9.C: Ditto.
2189 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
2190 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
2191 * testsuite/libgomp.c/scan-11.c: Ditto.
2192 * testsuite/libgomp.c/scan-12.c: Ditto.
2193 * testsuite/libgomp.c/scan-13.c: Ditto.
2194 * testsuite/libgomp.c/scan-14.c: Ditto.
2195 * testsuite/libgomp.c/scan-15.c: Ditto.
2196 * testsuite/libgomp.c/scan-16.c: Ditto.
2197 * testsuite/libgomp.c/scan-17.c: Ditto.
2198 * testsuite/libgomp.c/scan-18.c: Ditto.
2199 * testsuite/libgomp.c/scan-19.c: Ditto.
2200 * testsuite/libgomp.c/scan-20.c: Ditto.
2201 * testsuite/libgomp.c/scan-21.c: Ditto.
2202 * testsuite/libgomp.c/scan-22.c: Ditto.
2203
2204 2021-10-09 Jakub Jelinek <jakub@redhat.com>
2205
2206 * libgomp.texi (OpenMP 5.1): Mention implemented support for
2207 structured block sequences in C/C++. Mention support for
2208 unconstrained/reproducible modifiers on order clause.
2209 Mention partial (C/C++ only) support of extentensions to atomics
2210 construct. Mention partial (C/C++ on clause only) support of
2211 align/allocator modifiers on allocate clause.
2212
2213 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
2214
2215 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
2216 based on libgomp.c-c++-common/order-reproducible-1.c.
2217 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
2218 * testsuite/libgomp.fortran/my-usleep.c: New test.
2219
2220 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
2221
2222 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
2223 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
2224 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
2225 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
2226 based on libgomp.c-c++-common/alloc-9.c.
2227
2228 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2229
2230 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
2231 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
2232
2233 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2234
2235 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
2236 ialias_redirect.
2237 * env.c (handle_omp_display_env): Use ialias_call.
2238 * icv-device.c: Move ialias right below each function.
2239 (omp_get_device_num): Use ialias_call.
2240 * fortran.c (omp_fulfill_event): Add ialias_redirect.
2241 * icv.c (omp_get_active_level): Add ialias_redirect.
2242
2243 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2244
2245 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
2246 __alloc_align__ (1) attribute.
2247 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
2248
2249 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2250
2251 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
2252 for -fintrinsic-modules-path= warning of the C compiler.
2253 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
2254 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
2255
2256 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2257
2258 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
2259 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
2260 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2261 omp_realloc): Add.
2262 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2263 omp_realloc): Add.
2264 * testsuite/libgomp.fortran/alloc-10.f90: New test.
2265 * testsuite/libgomp.fortran/alloc-6.f90: New test.
2266 * testsuite/libgomp.fortran/alloc-7.c: New test.
2267 * testsuite/libgomp.fortran/alloc-7.f90: New test.
2268 * testsuite/libgomp.fortran/alloc-8.f90: New test.
2269 * testsuite/libgomp.fortran/alloc-9.f90: New test.
2270
2271 2021-09-30 Jakub Jelinek <jakub@redhat.com>
2272
2273 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
2274 omp_realloc): New prototypes.
2275 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
2276 attribute.
2277 * allocator.c: Include string.h.
2278 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
2279 variable and use it instead of alignment so that when retrying the old
2280 alignment is used again. Don't retry if new alignment is the same
2281 as old alignment, unless allocator had pool size.
2282 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
2283 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
2284 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
2285 omp_aligned_calloc and omp_realloc.
2286 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
2287 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
2288 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
2289 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
2290 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
2291 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
2292
2293 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
2294
2295 PR libgomp/96661
2296 * configure.ac: Only check for int-type = 2*size_t support when
2297 building with Fortran support.
2298 * configure: Regenerate.
2299
2300 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
2301
2302 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
2303 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2304
2305 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2306
2307 * team.c: Initialize start_data.
2308 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2309 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
2310
2311 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2312
2313 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
2314 dg-message back to dg-note.
2315
2316 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2317
2318 PR fortran/94070
2319 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
2320 expected dg-note output.
2321
2322 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
2323
2324 PR fortran/55534
2325 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
2326 r12-3722 by removing -Wno-missing-include-dirs.
2327 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2328
2329 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2330
2331 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
2332 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
2333
2334 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
2335
2336 PR fortran/55534
2337 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
2338 to ALWAYS_CFLAGS.
2339 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2340
2341 2021-09-18 Jakub Jelinek <jakub@redhat.com>
2342
2343 * testsuite/libgomp.c++/default-1.C: New test.
2344 * testsuite/libgomp.c-c++-common/default-1.c: New test.
2345 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
2346 to default clause in C and C++" as implemented.
2347
2348 2021-09-17 Julian Brown <julian@codesourcery.com>
2349
2350 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
2351
2352 2021-09-17 Julian Brown <julian@codesourcery.com>
2353
2354 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
2355
2356 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2357
2358 * libgomp.texi (OpenMP 5.1): Spelling fix,
2359 declare variante -> declare variant.
2360
2361 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2362
2363 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
2364 Use /* */ comments instead of //.
2365 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
2366 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
2367 * testsuite/libgomp.c++/atomic-16.C: New test.
2368 * testsuite/libgomp.c++/atomic-17.C: New test.
2369
2370 2021-09-10 Jakub Jelinek <jakub@redhat.com>
2371
2372 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
2373 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
2374 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
2375
2376 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2377
2378 * libgomp.texi (OpenMP Implementation Status): Extend
2379 OpenMP 5.0 section.
2380 (OpenACC Profiling Interface): Fix typo.
2381
2382 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2383
2384 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
2385 not to 4.5; link to new section.
2386 (OpenMP Implementation Status): New.
2387
2388 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
2389
2390 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
2391
2392 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
2393
2394 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
2395 dg-output.
2396 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2397
2398 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2399 Jakub Jelinek <jakub@redhat.com>
2400
2401 * testsuite/libgomp.c/address-space-1.c: New file.
2402
2403 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2404
2405 * testsuite/lib/libgomp.exp
2406 (check_effective_target_offload_target_intelmic): Remove 'proc'.
2407 (check_effective_target_offload_device_intel_mic): New 'proc'.
2408 * testsuite/libgomp.c-c++-common/on_device_arch.h
2409 (device_arch_intel_mic, on_device_arch_intel_mic): New.
2410 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
2411 'dg-xfail-run-if'.
2412 * testsuite/libgomp.fortran/target10.f90: Likewise.
2413
2414 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
2415
2416 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
2417 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
2418 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
2419 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
2420
2421 2021-08-23 Jakub Jelinek <jakub@redhat.com>
2422
2423 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
2424 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
2425 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
2426
2427 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
2428
2429 * config/nvptx/error.c (fwrite, exit): Override, too.
2430 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
2431 of offloading testing.
2432 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2433
2434 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
2435
2436 * testsuite/libgomp.fortran/error-1.f90: New test.
2437
2438 2021-08-20 Jakub Jelinek <jakub@redhat.com>
2439
2440 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
2441 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
2442 * error.c (GOMP_warning, GOMP_error): New functions.
2443 * testsuite/libgomp.c-c++-common/error-1.c: New test.
2444
2445 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
2446
2447 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
2448 omp_target_free. omp_target_is_present, omp_target_memcpy,
2449 omp_target_memcpy_rect, omp_target_associate_ptr,
2450 omp_target_disassociate_ptr): Add interface.
2451 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
2452 omp_target_free. omp_target_is_present, omp_target_memcpy,
2453 omp_target_memcpy_rect, omp_target_associate_ptr,
2454 omp_target_disassociate_ptr): Add interface.
2455 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
2456 interface block for omp_alloc + omp_free.
2457 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
2458 * testsuite/libgomp.fortran/refcount-1.f90: New test.
2459 * testsuite/libgomp.fortran/target-12.f90: New test.
2460
2461 2021-08-18 Jakub Jelinek <jakub@redhat.com>
2462
2463 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
2464
2465 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
2466
2467 * testsuite/libgomp.fortran/scope-1.f90: New test.
2468 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
2469
2470 2021-08-17 Jakub Jelinek <jakub@redhat.com>
2471
2472 * Makefile.am (libgomp_la_SOURCES): Add scope.c
2473 * Makefile.in: Regenerated.
2474 * libgomp_g.h (GOMP_scope_start): Declare.
2475 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
2476 * scope.c: New file.
2477 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
2478 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
2479
2480 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
2481
2482 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
2483 '?:' issues.
2484
2485 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
2486
2487 * testsuite/libgomp.fortran/masked-1.f90: New test.
2488
2489 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
2490
2491 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
2492
2493 2021-08-12 Jakub Jelinek <jakub@redhat.com>
2494
2495 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
2496
2497 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
2498
2499 * env.c (parse_bind_var): Accept 'primary' as alias for
2500 'master'.
2501 (omp_display_env): Add TODO comment to
2502 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
2503 * libgomp.texi: Change 'master thread' to 'primary thread'
2504 in line with OpenMP 5.1.
2505 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
2506 omp_proc_bind_master is an alias of it.
2507 (OMP_PROC_BIND): Mention 'PRIMARY'.
2508 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
2509 (omp_proc_bind_primary): Add.
2510 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2511 * omp_lib.f90.in (omp_proc_bind_primary): Add.
2512 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2513 * omp_lib.h.in (omp_proc_bind_primary): Add.
2514 * testsuite/libgomp.c/affinity-1.c: Check that
2515 'primary' works and is identical to 'master'.
2516
2517 2021-08-09 Julian Brown <julian@codesourcery.com>
2518 Kwok Cheung Yeung <kcy@codesourcery.com>
2519 Thomas Schwinge <thomas@codesourcery.com>
2520
2521 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
2522 16.
2523 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
2524 [acc_device_radeon]: Update.
2525 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
2526 [ACC_DEVICE_TYPE_radeon]: Likewise.
2527 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2528 [acc_device_radeon]: Likewise.
2529 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
2530 [ACC_DEVICE_TYPE_radeon]: Likewise.
2531 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
2532 'openacc_radeon_accel_selected' and '-O0'.
2533 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2534
2535 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
2536
2537 * icv-device.c (omp_get_device_num): New API function, host side.
2538 * fortran.c (omp_get_device_num_): New interface function.
2539 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
2540 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
2541 omp_get_device_num_.
2542 * libgomp.texi (omp_get_device_num): Add documentation for new API
2543 function.
2544 * omp.h.in (omp_get_device_num): Add declaration.
2545 * omp_lib.f90.in (omp_get_device_num): Likewise.
2546 * omp_lib.h.in (omp_get_device_num): Likewise.
2547 * target.c (gomp_load_image_to_device): If additional entry for device
2548 number exists at end of returned entries from 'load_image_func' hook,
2549 copy the assigned device number over to the device variable.
2550 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2551 (omp_get_device_num): New API function, device side.
2552 * plugin/plugin-gcn.c ("symcat.h"): Add include.
2553 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2554 at end of returned 'target_table' entries.
2555 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2556 (omp_get_device_num): New API function, device side.
2557 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
2558 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2559 at end of returned 'target_table' entries.
2560 * testsuite/lib/libgomp.exp
2561 (check_effective_target_offload_target_intelmic): New function for
2562 testing for intelmic offloading.
2563 * testsuite/libgomp.c-c++-common/target-45.c: New test.
2564 * testsuite/libgomp.fortran/target10.f90: New test.
2565
2566 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
2567 Ulrich Drepper <drepper@redhat.com>
2568
2569 * fortran.c (omp_display_env_, omp_display_env_8_): Only
2570 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
2571
2572 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
2573 Julian Brown <julian@codesourcery.com>
2574 Kwok Cheung Yeung <kcy@codesourcery.com>
2575
2576 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
2577 's%oaccdevlow%oaccloops%g'.
2578 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2579 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2580 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
2581 Likewise.
2582 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
2583 Likewise.
2584 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
2585 Likewise.
2586 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
2587 Likewise.
2588 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
2589 Likewise.
2590 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
2591 Likewise.
2592 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
2593 Likewise.
2594 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
2595 Likewise.
2596 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2597
2598 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
2599
2600 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
2601 threader.
2602 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
2603
2604 2021-07-27 Ulrich Drepper <drepper@gmail.com>
2605
2606 * env.c (wait_policy, stacksize): New static variables,
2607 move out of handle_omp_display_env.
2608 (omp_display_env): New function. The meat of the old
2609 handle_omp_display_env function.
2610 (handle_omp_display_env): Change to not take parameters
2611 and instead use the global variables. Only perform
2612 parsing, defer to omp_display_env for the implementation.
2613 (initialize_env): Remove local variables wait_policy and
2614 stacksize. Don't pass parameters to handle_omp_display_env.
2615 * fortran.c: Add ialias_redirect for omp_display_env.
2616 (omp_display_env_, omp_display_env_8_): New functions.
2617 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
2618 omp_display_env_, and omp_display_env_8_.
2619 * omp.h.in: Declare omp_display_env.
2620 * omp_lib.f90.in: Likewise.
2621 * omp_lib.h.in: Likewise.
2622
2623 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2624 Julian Brown <julian@codesourcery.com>
2625
2626 * target.c (gomp_coalesce_buf_add): Update comment.
2627 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
2628 'aq && cbuf'.
2629 (gomp_map_vars_internal): Only 'if (!aq)', do
2630 'gomp_coalesce_buf_add'.
2631 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
2632 XFAIL.
2633
2634 2021-07-27 Julian Brown <julian@codesourcery.com>
2635 Thomas Schwinge <thomas@codesourcery.com>
2636
2637 * libgomp.h (gomp_copy_host2dev): Update prototype.
2638 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
2639 argument to gomp_copy_host2dev (false).
2640 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
2641 (copy_data): Don't free src.
2642 (queue_push_copy): Remove free_src handling.
2643 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
2644 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
2645 snapshotting.
2646 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
2647 queue_push_copy.
2648 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
2649 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
2650 data when true, and set up deferred freeing of temporary buffer.
2651 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
2652 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
2653 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
2654 calls to gomp_copy_host2dev with appropriate ephemeral argument.
2655 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
2656 XFAIL.
2657
2658 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2659 Tom de Vries <tom@codesourcery.com>
2660
2661 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
2662 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
2663
2664 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2665
2666 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
2667 sequencing of 'async' data copying vs. profiling events.
2668 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2669 Likewise.
2670
2671 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2672 Julian Brown <julian@codesourcery.com>
2673
2674 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
2675 'async'/'wait' issue.
2676 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
2677 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
2678 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
2679
2680 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
2681 Joseph Myers <joseph@codesourcery.com>
2682 Cesar Philippidis <cesar@codesourcery.com>
2683
2684 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
2685 file.
2686 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2687 Likewise.
2688 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
2689 Likewise.
2690 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2691
2692 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
2693
2694 PR target/101484
2695 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
2696 '-Wno-error=array-bounds'.
2697 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
2698 * libgomp.h [__AMDGCN__]: Likewise.
2699
2700 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
2701
2702 PR target/101484
2703 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
2704 * libgomp.h [__AMDGCN__]: Likewise.
2705
2706 2021-07-13 Jakub Jelinek <jakub@redhat.com>
2707 Florian Weimer <fweimer@redhat.com>
2708
2709 * config/linux/sem.h: Don't include limits.h.
2710 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
2711 * config/linux/affinity.c: Include limits.h.
2712
2713 2021-07-01 Jakub Jelinek <jakub@redhat.com>
2714
2715 PR middle-end/94366
2716 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
2717
2718 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2719
2720 PR other/67300
2721 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
2722 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
2723 avoid disabling other offload targets.
2724 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
2725 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
2726 * testsuite/libgomp.c/target-44.c: Likewise.
2727
2728 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2729
2730 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
2731 target has shared memory and disable some scalar pointer/allocatable
2732 checks if not as firstprivate does not work.
2733
2734 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
2735
2736 PR testsuite/101114
2737 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
2738 Add "target offload_device_nonshared_as" condition for enabling test.
2739
2740 2021-06-24 Jakub Jelinek <jakub@redhat.com>
2741
2742 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
2743 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
2744 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
2745 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
2746
2747 2021-06-23 Jakub Jelinek <jakub@redhat.com>
2748
2749 PR middle-end/101167
2750 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
2751
2752 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
2753
2754 * hashtab.h (htab_clear): New function with initialization code
2755 factored out from...
2756 (htab_create): ...here, adjust to use htab_clear function.
2757 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
2758 special refcount values, add comments.
2759 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
2760 (REFCOUNT_LINK): Likewise.
2761 (REFCOUNT_STRUCTELEM): New special refcount range for structure
2762 element siblings.
2763 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
2764 sibling maps.
2765 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
2766 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
2767 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
2768 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
2769 (struct splay_tree_key_s): Add structelem_refcount and
2770 structelem_refcount_ptr fields into a union with dynamic_refcount.
2771 Add comments.
2772 (gomp_map_vars): Delete declaration.
2773 (gomp_map_vars_async): Likewise.
2774 (gomp_unmap_vars): Likewise.
2775 (gomp_unmap_vars_async): Likewise.
2776 (goacc_map_vars): New declaration.
2777 (goacc_unmap_vars): Likewise.
2778 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
2779 (goacc_enter_datum): Likewise.
2780 (goacc_enter_data_internal): Likewise.
2781 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
2782 and goacc_unmap_vars.
2783 (GOACC_data_start): Adjust to use goacc_map_vars.
2784 (GOACC_data_end): Adjust to use goacc_unmap_vars.
2785 * target.c (hash_entry_type): New typedef.
2786 (htab_alloc): New function hook for hashtab.h.
2787 (htab_free): Likewise.
2788 (htab_hash): Likewise.
2789 (htab_eq): Likewise.
2790 (hashtab.h): Add file include.
2791 (gomp_increment_refcount): New function.
2792 (gomp_decrement_refcount): Likewise.
2793 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
2794 gomp_increment_refcount.
2795 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
2796 to gomp_map_vars_existing.
2797 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
2798 variable to guard OpenMP specific paths, adjust calls to
2799 gomp_map_vars_existing, add structure element sibling splay_tree_key
2800 sequence creation code, adjust Fortran map case to avoid increment
2801 under OpenMP.
2802 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
2803 local refcount_set if caller passed in NULL, adjust call to
2804 gomp_map_vars_internal.
2805 (gomp_map_vars_async): Adjust and rename into...
2806 (goacc_map_vars): ...this new function, adjust call to
2807 gomp_map_vars_internal.
2808 (gomp_remove_splay_tree_key): New function with code factored out from
2809 gomp_remove_var_internal.
2810 (gomp_remove_var_internal): Add code to handle removing multiple
2811 splay_tree_key sequence for structure elements, adjust code to use
2812 gomp_remove_splay_tree_key for splay-tree key removal.
2813 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
2814 gomp_decrement_refcount.
2815 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
2816 local refcount_set if caller passed in NULL, adjust call to
2817 gomp_unmap_vars_internal.
2818 (gomp_unmap_vars_async): Adjust and rename into...
2819 (goacc_unmap_vars): ...this new function, adjust call to
2820 gomp_unmap_vars_internal.
2821 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
2822 gomp_unmap_vars.
2823 (GOMP_target_ext): Likewise.
2824 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
2825 (GOMP_target_data): Likewise.
2826 (GOMP_target_data_ext): Likewise.
2827 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
2828 (gomp_exit_data): Add refcount_set parameter, adjust to use
2829 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
2830 after main loop.
2831 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
2832 gomp_map_vars and gomp_exit_data.
2833 (gomp_target_task_fn): Likewise.
2834 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
2835 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
2836 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
2837 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
2838 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
2839 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
2840
2841 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
2842
2843 PR fortran/92568
2844 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
2845
2846 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
2847 Thomas Schwinge <thomas@codesourcery.com>
2848
2849 * libgomp.map (GOACC_2.0.2): New symbol version.
2850 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
2851 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
2852
2853 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
2854 Andrew Stubbs <ams@codesourcery.com>
2855
2856 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
2857 extracted from...
2858 (GOACC_enter_exit_data): ... here.
2859 (GOACC_declare): Use it.
2860
2861 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
2862
2863 * oacc-parallel.c (GOACC_declare): Move...
2864 * oacc-mem.c: ... here.
2865 * libgomp_g.h: Adjust.
2866
2867 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
2868 Thomas Schwinge <thomas@codesourcery.com>
2869
2870 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
2871 handling.
2872
2873 2021-06-10 Jakub Jelinek <jakub@redhat.com>
2874
2875 PR tree-optimization/100981
2876 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
2877 dsdotr and dsdoti to 0.
2878
2879 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
2880
2881 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
2882 if atomic compare-and-swap is supported on 'int'.
2883
2884 2021-06-09 Richard Biener <rguenther@suse.de>
2885
2886 PR tree-optimization/100981
2887 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
2888
2889 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2890
2891 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
2892 unconditionally.
2893 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2894 Update.
2895 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2896 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
2897
2898 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2899
2900 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
2901 '-DACC_MEM_SHARED=0'.
2902 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
2903 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2904 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
2905 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2906 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2907 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2908 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2909 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2910 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2911 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2912 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
2913 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
2914 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
2915 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2916 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
2917 'acc_device_radeon' testing.
2918 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
2919 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2920 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2921 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
2922 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2923 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2924 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
2925 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
2926 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2927 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2928 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
2929 for non-'openacc_nvidia_accel_selected'.
2930 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2931 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
2932 all implement this checking".
2933 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2934 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2935 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2936 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2937 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2938
2939 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2940
2941 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
2942 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
2943
2944 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2945
2946 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
2947 for 'acc_device_radeon'.
2948
2949 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2950
2951 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
2952 for non-'acc_device_nvidia'.
2953
2954 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2955
2956 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
2957 'acc_device_radeon' testing.
2958 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2959 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2960 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2961
2962 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2963
2964 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
2965 require 'openacc_nvidia_accel_selected'. Fix up for
2966 'ACC_DEVICE_TYPE_radeon'.
2967
2968 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2969
2970 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
2971 'openacc_nvidia_accel_selected'.
2972 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2973
2974 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2975
2976 * testsuite/lib/libgomp.exp
2977 (check_effective_target_openacc_radeon_accel_selected):
2978 Streamline.
2979
2980 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2981
2982 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
2983 PR80547 workaround.
2984
2985 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2986
2987 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2988 <acc_device_nvidia>: Update comment.
2989
2990 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
2991
2992 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
2993
2994 2021-05-27 Jakub Jelinek <jakub@redhat.com>
2995
2996 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
2997 check_effective_target_openacc_cublas,
2998 check_effective_target_openacc_cudart): New.
2999 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
3000 target openacc_cublas.
3001 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3002 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3003 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
3004 target openacc_cuda.
3005 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
3006 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
3007 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
3008 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
3009 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
3010 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
3011 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
3012 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
3013 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
3014 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3015 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
3016 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3017 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
3018 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
3019 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
3020 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
3021 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
3022 targets openacc_cublas and openacc_cudart.
3023 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3024 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3025 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3026 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3027 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
3028 Require effective target openacc_cudart.
3029 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
3030 for effective target openacc_cuda and add && defined USE_CUDA_H to
3031 preprocessor conditionals. Guard -lcuda also on openacc_cuda
3032 effective target.
3033
3034 2021-05-26 Jakub Jelinek <jakub@redhat.com>
3035
3036 PR libgomp/100573
3037 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
3038 GOMP_target_end_data, GOMP_target_update_ext,
3039 GOMP_target_enter_exit_data): New dummy entrypoints.
3040 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
3041 GOMP_target_end_data, GOMP_target_update_ext,
3042 GOMP_target_enter_exit_data): Likewise.
3043 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
3044 OMPFROM, OMPTO): Define.
3045 (main): Remove #pragma omp target teams around all the tests.
3046 * testsuite/libgomp.c-c++-common/target-41.c: New test.
3047 * testsuite/libgomp.c-c++-common/target-42.c: New test.
3048
3049 2021-05-25 Jakub Jelinek <jakub@redhat.com>
3050
3051 PR middle-end/99928
3052 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
3053
3054 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
3055
3056 PR fortran/86470
3057 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
3058 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
3059 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
3060
3061 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
3062
3063 PR testsuite/90115
3064 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
3065 uninteresting/varying diagnostics.
3066
3067 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3068
3069 PR middle-end/90115
3070 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
3071 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3072
3073 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3074
3075 PR middle-end/90115
3076 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
3077 file.
3078 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3079 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
3080 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3081 Likewise.
3082 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3083 Likewise.
3084 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3085 Likewise.
3086 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3087 Likewise.
3088 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3089 Likewise.
3090 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3091 Likewise.
3092 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3093 Likewise.
3094 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3095 Likewise.
3096 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3097 Likewise.
3098 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3099 Likewise.
3100 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3101 Likewise.
3102 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3103 Likewise.
3104 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3105 Likewise.
3106 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3107 Likewise.
3108 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3109 Likewise.
3110 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3111 Likewise.
3112 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3113 Likewise.
3114 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3115 Likewise.
3116 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3117 Likewise.
3118 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3119 Likewise.
3120 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3121 Likewise.
3122 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3123 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3124 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3125 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3126 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3127 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3128 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3129 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3130 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3131 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3132 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3133 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3134 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3135 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3136 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3137 Likewise.
3138 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
3139 Likewise.
3140 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
3141 Likewise.
3142 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3143 Likewise.
3144 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3145 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3146 Likewise.
3147 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3148 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3149 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3150 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3151 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3152 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3153 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3154 Likewise.
3155 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3156 Likewise.
3157 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3158 Likewise.
3159 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3160 Likewise.
3161 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3162 Likewise.
3163 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3164 Likewise.
3165 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3166 Likewise.
3167 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3168 Likewise.
3169 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3170 Likewise.
3171 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3172 Likewise.
3173 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3174 Likewise.
3175 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3176 Likewise.
3177 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3178 Likewise.
3179 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3180 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3181 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3182 Likewise.
3183 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3184 Likewise.
3185 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3186 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3187 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3188
3189 2021-05-21 Julian Brown <julian@codesourcery.com>
3190 Chung-Lin Tang <cltang@codesourcery.com>
3191 Thomas Schwinge <thomas@codesourcery.com>
3192
3193 PR middle-end/90115
3194 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
3195 test.
3196 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3197 Likewise.
3198 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3199 Likewise.
3200
3201 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3202
3203 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
3204 for nvptx offloading.
3205
3206 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
3207
3208 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
3209
3210 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
3211
3212 PR target/83812
3213 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
3214
3215 2021-05-19 Julian Brown <julian@codesourcery.com>
3216
3217 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
3218
3219 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3220
3221 * testsuite/lib/libgomp.exp
3222 (check_effective_target_offload_target_nvptx): Don't shadow global
3223 'offload_targets' variable.
3224
3225 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3226
3227 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
3228 '-latomic' to nvptx offloading compilation.
3229 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3230
3231 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3232
3233 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
3234 offloading compilation.
3235
3236 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
3237
3238 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
3239 if new tasks generated.
3240 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
3241
3242 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
3243
3244 * testsuite/libgomp.fortran/parallel-master.f90: New test.
3245
3246 2021-05-13 Martin Liska <mliska@suse.cz>
3247
3248 PR testsuite/100569
3249 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
3250 * testsuite/libgomp.c/pr46032-2.c: Likewise.
3251 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
3252 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
3253
3254 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
3255
3256 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
3257 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
3258
3259 2021-05-11 Jakub Jelinek <jakub@redhat.com>
3260
3261 PR middle-end/100471
3262 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
3263 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
3264 reduction pointer.
3265 * testsuite/libgomp.c/task-reduction-4.c: New test.
3266
3267 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
3268 Tom de Vries <tdevries@suse.de>
3269
3270 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
3271 complex/floating-point || + && reduction with 'omp target'.
3272 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3273
3274 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3275
3276 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
3277 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
3278 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
3279 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
3280
3281 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3282
3283 PR testsuite/100397
3284 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
3285 declaration to scope of non-'depend'-guarded assignment to avoid races.
3286
3287 2021-05-03 Tom de Vries <tdevries@suse.de>
3288
3289 PR target/100321
3290 * testsuite/libgomp.c/target-44.c: New test.
3291
3292 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
3293
3294 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
3295
3296 2021-04-29 Tom de Vries <tdevries@suse.de>
3297
3298 * testsuite/libgomp.c/pr81778.c: New test.
3299
3300 2021-04-29 Tom de Vries <tdevries@suse.de>
3301
3302 PR target/100232
3303 * testsuite/libgomp.c/target-43.c: New file.
3304
3305 2021-04-28 Jakub Jelinek <jakub@redhat.com>
3306 Tobias Burnus <tobias@codesourcery.com>
3307
3308 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
3309 * target.c (gomp_load_plugin_for_device): If set and if a plugin
3310 can't be dlopened, silently assume it has no devices.
3311 * Makefile.in: Regenerate.
3312 * config.h.in: Regenerate.
3313 * configure: Regenerate.
3314
3315 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3316
3317 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3318 Use [Ww]arning in dg-bogus as FE diagnostic and default
3319 diagnostic differ and the result depends on ENABLE_OFFLOAD.
3320 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3321 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3322 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3323
3324 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3325
3326 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3327 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
3328 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3329 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3330 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3331
3332 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3333 Nathan Sidwell <nathan@codesourcery.com>
3334 Tom de Vries <vries@codesourcery.com>
3335 Julian Brown <julian@codesourcery.com>
3336 Kwok Cheung Yeung <kcy@codesourcery.com>
3337
3338 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
3339 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
3340 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3341 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3342 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3343 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3344 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
3345 Likewise.
3346 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
3347 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3348 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3349 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3350 Likewise.
3351 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
3352 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3353 Likewise.
3354 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3355 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3356 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3357 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3358 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3359 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3360 Likewise.
3361 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3362 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3363 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3364 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3365 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3366 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3367 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3368 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3369 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3370 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3371 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3372
3373 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3374
3375 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
3376 compile with '-w'.
3377 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3378 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3379 Likewise.
3380 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3381 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
3382 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3383 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3384 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3385 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3386 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3387
3388 2021-04-22 Richard Biener <rguenther@suse.de>
3389
3390 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
3391 only on nvptx-none.
3392
3393 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3394
3395 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
3396 omp_depend_kind instead of defining it as 16.
3397
3398 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3399
3400 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3401 New, based on check_effective_target_offload_target_nvptx.
3402 (check_effective_target_offload_target_nvptx): Call it.
3403 (check_effective_target_offload_target_amdgcn): New.
3404 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
3405 Require target offload_target_nvptx || offload_target_amdgcn.
3406 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
3407 * testsuite/libgomp.c/pr86416-1.c: Likewise.
3408 * testsuite/libgomp.c/pr86416-2.c: Likewise.
3409
3410 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3411
3412 * testsuite/libgomp.fortran/depobj-1.f90: New test.
3413
3414 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
3415
3416 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3417 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
3418 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3419 Likewise.
3420 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3421 Likewise.
3422 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3423
3424 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
3425
3426 PR target/99555
3427 * testsuite/lib/libgomp.exp
3428 (check_effective_target_offload_device_nvptx): New.
3429 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
3430 resolved, make sure that we exit quickly, with error status,
3431 XFAILed.
3432 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
3433 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3434
3435 2021-04-14 Jakub Jelinek <jakub@redhat.com>
3436
3437 PR testsuite/100071
3438 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
3439 cp = omp_alloc with cp, p arguments instead of cq, q and call
3440 c_f_pointer after last cq = omp_alloc with cq, q.
3441
3442 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
3443
3444 PR middle-end/98088
3445 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
3446 for loop with GT/GE condition.
3447 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3448
3449 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
3450
3451 PR middle-end/84991
3452 PR middle-end/84992
3453 PR middle-end/90779
3454 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
3455
3456 2021-04-09 Jakub Jelinek <jakub@redhat.com>
3457
3458 PR libgomp/99984
3459 * team.c (gomp_thread_start): Call pthread_setspecific for
3460 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
3461 has been initialized to avoid false positive warning.
3462
3463 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
3464
3465 PR target/99555
3466 * testsuite/lib/on_device_arch.c: Move to ...
3467 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
3468 * testsuite/libgomp.fortran/on_device_arch.c: New file;
3469 #include on_device_arch.h.
3470 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
3471 on_device_arch.h instead of using dg-additional-source.
3472 * testsuite/libgomp.c/pr99555-1.c: Likewise.
3473 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
3474 on_device_arch.c without relative paths.
3475
3476 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3477
3478 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
3479 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
3480 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
3481 * config.h.in: Regenerate.
3482 * configure: Likewise.
3483
3484 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3485
3486 PR target/99555
3487 * testsuite/lib/on_device_arch.c: New file.
3488 * testsuite/libgomp.c/pr99555-1.c: Likewise.
3489 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
3490 skip for nvptx offloading, with error status.
3491 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3492
3493 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3494
3495 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3496 OpenACC 'serial' construct diagnostic for nvptx offloading.
3497
3498 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
3499
3500 PR c++/99509
3501 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
3502
3503 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
3504
3505 PR fortran/98858
3506 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
3507
3508 2021-03-04 Jakub Jelinek <jakub@redhat.com>
3509
3510 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
3511 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
3512 checking of -m32 or -mx32 options on the command line.
3513 * config.h.in: Regenerated.
3514 * configure: Regenerated.
3515
3516 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
3517
3518 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
3519 support from the target.
3520
3521 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3522 Jakub Jelinek <jakub@redhat.com>
3523
3524 PR libgomp/98738
3525 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
3526 (struct gomp_task): Replace detach and completion_sem fields with
3527 union containing completion_sem and detach_team. Add deferred_p
3528 field.
3529 (struct gomp_team): Remove task_detach_queue.
3530 * task.c: Include assert.h.
3531 (gomp_init_task): Initialize deferred_p and completion_sem fields.
3532 Rearrange initialization order of fields.
3533 (task_fulfilled_p): Delete.
3534 (GOMP_task): Use address of task as the event handle. Remove
3535 initialization of detach field. Initialize deferred_p field.
3536 Use automatic local for completion_sem. Initialize detach_team field
3537 for deferred tasks.
3538 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
3539 Set kind of suspended detach task to GOMP_TASK_DETACHED and
3540 decrement task_running_count. Move finish_cancelled block out of
3541 else branch. Relocate call to gomp_team_barrier_done.
3542 (GOMP_taskwait): Handle tasks with completion events that have not
3543 been fulfilled.
3544 (GOMP_taskgroup_end): Likewise.
3545 (omp_fulfill_event): Use address of task as event handle. Post to
3546 completion_sem for undeferred tasks. Clear detach_team if task
3547 has not finished. For finished tasks, handle post-execution tasks,
3548 call gomp_team_barrier_wake if necessary, and free task.
3549 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
3550 (free_team): Remove free of task_detach_queue.
3551 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
3552 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
3553 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
3554 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
3555 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
3556 Change data-sharing of detach events on enclosing parallel to private.
3557 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
3558 taskwait directive.
3559 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
3560 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
3561 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
3562 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
3563 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
3564 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
3565 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
3566 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
3567 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
3568 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
3569 Change data-sharing of detach events on enclosing parallel to private.
3570 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
3571 taskwait directive.
3572 * testsuite/libgomp.fortran/task-detach-7.f90: New.
3573 * testsuite/libgomp.fortran/task-detach-8.f90: New.
3574 * testsuite/libgomp.fortran/task-detach-9.f90: New.
3575 * testsuite/libgomp.fortran/task-detach-10.f90: New.
3576 * testsuite/libgomp.fortran/task-detach-11.f90: New.
3577
3578 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
3579
3580 PR fortran/99171
3581 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
3582
3583 2021-02-17 Julian Brown <julian@codesourcery.com>
3584
3585 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
3586 expected errors.
3587
3588 2021-02-17 Julian Brown <julian@codesourcery.com>
3589
3590 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
3591 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
3592
3593 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
3594
3595 * config/linux/x86/futex.h (__futex_wait):
3596 Revert output type back to long.
3597 (__futex_wake): Ditto.
3598 (futex_wait): Update for revert.
3599 (futex_wake): Ditto.
3600
3601 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
3602
3603 * config/linux/x86/futex.h (__futex_wait): New static inline
3604 wrapper function. Correct output type to int and
3605 timeout type to void *.
3606 (__futex_wake): New static inline wrapper function.
3607 Correct output type to int.
3608 (futex_wait): Use __futex_wait.
3609 (futex_wake): Use __futex_wake.
3610
3611 2021-02-10 Julian Brown <julian@codesourcery.com>
3612
3613 PR fortran/98979
3614 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
3615 errors.
3616
3617 2021-02-04 Julian Brown <julian@codesourcery.com>
3618
3619 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
3620
3621 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
3622
3623 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3624 EF_AMDGPU_MACH_AMDGCN_GFX908.
3625 (gcn_gfx908_s): New constant string.
3626 (isa_hsa_name): Add gfx908.
3627 (isa_code): Add gfx908.
3628
3629 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3630
3631 * libgomp.texi (omp_fulfill_event): New entry.
3632
3633 2021-01-20 Jakub Jelinek <jakub@redhat.com>
3634
3635 * task.c (GOMP_task): Rename priority argument to priority_arg,
3636 add priority automatic variable and modify that variable. Instead of
3637 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
3638 check flags for that bit.
3639
3640 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
3641
3642 PR fortran/98476
3643 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
3644
3645 2021-01-18 Andreas Schwab <schwab@suse.de>
3646
3647 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
3648
3649 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3650
3651 * config/rtems/sem.h (gomp_sem_getcount): New function.
3652
3653 2021-01-18 Jakub Jelinek <jakub@redhat.com>
3654
3655 * config/linux/sem.h (gomp_sem_getcount): New function.
3656 * config/posix/sem.h (gomp_sem_getcount): New function.
3657 * config/posix/sem.c (gomp_sem_getcount): New function.
3658 * config/accel/sem.h (gomp_sem_getcount): New function.
3659 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
3660 (omp_fulfill_event): Likewise.
3661
3662 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3663
3664 * fortran.c (omp_fulfill_event_): New.
3665 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
3666 (struct gomp_team): Add task_detach_queue and task_detach_count
3667 fields.
3668 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
3669 * libgomp_g.h (GOMP_task): Add extra argument.
3670 * omp.h.in (enum omp_event_handle_t): New.
3671 (omp_fulfill_event): New.
3672 * omp_lib.f90.in (omp_event_handle_kind): New.
3673 (omp_fulfill_event): New.
3674 * omp_lib.h.in (omp_event_handle_kind): New.
3675 (omp_fulfill_event): Declare.
3676 * priority_queue.c (priority_tree_find): New.
3677 (priority_list_find): New.
3678 (priority_queue_find): New.
3679 * priority_queue.h (priority_queue_predicate): New.
3680 (priority_queue_find): New.
3681 * task.c (gomp_init_task): Initialize detach field.
3682 (task_fulfilled_p): New.
3683 (GOMP_task): Add detach argument. Ignore detach argument if
3684 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
3685 field. Copy address of completion_sem into detach argument and
3686 into the start of the data record. Wait for detach event if task
3687 not deferred.
3688 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
3689 Remove completed tasks and requeue dependent tasks.
3690 (omp_fulfill_event): New.
3691 * team.c (gomp_new_team): Initialize task_detach_queue and
3692 task_detach_count fields.
3693 (free_team): Free task_detach_queue field.
3694 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
3695 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
3696 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
3697 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
3698 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
3699 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
3700 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
3701 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
3702 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
3703 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
3704 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
3705 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
3706
3707 2021-01-15 Jakub Jelinek <jakub@redhat.com>
3708
3709 PR target/70454
3710 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
3711 be added through preprocessor check on
3712 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
3713
3714 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
3715
3716 PR libgomp/65099
3717 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
3718 configurations.
3719 * configure: Regenerate.
3720 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
3721 check.
3722
3723 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3724
3725 * configure: Re-generate.
3726
3727 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3728
3729 * configure: Re-generate.
3730
3731 2021-01-05 Julian Brown <julian@codesourcery.com>
3732
3733 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
3734 (struct ptx_device): Add omp_stacks struct.
3735 (nvptx_open_device): Initialise cached-stacks housekeeping info.
3736 (nvptx_close_device): Free cached stacks block and mutex.
3737 (nvptx_stacks_free): New function.
3738 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
3739 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
3740 (nvptx_stacks_alloc): Rename to...
3741 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
3742 size or smaller is required.
3743 (nvptx_stacks_free): Remove.
3744 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
3745 during kernel execution.
3746
3747 2021-01-01 Jakub Jelinek <jakub@redhat.com>
3748
3749 * libgomp.texi: Bump @copying's copyright year.
3750
3751 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
3752
3753 * libgomp.texi (Top): Avoid bad "up" link.
3754
3755 2020-12-18 Jakub Jelinek <jakub@redhat.com>
3756
3757 * testsuite/libgomp.c/task-6.c: New test.
3758
3759 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
3760
3761 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
3762 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
3763
3764 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
3765
3766 * testsuite/libgomp.fortran/scan-1.f90: New test.
3767
3768 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
3769
3770 PR target/97865
3771 * configure: Regenerate.
3772
3773 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
3774
3775 * configure: Regenerate.
3776
3777 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
3778
3779 * testsuite/libgomp.oacc-c++/cache-1.C: New.
3780 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
3781
3782 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
3783
3784 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
3785 expected results.
3786
3787 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
3788
3789 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
3790 (reserved): Delete unused define.
3791
3792 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
3793
3794 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
3795 Tcl 8.5-specific behavior.
3796 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3797
3798 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3799
3800 * env.c (gomp_global_icv): Remove nest_var field. Add
3801 max_active_levels_var field.
3802 (gomp_max_active_levels_var): Remove.
3803 (parse_boolean): Return true on success.
3804 (handle_omp_display_env): Express OMP_NESTED in terms of
3805 max_active_levels_var. Change format specifier for
3806 max_active_levels_var.
3807 (initialize_env): Set max_active_levels_var from
3808 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
3809 OMP_PROC_BIND.
3810 * icv.c (omp_set_nested): Express in terms of
3811 max_active_levels_var.
3812 (omp_get_nested): Likewise.
3813 (omp_set_max_active_levels): Use max_active_levels_var field instead
3814 of gomp_max_active_levels_var.
3815 (omp_get_max_active_levels): Likewise.
3816 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
3817 max_active_levels_var field.
3818 (gomp_supported_active_levels): Set to UCHAR_MAX.
3819 (gomp_max_active_levels_var): Delete.
3820 * libgomp.texi (omp_get_nested): Update documentation.
3821 (omp_set_nested): Likewise.
3822 (OMP_MAX_ACTIVE_LEVELS): Likewise.
3823 (OMP_NESTED): Likewise.
3824 (OMP_NUM_THREADS): Likewise.
3825 (OMP_PROC_BIND): Likewise.
3826 * parallel.c (gomp_resolve_num_threads): Replace reference
3827 to nest_var with max_active_levels_var. Use max_active_levels_var
3828 field instead of gomp_max_active_levels_var.
3829
3830 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
3831
3832 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
3833 nvptx_usleep; use also for device={arch(gcn)}.
3834
3835 2020-11-14 Jakub Jelinek <jakub@redhat.com>
3836
3837 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
3838 (foo): Add tests for non-VLA private and firstprivate clauses on
3839 omp task.
3840 (bar): Likewise. Remove taking of address from private/firstprivate
3841 variables.
3842 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
3843 (foo): Add p, q, px and s arguments. Add tests for array reductions
3844 and for non-VLA private and firstprivate clauses on omp task.
3845 (bar): Removed.
3846 (main): Adjust foo caller. Don't call bar.
3847
3848 2020-11-13 Gergö Barany <gergo@codesourcery.com>
3849 Thomas Schwinge <thomas@codesourcery.com>
3850
3851 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3852 New.
3853 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3854 Likewise.
3855 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3856 Likewise.
3857 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3858 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3859
3860 2020-11-13 Gergö Barany <gergo@codesourcery.com>
3861 Thomas Schwinge <thomas@codesourcery.com>
3862
3863 PR fortran/94358
3864 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
3865
3866 2020-11-13 Jakub Jelinek <jakub@redhat.com>
3867
3868 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
3869 for array reductions.
3870 (main): Adjust foo callers.
3871
3872 2020-11-12 Jakub Jelinek <jakub@redhat.com>
3873
3874 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
3875 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
3876 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
3877 * allocator.c (omp_aligned_alloc): New for now static function,
3878 add alignment argument and handle it.
3879 (omp_alloc): Reimplement using omp_aligned_alloc.
3880 (GOMP_alloc, GOMP_free): New functions.
3881 (omp_free): Add ialias.
3882 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
3883 * testsuite/libgomp.c++/allocate-1.C: New test.
3884
3885 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
3886
3887 PR fortran/97782
3888 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
3889
3890 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
3891
3892 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
3893 usable.
3894 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
3895 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
3896 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
3897 (goacc_enter_data_internal): Likewise.
3898 * target.c (gomp_map_vars_internal):
3899 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
3900 of gomp_attach_pointer for OpenMP cases.
3901 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
3902 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
3903 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
3904
3905 2020-11-05 Ulrich Drepper <drepper@redhat.com>
3906 Kwok Cheung Yeung <kcy@codesourcery.com>
3907
3908 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
3909 * Makefile.in: Regenerate.
3910 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
3911 pragmas to ignore -Wdeprecated-declarations warnings.
3912 * icv.c: Likewise.
3913 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
3914 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
3915 and omp_get_nested with __GOMP_DEPRECATED_5_0.
3916 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
3917 deprecated.
3918 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
3919 to test options.
3920 * testsuite/libgomp.c/affinity-1.c: Likewise.
3921 * testsuite/libgomp.c/affinity-2.c: Likewise.
3922 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
3923 * testsuite/libgomp.c/lib-1.c: Likewise.
3924 * testsuite/libgomp.c/nested-1.c: Likewise.
3925 * testsuite/libgomp.c/nested-2.c: Likewise.
3926 * testsuite/libgomp.c/nested-3.c: Likewise.
3927 * testsuite/libgomp.c/pr32362-1.c: Likewise.
3928 * testsuite/libgomp.c/pr32362-2.c: Likewise.
3929 * testsuite/libgomp.c/pr32362-3.c: Likewise.
3930 * testsuite/libgomp.c/pr35549.c: Likewise.
3931 * testsuite/libgomp.c/pr42942.c: Likewise.
3932 * testsuite/libgomp.c/pr61200.c: Likewise.
3933 * testsuite/libgomp.c/sort-1.c: Likewise.
3934 * testsuite/libgomp.c/target-5.c: Likewise.
3935 * testsuite/libgomp.c/target-6.c: Likewise.
3936 * testsuite/libgomp.c/teams-1.c: Likewise.
3937 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3938 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3939 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3940 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
3941 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3942 * testsuite/libgomp.fortran/lib2.f: Likewise.
3943 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3944 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3945
3946 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
3947
3948 PR target/85486
3949 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
3950 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3951 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3952
3953 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
3954
3955 PR testsuite/80219
3956 PR testsuite/85303
3957 * testsuite/lib/libgomp.exp (libgomp_init): Set
3958 'gcc_warning_prefix', 'gcc_error_prefix'.
3959
3960 2020-10-30 Jakub Jelinek <jakub@redhat.com>
3961
3962 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
3963 even in field_tgt_clear initializer.
3964
3965 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3966
3967 * testsuite/libgomp.c/target-42.c: New test.
3968
3969 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3970 Tom de Vries <tdevries@suse.de>
3971
3972 PR testsuite/81690
3973 * testsuite/libgomp.c/usleep.h: New file.
3974 * testsuite/libgomp.c/target-32.c: Include usleep.h.
3975 (main): Use tgt_usleep instead of usleep.
3976 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
3977 (main): Use tgt_usleep instead of usleep.
3978
3979 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3980
3981 PR lto/96680
3982 * testsuite/libgomp.c/declare-variant-1.c: New test.
3983
3984 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3985
3986 * testsuite/libgomp.c/target-41.c: New test.
3987
3988 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3989
3990 * icv.c (omp_get_initial_device): Remove including corresponding
3991 ialias.
3992 * icv-device.c (omp_get_initial_device): New function. Return
3993 gomp_get_num_devices (). Add ialias.
3994 * target.c (resolve_device): Don't fail with
3995 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
3996 gomp_get_num_devices ().
3997 (omp_target_alloc, omp_target_free, omp_target_is_present,
3998 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
3999 omp_target_disassociate_ptr, omp_pause_resource): Use
4000 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
4001 first use in the functions, in uses dominated by the
4002 gomp_get_num_devices call use num_devices_openmp instead.
4003 * libgomp.texi (omp_get_initial_device): Document.
4004 * config/gcn/icv-device.c (omp_get_initial_device): New function.
4005 Add ialias.
4006 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
4007 * testsuite/libgomp.c/target-40.c: New test.
4008
4009 2020-10-21 Jakub Jelinek <jakub@redhat.com>
4010
4011 * env.c (parse_target_offload): Change new_offload var type to int,
4012 preinitialize to -1, remove found var and test new_offload != -1
4013 instead of found.
4014
4015 2020-10-20 Jakub Jelinek <jakub@redhat.com>
4016
4017 * target.c (gomp_target_init): Inside of the function, use automatic
4018 variables corresponding to num_devices, num_devices_openmp and devices
4019 global variables and update the globals only at the end of the
4020 function.
4021
4022 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
4023
4024 * env.c (gomp_target_offload_var): New.
4025 (parse_target_offload): New.
4026 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
4027 (initialize_env): Parse OMP_TARGET_OFFLOAD.
4028 * libgomp.h (gomp_target_offload_t): New.
4029 (gomp_target_offload_var): New.
4030 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
4031 * target.c (resolve_device): Generate error if device not found and
4032 offloading is mandatory.
4033 (gomp_target_fallback): Generate error if offloading is mandatory.
4034 (GOMP_target): Add argument in call to gomp_target_fallback.
4035 (GOMP_target_ext): Likewise.
4036 (gomp_target_data_fallback): Generate error if offloading is mandatory.
4037 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
4038 (GOMP_target_data_ext): Likewise.
4039 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
4040 (gomp_target_init): Return early if offloading is disabled.
4041
4042 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
4043
4044 * libgomp.texi (omp_get_max_active_levels): Modify description.
4045 (omp_get_supported_active_levels): Make descriptions consistent.
4046
4047 2020-10-14 Jakub Jelinek <jakub@redhat.com>
4048
4049 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
4050
4051 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
4052
4053 * env.c (gomp_max_active_levels_var): Initialize to
4054 gomp_supported_active_levels.
4055 (initialize_env): Limit gomp_max_active_levels_var to be at most
4056 equal to gomp_supported_active_levels.
4057 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
4058 (omp_get_supported_active_levels_): New.
4059 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
4060 to at most equal to gomp_supported_active_levels.
4061 (omp_get_supported_active_levels): New.
4062 * libgomp.h (gomp_supported_active_levels): New.
4063 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
4064 omp_get_supported_active_levels_.
4065 * libgomp.texi (omp_get_supported_active_levels): New.
4066 (omp_set_max_active_levels): Update. Add reference to
4067 omp_get_supported_active_levels.
4068 * omp.h.in (omp_get_supported_active_levels): New.
4069 * omp_lib.f90.in (omp_get_supported_active_levels): New.
4070 * omp_lib.h.in (omp_get_supported_active_levels): New.
4071 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
4072 against omp_get_supported_active_levels.
4073 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
4074
4075 2020-10-11 Clement Chigot <clement.chigot@atos.net>
4076
4077 * config/t-aix: Delete and recreate libgomp before creating
4078 FAT library.
4079
4080 2020-10-08 Tom de Vries <tdevries@suse.de>
4081
4082 PR libgomp/81802
4083 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
4084 dimensions.
4085
4086 2020-10-06 Tom de Vries <tdevries@suse.de>
4087
4088 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
4089
4090 2020-10-06 Tom de Vries <tdevries@suse.de>
4091
4092 PR middle-end/90861
4093 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
4094
4095 2020-10-05 Tom de Vries <tdevries@suse.de>
4096
4097 PR fortran/95654
4098 * testsuite/libgomp.fortran/pr95654.f90: New test.
4099
4100 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
4101
4102 * Makefile.in: Regenerate with automake 1.15.1.
4103 * aclocal.m4: Likewise.
4104 * configure: Likewise.
4105 * testsuite/Makefile.in: Likewise.
4106
4107 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
4108
4109 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
4110 and amdgcn targets.
4111
4112 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
4113
4114 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
4115
4116 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
4117
4118 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
4119 total number of threads is one.
4120 (gomp_team_barrier_wake): Likewise.
4121 (gomp_team_barrier_wait_end): Likewise.
4122 (gomp_team_barrier_wait_cancel_end): Likewise.
4123 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
4124 (gomp_team_barrier_wake): Likewise.
4125 (gomp_team_barrier_wait_end): Likewise.
4126 (gomp_team_barrier_wait_cancel_end): Likewise.
4127 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
4128
4129 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
4130
4131 PR middle-end/96390
4132 * testsuite/libgomp.c++/pr96390.C: New test.
4133 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
4134
4135 2020-09-27 Clement Chigot <clement.chigot@atos.net>
4136
4137 * config/t-aix: Use $(AR) without -X32_64.
4138
4139 2020-09-25 Jakub Jelinek <jakub@redhat.com>
4140
4141 * testsuite/libgomp.c/loop-25.c: New test.
4142
4143 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
4144
4145 PR fortran/95654
4146 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
4147
4148 2020-09-22 Tom de Vries <tdevries@suse.de>
4149
4150 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
4151 fails.
4152
4153 2020-09-16 Nathan Sidwell <nathan@acm.org>
4154
4155 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
4156
4157 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
4158
4159 PR fortran/96668
4160 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
4161
4162 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
4163
4164 PR fortran/96668
4165 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
4166 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
4167 (gomp_map_vars_existing): Update call to it.
4168 (gomp_map_fields_existing): Likewise
4169 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
4170 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
4171 remapped.
4172 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
4173 GOMP_MAP_POINTER.
4174 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
4175 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
4176
4177 2020-09-14 Tom de Vries <tdevries@suse.de>
4178
4179 * config/nvptx/atomic.c: New file. Add
4180 __sync_val_compare_and_swap_16.
4181 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
4182 target offload_target_nvptx.
4183
4184 2020-09-08 Julian Brown <julian@codesourcery.com>
4185
4186 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
4187 iteration-ordering assumptions.
4188
4189 2020-09-08 Julian Brown <julian@codesourcery.com>
4190
4191 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
4192 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4193
4194 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
4195
4196 * plugin/plugin-nvptx.c (nvptx_free):
4197 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
4198 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
4199 comments.
4200
4201 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
4202
4203 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
4204
4205 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
4206
4207 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
4208
4209 2020-08-13 Jakub Jelinek <jakub@redhat.com>
4210
4211 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
4212 * testsuite/libgomp.c/loop-23.c (main): Likewise.
4213 * testsuite/libgomp.c/loop-24.c: New test.
4214
4215 2020-08-08 Jakub Jelinek <jakub@redhat.com>
4216 Tobias Burnus <tobias@codesourcery.com>
4217
4218 PR fortran/93553
4219 * testsuite/libgomp.fortran/pr93553.f90: New test.
4220
4221 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4222
4223 * testsuite/libgomp.c/loop-22.c: New test.
4224 * testsuite/libgomp.c/loop-23.c: New test.
4225
4226 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4227
4228 PR middle-end/96459
4229 * testsuite/libgomp.c/teams-3.c: New test.
4230 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
4231 if not defined yet.
4232 (N(test)): Use it before all N(f*) calls.
4233 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
4234 (main): Don't call all test_* functions from within
4235 #pragma omp teams reduction(|:err), call them directly.
4236
4237 2020-08-04 Tom de Vries <tdevries@suse.de>
4238
4239 PR target/96428
4240 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
4241 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
4242
4243 2020-08-03 Julian Brown <julian@codesourcery.com>
4244 Thomas Schwinge <thomas@codesourcery.com>
4245
4246 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
4247 shared-memory devices. Extend with further checking.
4248
4249 2020-08-03 Martin Jambor <mjambor@suse.cz>
4250
4251 * plugin/Makefrag.am: Remove configuration of HSA plugin.
4252 * aclocal.m4: Regenerated.
4253 * Makefile.in: Regenerated.
4254 * config.h.in: Regenerated.
4255 * configure: Regenerated.
4256 * plugin/configfrag.ac: Likewise.
4257 * plugin/hsa_ext_finalize.h: Removed.
4258 * plugin/plugin-hsa.c: Likewise.
4259 * testsuite/Makefile.in: Regenerated.
4260 * testsuite/lib/libgomp.exp
4261 (offload_target_to_openacc_device_type): Remove hsa case.
4262 (check_effective_target_hsa_offloading_selected_nocache): Removed
4263 (check_effective_target_hsa_offloading_selected): Likewise.
4264 (libgomp_init): Do not add -Wno-hsa to additional_flags.
4265 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
4266 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4267 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
4268 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4269 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4270 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4271 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
4272 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4273 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4274 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4275 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4276 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4277 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4278 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4279 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4280 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4281 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
4282 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4283 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
4284 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4285 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4286 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
4287 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4288 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4289
4290 2020-07-27 Julian Brown <julian@codesourcery.com>
4291 Thomas Schwinge <thomas@codesourcery.com>
4292
4293 * libgomp.h (struct target_var_desc): Rename do_detach field to
4294 is_attach.
4295 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
4296 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
4297 (goacc_enter_data_internal): Don't affect reference counts
4298 for attach mappings.
4299 (goacc_exit_data_internal): Don't affect reference counts for detach
4300 mappings.
4301 * target.c (gomp_map_vars_existing): Don't affect reference counts for
4302 attach mappings.
4303 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
4304 mark attach mappings.
4305 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
4306 reference count for attach mappings.
4307 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
4308 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4309 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4310 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
4311 test as shouldfail.
4312 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
4313 gracefully in no-finalize mode.
4314 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
4315
4316 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
4317
4318 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
4319 use.
4320 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4321 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4322
4323 2020-07-23 Julian Brown <julian@codesourcery.com>
4324 Thomas Schwinge <thomas@codesourcery.com>
4325
4326 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
4327 finalization for detach operation.
4328 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
4329 New test.
4330
4331 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
4332
4333 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
4334 * libgomp_f.h.in (omp_check_defines): Check whether
4335 sizeof of determined Fortran kind and C typedef match.
4336 * omp_lib.f90.in: Add omp_depened_kind.
4337 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
4338 * configure: Regenerate.
4339 * Makefile.in: Regenerate.
4340 * testsuite/Makefile.in: Regenerate.
4341
4342 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4343
4344 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
4345 gcc/testsuite/c-c++-common/gomp/.
4346 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
4347 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
4348 from gcc/testsuite/gfortran.dg/gomp/.
4349 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
4350
4351 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4352
4353 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
4354 * omp_lib.h.in: Likewise.
4355
4356 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
4357
4358 PR target/95620
4359 * testsuite/libgomp.c/pr95620.c: New test.
4360
4361 2020-07-16 Julian Brown <julian@codesourcery.com>
4362 Thomas Schwinge <thomas@codesourcery.com>
4363
4364 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
4365 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
4366
4367 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4368
4369 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
4370 avoid conversion on 32bit systems from 32bit to 64bit due
4371 to -fdefault-integer-8.
4372
4373 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4374
4375 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
4376 variables; add character(kind=4) tests; update TODO comment.
4377
4378 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4379
4380 * allocator.c: Add ialias for omp_init_allocator and
4381 omp_destroy_allocator.
4382 * configure.ac: Set INTPTR_T_KIND.
4383 * configure: Regenerate.
4384 * Makefile.in: Regenerate.
4385 * testsuite/Makefile.in: Regenerate.
4386 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
4387 omp_set_default_allocator_, omp_get_default_allocator_): New
4388 functions and ialias_redirect.
4389 * icv.c: Add ialias for omp_set_default_allocator and
4390 omp_get_default_allocator.
4391 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
4392 omp_destroy_allocator_, omp_set_default_allocator_ and
4393 omp_get_default_allocator_.
4394 * omp_lib.f90.in: Add allocator traits parameters, declare
4395 allocator routines and add related kind parameters.
4396 * omp_lib.h.in: Likewise.
4397 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
4398 * testsuite/libgomp.fortran/alloc-1.F90: New test.
4399 * testsuite/libgomp.fortran/alloc-2.F90: New test.
4400 * testsuite/libgomp.fortran/alloc-3.F: New test.
4401 * testsuite/libgomp.fortran/alloc-4.f90: New test.
4402 * testsuite/libgomp.fortran/alloc-5.f90: New test.
4403
4404 2020-07-14 Tom de Vries <tom@codesourcery.com>
4405 Cesar Philippidis <cesar@codesourcery.com>
4406 Thomas Schwinge <thomas@codesourcery.com>
4407 Kwok Cheung Yeung <kcy@codesourcery.com>
4408
4409 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
4410 New variable.
4411 (acc_init_1): Set acc_init_thread to pthread_self (). Set
4412 acc_init_state to initializing at the start, and to initialized at the
4413 end.
4414 (self_initializing_p): New function.
4415 (acc_get_device_type): Return acc_device_none if called by thread that
4416 is currently executing acc_init_1.
4417 * libgomp.texi (acc_get_device_type): Update documentation.
4418 (Implementation Status and Implementation-Defined Behavior): Likewise.
4419 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
4420
4421 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
4422
4423 * config/t-aix: Set BITS from compiler cpp macro.
4424
4425 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4426
4427 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
4428
4429 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4430
4431 PR fortran/67311
4432 * testsuite/libgomp.fortran/target-map-1.f90: New test.
4433
4434 2020-07-14 Jakub Jelinek <jakub@redhat.com>
4435
4436 * testsuite/libgomp.c/loop-21.c: New test.
4437
4438 2020-07-13 Julian Brown <julian@codesourcery.com>
4439 Thomas Schwinge <thomas@codesourcery.com>
4440
4441 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
4442
4443 2020-07-10 Julian Brown <julian@codesourcery.com>
4444 Thomas Schwinge <thomas@codesourcery.com>
4445
4446 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
4447 dynamic_refcount.
4448 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
4449 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
4450 dynamic_refcount.
4451 (acc_unmap_data): Update comment.
4452 (goacc_map_var_existing, goacc_enter_datum): Adjust for
4453 dynamic_refcount semantics.
4454 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
4455 Adjust for dynamic_refcount semantics.
4456 (goacc_enter_data_internal): Implement "present" case of dynamic
4457 memory-map handling here. Update "non-present" case for
4458 dynamic_refcount semantics.
4459 (goacc_exit_data_internal): Use goacc_exit_datum_1.
4460 * target.c (gomp_map_vars_internal): Remove
4461 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
4462 handling.
4463 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
4464 (gomp_load_image_to_device): Substitute dynamic_refcount for
4465 virtual_refcount.
4466 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
4467 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
4468 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
4469 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
4470 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
4471 trace output.
4472 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
4473 trace output.
4474 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
4475 test.
4476 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4477 Remove stale comment.
4478 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
4479 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4480 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4481 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4482 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4483 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
4484
4485 2020-07-10 Julian Brown <julian@codesourcery.com>
4486 Thomas Schwinge <thomas@codesourcery.com>
4487
4488 * oacc-mem.c (goacc_map_var_existing): New function.
4489 (goacc_enter_datum): Use above function.
4490 (goacc_exit_datum_1): New function.
4491 (goacc_exit_datum): Use above function.
4492
4493 2020-07-09 Julian Brown <julian@codesourcery.com>
4494 Thomas Schwinge <thomas@codesourcery.com>
4495
4496 PR middle-end/95270
4497 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
4498 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
4499
4500 2020-07-09 Julian Brown <julian@codesourcery.com>
4501
4502 * oacc-mem.c (find_group_last): Group data-movement clauses
4503 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
4504 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
4505
4506 2020-07-09 Jakub Jelinek <jakub@redhat.com>
4507
4508 * testsuite/libgomp.c/loop-19.c: New test.
4509 * testsuite/libgomp.c/loop-20.c: New test.
4510
4511 2020-07-09 Jakub Jelinek <jakub@redhat.com>
4512
4513 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
4514 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
4515 it. Remove __omp_alloctrait_value_max__.
4516 * allocator.c (omp_init_allocator): Handle omp_atv_default for
4517 omp_atk_alignment and omp_atk_pool_size.
4518
4519 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
4520
4521 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
4522 behavior for 'GOMP_MAP_FORCE_FROM'.
4523 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
4524
4525 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
4526
4527 * oacc-mem.c (goacc_exit_data_internal): Remove
4528 'GOMP_MAP_ALWAYS_FROM' handling.
4529
4530 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
4531
4532 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
4533 'scan-assembler' with 'scan-offload-rtl'.
4534 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4535 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4536 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
4537 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
4538
4539 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
4540
4541 * target.c (gomp_map_vars_existing): Assert 'kind !=
4542 GOMP_MAP_ATTACH'.
4543 (gomp_map_vars_internal): Clean up.
4544
4545 2020-06-27 Jakub Jelinek <jakub@redhat.com>
4546
4547 * testsuite/libgomp.c/loop-17.c: New test.
4548 * testsuite/libgomp.c/loop-18.c: New test.
4549
4550 2020-06-26 Marek Polacek <polacek@redhat.com>
4551
4552 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
4553
4554 2020-06-23 Alexandre Oliva <oliva@adacore.com>
4555
4556 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
4557 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
4558
4559 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
4560
4561 * Makefile.am: Use -include.
4562 * Makefile.in: Regenerate.
4563
4564 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
4565
4566 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
4567 * Makefile.in: Regenerate
4568 * configure.ac (tmake_file): Substitute.
4569 * configure: Regenerate.
4570 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
4571 * config/t-aix: New file.
4572
4573 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
4574
4575 PR lto/94848
4576 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
4577 'dg-do run'.
4578
4579 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
4580
4581 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
4582 variant for HSA_RUNTIME_LIB name.
4583 (find_executable_symbol_1): Delete.
4584 (find_executable_symbol): Delete.
4585 (init_kernel_properties): Add ".kd" suffix to symbol names.
4586 (find_load_offset): Delete.
4587 (create_and_finalize_hsa_program): Remove relocation handling.
4588
4589 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
4590
4591 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
4592
4593 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
4594
4595 PR lto/94848
4596 PR middle-end/95551
4597 * testsuite/libgomp.fortran/target-var.f90: New test.
4598
4599 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
4600 Julian Brown <julian@codesourcery.com>
4601
4602 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
4603 special handling.
4604
4605 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
4606 Julian Brown <julian@codesourcery.com>
4607
4608 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4609 Simplify.
4610
4611 2020-06-05 Julian Brown <julian@codesourcery.com>
4612
4613 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
4614 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
4615
4616 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4617
4618 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4619 Evaluate 'copyfrom' individually for each entry.
4620 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
4621
4622 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4623
4624 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4625 Evaluate 'finalize' individually for each entry.
4626 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
4627 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
4628 file.
4629
4630 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4631
4632 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
4633 usage.
4634 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
4635
4636 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4637 Julian Brown <julian@codesourcery.com>
4638
4639 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
4640 checking.
4641 (acc_unmap_data, goacc_exit_data_internal): Restore
4642 'is_tgt_unmapped' checking.
4643 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
4644 file.
4645 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
4646 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4647 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4648 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4649 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4650 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4651
4652 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4653 Julian Brown <julian@codesourcery.com>
4654
4655 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
4656
4657 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4658
4659 PR libgomp/92854
4660 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
4661
4662 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4663
4664 PR libgomp/92854
4665 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
4666 more.
4667
4668 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4669 Julian Brown <julian@codesourcery.com>
4670
4671 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
4672 'gomp_map_vars'.
4673 (acc_map_data): Clean up accordingly.
4674
4675 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4676
4677 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
4678 of over-eager 'finalize' clause.
4679 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
4680 file.
4681 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4682 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4683 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4684 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4685 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4686 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
4687 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4688 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
4689
4690 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4691
4692 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
4693
4694 2020-06-04 Julian Brown <julian@codesourcery.com>
4695
4696 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
4697 error path.
4698 (goacc_detach_internal): Likewise.
4699
4700 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4701
4702 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
4703 the checkpoint.
4704 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4705 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4706 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4707 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4708 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4709
4710 2020-06-02 Jakub Jelinek <jakub@redhat.com>
4711
4712 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
4713 defined.
4714
4715 2020-05-30 Jakub Jelinek <jakub@redhat.com>
4716
4717 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
4718
4719 2020-05-30 Jakub Jelinek <jakub@redhat.com>
4720
4721 * allocator.c (omp_alloc): For size == 0, return NULL early.
4722
4723 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
4724
4725 PR bootstrap/95413
4726 * configure: Regenerated.
4727
4728 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
4729
4730 PR libfortran/95191
4731 * testsuite/libgomp.fortran/async_io_9.f90: New test.
4732
4733 2020-05-19 Jakub Jelinek <jakub@redhat.com>
4734
4735 * omp.h.in (omp_uintptr_t): New typedef.
4736 (__GOMP_UINTPTR_T_ENUM): Define.
4737 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
4738 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
4739 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
4740 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
4741 omp_get_default_allocator, omp_alloc, omp_free): Declare.
4742 * libgomp.h (struct gomp_team_state): Add def_allocator field.
4743 (gomp_def_allocator): Declare.
4744 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
4745 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
4746 omp_alloc and omp_free.
4747 * team.c (gomp_team_start): Copy over ts.def_allocator.
4748 * env.c (gomp_def_allocator): New variable.
4749 (parse_wait_policy): Adjust function comment.
4750 (parse_allocator): New function.
4751 (handle_omp_display_env): Print OMP_ALLOCATOR.
4752 (initialize_env): Call parse_allocator.
4753 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
4754 * allocator.c: New file.
4755 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
4756 functions.
4757 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
4758 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
4759 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
4760 * Makefile.in: Regenerated.
4761
4762 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
4763
4764 PR bootstrap/95147
4765 * configure: Regenerated.
4766
4767 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
4768
4769 PR libfortran/95119
4770 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
4771
4772 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
4773
4774 * configure: Regenerated.
4775
4776 2020-05-14 Jakub Jelinek <jakub@redhat.com>
4777
4778 * testsuite/libgomp.c-c++-common/target-40.c: New test.
4779
4780 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
4781
4782 PR fortran/94690
4783 * testsuite/libgomp.fortran/pr66199-3.f90: New.
4784 * testsuite/libgomp.fortran/pr66199-4.f90: New.
4785 * testsuite/libgomp.fortran/pr66199-5.f90: New.
4786 * testsuite/libgomp.fortran/pr66199-6.f90: New.
4787 * testsuite/libgomp.fortran/pr66199-7.f90: New.
4788 * testsuite/libgomp.fortran/pr66199-8.f90: New.
4789 * testsuite/libgomp.fortran/pr66199-9.f90: New.
4790
4791 2020-05-12 Jakub Jelinek <jakub@redhat.com>
4792
4793 * testsuite/libgomp.c/target-39.c: New test.
4794
4795 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
4796
4797 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
4798 * openacc.f90 (acc_device_current): Likewise.
4799 * openacc.h (acc_device_current): Likewise.
4800 * openacc_lib.h (acc_device_current): Likewise.
4801
4802 PR target/94282
4803 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
4804 'dg-allow-blank-lines-in-output'.
4805
4806 * oacc-init.c (get_openacc_name): Handle 'gcn'.
4807 * testsuite/lib/libgomp.exp
4808 (offload_target_to_openacc_device_type) [amdgcn*]: Return
4809 'radeon'. Adjust all users.
4810 (check_effective_target_openacc_amdgcn_accel_present): Rename
4811 to...
4812 (check_effective_target_openacc_radeon_accel_present): ... this.
4813 Adjust all users.
4814 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
4815 (check_effective_target_openacc_radeon_accel_selected): ... this.
4816 Adjust all users.
4817
4818 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
4819 'dg-do run'.
4820
4821 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
4822
4823 PR other/94629
4824
4825 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
4826 hsa_iterate_agents.
4827 (GOMP_OFFLOAD_init_device): Check return values from both calls to
4828 hsa_agent_iterate_regions.
4829
4830 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
4831
4832 PR middle-end/94635
4833 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
4834 run'.
4835
4836 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
4837
4838 PR middle-end/94120
4839 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
4840 test case.
4841
4842 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
4843
4844 PR middle-end/94635
4845 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
4846
4847 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
4848
4849 PR libgomp/92843
4850 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4851 Rename to...
4852 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
4853 ... this.
4854 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4855 Rename to...
4856 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
4857 ... this.
4858 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4859 Rename to...
4860 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
4861 ... this.
4862 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4863 Rename to...
4864 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
4865 ... this.
4866 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4867 Rename to...
4868 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
4869 ... this.
4870 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4871 Rename to...
4872 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
4873 ... this.
4874 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4875 Rename to...
4876 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
4877 ... this.
4878 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4879 Rename to...
4880 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4881 ... this.
4882 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4883 Rename to...
4884 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
4885 ... this.
4886 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4887 Rename to...
4888 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
4889 ... this.
4890 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4891 Rename to...
4892 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
4893 ... this.
4894 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4895 Rename to...
4896 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
4897 ... this.
4898 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4899 Rename to...
4900 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
4901 ... this.
4902 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4903 Rename to...
4904 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
4905 ... this.
4906 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4907 Rename to...
4908 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
4909 ... this.
4910 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
4911 Rename to...
4912 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
4913 ... this.
4914
4915 2020-04-10 Julian Brown <julian@codesourcery.com>
4916 Thomas Schwinge <thomas@codesourcery.com>
4917
4918 PR libgomp/92843
4919 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4920 New file.
4921 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4922 Likewise.
4923 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4924 Likewise.
4925 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4926 Likewise.
4927 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4928 Likewise.
4929 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4930 Likewise.
4931 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4932 Likewise.
4933 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4934 Likewise.
4935 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4936 Likewise.
4937 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4938 Likewise.
4939 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4940 Likewise.
4941 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4942 Likewise.
4943 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4944 Likewise.
4945 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4946 Likewise.
4947 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4948 Likewise.
4949 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
4950 Likewise.
4951
4952 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
4953
4954 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
4955 run'.
4956
4957 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
4958
4959 PR middle-end/94120
4960 * libgomp.oacc-c++/declare-pr94120.C: New.
4961
4962 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
4963
4964 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
4965 files.
4966 * configure: Regenerate.
4967 * testsuite/libgomp-site-extra.exp.in: New file.
4968 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
4969 variable.
4970 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
4971 variable.
4972 * testsuite/Makefile.in: Regenerate.
4973
4974 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
4975
4976 PR tree-optimization/89713
4977 PR c/94392
4978 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
4979 'bar.sync'.
4980 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4981
4982 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
4983
4984 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
4985 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
4986
4987 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
4988
4989 PR libgomp/81689
4990 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
4991
4992 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
4993
4994 PR libgomp/94251
4995 * target.c (gomp_load_image_to_device): Fix link
4996 variable handling.
4997
4998 2020-03-19 Jakub Jelinek <jakub@redhat.com>
4999
5000 PR c++/93931
5001 * testsuite/libgomp.c++/pr93931.C: New test.
5002
5003 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
5004
5005 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
5006 dg-allow-blank-lines-in-output.
5007
5008 2020-03-18 Julian Brown <julian@codesourcery.com>
5009 Tobias Burnus <tobias@codesourcery.com>
5010
5011 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
5012 it work concurrently.
5013
5014 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
5015
5016 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
5017 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
5018 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
5019
5020 2020-03-14 Jakub Jelinek <jakub@redhat.com>
5021
5022 PR middle-end/93566
5023 * testsuite/libgomp.c/pr93566.c: New test.
5024
5025 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
5026
5027 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
5028 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
5029 integer(acc_device_property) for the type of the return value of
5030 acc_get_property.
5031
5032 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
5033
5034 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
5035 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
5036 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
5037 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
5038 (acc_set_device_num): Fix Fortran argument name, use same name for C.
5039 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
5040 corrections; add note about the previous interface and named constant.
5041 (OpenACC library and environment variables): Fix two typos.
5042 * openacc.f90: Use for all procedures the argument names from the spec
5043 as for …_h they are user visible.
5044 (openacc_kinds): Rename acc_device_property to
5045 acc_device_property_kinds and change value to int32 ; and update users.
5046 Re-add acc_device_property for for backward compatibility.
5047 (acc_get_property_string_h): Clean up as acc_device_property_kind
5048 changed.
5049 (acc_get_property_h): Likewise and return c_size_t instead of
5050 acc_device_property.
5051 (openacc): Also export acc_device_property_kinds.
5052 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
5053 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
5054 handling; check against /= 0 instead of == 1 to match C.
5055 * openacc_lib.h: Use for all procedures the argument names from the spec
5056 as for …_h they are user visible. Place !GCC$ into the first column to
5057 be active also for fixed-form souce form.
5058 (acc_device_current, acc_device_property_kind, acc_device_property,
5059 acc_property_memory, acc_property_free_memory, acc_property_name,
5060 acc_property_vendor, acc_property_driver): New named constants.
5061 (acc_get_property, acc_get_property_string): New generic interface.
5062
5063 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
5064
5065 PR libgomp/93481
5066 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
5067 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
5068 optional.
5069 (gomp_target_task_fn): Assert "devicep->async_run_func".
5070 (clear_unsupported_flags): New function to remove unsupported flags
5071 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
5072 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
5073 * testsuite/libgomp.c/target-33.c:
5074 Remove xfail for offload_target_nvptx.
5075 * testsuite/libgomp.c/target-34.c: Likewise.
5076
5077 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
5078
5079 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
5080 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
5081 * testsuite/libgomp.c/target-34.c: Likewise.
5082 * testsuite/libgomp.c/target-link-1.c: Add xfail for
5083 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
5084
5085 2020-02-09 Jakub Jelinek <jakub@redhat.com>
5086
5087 * testsuite/libgomp.c/target-38.c: New test.
5088
5089 2020-02-06 Jakub Jelinek <jakub@redhat.com>
5090
5091 PR libgomp/93515
5092 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
5093
5094 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
5095
5096 * testsuite/lib/libgomp.exp
5097 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
5098 and not as 'source' argument to libgomp_target_compile.
5099
5100 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
5101
5102 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
5103 (gcn_gfx801_s): Remove.
5104 (isa_hsa_name): Remove gfx801.
5105 (isa_gcc_name): Remove gfx801/carizzo.
5106 (isa_code): Remove gfx801.
5107
5108 2020-02-03 Julian Brown <julian@codesourcery.com>
5109 Tobias Burnus <tobias@codesourcery.com>
5110
5111 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
5112 and *_finalize variants; document acc_attach and acc_detach; update
5113 references from OpenACC 2.0 to 2.6.
5114 * openacc.f90 (openacc_version): Update to 201711.
5115 * openacc_lib.h (openacc_version): Update to 201711.
5116 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
5117 openacc_version to 201711.
5118 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
5119
5120 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
5121
5122 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
5123 and vgpr_count fields.
5124 (struct kernel_info): Add a field for a hsa_kernel_description.
5125 (run_kernel): Reduce the number of threads/workers if the requested
5126 number would require too many VGPRs.
5127 (init_basic_kernel_info): Initialize description field with
5128 the hsa_kernel_description entry for the kernel.
5129
5130 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
5131
5132 PR bootstrap/93409
5133 * plugin/configfrag.ac (enable_offload_targets): Skip
5134 HSA and GCN plugin besides -m32 also for -mx32.
5135 * configure: Regenerate.
5136
5137 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
5138
5139 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
5140
5141 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
5142
5143 * plugin-gcn.c (struct agent_info): Add fields "name" and
5144 "vendor_name" ...
5145 (GOMP_OFFLOAD_init_device): ... and init from here.
5146 (struct hsa_context_info): Add field "driver_version_s" ...
5147 (init_hsa_contest): ... and init from here.
5148 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
5149 implementation.
5150 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5151 Enable test execution for amdgcn and host offloading targets.
5152 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
5153 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5154 (expect_device_properties): Split function into ...
5155 (expect_device_string_properties): ... this new function ...
5156 (expect_device_memory): ... and this new function.
5157 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
5158 Add test.
5159
5160 2020-01-28 Julian Brown <julian@codesourcery.com>
5161
5162 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
5163 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
5164 component/non-component variable refs in a single directive.
5165 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
5166
5167 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
5168
5169 * configure.ac: Handle `--with-toolexeclibdir='.
5170 * Makefile.in: Regenerate.
5171 * aclocal.m4: Regenerate.
5172 * configure: Regenerate.
5173 * testsuite/Makefile.in: Regenerate.
5174
5175 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
5176
5177 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5178 (expect_device_properties): Remove "expected_free_mem" argument,
5179 change "expected_total_mem" argument type to size_t;
5180 change types of acc_get_property results to size_t,
5181 adapt format strings.
5182 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5183 Use %zu instead of %zd to print size_t values.
5184 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
5185 rename to ...
5186 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
5187 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
5188 rename to ...
5189 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
5190
5191 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
5192
5193 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
5194 the device id.
5195
5196 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
5197
5198 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
5199 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
5200 Adjust test dimensions for amdgcn.
5201 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
5202 gang/worker/vector expectations dynamically.
5203 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
5204 (main): Likewise.
5205 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
5206 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
5207 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
5208 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
5209 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
5210 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
5211 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
5212 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
5213 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5214 (acc_gang): Recognise acc_device_radeon.
5215 (acc_worker): Likewise.
5216 (acc_vector): Likewise.
5217 (main): Set expectations for amdgcn.
5218 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
5219 (main): Adjust gang/worker/vector expectations dynamically.
5220 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
5221 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
5222 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
5223 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
5224 for amdgcn.
5225
5226 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
5227
5228 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
5229 acc_device_radeon.
5230 (openacc): Likewise.
5231 * openacc.f90 (openacc_kinds): Likewise.
5232 (openacc): Likewise.
5233 * openacc.h (acc_device_t): Likewise.
5234 * openacc_lib.h: Likewise.
5235 * testsuite/lib/libgomp.exp
5236 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
5237 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
5238 (cb_compute_construct_end): Likewise.
5239 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5240 (cb_enqueue_launch_start): Likewise.
5241 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
5242 (cb_enter_data_end): Likewise.
5243 (cb_exit_data_start): Likewise.
5244 (cb_exit_data_end): Likewise.
5245 (cb_compute_construct_end): Likewise.
5246 (cb_enqueue_launch_start): Likewise.
5247 (cb_enqueue_launch_end): Likewise.
5248 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
5249 (main): Likewise.
5250
5251 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
5252
5253 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
5254 to use this instead of 'enum gomp_device_property'.
5255 (GOMP_OFFLOAD_get_property): Rename to...
5256 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
5257 * libgomp.h (struct gomp_device_descr): Move
5258 'GOMP_OFFLOAD_openacc_get_property'...
5259 (struct acc_dispatch_t): ... here. Adjust all users.
5260 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
5261
5262 * target.c (gomp_map_vars_internal)
5263 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
5264 paths.
5265
5266 2020-01-10 Jakub Jelinek <jakub@redhat.com>
5267
5268 PR libgomp/93219
5269 * libgomp.h (gomp_print_string): Change return type from void to int.
5270 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
5271 not all characters have been written.
5272
5273 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
5274
5275 * libgomp.texi: Fix typos, use https.
5276
5277 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
5278
5279 * testsuite/libgomp.fortran/optional-map.f90: Add test for
5280 unallocated/disassociated actual arguments to nonallocatable/nonpointer
5281 dummy arguments; those are/shall be regarded as absent arguments.
5282 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5283 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
5284
5285 2020-01-01 Jakub Jelinek <jakub@redhat.com>
5286
5287 Update copyright years.
5288
5289 * libgomp.texi: Bump @copying's copyright year.
5290
5291 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
5292
5293 PR libgomp/93065
5294 * oacc-init.c (goacc_runtime_deinitialize): New function.
5295
5296 2019-12-28 Jakub Jelinek <jakub@redhat.com>
5297
5298 PR bootstrap/93074
5299 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
5300 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
5301
5302 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
5303 Frederik Harwath <frederik@codesourcery.com>
5304 Thomas Schwinge <tschwinge@codesourcery.com>
5305
5306 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
5307 * libgomp-plugin.h (gomp_device_property_value): New union.
5308 (gomp_device_property_value): New prototype.
5309 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
5310 constant.
5311 (acc_device_property_t): New enum.
5312 (acc_get_property, acc_get_property_string): New prototypes.
5313 * oacc-init.c (acc_get_device_type): Also assert that result
5314 is not `acc_device_current'.
5315 (get_property_any, acc_get_property, acc_get_property_string):
5316 New functions.
5317 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
5318 `acc_property_memory', `acc_property_free_memory',
5319 `acc_property_name', `acc_property_vendor' and
5320 `acc_property_driver' constants. Add `acc_device_property' data
5321 type.
5322 (openacc_internal): Add `acc_get_property' and
5323 `acc_get_property_string' interfaces. Add `acc_get_property_h',
5324 `acc_get_property_string_h', `acc_get_property_l' and
5325 `acc_get_property_string_l'.
5326 * oacc-host.c (host_get_property): New function.
5327 (host_dispatch): Wire it.
5328 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
5329 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
5330 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
5331 * libgomp.texi (OpenACC Runtime Library Routines): Add
5332 `acc_get_property'.
5333 (acc_get_property): New node.
5334 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
5335 function (stub).
5336 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
5337 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
5338 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
5339 calls.
5340 (GOMP_OFFLOAD_get_property): New function.
5341 (struct ptx_device): Add new field "name".
5342 (cuda_driver_version_s): Add new static variable ...
5343 (nvptx_init): ... and init from here.
5344
5345 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
5346 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
5347 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
5348 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
5349 with test helper functions.
5350
5351 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
5352
5353 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
5354
5355 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
5356 variable.
5357
5358 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
5359
5360 * target.c (gomp_map_vars_internal): Restore 'omp declare target
5361 link' handling.
5362
5363 2019-12-19 Julian Brown <julian@codesourcery.com>
5364
5365 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
5366 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
5367 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
5368
5369 2019-12-19 Julian Brown <julian@codesourcery.com>
5370 Cesar Philippidis <cesar@codesourcery.com>
5371
5372 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
5373 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
5374 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
5375 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
5376 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
5377 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
5378 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
5379 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
5380 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
5381 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
5382 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
5383 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
5384 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
5385
5386 2019-12-19 Julian Brown <julian@codesourcery.com>
5387
5388 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
5389 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
5390 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
5391 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
5392 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
5393 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
5394 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
5395 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
5396 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
5397 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
5398 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
5399 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
5400
5401 2019-12-19 Julian Brown <julian@codesourcery.com>
5402
5403 * libgomp.h (struct target_var_desc): Add do_detach flag.
5404 * oacc-init.c (acc_shutdown_1): Free aux block if present.
5405 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
5406 struct components. Tidy up and add some new checks.
5407 (goacc_enter_data_internal): Update call to find_group_last.
5408 (goacc_exit_data_internal): Support detach operations and
5409 GOMP_MAP_STRUCT.
5410 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
5411 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
5412 attach/detach in enter/exit data detection code.
5413 * target.c (gomp_map_vars_existing): Initialise do_detach field of
5414 tgt_var_desc.
5415 (gomp_map_vars_internal): Support attach.
5416 (gomp_unmap_vars_internal): Support detach.
5417
5418 2019-12-19 Julian Brown <julian@codesourcery.com>
5419 Thomas Schwinge <thomas@codesourcery.com>
5420
5421 * libgomp.h (struct splay_tree_aux): Add attach_count field.
5422 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
5423 * libgomp.map (OACC_2.6): New section. Add acc_attach,
5424 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
5425 acc_detach_finalize_async.
5426 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
5427 acc_detach, acc_detach_async, acc_detach_finalize,
5428 acc_detach_finalize_async): New functions.
5429 * openacc.h (acc_attach, acc_attach_async, acc_detach,
5430 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
5431 prototypes.
5432 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
5433 (gomp_remove_var_internal): Free attachment counts if present.
5434 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
5435 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
5436
5437 2019-12-19 Julian Brown <julian@codesourcery.com>
5438 Cesar Philippidis <cesar@codesourcery.com>
5439
5440 * libgomp.h (gomp_map_val): Add prototype.
5441 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
5442 open-coding device-address calculation.
5443 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
5444 non-present case.
5445
5446 2019-12-19 Julian Brown <julian@codesourcery.com>
5447
5448 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
5449 field for virtual_refcount.
5450 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5451 (gomp_free_memmap): Remove prototype.
5452 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
5453 instead of calling gomp_free_memmap.
5454 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
5455 dynamic_refcount.
5456 (acc_unmap_data): Open code instead of forcing target_mem_desc's
5457 to_free field to NULL then calling gomp_unmap_vars. Handle
5458 REFCOUNT_INFINITY on target blocks.
5459 (goacc_enter_data): Rename to...
5460 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
5461 handling for mapping groups. Use virtual_refcount instead of
5462 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
5463 map_map_vars_async call. Re-do lookup for target pointer return value.
5464 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
5465 renamed goacc_enter_datum function.
5466 (goacc_exit_data): Rename to...
5467 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
5468 (acc_delete, acc_delete_async, acc_delete_finalize,
5469 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
5470 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
5471 goacc_exit_datum function.
5472 (gomp_acc_remove_pointer, find_pointer): Remove functions.
5473 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
5474 New functions.
5475 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
5476 goacc_exit_data_internal helper functions.
5477 * target.c (gomp_map_vars_internal): Handle
5478 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
5479 semantics.
5480 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
5481 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
5482 virtual_refcount field instead of dynamic_refcount.
5483 (gomp_free_memmap): Remove function.
5484 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
5485 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
5486 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
5487
5488 2019-12-19 Julian Brown <julian@codesourcery.com>
5489 Thomas Schwinge <thomas@codesourcery.com>
5490
5491 * libgomp.h (struct splay_tree_aux): New.
5492 (struct splay_tree_key_s): Replace link_key field with aux pointer.
5493 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
5494 to aux struct.
5495 (gomp_remove_var_internal): Free aux block if present.
5496 (gomp_load_image_to_device): Zero-initialise aux field instead of
5497 link_key field.
5498 (omp_target_associate_pointer): Zero-initialise aux field.
5499
5500 2019-12-18 Jakub Jelinek <jakub@redhat.com>
5501
5502 PR middle-end/86416
5503 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
5504 q or none.
5505 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
5506 L or none.
5507
5508 2019-12-19 Julian Brown <julian@codesourcery.com>
5509 Maciej W. Rozycki <macro@codesourcery.com>
5510 Tobias Burnus <tobias@codesourcery.com>
5511 Thomas Schwinge <thomas@codesourcery.com>
5512
5513 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
5514 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
5515 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
5516 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
5517 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
5518 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
5519 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
5520 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
5521 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
5522
5523 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
5524
5525 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5526 called...
5527 (goacc_insert_pointer): ... from here, "present" case.
5528 (goacc_insert_pointer): Inline function into...
5529 (GOACC_enter_exit_data): ... here, and simplify.
5530
5531 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5532 called...
5533 (goacc_insert_pointer): ... from here, "not present" case.
5534
5535 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
5536 all users.
5537
5538 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
5539 'goacc_enter_data', 'goacc_exit_data'.
5540
5541 * oacc-mem.c (delete_copyout): Refactor into...
5542 (goacc_exit_data): ... this. Adjust all users.
5543
5544 * oacc-mem.c (present_create_copy): Refactor into...
5545 (goacc_enter_data): ... this. Adjust all users.
5546
5547 * target.c (gomp_unmap_vars_internal): Add a safeguard to
5548 'gomp_remove_var'.
5549
5550 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
5551 like 'GOMP_MAP_FROM'.
5552
5553 PR libgomp/92726
5554 PR libgomp/92970
5555 PR libgomp/92984
5556 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
5557 fails.
5558 (GOACC_enter_exit_data): Simplify accordingly.
5559 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
5560 subsuming...
5561 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
5562 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
5563 file.
5564 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
5565 subsuming...
5566 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
5567 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
5568 file.
5569 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
5570 subsuming...
5571 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
5572
5573 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
5574 'finalize' handling.
5575
5576 PR libgomp/92848
5577 * oacc-mem.c (acc_map_data, present_create_copy)
5578 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
5579 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
5580 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
5581 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
5582 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
5583 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
5584 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
5585 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5586 Remove "XFAIL"s.
5587
5588 * target.c (gomp_unmap_tgt): Make it 'static'.
5589 * libgomp.h (gomp_unmap_tgt): Remove.
5590
5591 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
5592
5593 PR middle-end/86416
5594 * testsuite/libgomp.c/pr86416-1.c: New.
5595 * testsuite/libgomp.c/pr86416-2.c: New.
5596
5597 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
5598
5599 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
5600 all symbols as public except for the 'use …, only' imported symbol,
5601 which is private.
5602 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5603 all symbols from module openacc_kinds as PUBLIC
5604 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
5605 fix comment typo.
5606 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
5607
5608 2019-12-13 Julian Brown <julian@codesourcery.com>
5609
5610 PR libgomp/92881
5611
5612 * libgomp.h (gomp_remove_var_async): Add prototype.
5613 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
5614 gomp_remove_var.
5615 * target.c (gomp_unref_tgt): Change return type to bool, indicating
5616 whether target_mem_desc was unmapped.
5617 (gomp_unref_tgt_void): New.
5618 (gomp_remove_var): Reimplement in terms of...
5619 (gomp_remove_var_internal): ...this new helper function.
5620 (gomp_remove_var_async): New, implemented using above helper function.
5621 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
5622 gomp_unref_tgt.
5623
5624 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
5625
5626 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
5627 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
5628 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
5629 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
5630 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
5631 Likewise.
5632 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
5633 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
5634
5635 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
5636
5637 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
5638 as public except for the 'use …, only' imported symbol, which is
5639 private.
5640 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5641 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
5642 attributes for acc_copyout_finalize and acc_delete_finalize.
5643
5644 2019-12-11 Jakub Jelinek <jakub@redhat.com>
5645
5646 PR fortran/92899
5647 * testsuite/libgomp.fortran/atomic1.f90: New test.
5648
5649 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
5650
5651 PR libgomp/92843
5652 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
5653 reference counting for structured 'REFCOUNT_INFINITY'. Add some
5654 assertions.
5655 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
5656 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
5657 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
5658 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5659 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5660
5661 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
5662 * oacc-mem.c: ... here.
5663 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
5664 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
5665 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
5666 Remove.
5667 * libgomp_g.h: Update.
5668
5669 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
5670 * oacc-async.c: ... here.
5671 * oacc-int.h (goacc_wait): Declare.
5672 * libgomp_g.h: Update
5673
5674 PR libgomp/92854
5675 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
5676 New file.
5677 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
5678 Likewise.
5679 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
5680 Likewise.
5681 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
5682 Likewise.
5683 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
5684 Likewise.
5685 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
5686 Likewise.
5687
5688 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
5689 Julian Brown <julian@codesourcery.com>
5690
5691 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
5692 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
5693
5694 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
5695
5696 * omp_lib.h.in: Fix spelling of function declaration
5697 omp_get_cancell(l)ation.
5698 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
5699 Fix typos.
5700 * env.c: Fix comment typos.
5701 * oacc-host.c: Likewise.
5702 * ordered.c: Likewise.
5703 * task.c: Likewise.
5704 * team.c: Likewise.
5705 * config/gcn/task.c: Likewise.
5706 * config/gcn/team.c: Likewise.
5707 * config/nvptx/task.c: Likewise.
5708 * config/nvptx/team.c: Likewise.
5709 * plugin/plugin-gcn.c: Likewise.
5710 * testsuite/libgomp.fortran/jacobi.f: Likewise.
5711 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5712 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
5713
5714 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
5715
5716 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
5717 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
5718 unnecessary 'dg-additional-options "-w"'.
5719
5720 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
5721 Julian Brown <julian@codesourcery.com>
5722
5723 PR libgomp/92116
5724 PR libgomp/92877
5725
5726 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
5727 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
5728 Adjust all users.
5729 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5730 Remove XFAIL.
5731 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5732 Likewise.
5733 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
5734
5735 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
5736
5737 PR libgomp/92503
5738 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
5739 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
5740 file.
5741 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
5742 Likewise.
5743 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
5744 Likewise.
5745 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
5746 Likewise.
5747 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5748 Likewise.
5749 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5750 Likewise.
5751 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5752 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5753 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5754 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5755 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5756 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5757 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5758 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5759 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
5760 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5761
5762 PR libgomp/92840
5763 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
5764 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
5765 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
5766 New file.
5767 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
5768 Likewise.
5769 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
5770 Likewise.
5771 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5772 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
5773
5774 PR libgomp/92511
5775 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
5776 this file...
5777 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
5778 this file...
5779 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
5780 file...
5781 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
5782 file...
5783 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5784 ... with their content moved into, and extended in this new file.
5785 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
5786 New file.
5787 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
5788 Likewise.
5789 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
5790 Likewise.
5791 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
5792 Likewise.
5793
5794 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
5795
5796 PR libgomp/92854
5797 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
5798
5799 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
5800
5801 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
5802
5803 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
5804
5805 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
5806 unique.
5807 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
5808 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5809 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
5810 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
5811 Ditto.
5812 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
5813 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
5814
5815 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
5816
5817 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
5818
5819 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
5820 Kwok Cheung Yeung <kcy@codesourcery.com>
5821
5822 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
5823 if input it a NULL pointer.
5824 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
5825 diagnostic of NULL pointer.
5826 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
5827 * testsuite/libgomp.fortran/optional-map.f90: New.
5828 * testsuite/libgomp.fortran/use_device_addr-1.f90
5829 (test_dummy_opt_callee_1_absent): New.
5830 (test_dummy_opt_call_1): Call it.
5831 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
5832 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
5833 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
5834 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
5835 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
5836 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
5837 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
5838 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
5839 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
5840 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
5841 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
5842 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
5843 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
5844 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
5845 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
5846 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
5847
5848 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
5849
5850 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
5851 expect dg-output of 'Error termination.' for GCN.
5852 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5853 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5854
5855 2019-12-04 Jakub Jelinek <jakub@redhat.com>
5856
5857 PR fortran/92756
5858 * testsuite/libgomp.fortran/teams1.f90: New test.
5859 * testsuite/libgomp.fortran/teams2.f90: New test.
5860
5861 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
5862
5863 * oacc-init.c (acc_known_device_type): Add function.
5864 (unknown_device_type_error): Add function.
5865 (name_of_acc_device_t): Change to call unknown_device_type_error
5866 on unknown type.
5867 (resolve_device): Use acc_known_device_type.
5868 (acc_init): Fail if acc_device_t argument is not valid.
5869 (acc_shutdown): Likewise.
5870 (acc_get_num_devices): Likewise.
5871 (acc_set_device_type): Likewise.
5872 (acc_get_device_num): Likewise.
5873 (acc_set_device_num): Likewise.
5874 (acc_on_device): Add comment that argument validity is not checked.
5875
5876 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
5877
5878 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5879 Recognize amdgcn.
5880 (check_effective_target_openacc_amdgcn_accel_present): New proc.
5881 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
5882 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
5883 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5884 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5885
5886 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5887
5888 PR libgomp/91938
5889 * configure.tgt: Avoid IE tls on *-*-musl*.
5890
5891 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
5892
5893 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
5894 adding a common-block test case.
5895
5896 2019-11-29 Jakub Jelinek <jakub@redhat.com>
5897
5898 PR c++/60228
5899 * testsuite/libgomp.c++/udr-20.C: New test.
5900 * testsuite/libgomp.c++/udr-21.C: New test.
5901
5902 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
5903
5904 * testsuite/lib/libgomp.exp
5905 (check_effective_target_offload_target_nvptx): New proc.
5906 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
5907 'dg-skip-if'.
5908 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
5909 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
5910 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
5911
5912 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5913
5914 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
5915 * testsuite/libgomp.c/pr39591-2.c: Likewise.
5916 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5917 * testsuite/libgomp.c/private-1.c: Likewise.
5918 * testsuite/libgomp.c/task-1.c: Likewise.
5919 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
5920
5921 2019-11-20 Julian Brown <julian@codesourcery.com>
5922
5923 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
5924 aq->mutex here.
5925 (queue_push_launch): Lock aq->mutex before calling
5926 wait_for_queue_nonfull.
5927 (queue_push_callback): Likewise.
5928 (queue_push_asyncwait): Likewise.
5929 (queue_push_placeholder): Likewise.
5930
5931 2019-11-20 Julian Brown <julian@codesourcery.com>
5932
5933 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
5934 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
5935 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
5936 return code.
5937
5938 2019-11-20 Julian Brown <julian@codesourcery.com>
5939
5940 PR libgomp/92511
5941
5942 * oacc-mem.c (present_create_copy): Fix device pointer return value in
5943 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
5944 in non-present/create case.
5945 (delete_copyout): Change error condition to fail only on copies outside
5946 of mapped block. Adjust error message accordingly.
5947 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
5948 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
5949 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
5950 message.
5951 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5952 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
5953 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5954
5955 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
5956
5957 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
5958 libatomic in build-tree testing.
5959
5960 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
5961
5962 * testsuite/Makefile.in: Regenerate.
5963
5964 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
5965
5966 * testsuite/libgomp.c/target-print-1.c: New file.
5967 * testsuite/libgomp.fortran/target-print-1.f90: New file.
5968 * testsuite/libgomp.oacc-c/print-1.c: New file.
5969 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
5970
5971 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5972 Kwok Cheung Yeung <kcy@codesourcery.com>
5973 Julian Brown <julian@codesourcery.com>
5974 Tom de Vries <tom@codesourcery.com>
5975
5976 * plugin/Makefrag.am: Add amdgcn plugin support.
5977 * plugin/configfrag.ac: Likewise.
5978 * plugin/plugin-gcn.c: New file.
5979 * configure: Regenerate.
5980 * Makefile.in: Regenerate.
5981 * testsuite/Makefile.in: Regenerate.
5982
5983 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5984
5985 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
5986 and use team_malloc variants.
5987 (gomp_gcn_exit_kernel): Use team_free.
5988 * libgomp.h (TEAM_ARENA_SIZE): Define.
5989 (TEAM_ARENA_START): Define.
5990 (TEAM_ARENA_FREE): Define.
5991 (TEAM_ARENA_END): Define.
5992 (team_malloc): New function.
5993 (team_malloc_cleared): New function.
5994 (team_free): New function.
5995 * team.c (gomp_new_team): Initialize and use team_malloc.
5996 (free_team): Use team_free.
5997 (gomp_free_thread): Use team_free.
5998 (gomp_pause_host): Use team_free.
5999 * work.c (gomp_init_work_share): Use team_malloc.
6000 (gomp_fini_work_share): Use team_free.
6001
6002 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6003 Kwok Cheung Yeung <kcy@codesourcery.com>
6004 Julian Brown <julian@codesourcery.com>
6005 Tom de Vries <tom@codesourcery.com>
6006
6007 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
6008 * Makefile.in: Regenerate.
6009 * config.h.in (PLUGIN_GCN): Add new undef.
6010 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
6011 * config/gcn/affinity-fmt.c: New file.
6012 * config/gcn/bar.c: New file.
6013 * config/gcn/bar.h: New file.
6014 * config/gcn/doacross.h: New file.
6015 * config/gcn/icv-device.c: New file.
6016 * config/gcn/oacc-target.c: New file.
6017 * config/gcn/simple-bar.h: New file.
6018 * config/gcn/target.c: New file.
6019 * config/gcn/task.c: New file.
6020 * config/gcn/team.c: New file.
6021 * config/gcn/time.c: New file.
6022 * configure.ac: Add amdgcn*-*-*.
6023 * configure: Regenerate.
6024 * configure.tgt: Add amdgcn*-*-*.
6025 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
6026 * libgomp.h (gcn_thrs): Add amdgcn variant.
6027 (set_gcn_thrs): Likewise.
6028 (gomp_thread): Likewise.
6029 * oacc-int.h (goacc_thread): Likewise.
6030 * oacc-target.c: New file.
6031 * openacc.f90 (acc_device_gcn): New parameter.
6032 * openacc.h (acc_device_t): Add acc_device_gcn.
6033 * team.c (gomp_free_pool_helper): Add amdgcn support.
6034
6035 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6036 Julian Brown <julian@codesourcery.com>
6037
6038 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
6039 parameter.
6040 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
6041 queue constructor.
6042 * oacc-host.c (host_openacc_async_construct): Add device parameter.
6043 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
6044 device parameter.
6045
6046 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
6047
6048 * configure.tgt (nvptx*-*-*): Add "accel" directory.
6049 * config/nvptx/libgomp-plugin.c: Move ...
6050 * config/accel/libgomp-plugin.c: ... to here.
6051 * config/nvptx/lock.c: Move ...
6052 * config/accel/lock.c: ... to here.
6053 * config/nvptx/mutex.c: Move ...
6054 * config/accel/mutex.c: ... to here.
6055 * config/nvptx/mutex.h: Move ...
6056 * config/accel/mutex.h: ... to here.
6057 * config/nvptx/oacc-async.c: Move ...
6058 * config/accel/oacc-async.c: ... to here.
6059 * config/nvptx/oacc-cuda.c: Move ...
6060 * config/accel/oacc-cuda.c: ... to here.
6061 * config/nvptx/oacc-host.c: Move ...
6062 * config/accel/oacc-host.c: ... to here.
6063 * config/nvptx/oacc-init.c: Move ...
6064 * config/accel/oacc-init.c: ... to here.
6065 * config/nvptx/oacc-mem.c: Move ...
6066 * config/accel/oacc-mem.c: ... to here.
6067 * config/nvptx/oacc-plugin.c: Move ...
6068 * config/accel/oacc-plugin.c: ... to here.
6069 * config/nvptx/omp-lock.h: Move ...
6070 * config/accel/omp-lock.h: ... to here.
6071 * config/nvptx/openacc.f90: Move ...
6072 * config/accel/openacc.f90: ... to here.
6073 * config/nvptx/pool.h: Move ...
6074 * config/accel/pool.h: ... to here.
6075 * config/nvptx/proc.c: Move ...
6076 * config/accel/proc.c: ... to here.
6077 * config/nvptx/ptrlock.c: Move ...
6078 * config/accel/ptrlock.c: ... to here.
6079 * config/nvptx/ptrlock.h: Move ...
6080 * config/accel/ptrlock.h: ... to here.
6081 * config/nvptx/sem.c: Move ...
6082 * config/accel/sem.c: ... to here.
6083 * config/nvptx/sem.h: Move ...
6084 * config/accel/sem.h: ... to here.
6085 * config/nvptx/thread-stacksize.h: Move ...
6086 * config/accel/thread-stacksize.h: ... to here.
6087
6088 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
6089 Tobias Burnus <tobias@codesourcery.com>
6090 Frederik Harwath <frederik@codesourcery.com>
6091 Thomas Schwinge <thomas@codesourcery.com>
6092
6093 libgomp/
6094 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
6095 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
6096 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
6097
6098 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
6099 Kwok Cheung Yeung <kcy@codesourcery.com>
6100
6101 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
6102 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
6103
6104 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
6105
6106 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
6107
6108 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
6109 run'.
6110 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
6111 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
6112
6113 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
6114
6115 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
6116 Add expected warnings about missing reduction clauses.
6117 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6118 Likewise.
6119 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
6120 Likewise.
6121 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
6122 Likewise.
6123
6124 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6125
6126 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
6127 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
6128 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
6129 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6130 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6131 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6132
6133 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6134
6135 PR fortran/92305
6136 * testsuite/libgomp.fortran/allocatable2.f90: Use
6137 unique numbers with 'stop'.
6138 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6139 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6140 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
6141 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
6142 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
6143
6144 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6145
6146 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
6147 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
6148 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
6149 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
6150 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
6151 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
6152
6153 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6154
6155 * testsuite/libgomp.fortran/target9.f90: New.
6156
6157 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6158
6159 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
6160 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
6161 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
6162 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
6163 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
6164 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
6165 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
6166 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
6167 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
6168 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
6169 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
6170 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
6171 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
6172 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
6173 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
6174 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
6175 * testsuite/libgomp.fortran/associate1.f90: Ditto.
6176 * testsuite/libgomp.fortran/associate2.f90: Ditto.
6177 * testsuite/libgomp.fortran/associate3.f90: Ditto.
6178 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
6179 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
6180 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
6181 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
6182 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
6183 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
6184 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
6185 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
6186 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
6187 * testsuite/libgomp.fortran/character1.f90: Ditto.
6188 * testsuite/libgomp.fortran/character2.f90: Ditto.
6189 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
6190 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
6191 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
6192 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
6193 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
6194 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
6195 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
6196 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
6197 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
6198 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
6199 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
6200 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
6201 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
6202 * testsuite/libgomp.fortran/do1.f90: Ditto.
6203 * testsuite/libgomp.fortran/do2.f90: Ditto.
6204 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
6205 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
6206 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
6207 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
6208 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
6209 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
6210 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
6211 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
6212 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
6213 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
6214 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
6215 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
6216 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
6217 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
6218 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
6219 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
6220 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
6221 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
6222 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
6223 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
6224 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
6225 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
6226 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
6227 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
6228 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
6229 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
6230 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
6231 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
6232 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
6233 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
6234 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
6235 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
6236 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
6237 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
6238 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
6239 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
6240 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
6241 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
6242 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
6243 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
6244 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
6245 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
6246 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
6247 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
6248 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
6249 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
6250 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
6251 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
6252 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
6253 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6254 * testsuite/libgomp.fortran/lib1.f90: Ditto.
6255 * testsuite/libgomp.fortran/lib4.f90: Ditto.
6256 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
6257 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
6258 * testsuite/libgomp.fortran/nested1.f90: Ditto.
6259 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
6260 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
6261 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
6262 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6263 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
6264 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
6265 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6266 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
6267 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
6268 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
6269 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
6270 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
6271 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
6272 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
6273 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6274 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
6275 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6276 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
6277 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
6278 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
6279 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
6280 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
6281 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
6282 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
6283 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6284 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
6285 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
6286 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
6287 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
6288 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
6289 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6290 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
6291 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
6292 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
6293 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
6294 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6295 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
6296 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
6297 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
6298 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
6299 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
6300 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
6301 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
6302 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
6303 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
6304 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
6305 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
6306 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
6307 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
6308 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
6309 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
6310 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
6311 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
6312 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
6313 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
6314 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
6315 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6316 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
6317 * testsuite/libgomp.fortran/reference1.f90: Ditto.
6318 * testsuite/libgomp.fortran/reference2.f90: Ditto.
6319 * testsuite/libgomp.fortran/retval1.f90: Ditto.
6320 * testsuite/libgomp.fortran/retval2.f90: Ditto.
6321 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
6322 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
6323 * testsuite/libgomp.fortran/simd1.f90: Ditto.
6324 * testsuite/libgomp.fortran/simd2.f90: Ditto.
6325 * testsuite/libgomp.fortran/simd3.f90: Ditto.
6326 * testsuite/libgomp.fortran/simd4.f90: Ditto.
6327 * testsuite/libgomp.fortran/simd5.f90: Ditto.
6328 * testsuite/libgomp.fortran/simd6.f90: Ditto.
6329 * testsuite/libgomp.fortran/simd7.f90: Ditto.
6330 * testsuite/libgomp.fortran/stack.f90: Ditto.
6331 * testsuite/libgomp.fortran/strassen.f90: Ditto.
6332 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
6333 * testsuite/libgomp.fortran/tabs2.f: Ditto.
6334 * testsuite/libgomp.fortran/target1.f90: Ditto.
6335 * testsuite/libgomp.fortran/target2.f90: Ditto.
6336 * testsuite/libgomp.fortran/target3.f90: Ditto.
6337 * testsuite/libgomp.fortran/target4.f90: Ditto.
6338 * testsuite/libgomp.fortran/target5.f90: Ditto.
6339 * testsuite/libgomp.fortran/target6.f90: Ditto.
6340 * testsuite/libgomp.fortran/target7.f90: Ditto.
6341 * testsuite/libgomp.fortran/target8.f90: Ditto.
6342 * testsuite/libgomp.fortran/task1.f90: Ditto.
6343 * testsuite/libgomp.fortran/task2.f90: Ditto.
6344 * testsuite/libgomp.fortran/task3.f90: Ditto.
6345 * testsuite/libgomp.fortran/task4.f90: Ditto.
6346 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6347 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6348 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6349 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6350 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6351 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
6352 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
6353 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
6354 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
6355 * testsuite/libgomp.fortran/udr1.f90: Ditto.
6356 * testsuite/libgomp.fortran/udr10.f90: Ditto.
6357 * testsuite/libgomp.fortran/udr11.f90: Ditto.
6358 * testsuite/libgomp.fortran/udr12.f90: Ditto.
6359 * testsuite/libgomp.fortran/udr13.f90: Ditto.
6360 * testsuite/libgomp.fortran/udr14.f90: Ditto.
6361 * testsuite/libgomp.fortran/udr15.f90: Ditto.
6362 * testsuite/libgomp.fortran/udr2.f90: Ditto.
6363 * testsuite/libgomp.fortran/udr3.f90: Ditto.
6364 * testsuite/libgomp.fortran/udr4.f90: Ditto.
6365 * testsuite/libgomp.fortran/udr5.f90: Ditto.
6366 * testsuite/libgomp.fortran/udr6.f90: Ditto.
6367 * testsuite/libgomp.fortran/udr7.f90: Ditto.
6368 * testsuite/libgomp.fortran/udr8.f90: Ditto.
6369 * testsuite/libgomp.fortran/udr9.f90: Ditto.
6370 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6371 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6372 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6373 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6374 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6375 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6376 * testsuite/libgomp.fortran/vla7.f90: Ditto.
6377 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6378 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6379 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6380
6381 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6382
6383 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
6384 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
6385 Ditto; add 'dg-do run' for torture testing.
6386 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
6387 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6388 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6389 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6390 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6391 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6392 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
6393 * testsuite/libgomp.fortran/task2.f90: Ditto.
6394 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6395 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6396 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6397 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6398 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6399 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6400
6401 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
6402
6403 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
6404 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
6405 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
6406 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
6407 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
6408 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
6409 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
6410 Use 'stop' not abort().
6411 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
6412 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
6413 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
6414 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
6415 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
6416 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
6417 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
6418 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
6419 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
6420 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
6421 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
6422 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
6423 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
6424 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
6425 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
6426 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
6427 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6428 Ditto.
6429 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6430 Ditto.
6431 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6432 Ditto.
6433 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6434 Ditto.
6435 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6436 Ditto.
6437 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
6438 Ditto.
6439 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
6440 Ditto.
6441 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
6442 Ditto.
6443 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
6444 Ditto.
6445 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
6446 Ditto.
6447 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
6448 Ditto.
6449 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
6450 Ditto.
6451 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
6452 Ditto.
6453 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
6454 Ditto.
6455 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
6456 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
6457 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
6458 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
6459 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6460 Likewise and also add 'dg-do run'.
6461 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6462 Ditto.
6463
6464 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6465 Tobias Burnus <tobias@codesourcery.com>
6466
6467 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
6468 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
6469 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
6470
6471 2019-10-14 Jakub Jelinek <jakub@redhat.com>
6472
6473 PR libgomp/92081
6474 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
6475 than 0.
6476
6477 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
6478
6479 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
6480 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
6481
6482 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
6483
6484 PR middle-end/92036
6485 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
6486 file.
6487
6488 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
6489
6490 PR testsuite/91884
6491 * testsuite/libgomp.fortran/fortran.exp: Conditionally
6492 add -lquadmath.
6493 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
6494
6495 2019-10-09 Jakub Jelinek <jakub@redhat.com>
6496
6497 PR libgomp/92028
6498 * target.c (gomp_map_vars_internal): Readd the previous
6499 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
6500 though do that just in the !not_found_cnt case.
6501
6502 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
6503
6504 * gfortran.dg/gomp/target-simd.f90: New.
6505
6506 2019-10-02 Julian Brown <julian@codesourcery.com>
6507 Cesar Philippidis <cesar@codesourcery.com>
6508
6509 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
6510 * target.c (FIELD_TGT_EMPTY): Define.
6511 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
6512 as switch instead of list of ifs.
6513 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
6514
6515 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
6516
6517 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
6518 include. Replace alloca () with __builtin_alloca ().
6519 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
6520
6521 2019-10-01 Jakub Jelinek <jakub@redhat.com>
6522
6523 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
6524 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
6525 * oacc-parallel.c: Don't include "libgomp_g.h".
6526 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
6527 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
6528 * aclocal.m4: Regenerated.
6529 * config.h.in: Regenerated.
6530 * configure: Regenerated.
6531 * Makefile.in: Regenerated.
6532
6533 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
6534
6535 * libgomp_g.h: Include stdint.h instead of gstdint.h.
6536
6537 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
6538
6539 * configure: Regenerate.
6540
6541 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
6542
6543 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
6544 string is initialized.
6545
6546 2019-09-06 Florian Weimer <fweimer@redhat.com>
6547
6548 * configure: Regenerate.
6549
6550 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
6551
6552 PR other/79543
6553 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
6554 scanning to conform to the GNU Coding Standards.
6555 * configure: Regenerate.
6556
6557 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6558
6559 PR libgomp/91530
6560 * testsuite/libgomp.c/scan-21.c: New test.
6561 * testsuite/libgomp.c/scan-22.c: New test.
6562
6563 2019-08-27 Jakub Jelinek <jakub@redhat.com>
6564
6565 PR libgomp/91530
6566 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
6567 targets.
6568 * testsuite/libgomp.c/scan-12.c: Likewise.
6569 * testsuite/libgomp.c/scan-13.c: Likewise.
6570 * testsuite/libgomp.c/scan-14.c: Likewise.
6571 * testsuite/libgomp.c/scan-15.c: Likewise.
6572 * testsuite/libgomp.c/scan-16.c: Likewise.
6573 * testsuite/libgomp.c/scan-17.c: Likewise.
6574 * testsuite/libgomp.c/scan-18.c: Likewise.
6575 * testsuite/libgomp.c/scan-19.c: Likewise.
6576 * testsuite/libgomp.c/scan-20.c: Likewise.
6577 * testsuite/libgomp.c++/scan-9.C: Likewise.
6578 * testsuite/libgomp.c++/scan-10.C: Likewise.
6579 * testsuite/libgomp.c++/scan-11.C: Likewise.
6580 * testsuite/libgomp.c++/scan-12.C: Likewise.
6581 * testsuite/libgomp.c++/scan-14.C: Likewise.
6582 * testsuite/libgomp.c++/scan-15.C: Likewise.
6583 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
6584 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
6585 * testsuite/libgomp.c++/scan-16.C: Likewise.
6586
6587 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
6588
6589 PR fortran/91473
6590 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
6591 -std=legacy so invalid code in the test case is accepted.
6592
6593 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
6594
6595 PR fortran/91422
6596 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
6597 dimension.
6598
6599 2019-08-08 Jakub Jelinek <jakub@redhat.com>
6600
6601 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
6602 perform the lookup in the first loop only if !not_found_cnt, otherwise
6603 perform lookups for it in the second loop guarded with
6604 if (not_found_cnt || has_firstprivate).
6605 * testsuite/libgomp.c/target-37.c: New test.
6606 * testsuite/libgomp.c++/target-22.C: New test.
6607
6608 2019-08-07 Jakub Jelinek <jakub@redhat.com>
6609
6610 * testsuite/libgomp.c/target-18.c (struct S): New type.
6611 (foo): Use use_device_addr clause instead of use_device_ptr clause
6612 where required by OpenMP 5.0, add further tests for both use_device_ptr
6613 and use_device_addr clauses.
6614 * testsuite/libgomp.c++/target-9.C (struct S): New type.
6615 (foo): Use use_device_addr clause instead of use_device_ptr clause
6616 where required by OpenMP 5.0, add further tests for both use_device_ptr
6617 and use_device_addr clauses. Add t and u arguments.
6618 (main): Adjust caller.
6619
6620 2019-08-06 Jakub Jelinek <jakub@redhat.com>
6621
6622 * testsuite/libgomp.c++/loop-13.C: New test.
6623 * testsuite/libgomp.c++/loop-14.C: New test.
6624 * testsuite/libgomp.c++/loop-15.C: New test.
6625
6626 2019-07-31 Jakub Jelinek <jakub@redhat.com>
6627
6628 PR middle-end/91301
6629 * testsuite/libgomp.c++/for-27.C: New test.
6630
6631 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
6632
6633 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
6634 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6635
6636 2019-07-20 Jakub Jelinek <jakub@redhat.com>
6637
6638 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
6639
6640 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6641
6642 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
6643 * testsuite/libgomp.c++/scan-16.C: Likewise.
6644
6645 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6646
6647 * testsuite/libgomp.c/scan-19.c: New test.
6648 * testsuite/libgomp.c/scan-20.c: New test.
6649
6650 * testsuite/libgomp.c/scan-11.c: New test.
6651 * testsuite/libgomp.c/scan-12.c: New test.
6652 * testsuite/libgomp.c/scan-13.c: New test.
6653 * testsuite/libgomp.c/scan-14.c: New test.
6654 * testsuite/libgomp.c/scan-15.c: New test.
6655 * testsuite/libgomp.c/scan-16.c: New test.
6656 * testsuite/libgomp.c/scan-17.c: New test.
6657 * testsuite/libgomp.c/scan-18.c: New test.
6658 * testsuite/libgomp.c++/scan-9.C: New test.
6659 * testsuite/libgomp.c++/scan-10.C: New test.
6660 * testsuite/libgomp.c++/scan-11.C: New test.
6661 * testsuite/libgomp.c++/scan-12.C: New test.
6662 * testsuite/libgomp.c++/scan-13.C: New test.
6663 * testsuite/libgomp.c++/scan-14.C: New test.
6664 * testsuite/libgomp.c++/scan-15.C: New test.
6665 * testsuite/libgomp.c++/scan-16.C: New test.
6666
6667 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6668
6669 * testsuite/libgomp.c/scan-9.c: New test.
6670 * testsuite/libgomp.c/scan-10.c: New test.
6671
6672 2019-07-03 Jakub Jelinek <jakub@redhat.com>
6673
6674 * testsuite/libgomp.c++/scan-1.C: New test.
6675 * testsuite/libgomp.c++/scan-2.C: New test.
6676 * testsuite/libgomp.c++/scan-3.C: New test.
6677 * testsuite/libgomp.c++/scan-4.C: New test.
6678 * testsuite/libgomp.c++/scan-5.C: New test.
6679 * testsuite/libgomp.c++/scan-6.C: New test.
6680 * testsuite/libgomp.c++/scan-7.C: New test.
6681 * testsuite/libgomp.c++/scan-8.C: New test.
6682 * testsuite/libgomp.c/scan-1.c: New test.
6683 * testsuite/libgomp.c/scan-2.c: New test.
6684 * testsuite/libgomp.c/scan-3.c: New test.
6685 * testsuite/libgomp.c/scan-4.c: New test.
6686 * testsuite/libgomp.c/scan-5.c: New test.
6687 * testsuite/libgomp.c/scan-6.c: New test.
6688 * testsuite/libgomp.c/scan-7.c: New test.
6689 * testsuite/libgomp.c/scan-8.c: New test.
6690
6691 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
6692
6693 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
6694 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
6695 Likewise.
6696
6697 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
6698 check.
6699
6700 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
6701
6702 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
6703 file.
6704
6705 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
6706
6707 PR fortran/90743
6708 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
6709 case.
6710 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
6711 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
6712 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
6713 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
6714
6715 PR testsuite/90861
6716 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
6717
6718 PR middle-end/90862
6719 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
6720
6721 2019-06-16 Tom de Vries <tdevries@suse.de>
6722
6723 PR tree-optimization/89376
6724 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
6725
6726 2019-06-15 Tom de Vries <tdevries@suse.de>
6727
6728 PR tree-optimization/89713
6729 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
6730 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
6731
6732 2019-06-15 Jakub Jelinek <jakub@redhat.com>
6733
6734 PR middle-end/90779
6735 * testsuite/libgomp.c/pr90779.c: New test.
6736 * testsuite/libgomp.fortran/pr90779.f90: New test.
6737
6738 2019-06-15 Tom de Vries <tdevries@suse.de>
6739
6740 PR tree-optimization/90009
6741 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
6742
6743 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
6744
6745 PR tree-optimization/89713
6746 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
6747
6748 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6749
6750 PR target/90811
6751 * testsuite/libgomp.c/pr90811.c: New test.
6752
6753 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6754
6755 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
6756 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
6757
6758 2019-06-04 Jakub Jelinek <jakub@redhat.com>
6759
6760 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
6761 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
6762 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
6763 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
6764
6765 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6766
6767 * configure.ac: Call AX_COUNT_CPUS.
6768 Substitute CPU_COUNT.
6769 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
6770 count fallback.
6771 * aclocal.m4: Regenerate.
6772 * configure: Regenerate.
6773 * Makefile.in, testsuite/Makefile.in: Regenerate.
6774
6775 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6776
6777 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
6778 to ...
6779 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
6780 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
6781 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
6782
6783 2019-05-27 Jakub Jelinek <jakub@redhat.com>
6784
6785 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
6786
6787 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
6788
6789 PR libgomp/90641
6790 * work.c (gomp_init_work_share): Instead of aligning final ordered
6791 value to multiples of long long alignment, align to that the
6792 first part (ordered team ids) and if inline_ordered_team_ids
6793 is not on a long long alignment boundary within the structure,
6794 use __alignof__ (long long) - 1 pad size always.
6795 * loop.c (GOMP_loop_start): Fix *mem computation if
6796 inline_ordered_team_ids is not aligned on long long alignment boundary
6797 within the structure.
6798 * loop-ull.c (GOMP_loop_ull_start): Likewise.
6799 * sections.c (GOMP_sections2_start): Likewise.
6800
6801 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6802
6803 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
6804 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
6805
6806 PR libgomp/90585
6807 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
6808 HAVE_INTTYPES_H is defined.
6809 (print_uint64_t): New typedef.
6810 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
6811 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
6812 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
6813 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
6814 before casting to void *.
6815 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
6816 * oacc-mem.c: Don't include config.h nor stdint.h.
6817 * target.c: Don't include config.h.
6818 * oacc-cuda.c: Likewise.
6819 * oacc-host.c: Don't include stdint.h.
6820
6821 2019-05-20 Jakub Jelinek <jakub@redhat.com>
6822
6823 PR libgomp/90527
6824 * alloc.c (_GNU_SOURCE): Define.
6825
6826 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
6827
6828 * acc_prof.h: New file.
6829 * oacc-profiling.c: Likewise.
6830 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
6831 Add these, respectively.
6832 * Makefile.in: Regenerate.
6833 * env.c (initialize_env): Call goacc_profiling_initialize.
6834 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
6835 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
6836 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
6837 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
6838 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
6839 acc_prof_register, acc_prof_unregister, and acc_register_library.
6840 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
6841 GOMP_PLUGIN_goacc_thread.
6842 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
6843 prof_callbacks_enabled members.
6844 (goacc_prof_enabled, goacc_profiling_initialize)
6845 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
6846 (goacc_profiling_dispatch): Declare.
6847 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
6848 (GOACC_PROFILING_SETUP_P): Define.
6849 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
6850 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
6851 OpenACC Profiling Interface.
6852 * oacc-cuda.c (acc_get_current_cuda_device)
6853 (acc_get_current_cuda_context, acc_get_cuda_stream)
6854 (acc_set_cuda_stream): Likewise.
6855 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
6856 (acc_init, acc_set_device_type, acc_get_device_type)
6857 (acc_get_device_num, goacc_lazy_initialize): Likewise.
6858 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
6859 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
6860 (acc_unmap_data, present_create_copy, delete_copyout)
6861 (update_dev_host): Likewise.
6862 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
6863 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
6864 Likewise.
6865 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
6866 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
6867 Likewise.
6868 * libgomp.texi: Update.
6869 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
6870 file.
6871 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
6872 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
6873 Likewise.
6874 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
6875 Likewise.
6876 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
6877 Likewise.
6878 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
6879 Likewise.
6880
6881 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
6882
6883 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
6884 (struct goacc_asyncqueue_list): Likewise.
6885 (goacc_aq): Likewise.
6886 (goacc_aq_list): Likewise.
6887 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6888 (GOMP_OFFLOAD_openacc_async_test): Remove.
6889 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6890 (GOMP_OFFLOAD_openacc_async_wait): Remove.
6891 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6892 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6893 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6894 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6895 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
6896 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
6897 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
6898 (GOMP_OFFLOAD_openacc_async_exec): Declare.
6899 (GOMP_OFFLOAD_openacc_async_construct): Declare.
6900 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
6901 (GOMP_OFFLOAD_openacc_async_test): Declare.
6902 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
6903 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
6904 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
6905 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
6906 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
6907
6908 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
6909 (gomp_acc_insert_pointer): Adjust declaration.
6910 (gomp_copy_host2dev): New declaration.
6911 (gomp_copy_dev2host): Likewise.
6912 (gomp_map_vars_async): Likewise.
6913 (gomp_unmap_tgt): Likewise.
6914 (gomp_unmap_vars_async): Likewise.
6915 (gomp_fini_device): Likewise.
6916
6917 * oacc-async.c (get_goacc_thread): New function.
6918 (get_goacc_thread_device): New function.
6919 (lookup_goacc_asyncqueue): New function.
6920 (get_goacc_asyncqueue): New function.
6921 (acc_async_test): Adjust code to use new async design.
6922 (acc_async_test_all): Likewise.
6923 (acc_wait): Likewise.
6924 (acc_wait_async): Likewise.
6925 (acc_wait_all): Likewise.
6926 (acc_wait_all_async): Likewise.
6927 (goacc_async_free): New function.
6928 (goacc_init_asyncqueues): Likewise.
6929 (goacc_fini_asyncqueues): Likewise.
6930 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
6931 design.
6932 (acc_set_cuda_stream): Likewise.
6933 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
6934 (host_openacc_register_async_cleanup): Remove.
6935 (host_openacc_async_exec): New function.
6936 (host_openacc_async_test): Adjust parameters.
6937 (host_openacc_async_test_all): Remove.
6938 (host_openacc_async_wait): Remove.
6939 (host_openacc_async_wait_async): Remove.
6940 (host_openacc_async_wait_all): Remove.
6941 (host_openacc_async_wait_all_async): Remove.
6942 (host_openacc_async_set_async): Remove.
6943 (host_openacc_async_synchronize): New function.
6944 (host_openacc_async_serialize): New function.
6945 (host_openacc_async_host2dev): New function.
6946 (host_openacc_async_dev2host): New function.
6947 (host_openacc_async_queue_callback): New function.
6948 (host_openacc_async_construct): New function.
6949 (host_openacc_async_destruct): New function.
6950 (struct gomp_device_descr host_dispatch): Remove initialization of old
6951 interface, add initialization of new async sub-struct.
6952 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
6953 (goacc_attach_host_thread_to_device): Remove old async code usage.
6954 * oacc-int.h (goacc_init_asyncqueues): New declaration.
6955 (goacc_fini_asyncqueues): Likewise.
6956 (goacc_async_copyout_unmap_vars): Likewise.
6957 (goacc_async_free): Likewise.
6958 (get_goacc_asyncqueue): Likewise.
6959 (lookup_goacc_asyncqueue): Likewise.
6960 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
6961 design.
6962 (present_create_copy): Adjust code to use new async design.
6963 (delete_copyout): Likewise.
6964 (update_dev_host): Likewise.
6965 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
6966 async design.
6967 (gomp_acc_remove_pointer): Adjust code to use new async design.
6968 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
6969 design.
6970 (GOACC_enter_exit_data): Likewise.
6971 (goacc_wait): Likewise.
6972 (GOACC_update): Likewise.
6973 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
6974 when called, warn as obsolete in comment.
6975 * target.c (goacc_device_copy_async): New function.
6976 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
6977 add goacc_device_copy_async case.
6978 (gomp_copy_dev2host): Likewise.
6979 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
6980 (gomp_map_pointer): Likewise.
6981 (gomp_map_fields_existing): Likewise.
6982 (gomp_map_vars_internal): New always_inline function, renamed from
6983 gomp_map_vars.
6984 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
6985 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
6986 passing goacc_asyncqueue argument.
6987 (gomp_unmap_tgt): Remove static, add attribute_hidden.
6988 (gomp_unref_tgt): New function.
6989 (gomp_unmap_vars_internal): New always_inline function, renamed from
6990 gomp_unmap_vars.
6991 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
6992 (gomp_unmap_vars_async): Implement by calling
6993 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
6994 (gomp_fini_device): New function.
6995 (gomp_exit_data): Adjust gomp_copy_dev2host call.
6996 (gomp_load_plugin_for_device): Remove old interface, adjust to load
6997 new async interface.
6998 (gomp_target_fini): Adjust code to call gomp_fini_device.
6999
7000 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
7001 (struct ptx_stream): Remove.
7002 (struct nvptx_thread): Remove current_stream field.
7003 (cuda_map_create): Remove.
7004 (cuda_map_destroy): Remove.
7005 (map_init): Remove.
7006 (map_fini): Remove.
7007 (map_pop): Remove.
7008 (map_push): Remove.
7009 (struct goacc_asyncqueue): Define.
7010 (struct nvptx_callback): Define.
7011 (struct ptx_free_block): Define.
7012 (struct ptx_device): Remove null_stream, active_streams, async_streams,
7013 stream_lock, and next fields.
7014 (enum ptx_event_type): Remove.
7015 (struct ptx_event): Remove.
7016 (ptx_event_lock): Remove.
7017 (ptx_events): Remove.
7018 (init_streams_for_device): Remove.
7019 (fini_streams_for_device): Remove.
7020 (select_stream_for_async): Remove.
7021 (nvptx_init): Remove ptx_events and ptx_event_lock references.
7022 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
7023 case.
7024 (nvptx_open_device): Add free_blocks initialization, remove
7025 init_streams_for_device call.
7026 (nvptx_close_device): Remove fini_streams_for_device call, add
7027 free_blocks destruct code.
7028 (event_gc): Remove.
7029 (event_add): Remove.
7030 (nvptx_exec): Adjust parameters and code.
7031 (nvptx_free): Likewise.
7032 (nvptx_host2dev): Remove.
7033 (nvptx_dev2host): Remove.
7034 (nvptx_set_async): Remove.
7035 (nvptx_async_test): Remove.
7036 (nvptx_async_test_all): Remove.
7037 (nvptx_wait): Remove.
7038 (nvptx_wait_async): Remove.
7039 (nvptx_wait_all): Remove.
7040 (nvptx_wait_all_async): Remove.
7041 (nvptx_get_cuda_stream): Remove.
7042 (nvptx_set_cuda_stream): Remove.
7043 (GOMP_OFFLOAD_alloc): Adjust code.
7044 (GOMP_OFFLOAD_free): Likewise.
7045 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
7046 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
7047 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
7048 (GOMP_OFFLOAD_openacc_async_wait): Remove.
7049 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
7050 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
7051 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
7052 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
7053 (cuda_free_argmem): New function.
7054 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
7055 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
7056 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
7057 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
7058 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
7059 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
7060 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
7061 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
7062 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
7063 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
7064 (cuda_callback_wrapper): New function.
7065 (cuda_memcpy_sanity_check): New function.
7066 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
7067 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
7068 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
7069 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
7070
7071 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
7072
7073 PR target/87835
7074 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
7075
7076 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
7077
7078 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
7079
7080 2019-03-27 Kevin Buettner <kevinb@redhat.com>
7081
7082 * team.c (gomp_team_start): Initialize pool->threads[0].
7083
7084 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
7085
7086 * testsuite/libgomp.oacc-c++/c++.exp: Specify
7087 "-foffload=$offload_target".
7088 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7089 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7090 * testsuite/lib/libgomp.exp
7091 (check_effective_target_openacc_nvidia_accel_configured): Remove,
7092 as (conceptually) merged into
7093 check_effective_target_openacc_nvidia_accel_selected. Adjust all
7094 users.
7095
7096 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
7097 * testsuite/libgomp-test-support.exp.in: Adjust.
7098 * testsuite/lib/libgomp.exp: Likewise. Don't populate
7099 openacc_device_types_s.
7100 (offload_target_to_openacc_device_type): New proc.
7101 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
7102 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7103 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7104 * Makefile.in: Regenerate.
7105 * configure: Likewise.
7106 * testsuite/Makefile.in: Likewise.
7107
7108 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
7109 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
7110 instead of OFFLOAD_TARGETS.
7111 * target.c (gomp_target_init): Adjust.
7112 * testsuite/libgomp-test-support.exp.in: Likewise.
7113 * testsuite/lib/libgomp.exp: Likewise. Populate
7114 openacc_device_types_s instead of offload_targets_s_openacc.
7115 (check_effective_target_openacc_nvidia_accel_selected)
7116 (check_effective_target_openacc_host_selected): Adjust.
7117 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
7118 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7119 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7120 * Makefile.in: Regenerate.
7121 * config.h.in: Likewise.
7122 * configure: Likewise.
7123 * testsuite/Makefile.in: Likewise.
7124
7125 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
7126 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
7127 "offloading: supported, but hardware not accessible".
7128 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7129 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7130
7131 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
7132
7133 PR c/87924
7134 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
7135 goacc_wait().
7136 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
7137 and related adjustment.
7138
7139 2019-01-30 Jakub Jelinek <jakub@redhat.com>
7140
7141 PR c++/88988
7142 * testsuite/libgomp.c++/pr88988.C: New test.
7143
7144 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7145
7146 PR middle-end/89002
7147 * testsuite/libgomp.c/pr89002.c: New test.
7148
7149 2019-01-28 Richard Biener <rguenther@suse.de>
7150
7151 PR testsuite/89064
7152 PR tree-optimization/86865
7153 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
7154
7155 2019-01-24 Tom de Vries <tdevries@suse.de>
7156
7157 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
7158 once instantiated_devices drops to 0.
7159
7160 2019-01-23 Tom de Vries <tdevries@suse.de>
7161
7162 PR target/PR88946
7163 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
7164 cuMemFree.
7165 (nvptx_exec): Don't call map_push if mapnum == 0.
7166 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
7167
7168 2019-01-23 Tom de Vries <tdevries@suse.de>
7169
7170 PR target/88941
7171 PR target/88939
7172 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
7173 (map_fini): Remove "assert (!s->map->active)".
7174 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
7175
7176 2019-01-23 Tom de Vries <tdevries@suse.de>
7177
7178 PR target/87835
7179 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
7180 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
7181
7182 2019-01-15 Tom de Vries <tdevries@suse.de>
7183
7184 PR target/80547
7185 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
7186 New test.
7187
7188 2019-01-12 Tom de Vries <tdevries@suse.de>
7189
7190 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
7191 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
7192 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
7193 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
7194
7195 2019-01-12 Tom de Vries <tdevries@suse.de>
7196
7197 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
7198
7199 2019-01-12 Tom de Vries <tdevries@suse.de>
7200
7201 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
7202 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
7203 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
7204
7205 2019-01-12 Tom de Vries <tdevries@suse.de>
7206
7207 PR target/85486
7208 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
7209 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
7210
7211 2019-01-12 Tom de Vries <tdevries@suse.de>
7212
7213 PR target/85381
7214 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
7215 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
7216
7217 2019-01-12 Tom de Vries <tdevries@suse.de>
7218
7219 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
7220 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
7221 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
7222
7223 2019-01-12 Tom de Vries <tdevries@suse.de>
7224
7225 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
7226 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
7227 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
7228
7229 2019-01-12 Tom de Vries <tdevries@suse.de>
7230
7231 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
7232 resources diagnostic.
7233
7234 2019-01-12 Tom de Vries <tdevries@suse.de>
7235
7236 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
7237 vector length to be 128.
7238 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
7239 length 2097152 to be reduced to 1024 instead of 32.
7240
7241 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
7242 James Norris <jnorris@codesourcery.com>
7243
7244 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
7245 Library Routines", and "Environment Variables".
7246
7247 2019-01-11 Tom de Vries <tdevries@suse.de>
7248
7249 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
7250 num_workers 16.
7251
7252 2019-01-11 Tom de Vries <tdevries@suse.de>
7253
7254 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
7255 -foffload=-w.
7256 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
7257 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
7258 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
7259 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
7260
7261 2019-01-11 Tom de Vries <tdevries@suse.de>
7262
7263 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
7264 test.
7265
7266 2019-01-10 Nathan Sidwell <nathan@acm.org>
7267 Julian Brown <julian@codesourcery.com>
7268
7269 PR lto/71959
7270 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
7271 * testsuite/libgomp.oacc-c++/pr71959.C: New.
7272
7273 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7274
7275 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
7276 and paste code.
7277
7278 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7279
7280 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
7281 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7282 write.
7283
7284 2019-01-09 Tom de Vries <tdevries@suse.de>
7285
7286 PR target/88756
7287 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
7288 #define instead of "const int".
7289 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
7290 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
7291 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
7292 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
7293
7294 2019-01-09 Tom de Vries <tdevries@suse.de>
7295
7296 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
7297 one worker.
7298
7299 2019-01-07 Tom de Vries <tdevries@suse.de>
7300
7301 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
7302 GOMP_OPENACC_DIM argument.
7303
7304 2019-01-03 Tom de Vries <tdevries@suse.de>
7305
7306 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
7307 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
7308
7309 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7310
7311 Update copyright years.
7312
7313 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7314
7315 * libgomp.texi: Bump @copying's copyright year.
7316
7317 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7318
7319 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
7320 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
7321 (GOACC_declare): Redefine the "device" argument to "flags".
7322
7323 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7324 Cesar Philippidis <cesar@codesourcery.com>
7325
7326 * target.c (struct gomp_coalesce_chunk): New structure.
7327 (struct gomp_coalesce_buf): Update the chunks member to use that
7328 type. Adjust all users.
7329
7330 2018-12-19 Tom de Vries <tdevries@suse.de>
7331
7332 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
7333 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
7334 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
7335
7336 2018-12-19 Tom de Vries <tdevries@suse.de>
7337
7338 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
7339 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
7340 gcc/testsuite/gcc.dg/goacc.
7341 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
7342
7343 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7344 Chung-Lin Tang <cltang@codesourcery.com>
7345
7346 * oacc-mem.c (acc_present_or_create): Remove definition and change
7347 to alias of acc_create.
7348 (acc_present_or_copyin): Remove definition and change to alias of
7349 acc_copyin.
7350 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
7351 of acc_present_or_create.
7352 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
7353 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7354 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7355 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7356 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7357 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7358 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7359 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7360 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7361 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7362 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7363 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7364 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7365 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7366 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7367 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7368
7369 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7370
7371 PR libgomp/88495
7372 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
7373 "identical parameters".
7374 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
7375 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
7376
7377 PR libgomp/88484
7378 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
7379 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
7380
7381 PR libgomp/88407
7382 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
7383 (nvptx_wait_async): Unseen async-argument is a no-op.
7384 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
7385 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
7386 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7387 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7388 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
7389 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
7390 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
7391 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
7392 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
7393
7394 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
7395 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7396
7397 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
7398
7399 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
7400 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7401 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7402
7403 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7404
7405 PR libgomp/88370
7406 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
7407 (acc_set_cuda_stream): Clarify.
7408 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
7409 "async_valid_p".
7410 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
7411 acc_async_sync".
7412 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
7413 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
7414 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
7415 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7416
7417 2018-12-14 Tom de Vries <tdevries@suse.de>
7418
7419 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
7420 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
7421 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
7422 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
7423 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
7424
7425 2018-12-13 Tom de Vries <tdevries@suse.de>
7426
7427 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
7428 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
7429 * fortran.c (omp_display_affinity_): ... here.
7430 * libgomp.h (gomp_print_string): Declare.
7431 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
7432 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7433 write.
7434
7435 2018-12-13 Jakub Jelinek <jakub@redhat.com>
7436
7437 PR libgomp/88460
7438 * testsuite/libgomp.c++/for-24.C (results): Include it in
7439 omp declare target region.
7440 (main): Use map (always, tofrom: results) instead of
7441 map (tofrom: results).
7442
7443 2018-12-12 Jakub Jelinek <jakub@redhat.com>
7444
7445 PR fortran/88463
7446 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
7447 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
7448
7449 * testsuite/libgomp.c-c++-common/for-16.c: New test.
7450
7451 2018-12-12 Andreas Schwab <schwab@suse.de>
7452
7453 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
7454 clobbered.
7455
7456 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
7457
7458 PR fortran/88411
7459 * testsuite/libgomp.fortran/async_io_8.f90: New test.
7460
7461 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
7462 Jakub Jelinek <jakub@redhat.com>
7463
7464 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
7465 devicep->host2dev_func.
7466
7467 2018-12-08 Jakub Jelinek <jakub@redhat.com>
7468
7469 PR libgomp/87995
7470 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
7471 tls_runtime effective target.
7472 (t): New threadprivate variable.
7473 (main): Set t in threads which execute iterations of the worksharing
7474 loop. Propagate that to the task after the loop and don't abort
7475 if the current taskgroup hasn't been cancelled.
7476
7477 2018-12-02 Jakub Jelinek <jakub@redhat.com>
7478
7479 * testsuite/libgomp.c/task-reduction-3.c: New test.
7480
7481 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
7482
7483 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
7484
7485 PR libgomp/88288
7486 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
7487 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
7488
7489 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
7490
7491 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
7492
7493 2018-10-19 Richard Biener <rguenther@suse.de>
7494
7495 PR tree-optimization/88182
7496 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
7497
7498 2018-11-26 Jakub Jelinek <jakub@redhat.com>
7499
7500 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
7501 (RUNTEST): Don't define.
7502 (RUNTESTDEFAULTFLAGS): Add.
7503 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
7504 (distclean-am): Depend on distclean-DEJAGNU.
7505 (check-am): If -j% option is present in MFLAGS and if
7506 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
7507 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
7508 * testsuite/Makefile.in: Regenerated.
7509
7510 2018-11-26 Richard Biener <rguenther@suse.de>
7511
7512 PR tree-optimization/88182
7513 * testsuite/libgomp.c++/pr88182.C: New testcase.
7514
7515 2018-11-20 Jakub Jelinek <jakub@redhat.com>
7516
7517 PR bootstrap/88106
7518 * config/mingw32/affinity-fmt.c: New file.
7519
7520 2018-11-09 Jakub Jelinek <jakub@redhat.com>
7521
7522 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
7523 (gomp_display_affinity): Use __builtin_choose_expr to handle
7524 properly handle argument having integral, or pointer or some other
7525 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
7526 with uint64_t type instead of %llx and unsigned long long.
7527
7528 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
7529 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
7530
7531 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7532
7533 * affinity.c: Include <string.h>, <stdio.h>.
7534 (gomp_display_affinity_place): Remove cpusetp.
7535 * teams.c: Include <limits.h>.
7536
7537 2018-11-08 Jakub Jelinek <jakub@redhat.com>
7538
7539 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
7540 in_reduction clause for s[0].
7541
7542 * affinity.c (gomp_display_affinity_place): New function.
7543 * affinity-fmt.c: New file.
7544 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
7545 * config/linux/affinity.c (gomp_display_affinity_place): New function.
7546 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
7547 Move these functions to ...
7548 * config/nvptx/teams.c: ... here. New file.
7549 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
7550 New functions.
7551 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
7552 functions.
7553 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
7554 and _aligned_malloc.
7555 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
7556 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
7557 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
7558 gomp_affinity_format_len): New variables.
7559 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
7560 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
7561 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
7562 modifiers. Display (non-default) chunk sizes. Print
7563 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
7564 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
7565 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
7566 * fortran.c: Include stdio.h and string.h.
7567 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
7568 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
7569 (omp_set_affinity_format_, omp_get_affinity_format_,
7570 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
7571 omp_pause_resource_all_): New functions.
7572 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
7573 switch.
7574 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
7575 functions to ...
7576 * teams.c: ... here. New file.
7577 * libgomp_g.h: Include gstdint.h.
7578 (GOMP_loop_nonmonotonic_runtime_start,
7579 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
7580 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
7581 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
7582 GOMP_parallel_loop_nonmonotonic_runtime,
7583 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7584 GOMP_loop_ull_nonmonotonic_runtime_start,
7585 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
7586 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
7587 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7588 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
7589 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
7590 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7591 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7592 GOMP_teams_reg): Declare.
7593 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
7594 gomp_aligned_alloc uses fallback implementation.
7595 (gomp_aligned_alloc, gomp_aligned_free): Declare.
7596 (enum gomp_schedule_type): Add GFS_MONOTONIC.
7597 (struct gomp_doacross_work_share): Add extra field.
7598 (struct gomp_work_share): Add task_reductions field.
7599 (struct gomp_taskgroup): Add workshare and reductions fields.
7600 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
7601 (gomp_thread_handle): New typedef.
7602 (gomp_display_affinity_place, gomp_set_affinity_format,
7603 gomp_display_string, gomp_display_affinity,
7604 gomp_display_affinity_thread): Declare.
7605 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
7606 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
7607 gomp_workshare_task_reduction_register): Declare.
7608 (gomp_team_start): Add taskgroup argument.
7609 (gomp_pause_host): Declare.
7610 (gomp_init_work_share, gomp_work_share_start): Change bool argument
7611 to size_t.
7612 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
7613 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
7614 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
7615 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7616 GOMP_loop_ull_doacross_start,
7617 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7618 GOMP_loop_maybe_nonmonotonic_runtime_next,
7619 GOMP_loop_maybe_nonmonotonic_runtime_start,
7620 GOMP_loop_nonmonotonic_runtime_next,
7621 GOMP_loop_nonmonotonic_runtime_start,
7622 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7623 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7624 GOMP_loop_ull_nonmonotonic_runtime_next,
7625 GOMP_loop_ull_nonmonotonic_runtime_start,
7626 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7627 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
7628 GOMP_taskgroup_reduction_register,
7629 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7630 GOMP_teams_reg and GOMP_taskwait_depend.
7631 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
7632 omp_{capture,display}_affinity{,_}, and
7633 omp_[gs]et_affinity_format{,_}.
7634 * loop.c: Include string.h.
7635 (GOMP_loop_runtime_next): Add ialias.
7636 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7637 (gomp_loop_static_start, gomp_loop_dynamic_start,
7638 gomp_loop_guided_start, gomp_loop_ordered_static_start,
7639 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7640 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7641 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
7642 or gomp_doacross_init callers.
7643 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
7644 GOMP_loop_doacross_start): New functions.
7645 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7646 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
7647 Mask off GFS_MONOTONIC bit.
7648 (GOMP_loop_maybe_nonmonotonic_runtime_next,
7649 GOMP_loop_maybe_nonmonotonic_runtime_start,
7650 GOMP_loop_nonmonotonic_runtime_next,
7651 GOMP_loop_nonmonotonic_runtime_start,
7652 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7653 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
7654 functions.
7655 (gomp_parallel_loop_start): Pass NULL as taskgroup to
7656 gomp_team_start.
7657 * loop_ull.c: Include string.h.
7658 (GOMP_loop_ull_runtime_next): Add ialias.
7659 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7660 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
7661 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
7662 gomp_loop_ull_ordered_dynamic_start,
7663 gomp_loop_ull_ordered_guided_start,
7664 gomp_loop_ull_doacross_static_start,
7665 gomp_loop_ull_doacross_dynamic_start,
7666 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
7667 and gomp_doacross_ull_init callers.
7668 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7669 GOMP_loop_ull_doacross_start): New functions.
7670 (GOMP_loop_ull_runtime_start,
7671 GOMP_loop_ull_ordered_runtime_start,
7672 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
7673 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7674 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7675 GOMP_loop_ull_nonmonotonic_runtime_next,
7676 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
7677 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
7678 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
7679 (omp_pause_resource_t, omp_depend_t): New typedefs.
7680 (enum omp_lock_hint_t): Renamed to ...
7681 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
7682 enumerators using numbers and omp_lock_hint_* as their aliases.
7683 (omp_lock_hint_t): New typedef. Rename to ...
7684 (omp_sync_hint_t): ... this.
7685 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
7686 omp_sync_hint_t instead of omp_lock_hint_t.
7687 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7688 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7689 Declare.
7690 (omp_target_is_present, omp_target_disassociate_ptr):
7691 Change first argument from void * to const void *.
7692 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
7693 from void * to const void *.
7694 (omp_target_associate_ptr): Change first and second arguments from
7695 void * to const void *.
7696 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
7697 omp_pause_hard): New parameters.
7698 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7699 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7700 New interfaces.
7701 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
7702 omp_pause_hard): New parameters.
7703 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7704 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7705 New externals.
7706 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
7707 EXTRA argument. If not needed to prepare array, if extra is 0,
7708 clear ws->doacross, otherwise allocate just doacross structure and
7709 extra payload. If array is needed, allocate also extra payload.
7710 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
7711 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
7712 doacross == NULL.
7713 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
7714 gomp_team_start.
7715 (GOMP_parallel): Likewise. Formatting fix.
7716 (GOMP_parallel_reductions): New function.
7717 (GOMP_cancellation_point): If taskgroup has workshare
7718 flag set, check cancelled of prev taskgroup if any.
7719 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
7720 on prev taskgroup if any.
7721 * sections.c: Include string.h.
7722 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7723 (GOMP_sections_start): Adjust gomp_work_share_start caller.
7724 (GOMP_sections2_start): New function.
7725 (GOMP_parallel_sections_start, GOMP_parallel_sections):
7726 Pass NULL as taskgroup to gomp_team_start.
7727 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
7728 gomp_work_share_start callers.
7729 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
7730 If taskgroup has workshare flag set, check cancelled on prev
7731 taskgroup if any. Guard all cancellation tests with
7732 gomp_cancel_var test.
7733 (omp_target_is_present, omp_target_disassociate_ptr):
7734 Change ptr argument from void * to const void *.
7735 (omp_target_memcpy): Change src argument from void * to const void *.
7736 (omp_target_memcpy_rect): Likewise.
7737 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
7738 instead of char * where needed.
7739 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
7740 from void * to const void *.
7741 (omp_pause_resource, omp_pause_resource_all): New functions.
7742 * task.c (gomp_task_handle_depend): Handle new depend array format
7743 in addition to the old. Handle mutexinoutset kinds the same as
7744 inout for now, handle unspecified kinds.
7745 (gomp_create_target_task): If taskgroup has workshare flag set, check
7746 cancelled on prev taskgroup if any. Guard all cancellation tests with
7747 gomp_cancel_var test. Handle new depend array format count in
7748 addition to the old.
7749 (GOMP_task): Likewise. Adjust function comment.
7750 (gomp_task_run_pre): If taskgroup has workshare flag set, check
7751 cancelled on prev taskgroup if any. Guard all cancellation tests with
7752 gomp_cancel_var test.
7753 (GOMP_taskwait_depend): New function.
7754 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
7755 format in addition to the old. Handle mutexinoutset kinds the same as
7756 inout for now, handle unspecified kinds. Fix a function comment typo.
7757 (gomp_taskgroup_init): New function.
7758 (GOMP_taskgroup_start): Use it.
7759 (gomp_reduction_register, gomp_create_artificial_team,
7760 GOMP_taskgroup_reduction_register,
7761 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7762 gomp_parallel_reduction_register,
7763 gomp_workshare_task_reduction_register,
7764 gomp_workshare_taskgroup_start,
7765 GOMP_workshare_task_reduction_unregister): New functions.
7766 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
7767 check cancelled on prev taskgroup if any. Guard all cancellation
7768 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
7769 by calling GOMP_taskgroup_reduction_register.
7770 * team.c (gomp_thread_attr): Remove comment.
7771 (struct gomp_thread_start_data): Add handle field.
7772 (gomp_thread_start): Call pthread_detach.
7773 (gomp_new_team): Adjust gomp_init_work_share caller.
7774 (gomp_free_pool_helper): Call pthread_detach.
7775 (gomp_team_start): Add taskgroup argument, initialize implicit
7776 tasks' taskgroup field to that. Don't call
7777 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
7778 (gomp_team_end): Determine nesting by thr->ts.level != 0
7779 rather than thr->ts.team != NULL.
7780 (gomp_pause_pool_helper, gomp_pause_host): New functions.
7781 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
7782 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
7783 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
7784 if more than 1 allocate also extra payload at the end of array. Never
7785 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
7786 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
7787 return true instead of ws.
7788 * Makefile.in: Regenerated.
7789 * configure: Regenerated.
7790 * config.h.in: Regenerated.
7791 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
7792 in some cases.
7793 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
7794 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
7795 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
7796 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
7797 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
7798 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
7799 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
7800 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
7801 * testsuite/libgomp.c-c++-common/for-10.c: New test.
7802 * testsuite/libgomp.c-c++-common/for-11.c: New test.
7803 * testsuite/libgomp.c-c++-common/for-12.c: New test.
7804 * testsuite/libgomp.c-c++-common/for-13.c: New test.
7805 * testsuite/libgomp.c-c++-common/for-14.c: New test.
7806 * testsuite/libgomp.c-c++-common/for-15.c: New test.
7807 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
7808 define a different N(test), don't define N(f0) to N(f14), but instead
7809 define N(f20) to N(f34) using != comparisons.
7810 * testsuite/libgomp.c-c++-common/for-7.c: New test.
7811 * testsuite/libgomp.c-c++-common/for-8.c: New test.
7812 * testsuite/libgomp.c-c++-common/for-9.c: New test.
7813 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
7814 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
7815 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
7816 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
7817 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
7818 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
7819 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
7820 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
7821 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
7822 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
7823 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
7824 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
7825 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
7826 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
7827 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
7828 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
7829 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
7830 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
7831 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
7832 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
7833 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
7834 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
7835 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
7836 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
7837 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
7838 * testsuite/libgomp.c++/depend-1.C: New test.
7839 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
7840 * testsuite/libgomp.c++/depobj-1.C: New test.
7841 * testsuite/libgomp.c++/for-16.C: New test.
7842 * testsuite/libgomp.c++/for-21.C: New test.
7843 * testsuite/libgomp.c++/for-22.C: New test.
7844 * testsuite/libgomp.c++/for-23.C: New test.
7845 * testsuite/libgomp.c++/for-24.C: New test.
7846 * testsuite/libgomp.c++/for-25.C: New test.
7847 * testsuite/libgomp.c++/for-26.C: New test.
7848 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
7849 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
7850 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
7851 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
7852 * testsuite/libgomp.c++/task-reduction-10.C: New test.
7853 * testsuite/libgomp.c++/task-reduction-11.C: New test.
7854 * testsuite/libgomp.c++/task-reduction-12.C: New test.
7855 * testsuite/libgomp.c++/task-reduction-13.C: New test.
7856 * testsuite/libgomp.c++/task-reduction-14.C: New test.
7857 * testsuite/libgomp.c++/task-reduction-15.C: New test.
7858 * testsuite/libgomp.c++/task-reduction-16.C: New test.
7859 * testsuite/libgomp.c++/task-reduction-17.C: New test.
7860 * testsuite/libgomp.c++/task-reduction-18.C: New test.
7861 * testsuite/libgomp.c++/task-reduction-19.C: New test.
7862 * testsuite/libgomp.c/task-reduction-1.c: New test.
7863 * testsuite/libgomp.c++/task-reduction-1.C: New test.
7864 * testsuite/libgomp.c/task-reduction-2.c: New test.
7865 * testsuite/libgomp.c++/task-reduction-2.C: New test.
7866 * testsuite/libgomp.c++/task-reduction-3.C: New test.
7867 * testsuite/libgomp.c++/task-reduction-4.C: New test.
7868 * testsuite/libgomp.c++/task-reduction-5.C: New test.
7869 * testsuite/libgomp.c++/task-reduction-6.C: New test.
7870 * testsuite/libgomp.c++/task-reduction-7.C: New test.
7871 * testsuite/libgomp.c++/task-reduction-8.C: New test.
7872 * testsuite/libgomp.c++/task-reduction-9.C: New test.
7873 * testsuite/libgomp.c/teams-1.c: New test.
7874 * testsuite/libgomp.c/teams-2.c: New test.
7875 * testsuite/libgomp.c/thread-limit-4.c: New test.
7876 * testsuite/libgomp.c/thread-limit-5.c: New test.
7877 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
7878
7879 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
7880
7881 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
7882 acc_memcpy_to/from_device functions, now with async parameter.
7883 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
7884 (acc_memcpy_from_device): Likewise.
7885 (acc_memcpy_to_device_async): New API function.
7886 (acc_memcpy_from_device_async): Likewise.
7887 (present_create_copy): Add async parameter and async setting/unsetting.
7888 (acc_create): Adjust present_create_copy call.
7889 (acc_copyin): Likewise.
7890 (acc_present_or_create): Likewise.
7891 (acc_present_or_copyin): Likewise.
7892 (acc_create_async): New API function.
7893 (acc_copyin_async): New API function.
7894 (delete_copyout): Add async parameter and async setting/unsetting.
7895 (acc_delete): Adjust delete_copyout call.
7896 (acc_copyout): Likewise.
7897 (acc_delete_async): New API function.
7898 (acc_copyout_async): Likewise.
7899 (update_dev_host): Add async parameter and async setting/unsetting.
7900 (acc_update_device): Adjust update_dev_host call.
7901 (acc_update_self): Likewise.
7902 (acc_update_device_async): New API function.
7903 (acc_update_self_async): Likewise.
7904 * openacc.h (acc_copyin_async): Declare new API function.
7905 (acc_create_async): Likewise.
7906 (acc_copyout_async): Likewise.
7907 (acc_delete_async): Likewise.
7908 (acc_update_device_async): Likewise.
7909 (acc_update_self_async): Likewise.
7910 (acc_memcpy_to_device_async): Likewise.
7911 (acc_memcpy_from_device_async): Likewise.
7912 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
7913 (acc_copyin_async_64_h): New subroutine.
7914 (acc_copyin_async_array_h): New subroutine.
7915 (acc_create_async_32_h): New subroutine.
7916 (acc_create_async_64_h): New subroutine.
7917 (acc_create_async_array_h): New subroutine.
7918 (acc_copyout_async_32_h): New subroutine.
7919 (acc_copyout_async_64_h): New subroutine.
7920 (acc_copyout_async_array_h): New subroutine.
7921 (acc_delete_async_32_h): New subroutine.
7922 (acc_delete_async_64_h): New subroutine.
7923 (acc_delete_async_array_h): New subroutine.
7924 (acc_update_device_async_32_h): New subroutine.
7925 (acc_update_device_async_64_h): New subroutine.
7926 (acc_update_device_async_array_h): New subroutine.
7927 (acc_update_self_async_32_h): New subroutine.
7928 (acc_update_self_async_64_h): New subroutine.
7929 (acc_update_self_async_array_h): New subroutine.
7930 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
7931 (acc_copyin_async_64_h): New subroutine.
7932 (acc_copyin_async_array_h): New subroutine.
7933 (acc_create_async_32_h): New subroutine.
7934 (acc_create_async_64_h): New subroutine.
7935 (acc_create_async_array_h): New subroutine.
7936 (acc_copyout_async_32_h): New subroutine.
7937 (acc_copyout_async_64_h): New subroutine.
7938 (acc_copyout_async_array_h): New subroutine.
7939 (acc_delete_async_32_h): New subroutine.
7940 (acc_delete_async_64_h): New subroutine.
7941 (acc_delete_async_array_h): New subroutine.
7942 (acc_update_device_async_32_h): New subroutine.
7943 (acc_update_device_async_64_h): New subroutine.
7944 (acc_update_device_async_array_h): New subroutine.
7945 (acc_update_self_async_32_h): New subroutine.
7946 (acc_update_self_async_64_h): New subroutine.
7947 (acc_update_self_async_array_h): New subroutine.
7948 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
7949 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
7950 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
7951 acc_memcpy_to_device_async*, acc_update_device_async*, and
7952 acc_update_self_async* entries.
7953 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
7954 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
7955 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
7956
7957 2018-10-31 Joseph Myers <joseph@codesourcery.com>
7958
7959 PR bootstrap/82856
7960 * Makefile.am: Include multilib.am
7961 (AUTOMAKE_OPTIONS): Add info-in-builddir.
7962 (CLEANFILES): Remove libgomp.info.
7963 * configure.ac: Remove AC_PREREQ.
7964 * testsuite/Makefile.am (RUNTEST): Remove quotes.
7965 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
7966 Regenerate.
7967
7968 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7969 Julian Brown <julian@codesourcery.com>
7970
7971 * testsuite/libgomp.oacc-c++/this.C: New.
7972
7973 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
7974
7975 * plugin/plugin-nvptx.c (struct cuda_map): New.
7976 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
7977 h_tail with (cuda_map *) map.
7978 (cuda_map_create): New function.
7979 (cuda_map_destroy): New function.
7980 (map_init): Update to use a linked list of cuda_map objects.
7981 (map_fini): Likewise.
7982 (map_pop): Likewise.
7983 (map_push): Likewise. Return CUdeviceptr instead of void.
7984 (init_streams_for_device): Remove stales references to ptx_stream
7985 members.
7986 (select_stream_for_async): Likewise.
7987 (nvptx_exec): Update call to map_init.
7988
7989 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
7990 Julian Brown <julian@codesourcery.com>
7991
7992 PR middle-end/86336
7993 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
7994
7995 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
7996 Thomas Koenig <tkoenig@gcc.gnu.org>
7997
7998 PR fortran/25829
7999 * testsuite/libgomp.fortran/async_io_1.f90: New test.
8000 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8001 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8002 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8003 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8004 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8005 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8006
8007 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
8008 Tom de Vries <tdevries@suse.de>
8009
8010 PR target/85590
8011 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
8012 (cuOccupancyMaxPotentialBlockSize): Declare.
8013 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
8014 CUDA_ONE_CALL_MAYBE_NULL.
8015 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
8016 CUoccupancyB2DSize and declare
8017 cuOccupancyMaxPotentialBlockSize.
8018 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
8019 default num_gangs and num_workers when the driver supports it.
8020
8021 2018-08-08 Tom de Vries <tdevries@suse.de>
8022
8023 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
8024 CUDA_ONE_CALL_MAYBE_NULL.
8025 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
8026 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
8027 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
8028 are not found.
8029
8030 2018-08-08 Tom de Vries <tdevries@suse.de>
8031
8032 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
8033 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
8034 present.
8035
8036 2018-08-08 Tom de Vries <tdevries@suse.de>
8037
8038 * plugin/plugin-nvptx.c
8039 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
8040 (nvptx_open_device): Use
8041 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
8042
8043 2018-08-08 Tom de Vries <tdevries@suse.de>
8044
8045 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
8046 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
8047
8048 2018-08-07 Tom de Vries <tdevries@suse.de>
8049
8050 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
8051 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
8052 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
8053 corresponding call in CUDA_ONE_CALL. Add def/undef of
8054 CUDA_ONE_CALL_MAYBE_NULL.
8055 (CUDA_CALL_EXISTS): Define.
8056
8057 2018-08-07 Tom de Vries <tdevries@suse.de>
8058
8059 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
8060 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
8061 corresponding undefs right after.
8062
8063 2018-08-04 Tom de Vries <tdevries@suse.de>
8064
8065 * plugin/configfrag.ac: For --without-cuda-driver, set
8066 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
8067 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
8068 * configure: Regenerate.
8069
8070 2018-08-02 Tom de Vries <tdevries@suse.de>
8071
8072 PR target/86660
8073 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
8074 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
8075 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8076 Same.
8077 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
8078 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
8079 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
8080
8081 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
8082 Thomas Schwinge <thomas@codesourcery.com>
8083
8084 * config/nvptx/oacc-parallel.c: Truncate.
8085
8086 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
8087 James Norris <jnorris@codesourcery.com>
8088
8089 * plugin/plugin-nvptx.c (struct map): Removed.
8090 (map_init, map_pop): Remove use of struct map.
8091 (map_push): Likewise and change argument list.
8092 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
8093
8094 2018-08-01 Tom de Vries <tdevries@suse.de>
8095
8096 * plugin/cuda-lib.def: New file. Factor out of ...
8097 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
8098 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
8099 using CUDA_CALLS.
8100
8101 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
8102
8103 Revert 'AsyncI/O patch committed'.
8104 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
8105 Thomas Koenig <tkoenig@gcc.gnu.org>
8106
8107 PR fortran/25829
8108 * testsuite/libgomp.fortran/async_io_1.f90: New test.
8109 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8110 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8111 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8112 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8113 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8114 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8115
8116 2018-07-30 Tom de Vries <tdevries@suse.de>
8117
8118 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
8119 (nvptx_exec): Ensure worker and vector default dims don't exceed
8120 targ_fn->max_threads_per_block.
8121
8122 2018-07-30 Tom de Vries <tdevries@suse.de>
8123
8124 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
8125 (nvptx_open_device): Init default_dims for device.
8126 (nvptx_exec): Use default_dims from device.
8127
8128 2018-07-26 Jakub Jelinek <jakub@redhat.com>
8129
8130 PR testsuite/86660
8131 * testsuite/libgomp.c++/for-15.C (results): Include it in
8132 omp declare target region.
8133 (main): Use map (always, tofrom: results) instead of
8134 map (tofrom: results).
8135
8136 PR middle-end/86660
8137 * testsuite/libgomp.c/pr86660.c: New test.
8138
8139 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
8140 Tom de Vries <tdevries@suse.de>
8141
8142 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
8143 sufficient resources to launch a kernel, and give a hint on how to fix
8144 it.
8145
8146 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
8147 Tom de Vries <tdevries@suse.de>
8148
8149 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
8150 max_threads_per_block and max_threads_per_multiprocessor fields.
8151 (nvptx_open_device): Initialize new fields.
8152 (nvptx_exec): Use num_sms, and new fields.
8153
8154 2018-07-26 Tom de Vries <tdevries@suse.de>
8155
8156 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
8157 to correct locations. Remove xfail.
8158
8159 2018-07-26 Tom de Vries <tdevries@suse.de>
8160
8161 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
8162 acc_wait. Move acc_async_test calls to correct locations. Remove
8163 xfail.
8164
8165 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
8166 Thomas Koenig <tkoenig@gcc.gnu.org>
8167
8168 PR fortran/25829
8169 * testsuite/libgomp.fortran/async_io_1.f90: New test.
8170 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8171 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8172 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8173 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8174 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8175 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8176
8177 2018-07-17 Jakub Jelinek <jakub@redhat.com>
8178
8179 PR middle-end/86542
8180 * testsuite/libgomp.c++/pr86542.C: New test.
8181
8182 PR middle-end/86539
8183 * testsuite/libgomp.c++/pr86539.C: New test.
8184
8185 2018-07-11 Jakub Jelinek <jakub@redhat.com>
8186
8187 PR c++/86443
8188 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
8189 (results): Make sure the variable is not inside declare target region.
8190 (qux): Remove unused function.
8191
8192 2018-07-10 Jakub Jelinek <jakub@redhat.com>
8193
8194 PR c++/86443
8195 * testsuite/libgomp.c++/for-15.C: New test.
8196
8197 2018-06-26 Jakub Jelinek <jakub@redhat.com>
8198
8199 PR c++/86291
8200 * testsuite/libgomp.c++/pr86291.C: New test.
8201
8202 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
8203
8204 * libgomp.texi (Top): Move www.openmp.org to https.
8205 (Enabling OpenMP): Ditto.
8206 (omp_get_active_level): Ditto.
8207 (omp_get_ancestor_thread_num): Ditto.
8208 (omp_get_cancellation): Ditto.
8209 (omp_get_default_device): Ditto.
8210 (omp_get_dynamic): Ditto.
8211 (omp_get_level): Ditto.
8212 (omp_get_max_active_levels): Ditto.
8213 (omp_get_max_task_priority): Ditto.
8214 (omp_get_max_threads): Ditto.
8215 (omp_get_nested): Ditto.
8216 (omp_get_num_devices): Ditto.
8217 (omp_get_num_procs): Ditto.
8218 (omp_get_num_teams): Ditto.
8219 (omp_get_num_threads): Ditto.
8220 (omp_get_proc_bind): Ditto.
8221 (omp_get_schedule): Ditto.
8222 (omp_get_team_num): Ditto.
8223 (omp_get_team_size): Ditto.
8224 (omp_get_thread_limit): Ditto.
8225 (omp_get_thread_num): Ditto.
8226 (omp_in_parallel): Ditto.
8227 (omp_in_final): Ditto.
8228 (omp_is_initial_device): Ditto.
8229 (omp_set_default_device): Ditto.
8230 (omp_set_dynamic): Ditto.
8231 (omp_set_max_active_levels): Ditto.
8232 (omp_set_nested): Ditto.
8233 (omp_set_num_threads): Ditto.
8234 (omp_set_schedule): Ditto.
8235 (omp_init_lock): Ditto.
8236 (omp_set_lock): Ditto.
8237 (omp_test_lock): Ditto.
8238 (omp_unset_lock): Ditto.
8239 (omp_destroy_lock): Ditto.
8240 (omp_init_nest_lock): Ditto.
8241 (omp_set_nest_lock): Ditto.
8242 (omp_test_nest_lock): Ditto.
8243 (omp_unset_nest_lock): Ditto.
8244 (omp_destroy_nest_lock): Ditto.
8245 (omp_get_wtick): Ditto.
8246 (omp_get_wtime): Ditto.
8247 (OMP_CANCELLATION): Ditto.
8248 (OMP_DISPLAY_ENV): Ditto.
8249 (OMP_DEFAULT_DEVICE): Ditto.
8250 (OMP_DYNAMIC): Ditto.
8251 (OMP_MAX_ACTIVE_LEVELS): Ditto.
8252 (OMP_MAX_TASK_PRIORITY): Ditto.
8253 (OMP_NESTED): Ditto.
8254 (OMP_NUM_THREADS): Ditto.
8255 (OMP_PROC_BIND): Ditto.
8256 (OMP_PLACES): Ditto.
8257 (OMP_STACKSIZE): Ditto.
8258 (OMP_SCHEDULE): Ditto.
8259 (OMP_THREAD_LIMIT): Ditto.
8260 (OMP_WAIT_POLICY): Ditto.
8261
8262 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
8263 James Norris <jnorris@codesourcery.com>
8264 Julian Brown <julian@codesourcery.com>
8265 Thomas Schwinge <thomas@codesourcery.com>
8266 Tom de Vries <tom@codesourcery.com>
8267
8268 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
8269 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
8270 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
8271 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
8272 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8273 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8274 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
8275 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
8276 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
8277 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
8278 Likewise.
8279 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
8280 Likewise.
8281 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
8282 Likewise.
8283 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
8284 Likewise.
8285 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
8286 Likewise.
8287 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
8288 Likewise.
8289 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
8290 Likewise.
8291 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
8292 Likewise.
8293 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
8294 Likewise.
8295 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
8296 Likewise.
8297 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
8298 Likewise.
8299 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
8300 Likewise.
8301 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
8302 Likewise.
8303 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
8304 Likewise.
8305 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
8306 Likewise.
8307 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
8308 Likewise.
8309 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
8310 Likewise.
8311 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
8312 Likewise.
8313 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
8314 Likewise.
8315 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
8316 Likewise.
8317 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
8318 Likewise.
8319 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
8320 Likewise.
8321 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
8322 Likewise.
8323 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
8324 Likewise.
8325 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
8326 Likewise.
8327 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
8328 Likewise.
8329 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
8330 Likewise.
8331 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
8332 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
8333 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
8334 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
8335 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
8336 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
8337 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
8338 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
8339 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8340 Likewise.
8341 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8342 Likewise.
8343 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
8344 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
8345 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
8346 Likewise.
8347 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
8348 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
8349 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8350 Likewise.
8351 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8352 Likewise.
8353 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8354 Likewise.
8355 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8356 Likewise.
8357 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8358 Likewise.
8359 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
8360 Likewise.
8361 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
8362 Likewise.
8363 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
8364 Likewise.
8365 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
8366 Likewise.
8367 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
8368 Likewise.
8369 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
8370 Likewise.
8371 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
8372 Likewise.
8373 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
8374 Likewise.
8375 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
8376 Likewise.
8377 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
8378 Likewise.
8379 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8380 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
8381 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
8382 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
8383 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
8384 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
8385 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
8386
8387 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
8388 Thomas Schwinge <thomas@codesourcery.com>
8389 Cesar Philippidis <cesar@codesourcery.com>
8390
8391 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
8392 (gomp_acc_remove_pointer): Update declaration.
8393 (gomp_acc_declare_allocate): Declare.
8394 (gomp_remove_var): Declare.
8395 * libgomp.map (OACC_2.5): Define.
8396 * oacc-mem.c (acc_map_data): Update refcount.
8397 (acc_unmap_data): Likewise.
8398 (present_create_copy): Likewise.
8399 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
8400 (acc_copyin): Likewise.
8401 (FLAG_FINALIZE): Define.
8402 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
8403 (acc_delete_finalize): New function.
8404 (acc_delete_finalize_async): New function.
8405 (acc_copyout_finalize): New function.
8406 (acc_copyout_finalize_async): New function.
8407 (gomp_acc_insert_pointer): Update refcounts.
8408 (gomp_acc_remove_pointer): Return if data is not present on the
8409 accelerator.
8410 * oacc-parallel.c (find_pset): Rename to find_pointer.
8411 (find_pointer): Add support for GOMP_MAP_POINTER.
8412 (handle_ftn_pointers): New function.
8413 (GOACC_parallel_keyed): Update refcounts of variables.
8414 (GOACC_enter_exit_data): Add support for finalized data mappings.
8415 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
8416 of fortran arrays.
8417 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
8418 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
8419 for GOMP_MAP_FORCE_FROM.
8420 * openacc.f90 (module openacc_internal): Add
8421 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
8422 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
8423 acc_copyout_finalize and acc_delete_finalize.
8424 (acc_copyout_finalize_32_h): New subroutine.
8425 (acc_copyout_finalize_64_h): New subroutine.
8426 (acc_copyout_finalize_array_h): New subroutine.
8427 (acc_delete_finalize_32_h): New subroutine.
8428 (acc_delete_finalize_64_h): New subroutine.
8429 (acc_delete_finalize_array_h): New subroutine.
8430 * openacc.h (acc_copyout_finalize): Declare.
8431 (acc_copyout_finalize_async): Declare.
8432 (acc_delete_finalize): Declare.
8433 (acc_delete_finalize_async): Declare.
8434 * openacc_lib.h (acc_copyout_finalize): New interface.
8435 (acc_delete_finalize): New interface.
8436 * target.c (gomp_map_vars): Update dynamic_refcount.
8437 (gomp_remove_var): New function.
8438 (gomp_unmap_vars): Use it.
8439 (gomp_unload_image_from_device): Likewise.
8440 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
8441 case to utilize OpenACC 2.5 data clause semantics.
8442 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8443 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8444 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8445 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8446 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8447 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8448 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8449 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8450 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8451 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8452 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8453 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
8454 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
8455 utilize OpenACC 2.5 data clause semantics.
8456 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8457 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8458 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8459 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8460 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8461 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8462 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8463 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8464 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8465
8466 2018-05-21 Janus Weil <janus@gcc.gnu.org>
8467
8468 PR fortran/85841
8469 PR testsuite/85865
8470 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
8471 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8472 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8473 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8474 * testsuite/libgomp.fortran/task2.f90: Ditto.
8475 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8476 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8477 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8478 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8479 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8480 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8481 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8482 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
8483 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
8484
8485 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
8486
8487 PR c++/85782
8488 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
8489
8490 2018-05-09 Tom de Vries <tom@codesourcery.com>
8491
8492 PR libgomp/82901
8493 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
8494 to GOACC_enter_exit_data.
8495
8496 2018-05-09 Tom de Vries <tom@codesourcery.com>
8497
8498 PR libgomp/83792
8499 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
8500 (async_synchronous_p): New function.
8501 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
8502 async_valid_p.
8503 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8504 async_valid_stream_id_p.
8505 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
8506 * oacc-parallel.c (GOACC_parallel_keyed): Same.
8507
8508 2018-05-07 Tom de Vries <tom@codesourcery.com>
8509
8510 PR testsuite/85677
8511 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
8512 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
8513
8514 2018-05-03 Tom de Vries <tom@codesourcery.com>
8515
8516 PR testsuite/85106
8517 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
8518 extra_tool_flags if it contains an -foffload=-fdump-* flag.
8519 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
8520 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
8521
8522 2018-05-02 Tom de Vries <tom@codesourcery.com>
8523
8524 PR libgomp/85411
8525 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
8526 GOMP_OPENACC_DIM ...
8527 * env.c (parse_gomp_openacc_dim): ... here. New function.
8528 (initialize_env): Call parse_gomp_openacc_dim.
8529 (goacc_default_dims): Define.
8530 * libgomp.h (goacc_default_dims): Declare.
8531 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
8532 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
8533 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
8534 GOMP_PLUGIN_acc_default_dim.
8535 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
8536 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
8537
8538 2018-05-02 Tom de Vries <tom@codesourcery.com>
8539
8540 PR testsuite/83791
8541 * testsuite/libgomp.c++/udr-9.C: Update.
8542 * testsuite/libgomp.c++/atomic-16.C: Remove.
8543 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
8544 * testsuite/libgomp.c++/loop-13.C: Remove.
8545 * testsuite/libgomp.c++/loop-14.C: Remove.
8546 * testsuite/libgomp.c++/loop-15.C: Remove.
8547 * testsuite/libgomp.c++/monotonic-1.C: Remove.
8548 * testsuite/libgomp.c++/monotonic-2.C: Remove.
8549 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
8550 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
8551 * testsuite/libgomp.c++/ordered-1.C: Remove.
8552 * testsuite/libgomp.c++/pr45784.C: Remove.
8553 * testsuite/libgomp.c++/pr64824.C: Remove.
8554 * testsuite/libgomp.c++/pr64868.C: Remove.
8555 * testsuite/libgomp.c++/pr66199-1.C: Remove.
8556 * testsuite/libgomp.c++/pr66199-2.C: Remove.
8557 * testsuite/libgomp.c++/pr66199-3.C: Remove.
8558 * testsuite/libgomp.c++/pr66199-4.C: Remove.
8559 * testsuite/libgomp.c++/pr66199-5.C: Remove.
8560 * testsuite/libgomp.c++/pr66199-6.C: Remove.
8561 * testsuite/libgomp.c++/pr66199-7.C: Remove.
8562 * testsuite/libgomp.c++/pr66199-8.C: Remove.
8563 * testsuite/libgomp.c++/pr66199-9.C: Remove.
8564 * testsuite/libgomp.c++/pr69389.C: Remove.
8565 * testsuite/libgomp.c++/simd10.C: Remove.
8566 * testsuite/libgomp.c++/simd11.C: Remove.
8567 * testsuite/libgomp.c++/simd12.C: Remove.
8568 * testsuite/libgomp.c++/simd13.C: Remove.
8569 * testsuite/libgomp.c++/target-1.C: Remove.
8570 * testsuite/libgomp.c++/target-3.C: Remove.
8571 * testsuite/libgomp.c++/target-4.C: Remove.
8572 * testsuite/libgomp.c++/target-5.C: Remove.
8573 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
8574 * testsuite/libgomp.c++/taskloop-1.C: Remove.
8575 * testsuite/libgomp.c++/taskloop-2.C: Remove.
8576 * testsuite/libgomp.c++/taskloop-3.C: Remove.
8577 * testsuite/libgomp.c++/taskloop-4.C: Remove.
8578 * testsuite/libgomp.c++/udr-9.C: Remove.
8579 * testsuite/libgomp.c++/for-10.C: Remove.
8580 * testsuite/libgomp.c++/for-11.C: Remove.
8581 * testsuite/libgomp.c++/for-12.C: Remove.
8582 * testsuite/libgomp.c++/for-13.C: Remove.
8583 * testsuite/libgomp.c++/for-14.C: Remove.
8584 * testsuite/libgomp.c++/for-9.C: Remove.
8585 * testsuite/libgomp.c/atomic-18.c: Move ...
8586 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
8587 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
8588 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
8589 * testsuite/libgomp.c/loop-13.c: Move ...
8590 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
8591 * testsuite/libgomp.c/loop-14.c: Move ...
8592 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
8593 * testsuite/libgomp.c/loop-15.c: Remove.
8594 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
8595 * testsuite/libgomp.c/monotonic-1.c: Move ...
8596 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
8597 * testsuite/libgomp.c/monotonic-2.c: Move ...
8598 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
8599 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
8600 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
8601 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
8602 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
8603 * testsuite/libgomp.c/ordered-4.c: Move ...
8604 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
8605 * testsuite/libgomp.c/pr45784.c: Move ...
8606 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
8607 * testsuite/libgomp.c/pr64824.c: Move ...
8608 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
8609 * testsuite/libgomp.c/pr64868.c: Move ...
8610 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
8611 * testsuite/libgomp.c/pr66199-1.c: Move ...
8612 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
8613 * testsuite/libgomp.c/pr66199-2.c: Move ...
8614 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
8615 * testsuite/libgomp.c/pr66199-3.c: Move ...
8616 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
8617 * testsuite/libgomp.c/pr66199-4.c: Move ...
8618 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
8619 * testsuite/libgomp.c/pr66199-5.c: Move ...
8620 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
8621 * testsuite/libgomp.c/pr66199-6.c: Move ...
8622 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
8623 * testsuite/libgomp.c/pr66199-7.c: Move ...
8624 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
8625 * testsuite/libgomp.c/pr66199-8.c: Move ...
8626 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
8627 * testsuite/libgomp.c/pr66199-9.c: Move ...
8628 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
8629 * testsuite/libgomp.c/pr69389.c: Move ...
8630 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
8631 * testsuite/libgomp.c/simd-14.c: Move ...
8632 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
8633 * testsuite/libgomp.c/simd-15.c: Move ...
8634 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
8635 * testsuite/libgomp.c/simd-16.c: Move ...
8636 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
8637 * testsuite/libgomp.c/simd-17.c: Move ...
8638 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
8639 * testsuite/libgomp.c/target-1.c: Move ...
8640 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
8641 * testsuite/libgomp.c/target-10.c: Move ...
8642 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
8643 * testsuite/libgomp.c/target-13.c: Move ...
8644 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
8645 * testsuite/libgomp.c/target-2.c: Move ...
8646 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
8647 * testsuite/libgomp.c/taskgroup-1.c: Move ...
8648 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
8649 * testsuite/libgomp.c/taskloop-1.c: Move ...
8650 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
8651 * testsuite/libgomp.c/taskloop-2.c: Move ...
8652 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
8653 * testsuite/libgomp.c/taskloop-3.c: Move ...
8654 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
8655 * testsuite/libgomp.c/taskloop-4.c: Move ...
8656 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
8657 * testsuite/libgomp.c/udr-1.c: Move ...
8658 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
8659 * testsuite/libgomp.c/for-1.c: Move ...
8660 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
8661 * testsuite/libgomp.c/for-1.h: Move ...
8662 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
8663 * testsuite/libgomp.c/for-2.c: Move ...
8664 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
8665 * testsuite/libgomp.c/for-2.h: Move ...
8666 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
8667 * testsuite/libgomp.c/for-3.c: Move ...
8668 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
8669 * testsuite/libgomp.c/for-4.c: Move ...
8670 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
8671 * testsuite/libgomp.c/for-5.c: Move ...
8672 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
8673 * testsuite/libgomp.c/for-6.c: Move ...
8674 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
8675
8676 2018-05-02 Tom de Vries <tom@codesourcery.com>
8677
8678 PR libgomp/82428
8679 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
8680 __builtin_goacc_parlevel_{id,size}.
8681 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
8682 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
8683 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
8684 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
8685 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
8686 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
8687 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
8688 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
8689 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
8690 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
8691 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
8692 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
8693 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
8694 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
8695 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
8696 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
8697 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
8698 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
8699 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
8700 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
8701 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
8702 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
8703 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
8704
8705 2018-05-02 Tom de Vries <tom@codesourcery.com>
8706
8707 PR testsuite/85106
8708 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
8709
8710 2018-05-02 Tom de Vries <tom@codesourcery.com>
8711
8712 PR testsuite/85106
8713 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
8714
8715 2018-04-29 Julian Brown <julian@codesourcery.com>
8716 Tom de Vries <tom@codesourcery.com>
8717
8718 PR testsuite/85527
8719 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
8720 arbitrary order for iterations of atomic subtract check.
8721
8722 2018-04-28 Tom de Vries <tom@codesourcery.com>
8723
8724 PR testsuite/85527
8725 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
8726 atomic capture results obtained in parallel loop to an array, instead of
8727 to a scalar.
8728
8729 2018-04-26 Tom de Vries <tom@codesourcery.com>
8730
8731 PR libgomp/84020
8732 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
8733 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
8734 (process_GOMP_NVPTX_JIT): New function.
8735 (link_ptx): Use process_GOMP_NVPTX_JIT.
8736
8737 2018-04-26 Richard Biener <rguenther@suse.de>
8738 Tom de Vries <tom@codesourcery.com>
8739
8740 PR lto/85422
8741 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
8742
8743 2018-04-26 Tom de Vries <tom@codesourcery.com>
8744
8745 PR target/85519
8746 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
8747 recursion depth from 25 to 23.
8748 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
8749
8750 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
8751
8752 * configure: Regenerated.
8753
8754 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
8755 Tom de Vries <tom@codesourcery.com>
8756
8757 PR target/85445
8758 * testsuite/libgomp.oacc-c++/ref-1.C: New.
8759
8760 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
8761
8762 PR libgomp/85463
8763 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
8764 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8765 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8766 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
8767 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
8768 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
8769
8770 PR libfortran/85166
8771 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
8772 abort".
8773 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8774
8775 2018-04-19 Jakub Jelinek <jakub@redhat.com>
8776
8777 * configure: Regenerated.
8778
8779 2018-04-18 David Malcolm <dmalcolm@redhat.com>
8780
8781 PR jit/85384
8782 * configure: Regenerate.
8783
8784 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
8785 Tom de Vries <tom@codesourcery.com>
8786
8787 PR middle-end/84955
8788 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8789 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8790
8791 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8792
8793 PR fortran/83064
8794 PR testsuite/85346
8795 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
8796 test from gfortran.dg to here.
8797
8798 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
8799
8800 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
8801 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
8802
8803 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
8804
8805 PR middle-end/84955
8806 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8807 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8808
8809 2018-04-05 Tom de Vries <tom@codesourcery.com>
8810
8811 PR target/85204
8812 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
8813
8814 2018-03-26 Tom de Vries <tom@codesourcery.com>
8815
8816 PR tree-optimization/85063
8817 * testsuite/libgomp.c/switch-conversion-2.c: New test.
8818 * testsuite/libgomp.c/switch-conversion.c: New test.
8819 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
8820 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
8821
8822 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
8823
8824 PR fortran/84381
8825 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
8826 call abort by STOP n.
8827 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
8828 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
8829 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
8830 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
8831 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
8832 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
8833 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
8834 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
8835 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
8836 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
8837 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
8838 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
8839 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
8840 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
8841 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
8842 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
8843 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
8844 * testsuite/libgomp.fortran/associate1.f90: Likewise.
8845 * testsuite/libgomp.fortran/associate2.f90: Likewise.
8846 * testsuite/libgomp.fortran/associate3.f90: Likewise.
8847 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
8848 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
8849 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
8850 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
8851 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
8852 * testsuite/libgomp.fortran/character1.f90: Likewise.
8853 * testsuite/libgomp.fortran/character2.f90: Likewise.
8854 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
8855 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
8856 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
8857 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
8858 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
8859 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
8860 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
8861 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
8862 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
8863 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
8864 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
8865 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
8866 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
8867 * testsuite/libgomp.fortran/do1.f90: Likewise.
8868 * testsuite/libgomp.fortran/do2.f90: Likewise.
8869 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
8870 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
8871 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
8872 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
8873 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
8874 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
8875 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8876 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
8877 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
8878 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
8879 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
8880 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
8881 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8882 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
8883 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
8884 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
8885 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
8886 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
8887 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
8888 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
8889 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
8890 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
8891 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
8892 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
8893 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
8894 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
8895 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
8896 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8897 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
8898 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
8899 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
8900 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
8901 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
8902 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8903 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8904 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
8905 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
8906 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
8907 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
8908 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
8909 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
8910 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
8911 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
8912 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
8913 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
8914 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
8915 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
8916 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
8917 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
8918 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8919 * testsuite/libgomp.fortran/lib2.f: Likewise.
8920 * testsuite/libgomp.fortran/lib3.f: Likewise.
8921 * testsuite/libgomp.fortran/lib4.f90: Likewise.
8922 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
8923 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
8924 * testsuite/libgomp.fortran/nested1.f90: Likewise.
8925 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
8926 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
8927 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
8928 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
8929 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
8930 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
8931 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
8932 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
8933 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
8934 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
8935 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
8936 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
8937 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
8938 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
8939 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
8940 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
8941 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
8942 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
8943 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
8944 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8945 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
8946 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
8947 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
8948 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
8949 * testsuite/libgomp.fortran/pr25162.f: Likewise.
8950 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
8951 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
8952 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
8953 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
8954 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
8955 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
8956 * testsuite/libgomp.fortran/pr28390.f: Likewise.
8957 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
8958 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
8959 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
8960 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
8961 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
8962 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
8963 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
8964 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
8965 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
8966 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
8967 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
8968 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
8969 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
8970 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
8971 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
8972 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
8973 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
8974 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
8975 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
8976 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
8977 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
8978 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
8979 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
8980 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
8981 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
8982 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
8983 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
8984 * testsuite/libgomp.fortran/reference1.f90: Likewise.
8985 * testsuite/libgomp.fortran/reference2.f90: Likewise.
8986 * testsuite/libgomp.fortran/retval1.f90: Likewise.
8987 * testsuite/libgomp.fortran/retval2.f90: Likewise.
8988 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
8989 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
8990 * testsuite/libgomp.fortran/simd1.f90: Likewise.
8991 * testsuite/libgomp.fortran/simd2.f90: Likewise.
8992 * testsuite/libgomp.fortran/simd3.f90: Likewise.
8993 * testsuite/libgomp.fortran/simd4.f90: Likewise.
8994 * testsuite/libgomp.fortran/simd5.f90: Likewise.
8995 * testsuite/libgomp.fortran/simd6.f90: Likewise.
8996 * testsuite/libgomp.fortran/simd7.f90: Likewise.
8997 * testsuite/libgomp.fortran/stack.f90: Likewise.
8998 * testsuite/libgomp.fortran/strassen.f90: Likewise.
8999 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
9000 * testsuite/libgomp.fortran/tabs2.f: Likewise.
9001 * testsuite/libgomp.fortran/target1.f90: Likewise.
9002 * testsuite/libgomp.fortran/target2.f90: Likewise.
9003 * testsuite/libgomp.fortran/target3.f90: Likewise.
9004 * testsuite/libgomp.fortran/target4.f90: Likewise.
9005 * testsuite/libgomp.fortran/target5.f90: Likewise.
9006 * testsuite/libgomp.fortran/target6.f90: Likewise.
9007 * testsuite/libgomp.fortran/target7.f90: Likewise.
9008 * testsuite/libgomp.fortran/target8.f90: Likewise.
9009 * testsuite/libgomp.fortran/task1.f90: Likewise.
9010 * testsuite/libgomp.fortran/task2.f90: Likewise.
9011 * testsuite/libgomp.fortran/task3.f90: Likewise.
9012 * testsuite/libgomp.fortran/task4.f90: Likewise.
9013 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
9014 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
9015 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
9016 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
9017 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
9018 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
9019 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
9020 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
9021 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
9022 * testsuite/libgomp.fortran/udr1.f90: Likewise.
9023 * testsuite/libgomp.fortran/udr10.f90: Likewise.
9024 * testsuite/libgomp.fortran/udr11.f90: Likewise.
9025 * testsuite/libgomp.fortran/udr12.f90: Likewise.
9026 * testsuite/libgomp.fortran/udr13.f90: Likewise.
9027 * testsuite/libgomp.fortran/udr14.f90: Likewise.
9028 * testsuite/libgomp.fortran/udr15.f90: Likewise.
9029 * testsuite/libgomp.fortran/udr2.f90: Likewise.
9030 * testsuite/libgomp.fortran/udr3.f90: Likewise.
9031 * testsuite/libgomp.fortran/udr4.f90: Likewise.
9032 * testsuite/libgomp.fortran/udr5.f90: Likewise.
9033 * testsuite/libgomp.fortran/udr6.f90: Likewise.
9034 * testsuite/libgomp.fortran/udr7.f90: Likewise.
9035 * testsuite/libgomp.fortran/udr8.f90: Likewise.
9036 * testsuite/libgomp.fortran/udr9.f90: Likewise.
9037 * testsuite/libgomp.fortran/vla1.f90: Likewise.
9038 * testsuite/libgomp.fortran/vla2.f90: Likewise.
9039 * testsuite/libgomp.fortran/vla3.f90: Likewise.
9040 * testsuite/libgomp.fortran/vla4.f90: Likewise.
9041 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9042 * testsuite/libgomp.fortran/vla6.f90: Likewise.
9043 * testsuite/libgomp.fortran/vla7.f90: Likewise.
9044 * testsuite/libgomp.fortran/vla8.f90: Likewise.
9045 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
9046 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
9047 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9048 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
9049 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9050 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9051 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9052 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
9053 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
9054 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
9055 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9056 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
9057 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9058 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
9059 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
9060 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
9061 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
9062 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
9063 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
9064 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
9065 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
9066 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
9067 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
9068 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
9069 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
9070 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
9071 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
9072 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
9073 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9074 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
9075 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
9076 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9077 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9078 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9079 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9080 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9081 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
9082 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
9083 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
9084 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
9085 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
9086 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
9087 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
9088 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
9089 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
9090 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
9091 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
9092 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
9093 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
9094 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
9095 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
9096 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
9097 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
9098 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9099 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
9100 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
9101 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
9102 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
9103 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
9104 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
9105 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
9106 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
9107 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
9108 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
9109 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9110 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9111 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
9112 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9113 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
9114 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9115 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
9116 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
9117 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
9118 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
9119 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
9120 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9121 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9122 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9123 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9124 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9125 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9126 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9127 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
9128 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
9129 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9130 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9131 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9132 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9133 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
9134 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
9135 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
9136 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9137 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9138 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
9139
9140 2018-03-20 Richard Biener <rguenther@suse.de>
9141
9142 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
9143 parallelizable loop.
9144
9145 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9146
9147 PR target/84148
9148 * configure: Regenerate.
9149
9150 2018-02-16 Jakub Jelinek <jakub@redhat.com>
9151
9152 PR fortran/84418
9153 * libgomp.fortran/pr84418-1.f90: New test.
9154 * libgomp.fortran/pr84418-2.f90: New test.
9155
9156 2018-02-14 Jakub Jelinek <jakub@redhat.com>
9157
9158 PR fortran/84313
9159 * testsuite/libgomp.fortran/threadprivate4.f90: Add
9160 -std=f2003 -fall-intrinsics into dg-additional-options.
9161
9162 2018-02-08 Martin Jambor <mjambor@suse.cz>
9163
9164 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
9165 clonable.
9166
9167 2018-02-08 Martin Jambor <mjambor@suse.cz>
9168
9169 * testsuite/libgomp.hsa.c/staticvar.c: New test.
9170
9171 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9172
9173 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
9174 [__cplusplus]: Declare extern "C".
9175
9176 2018-02-07 Tom de Vries <tom@codesourcery.com>
9177
9178 PR libgomp/84217
9179 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
9180
9181 2018-01-29 Christoph Spiel <cspiel@freenet.de>
9182 Jakub Jelinek <jakub@redhat.com>
9183
9184 PR libgomp/84096
9185 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
9186 instead of omp_lock_t.
9187
9188 2018-01-25 Tom de Vries <tom@codesourcery.com>
9189
9190 PR target/84028
9191 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
9192
9193 2018-01-24 Tom de Vries <tom@codesourcery.com>
9194
9195 PR target/83589
9196 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
9197
9198 2018-01-24 Tom de Vries <tom@codesourcery.com>
9199
9200 PR target/81352
9201 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
9202
9203 2018-01-19 Tom de Vries <tom@codesourcery.com>
9204 Cesar Philippidis <cesar@codesourcery.com>
9205
9206 PR target/83920
9207 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
9208 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
9209
9210 2018-01-03 Jakub Jelinek <jakub@redhat.com>
9211
9212 Update copyright years.
9213
9214 * libgomp.texi: Bump @copying's copyright year.
9215
9216 2017-12-30 Tom de Vries <tom@codesourcery.com>
9217
9218 PR libgomp/83046
9219 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
9220 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
9221
9222 2017-12-27 Tom de Vries <tom@codesourcery.com>
9223
9224 PR c++/83046
9225 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
9226 (test_nonstatic): Fix return type to workaround PR83046.
9227
9228 2017-12-05 Jakub Jelinek <jakub@redhat.com>
9229
9230 PR testsuite/83281
9231 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
9232 j suffix instead of i.
9233 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
9234 Likewise.
9235
9236 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
9237
9238 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
9239 call to acc_wait (1).
9240
9241 2017-11-24 Jakub Jelinek <jakub@redhat.com>
9242
9243 PR fortran/81304
9244 * testsuite/libgomp.fortran/pr81304.f90: New test.
9245
9246 2017-11-23 Jakub Jelinek <jakub@redhat.com>
9247
9248 PR fortran/81841
9249 * libgomp.fortran/pr81841.f90: New test.
9250
9251 2017-11-22 Jakub Jelinek <jakub@redhat.com>
9252
9253 PR libgomp/83106
9254 * target.c (gomp_target_init): Compute lengths just once and
9255 use them in both malloc size and subsequent copying.
9256
9257 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9258
9259 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
9260 * acinclude.m4: Add cet.m4.
9261 * configure: Regenerate.
9262 * Makefile.in: Likewise.
9263 * testsuite/Makefile.in: Likewise.
9264
9265 2017-11-15 Tom de Vries <tom@codesourcery.com>
9266
9267 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
9268 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
9269 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
9270 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
9271 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
9272 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
9273
9274 2017-11-14 Tom de Vries <tom@codesourcery.com>
9275
9276 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
9277 non-nvidia devices.
9278
9279 2017-11-07 Jakub Jelinek <jakub@redhat.com>
9280
9281 PR c++/82835
9282 * testsuite/libgomp.c++/pr82835.C: New test.
9283
9284 2017-11-06 Martin Liska <mliska@suse.cz>
9285
9286 * testsuite/libgomp.c++/loop-2.C: Return a value
9287 for functions with non-void return type, or change type to void,
9288 or add -Wno-return-type for test.
9289 * testsuite/libgomp.c++/loop-4.C: Likewise.
9290 * testsuite/libgomp.c++/parallel-1.C: Likewise.
9291 * testsuite/libgomp.c++/shared-1.C: Likewise.
9292 * testsuite/libgomp.c++/single-1.C: Likewise.
9293 * testsuite/libgomp.c++/single-2.C: Likewise.
9294
9295 2017-10-31 Tom de Vries <tom@codesourcery.com>
9296
9297 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
9298 "do {} while (false)".
9299 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
9300 after HSA_DEBUG call.
9301
9302 2017-10-28 Jakub Jelinek <jakub@redhat.com>
9303
9304 * target.c (struct gomp_coalesce_buf): New type.
9305 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
9306 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
9307 (gomp_copy_host2dev): Add CBUF argument, if copying into
9308 the cached ranges, memcpy into buffer instead of copying
9309 into device.
9310 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
9311 Add CBUF argument, pass it through to other calls.
9312 (gomp_map_vars): Aggregate copies from host to device if small enough
9313 and with small enough gaps in between into memcpy into a buffer and
9314 fewer host to device copies from the buffer.
9315 (gomp_update): Adjust gomp_copy_host2dev caller.
9316
9317 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
9318
9319 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
9320 run" directive.
9321 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9322 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9323 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9324 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9325
9326 2017-10-16 Tom de Vries <tom@codesourcery.com>
9327
9328 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
9329 openacc_nvidia_accel_selected.
9330 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
9331 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
9332 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
9333 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
9334 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
9335 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
9336 openacc_nvidia_accel_selected. Skip for shared memory device.
9337 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
9338 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
9339
9340 2017-10-09 Martin Jambor <mjambor@suse.cz>
9341
9342 PR hsa/82416
9343 * testsuite/libgomp.hsa.c/pr82416.c: New test.
9344
9345 2017-10-07 Tom de Vries <tom@codesourcery.com>
9346
9347 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
9348 Remove acc_device_nvidia references.
9349 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
9350 Same.
9351
9352 2017-10-05 Tom de Vries <tom@codesourcery.com>
9353
9354 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
9355 vector_length(32) clause from acc parallel directive.
9356 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
9357
9358 2017-10-04 Tom de Vries <tom@codesourcery.com>
9359
9360 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
9361 (main): Reduce sum of arr elements. Assert that hres is exactly
9362 representable in 32-bit floating point.
9363 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
9364 (main): Reduce sum of arr elements. Assert that hres and hmres are
9365 exactly representable in 32-bit floating point.
9366 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
9367
9368 2017-09-28 Tom de Vries <tom@codesourcery.com>
9369
9370 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
9371 setting.
9372 * testsuite/libgomp.c++/pr69393.C: Same.
9373 * testsuite/libgomp.c++/taskloop-1.C: Same.
9374 * testsuite/libgomp.c++/taskloop-3.C: Same.
9375 * testsuite/libgomp.c++/taskloop-4.C: Same.
9376 * testsuite/libgomp.c/for-4.c: Same.
9377 * testsuite/libgomp.c/pr66199-3.c: Same.
9378 * testsuite/libgomp.c/pr66199-4.c: Same.
9379 * testsuite/libgomp.c/pr66199-6.c: Same.
9380 * testsuite/libgomp.c/taskloop-1.c: Same.
9381 * testsuite/libgomp.c/taskloop-3.c: Same.
9382 * testsuite/libgomp.c/taskloop-4.c: Same.
9383 * testsuite/libgomp.fortran/aligned1.f03: Same.
9384 * testsuite/libgomp.fortran/condinc1.f: Same.
9385 * testsuite/libgomp.fortran/condinc3.f90: Same.
9386 * testsuite/libgomp.fortran/crayptr1.f90: Same.
9387 * testsuite/libgomp.fortran/crayptr2.f90: Same.
9388 * testsuite/libgomp.fortran/crayptr3.f90: Same.
9389 * testsuite/libgomp.fortran/omp_cond1.f: Same.
9390 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
9391 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
9392 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
9393 * testsuite/libgomp.fortran/recursion1.f90: Same.
9394 * testsuite/libgomp.fortran/target2.f90: Same.
9395 * testsuite/libgomp.fortran/target5.f90: Same.
9396 * testsuite/libgomp.fortran/task3.f90: Same.
9397
9398 2017-09-28 Tom de Vries <tom@codesourcery.com>
9399
9400 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
9401 vector_length(32) clause from acc parallel directive.
9402 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
9403
9404 2017-09-27 Tom de Vries <tom@codesourcery.com>
9405
9406 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
9407 Remove acc_device_nvidia references.
9408
9409 2017-09-16 Tom de Vries <tom@codesourcery.com>
9410
9411 PR c/81875
9412 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
9413
9414 2017-09-14 Tom de Vries <tom@codesourcery.com>
9415
9416 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
9417 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
9418 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
9419 * testsuite/libgomp.c/c.exp: Include test-cases from
9420 libgomp.c-c++-common.
9421 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
9422 files.
9423
9424 2017-09-14 Jakub Jelinek <jakub@redhat.com>
9425
9426 PR c++/81314
9427 * testsuite/libgomp.c++/pr81314.C: New test.
9428
9429 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
9430
9431 * libgomp.texi (Top): www.openacc.org now uses https.
9432 (Enabling OpenACC): Ditto.
9433 (acc_get_num_devices): Ditto.
9434 (acc_set_device_type): Ditto.
9435 (acc_get_device_type): Ditto.
9436 (acc_set_device_num): Ditto.
9437 (acc_get_device_num): Ditto.
9438 (acc_async_test): Ditto.
9439 (acc_async_test_all): Ditto.
9440 (acc_wait): Ditto.
9441 (acc_wait_all): Ditto.
9442 (acc_wait_all_async): Ditto.
9443 (acc_wait_async): Ditto.
9444 (acc_init): Ditto.
9445 (acc_shutdown): Ditto.
9446 (acc_on_device): Ditto.
9447 (acc_malloc): Ditto.
9448 (acc_free): Ditto.
9449 (acc_copyin): Ditto.
9450 (acc_present_or_copyin): Ditto.
9451 (acc_create): Ditto.
9452 (acc_present_or_create): Ditto.
9453 (acc_copyout): Ditto.
9454 (acc_delete): Ditto.
9455 (acc_update_device): Ditto.
9456 (acc_update_self): Ditto.
9457 (acc_map_data): Ditto.
9458 (acc_unmap_data): Ditto.
9459 (acc_deviceptr): Ditto.
9460 (acc_hostptr): Ditto.
9461 (acc_is_present): Ditto.
9462 (acc_memcpy_to_device): Ditto.
9463 (acc_memcpy_from_device): Ditto.
9464 (acc_get_current_cuda_device): Ditto.
9465 (acc_get_current_cuda_context): Ditto.
9466 (acc_get_cuda_stream): Ditto.
9467 (acc_set_cuda_stream): Ditto.
9468 (ACC_DEVICE_TYPE): Ditto.
9469 (ACC_DEVICE_NUM): Ditto.
9470 (OpenACC Library Interoperability): Ditto.
9471
9472 2017-08-09 Jakub Jelinek <jakub@redhat.com>
9473
9474 PR c/81687
9475 * testsuite/libgomp.c/pr81687-1.c: New test.
9476 * testsuite/libgomp.c/pr81687-2.c: New test.
9477
9478 2017-08-07 Jakub Jelinek <jakub@redhat.com>
9479
9480 PR c/69389
9481 * testsuite/libgomp.c/pr69389.c: New test.
9482 * testsuite/libgomp.c++/pr69389.C: New test.
9483
9484 2017-08-07 Tom de Vries <tom@codesourcery.com>
9485
9486 PR middle-end/78266
9487 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
9488 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
9489
9490 2017-07-27 Jakub Jelinek <jakub@redhat.com>
9491
9492 PR c/45784
9493 * testsuite/libgomp.c/pr45784.c: New test.
9494 * testsuite/libgomp.c++/pr45784.C: New test.
9495
9496 2017-07-19 Tom de Vries <tom@codesourcery.com>
9497
9498 * testsuite/libgomp.oacc-c/vec.c: New test.
9499
9500 2017-07-03 Tom de Vries <tom@codesourcery.com>
9501
9502 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
9503
9504 2017-06-27 Tom de Vries <tom@codesourcery.com>
9505
9506 * plugin/plugin-nvptx.c (notify_var): New function.
9507 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
9508
9509 2017-06-27 Tom de Vries <tom@codesourcery.com>
9510
9511 * env.c (parse_unsigned_long_1): Factor out of ...
9512 (parse_unsigned_long): ... here.
9513 (parse_int_1): Factor out of ...
9514 (parse_int): ... here.
9515 (parse_int_secure): New function.
9516 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
9517 * secure_getenv.h: Factor out of ...
9518 * plugin/plugin-hsa.c: ... here.
9519 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
9520
9521 2017-06-21 Jakub Jelinek <jakub@redhat.com>
9522
9523 PR c++/81130
9524 * testsuite/libgomp.c++/pr81130.C: New test.
9525
9526 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9527
9528 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
9529 default args.
9530 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
9531 dg-xfail-run-if default args.
9532
9533 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9534
9535 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
9536 * testsuite/libgomp.c/pr39591-3.c: Likewise.
9537
9538 2017-05-30 Jakub Jelinek <jakub@redhat.com>
9539
9540 PR libgomp/80822
9541 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
9542 (gomp_affinity_init_level): Use it. Always analyze the core and thread
9543 sibling lists, depending on level just pick up what CPUs to put
9544 together into a place vs. whether add multiple ordered places.
9545
9546 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
9547
9548 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
9549 * libgomp.map (OACC_2.0.1): Add these.
9550 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
9551 for "acc_wait", and "acc_wait_all", respectively.
9552 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
9553 for "acc_wait", and "acc_wait_all", respectively.
9554 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
9555 * libgomp.texi (acc_wait, acc_wait_all): Update.
9556 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
9557 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
9558 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9559
9560 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
9561 acc_present_or_copyin and acc_present_or_create procedures,
9562 respectively.
9563 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
9564 generally different variants of OpenACC Runtime Library functions.
9565 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9566
9567 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
9568 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9569
9570 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
9571 of preprocessor definitions.
9572 * libgomp.h (strong_alias): Guard by "#ifdef
9573 HAVE_ATTRIBUTE_ALIAS".
9574 * oacc-mem.c: Provide "acc_pcreate" as alias for
9575 "acc_present_or_create", and "acc_pcopyin" as alias for
9576 "acc_present_or_copyin".
9577 * libgomp.map: New version "OACC_2.0.1".
9578 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
9579 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
9580 its content into...
9581 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
9582 Extend testing.
9583
9584 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
9585 when disabling nvptx offloading.
9586
9587 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
9588
9589 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
9590 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
9591 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
9592
9593 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
9594 * testsuite/lib/libgomp.exp
9595 (check_effective_target_openacc_nvidia_accel_configured): New
9596 proc.
9597 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
9598 (check_effective_target_c++): New procs.
9599 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
9600 (check_effective_target_c++): Likewise.
9601
9602 2017-05-22 Jakub Jelinek <jakub@redhat.com>
9603
9604 PR middle-end/80809
9605 * testsuite/libgomp.c/pr80809-2.c: New test.
9606 * testsuite/libgomp.c/pr80809-3.c: New test.
9607
9608 PR middle-end/80809
9609 * testsuite/libgomp.c/pr80809-1.c: New test.
9610
9611 PR middle-end/80853
9612 * testsuite/libgomp.c/pr80853.c: New test.
9613
9614 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
9615
9616 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
9617 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
9618 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9619 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9620 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
9621
9622 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
9623 Debug output for failure.
9624
9625 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9626
9627 * testsuite/lib/libgomp.exp: Load scanlang.exp.
9628
9629 2017-04-27 Jakub Jelinek <jakub@redhat.com>
9630
9631 PR bootstrap/80531
9632 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
9633 bootstrap compare failures.
9634
9635 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
9636
9637 * testsuite/libgomp.c/target-36.c: New testcase.
9638
9639 2017-04-13 Jakub Jelinek <jakub@redhat.com>
9640
9641 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
9642 instead of char.
9643
9644 2017-04-11 Jakub Jelinek <jakub@redhat.com>
9645
9646 PR libgomp/80394
9647 * testsuite/libgomp.c/pr80394.c: New test.
9648
9649 2017-04-04 Jakub Jelinek <jakub@redhat.com>
9650
9651 PR libgomp/79876
9652 * config/posix/thread-stacksize.h: New file.
9653 * config/darwin/thread-stacksize.h: New file.
9654 * config/nvptx/thread-stacksize.h: New file.
9655 * env.c: Include thread-stacksize.h.
9656 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
9657 instead of 0. Call pthread_attr_setstacksize even if
9658 GOMP_DEFAULT_STACKSIZE is non-zero.
9659
9660 2017-03-30 Jakub Jelinek <jakub@redhat.com>
9661
9662 * env.c (initialize_env): Initialize stacksize to 0.
9663
9664 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
9665
9666 PR c++/80029
9667 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
9668
9669 2017-03-08 Jakub Jelinek <jakub@redhat.com>
9670
9671 PR c/79940
9672 * testsuite/libgomp.c/pr79940.c: New test.
9673
9674 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9675
9676 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
9677 targets.
9678 Add __float128 options.
9679
9680 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
9681
9682 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
9683 hppa*-*-* dg-skip-if directive.
9684
9685 2017-02-09 Jakub Jelinek <jakub@redhat.com>
9686
9687 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
9688 dg-skip-if directive into a comment.
9689
9690 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
9691 Chung-Lin Tang <cltang@codesourcery.com>
9692
9693 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
9694 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
9695 add additional case.
9696 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
9697 "openacc_nvidia_accel_selected".
9698 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
9699 Add num_workers(8) clause.
9700
9701 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
9702
9703 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
9704 hppa*-*-*.
9705 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
9706 include complex.h on hppa*-*-hpux*.
9707 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
9708
9709 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
9710
9711 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
9712
9713 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
9714 GOMP_OFFLOAD_openacc_exec. Adjust all users.
9715 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
9716 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
9717 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
9718 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
9719 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
9720 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
9721 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
9722 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
9723
9724 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
9725
9726 * libgomp-plugin.h: #include <stdbool.h>.
9727 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
9728 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
9729 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
9730 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
9731 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
9732 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
9733 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
9734 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
9735 (GOMP_OFFLOAD_openacc_register_async_cleanup)
9736 (GOMP_OFFLOAD_openacc_async_test)
9737 (GOMP_OFFLOAD_openacc_async_test_all)
9738 (GOMP_OFFLOAD_openacc_async_wait)
9739 (GOMP_OFFLOAD_openacc_async_wait_async)
9740 (GOMP_OFFLOAD_openacc_async_wait_all)
9741 (GOMP_OFFLOAD_openacc_async_wait_all_async)
9742 (GOMP_OFFLOAD_openacc_async_set_async)
9743 (GOMP_OFFLOAD_openacc_create_thread_data)
9744 (GOMP_OFFLOAD_openacc_destroy_thread_data)
9745 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
9746 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
9747 (GOMP_OFFLOAD_openacc_get_cuda_stream)
9748 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
9749 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
9750 these.
9751 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
9752 (GOMP_OFFLOAD_unload_image): Fix argument types.
9753
9754 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9755
9756 * testsuite/lib/libgomp.exp
9757 (check_effective_target_hsa_offloading_selected_nocache): Fix up
9758 check_compile invocation. Fix up removal of executable. Drop
9759 bogus "2>&1" argument.
9760
9761 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
9762 directive.
9763
9764 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
9765 Martin Jambor <mjambor@suse.cz>
9766
9767 * plugin/hsa.h: Moved to top level include.
9768 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
9769
9770 2017-01-21 Jakub Jelinek <jakub@redhat.com>
9771
9772 PR other/79046
9773 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
9774 of cat to get version from BASE-VER file.
9775 * testsuite/Makefile.in: Regenerated.
9776
9777 2017-01-19 Jakub Jelinek <jakub@redhat.com>
9778
9779 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
9780 for _WIN64.
9781
9782 2017-01-17 Jakub Jelinek <jakub@redhat.com>
9783
9784 * plugin/hsa.h: Add GCC runtime library exception.
9785 * plugin/hsa_ext_finalize.h: Likewise.
9786
9787 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
9788 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
9789 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
9790 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
9791 plugin/include/cuda as include dir and -ldl instead of -lcuda as
9792 library to link ptx plugin against.
9793 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
9794 (CUDA_CALLS): Define.
9795 (cuda_lib, cuda_lib_inited): New variables.
9796 (init_cuda_lib): New function.
9797 (CUDA_CALL_PREFIX): Define.
9798 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
9799 (CUDA_CALL): Use FN instead of (FN).
9800 (CUDA_CALL_NOCHECK): Define.
9801 (cuda_error, fini_streams_for_device, select_stream_for_async,
9802 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
9803 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
9804 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
9805 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
9806 CUDA_CALL_NOCHECK.
9807 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
9808 CUDA_CALL_NOCHECK.
9809 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
9810 Use CUDA_CALL_NOCHECK.
9811 * plugin/cuda/cuda.h: New file.
9812 * config.h.in: Regenerated.
9813 * configure: Regenerated.
9814
9815 PR other/79046
9816 * configure.ac: Add GCC_BASE_VER.
9817 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
9818 get version from BASE-VER file.
9819 * testsuite/Makefile.in: Regenerated.
9820 * configure: Regenerated.
9821 * Makefile.in: Regenerated.
9822
9823 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9824
9825 PR libgomp/60670
9826 * Makefile.am: Make fincludedir multilib-aware.
9827 * Makefile.in: Regenerate.
9828
9829 2017-01-01 Jakub Jelinek <jakub@redhat.com>
9830
9831 Update copyright years.
9832
9833 * libgomp.texi: Bump @copying's copyright year.
9834
9835 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
9836
9837 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
9838 pthread_spinlock_t instead of gomp_mutex_t lock.
9839 (gomp_get_thread_pool): Likewise.
9840 (gomp_release_thread_pool): Likewise.
9841 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
9842 Likewise.
9843
9844 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
9845
9846 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
9847 thread pool in case nthreads == 1.
9848
9849 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9850
9851 * config/nvptx/env.c: Delete.
9852 * icv.c: Move definitions of ICV variables back ...
9853 * env.c: ...here. Do not compile environment-related functionality if
9854 LIBGOMP_OFFLOADED_ONLY is set.
9855
9856 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9857
9858 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
9859 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
9860 * configure: Regenerate.
9861 * config.h.in: Likewise.
9862
9863 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9864
9865 * Makefile.in: Regenerate with automake-1.11.6.
9866 * aclocal.m4: Likewise.
9867 * configure: Likewise.
9868 * testsuite/Makefile.in: Likewise.
9869
9870 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
9871
9872 * config/nvptx/critical.c: Delete to use generic implementation.
9873
9874 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
9875
9876 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
9877 ../../affinity.c as fallback.
9878 * config/nvptx/affinity.c: Delete to use fallback implementation.
9879
9880 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
9881 Jakub Jelinek <jakub@redhat.com>
9882 Dmitry Melnik <dm@ispras.ru>
9883
9884 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
9885 * Makefile.in. Regenerate.
9886 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
9887 (LIBGOMP_USE_PTHREADS): ...here; new define.
9888 * configure: Regenerate.
9889 * config.h.in: Likewise.
9890 * config/posix/affinity.c: Move to...
9891 * affinity.c: ...here (new file). Guard use of Pthreads-specific
9892 interface by LIBGOMP_USE_PTHREADS.
9893 * critical.c: Split out GOMP_atomic_{start,end} into...
9894 * atomic.c: ...here (new file).
9895 * env.c: Split out ICV definitions into...
9896 * icv.c: ...here (new file) and...
9897 * icv-device.c: ...here. New file.
9898 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
9899 (gomp_destroy_lock_30): Ditto.
9900 (gomp_set_lock_30): Ditto.
9901 (gomp_unset_lock_30): Ditto.
9902 (gomp_test_lock_30): Ditto.
9903 (gomp_init_nest_lock_30): Ditto.
9904 (gomp_destroy_nest_lock_30): Ditto.
9905 (gomp_set_nest_lock_30): Ditto.
9906 (gomp_unset_nest_lock_30): Ditto.
9907 (gomp_test_nest_lock_30): Ditto.
9908 * lock.c: New.
9909 * config/nvptx/lock.c: New.
9910 * config/nvptx/bar.c: New.
9911 * config/nvptx/bar.h: New.
9912 * config/nvptx/doacross.h: New.
9913 * config/nvptx/error.c: New.
9914 * config/nvptx/icv-device.c: New.
9915 * config/nvptx/mutex.h: New.
9916 * config/nvptx/pool.h: New.
9917 * config/nvptx/proc.c: New.
9918 * config/nvptx/ptrlock.h: New.
9919 * config/nvptx/sem.h: New.
9920 * config/nvptx/simple-bar.h: New.
9921 * config/nvptx/target.c: New.
9922 * config/nvptx/task.c: New.
9923 * config/nvptx/team.c: New.
9924 * config/nvptx/time.c: New.
9925 * config/posix/simple-bar.h: New.
9926 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
9927 (gomp_num_teams_var): Declare.
9928 (struct gomp_thread_pool): Change threads_dock member to
9929 gomp_simple_barrier_t.
9930 [__nvptx__] (gomp_thread): New implementation.
9931 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
9932 (gomp_thread_destructor): Ditto.
9933 (gomp_init_thread_affinity): Ditto.
9934 * team.c: Guard uses of Pthreads-specific interfaces by
9935 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
9936 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
9937 * config/nvptx/alloc.c: Delete.
9938 * config/nvptx/barrier.c: Ditto.
9939 * config/nvptx/fortran.c: Ditto.
9940 * config/nvptx/iter.c: Ditto.
9941 * config/nvptx/iter_ull.c: Ditto.
9942 * config/nvptx/loop.c: Ditto.
9943 * config/nvptx/loop_ull.c: Ditto.
9944 * config/nvptx/ordered.c: Ditto.
9945 * config/nvptx/parallel.c: Ditto.
9946 * config/nvptx/priority_queue.c: Ditto.
9947 * config/nvptx/sections.c: Ditto.
9948 * config/nvptx/single.c: Ditto.
9949 * config/nvptx/splay-tree.c: Ditto.
9950 * config/nvptx/work.c: Ditto.
9951 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
9952 -foffload=-lgfortran in addition to -lgfortran.
9953 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
9954 * plugin/plugin-nvptx.c: Include <limits.h>.
9955 (struct targ_fn_descriptor): Add new fields.
9956 (struct ptx_device): Ditto. Set them...
9957 (nvptx_open_device): ...here.
9958 (nvptx_adjust_launch_bounds): New.
9959 (nvptx_host2dev): Allow NULL 'nvthd'.
9960 (nvptx_dev2host): Ditto.
9961 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
9962 (link_ptx): Adjust log sizes.
9963 (nvptx_host2dev): Allow NULL 'nvthd'.
9964 (nvptx_dev2host): Ditto.
9965 (nvptx_set_clocktick): New. Use it...
9966 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
9967 fields.
9968 (GOMP_OFFLOAD_dev2dev): New.
9969 (nvptx_adjust_launch_bounds): New.
9970 (nvptx_stacks_size): New.
9971 (nvptx_stacks_alloc): New.
9972 (nvptx_stacks_free): New.
9973 (GOMP_OFFLOAD_run): New.
9974 (GOMP_OFFLOAD_async_run): New (stub).
9975
9976 2016-11-23 Martin Jambor <mjambor@suse.cz>
9977
9978 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
9979 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
9980 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
9981
9982 2016-11-23 Martin Liska <mliska@suse.cz>
9983 Martin Jambor <mjambor@suse.cz>
9984
9985 * plugin/hsa.h: New file.
9986 * plugin/hsa_ext_finalize.h: New file.
9987 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
9988 header file unistd.h, and functions secure_getenv, __secure_getenv,
9989 getuid, geteuid, getgid and getegid.
9990 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
9991 -D_GNU_SOURCE.
9992 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
9993 Handle various cases of secure_getenv presence, add an implementation
9994 when we can test effective UID and GID.
9995 (struct hsa_runtime_fn_info): New structure.
9996 (hsa_runtime_fn_info hsa_fns): New variable.
9997 (hsa_runtime_lib): Likewise.
9998 (support_cpu_devices): Likewise.
9999 (init_enviroment_variables): Load newly introduced ENV
10000 variables.
10001 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
10002 (hsa_fatal): Likewise.
10003 (DLSYM_FN): New macro.
10004 (init_hsa_runtime_functions): New function.
10005 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
10006 structure. Depending on environment, also allow CPU devices.
10007 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
10008 (get_kernarg_memory_region): Likewise.
10009 (GOMP_OFFLOAD_init_device): Likewise.
10010 (destroy_hsa_program): Likewise.
10011 (init_basic_kernel_info): New function.
10012 (GOMP_OFFLOAD_load_image): Use it.
10013 (create_and_finalize_hsa_program): Call hsa run-time functions via
10014 hsa_fns structure.
10015 (create_single_kernel_dispatch): Likewise.
10016 (release_kernel_dispatch): Likewise.
10017 (init_single_kernel): Likewise.
10018 (parse_target_attributes): Allow up multiple HSA grid dimensions.
10019 (get_group_size): New function.
10020 (run_kernel): Likewise.
10021 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
10022 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
10023 structure.
10024 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
10025 * testsuite/libgomp-test-support.exp.in: Likewise.
10026 * Makefile.in: Regenerated.
10027 * aclocal.m4: Likewise.
10028 * config.h.in: Likewise.
10029 * configure: Likewise.
10030 * testsuite/Makefile.in: Likewise.
10031
10032 2016-11-15 Martin Jambor <mjambor@suse.cz>
10033 Alexander Monakov <amonakov@ispras.ru>
10034
10035 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
10036 mapping clauses to target constructs.
10037 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
10038
10039 2016-11-15 Matthias Klose <doko@ubuntu.com>
10040
10041 * configure: Regenerate.
10042
10043 2016-11-10 Jakub Jelinek <jakub@redhat.com>
10044
10045 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
10046 * omp_lib.h.in (openmp_version): Likewise.
10047 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
10048 of 201307.
10049 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10050
10051 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
10052 (fib_wrapper): Add map(from: x) clause.
10053 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
10054 (e_53_2): Likewise.
10055 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
10056 (accum): Add map(tmp) clause.
10057 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
10058 (accum): Add map(tofrom: tmp) clause.
10059 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
10060 (gramSchmidt): Likewise.
10061 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
10062 map(tofrom: sum) clause.
10063 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
10064 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
10065 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
10066 only allowed on the loop iterator.
10067 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
10068 * testsuite/libgomp.fortran/taskloop2.f90: New test.
10069 * testsuite/libgomp.fortran/taskloop4.f90: New test.
10070 * testsuite/libgomp.fortran/doacross1.f90: New test.
10071 * testsuite/libgomp.fortran/doacross3.f90: New test.
10072 * testsuite/libgomp.fortran/taskloop1.f90: New test.
10073 * testsuite/libgomp.fortran/taskloop3.f90: New test.
10074 * testsuite/libgomp.fortran/doacross2.f90: New test.
10075 * testsuite/libgomp.c/doacross-1.c (main): Add missing
10076 #pragma omp atomic read.
10077 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
10078 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
10079
10080 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
10081 Nathan Sidwell <nathan@acm.org>
10082
10083 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
10084 to determine default geometry.
10085 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
10086 dimension.
10087
10088 2016-11-01 Jakub Jelinek <jakub@redhat.com>
10089
10090 * hashtab.h: Use standard GPLv3 with runtime exception
10091 boilerplate.
10092
10093 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
10094
10095 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
10096 size when allocating new thread.
10097
10098 2016-09-14 Marek Polacek <polacek@redhat.com>
10099
10100 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
10101
10102 2016-08-19 Jakub Jelinek <jakub@redhat.com>
10103
10104 PR fortran/71014
10105 * testsuite/libgomp.fortran/pr71014.f90: New test.
10106
10107 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
10108
10109 PR middle-end/70895
10110 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
10111 firstprivate clauses.
10112 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
10113 copy clauses.
10114 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10115 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10116 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
10117 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
10118 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
10119 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
10120 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10121 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
10122 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10123 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10124 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10125 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
10126
10127 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
10128
10129 PR fortran/70598
10130 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
10131
10132 2016-08-08 Jakub Jelinek <jakub@redhat.com>
10133
10134 PR c++/58706
10135 * testsuite/libgomp.c++/pr58706.C: New test.
10136
10137 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
10138
10139 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
10140 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
10141 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10142 Likewise.
10143 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
10144 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
10145 Likewise.
10146 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
10147
10148 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
10149 test, and don't hardcode -O0.
10150
10151 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
10152
10153 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
10154
10155 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
10156
10157 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
10158 test.
10159
10160 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
10161
10162 PR middle-end/71734
10163 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
10164 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
10165
10166 2016-07-01 Jakub Jelinek <jakub@redhat.com>
10167
10168 PR fortran/71717
10169 * testsuite/libgomp.fortran/associate3.f90: New test.
10170
10171 2016-06-17 Jakub Jelinek <jakub@redhat.com>
10172
10173 * testsuite/libgomp.c++/target-21.C: New test.
10174
10175 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10176
10177 * testsuite/libgomp.c++/target-20.C: New test.
10178
10179 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10180 Cesar Philippidis <cesar@codesourcery.com>
10181
10182 PR middle-end/71373
10183 * libgomp.oacc-c/nested-function-1.c: New file.
10184 * libgomp.oacc-c/nested-function-2.c: Likewise.
10185 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10186 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10187 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10188
10189 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10190
10191 PR c/71381
10192 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
10193 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
10194 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
10195
10196 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
10197
10198 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
10199 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
10200
10201 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
10202
10203 PR c/70688
10204 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
10205
10206 2016-05-26 Jakub Jelinek <jakub@redhat.com>
10207
10208 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
10209 instead of invalid schedule(static, 0).
10210 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
10211
10212 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10213
10214 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
10215 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
10216 parameter, use to set async stream around call to gomp_unmap_vars,
10217 call gomp_unmap_vars() with 'do_copyfrom' set to true.
10218 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
10219 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
10220 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
10221 (event_add): Add int parameter, initialize 'val' field when
10222 adding new ptx_event struct.
10223 (nvptx_evec): Adjust event_add() call arguments.
10224 (nvptx_host2dev): Likewise.
10225 (nvptx_dev2host): Likewise.
10226 (nvptx_wait_async): Likewise.
10227 (nvptx_wait_all_async): Likewise.
10228 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
10229 pass to event_add() call.
10230 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
10231 parameter.
10232 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
10233 call openacc.register_async_cleanup_func() hook.
10234 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
10235 * target.c (gomp_copy_from_async): Delete function.
10236 (gomp_map_vars): Remove async_refcount.
10237 (gomp_unmap_vars): Likewise.
10238 (gomp_load_image_to_device): Likewise.
10239 (omp_target_associate_ptr): Likewise.
10240 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
10241 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
10242 (gomp_copy_from_async): Remove.
10243
10244 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10245
10246 * target.c (gomp_device_copy): New function.
10247 (gomp_copy_host2dev): Likewise.
10248 (gomp_copy_dev2host): Likewise.
10249 (gomp_free_device_memory): Likewise.
10250 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
10251 (gomp_map_pointer): Likewise.
10252 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
10253 NULL value from alloc_func plugin hook.
10254 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
10255 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
10256 (gomp_unmap_vars): Likewise.
10257 (gomp_update): Adjust to call gomp_copy_dev2host and
10258 gomp_copy_host2dev functions.
10259 (gomp_unload_image_from_device): Handle false value from
10260 unload_image_func plugin hook.
10261 (gomp_init_device): Handle false value from init_device_func
10262 plugin hook.
10263 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
10264 (omp_target_free): Adjust to call gomp_free_device_memory.
10265 (omp_target_memcpy): Handle return values from host2dev_func,
10266 dev2host_func, and dev2dev_func plugin hooks.
10267 (omp_target_memcpy_rect_worker): Likewise.
10268 (gomp_target_fini): Handle false value from fini_device_func
10269 plugin hook.
10270 * libgomp.h (struct gomp_device_descr): Adjust return type of
10271 init_device_func, fini_device_func, unload_image_func, free_func,
10272 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
10273 * oacc-init.c (acc_shutdown_1): Handle false value from
10274 fini_device_func plugin hook.
10275 * oacc-host.c (host_init_device): Change return type to bool.
10276 (host_fini_device): Likewise.
10277 (host_unload_image): Likewise.
10278 (host_free): Likewise.
10279 (host_dev2host): Likewise.
10280 (host_host2dev): Likewise.
10281 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
10282 (acc_memcpy_to_device): Likewise.
10283 (acc_memcpy_from_device): Likewise.
10284 (delete_copyout): Add libfnname parameter, handle free_func
10285 hook fatal error case.
10286 (acc_delete): Adjust delete_copyout call.
10287 (acc_copyout): Likewise.
10288 (update_dev_host): Move gomp_mutex_unlock to after
10289 host2dev/dev2host hook calls.
10290
10291 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
10292 to 'hsa_error_msg', for clarity.
10293 (hsa_fatal): Likewise.
10294 (hsa_error): New function.
10295 (init_hsa_context): Change return type to bool, adjust to return
10296 false on error.
10297 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
10298 return value.
10299 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
10300 return false on error.
10301 (get_agent_info): Adjust to return NULL on error.
10302 (destroy_hsa_program): Change return type to bool, adjust to
10303 return false on error.
10304 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
10305 (destroy_module): Change return type to bool, adjust to
10306 return false on error.
10307 (GOMP_OFFLOAD_unload_image): Likewise.
10308 (GOMP_OFFLOAD_fini_device): Likewise.
10309 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
10310 (GOMP_OFFLOAD_free): Change to return false when called.
10311 (GOMP_OFFLOAD_dev2host): Likewise.
10312 (GOMP_OFFLOAD_host2dev): Likewise.
10313 (GOMP_OFFLOAD_dev2dev): Likewise.
10314
10315 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
10316 (CUDA_CALL): Likewise.
10317 (CUDA_CALL_ASSERT): Likewise.
10318 (map_init): Change return type to bool, use CUDA_CALL* macros.
10319 (map_fini): Likewise.
10320 (init_streams_for_device): Change return type to bool, adjust
10321 call to map_init.
10322 (fini_streams_for_device): Change return type to bool, adjust
10323 call to map_fini.
10324 (select_stream_for_async): Release stream_lock before calls to
10325 GOMP_PLUGIN_fatal, adjust call to map_init.
10326 (nvptx_init): Use CUDA_CALL* macros.
10327 (nvptx_attach_host_thread_to_device): Change return type to bool,
10328 use CUDA_CALL* macros.
10329 (nvptx_open_device): Use CUDA_CALL* macros.
10330 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
10331 macros.
10332 (nvptx_get_num_devices): Use CUDA_CALL* macros.
10333 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
10334 (nvptx_exec): Use CUDA_CALL* macros.
10335 (nvptx_alloc): Use CUDA_CALL* macros.
10336 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
10337 (nvptx_host2dev): Likewise.
10338 (nvptx_dev2host): Likewise.
10339 (nvptx_wait): Use CUDA_CALL* macros.
10340 (nvptx_wait_async): Likewise.
10341 (nvptx_wait_all): Likewise.
10342 (nvptx_wait_all_async): Likewise.
10343 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
10344 use CUDA_CALL* macros, adjust call to map_fini.
10345 (GOMP_OFFLOAD_init_device): Change return type to bool,
10346 adjust code accordingly.
10347 (GOMP_OFFLOAD_fini_device): Likewise.
10348 (GOMP_OFFLOAD_load_image): Adjust calls to
10349 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
10350 use CUDA_CALL* macros.
10351 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
10352 return code.
10353 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
10354 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
10355 handle error return.
10356 (GOMP_OFFLOAD_dev2host): Likewise.
10357 (GOMP_OFFLOAD_host2dev): Likewise.
10358 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
10359 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
10360
10361 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
10362
10363 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
10364 (acc_free): Likewise.
10365 (acc_memcpy_to_device): Likewise.
10366 (acc_memcpy_from_device): Likewise.
10367 (acc_deviceptr): Likewise.
10368 (acc_hostptr): Likewise.
10369 (acc_is_present): Likewise.
10370 (acc_map_data): Likewise.
10371 (acc_unmap_data): Likewise.
10372 (present_create_copy): Likewise.
10373 (delete_copyout): Likewise.
10374 (update_dev_host): Likewise.
10375 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
10376 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
10377 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
10378 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10379 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
10380 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
10381 it only runs on nvptx targets.
10382 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10383 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
10384 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10385 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10386 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10387 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10388 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10389 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10390 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10391 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
10392 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10393 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10394 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10395 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10396 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10397 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10398 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10399 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10400 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10401 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10402 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10403 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10404 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10405
10406 2016-05-23 Martin Jambor <mjambor@suse.cz>
10407
10408 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
10409
10410 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
10411
10412 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
10413 to gomp_init_targets_once.
10414 (acc_set_device_type): Remove !cached_base_dev condition on call to
10415 gomp_init_targets_once, move call to before acc_device_lock acquire,
10416 to avoid deadlock.
10417 (acc_get_device_num): Remove !cached_base_dev condition on call to
10418 gomp_init_targets_once.
10419 (acc_set_device_num): Likewise.
10420
10421 2016-05-16 Martin Jambor <mjambor@suse.cz>
10422
10423 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
10424
10425 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
10426
10427 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
10428 expected partitioning.
10429
10430 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
10431
10432 PR middle-end/70626
10433 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
10434 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
10435 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
10436
10437 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
10438
10439 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
10440 non-fatal.
10441
10442 2016-04-19 Jakub Jelinek <jakub@redhat.com>
10443
10444 PR middle-end/70680
10445 * testsuite/libgomp.c/pr70680-1.c: New test.
10446 * testsuite/libgomp.c/pr70680-2.c: New test.
10447
10448 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10449
10450 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
10451 pass parameter variables to subroutines.
10452
10453 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10454
10455 PR middle-end/70643
10456 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
10457
10458 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
10459
10460 PR testsuite/68242
10461 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
10462 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10463
10464 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
10465
10466 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
10467 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
10468 GOACC_declare prototype.
10469
10470 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
10471 Merge this file, and...
10472 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
10473 ... this file, and...
10474 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
10475 ... this file, and...
10476 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
10477 ... this file, and...
10478 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
10479 ... this file, and...
10480 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
10481 ... this file, and...
10482 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
10483 ... this file, and...
10484 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
10485 ... this file, and...
10486 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
10487 ... this file, and...
10488 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
10489 ... this file, and...
10490 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
10491 ... this file, and...
10492 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
10493 ... this file, and...
10494 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
10495 ... this file into...
10496 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
10497 file.
10498
10499 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
10500 Make failure observable.
10501
10502 2016-04-12 Jakub Jelinek <jakub@redhat.com>
10503
10504 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
10505 field.
10506 * target.c (gomp_target_fallback_firstprivate,
10507 gomp_target_unshare_firstprivate): Removed.
10508 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
10509 before waiting for dependencies.
10510 (gomp_target_task_fn): Don't copy firstprivate vars here.
10511 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
10512 firstprivate_copies here.
10513 (gomp_create_target_task): Don't initialize firstprivate_copies field.
10514 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
10515 explicit/implicit firstprivate.
10516
10517 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
10518
10519 PR lto/70289
10520 PR ipa/70348
10521 PR tree-optimization/70373
10522 PR middle-end/70533
10523 PR middle-end/70534
10524 PR middle-end/70535
10525 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
10526 test.
10527 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
10528 test.
10529 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
10530 test.
10531 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
10532 test.
10533 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
10534 test.
10535 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
10536 test.
10537 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
10538 test.
10539 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
10540 test.
10541 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
10542 test.
10543 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
10544 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
10545 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
10546 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
10547 test.
10548 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
10549 test.
10550 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
10551 test.
10552 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
10553 test.
10554 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
10555 coverage.
10556 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
10557 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10558 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
10559 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
10560 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
10561 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
10562 coverage.
10563 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10564 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
10565 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
10566 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
10567 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
10568 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
10569 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
10570 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
10571 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
10572 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10573 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10574 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10575 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10576 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10577 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
10578
10579 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
10580 James Norris <jnorris@codesourcery.com>
10581 Nathan Sidwell <nathan@codesourcery.com>
10582 Julian Brown <julian@codesourcery.com>
10583 Cesar Philippidis <cesar@codesourcery.com>
10584 Chung-Lin Tang <cltang@codesourcery.com>
10585 Tom de Vries <tom@codesourcery.com>
10586
10587 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
10588 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
10589 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
10590 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
10591 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10592 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10593 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10594 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10595 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
10596 XFAIL.
10597 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
10598 Incorporate...
10599 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
10600 file.
10601 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
10602 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
10603 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
10604 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
10605 Likewise.
10606 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
10607 Likewise.
10608 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10609 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
10610 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
10611 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
10612 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10613 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10614 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10615 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10616 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10617 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
10618 Likewise.
10619 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
10620 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10621 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
10622 file...
10623 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
10624 file into...
10625 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
10626 file. Update.
10627 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
10628 file.
10629 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
10630 Likewise.
10631 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
10632 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
10633 ... this new file. Update.
10634 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
10635 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
10636 ... this new file. Update.
10637 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
10638 file. Incorporate...
10639 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
10640 file, and...
10641 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
10642 file, and...
10643 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
10644 file.
10645 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
10646
10647 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
10648
10649 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
10650 set-torture-options.
10651
10652 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
10653
10654 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
10655 gcc-dg-runtest.
10656 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10657 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
10658 -fno-builtin-acc_on_device instead of -O0.
10659 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
10660 -O0.
10661 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
10662 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
10663 Likewise.
10664 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
10665 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
10666 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
10667 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10668 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10669 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10670 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
10671 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10672 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
10673 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
10674 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
10675 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
10676 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
10677 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
10678 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
10679 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
10680 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
10681 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
10682 Don't specify -O2.
10683 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
10684 Likewise.
10685 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
10686 Likewise.
10687
10688 2016-03-24 Martin Liska <mliska@suse.cz>
10689
10690 * plugin/plugin-hsa.c (packet_store_release): New function
10691 that is taken from the HSA runtime manual.
10692 (GOMP_OFFLOAD_run): Use the function.
10693
10694 2016-03-23 Jakub Jelinek <jakub@redhat.com>
10695
10696 PR c++/70376
10697 * testsuite/libgomp.c++/pr70376.C: New test.
10698
10699 2016-03-23 Tom de Vries <tom@codesourcery.com>
10700
10701 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
10702 initialization of lresult and lvresult.
10703 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
10704
10705 2016-03-23 James Norris <jnorris@codesourcery.com>
10706 Daichi Fukuoka <dc-fukuoka@sgi.com>
10707
10708 PR libgomp/69414
10709 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
10710 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
10711 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
10712 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
10713
10714 2016-03-23 Martin Liska <mliska@suse.cz>
10715
10716 PR hsa/70337
10717 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
10718 argument just in case a dispatched kernel uses that argument.
10719
10720 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
10721
10722 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
10723 -ftree-parallelize-loops/-fopenacc changes.
10724 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
10725 Likewise.
10726 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10727 Likewise.
10728 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
10729 Likewise.
10730 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
10731 Likewise.
10732 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10733 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10734
10735 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
10736
10737 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
10738 always_ld_library_path the path to libgcc_s.
10739
10740 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
10741
10742 PR testsuite/70009
10743 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
10744
10745 2016-03-09 Tom de Vries <tom@codesourcery.com>
10746
10747 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
10748 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
10749 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10750 Same.
10751 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
10752 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
10753 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
10754 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
10755
10756 2016-03-07 Martin Jambor <mjambor@suse.cz>
10757
10758 * testsuite/lib/libgomp.exp
10759 (check_effective_target_hsa_offloading_selected_nocache): New.
10760 (check_effective_target_hsa_offloading_selected): Likewise.
10761 * testsuite/libgomp.hsa.c/c.exp: Likewise.
10762 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
10763 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
10764 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
10765 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
10766 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
10767 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
10768 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
10769 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
10770 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
10771 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
10772 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
10773 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
10774 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
10775 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
10776 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
10777 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
10778
10779 2016-03-07 Martin Jambor <mjambor@suse.cz>
10780
10781 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
10782 non-shared memory accelerators.
10783 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
10784 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
10785 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
10786 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
10787 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10788 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10789 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10790 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10791 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10792
10793 2016-03-07 Martin Jambor <mjambor@suse.cz>
10794
10795 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
10796 ALWAYS_CFLAGS.
10797
10798 2016-03-02 Jakub Jelinek <jakub@redhat.com>
10799
10800 PR libgomp/69555
10801 * testsuite/libgomp.c++/pr69555-1.C: New test.
10802 * testsuite/libgomp.c++/pr69555-2.C: New test.
10803
10804 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
10805 Martin Jambor <mjambor@suse.cz>
10806
10807 * testsuite/lib/libgomp.exp
10808 (check_effective_target_offload_device_shared_as): New proc.
10809 * testsuite/libgomp.c++/declare_target-1.C: New test.
10810
10811 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
10812
10813 PR driver/68463
10814 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
10815
10816 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
10817
10818 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
10819 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
10820 dims.
10821 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
10822 -ftree-parallelize-loops/-fopenacc changes.
10823 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
10824 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
10825 Likewise.
10826 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
10827 Likewise.
10828 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
10829 Likewise.
10830 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
10831 Likewise.
10832 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
10833 Likewise.
10834 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
10835 Likewise.
10836 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
10837 Likewise.
10838 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
10839 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
10840 Likewise.
10841 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
10842 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
10843 Likewise.
10844 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
10845 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
10846 Likewise.
10847
10848 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
10849
10850 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
10851
10852 2016-02-19 Jakub Jelinek <jakub@redhat.com>
10853
10854 PR driver/69805
10855 * testsuite/libgomp.c/pr69805.c: New test.
10856
10857 2016-02-16 Tom de Vries <tom@codesourcery.com>
10858
10859 PR lto/67709
10860 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
10861
10862 2016-02-09 Tom de Vries <tom@codesourcery.com>
10863
10864 PR tree-optimization/69599
10865 * testsuite/libgomp.c/omp-nested-3.c: New test.
10866 * testsuite/libgomp.c/pr46032-2.c: New test.
10867 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
10868 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
10869
10870 2016-02-09 Tom de Vries <tom@codesourcery.com>
10871
10872 PR lto/69707
10873 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
10874
10875 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10876
10877 * testsuite/libgomp.c/target-31.c: Fix testcase.
10878
10879 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10880
10881 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
10882 clause.
10883 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
10884 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
10885 reduction and map clauses.
10886 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10887
10888 2016-02-02 James Norris <jnorris@codesourcery.com>
10889
10890 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
10891
10892 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
10893
10894 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
10895 * oacc-parallel.c (GOACC_host_data): Remove function definition.
10896
10897 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
10898 cases.
10899
10900 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
10901 variables.
10902 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
10903 (hsa_kmt_lib): Set variables.
10904 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
10905 always_ld_library_path.
10906 * Makefile.in: Regenerate.
10907 * configure: Likewise.
10908 * testsuite/Makefile.in: Likewise.
10909
10910 * plugin/configfrag.ac (offload_additional_options)
10911 (offload_additional_lib_paths): Don't amend for hsa offloading.
10912 * configure: Regenerate.
10913
10914 * plugin/configfrag.ac: Don't configure for offloading target if
10915 we don't build the corresponding plugin.
10916 * configure: Regenerate.
10917
10918 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
10919
10920 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
10921 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
10922
10923 2016-01-26 Tom de Vries <tom@codesourcery.com>
10924
10925 PR tree-optimization/69110
10926 * testsuite/libgomp.c/pr69110.c: New test.
10927
10928 2016-01-25 Richard Biener <rguenther@suse.de>
10929
10930 PR lto/69393
10931 * testsuite/libgomp.c++/pr69393.C: New testcase.
10932
10933 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
10934
10935 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
10936 function wasn't mapped to the device with non-shared memory.
10937
10938 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
10939
10940 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
10941
10942 2016-01-19 Martin Jambor <mjambor@suse.cz>
10943 Martin Liska <mliska@suse.cz>
10944
10945 * plugin/Makefrag.am: Add HSA plugin requirements.
10946 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
10947 (HSA_RUNTIME_LIB): Likewise.
10948 (HSA_RUNTIME_CPPFLAGS): Likewise.
10949 (HSA_RUNTIME_INCLUDE): New substitution.
10950 (HSA_RUNTIME_LIB): Likewise.
10951 (HSA_RUNTIME_LDFLAGS): Likewise.
10952 (hsa-runtime): New configure option.
10953 (hsa-runtime-include): Likewise.
10954 (hsa-runtime-lib): Likewise.
10955 (PLUGIN_HSA): New substitution variable.
10956 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
10957 configure options.
10958 (PLUGIN_HSA_CPPFLAGS): Likewise.
10959 (PLUGIN_HSA_LDFLAGS): Likewise.
10960 (PLUGIN_HSA_LIBS): Likewise.
10961 Check that we have access to HSA run-time.
10962 * libgomp-plugin.h (offload_target_type): New element
10963 OFFLOAD_TARGET_TYPE_HSA.
10964 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
10965 args.
10966 (bool gomp_create_target_task): Updated.
10967 (gomp_device_descr): Extra parameter of run_func and async_run_func,
10968 new field can_run_func.
10969 * libgomp_g.h (GOMP_target_ext): Update prototype.
10970 * oacc-host.c (host_run): Added a new parameter args.
10971 * target.c (calculate_firstprivate_requirements): New function.
10972 (copy_firstprivate_data): Likewise.
10973 (gomp_target_fallback_firstprivate): Use them.
10974 (gomp_target_unshare_firstprivate): New function.
10975 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
10976 devices.
10977 (GOMP_target): Do host fallback for all shared memory devices. Do not
10978 pass any args to plugins.
10979 (GOMP_target_ext): Introduce device-specific argument parameter args.
10980 Allow host fallback if device shares memory. Do not remap data if
10981 device has shared memory.
10982 (gomp_target_task_fn): Likewise. Also treat shared memory devices
10983 like host fallback for mappings.
10984 (GOMP_target_data): Treat shared memory devices like host fallback.
10985 (GOMP_target_data_ext): Likewise.
10986 (GOMP_target_update): Likewise.
10987 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
10988 gomp_create_target_task.
10989 (GOMP_target_enter_exit_data): Likewise.
10990 (omp_target_alloc): Treat shared memory devices like host fallback.
10991 (omp_target_free): Likewise.
10992 (omp_target_is_present): Likewise.
10993 (omp_target_memcpy): Likewise.
10994 (omp_target_memcpy_rect): Likewise.
10995 (omp_target_associate_ptr): Likewise.
10996 (gomp_load_plugin_for_device): Also load can_run.
10997 * task.c (GOMP_PLUGIN_target_task_completion): Free
10998 firstprivate_copies.
10999 (gomp_create_target_task): Accept new argument args and store it to
11000 ttask.
11001 * plugin/plugin-hsa.c: New file.
11002
11003 2016-01-18 Tom de Vries <tom@codesourcery.com>
11004
11005 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
11006 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
11007 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
11008 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
11009 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
11010 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
11011 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
11012 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
11013 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
11014 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
11015 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11016 Same.
11017 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11018 Same.
11019 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
11020 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
11021 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
11022 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
11023 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
11024 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
11025 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
11026 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11027 Same.
11028 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
11029
11030 2016-01-15 Jakub Jelinek <jakub@redhat.com>
11031
11032 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
11033
11034 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
11035
11036 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
11037
11038 2016-01-12 James Norris <jnorris@codesourcery.com>
11039
11040 * libgomp.texi: Updates for OpenACC.
11041
11042 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
11043
11044 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
11045
11046 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
11047
11048 PR fortran/66680
11049 * testsuite/libgomp.fortran/pr66680.f90: New test.
11050
11051 2016-01-07 Jakub Jelinek <jakub@redhat.com>
11052
11053 PR middle-end/68960
11054 * testsuite/libgomp.c/pr68960.c: New test.
11055
11056 2016-01-06 Nathan Sidwell <nathan@acm.org>
11057
11058 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
11059 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
11060
11061 2016-01-04 Jakub Jelinek <jakub@redhat.com>
11062
11063 Update copyright years.
11064
11065 * libgomp.texi: Bump @copying's copyright year.
11066
11067 2015-12-31 Nathan Sidwell <nathan@acm.org>
11068
11069 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
11070 dg-additional-options syntax.
11071 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
11072 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
11073 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
11074 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
11075 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
11076 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
11077 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
11078 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
11079 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
11080 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
11081 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
11082 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
11083 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
11084 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
11085 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
11086 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
11087 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
11088 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
11089
11090 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
11091
11092 * libgomp.h (REFCOUNT_LINK): Define.
11093 (struct splay_tree_key_s): Add link_key.
11094 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
11095 Replace target address of the pointer with target address of newly
11096 mapped object in the splay tree. Set link pointer on target to the
11097 device address of the mapped object.
11098 (gomp_unmap_vars): Restore target address of the pointer in the splay
11099 tree for REFCOUNT_LINK objects after unmapping.
11100 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
11101 declare target link" objects.
11102 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
11103 "omp declare target link" objects, which were mapped for the image.
11104 (gomp_exit_data): Restore target address of the pointer in the splay
11105 tree for REFCOUNT_LINK objects after unmapping.
11106 * testsuite/libgomp.c/target-link-1.c: New file.
11107
11108 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
11109
11110 * libgomp.h (gomp_device_state): New enum.
11111 (struct gomp_device_descr): Replace is_initialized with state.
11112 (gomp_fini_device): Remove declaration.
11113 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
11114 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
11115 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
11116 (acc_set_device_type): Use state instead of is_initialized.
11117 (acc_set_device_num): Likewise.
11118 * target.c (resolve_device): Use state instead of is_initialized.
11119 Do not initialize finalized device.
11120 (gomp_map_vars): Do nothing if device is finalized.
11121 (gomp_unmap_vars): Likewise.
11122 (gomp_update): Likewise.
11123 (GOMP_offload_register_ver): Use state instead of is_initialized.
11124 (GOMP_offload_unregister_ver): Likewise.
11125 (gomp_init_device): Likewise.
11126 (gomp_unload_device): Likewise.
11127 (gomp_fini_device): Remove.
11128 (gomp_get_target_fn_addr): Do nothing if device is finalized.
11129 (GOMP_target): Go to host fallback if device is finalized.
11130 (GOMP_target_ext): Likewise.
11131 (gomp_exit_data): Do nothing if device is finalized.
11132 (gomp_target_task_fn): Go to host fallback if device is finalized.
11133 (gomp_target_fini): New static function.
11134 (gomp_target_init): Use state instead of is_initialized.
11135 Call gomp_target_fini at exit.
11136
11137 2015-12-09 Tom de Vries <tom@codesourcery.com>
11138
11139 PR tree-optimization/68716
11140 * testsuite/libgomp.c/omp-nested-2.c: New test.
11141
11142 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
11143
11144 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
11145 target openacc_nvidia_accel_selected.
11146 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
11147 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
11148 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
11149 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
11150
11151 2015-12-01 Julian Brown <julian@codesourcery.com>
11152 James Norris <James_Norris@mentor.com>
11153
11154 * oacc-parallel.c (GOACC_host_data): New function.
11155 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
11156 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
11157 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
11158 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
11159 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
11160 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
11161 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
11162
11163 2015-11-30 James Norris <jnorris@codesourcery.com>
11164 Cesar Philippidis <cesar@codesourcery.com>
11165
11166 libgomp/
11167 * libgomp.oacc-fortran/routine-5.f90: New test.
11168 * libgomp.oacc-fortran/routine-7.f90: New test.
11169 * libgomp.oacc-fortran/routine-9.f90: New test.
11170
11171 2015-11-30 Tom de Vries <tom@codesourcery.com>
11172
11173 PR tree-optimization/46032
11174 * testsuite/libgomp.c/pr46032.c: New test.
11175
11176 2015-11-27 Jakub Jelinek <jakub@redhat.com>
11177
11178 PR libgomp/68579
11179 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
11180 (gomp_create_target_task): Call it before freeing
11181 GOMP_TARGET_TASK_DATA tasks.
11182
11183 PR c/63326
11184 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
11185 in between case label and OpenMP standalone directives.
11186 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
11187
11188 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
11189
11190 * configure: Regenerate.
11191
11192 2015-11-26 Jakub Jelinek <jakub@redhat.com>
11193
11194 * testsuite/libgomp.c/target-35.c: New test.
11195
11196 2015-11-22 James Norris <jnorris@codesourcery.com>
11197 Cesar Philippidis <cesar@codesourcery.com>
11198
11199 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
11200 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11201 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11202 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11203 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11204
11205 2015-11-20 Jakub Jelinek <jakub@redhat.com>
11206
11207 PR middle-end/68221
11208 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
11209 * testsuite/libgomp.c/reduction-12.c: Likewise.
11210 * testsuite/libgomp.c++/reduction-11.C: Likewise.
11211 * testsuite/libgomp.c++/reduction-12.C: Likewise.
11212
11213 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
11214
11215 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
11216 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
11217 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
11218 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
11219 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
11220 and fix.
11221 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11222 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11223
11224 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
11225
11226 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
11227 worker & gang cases.
11228 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11229
11230 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
11231
11232 * config/nvptx/priority_queue.c: New file.
11233
11234 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11235
11236 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
11237 sections.
11238
11239 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11240 Aldy Hernandez <aldyh@redhat.com>
11241 Ilya Verbin <ilya.verbin@intel.com>
11242
11243 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
11244 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
11245 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
11246 iterators or IV by chunk size.
11247 * parallel.c (gomp_resolve_num_threads): Don't assume that
11248 if thr->ts.team is non-NULL, then pool must be non-NULL.
11249 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
11250 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
11251 GOMP_PLUGIN_target_task_completion.
11252 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
11253 * Makefile.in: Regenerate.
11254 * libgomp.h: Shuffle prototypes and forward definitions around so
11255 priority queues can be defined.
11256 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
11257 (enum gomp_target_task_state): New enum.
11258 (struct gomp_target_task): Add state, tgt, task and team fields.
11259 (gomp_create_target_task): Change return type to bool, add
11260 state argument.
11261 (gomp_target_task_fn): Change return type to bool.
11262 (struct gomp_device_descr): Add async_run_func.
11263 (struct gomp_task): Remove children, next_child, prev_child,
11264 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
11265 Add pnode field.
11266 (struct gomp_taskgroup): Remove children.
11267 Add taskgroup_queue.
11268 (struct gomp_team): Change task_queue type to a priority queue.
11269 (splay_compare): Define inline.
11270 (priority_queue_offset): New.
11271 (priority_node_to_task): New.
11272 (task_to_priority_node): New.
11273 * oacc-mem.c: Do not include splay-tree.h.
11274 * priority_queue.c: New file.
11275 * priority_queue.h: New file.
11276 * splay-tree.c: Do not include splay-tree.h.
11277 (splay_tree_foreach_internal): New.
11278 (splay_tree_foreach): New.
11279 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
11280 (splay_tree_callback): Define typedef.
11281 * target.c (splay_compare): Move to libgomp.h.
11282 (GOMP_target): Don't adjust *thr in any way around running offloaded
11283 task.
11284 (GOMP_target_ext): Likewise. Handle target nowait.
11285 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
11286 return value from gomp_create_target_task, if false, fallthrough
11287 as if no dependencies exist.
11288 (gomp_target_task_fn): Change return type to bool, return true
11289 if the task should have another part scheduled later. Handle
11290 target nowait.
11291 (gomp_load_plugin_for_device): Initialize async_run.
11292 * task.c (gomp_init_task): Initialize children_queue.
11293 (gomp_clear_parent_in_list): New.
11294 (gomp_clear_parent_in_tree): New.
11295 (gomp_clear_parent): Handle priorities.
11296 (GOMP_task): Likewise.
11297 (priority_queue_move_task_first,
11298 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
11299 New functions.
11300 (gomp_create_target_task): Use priority queues. Change return type
11301 to bool, add state argument, return false if for async
11302 {{enter,exit} data,update} constructs no dependencies need to be
11303 waited for, handle target nowait. Set task->fn to NULL instead of
11304 gomp_target_task_fn.
11305 (verify_children_queue): Remove.
11306 (priority_list_upgrade_task): New.
11307 (priority_queue_upgrade_task): New.
11308 (verify_task_queue): Remove.
11309 (priority_list_downgrade_task): New.
11310 (priority_queue_downgrade_task): New.
11311 (gomp_task_run_pre): Use priority queues.
11312 Abstract code out to priority_queue_downgrade_task.
11313 (gomp_task_run_post_handle_dependers): Use priority queues.
11314 (gomp_task_run_post_remove_parent): Likewise.
11315 (gomp_task_run_post_remove_taskgroup): Likewise.
11316 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
11317 tasks specially.
11318 (GOMP_taskwait): Likewise.
11319 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
11320 priority-queue_upgrade_task.
11321 (GOMP_taskgroup_start): Use priority queues.
11322 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
11323 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
11324 barrier.
11325 * taskloop.c (GOMP_taskloop): Handle priorities.
11326 * team.c (gomp_new_team): Call priority_queue_init.
11327 (free_team): Call priority_queue_free.
11328 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
11329 team created for target nowait in implicit parallel region.
11330 (gomp_team_start): For nested check, test thr->ts.level instead of
11331 thr->ts.team != NULL.
11332 * testsuite/libgomp.c/doacross-3.c: New test.
11333 * testsuite/libgomp.c/ordered-5.c: New test.
11334 * testsuite/libgomp.c/priority.c: New test.
11335 * testsuite/libgomp.c/target-31.c: New test.
11336 * testsuite/libgomp.c/target-32.c: New test.
11337 * testsuite/libgomp.c/target-33.c: New test.
11338 * testsuite/libgomp.c/target-34.c: New test.
11339
11340 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11341
11342 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
11343
11344 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
11345 loop is sequential.
11346
11347 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11348
11349 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
11350 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
11351
11352 2015-11-12 James Norris <jnorris@codesourcery.com>
11353 Joseph Myers <joseph@codesourcery.com>
11354
11355 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
11356 * oacc-parallel.c (GOACC_declare): New function.
11357 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
11358 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
11359 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
11360 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
11361 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
11362
11363 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
11364
11365 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
11366
11367 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
11368
11369 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
11370 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
11371
11372 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11373
11374 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
11375 inadvertent commit.
11376
11377 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11378
11379 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
11380 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
11381 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
11382 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
11383 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
11384
11385 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
11386
11387 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
11388 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11389
11390 2015-11-05 Jakub Jelinek <jakub@redhat.com>
11391 Ilya Verbin <ilya.verbin@intel.com>
11392
11393 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
11394 GOMP_loop_nonmonotonic_dynamic_start,
11395 GOMP_loop_nonmonotonic_guided_next,
11396 GOMP_loop_nonmonotonic_guided_start,
11397 GOMP_loop_ull_nonmonotonic_dynamic_next,
11398 GOMP_loop_ull_nonmonotonic_dynamic_start,
11399 GOMP_loop_ull_nonmonotonic_guided_next,
11400 GOMP_loop_ull_nonmonotonic_guided_start,
11401 GOMP_parallel_loop_nonmonotonic_dynamic,
11402 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
11403 (GOMP_target_41): Renamed to ...
11404 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11405 arguments.
11406 (GOMP_target_data_41): Renamed to ...
11407 (GOMP_target_data_ext): ... this.
11408 (GOMP_target_update_41): Renamed to ...
11409 (GOMP_target_update_ext): ... this.
11410 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
11411 GOMP_target_data_ext and GOMP_target_update_ext instead of
11412 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
11413 Export GOMP_loop_nonmonotonic_dynamic_next,
11414 GOMP_loop_nonmonotonic_dynamic_start,
11415 GOMP_loop_nonmonotonic_guided_next,
11416 GOMP_loop_nonmonotonic_guided_start,
11417 GOMP_loop_ull_nonmonotonic_dynamic_next,
11418 GOMP_loop_ull_nonmonotonic_dynamic_start,
11419 GOMP_loop_ull_nonmonotonic_guided_next,
11420 GOMP_loop_ull_nonmonotonic_guided_start,
11421 GOMP_parallel_loop_nonmonotonic_dynamic and
11422 GOMP_parallel_loop_nonmonotonic_guided.
11423 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
11424 GOMP_parallel_loop_nonmonotonic_guided,
11425 GOMP_loop_nonmonotonic_dynamic_start,
11426 GOMP_loop_nonmonotonic_guided_start,
11427 GOMP_loop_nonmonotonic_dynamic_next,
11428 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
11429 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
11430 GOMP_loop_ull_nonmonotonic_guided_start,
11431 GOMP_loop_ull_nonmonotonic_dynamic_next,
11432 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
11433 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
11434 functions.
11435 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
11436 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
11437 Use gomp_map_val function.
11438 (gomp_target_fallback_firstprivate): New static function.
11439 (GOMP_target_41): Renamed to ...
11440 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11441 arguments. Move firstprivate fallback handling into a new
11442 function.
11443 (GOMP_target_data_41): Renamed to ...
11444 (GOMP_target_data_ext): ... this.
11445 (GOMP_target_update_41): Renamed to ...
11446 (GOMP_target_update_ext): ... this.
11447 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
11448 gomp_map_0len_lookup instead of gomp_map_lookup.
11449 (omp_target_is_present): Use gomp_map_0len_lookup instead of
11450 gomp_map_lookup.
11451 * testsuite/libgomp.c/target-28.c: Likewise.
11452 * testsuite/libgomp.c/monotonic-1.c: New test.
11453 * testsuite/libgomp.c/monotonic-2.c: New test.
11454 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
11455 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
11456 * testsuite/libgomp.c/pr66199-5.c: New test.
11457 * testsuite/libgomp.c/pr66199-6.c: New test.
11458 * testsuite/libgomp.c/pr66199-7.c: New test.
11459 * testsuite/libgomp.c/pr66199-8.c: New test.
11460 * testsuite/libgomp.c/pr66199-9.c: New test.
11461 * testsuite/libgomp.c/reduction-11.c: New test.
11462 * testsuite/libgomp.c/reduction-12.c: New test.
11463 * testsuite/libgomp.c/reduction-13.c: New test.
11464 * testsuite/libgomp.c/reduction-14.c: New test.
11465 * testsuite/libgomp.c/reduction-15.c: New test.
11466 * testsuite/libgomp.c/target-12.c (main): Adjust for
11467 omp_target_is_present change for one-past-last element.
11468 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
11469 the same var is both mapped and privatized.
11470 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
11471 handling of zero-length array sections.
11472 * testsuite/libgomp.c/target-28.c: New test.
11473 * testsuite/libgomp.c/target-29.c: New test.
11474 * testsuite/libgomp.c/target-30.c: New test.
11475 * testsuite/libgomp.c/target-teams-1.c: New test.
11476 * testsuite/libgomp.c++/member-6.C: New test.
11477 * testsuite/libgomp.c++/member-7.C: New test.
11478 * testsuite/libgomp.c++/monotonic-1.C: New test.
11479 * testsuite/libgomp.c++/monotonic-2.C: New test.
11480 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
11481 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
11482 * testsuite/libgomp.c++/pr66199-3.C: New test.
11483 * testsuite/libgomp.c++/pr66199-4.C: New test.
11484 * testsuite/libgomp.c++/pr66199-5.C: New test.
11485 * testsuite/libgomp.c++/pr66199-6.C: New test.
11486 * testsuite/libgomp.c++/pr66199-7.C: New test.
11487 * testsuite/libgomp.c++/pr66199-8.C: New test.
11488 * testsuite/libgomp.c++/pr66199-9.C: New test.
11489 * testsuite/libgomp.c++/reduction-11.C: New test.
11490 * testsuite/libgomp.c++/reduction-12.C: New test.
11491 * testsuite/libgomp.c++/target-13.C: New test.
11492 * testsuite/libgomp.c++/target-14.C: New test.
11493 * testsuite/libgomp.c++/target-15.C: New test.
11494 * testsuite/libgomp.c++/target-16.C: New test.
11495 * testsuite/libgomp.c++/target-17.C: New test.
11496 * testsuite/libgomp.c++/target-18.C: New test.
11497 * testsuite/libgomp.c++/target-19.C: New test.
11498
11499 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
11500
11501 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
11502 and reduction copy.
11503 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11504 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11505 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11506 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11507 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
11508 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11509 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11510 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11511 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11512 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
11513 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11514 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11515 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11516 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
11517
11518 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
11519
11520 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
11521 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
11522 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
11523 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
11524 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
11525 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
11526 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
11527 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
11528
11529 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
11530
11531 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
11532 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
11533 (GOMP_OFFLOAD_openacc_parallel): Likewise.
11534 * oacc-host.c (host_openacc_exec): Likewise.
11535 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
11536
11537 2015-11-03 Julian Brown <julian@codesourcery.com>
11538 Thomas Schwinge <thomas@codesourcery.com>
11539
11540 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
11541 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11542 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
11543 Likewise.
11544 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
11545 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
11546
11547 2015-11-03 James Norris <jnorris@codesourcery.com>
11548
11549 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
11550 file.
11551 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
11552 Likewise.
11553 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
11554 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
11555 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11556 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
11557 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11558
11559 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
11560
11561 * openacc.h (enum acc_device_t): Reformat. Ensure layout
11562 compatibility.
11563 (enum acc_async_t): Reformat.
11564 (acc_on_device): Declare compatible with builtin and provide C++
11565 wrapper.
11566 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
11567
11568 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
11569 Cesar Philippidis <cesar@codesourcery.com>
11570
11571 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
11572 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
11573 ... this. Add a description of the test at the top of the file.
11574 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
11575 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
11576 ... this. Add a description of the test at the top of the file.
11577
11578 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
11579
11580 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
11581 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
11582 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
11583 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
11584 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
11585 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
11586
11587 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
11588
11589 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
11590 dimensions.
11591
11592 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
11593
11594 PR testsuite/68063
11595 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
11596
11597 2015-10-27 James Norris <jnorris@codesourcery.com>
11598
11599 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
11600 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
11601
11602 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
11603
11604 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
11605 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11606
11607 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
11608 acc_device_nvidia usage.
11609 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11610 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11611 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11612
11613 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
11614 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
11615
11616 PR libgomp/66518
11617 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
11618
11619 PR libgomp/65437
11620 PR libgomp/66518
11621 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
11622 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
11623
11624 2015-10-23 Tom de Vries <tom@codesourcery.com>
11625
11626 PR testsuite/68063
11627 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
11628
11629 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
11630
11631 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
11632 vector_length.
11633 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11634
11635 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
11636 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
11637
11638 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
11639 to 0 when mapnum is 0.
11640
11641 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
11642
11643 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
11644 Cast to int from int32_t.
11645
11646 2015-10-13 Jakub Jelinek <jakub@redhat.com>
11647 Aldy Hernandez <aldyh@redhat.com>
11648 Ilya Verbin <ilya.verbin@intel.com>
11649
11650 * config/linux/affinity.c (omp_get_place_num_procs,
11651 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11652 * config/linux/doacross.h: New file.
11653 * config/posix/affinity.c (omp_get_place_num_procs,
11654 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11655 * config/posix/doacross.h: New file.
11656 * env.c: Include gomp-constants.h.
11657 (struct gomp_task_icv): Rename run_sched_modifier to
11658 run_sched_chunk_size.
11659 (gomp_max_task_priority_var): New variable.
11660 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
11661 (handle_omp_display_env): Change _OPENMP value from 201307 to
11662 201511. Print OMP_MAX_TASK_PRIORITY.
11663 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
11664 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
11665 chunk_size and run_sched_modifier to run_sched_chunk_size.
11666 (omp_get_max_task_priority, omp_get_initial_device,
11667 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
11668 omp_get_partition_place_nums): New functions.
11669 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
11670 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
11671 to chunk_size.
11672 (omp_get_num_places_, omp_get_place_num_procs_,
11673 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
11674 omp_get_place_proc_ids_8_, omp_get_place_num_,
11675 omp_get_partition_num_places_, omp_get_partition_place_nums_,
11676 omp_get_partition_place_nums_8_, omp_get_initial_device_,
11677 omp_get_max_task_priority_): New functions.
11678 * libgomp_g.h (GOMP_loop_doacross_static_start,
11679 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
11680 GOMP_loop_doacross_runtime_start, 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, GOMP_doacross_post,
11684 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
11685 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
11686 GOMP_target_data_41, GOMP_target_update_41,
11687 GOMP_target_enter_exit_data): New prototypes.
11688 (GOMP_task): Add prototype argument.
11689 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
11690 (struct gomp_doacross_work_share): New type.
11691 (struct gomp_work_share): Add doacross field.
11692 (struct gomp_task_icv): Rename run_sched_modifier to
11693 run_sched_chunk_size.
11694 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
11695 GOMP_TASK_UNDEFERRED. Add comments.
11696 (struct gomp_task_depend_entry): Add comments.
11697 (struct gomp_task): Likewise.
11698 (struct gomp_taskgroup): Likewise.
11699 (struct gomp_target_task): New type.
11700 (struct gomp_team): Add comment.
11701 (gomp_get_place_proc_ids_8, gomp_doacross_init,
11702 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
11703 gomp_create_target_task, gomp_target_task_fn): New prototypes.
11704 (struct target_var_desc): New type.
11705 (struct target_mem_desc): Adjust comment. Use struct
11706 target_var_desc instead of splay_tree_key for list.
11707 (REFCOUNT_INFINITY): Define.
11708 (struct splay_tree_key_s): Remove copy_from field.
11709 (struct gomp_device_descr): Add dev2dev_func field.
11710 (enum gomp_map_vars_kind): New enum.
11711 (gomp_map_vars): Add one argument.
11712 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
11713 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
11714 omp_get_place_num_procs, omp_get_place_num_procs_,
11715 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
11716 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
11717 omp_get_place_num_, omp_get_partition_num_places,
11718 omp_get_partition_num_places_, omp_get_partition_place_nums,
11719 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
11720 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
11721 omp_target_free, omp_target_is_present, omp_target_memcpy,
11722 omp_target_memcpy_rect, omp_target_associate_ptr and
11723 omp_target_disassociate_ptr.
11724 (GOMP_4.0.2): Renamed to ...
11725 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
11726 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
11727 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
11728 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11729 GOMP_loop_doacross_static_start, GOMP_doacross_post,
11730 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
11731 GOMP_loop_ull_doacross_guided_start,
11732 GOMP_loop_ull_doacross_runtime_start,
11733 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
11734 GOMP_doacross_ull_wait.
11735 * libgomp.texi: Document omp_get_max_task_priority.
11736 Rename modifier argument to chunk_size for omp_set_schedule and
11737 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
11738 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
11739 to run_sched_chunk_size renaming.
11740 (GOMP_loop_ordered_runtime_start): Likewise.
11741 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
11742 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11743 GOMP_parallel_loop_runtime_start): New functions.
11744 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
11745 to run_sched_chunk_size renaming.
11746 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
11747 GOMP_loop_doacross_guided_start): New functions or aliases.
11748 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
11749 run_sched_modifier to run_sched_chunk_size renaming.
11750 (GOMP_loop_ull_ordered_runtime_start): Likewise.
11751 (gomp_loop_ull_doacross_static_start,
11752 gomp_loop_ull_doacross_dynamic_start,
11753 gomp_loop_ull_doacross_guided_start,
11754 GOMP_loop_ull_doacross_runtime_start): New functions.
11755 (GOMP_loop_ull_doacross_static_start,
11756 GOMP_loop_ull_doacross_dynamic_start,
11757 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
11758 * oacc-mem.c (acc_map_data, present_create_copy,
11759 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
11760 to gomp_map_vars.
11761 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
11762 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
11763 instead of false to gomp_map_vars.
11764 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
11765 * omp.h.in (omp_lock_hint_t): New type.
11766 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11767 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11768 omp_get_place_num, omp_get_partition_num_places,
11769 omp_get_partition_place_nums, omp_get_initial_device,
11770 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
11771 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
11772 omp_target_associate_ptr, omp_target_disassociate_ptr): New
11773 prototypes.
11774 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
11775 (omp_lock_hint_none, omp_lock_hint_uncontended,
11776 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11777 omp_lock_hint_speculative): New parameters.
11778 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11779 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11780 omp_get_place_num, omp_get_partition_num_places,
11781 omp_get_partition_place_nums, omp_get_initial_device,
11782 omp_get_max_task_priority): New interfaces.
11783 (omp_set_schedule, omp_get_schedule): Rename modifier argument
11784 to chunk_size.
11785 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
11786 (omp_lock_hint_none, omp_lock_hint_uncontended,
11787 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11788 omp_lock_hint_speculative): New parameters.
11789 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11790 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11791 omp_get_place_num, omp_get_partition_num_places,
11792 omp_get_partition_place_nums, omp_get_initial_device,
11793 omp_get_max_task_priority): New functions and subroutines.
11794 * ordered.c: Include stdarg.h and string.h.
11795 (MAX_COLLAPSED_BITS): Define.
11796 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
11797 gomp_doacross_ull_init, GOMP_doacross_ull_post,
11798 GOMP_doacross_ull_wait): New functions.
11799 * target.c: Include errno.h.
11800 (resolve_device): If device is not initialized, call
11801 gomp_init_device on it.
11802 (gomp_map_lookup): New function.
11803 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
11804 Don't bump refcount if REFCOUNT_INFINITY. Handle
11805 GOMP_MAP_ALWAYS_TO_P.
11806 (get_kind): Rename is_openacc argument to short_mapkind.
11807 (gomp_map_pointer): Use gomp_map_lookup.
11808 (gomp_map_fields_existing): New function.
11809 (gomp_map_vars): Rename is_openacc argument to short_mapkind
11810 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
11811 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
11812 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
11813 Adjust for tgt->list changed type and copy_from living in there.
11814 (gomp_copy_from_async): Adjust for tgt->list changed type and
11815 copy_from living in there.
11816 (gomp_unmap_vars): Likewise.
11817 (gomp_update): Likewise. Rename is_openacc argument to
11818 short_mapkind. Don't fail if object is not mapped.
11819 (gomp_load_image_to_device): Initialize refcount to
11820 REFCOUNT_INFINITY.
11821 (gomp_target_fallback): New function.
11822 (gomp_get_target_fn_addr): Likewise.
11823 (GOMP_target): Adjust gomp_map_vars caller, use
11824 gomp_get_target_fn_addr and gomp_target_fallback.
11825 (GOMP_target_41): New function.
11826 (gomp_target_data_fallback): New function.
11827 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
11828 (GOMP_target_data_41): New function.
11829 (GOMP_target_update): Adjust gomp_update caller.
11830 (GOMP_target_update_41): New function.
11831 (gomp_exit_data, GOMP_target_enter_exit_data,
11832 gomp_target_task_fn, omp_target_alloc, omp_target_free,
11833 omp_target_is_present, omp_target_memcpy,
11834 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
11835 omp_target_associate_ptr, omp_target_disassociate_ptr,
11836 gomp_load_plugin_for_device): New functions.
11837 * task.c: Include gomp-constants.h. Include taskloop.c
11838 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
11839 (gomp_task_handle_depend): New function.
11840 (GOMP_task): Use it. Add priority argument. Use
11841 gomp-constant.h constants instead of hardcoded numbers.
11842 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
11843 (gomp_create_target_task): New function.
11844 (verify_children_queue, verify_taskgroup_queue,
11845 verify_task_queue): New functions.
11846 (gomp_task_run_pre): Call verify_*_queue functions.
11847 If an upcoming tied task is about to leave the sibling or
11848 taskgroup queues in an invalid state, adjust appropriately.
11849 Remove taskgroup argument. Add comments.
11850 (gomp_task_run_post_handle_dependers): Add comments.
11851 (gomp_task_run_post_remove_parent): Likewise.
11852 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
11853 (GOMP_taskwait): Likewise. Add comments.
11854 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
11855 problem such that the first non parent_depends_on task does not
11856 end up at the end of the children queue.
11857 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
11858 GOMP_TASK_UNDEFERRED.
11859 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
11860 * taskloop.c: New file.
11861 * testsuite/lib/libgomp.exp
11862 (check_effective_target_offload_device_nonshared_as): New proc.
11863 * testsuite/libgomp.c/affinity-2.c: New test.
11864 * testsuite/libgomp.c/doacross-1.c: New test.
11865 * testsuite/libgomp.c/doacross-2.c: New test.
11866 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
11867 Add map clause to target.
11868 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
11869 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
11870 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
11871 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
11872 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
11873 Likewise.
11874 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
11875 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
11876 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
11877 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
11878 not defined. Use those where needed.
11879 * testsuite/libgomp.c/for-4.c: New test.
11880 * testsuite/libgomp.c/for-5.c: New test.
11881 * testsuite/libgomp.c/for-6.c: New test.
11882 * testsuite/libgomp.c/linear-1.c: New test.
11883 * testsuite/libgomp.c/ordered-4.c: New test.
11884 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
11885 only allowed on the loop iterator.
11886 * testsuite/libgomp.c/pr66199-3.c: New test.
11887 * testsuite/libgomp.c/pr66199-4.c: New test.
11888 * testsuite/libgomp.c/reduction-7.c: New test.
11889 * testsuite/libgomp.c/reduction-8.c: New test.
11890 * testsuite/libgomp.c/reduction-9.c: New test.
11891 * testsuite/libgomp.c/reduction-10.c: New test.
11892 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
11893 map(tofrom:s).
11894 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
11895 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
11896 * testsuite/libgomp.c/target-11.c: New test.
11897 * testsuite/libgomp.c/target-12.c: New test.
11898 * testsuite/libgomp.c/target-13.c: New test.
11899 * testsuite/libgomp.c/target-14.c: New test.
11900 * testsuite/libgomp.c/target-15.c: New test.
11901 * testsuite/libgomp.c/target-16.c: New test.
11902 * testsuite/libgomp.c/target-17.c: New test.
11903 * testsuite/libgomp.c/target-18.c: New test.
11904 * testsuite/libgomp.c/target-19.c: New test.
11905 * testsuite/libgomp.c/target-20.c: New test.
11906 * testsuite/libgomp.c/target-21.c: New test.
11907 * testsuite/libgomp.c/target-22.c: New test.
11908 * testsuite/libgomp.c/target-23.c: New test.
11909 * testsuite/libgomp.c/target-24.c: New test.
11910 * testsuite/libgomp.c/target-25.c: New test.
11911 * testsuite/libgomp.c/target-26.c: New test.
11912 * testsuite/libgomp.c/target-27.c: New test.
11913 * testsuite/libgomp.c/taskloop-1.c: New test.
11914 * testsuite/libgomp.c/taskloop-2.c: New test.
11915 * testsuite/libgomp.c/taskloop-3.c: New test.
11916 * testsuite/libgomp.c/taskloop-4.c: New test.
11917 * testsuite/libgomp.c++/ctor-13.C: New test.
11918 * testsuite/libgomp.c++/doacross-1.C: New test.
11919 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
11920 Replace offload_device with offload_device_nonshared_as.
11921 * testsuite/libgomp.c++/for-12.C: New test.
11922 * testsuite/libgomp.c++/for-13.C: New test.
11923 * testsuite/libgomp.c++/for-14.C: New test.
11924 * testsuite/libgomp.c++/linear-1.C: New test.
11925 * testsuite/libgomp.c++/member-1.C: New test.
11926 * testsuite/libgomp.c++/member-2.C: New test.
11927 * testsuite/libgomp.c++/member-3.C: New test.
11928 * testsuite/libgomp.c++/member-4.C: New test.
11929 * testsuite/libgomp.c++/member-5.C: New test.
11930 * testsuite/libgomp.c++/ordered-1.C: New test.
11931 * testsuite/libgomp.c++/reduction-5.C: New test.
11932 * testsuite/libgomp.c++/reduction-6.C: New test.
11933 * testsuite/libgomp.c++/reduction-7.C: New test.
11934 * testsuite/libgomp.c++/reduction-8.C: New test.
11935 * testsuite/libgomp.c++/reduction-9.C: New test.
11936 * testsuite/libgomp.c++/reduction-10.C: New test.
11937 * testsuite/libgomp.c++/reference-1.C: New test.
11938 * testsuite/libgomp.c++/simd14.C: New test.
11939 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
11940 * testsuite/libgomp.c++/target-5.C: New test.
11941 * testsuite/libgomp.c++/target-6.C: New test.
11942 * testsuite/libgomp.c++/target-7.C: New test.
11943 * testsuite/libgomp.c++/target-8.C: New test.
11944 * testsuite/libgomp.c++/target-9.C: New test.
11945 * testsuite/libgomp.c++/target-10.C: New test.
11946 * testsuite/libgomp.c++/target-11.C: New test.
11947 * testsuite/libgomp.c++/target-12.C: New test.
11948 * testsuite/libgomp.c++/taskloop-1.C: New test.
11949 * testsuite/libgomp.c++/taskloop-2.C: New test.
11950 * testsuite/libgomp.c++/taskloop-3.C: New test.
11951 * testsuite/libgomp.c++/taskloop-4.C: New test.
11952 * testsuite/libgomp.c++/taskloop-5.C: New test.
11953 * testsuite/libgomp.c++/taskloop-6.C: New test.
11954 * testsuite/libgomp.c++/taskloop-7.C: New test.
11955 * testsuite/libgomp.c++/taskloop-8.C: New test.
11956 * testsuite/libgomp.c++/taskloop-9.C: New test.
11957 * testsuite/libgomp.fortran/affinity1.f90: New test.
11958 * testsuite/libgomp.fortran/affinity2.f90: New test.
11959
11960 2015-10-13 Tom de Vries <tom@codesourcery.com>
11961
11962 PR tree-optimization/67476
11963 * testsuite/libgomp.c/autopar-3.c: New test.
11964 * testsuite/libgomp.c/autopar-4.c: New test.
11965 * testsuite/libgomp.c/autopar-5.c: New test.
11966 * testsuite/libgomp.c/autopar-6.c: New test.
11967 * testsuite/libgomp.c/autopar-7.c: New test.
11968 * testsuite/libgomp.c/autopar-8.c: New test.
11969
11970 2015-10-12 James Norris <jnorris@codesourcery.com>
11971
11972 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
11973 initializer.
11974
11975 2015-10-09 David Malcolm <dmalcolm@redhat.com>
11976
11977 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
11978 using load_gcc_lib.
11979
11980 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11981
11982 * oacc-ptx.h: Remove file, moving its content into...
11983 * config/nvptx/fortran.c: ... here...
11984 * config/nvptx/oacc-init.c: ..., here...
11985 * config/nvptx/oacc-parallel.c: ..., and here.
11986 * config/nvptx/openacc.f90: New file.
11987 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
11988 (link_ptx): Don't link in predefined bits of PTX code.
11989
11990 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11991 Bernd Schmidt <bernds@codesourcery.com>
11992
11993 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
11994 (struct targ_ptx_obj): New.
11995 (nvptx_tdata): Move earlier, change data format.
11996 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
11997 objects.
11998 (GOMP_OFFLOAD_load_image): Adjust.
11999
12000 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12001
12002 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
12003 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
12004 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
12005 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
12006 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12007 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
12008 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
12009 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
12010 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
12011 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
12012 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12013 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
12014 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12015 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12016 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12017 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12018 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12019 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12020 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12021 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12022 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12023 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12024 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12025 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12026 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12027 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12028 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
12029 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12030 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12031 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12032 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12033 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12034 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
12035 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12036 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12037 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12038 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12039 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12040 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12041 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12042 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12043 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12044 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12045 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12046 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
12047 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
12048 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
12049 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
12050 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
12051 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
12052 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
12053 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
12054 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
12055 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
12056 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
12057 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
12058 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12059 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
12060 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
12061 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
12062 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
12063 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
12064 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12065
12066 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12067
12068 * oacc-init.c (acc_on_device): Force optimization level.
12069
12070 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12071
12072 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
12073 (cuda_errlist): Delete.
12074 (cuda_error): Reimplement.
12075
12076 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12077
12078 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
12079 array.
12080 * libgomp.map (GOACC_parallel_keyed): New.
12081 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
12082 all callers.
12083 (GOACC_parallel_keyed): New interface. Lose geometry arguments
12084 and take keyed varargs list. Adjust call to exec_func.
12085 (GOACC_parallel): Force host fallback.
12086 * libgomp_g.h (GOACC_parallel): Remove.
12087 (GOACC_parallel_keyed): Declare.
12088 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
12089 (struct targ_gn_descriptor): Replace name field with launch field.
12090 (nvptx_exec): Lose separate geometry args, take array. Process
12091 dynamic dimensions and adjust.
12092 (struct nvptx_tdata): Replace fn_names field with fn_descs.
12093 (GOMP_OFFLOAD_load_image): Adjust for change in function table
12094 data.
12095 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
12096 passing.
12097 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
12098 passing.
12099
12100 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12101
12102 PR libgomp/67141
12103 * oacc-int.h (goacc_host_init): Add declaration.
12104 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
12105 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
12106
12107 2015-09-08 Aditya Kumar <hiraditya@msn.com>
12108 Sebastian Pop <s.pop@samsung.com>
12109
12110 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
12111 match o/p.
12112 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
12113 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
12114 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
12115 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
12116 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
12117
12118 2015-09-03 Jakub Jelinek <jakub@redhat.com>
12119
12120 * configure.tgt: Add missing ;; in between nvptx and rtems
12121 snippets.
12122
12123 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12124
12125 * config/posix/pool.h (gomp_adjust_thread_attr): New.
12126 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
12127 (gomp_thread_pool_reservoir): Add priority member.
12128 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
12129 priority.
12130 (parse_thread_pools): Likewise.
12131 * team.c (gomp_team_start): Call configuration provided
12132 gomp_adjust_thread_attr(). Destroy thread attributes if
12133 necessary.
12134 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
12135
12136 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12137
12138 * config/posix/pool.h: New.
12139 * config/rtems/pool.h: Likewise.
12140 * config/rtems/proc.c: Likewise.
12141 * libgomp.h (gomp_thread_destructor): Declare.
12142 * team.c: Include configuration provided "pool.h".
12143 (gomp_get_thread_pool): Define in configuration.
12144 (gomp_team_end): Call configuration defined
12145 gomp_release_thread_pool().
12146
12147 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12148
12149 * config/rtems/bar.c: New.
12150 * config/rtems/bar.h: Likewise.
12151 * config/rtems/mutex.c: Likewise.
12152 * config/rtems/mutex.h: Likewise.
12153 * config/rtems/sem.c: Likewise.
12154 * config/rtems/sem.h: Likewise.
12155 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
12156 <sys/lock.h> header file.
12157 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
12158 supported by Newlib.
12159 * configure: Regenerate.
12160
12161 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12162
12163 * team.c (gomp_new_thread_pool): Delete and move content to ...
12164 (gomp_get_thread_pool): ... new function. Allocate and
12165 initialize thread pool on demand.
12166 (get_last_team): Use gomp_get_thread_pool().
12167 (gomp_team_start): Delete thread pool initialization.
12168
12169 2015-09-03 Tom de Vries <tom@codesourcery.com>
12170
12171 PR tree-optimization/65637
12172 * testsuite/libgomp.c/autopar-2.c: New test.
12173
12174 2015-08-29 Tom de Vries <tom@codesourcery.com>
12175
12176 PR tree-optimization/46193
12177 * testsuite/libgomp.c/pr46193.c: New test.
12178
12179 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
12180
12181 libgomp/
12182 * libgomp.map: Add 4.0.2 version.
12183 * target.c (offload_image_descr): Add version field.
12184 (gomp_load_image_to_device): Add version argument. Adjust plugin
12185 call. Improve load mismatch diagnostic.
12186 (gomp_unload_image_from_device): Add version argument. Adjust plugin
12187 call.
12188 (GOMP_offload_regster): Make stub function, move bulk to ...
12189 (GOMP_offload_register_ver): ... here. Process version argument.
12190 (GOMP_offload_unregister): Make stub function, move bulk to ...
12191 (GOMP_offload_unregister_ver): ... here. Process version argument.
12192 (gomp_init_device): Process version field.
12193 (gomp_unload_device): Process version field.
12194 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
12195 macros. Check plugin version.
12196 * libgomp.h (gomp_device_descr): Add version function field. Adjust
12197 loader and unloader types.
12198 * oacc-host.c: Include gomp-constants.h.
12199 (host_version): New.
12200 (host_load_image, host_unload_image): Adjust.
12201 (host_dispatch): Add host_version.
12202 * plugin/plugin-nvptx.c: Include gomp-constants.h.
12203 (GOMP_OFFLOAD_version): New.
12204 (GOMP_OFFLOAD_load_image): Add version arg and check it.
12205 (GOMP_OFFLOAD_unload_image): Likewise.
12206 * plugin/plugin-host.c: Include gomp-constants.h.
12207 (GOMP_OFFLOAD_version): New.
12208 (GOMP_OFFLOAD_load_image): Add version arg.
12209 (GOMP_OFFLOAD_unload_image): Likewise.
12210
12211 2015-08-24 Tom de Vries <tom@codesourcery.com>
12212
12213 PR tree-optimization/65468
12214 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
12215
12216 2015-08-24 Tom de Vries <tom@codesourcery.com>
12217
12218 PR tree-optimization/65468
12219 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
12220
12221 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
12222
12223 PR libgomp/66761
12224 PR libgomp/67303
12225 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
12226 (gomp_iter_guided_next): Idem.
12227 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
12228 (gomp_iter_ull_guided_next): Idem.
12229 * config/linux/wait.h (do_spin): Idem.
12230
12231 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12232
12233 * libgomp-plugin.h (enum offload_target_type): Remove
12234 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
12235 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
12236 * openacc.h (enum acc_device_t): Likewise.
12237 * openacc_lib.h: Likewise.
12238 * oacc-init.c (name_of_acc_device_t): Don't handle it.
12239 (acc_on_device): Just use __builtin_acc_on_device.
12240 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
12241 of acc_on_device builtin.
12242 * plugin/plugin-host.h: Remove file.
12243 * plugin/plugin-host.c: Likewise, but salvage some content into...
12244 * oacc-host.c: ... this file.
12245 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
12246 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
12247 * Makefile.in: Regenerate.
12248 * configure: Likewise.
12249 * testsuite/lib/libgomp.exp
12250 (check_effective_target_openacc_host_nonshm_selected): Remove.
12251 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
12252 ACC_DEVICE_TYPE=host_nonshm.
12253 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12254 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12255 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
12256 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12257 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12258 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12259
12260 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12261 Jakub Jelinek <jakub@redhat.com>
12262
12263 * config/nvptx/affinity.c: New file.
12264 * config/nvptx/alloc.c: Likewise.
12265 * config/nvptx/bar.c: Likewise.
12266 * config/nvptx/barrier.c: Likewise.
12267 * config/nvptx/critical.c: Likewise.
12268 * config/nvptx/env.c: Likewise.
12269 * config/nvptx/error.c: Likewise.
12270 * config/nvptx/fortran.c: Likewise.
12271 * config/nvptx/iter.c: Likewise.
12272 * config/nvptx/iter_ull.c: Likewise.
12273 * config/nvptx/libgomp-plugin.c: Likewise.
12274 * config/nvptx/lock.c: Likewise.
12275 * config/nvptx/loop.c: Likewise.
12276 * config/nvptx/loop_ull.c: Likewise.
12277 * config/nvptx/mutex.c: Likewise.
12278 * config/nvptx/oacc-async.c: Likewise.
12279 * config/nvptx/oacc-cuda.c: Likewise.
12280 * config/nvptx/oacc-host.c: Likewise.
12281 * config/nvptx/oacc-init.c: Likewise.
12282 * config/nvptx/oacc-mem.c: Likewise.
12283 * config/nvptx/oacc-parallel.c: Likewise.
12284 * config/nvptx/oacc-plugin.c: Likewise.
12285 * config/nvptx/omp-lock.h: Likewise.
12286 * config/nvptx/ordered.c: Likewise.
12287 * config/nvptx/parallel.c: Likewise.
12288 * config/nvptx/proc.c: Likewise.
12289 * config/nvptx/ptrlock.c: Likewise.
12290 * config/nvptx/sections.c: Likewise.
12291 * config/nvptx/sem.c: Likewise.
12292 * config/nvptx/single.c: Likewise.
12293 * config/nvptx/splay-tree.c: Likewise.
12294 * config/nvptx/target.c: Likewise.
12295 * config/nvptx/task.c: Likewise.
12296 * config/nvptx/team.c: Likewise.
12297 * config/nvptx/time.c: Likewise.
12298 * config/nvptx/work.c: Likewise.
12299 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
12300 * configure: Regenerate.
12301 * configure.tgt (config_path): Set to "nvptx" for target
12302 nvptx*-*-*.
12303
12304 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12305
12306 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
12307
12308 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
12309
12310 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
12311 (cuda_errlist): Constify.
12312 (errmsg): Move into ...
12313 (cuda_error): ... here. Make smaller.
12314 (_XSTR, _STR): Delete.
12315 (cuda_synames): Delete.
12316 (verify_device_library): Delete.
12317 (nvptx_init): Don't call it.
12318
12319 2015-07-28 Tom de Vries <tom@codesourcery.com>
12320
12321 * testsuite/libgomp.c/uns-outer-4.c: New test.
12322
12323 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12324
12325 * testsuite/libgomp.c/pr66714.c: New test.
12326
12327 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
12328
12329 PR libgomp/66950
12330 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
12331 (fib_ref): New function.
12332 (fib): Correct corner cases in the recursion.
12333 (main): Replace the non-simd loop with fib_ref call.
12334 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
12335 subroutine.
12336 (fibonacci): Lower the parameter N to 30. Correct accordingly check
12337 for the last array element value. Replace the non-simd loop with
12338 fib_ref call. Remove redundant b_ref array. Remove the comparison
12339 of the last array element with according Fibonacci sequence element.
12340 (fib): Correct corner cases in the recursion.
12341
12342 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12343
12344 * target.c (gomp_offload_image_to_device): Rename to ...
12345 (gomp_load_image_to_device): ... here.
12346 (GOMP_offload_register): Adjust call.
12347 (gomp_init_device): Likewise.
12348 (gomp_unload_image_from_device): New. Broken out of ...
12349 (GOMP_offload_unregister): ... here. Call it.
12350 (gomp_unload_device): New.
12351 * libgomp.h (gomp_unload_device): Declare.
12352 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
12353 mem maps.
12354
12355 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
12356
12357 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
12358 wait=-specific if.
12359 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
12360 !=0 condition.
12361 (goacc_waits): Move !num_waits handling to ...
12362 (GOACC_wait): ... here, the only caller that might have zero waits.
12363
12364 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
12365 (struct ptx_image_data): Move earlier, add fns field.
12366 (struct ptx_device): Add images and image_lock fields.
12367 (ptx_images, ptx_image_lock): Delete.
12368 (nvptx_open_device): Initialize images and image_lock fields.
12369 (nvptx_close_device): Destroy image_lock.
12370 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
12371 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
12372 fields.
12373
12374 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12375
12376 * target.c (GOMP_offload_register): Use int for device type arg.
12377 (GOMP_offload_unregister): Likewise.
12378
12379 * target.c (struct_offload_image_descr): Constify host_table.
12380 (gomp_offload_image_to_device): Likewise.
12381 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
12382
12383 * libgomp.h (gomp_device_descr): Constify target data arguments.
12384 * target.c (struct offload_image_descr): Constify target_data.
12385 (gomp_offload_image_to_device): Likewise.
12386 (GOMP_offload_register): Likewise.
12387 (GOMP_offload_unregister): Likewise.
12388 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
12389 GOMP_OFFLOAD_unload_image): Constify target data.
12390 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
12391 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
12392
12393 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12394
12395 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
12396 Workaround driver library const error.
12397 (struct nvptx_tdata, nvptx_tdata_t): New.
12398 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
12399 type.
12400
12401 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
12402
12403 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
12404 of EPS parameter from integer to real.
12405 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
12406 type of EPS parameter from integer to real.
12407
12408 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
12409
12410 * team.c (get_last_team): New.
12411 (gomp_new_team): Recycle last non-nested team if possible.
12412 (gomp_team_end): Move team work share list free lock destruction
12413 to ...
12414 (free_team): ... here.
12415
12416 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
12417
12418 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
12419 and ref from int to double. Replaced their comparison with
12420 an inequality of their difference and EPS.
12421 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
12422 comparison of pri and a reference number with an inequality of their
12423 difference and EPS.
12424 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
12425 the comparison of sum and sum_ref with an inequality of their
12426 difference and EPS.
12427 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
12428 the comparison of pri and a reference number with an inequality of
12429 their difference and EPS.
12430
12431 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
12432
12433 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
12434 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
12435 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
12436 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
12437 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
12438 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
12439 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
12440 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
12441 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
12442 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
12443 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
12444 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
12445 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
12446 variables.
12447 (vec_mult): Likewise. Add #pragma omp taskwait.
12448 (main): Adjust caller.
12449 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
12450 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
12451 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
12452 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
12453 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
12454 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
12455 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
12456 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
12457 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
12458 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
12459 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
12460 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
12461 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
12462 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
12463 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
12464 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
12465 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
12466 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
12467 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
12468 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
12469 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
12470 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
12471 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
12472 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
12473 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
12474 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
12475 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
12476 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
12477 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
12478 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
12479 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
12480 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
12481 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
12482 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
12483 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
12484 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
12485 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
12486 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
12487 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
12488 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
12489 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
12490 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
12491 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
12492 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
12493 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
12494 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
12495 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
12496 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
12497 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
12498 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
12499 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
12500 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
12501 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
12502 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
12503 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
12504 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
12505 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
12506 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
12507 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
12508 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
12509 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
12510 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
12511 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
12512 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
12513 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
12514 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
12515 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
12516 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
12517 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
12518 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
12519 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
12520 (vec_mult): Add !$omp taskwait.
12521 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
12522 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
12523 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
12524 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
12525 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
12526 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
12527 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
12528 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
12529 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
12530 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
12531 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
12532 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
12533 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
12534 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
12535 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
12536 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
12537 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
12538 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
12539 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
12540 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
12541 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
12542 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
12543 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
12544 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
12545 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
12546 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
12547 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
12548 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
12549 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
12550 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
12551 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
12552 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
12553 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
12554 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
12555 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
12556 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
12557 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
12558 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
12559 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
12560 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
12561 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
12562 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
12563 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
12564 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
12565 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
12566 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
12567 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
12568 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
12569 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
12570 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
12571 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
12572 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
12573 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
12574 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
12575 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
12576 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
12577 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
12578 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
12579 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
12580 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
12581 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
12582 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
12583 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
12584 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
12585 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
12586 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
12587 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
12588
12589 2015-07-10 Tom de Vries <tom@codesourcery.com>
12590
12591 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
12592 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
12593
12594 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
12595
12596 PR libgomp/65099
12597 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
12598 in a 64-bit configuration.
12599 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
12600 offloading testing if no such device is available.
12601 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12602 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12603
12604 2015-07-08 Tom de Vries <tom@codesourcery.com>
12605
12606 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
12607 second call to f.
12608 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12609
12610 2015-07-07 Tom de Vries <tom@codesourcery.com>
12611
12612 PR tree-optimization/66642
12613 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
12614 iteration count case.
12615 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
12616 function, factor out of ...
12617 (main): ... here. Test low iteration count case.
12618
12619 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
12620
12621 * libgomp.h (gomp_thread_pool): Comment last_team field.
12622
12623 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
12624
12625 * testsuite/libgomp.c++/pr66702-1.C: Require
12626 vect_simd_clones effective target.
12627 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
12628
12629 2015-06-30 Tom de Vries <tom@codesourcery.com>
12630
12631 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12632 already set. Use DEFAULT_CFLAGS in dg-runtest.
12633 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
12634 "-O2".
12635
12636 2015-06-30 Tom de Vries <tom@codesourcery.com>
12637
12638 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12639 already set. Use DEFAULT_CFLAGS in dg-runtest.
12640 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
12641 * testsuite/libgomp.c++/pr64824.C: Same.
12642 * testsuite/libgomp.c++/pr64868.C: Same.
12643 * testsuite/libgomp.c++/pr66199-1.C: Same.
12644 * testsuite/libgomp.c++/pr66199-2.C: Same.
12645 * testsuite/libgomp.c++/target-2.C: Same.
12646 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
12647 -std=<standard> option.
12648 * testsuite/libgomp.c++/udr-11.C: Same.
12649 * testsuite/libgomp.c++/udr-12.C: Same.
12650 * testsuite/libgomp.c++/udr-13.C: Same.
12651 * testsuite/libgomp.c++/udr-14.C: Same.
12652 * testsuite/libgomp.c++/udr-15.C: Same.
12653 * testsuite/libgomp.c++/udr-16.C: Same.
12654 * testsuite/libgomp.c++/udr-17.C: Same.
12655 * testsuite/libgomp.c++/udr-18.C: Same.
12656 * testsuite/libgomp.c++/udr-19.C: Same.
12657 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
12658 * testsuite/libgomp.c++/simd-1.C: Same.
12659 * testsuite/libgomp.c++/simd-2.C: Same.
12660 * testsuite/libgomp.c++/simd-3.C: Same.
12661 * testsuite/libgomp.c++/simd-4.C: Same.
12662 * testsuite/libgomp.c++/simd-5.C: Same.
12663 * testsuite/libgomp.c++/simd-6.C: Same.
12664 * testsuite/libgomp.c++/simd-7.C: Same.
12665 * testsuite/libgomp.c++/simd-8.C: Same.
12666 * testsuite/libgomp.c++/simd-9.C: Same.
12667 * testsuite/libgomp.c++/simd10.C: Same.
12668 * testsuite/libgomp.c++/simd11.C: Same.
12669 * testsuite/libgomp.c++/simd12.C: Same.
12670 * testsuite/libgomp.c++/simd13.C: Same.
12671
12672 2015-06-30 Jakub Jelinek <jakub@redhat.com>
12673
12674 PR middle-end/66702
12675 * testsuite/libgomp.c++/pr66702-1.C: New test.
12676 * testsuite/libgomp.c++/pr66702-2.C: New test.
12677
12678 2015-06-30 Tom de Vries <tom@codesourcery.com>
12679
12680 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
12681 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
12682 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
12683 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
12684
12685 2015-06-30 Tom de Vries <tom@codesourcery.com>
12686
12687 PR tree-optimization/66652
12688 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
12689 using restrict pointers.
12690 (main): Add arguments to calls to f.
12691 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12692
12693 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
12694
12695 * configure.ac: Fix check for header <sys/sysctl.h>.
12696 * configure: Regenerate.
12697 * config.h.in: Likewise.
12698
12699 2015-06-23 Tom de Vries <tom@codesourcery.com>
12700
12701 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
12702 abort.
12703 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
12704
12705 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
12706
12707 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
12708 acc_device_nvidia.
12709
12710 PR libgomp/66518
12711 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
12712 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12713
12714 2015-06-15 Tom de Vries <tom@codesourcery.com>
12715
12716 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
12717 dg-additional-options for any remaining options.
12718 * testsuite/libgomp.c/atomic-2.c: Same.
12719 * testsuite/libgomp.c/atomic-4.c: Same.
12720 * testsuite/libgomp.c/atomic-5.c: Same.
12721 * testsuite/libgomp.c/atomic-6.c: Same.
12722 * testsuite/libgomp.c/autopar-1.c: Same.
12723 * testsuite/libgomp.c/copyin-1.c: Same.
12724 * testsuite/libgomp.c/copyin-2.c: Same.
12725 * testsuite/libgomp.c/copyin-3.c: Same.
12726 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
12727 * testsuite/libgomp.c/nestedfn-5.c: Same.
12728 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
12729 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
12730 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
12731 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12732 * testsuite/libgomp.c/pr32362-1.c: Same.
12733 * testsuite/libgomp.c/pr32362-2.c: Same.
12734 * testsuite/libgomp.c/pr32362-3.c: Same.
12735 * testsuite/libgomp.c/pr39591-1.c: Same.
12736 * testsuite/libgomp.c/pr39591-2.c: Same.
12737 * testsuite/libgomp.c/pr39591-3.c: Same.
12738 * testsuite/libgomp.c/pr58392.c: Same.
12739 * testsuite/libgomp.c/pr58756.c: Same.
12740 * testsuite/libgomp.c/simd-1.c: Same.
12741 * testsuite/libgomp.c/simd-10.c: Same.
12742 * testsuite/libgomp.c/simd-11.c: Same.
12743 * testsuite/libgomp.c/simd-12.c: Same.
12744 * testsuite/libgomp.c/simd-13.c: Same.
12745 * testsuite/libgomp.c/simd-14.c: Same.
12746 * testsuite/libgomp.c/simd-15.c: Same.
12747 * testsuite/libgomp.c/simd-2.c: Same.
12748 * testsuite/libgomp.c/simd-3.c: Same.
12749 * testsuite/libgomp.c/simd-4.c: Same.
12750 * testsuite/libgomp.c/simd-5.c: Same.
12751 * testsuite/libgomp.c/simd-6.c: Same.
12752 * testsuite/libgomp.c/simd-7.c: Same.
12753 * testsuite/libgomp.c/simd-8.c: Same.
12754 * testsuite/libgomp.c/simd-9.c: Same.
12755
12756 2015-06-15 Tom de Vries <tom@codesourcery.com>
12757
12758 * testsuite/libgomp.c/pr35625.c: Fix typo.
12759
12760 2015-06-15 Tom de Vries <tom@codesourcery.com>
12761
12762 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
12763 in dg-options.
12764 * testsuite/libgomp.c/atomic-3.c: Same.
12765 * testsuite/libgomp.c/debug-1.c: Same.
12766 * testsuite/libgomp.c/nqueens-1.c: Same.
12767 * testsuite/libgomp.c/pr26171.c: Same.
12768 * testsuite/libgomp.c/pr48591.c: Same.
12769 * testsuite/libgomp.c/pr64824.c: Same.
12770 * testsuite/libgomp.c/pr64868.c: Same.
12771 * testsuite/libgomp.c/pr66133.c: Same.
12772 * testsuite/libgomp.c/pr66199-1.c: Same.
12773 * testsuite/libgomp.c/pr66199-2.c: Same.
12774 * testsuite/libgomp.c/target-8.c: Same.
12775
12776 2015-06-15 Tom de Vries <tom@codesourcery.com>
12777
12778 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
12779 -std={gnu99,c99}.
12780 * testsuite/libgomp.c/for-1.c: Same.
12781 * testsuite/libgomp.c/for-2.c: Same.
12782 * testsuite/libgomp.c/for-3.c: Same.
12783 * testsuite/libgomp.c/pr35625.c: Same.
12784 * testsuite/libgomp.c/pr39154.c: Same.
12785 * testsuite/libgomp.c/simd-16.c: Same.
12786 * testsuite/libgomp.c/simd-17.c: Same.
12787
12788 2015-06-13 Tom de Vries <tom@codesourcery.com>
12789
12790 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
12791
12792 2015-06-13 Tom de Vries <tom@codesourcery.com>
12793
12794 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
12795 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12796 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
12797 (N): Define.
12798 (main): Use N instead of hardcoded constants.
12799
12800 2015-06-05 Tom de Vries <tom@codesourcery.com>
12801
12802 merge from gomp4 branch:
12803 2015-05-28 Tom de Vries <tom@codesourcery.com>
12804
12805 PR tree-optimization/65443
12806 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
12807 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
12808 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
12809
12810 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12811
12812 * testsuite/libgomp.graphite/bounds.c: Adjust for
12813 cleanup-tree-dump removal.
12814 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
12815 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12816 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12817 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12818 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12819 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12820 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12821 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12822 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12823 * testsuite/libgomp.graphite/pr41118.c: Likewise.
12824
12825 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
12826
12827 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
12828 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
12829 (futex_wake) [!__x86_64__]: Ditto.
12830
12831 2015-05-28 Julian Brown <julian@codesourcery.com>
12832
12833 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
12834 function comment. Only call gomp_fatal if new argument is true.
12835 (acc_dev_num_out_of_range): New function.
12836 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
12837 acc_dev_num_out_of_range as appropriate.
12838 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12839 (acc_get_device_num, acc_set_device_num): Update calls to
12840 resolve_device.
12841 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
12842 output.
12843
12844 2015-05-28 Julian Brown <julian@codesourcery.com>
12845
12846 PR libgomp/65742
12847 * oacc-init.c (plugin/plugin-host.h): Include.
12848 (acc_on_device): Check whether we're in an offloaded region for
12849 host_nonshm
12850 plugin. Don't use __builtin_acc_on_device.
12851 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
12852 nonshm_exec flag in thread-local data.
12853 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
12854 data for host_nonshm plugin.
12855 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
12856 for host_nonshm plugin.
12857 * plugin/plugin-host.h: New.
12858
12859 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12860
12861 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
12862
12863 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12864
12865 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
12866 Declare as int.
12867 (FUTEX_PRIVATE_FLAG): Remove L suffix.
12868 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
12869 Declare as int.
12870
12871 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12872
12873 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
12874
12875 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
12876
12877 * target.c (gomp_map_pointer): New function abstracting out
12878 GOMP_MAP_POINTER handling.
12879 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
12880 gomp_map_pointer().
12881
12882 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12883
12884 PR middle-end/66199
12885 * testsuite/libgomp.c/pr66199-1.c: New test.
12886 * testsuite/libgomp.c/pr66199-2.c: New test.
12887 * testsuite/libgomp.c++/pr66199-1.C: New test.
12888 * testsuite/libgomp.c++/pr66199-2.C: New test.
12889 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
12890 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
12891
12892 2015-05-19 Julian Brown <julian@codesourcery.com>
12893
12894 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
12895 on cuInit failure.
12896
12897 2015-05-13 Jakub Jelinek <jakub@redhat.com>
12898
12899 PR middle-end/66133
12900 * testsuite/libgomp.c/pr66133.c: New test.
12901
12902 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12903
12904 * Makefile.in: Regenerated with automake-1.11.6.
12905 * aclocal.m4: Likewise.
12906 * config.h.in: Likewise.
12907 * configure: Likewise.
12908 * testsuite/Makefile.in: Likewise.
12909
12910 2015-05-08 Jason Merrill <jason@redhat.com>
12911
12912 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
12913 _Complex.
12914
12915 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
12916
12917 2015-05-06 Julian Brown <julian@codesourcery.com>
12918
12919 * oacc-init.c (acc_device_lock): Add explanatory comment.
12920 (resolve_device): Add comment about locking requirement.
12921 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
12922 gomp_init_device and gomp_fini_device calls.
12923 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12924 (acc_get_device_num, acc_set_device_num): Add locking around
12925 resolve_device and gomp_init_device calls.
12926
12927 2015-05-06 Julian Brown <julian@codesourcery.com>
12928
12929 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
12930 goacc_thread_lock on error paths.
12931 * oacc-mem.c (lookup_host): Remove locking from function. Note
12932 locking requirement for caller in function comment.
12933 (lookup_dev): Likewise.
12934 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
12935 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
12936 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
12937 Add locking.
12938
12939 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
12940
12941 PR testsuite/65205
12942 PR libgomp/65993
12943 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
12944 don't expect "0x" prefix for "%p" format specifier, don't expect
12945 "(nil)" for NULL pointer.
12946 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12947 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12948 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12949 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12950 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12951 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12952 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12953 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12954 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12955 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12956 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12957 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12958 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12959 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12960 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12961 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12962 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12963 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12964 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12965 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12966 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12967 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12968 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12969 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12970 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12971 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12972 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12973 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12974 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
12975 accurately specify what we're looking for.
12976 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12977 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12978 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
12979 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12980 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12981
12982 2015-04-30 James Norris <jnorris@codesourcery.com>
12983
12984 PR testsuite/65205
12985 * testsuite/lib/libgomp.exp
12986 (check_effective_target_openacc_host_selected)
12987 (check_effective_target_openacc_host_nonshm_selected): New
12988 procedures.
12989 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
12990 dg-shouldfail.
12991 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
12992 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12993 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12994 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12995 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12996 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12997 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12998 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12999 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13000 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13001 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13002 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13003 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13004 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13005 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13006 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13007 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13008 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13009 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13010 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13011 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13012 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13013 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13014 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13015 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13016 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13017 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13018 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13019 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13020 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13021 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13022 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13023 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13024 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13025 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13026 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13027 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13028 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13029 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13030 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13031 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13032 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13033 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13034
13035 2015-04-08 Julian Brown <julian@codesourcery.com>
13036
13037 * libgomp.h (target_mem_desc: Remove mem_map field.
13038 (acc_dispatch_t): Remove open_device_func, close_device_func,
13039 get_device_num_func, set_device_num_func, target_data members.
13040 Change create_thread_data_func argument to device number instead of
13041 generic pointer.
13042 * oacc-async.c (assert.h): Include.
13043 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
13044 (acc_wait_all, acc_wait_all_async): Use current host thread's
13045 active device, not base_dev.
13046 * oacc-cuda.c (acc_get_current_cuda_device)
13047 (acc_get_current_cuda_context, acc_get_cuda_stream)
13048 (acc_set_cuda_stream): Likewise.
13049 * oacc-host.c (host_dispatch): Don't set open_device_func,
13050 close_device_func, get_device_num_func or set_device_num_func.
13051 * oacc-init.c (base_dev, init_key): Remove.
13052 (cached_base_dev): New.
13053 (name_of_acc_device_t): New.
13054 (acc_init_1): Initialise default-numbered device, not zeroth.
13055 (acc_shutdown_1): Close all devices of a given type.
13056 (goacc_destroy_thread): Don't use base_dev.
13057 (lazy_open, lazy_init, lazy_init_and_open): Remove.
13058 (goacc_attach_host_thread_to_device): New.
13059 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
13060 (acc_get_num_devices): Don't use base_dev.
13061 (acc_set_device_type): Reimplement.
13062 (acc_get_device_type): Don't use base_dev.
13063 (acc_get_device_num): Tweak logic.
13064 (acc_set_device_num): Likewise.
13065 (acc_on_device): Use acc_get_device_type.
13066 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
13067 (goacc_lazy_initialize): Reimplement with acc_init and
13068 goacc_attach_host_thread_to_device.
13069 * oacc-int.h (goacc_thread): Add base_dev field.
13070 (base_dev): Remove extern declaration.
13071 (goacc_attach_host_thread_to_device): Add prototype.
13072 * oacc-mem.c (acc_malloc): Use current thread's device instead of
13073 base_dev.
13074 (acc_free): Likewise.
13075 (acc_memcpy_to_device): Likewise.
13076 (acc_memcpy_from_device): Likewise.
13077 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
13078 goacc_lazy_initialize (throughout).
13079 (GOACC_parallel): Use tgt_offset to locate target functions.
13080 * target.c (gomp_map_vars): Don't set tgt->mem_map.
13081 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
13082 (gomp_load_plugin_for_device): Remove open_device, close_device,
13083 get_device_num, set_device_num openacc hook initialisation. Don't set
13084 openacc.target_data.
13085 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
13086 (GOMP_OFFLOAD_openacc_close_device)
13087 (GOMP_OFFLOAD_openacc_get_device_num)
13088 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
13089 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
13090 to int.
13091 * plugin/plugin-nvptx.c (ptx_inited): Remove.
13092 (instantiated_devices, ptx_dev_lock): New.
13093 (struct ptx_image_data): New.
13094 (ptx_devices, ptx_images, ptx_image_lock): New.
13095 (fini_streams_for_device): Reorder cuStreamDestroy call.
13096 (nvptx_get_num_devices): Remove forward declaration.
13097 (nvptx_init): Change return type to bool.
13098 (nvptx_fini): Remove.
13099 (nvptx_attach_host_thread_to_device): New.
13100 (nvptx_open_device): Return struct ptx_device* instead of void*.
13101 (nvptx_close_device): Change argument type to struct ptx_device*,
13102 return type to void.
13103 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
13104 (kernel_target_data, kernel_host_table): Remove static globals.
13105 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
13106 (GOMP_OFFLOAD_init_device): Reimplement.
13107 (GOMP_OFFLOAD_fini_device): Likewise.
13108 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
13109 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
13110 (GOMP_OFFLOAD_host2dev): Use ORD argument.
13111 (GOMP_OFFLOAD_openacc_open_device)
13112 (GOMP_OFFLOAD_openacc_close_device)
13113 (GOMP_OFFLOAD_openacc_set_device_num)
13114 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
13115 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
13116 (device number).
13117
13118 testsuite/
13119 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
13120
13121 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
13122
13123 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
13124 * libgomp.h (struct gomp_memory_mapping): Remove.
13125 (struct target_mem_desc): Change type of mem_map from
13126 gomp_memory_mapping * to splay_tree_s *.
13127 (struct gomp_device_descr): Remove register_image_func, get_table_func.
13128 Add load_image_func, unload_image_func.
13129 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
13130 Remove offload_regions_registered.
13131 (gomp_init_tables): Remove.
13132 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13133 to splay_tree_s *.
13134 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
13135 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
13136 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
13137 offload_regions_registered.
13138 Initialize load_image_func, unload_image_func, mem_map.root.
13139 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
13140 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
13141 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
13142 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
13143 gomp_memory_mapping *. Use dev's lock and splay_tree.
13144 (lookup_dev): Use dev's lock.
13145 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
13146 (acc_is_present): Likewise.
13147 (acc_map_data): Likewise.
13148 (acc_unmap_data): Likewise. Use dev's lock.
13149 (present_create_copy): Likewise.
13150 (delete_copyout): Pass dev to lookup_host instead of mem_map.
13151 (update_dev_host): Likewise.
13152 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
13153 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
13154 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
13155 (GOMP_OFFLOAD_get_table): Remove
13156 (GOMP_OFFLOAD_load_image): New function.
13157 (GOMP_OFFLOAD_unload_image): New function.
13158 * target.c (register_lock): New mutex for offload image registration.
13159 (num_devices): Do not guard with PLUGIN_SUPPORT.
13160 (gomp_realloc_unlock): New static function.
13161 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
13162 before gomp_fatal.
13163 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
13164 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
13165 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
13166 mem_map's.
13167 (gomp_unmap_vars): Likewise.
13168 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
13169 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
13170 (gomp_offload_image_to_device): New static function.
13171 (GOMP_offload_register): Add mutex lock.
13172 Call gomp_offload_image_to_device for all initialized devices.
13173 Replace gomp_realloc with gomp_realloc_unlock.
13174 (GOMP_offload_unregister): New function.
13175 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
13176 get_table_func from the plugin with calls to init_device_func and
13177 gomp_offload_image_to_device.
13178 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13179 to splay_tree_s *.
13180 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
13181 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
13182 (GOMP_target_data): Do not call gomp_init_tables.
13183 (GOMP_target_update): Likewise. Remove argument from gomp_update.
13184 (gomp_load_plugin_for_device): Replace register_image and get_table
13185 with load_image and unload_image in DLSYM ().
13186 (gomp_register_images_for_device): Remove function.
13187 (gomp_target_init): Do not initialize current_device.mem_map.*,
13188 current_device.offload_regions_registered.
13189 Remove call to gomp_register_images_for_device.
13190 Do not free offload_images and num_offload_images.
13191
13192 2015-03-30 Jakub Jelinek <jakub@redhat.com>
13193
13194 PR fortran/65597
13195 * testsuite/libgomp.fortran/pr65597.f90: New test.
13196
13197 2015-03-27 Tom de Vries <tom@codesourcery.com>
13198
13199 PR testsuite/65594
13200 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
13201 (init, check): New function.
13202 (foo): Change return type to void.
13203 (main): Call init and check.
13204
13205 2015-03-27 Tom de Vries <tom@codesourcery.com>
13206
13207 PR testsuite/65594
13208 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
13209 (foo): Use M for non-inner loops to scale down test-case.
13210
13211 2015-03-25 Kai Tietz <ktietz@redhat.com>
13212
13213 PR libgomp/64972
13214 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
13215 (GOACC_data_start): Likewise.
13216 * target.c (gomp_map_vars): Likewise.
13217
13218 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
13219
13220 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
13221 hppa*-*-hpux*.
13222
13223 2015-03-19 Jakub Jelinek <jakub@redhat.com>
13224
13225 * testsuite/libgomp.c/target-10.c: New test.
13226 * testsuite/libgomp.c++/target-4.C: New test.
13227
13228 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
13229
13230 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
13231 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
13232
13233 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
13234
13235 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
13236 * configure.ac (*-*-rtems*): Assume Pthread is supported.
13237 (pthread.h): Check for this header file.
13238 * configure: Regenerate.
13239
13240 2015-02-25 Tom de Vries <tom@codesourcery.com>
13241
13242 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
13243 (check_reduction_op, check_reduction_macro, max, min):
13244 Declare.
13245 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
13246 function.
13247 (main): Use new functions.
13248
13249 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
13250
13251 * target.c (gomp_load_plugin_for_device): Use const char * instead of
13252 char * for variables holding dlerror return values.
13253 (DLSYM_OPT): Ditto.
13254
13255 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13256
13257 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
13258
13259 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13260 Cesar Philippidis <cesar@codesourcery.com>
13261
13262 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
13263 GOACC_ctaid, and GOACC_nctaid routines.
13264
13265 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13266
13267 PR c/64824
13268 * testsuite/libgomp.c/atomic-18.c: New test.
13269 * testsuite/libgomp.c++/atomic-16.C: New test.
13270
13271 2015-02-04 Jakub Jelinek <jakub@redhat.com>
13272
13273 PR c/64824
13274 PR c/64868
13275 * testsuite/libgomp.c/pr64824.c: New test.
13276 * testsuite/libgomp.c/pr64868.c: New test.
13277 * testsuite/libgomp.c++/pr64824.C: New test.
13278 * testsuite/libgomp.c++/pr64868.C: New test.
13279
13280 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
13281
13282 PR libgomp/64635
13283 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
13284 Link with -lpthread.
13285 * config/aix/plugin-suffix.h: Delete.
13286
13287 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
13288
13289 PR libgomp/64635
13290 * configure.tgt (*-*-aix*): Use config_path "aix posix".
13291 (*-*-darwin*): Use config_path "bsd darwin posix".
13292 (*-*-hpux*): Use config_path "hpux posix".
13293 * target.c: Add include of plugin-suffix.h and use
13294 SONAME_SUFFIX macro.
13295 * config/aix/plugin-suffix.h: New file.
13296 * config/darwin/plugin-suffix.h: New file.
13297 * config/hpux/plugin-suffix.h: New file.
13298 * config/posix/plugin-suffix.h: New file.
13299
13300 2015-01-23 Jakub Jelinek <jakub@redhat.com>
13301
13302 PR middle-end/64734
13303 * libgomp.c/pr64734.c: New test.
13304
13305 2015-01-23 Tom de Vries <tom@codesourcery.com>
13306
13307 PR libgomp/64672
13308 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
13309
13310 2015-01-23 Tom de Vries <tom@codesourcery.com>
13311
13312 PR libgomp/64707
13313 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
13314 dg-options.
13315
13316 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
13317
13318 PR libgomp/64625
13319 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
13320 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
13321 formal parameter. Update all users.
13322 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
13323 Document unused formal parameter.
13324
13325 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
13326
13327 * oacc-parallel.c: Don't include <alloca.h>.
13328 (GOACC_parallel): Use gomp_alloca instead of alloca.
13329
13330 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
13331
13332 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
13333
13334 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
13335 James Norris <jnorris@codesourcery.com>
13336 Tom de Vries <tom@codesourcery.com>
13337 Julian Brown <julian@codesourcery.com>
13338 Cesar Philippidis <cesar@codesourcery.com>
13339 Nathan Sidwell <nathan@codesourcery.com>
13340 Tobias Burnus <burnus@net-b.de>
13341
13342 * Makefile.am (search_path): Add $(top_srcdir)/../include.
13343 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
13344 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
13345 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
13346 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
13347 Include $(top_srcdir)/plugin/Makefrag.am.
13348 (nodist_libsubinclude_HEADERS): Add openacc.h.
13349 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
13350 openacc.f90, openacc.mod, openacc_kinds.mod.
13351 (omp_lib.mod): Generalize into...
13352 (%.mod): ... this new rule.
13353 (openacc_kinds.mod, openacc.mod): New rules.
13354 * plugin/configfrag.ac: New file.
13355 * configure.ac: Move plugin/offloading support into it. Include
13356 it. Instantiate testsuite/libgomp-test-support.pt.exp.
13357 * plugin/Makefrag.am: New file.
13358 * testsuite/Makefile.am (OFFLOAD_TARGETS)
13359 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
13360 export.
13361 (libgomp-test-support.exp): New rule.
13362 (all-local): Depend on it.
13363 * Makefile.in: Regenerate.
13364 * testsuite/Makefile.in: Regenerate.
13365 * config.h.in: Likewise.
13366 * configure: Likewise.
13367 * configure.tgt: Harden shell syntax.
13368 * env.c: Include "oacc-int.h".
13369 (parse_acc_device_type): New function.
13370 (gomp_debug_var, goacc_device_type, goacc_device_num): New
13371 variables.
13372 (initialize_env): Initialize those. Call
13373 goacc_runtime_initialize.
13374 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
13375 (gomp_fatal): Call gomp_vfatal.
13376 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
13377 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
13378 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
13379 (splay_tree_node, splay_tree, splay_tree_key)
13380 (struct target_mem_desc, struct splay_tree_key_s)
13381 (struct gomp_memory_mapping, struct acc_dispatch_t)
13382 (struct gomp_device_descr, gomp_acc_insert_pointer)
13383 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
13384 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
13385 (gomp_free_memmap, gomp_fini_device): New declarations.
13386 (gomp_vdebug, gomp_debug): New macros.
13387 Include "splay-tree.h".
13388 * libgomp.map (OACC_2.0): New symbol version. Use for
13389 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
13390 acc_set_device_type_h_, acc_get_device_type,
13391 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
13392 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
13393 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
13394 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
13395 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
13396 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
13397 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
13398 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
13399 acc_copyin_array_h_, acc_present_or_copyin,
13400 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
13401 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
13402 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
13403 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
13404 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
13405 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
13406 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
13407 acc_update_device, acc_update_device_32_h_,
13408 acc_update_device_64_h_, acc_update_device_array_h_,
13409 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
13410 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
13411 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
13412 acc_is_present_64_h_, acc_is_present_array_h_,
13413 acc_memcpy_to_device, acc_memcpy_from_device,
13414 acc_get_current_cuda_device, acc_get_current_cuda_context,
13415 acc_get_cuda_stream, acc_set_cuda_stream.
13416 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
13417 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
13418 GOACC_update, GOACC_wait, GOACC_get_thread_num,
13419 GOACC_get_num_threads.
13420 (GOMP_PLUGIN_1.0): New symbol version. Use for
13421 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
13422 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
13423 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
13424 GOMP_PLUGIN_acc_thread.
13425 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
13426 environment variable.
13427 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
13428 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
13429 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
13430 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
13431 (splay_tree_remove): New declarations.
13432 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
13433 (splay_tree_remove, splay_tree_lookup): Move into...
13434 * splay-tree.c: ... this new file.
13435 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
13436 (splay_tree_node, splay_tree, splay_tree_key)
13437 (struct target_mem_desc, struct splay_tree_key_s)
13438 (struct gomp_device_descr): Don't declare.
13439 (num_devices_openmp): New variable.
13440 (gomp_get_num_devices ): Use it.
13441 (gomp_init_targets_once): New function.
13442 (gomp_get_num_devices ): Use it.
13443 (get_kind, gomp_copy_from_async, gomp_free_memmap)
13444 (gomp_fini_device, gomp_register_image_for_device): New functions.
13445 (gomp_map_vars): Add devaddrs parameter.
13446 (gomp_update): Add mm parameter.
13447 (gomp_init_device): Move most of it into...
13448 (gomp_init_tables): ... this new function.
13449 (gomp_register_images_for_device): Remove function.
13450 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
13451 Make them hidden instead of static.
13452 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
13453 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
13454 (GOMP_target_end_data, GOMP_target_update)
13455 (gomp_load_plugin_for_device, gomp_target_init): Update for
13456 OpenACC changes.
13457 * oacc-async.c: New file.
13458 * oacc-cuda.c: Likewise.
13459 * oacc-host.c: Likewise.
13460 * oacc-init.c: Likewise.
13461 * oacc-int.h: Likewise.
13462 * oacc-mem.c: Likewise.
13463 * oacc-parallel.c: Likewise.
13464 * oacc-plugin.c: Likewise.
13465 * oacc-plugin.h: Likewise.
13466 * oacc-ptx.h: Likewise.
13467 * openacc.f90: Likewise.
13468 * openacc.h: Likewise.
13469 * openacc_lib.h: Likewise.
13470 * plugin/plugin-host.c: Likewise.
13471 * plugin/plugin-nvptx.c: Likewise.
13472 * libgomp-plugin.c: Likewise.
13473 * libgomp-plugin.h: Likewise.
13474 * libgomp_target.h: Remove file after merging content into the
13475 former file. Update all users.
13476 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
13477 (offload_targets_s, offload_targets_s_openacc): New variables.
13478 (check_effective_target_openacc_nvidia_accel_present)
13479 (check_effective_target_openacc_nvidia_accel_selected): New
13480 procedures.
13481 (libgomp_init): Update for OpenACC changes.
13482 * testsuite/libgomp-test-support.exp.in: New file.
13483 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
13484 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13485 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13486 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
13487 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
13488 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13489 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
13490 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13491 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13492 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
13493 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
13494 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13495 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
13496 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13497 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
13498 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13499 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
13500 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
13501 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
13502 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
13503 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
13504 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
13505 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13506 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13507 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13508 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13509 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13510 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13511 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13512 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13513 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13514 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13515 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13516 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
13517 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
13518 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13519 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13520 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13521 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
13522 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
13523 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13524 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13525 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13526 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13527 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13528 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
13529 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13530 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13531 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13532 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13533 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13534 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13535 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13536 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13537 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13538 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13539 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13540 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13541 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13542 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
13543 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
13544 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
13545 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13546 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13547 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13548 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
13549 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
13550 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13551 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13552 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13553 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
13554 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13555 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13556 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13557 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
13558 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
13559 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13560 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13561 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
13562 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
13563 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
13564 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
13565 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13566 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13567 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13568 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
13569 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
13570 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13571 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13572 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
13573 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
13574 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
13575 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
13576 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13577 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13578 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13579 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13580 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
13581 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13582 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13583 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
13584 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
13585 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
13586 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13587 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
13588 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
13589 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
13590 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
13591 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
13592 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13593 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
13594 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
13595 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13596 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
13597 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
13598 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
13599 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
13600 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
13601 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
13602 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
13603 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
13604 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
13605 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13606 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
13607 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
13608 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
13609 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
13610 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
13611 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
13612 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
13613 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
13614 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
13615 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13616 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
13617 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13618 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13619 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13620 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13621 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13622 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
13623 Likewise.
13624 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
13625 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
13626 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
13627 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13628 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
13629 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13630 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
13631 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13632 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13633 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13634 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13635 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13636 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13637 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
13638 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
13639 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
13640 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
13641 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
13642 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
13643 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
13644 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
13645 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
13646 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
13647 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
13648 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
13649 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
13650 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13651 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13652 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13653 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13654 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13655 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13656 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13657 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13658 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
13659 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
13660 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
13661 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
13662 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
13663 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
13664 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
13665 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
13666 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
13667 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
13668 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
13669 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
13670 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
13671 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
13672 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
13673 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13674 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13675 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13676 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13677 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13678 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
13679 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
13680 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
13681 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
13682 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
13683 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
13684
13685 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
13686 Julian Brown <julian@codesourcery.com>
13687 David Malcolm <dmalcolm@redhat.com>
13688
13689 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
13690 to "GNU Offloading and Multi Processing Runtime Library". Change
13691 all users.
13692 * configure: Regenerate.
13693 * libgomp.texi: Update.
13694
13695 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
13696
13697 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
13698 "$tgt_dir/lib32".
13699 * configure: Regenerate.
13700
13701 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
13702 "intelmic" in $offload_targets.
13703
13704 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13705
13706 Update copyright years.
13707
13708 * libgomp.texi: Bump @copying's copyright year.
13709
13710 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13711
13712 * testsuite/lib/libgomp.exp: Load target-utils.exp.
13713 Move load of target-supports.exp earlier.
13714
13715 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
13716
13717 * testsuite/libgomp.c/target-9.c: New test.
13718
13719 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
13720
13721 * config.h.in: Regenerate.
13722 * configure: Regenerate.
13723 * configure.ac: Add GCC_CHECK_EMUTLS.
13724 * libgomp.h: Add check for USE_EMUTLS: this case
13725 is equal to HAVE_TLS.
13726 * team.c: Likewise.
13727
13728 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
13729
13730 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
13731
13732 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
13733 Ilya Verbin <ilya.verbin@intel.com>
13734
13735 * testsuite/libgomp.c/target-critical-1.c: New test.
13736
13737 2014-11-26 Jakub Jelinek <jakub@redhat.com>
13738
13739 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
13740 to dg-options unless expensive testing is on.
13741 (TESTITERS): Define to N if not defined.
13742 (main): Use TESTITERS instead of N.
13743 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
13744 dg-additional-options depending on whether expensive testing is on.
13745 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
13746 Decrease N to 100000 and CHUNKSZ to 10000.
13747
13748 2014-11-24 Jakub Jelinek <jakub@redhat.com>
13749
13750 PR fortran/63938
13751 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
13752 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
13753
13754 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
13755
13756 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
13757
13758 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
13759
13760 PR bootstrap/63784
13761 * configure: Regenerated.
13762
13763 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
13764
13765 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
13766 vect_simd_clones effective target.
13767 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13768
13769 2014-11-14 Jakub Jelinek <jakub@redhat.com>
13770
13771 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
13772 of 32 as block_size.
13773 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
13774 instead of 32 as block_size.
13775
13776 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
13777 Ilya Verbin <ilya.verbin@intel.com>
13778
13779 * Makefile.in: Regenerate.
13780 * configure: Regenerate.
13781 * configure.ac: Set up offload_additional_options,
13782 offload_additional_lib_paths and offload_targets.
13783 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
13784 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
13785 * testsuite/Makefile.in: Regenerate.
13786 * testsuite/lib/libgomp.exp (libgomp_init): Append
13787 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
13788 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
13789 build directory to LD_LIBRARY_PATH for intelmic offload targets.
13790
13791 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
13792 Ilya Verbin <ilya.verbin@intel.com>
13793 Kirill Yukhin <kirill.yukhin@intel.com>
13794 Ilya Tocar <ilya.tocar@intel.com>
13795
13796 * testsuite/lib/libgomp.exp
13797 (check_effective_target_offload_device): New.
13798 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
13799 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
13800 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
13801 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
13802 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
13803 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
13804 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
13805 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
13806 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
13807 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
13808 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
13809 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
13810 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
13811 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
13812 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
13813 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
13814 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
13815 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
13816 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
13817 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
13818 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
13819 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
13820 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
13821 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
13822 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
13823 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
13824 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
13825 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
13826 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
13827 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
13828 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
13829 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
13830 * testsuite/libgomp.c/target-7.c: Fix test.
13831 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
13832 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
13833 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
13834 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
13835 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
13836 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
13837 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
13838 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
13839 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
13840 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
13841 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
13842 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
13843 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
13844 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
13845 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
13846 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
13847 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
13848 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
13849 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13850 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
13851 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
13852 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
13853 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
13854 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
13855 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
13856 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
13857 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
13858 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
13859 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
13860 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
13861 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
13862
13863 2014-11-13 Jakub Jelinek <jakub@redhat.com>
13864 Ilya Verbin <ilya.verbin@intel.com>
13865 Thomas Schwinge <thomas@codesourcery.com>
13866 Andrey Turetskiy <andrey.turetskiy@intel.com>
13867
13868 * libgomp.map (GOMP_4.0.1): New symbol version.
13869 Add GOMP_offload_register.
13870 * libgomp_target.h: New file.
13871 * splay-tree.h: New file.
13872 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
13873 (gomp_target_init): New forward declaration.
13874 (gomp_is_initialized): New static variable.
13875 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
13876 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
13877 New structures.
13878 (offload_images, num_offload_images, devices, num_devices): New static
13879 variables.
13880 (splay_compare): New static function.
13881 (struct gomp_device_descr): New structure.
13882 (gomp_get_num_devices): Call gomp_target_init.
13883 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
13884 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
13885 (GOMP_offload_register): New function.
13886 (GOMP_target): Arrange for host callback to be performed in a separate
13887 initial thread and contention group, inheriting ICVs from
13888 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
13889 Add device initialization and lookup for target function in splay tree.
13890 (GOMP_target_data): Add device initialization and call gomp_map_vars.
13891 (GOMP_target_end_data): Call gomp_unmap_vars.
13892 (GOMP_target_update): Add device initialization and call gomp_update.
13893 (gomp_load_plugin_for_device, gomp_register_images_for_device)
13894 (gomp_target_init): New static functions.
13895
13896 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
13897 Thomas Schwinge <thomas@codesourcery.com>
13898 Ilya Verbin <ilya.verbin@intel.com>
13899 Andrey Turetskiy <andrey.turetskiy@intel.com>
13900
13901 * config.h.in: Regenerate.
13902 * configure: Regenerate.
13903 * configure.ac: Check for libdl, required for plugin support.
13904 (PLUGIN_SUPPORT): Define if plugins are supported.
13905 (enable_offload_targets): Support Intel MIC targets.
13906 (OFFLOAD_TARGETS): List of target names suitable for offloading.
13907
13908 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13909
13910 PR target/63610
13911 * configure: Regenerate.
13912
13913 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13914
13915 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
13916
13917 2014-10-06 Marek Polacek <polacek@redhat.com>
13918
13919 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
13920 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
13921 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
13922 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13923
13924 2014-10-06 Marek Polacek <polacek@redhat.com>
13925
13926 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
13927 * testsuite/libgomp.c/nqueens-1.c: Likewise.
13928 * testsuite/libgomp.c/pr26943-3.c: Likewise.
13929 * testsuite/libgomp.c/pr26943-4.c: Likewise.
13930 * testsuite/libgomp.c/pr36802-2.c: Likewise.
13931 * testsuite/libgomp.c/pr36802-3.c: Likewise.
13932 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
13933 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13934 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
13935 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
13936 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
13937 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
13938 * testsuite/libgomp.c/omp-single-1.c: Likewise.
13939 * testsuite/libgomp.c/omp-single-2.c: Likewise.
13940 * testsuite/libgomp.c/omp_matvec.c: Likewise.
13941 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
13942 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
13943 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
13944 declarations.
13945
13946 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13947
13948 PR libgomp/61200
13949 * testsuite/libgomp.c/pr61200.c: New test.
13950
13951 2014-09-18 Jakub Jelinek <jakub@redhat.com>
13952
13953 PR c++/63248
13954 * testsuite/libgomp.c++/pr63248.C: New test.
13955
13956 2014-08-04 Jakub Jelinek <jakub@redhat.com>
13957
13958 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
13959 is not zero, but taskgroup->children is NULL and there are
13960 any task->children, schedule those instead of waiting.
13961 * testsuite/libgomp.c/depend-6.c: New test.
13962 * testsuite/libgomp.c/depend-7.c: New test.
13963 * testsuite/libgomp.c/depend-8.c: New test.
13964 * testsuite/libgomp.c/depend-9.c: New test.
13965 * testsuite/libgomp.c/depend-10.c: New test.
13966
13967 2014-08-01 Jakub Jelinek <jakub@redhat.com>
13968
13969 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
13970 (struct gomp_taskwait): New type.
13971 (struct gomp_task): Add taskwait and parent_depends_on, remove
13972 in_taskwait and taskwait_sem fields.
13973 (gomp_finish_task): Don't destroy taskwait_sem.
13974 * task.c (gomp_init_task): Don't init in_taskwait, instead init
13975 taskwait and parent_depends_on.
13976 (GOMP_task): For if (0) tasks with depend clause that depend on
13977 earlier tasks don't defer them, instead call
13978 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
13979 Initialize redundant_out field, for redundant out entries just
13980 move them at the end of linked list instead of removing them
13981 completely, and set redundant_out flag instead of redundant.
13982 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
13983 that task.
13984 (gomp_task_run_post_handle_dependers): If parent is in
13985 gomp_task_maybe_wait_for_dependencies and newly runnable task
13986 is not parent_depends_on, queue it in parent->children linked
13987 list after all runnable tasks with parent_depends_on set.
13988 Adjust for addition of taskwait indirection.
13989 (gomp_task_run_post_remove_parent): If parent is in
13990 gomp_task_maybe_wait_for_dependencies and task to be removed
13991 is parent_depends_on, decrement n_depend and if needed awake
13992 parent. Adjust for addition of taskwait indirection.
13993 (GOMP_taskwait): Adjust for addition of taskwait indirection.
13994 (gomp_task_maybe_wait_for_dependencies): New function.
13995 * testsuite/libgomp.c/depend-5.c: New test.
13996
13997 2014-07-13 Tobias Burnus <burnus@net-b.de>
13998
13999 * testsuite/libgomp.fortran/pr34020.f90: Make compile
14000 with TS 18508/Fortran 2015.
14001
14002 2014-07-06 Marek Polacek <polacek@redhat.com>
14003
14004 PR c/6940
14005 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
14006
14007 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14008
14009 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
14010 matches regex $lang_source_re, add $lang_include_flags to options.
14011 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
14012 * testsuite/libgomp.c++/c++.exp: Likewise.
14013 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
14014 and lang_include_flags instead of adding -fintrinsic-modules-path= to
14015 ALWAYS_CFLAGS.
14016 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
14017
14018 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
14019
14020 * testsuite/libgomp.fortran/fortran.exp: Explain
14021 gfortran-dg-runtest usage.
14022
14023 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14024
14025 * testsuite/libgomp.fortran/simd5.f90: New test.
14026 * testsuite/libgomp.fortran/simd6.f90: New test.
14027 * testsuite/libgomp.fortran/simd7.f90: New test.
14028
14029 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14030
14031 * testsuite/libgomp.c/for-2.c: Define SC to static for
14032 #pragma omp for simd testing.
14033 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
14034 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
14035 SC macro.
14036 * testsuite/libgomp.c/simd-14.c: New test.
14037 * testsuite/libgomp.c/simd-15.c: New test.
14038 * testsuite/libgomp.c/simd-16.c: New test.
14039 * testsuite/libgomp.c/simd-17.c: New test.
14040 * testsuite/libgomp.c++/for-10.C: Define SC to static for
14041 #pragma omp for simd testing.
14042 * testsuite/libgomp.c++/simd10.C: New test.
14043 * testsuite/libgomp.c++/simd11.C: New test.
14044 * testsuite/libgomp.c++/simd12.C: New test.
14045 * testsuite/libgomp.c++/simd13.C: New test.
14046
14047 * testsuite/libgomp.fortran/aligned1.f03: New test.
14048 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
14049 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
14050 tasks with !$omp parallel !$omp single.
14051 * testsuite/libgomp.fortran/target8.f90: New test.
14052 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
14053 not to use trim in the combiner, instead call elemental function.
14054 (fn): New elemental function.
14055 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
14056 Make elemental.
14057 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
14058 omp_in): Likewise.
14059 * testsuite/libgomp.fortran/udr12.f90: New test.
14060 * testsuite/libgomp.fortran/udr13.f90: New test.
14061 * testsuite/libgomp.fortran/udr14.f90: New test.
14062 * testsuite/libgomp.fortran/udr15.f90: New test.
14063
14064 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14065
14066 * omp_lib.f90.in (openmp_version): Set to 201307.
14067 * omp_lib.h.in (openmp_version): Likewise.
14068 * testsuite/libgomp.c/target-8.c: New test.
14069 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
14070 and inbranch clauses.
14071 * testsuite/libgomp.fortran/depend-3.f90: New test.
14072 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
14073 openmp_version.
14074 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14075 * testsuite/libgomp.fortran/target1.f90: New test.
14076 * testsuite/libgomp.fortran/target2.f90: New test.
14077 * testsuite/libgomp.fortran/target3.f90: New test.
14078 * testsuite/libgomp.fortran/target4.f90: New test.
14079 * testsuite/libgomp.fortran/target5.f90: New test.
14080 * testsuite/libgomp.fortran/target6.f90: New test.
14081 * testsuite/libgomp.fortran/target7.f90: New test.
14082
14083 2014-06-10 Jakub Jelinek <jakub@redhat.com>
14084
14085 PR fortran/60928
14086 * testsuite/libgomp.fortran/allocatable9.f90: New test.
14087 * testsuite/libgomp.fortran/allocatable10.f90: New test.
14088 * testsuite/libgomp.fortran/allocatable11.f90: New test.
14089 * testsuite/libgomp.fortran/allocatable12.f90: New test.
14090 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
14091 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
14092 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
14093 * testsuite/libgomp.fortran/associate1.f90: New test.
14094 * testsuite/libgomp.fortran/associate2.f90: New test.
14095 * testsuite/libgomp.fortran/procptr1.f90: New test.
14096
14097 2014-06-06 Jakub Jelinek <jakub@redhat.com>
14098
14099 * testsuite/libgomp.fortran/simd1.f90: New test.
14100 * testsuite/libgomp.fortran/udr1.f90: New test.
14101 * testsuite/libgomp.fortran/udr2.f90: New test.
14102 * testsuite/libgomp.fortran/udr3.f90: New test.
14103 * testsuite/libgomp.fortran/udr4.f90: New test.
14104 * testsuite/libgomp.fortran/udr5.f90: New test.
14105 * testsuite/libgomp.fortran/udr6.f90: New test.
14106 * testsuite/libgomp.fortran/udr7.f90: New test.
14107 * testsuite/libgomp.fortran/udr8.f90: New test.
14108 * testsuite/libgomp.fortran/udr9.f90: New test.
14109 * testsuite/libgomp.fortran/udr10.f90: New test.
14110 * testsuite/libgomp.fortran/udr11.f90: New test.
14111
14112 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
14113
14114 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
14115 vect_simd_clones effective target.
14116 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
14117
14118 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14119
14120 PR middle-end/61252
14121 * testsuite/libgomp.c++/simd-9.C: New test.
14122
14123 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
14124
14125 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
14126 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
14127 texts according to their @menu entry positions.
14128
14129 2014-05-11 Jakub Jelinek <jakub@redhat.com>
14130
14131 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
14132 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
14133 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
14134 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
14135 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
14136 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
14137 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
14138 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
14139 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
14140 * testsuite/libgomp.fortran/depend-1.f90: New test.
14141 * testsuite/libgomp.fortran/depend-2.f90: New test.
14142 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
14143 * testsuite/libgomp.fortran/simd1.f90: New test.
14144 * testsuite/libgomp.fortran/simd2.f90: New test.
14145 * testsuite/libgomp.fortran/simd3.f90: New test.
14146 * testsuite/libgomp.fortran/simd4.f90: New test.
14147 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
14148
14149 2014-05-02 Jakub Jelinek <jakub@redhat.com>
14150
14151 * testsuite/libgomp.c/simd-10.c: New test.
14152 * testsuite/libgomp.c/simd-11.c: New test.
14153 * testsuite/libgomp.c/simd-12.c: New test.
14154 * testsuite/libgomp.c/simd-13.c: New test.
14155
14156 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14157
14158 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
14159 atomic type clauses in any order and optional comma in between.
14160 * testsuite/libgomp.c++/atomic-15.C: Likewise.
14161 * testsuite/libgomp.c/atomic-17.c: Likewise.
14162
14163 * testsuite/libgomp.c/simd-7.c: New test.
14164 * testsuite/libgomp.c/simd-8.c: New test.
14165 * testsuite/libgomp.c/simd-9.c: New test.
14166 * testsuite/libgomp.c/loop-16.c: New test.
14167
14168 2014-04-02 Richard Henderson <rth@redhat.com>
14169
14170 * config/linux/futex.h (futex_wait): Get error value from errno.
14171 (futex_wake): Likewise.
14172
14173 2014-03-25 Jakub Jelinek <jakub@redhat.com>
14174
14175 PR c++/60331
14176 * testsuite/libgomp.c++/udr-11.C: New test.
14177 * testsuite/libgomp.c++/udr-12.C: New test.
14178 * testsuite/libgomp.c++/udr-13.C: New test.
14179 * testsuite/libgomp.c++/udr-14.C: New test.
14180 * testsuite/libgomp.c++/udr-15.C: New test.
14181 * testsuite/libgomp.c++/udr-16.C: New test.
14182 * testsuite/libgomp.c++/udr-17.C: New test.
14183 * testsuite/libgomp.c++/udr-18.C: New test.
14184 * testsuite/libgomp.c++/udr-19.C: New test.
14185
14186 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14187
14188 Update copyright years
14189
14190 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14191
14192 * hashtab.h: Use the standard form for the copyright notice.
14193
14194 2014-01-02 Tobias Burnus <burnus@net-b.de>
14195
14196 * libgomp.texi: Bump @copying's copyright year.
14197
14198 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
14199
14200 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
14201 alloca () with __builtin_alloca ().
14202 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
14203 * testsuite/libgomp.c/lock-3.c: Likewise.
14204 * testsuite/libgomp.c/pr48591.c: Likewise.
14205
14206 2013-12-17 Jakub Jelinek <jakub@redhat.com>
14207
14208 PR testsuite/59534
14209 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
14210 comparisons.
14211
14212 2013-12-16 Jakub Jelinek <jakub@redhat.com>
14213
14214 PR libgomp/58756
14215 * testsuite/libgomp.c/pr58756.c: New test.
14216
14217 2013-12-12 Jakub Jelinek <jakub@redhat.com>
14218
14219 PR libgomp/59467
14220 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
14221 !$omp parallel.
14222
14223 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
14224
14225 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
14226 ALWAYS_CFLAGS.
14227 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
14228 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
14229 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
14230 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
14231 Likewise.
14232
14233 * libgomp_g.h: Include <stddef.h> for size_t.
14234
14235 * libgomp.spec.in: Update comment about libgomp's dependencies.
14236 * configure.ac: Likewise.
14237 * configure: Regenerate.
14238
14239 2013-10-16 Tobias Burnus <burnus@net-b.de>
14240
14241 * libgomp.texi: (Runtime Library Routines): Update references for
14242 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
14243 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
14244 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
14245 (Environment Variables): Update references for OpenMP 4.0. Add
14246 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
14247 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
14248 order.
14249
14250 2013-10-14 Jakub Jelinek <jakub@redhat.com>
14251
14252 * env.c (parse_bind_var): Initialize value to avoid
14253 (false positive) warning.
14254
14255 2013-10-12 Jakub Jelinek <jakub@redhat.com>
14256
14257 PR libgomp/58691
14258 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
14259 to check variable.
14260 (gomp_init_num_threads): Move i variable declaration into
14261 #ifdef CPU_ALLOC_SIZE block.
14262 * config/linux/affinity.c (gomp_affinity_init_level): Test
14263 gomp_places_list_len == 0 rather than gomp_places_list == 0
14264 when checking for topology reading error.
14265 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
14266 * env.c (parse_affinity): Add ignore argument, if true, don't populate
14267 gomp_places_list, only parse env var and always return false.
14268 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
14269 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
14270 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
14271 and either of these variables were parsed correctly into a places
14272 list.
14273
14274 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14275 Jakub Jelinek <jakub@redhat.com>
14276
14277 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
14278 of 5 loopfn matches.
14279 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14280 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14281 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14282 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14283 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14284 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14285 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14286 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14287
14288 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14289
14290 * Makefile.am (omp_lib.mod): Streamline rule.
14291 * Makefile.in: Regenerate.
14292
14293 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
14294 exceptions.
14295
14296 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
14297 * testsuite/libgomp.fortran/lib1.f90: Likewise.
14298 * testsuite/libgomp.fortran/lib2.f: Likewise.
14299 * testsuite/libgomp.fortran/lib3.f: Likewise.
14300
14301 * configure.ac: Typo fix.
14302 * configure: Regenerate.
14303
14304 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
14305 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14306
14307 * omp.h.in: Don't touch the user's namespace.
14308
14309 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14310 Tobias Burnus <burnus@net-b.de>
14311 Richard Henderson <rth@redhat.com>
14312
14313 * target.c: New file.
14314 * Makefile.am (libgomp_la_SOURCES): Add target.c.
14315 * Makefile.in: Regenerated.
14316 * libgomp_g.h (GOMP_task): Add depend argument.
14317 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14318 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14319 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
14320 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14321 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14322 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
14323 GOMP_taskgroup_start, GOMP_taskgroup_end,
14324 GOMP_parallel_sections): New prototypes.
14325 * fortran.c (omp_is_initial_device): Add ialias_redirect.
14326 (omp_is_initial_device_): New function.
14327 (ULP, STR1, STR2, ialias_redirect): Removed.
14328 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
14329 omp_set_default_device_8_, omp_get_default_device_,
14330 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
14331 functions.
14332 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14333 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14334 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
14335 @@GOMP_4.0.
14336 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
14337 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
14338 omp_set_default_device, omp_set_default_device_,
14339 omp_set_default_device_8_, omp_get_default_device,
14340 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
14341 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
14342 omp_get_team_num_): Export @@OMP_4.0.
14343 * team.c (struct gomp_thread_start_data): Add place field.
14344 (gomp_thread_start): Clear thr->thread_pool and
14345 thr->task before returning. Use gomp_team_barrier_wait_final
14346 instead of gomp_team_barrier_wait. Initialize thr->place.
14347 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
14348 team_cancelled and task_queued_count fields.
14349 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
14350 before calling pthread_exit.
14351 (gomp_free_thread): No longer static. Use
14352 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
14353 (gomp_team_start): Add flags argument. Set
14354 thr->thread_pool->threads_busy to nthreads immediately after creating
14355 new pool. Use gomp_managed_threads_lock instead of
14356 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
14357 (gomp_team_end): Use gomp_managed_threads_lock instead of
14358 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
14359 of gomp_team_barrier_wait. If team->team_cancelled, call
14360 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
14361 rather than thr->ts.work_share.
14362 (initialize_team): Don't call gomp_sem_init here.
14363 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
14364 caller.
14365 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
14366 * env.c (gomp_global_icv): Add default_device_var, target_data and
14367 bind_var initializers.
14368 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14369 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14370 gomp_places_list_len): New variables.
14371 (parse_bind_var, parse_one_place, parse_places_var): New functions.
14372 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
14373 sized places.
14374 (gomp_cancel_var): New global variable.
14375 (parse_int): New function.
14376 (handle_omp_display_env): New function.
14377 (initialize_env): Use it. Initialize default_device_var.
14378 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
14379 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
14380 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
14381 been successfully parsed (and call gomp_init_affinity in that case).
14382 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14383 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14384 omp_get_team_num, omp_is_initial_device): New functions.
14385 * libgomp.h: Include stdlib.h.
14386 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
14387 Define.
14388 (struct target_mem_desc): Forward declare.
14389 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
14390 and thread_limit_var fields.
14391 (gomp_get_num_devices): New prototype.
14392 (gomp_cancel_var): New extern decl.
14393 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
14394 team_cancelled and task_queued_count fields. Add comments about
14395 task_{,queued_,running_}count.
14396 (gomp_cancel_kind): New enum.
14397 (gomp_work_share_end_cancel): New prototype.
14398 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
14399 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
14400 and depend fields.
14401 (struct gomp_taskgroup): New type.
14402 (struct gomp_task_depend_entry,
14403 struct gomp_dependers_vec): New types.
14404 (gomp_finish_task): Free depend_hash if non-NULL.
14405 (struct gomp_team_state): Add place_partition_off
14406 and place_partition_len fields.
14407 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14408 gomp_places_list_len): New extern decls.
14409 (struct gomp_thread): Add place field.
14410 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14411 (gomp_init_thread_affinity): Add place argument.
14412 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14413 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14414 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14415 gomp_affinity_init_level, gomp_affinity_print_place): New
14416 prototypes.
14417 (gomp_team_start): Add flags argument.
14418 (gomp_thread_limit_var, gomp_remaining_threads_count,
14419 gomp_remaining_threads_lock): Remove.
14420 (gomp_managed_threads_lock): New variable.
14421 (struct gomp_thread_pool): Add threads_busy field.
14422 (gomp_free_thread): New prototype.
14423 * task.c: Include hashtab.h.
14424 (hash_entry_type): New typedef.
14425 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
14426 (gomp_init_task): Clear dependers, depend_hash, depend_count,
14427 copy_ctors_done and taskgroup fields.
14428 (GOMP_task): Add depend argument, handle depend clauses. If
14429 gomp_team_barrier_cancelled or if it's taskgroup has been
14430 cancelled, don't queue or start new tasks. Set copy_ctors_done
14431 field if needed. Initialize taskgroup field. If copy_ctors_done
14432 and already cancelled, don't discard the task. If taskgroup is
14433 non-NULL, enqueue the task into taskgroup queue. Increment
14434 num_children field in taskgroup. Increment task_queued_count.
14435 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
14436 gomp_task_run_post_remove_taskgroup): New inline functions.
14437 (gomp_task_run_post_handle_depend_hash,
14438 gomp_task_run_post_handle_dependers,
14439 gomp_task_run_post_handle_depend): New functions.
14440 (GOMP_taskwait): Use them. If more than one new tasks
14441 have been queued, wake other threads if needed.
14442 (gomp_barrier_handle_tasks): Likewise. If
14443 gomp_team_barrier_cancelled, don't start any new tasks, just free
14444 all tasks.
14445 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
14446 * omp_lib.f90.in
14447 (omp_proc_bind_kind, omp_proc_bind_false,
14448 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14449 omp_proc_bind_spread): New params.
14450 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14451 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14452 omp_get_team_num, omp_is_initial_device): New interfaces.
14453 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
14454 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
14455 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
14456 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
14457 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
14458 useless use omp_lib_kinds.
14459 * omp.h.in (omp_proc_bind_t): New typedef.
14460 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14461 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14462 omp_get_team_num, omp_is_initial_device): New prototypes.
14463 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
14464 through to gomp_team_start.
14465 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
14466 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
14467 Adjust gomp_parallel_loop_start callers.
14468 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14469 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14470 GOMP_loop_end_cancel): New functions.
14471 (GOMP_parallel_end): Add ialias_redirect.
14472 * hashtab.h: New file.
14473 * libgomp.texi (Environment Variables): Minor cleanup,
14474 update section refs to OpenMP 4.0rc2.
14475 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
14476 environment variables.
14477 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
14478 team->work_shares_to_free to thr->ts.work_share before calling
14479 free_work_share.
14480 (gomp_work_share_end_cancel): New function.
14481 * config/linux/proc.c: Include errno.h.
14482 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
14483 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
14484 sizeof (cpu_set_t) to determine number of iterations. Fix up check
14485 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
14486 gomp_cpuset_size is sizeof (cpu_set_t).
14487 (gomp_init_num_threads): Initialize gomp_cpuset_size,
14488 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
14489 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
14490 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
14491 contain any logical CPUs.
14492 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
14493 is NULL. Use gomp_cpusetp instead of &cpuset and pass
14494 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
14495 pthread_getaffinity_np. Check gomp_places_list instead of
14496 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
14497 * config/linux/bar.c (gomp_barrier_wait_end,
14498 gomp_barrier_wait_last): Use BAR_* defines.
14499 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
14500 from state where needed. Set work_share_cancelled to 0 on last
14501 thread.
14502 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
14503 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
14504 functions.
14505 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
14506 Add cpusetsize argument.
14507 (gomp_cpuset_size, gomp_cpusetp): Declare.
14508 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
14509 (affinity_counter): Remove.
14510 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
14511 if CPU_ALLOC_SIZE isn't defined.
14512 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
14513 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
14514 bind current thread to the first place.
14515 (gomp_init_thread_affinity): Rewritten. Add place argument, just
14516 pthread_setaffinity_np to gomp_places_list[place].
14517 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14518 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14519 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14520 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
14521 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14522 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14523 (gomp_barrier_t): Add awaited_final field.
14524 (gomp_barrier_init): Initialize awaited_final field.
14525 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
14526 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
14527 prototypes.
14528 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
14529 defines.
14530 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
14531 gomp_team_barrier_cancelled): New inline functions.
14532 (gomp_barrier_last_thread,
14533 gomp_team_barrier_set_task_pending,
14534 gomp_team_barrier_clear_task_pending,
14535 gomp_team_barrier_set_waiting_for_tasks,
14536 gomp_team_barrier_waiting_for_tasks,
14537 gomp_team_barrier_done): Use BAR_* defines.
14538 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
14539 (gomp_barrier_wait_end): Use BAR_* defines.
14540 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
14541 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
14542 Use BAR_* defines.
14543 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
14544 gomp_team_barrier_cancel): New functions.
14545 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
14546 argument.
14547 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14548 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14549 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14550 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
14551 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14552 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14553 (gomp_barrier_t): Add cancellable field.
14554 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
14555 gomp_team_barrier_cancel): New prototypes.
14556 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
14557 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
14558 gomp_team_barrier_cancelled): New inline functions.
14559 (gomp_barrier_wait_start, gomp_barrier_last_thread,
14560 gomp_team_barrier_set_task_pending,
14561 gomp_team_barrier_clear_task_pending,
14562 gomp_team_barrier_set_waiting_for_tasks,
14563 gomp_team_barrier_waiting_for_tasks,
14564 gomp_team_barrier_done): Use BAR_* defines.
14565 * barrier.c (GOMP_barrier_cancel): New function.
14566 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
14567 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14568 omp_proc_bind_spread): New params.
14569 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14570 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14571 omp_get_team_num, omp_is_initial_device): New externals.
14572 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
14573 New functions.
14574 (gomp_resolve_num_threads): Adjust for thread_limit now being in
14575 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
14576 infinity. If not nested, just return minimum of max_num_threads
14577 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
14578 to the returned value. Otherwise, don't update atomically
14579 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
14580 (GOMP_parallel_end): Adjust for thread_limit now being in
14581 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
14582 infinity. Adjust threads_busy in the pool rather than
14583 gomp_remaining_threads_count. Remember team->nthreads and call
14584 gomp_team_end before adjusting threads_busy, if not nested
14585 afterwards, just set it to 1 non-atomically. Add ialias.
14586 (GOMP_parallel_start): Adjust gomp_team_start caller.
14587 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
14588 * testsuite/libgomp.c/affinity-1.c: New test.
14589 * testsuite/libgomp.c/atomic-15.c: New test.
14590 * testsuite/libgomp.c/atomic-16.c: New test.
14591 * testsuite/libgomp.c/atomic-17.c: New test.
14592 * testsuite/libgomp.c/cancel-for-1.c: New test.
14593 * testsuite/libgomp.c/cancel-for-2.c: New test.
14594 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
14595 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
14596 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
14597 * testsuite/libgomp.c/cancel-sections-1.c: New test.
14598 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
14599 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
14600 * testsuite/libgomp.c/depend-1.c: New test.
14601 * testsuite/libgomp.c/depend-2.c: New test.
14602 * testsuite/libgomp.c/depend-3.c: New test.
14603 * testsuite/libgomp.c/depend-4.c: New test.
14604 * testsuite/libgomp.c/for-1.c: New test.
14605 * testsuite/libgomp.c/for-1.h: New file.
14606 * testsuite/libgomp.c/for-2.c: New test.
14607 * testsuite/libgomp.c/for-2.h: New file.
14608 * testsuite/libgomp.c/for-3.c: New test.
14609 * testsuite/libgomp.c/pr58392.c: New test.
14610 * testsuite/libgomp.c/simd-1.c: New test.
14611 * testsuite/libgomp.c/simd-2.c: New test.
14612 * testsuite/libgomp.c/simd-3.c: New test.
14613 * testsuite/libgomp.c/simd-4.c: New test.
14614 * testsuite/libgomp.c/simd-5.c: New test.
14615 * testsuite/libgomp.c/simd-6.c: New test.
14616 * testsuite/libgomp.c/target-1.c: New test.
14617 * testsuite/libgomp.c/target-2.c: New test.
14618 * testsuite/libgomp.c/target-3.c: New test.
14619 * testsuite/libgomp.c/target-4.c: New test.
14620 * testsuite/libgomp.c/target-5.c: New test.
14621 * testsuite/libgomp.c/target-6.c: New test.
14622 * testsuite/libgomp.c/target-7.c: New test.
14623 * testsuite/libgomp.c/taskgroup-1.c: New test.
14624 * testsuite/libgomp.c/thread-limit-1.c: New test.
14625 * testsuite/libgomp.c/thread-limit-2.c: New test.
14626 * testsuite/libgomp.c/thread-limit-3.c: New test.
14627 * testsuite/libgomp.c/udr-1.c: New test.
14628 * testsuite/libgomp.c/udr-2.c: New test.
14629 * testsuite/libgomp.c/udr-3.c: New test.
14630 * testsuite/libgomp.c++/affinity-1.C: New test.
14631 * testsuite/libgomp.c++/atomic-10.C: New test.
14632 * testsuite/libgomp.c++/atomic-11.C: New test.
14633 * testsuite/libgomp.c++/atomic-12.C: New test.
14634 * testsuite/libgomp.c++/atomic-13.C: New test.
14635 * testsuite/libgomp.c++/atomic-14.C: New test.
14636 * testsuite/libgomp.c++/atomic-15.C: New test.
14637 * testsuite/libgomp.c++/cancel-for-1.C: New test.
14638 * testsuite/libgomp.c++/cancel-for-2.C: New test.
14639 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
14640 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
14641 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
14642 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
14643 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
14644 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
14645 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
14646 * testsuite/libgomp.c++/cancel-test.h: New file.
14647 * testsuite/libgomp.c++/for-9.C: New test.
14648 * testsuite/libgomp.c++/for-10.C: New test.
14649 * testsuite/libgomp.c++/for-11.C: New test.
14650 * testsuite/libgomp.c++/simd-1.C: New test.
14651 * testsuite/libgomp.c++/simd-2.C: New test.
14652 * testsuite/libgomp.c++/simd-3.C: New test.
14653 * testsuite/libgomp.c++/simd-4.C: New test.
14654 * testsuite/libgomp.c++/simd-5.C: New test.
14655 * testsuite/libgomp.c++/simd-6.C: New test.
14656 * testsuite/libgomp.c++/simd-7.C: New test.
14657 * testsuite/libgomp.c++/simd-8.C: New test.
14658 * testsuite/libgomp.c++/target-1.C: New test.
14659 * testsuite/libgomp.c++/target-2.C: New test.
14660 * testsuite/libgomp.c++/target-2-aux.cc: New file.
14661 * testsuite/libgomp.c++/target-3.C: New test.
14662 * testsuite/libgomp.c++/taskgroup-1.C: New test.
14663 * testsuite/libgomp.c++/udr-1.C: New test.
14664 * testsuite/libgomp.c++/udr-2.C: New test.
14665 * testsuite/libgomp.c++/udr-3.C: New test.
14666 * testsuite/libgomp.c++/udr-4.C: New test.
14667 * testsuite/libgomp.c++/udr-5.C: New test.
14668 * testsuite/libgomp.c++/udr-6.C: New test.
14669 * testsuite/libgomp.c++/udr-7.C: New test.
14670 * testsuite/libgomp.c++/udr-8.C: New test.
14671 * testsuite/libgomp.c++/udr-9.C: New test.
14672
14673 2013-09-20 Jakub Jelinek <jakub@redhat.com>
14674
14675 PR testsuite/57605
14676 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
14677 ALWAYS_CFLAGS.
14678
14679 2013-09-20 Alan Modra <amodra@gmail.com>
14680
14681 * configure: Regenerate.
14682
14683 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14684
14685 * testsuite/libgomp.c/sections-2.c: New test.
14686
14687 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
14688
14689 * testsuite/libgomp.fortran/strassen.f90:
14690 Add dg-skip-if aarch64_tiny.
14691
14692 2013-06-20 Iain Sandoe <iain@codesourcery.com>
14693 Cesar Philippidis <cesar@codesourcery.com>
14694
14695 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
14696 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
14697 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
14698 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14699 * testsuite/libgomp.graphite/graphite.exp: Likewise.
14700 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
14701 Use dg-runtest rather than gfortran-dg-runtest.
14702
14703 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
14704
14705 * testsuite/libgomp.c/icv-2.c: Extend current handling of
14706 Linux-based x86 systems to cover all GNU systems.
14707 * testsuite/libgomp.c/lock-3.c: Likewise.
14708 * testsuite/libgomp.c/pr48591.c: Likewise.
14709
14710 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
14711
14712 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
14713 GNU/Hurd, as done for Linux-based systems.
14714
14715 * config/posix/ptrlock.h: Fix comment.
14716
14717 2013-05-27 Tobias Burnus <burnus@net-b.de>
14718
14719 PR fortran/57423
14720 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
14721 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
14722 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
14723 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
14724 omp_destroy_nest_lock): Correct arguments to match the one in
14725 the OpenMP spec.
14726 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
14727 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
14728 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
14729 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
14730
14731 2013-05-16 Jakub Jelinek <jakub@redhat.com>
14732
14733 * testsuite/libgomp.c/loop-13.c: New test.
14734 * testsuite/libgomp.c/loop-14.c: New test.
14735 * testsuite/libgomp.c/loop-15.c: New test.
14736 * testsuite/libgomp.c++/loop-13.C: New test.
14737 * testsuite/libgomp.c++/loop-14.C: New test.
14738 * testsuite/libgomp.c++/loop-15.C: New test.
14739
14740 2013-02-06 Jakub Jelinek <jakub@redhat.com>
14741
14742 PR middle-end/56217
14743 * testsuite/libgomp.c++/pr56217.C: New test.
14744
14745 2013-02-01 Alan Modra <amodra@gmail.com>
14746
14747 * task.c (GOMP_task, GOMP_taskwait): Comment.
14748
14749 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
14750 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
14751
14752 PR libgomp/55561
14753 * config/linux/wait.h (do_spin): Use atomic load for addr.
14754 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
14755 for intptr and ptrlock.
14756 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
14757 for ptrlock.
14758
14759 2013-01-22 Alan Modra <amodra@gmail.com>
14760
14761 PR libgomp/51376
14762 PR libgomp/56073
14763 * task.c (GOMP_task): Revert 2011-12-09 change.
14764 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
14765 barrier to read task->children..
14766 (gomp_barrier_handle_tasks): ..and matching atomic store with
14767 release barrier here when setting parent->children to NULL.
14768
14769 2013-01-16 Jakub Jelinek <jakub@redhat.com>
14770 Tobias Burnus <burnus@net-b.de>
14771
14772 PR driver/55884
14773 * testsuite/libgomp.fortran/fortran.exp: Use
14774 -fintrinsic-modules-path= instead of
14775 -fintrinsic-modules-path.
14776
14777 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
14778
14779 Update copyright years.
14780
14781 2012-12-19 Tobias Burnus <burnus@net-b.de>
14782
14783 * testsuite/libgomp.fortran/fortran.exp: Set
14784 -fintrinsic-modules-path.
14785
14786 2012-12-19 Tobias Burnus <burnus@net-b.de>
14787
14788 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
14789 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
14790
14791 2012-11-21 Jakub Jelinek <jakub@redhat.com>
14792
14793 PR libgomp/55411
14794 * team.c (gomp_free_thread): Decrease gomp_managed_threads
14795 if pool had any threads_used.
14796
14797 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
14798
14799 * testsuite/libgomp.c++/pr24455.C: Use
14800 -Wl,-undefined,dynamic_lookup on darwin.
14801
14802 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
14803
14804 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
14805
14806 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
14807
14808 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
14809
14810 2012-10-23 Ian Bolton <ian.bolton@arm.com>
14811 Jim MacArthur <jim.macarthur@arm.com>
14812 Marcus Shawcroft <marcus.shawcroft@arm.com>
14813 Nigel Stephens <nigel.stephens@arm.com>
14814 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14815 Richard Earnshaw <rearnsha@arm.com>
14816 Sofiane Naci <sofiane.naci@arm.com>
14817 Stephen Thomas <stephen.thomas@arm.com>
14818 Tejas Belagod <tejas.belagod@arm.com>
14819 Yufeng Zhang <yufeng.zhang@arm.com>
14820
14821 * configure.tgt: Add AArch64.
14822
14823 2012-10-04 Jason Merrill <jason@redhat.com>
14824
14825 * testsuite/libgomp.c++/tls-init1.C: New.
14826
14827 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
14828
14829 * configure: Regenerated.
14830
14831 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
14832
14833 * config/linux/mips/futex.h (sys_futex0): Change to static
14834 function with noinline, nomips16 attributes under MIPS16. Adjust
14835 asm statement to place 'li v0,SYS_futex' immediately before
14836 syscall insn.
14837
14838 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
14839
14840 * libgomp.texi (Library Index): Renamed from "Index" to prevent
14841 conflict with index.html on case-insensitive file systems.
14842
14843 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
14844
14845 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
14846 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
14847
14848 2012-07-02 Richard Guenther <rguenther@suse.de>
14849 Michael Matz <matz@suse.de>
14850 Tobias Grosser <tobias@grosser.es>
14851 Sebastian Pop <sebpop@gmail.com>
14852
14853 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
14854 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14855 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14856 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14857
14858 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
14859
14860 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
14861
14862 2012-06-22 Richard Guenther <rguenther@suse.de>
14863
14864 Merge from graphite branch
14865 2012-01-13 Tobias Grosser <tobias@grosser.es>
14866
14867 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
14868 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14869
14870 2012-06-07 Jakub Jelinek <jakub@redhat.com>
14871
14872 PR middle-end/53580
14873 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
14874 use GOMP_barrier () call instead.
14875 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14876 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14877 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
14878 call GOMP_barrier instead.
14879 * testsuite/libgomp.fortran/vla5.f90: Likewise.
14880
14881 2012-06-06 Jakub Jelinek <jakub@redhat.com>
14882
14883 PR libgomp/52993
14884 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
14885 argument to memset call.
14886
14887 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
14888
14889 * configure: Regenerated.
14890
14891 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14892
14893 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
14894
14895 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
14896
14897 PR bootstrap/52812
14898 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
14899
14900 2012-03-22 Jakub Jelinek <jakub@redhat.com>
14901
14902 PR middle-end/52547
14903 * testsuite/libgomp.c/pr52547.c: New test.
14904
14905 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14906
14907 * testsuite/lib/libgomp.exp: load fortran-modules.exp
14908
14909 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14910
14911 * configure.tgt (mips-sgi-irix6*): Remove.
14912
14913 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14914
14915 * configure.tgt (alpha*-dec-osf*): Remove.
14916
14917 * config/osf/sem.h: Remove.
14918 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
14919
14920 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
14921
14922 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
14923
14924 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14925
14926 PR libstdc++/52188
14927 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
14928 Remove ENABLE_SYMVERS_SOL2.
14929 * configure: Regenerate.
14930 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
14931 (PREPROCESS): New variable.
14932 (libgomp.ver): New target.
14933 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
14934 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
14935 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
14936 Use libgomp.ver.
14937 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
14938 * Makefile.in: Regenerate.
14939
14940 2012-02-14 Walter Lee <walt@tilera.com>
14941
14942 * configure.tgt: Handle tilegx and tilepro.
14943 * config/linux/tile/futex.h: New file.
14944
14945 2012-02-08 Richard Guenther <rguenther@suse.de>
14946
14947 PR tree-optimization/46886
14948 * testsuite/libgomp.c/pr46886.c: New testcase.
14949
14950 2012-01-25 Matthias Klose <doko@ubuntu.com>
14951
14952 * config/linux/arm: Remove empty directory.
14953 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
14954
14955 2011-12-09 Alan Modra <amodra@gmail.com>
14956
14957 PR libgomp/51376
14958 * task.c (GOMP_taskwait): Don't access task->children outside of
14959 task_lock mutex region.
14960 (GOMP_task): Likewise.
14961
14962 2011-12-06 Jakub Jelinek <jakub@redhat.com>
14963
14964 PR libgomp/51132
14965 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
14966 to file scope.
14967 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14968 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14969 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14970 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14971 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14972
14973 2011-12-02 Alan Modra <amodra@gmail.com>
14974
14975 * config/linux/affinity.c: Use atomic rather than sync builtin.
14976 * config/linux/lock.c: Likewise.
14977 * config/linux/ptrlock.h: Likewise.
14978 * config/linux/ptrlock.c: Likewise.
14979 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
14980 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
14981 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
14982 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
14983 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
14984 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
14985 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
14986 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
14987 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
14988 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
14989
14990 2011-11-30 Alan Modra <amodra@gmail.com>
14991
14992 PR libgomp/51298
14993 * config/linux/bar.h: Use atomic rather than sync builtins.
14994 * config/linux/bar.c: Likewise. Add missing acquire
14995 synchronisation on generation field.
14996 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
14997 double unlock.
14998
14999 2011-11-30 Alan Modra <amodra@gmail.com>
15000
15001 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
15002 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
15003 * config/linux/mutex.h: Use atomic rather than sync builtins.
15004 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
15005 * config/linux/omp-lock.h: Comment fix.
15006 * config/linux/arm/mutex.h: Delete.
15007 * config/linux/powerpc/mutex.h: Delete.
15008 * config/linux/ia64/mutex.h: Delete.
15009 * config/linux/mips/mutex.h: Delete.
15010
15011 2011-11-30 Alan Modra <amodra@gmail.com>
15012
15013 PR libgomp/51249
15014 * config/linux/sem.h: Rewrite.
15015 * config/linux/sem.c: Rewrite.
15016
15017 2011-11-28 Richard Henderson <rth@redhat.com>
15018
15019 * libgomp.h (enum memmodel): New.
15020
15021 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
15022
15023 * configure: Regenerate.
15024
15025 2011-10-10 Matthias Klose <doko@ubuntu.com>
15026
15027 * config/posix95: Remove empty directory.
15028
15029 2011-08-26 Jakub Jelinek <jakub@redhat.com>
15030
15031 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
15032
15033 2011-08-19 Jakub Jelinek <jakub@redhat.com>
15034
15035 PR fortran/49792
15036 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
15037 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
15038
15039 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15040
15041 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
15042
15043 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15044
15045 PR libgomp/49965
15046 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
15047
15048 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
15049
15050 * config/linux/proc.h: New.
15051 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
15052 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
15053 (gomp_init_num_threads): Update call to cpuset_popcount.
15054 (get_num_procs): Ditto.
15055 * config/linux/affinity.c (gomp_init_affinity): Call
15056 gomp_cpuset_popcount.
15057
15058 2011-08-02 Jakub Jelinek <jakub@redhat.com>
15059
15060 PR fortran/42041
15061 PR fortran/46752
15062 * omp.h.in (omp_in_final): New prototype.
15063 * omp_lib.f90.in (omp_in_final): New interface.
15064 (omp_integer_kind, omp_logical_kind): Remove
15065 and replace all its uses in the module with 4.
15066 (openmp_version): Change to 201107.
15067 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
15068 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
15069 kind for the parameters.
15070 (omp_in_final): New external.
15071 (openmp_version): Change to 201107.
15072 * task.c (omp_in_final): New function.
15073 (gomp_init_task): Initialize final_task.
15074 (GOMP_task): Remove unused attribute from flags. Handle final
15075 tasks.
15076 (GOMP_taskyield): New function.
15077 (omp_in_final): Return true if if (false) or final (true) task
15078 or descendant of final (true).
15079 * fortran.c (omp_in_final_): New function.
15080 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
15081 (GOMP_3.0): Export GOMP_taskyield.
15082 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
15083 variables.
15084 (parse_unsigned_long_list): New function.
15085 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
15086 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
15087 even if parse_affinity returned false.
15088 * config/linux/affinity.c (gomp_init_affinity): Handle
15089 gomp_cpu_affinity_len == 0.
15090 * libgomp_g.h (GOMP_taskyield): New prototype.
15091 * libgomp.h (struct gomp_task): Add final_task field.
15092 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
15093 * team.c (gomp_team_start): Override new task's nthreads_var icv
15094 if list form OMP_NUM_THREADS has been used and it has value for
15095 the new nesting level.
15096
15097 * testsuite/libgomp.c/atomic-11.c: New test.
15098 * testsuite/libgomp.c/atomic-12.c: New test.
15099 * testsuite/libgomp.c/atomic-13.c: New test.
15100 * testsuite/libgomp.c/atomic-14.c: New test.
15101 * testsuite/libgomp.c/reduction-6.c: New test.
15102 * testsuite/libgomp.c/task-5.c: New test.
15103 * testsuite/libgomp.c++/atomic-2.C: New test.
15104 * testsuite/libgomp.c++/atomic-3.C: New test.
15105 * testsuite/libgomp.c++/atomic-4.C: New test.
15106 * testsuite/libgomp.c++/atomic-5.C: New test.
15107 * testsuite/libgomp.c++/atomic-6.C: New test.
15108 * testsuite/libgomp.c++/atomic-7.C: New test.
15109 * testsuite/libgomp.c++/atomic-8.C: New test.
15110 * testsuite/libgomp.c++/atomic-9.C: New test.
15111 * testsuite/libgomp.c++/task-8.C: New test.
15112 * testsuite/libgomp.c++/reduction-4.C: New test.
15113 * testsuite/libgomp.fortran/allocatable7.f90: New test.
15114 * testsuite/libgomp.fortran/allocatable8.f90: New test.
15115 * testsuite/libgomp.fortran/crayptr3.f90: New test.
15116 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
15117 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
15118 * testsuite/libgomp.fortran/pointer1.f90: New test.
15119 * testsuite/libgomp.fortran/pointer2.f90: New test.
15120 * testsuite/libgomp.fortran/task4.f90: New test.
15121
15122 2011-08-02 Tobias Burnus <burnus@net-b.de>
15123
15124 * libgomp.texi: Update OpenMP spec references to 3.1.
15125 (omp_in_final,OMP_PROC_BIND): New sections.
15126 (OMP_NUM_THREADS): Document that the value can be now a list.
15127 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
15128
15129 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
15130
15131 * config/linux/x86/futex.h: Check __x86_64__ instead of
15132 __LP64__.
15133
15134 2011-07-29 Jakub Jelinek <jakub@redhat.com>
15135
15136 PR middle-end/49897
15137 PR middle-end/49898
15138 * testsuite/libgomp.c/pr49897-1.c: New test.
15139 * testsuite/libgomp.c/pr49897-2.c: New test.
15140 * testsuite/libgomp.c/pr49898-1.c: New test.
15141 * testsuite/libgomp.c/pr49898-2.c: New test.
15142
15143 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
15144
15145 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
15146 for ia32 instead of ilp32.
15147
15148 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
15149 * testsuite/libgomp.c/atomic-6.c: Likewise.
15150
15151 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
15152
15153 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
15154 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
15155
15156 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15157
15158 PR libgomp/45351
15159 * config/osf/sem.h: New file.
15160 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
15161
15162 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15163
15164 PR target/49541
15165 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
15166 ldflags.
15167
15168 2011-07-15 Jakub Jelinek <jakub@redhat.com>
15169
15170 * config/linux/wait.h (do_spin): New inline, largely copied
15171 from do_wait, just don't do futex_wait here, instead return true if
15172 it should be done.
15173 (do_wait): Implement using do_spin.
15174 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
15175 to prototype.
15176 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15177 __sync_bool_compare_and_swap, pass the oldval to
15178 gomp_mutex_lock_slow.
15179 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
15180 If all mutex contenders are just spinning and not sleeping, don't
15181 change state to 2 unnecessarily. Optimize the loop when state has
15182 already become 2 to use just one atomic operation per loop instead
15183 of two.
15184 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
15185 to prototype.
15186 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15187 __sync_bool_compare_and_swap, pass the oldval to
15188 gomp_mutex_lock_slow.
15189
15190 2011-06-22 Jakub Jelinek <jakub@redhat.com>
15191
15192 PR libgomp/49490
15193 * iter.c (gomp_iter_static_next): For chunk size 0
15194 only use n ceil/ nthreads size for the first
15195 n % nthreads threads in the team instead of
15196 all threads except for the last few ones which
15197 get less work or none at all.
15198 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
15199 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
15200 chunk argument, set run_sched_modifier to 0 for static
15201 resp. 1 for other kinds. If chunk argument is 0
15202 and not static, set value to 1.
15203
15204 2011-05-19 Jakub Jelinek <jakub@redhat.com>
15205
15206 PR c++/49043
15207 * testsuite/libgomp.c++/pr49043.C: New test.
15208
15209 PR c++/48869
15210 * testsuite/libgomp.c++/pr48869.C: New test.
15211
15212 2011-05-06 Jakub Jelinek <jakub@redhat.com>
15213
15214 PR fortran/48894
15215 * fortran.c: Include limits.h.
15216 (TO_INT): Define.
15217 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
15218 *set.
15219 (omp_set_num_threads_8_, omp_set_schedule_8_,
15220 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
15221 omp_get_team_size_8_): Use TO_INT macro.
15222 * testsuite/libgomp.fortran/pr48894.f90: New test.
15223
15224 2011-04-13 Jakub Jelinek <jakub@redhat.com>
15225
15226 PR middle-end/48591
15227 * testsuite/libgomp.c/pr48591.c: New test.
15228
15229 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15230
15231 PR bootstrap/48135
15232 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
15233 * configure: Regenerate.
15234
15235 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15236
15237 PR fortran/47886
15238 * testsuite/libgomp.fortran/task3.f90: New test.
15239
15240 2011-02-24 Tobias Burnus <burnus@net-b.de>
15241
15242 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
15243
15244 2011-02-23 Jakub Jelinek <jakub@redhat.com>
15245
15246 PR libgomp/47854
15247 * libgomp.texi (omp_get_wtime): Don't say time in the past
15248 must be Unix Epoch.
15249
15250 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15251
15252 PR libgomp/47804
15253 * testsuite/libgomp.fortran/fortran.exp: Check for both
15254 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
15255 but $blddir != "", still append ${blddir}/${lang_library_path}
15256 to ld_library_path.
15257
15258 2011-02-16 Tobias Burnus <burnus@net-b.de>
15259
15260 PR libgomp/47758
15261 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
15262 of libquadmath.a before adding its libpath to ldflags.
15263
15264 2011-02-14 Jakub Jelinek <jakub@redhat.com>
15265
15266 PR libgomp/47731
15267 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
15268 to FUTEX_WAIT futex syscall.
15269 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
15270
15271 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15272
15273 * configure: Regenerate.
15274
15275 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
15276
15277 PR libstdc++/36104
15278 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
15279
15280 2011-01-16 Gerald Pfeifer
15281
15282 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
15283
15284 2010-12-14 Jakub Jelinek <jakub@redhat.com>
15285
15286 PR fortran/46874
15287 * libgomp.fortran/allocatable6.f90: New test.
15288
15289 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15290
15291 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
15292 * configure: Regenerate.
15293
15294 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
15295
15296 PR target/40125
15297 PR lto/46695
15298 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
15299 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
15300 * aclocal.m4: Regenerate.
15301 * configure: Regenerate.
15302 * Makefile.in: Regenerate.
15303 * testsuite/Makefile.in: Regenerate.
15304
15305 2010-12-02 Jakub Jelinek <jakub@redhat.com>
15306
15307 PR fortran/46753
15308 * libgomp.fortran/pr46753.f90: New test.
15309
15310 PR libgomp/43706
15311 * env.c (initialize_env): Default to spin count 300000
15312 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
15313 is specified.
15314
15315 PR libgomp/45240
15316 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
15317 at the end if sync builtins aren't supported.
15318
15319 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15320
15321 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
15322
15323 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15324
15325 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
15326
15327 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
15328
15329 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
15330
15331 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15332 Tobias Burnus <burnus@net-b.de>
15333
15334 PR fortran/32049
15335 * configure.ac:
15336 * configure: Regenerate.
15337
15338 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
15339
15340 * config/linux/futex.h: New.
15341 * config/linux/arm/mutex.h: New.
15342 * configure.tgt (arm*-*-linux*): Add config path.
15343
15344 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
15345
15346 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15347
15348 2010-09-23 Tobias Burnus <burnus@net-b.de>
15349
15350 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
15351 Change Fortran datatype to LOGICAL.
15352 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
15353 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
15354
15355 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15356
15357 * configure: Regenerate.
15358
15359 2010-07-26 Jakub Jelinek <jakub@redhat.com>
15360
15361 * libgomp.texi: Add function keyword to a couple of Fortran
15362 interfaces, use integer instead of int for Fortran.
15363
15364 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
15365
15366 * libgomp.texi: Fix spelling and pasto problems throughout.
15367 Adjust prototypes to match code.
15368
15369 2010-07-24 Tobias Burnus <burnus@net-b.de>
15370
15371 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
15372 silence -fwhole-file warning.
15373
15374 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15375
15376 * configure.tgt (*-*-solaris2.[56]*): Removed.
15377
15378 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15379
15380 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
15381 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
15382 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
15383 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
15384 targetting solaris2*.
15385 * configure: Regenerate.
15386 * config.h.in: Regenerate.
15387
15388 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
15389 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
15390 Add libgomp_version_dep.
15391 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
15392 versioning.
15393 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
15394 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
15395 * Makefile.in: Regenerate.
15396
15397 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
15398 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15399 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
15400 to common block, protected by
15401 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15402
15403 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
15404
15405 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
15406
15407 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
15408
15409 PR bootstrap/43170
15410 * configure: Regenerate.
15411
15412 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15413
15414 PR other/43620
15415 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
15416 * configure: Regenerate.
15417 * Makefile.in: Regenerate.
15418 * testsuite/Makefile.in: Regenerate.
15419
15420 2010-04-26 Jakub Jelinek <jakub@redhat.com>
15421
15422 PR c/43893
15423 * testsuite/libgomp.c/pr43893.c: New test.
15424 * testsuite/libgomp.c++/pr43893.C: New test.
15425
15426 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15427
15428 PR middle-end/43570
15429 * testsuite/libgomp.fortran/vla8.f90: New test.
15430
15431 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15432
15433 PR libgomp/43706
15434 * config/linux/affinity.c (gomp_init_affinity): Decrease
15435 gomp_available_cpus if affinity mask confines the process to fewer
15436 CPUs.
15437 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
15438 non-NULL, just return gomp_available_cpus.
15439
15440 PR libgomp/43569
15441 * sections.c (gomp_sections_init): Initialize ws->mode.
15442
15443 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15444
15445 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
15446 not unused bar variable.
15447 * configure: Regenerate.
15448
15449 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15450
15451 * Makefile.in: Regenerate.
15452 * aclocal.m4: Regenerate.
15453 * testsuite/Makefile.in: Regenerate.
15454
15455 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15456
15457 PR libgomp/42942
15458 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
15459 (initialize_env): Adjust callers.
15460 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
15461 when the argument is 0.
15462
15463 * testsuite/libgomp.c/pr42942.c: New test.
15464
15465 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15466
15467 PR middle-end/42644
15468 PR middle-end/42130
15469 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15470 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
15471
15472 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15473
15474 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
15475 * testsuite/libgomp.c++/task-6.C: Likewise.
15476
15477 2010-01-28 Steve Ellcey <sje@cup.hp.com>
15478
15479 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
15480
15481 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
15482
15483 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
15484 * configure: Regenerate.
15485
15486 2010-01-26 Jakub Jelinek <jakub@redhat.com>
15487
15488 PR fortran/42866
15489 * testsuite/libgomp.fortran/allocatable5.f90: New test.
15490
15491 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
15492
15493 * configure.ac: Test for executability of GFORTRAN.
15494 * configure: Regenerate.
15495
15496 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15497
15498 * configure: Regenerate.
15499
15500 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15501
15502 PR libgomp/42602
15503 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
15504
15505 2010-01-03 Richard Guenther <rguenther@suse.de>
15506
15507 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
15508
15509 2009-12-23 Sebastian Pop <sebpop@gmail.com>
15510
15511 * testsuite/libgomp.graphite/pr4118.c: New.
15512
15513 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15514
15515 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
15516 for darwin, protect the test with require-effective-target tls_runtime.
15517 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
15518
15519 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15520
15521 PR target/41605
15522 * testsuite/lib/libgomp.exp: Provide -B options to allow for
15523 link spec %s substitutions for static libraries.
15524
15525 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
15526
15527 PR testsuite/42135
15528 * libgomp.graphite/force-parallel-2.c: Reduce array size.
15529
15530 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15531
15532 * Makefile.in: Regenerate.
15533 * configure: Regenerate.
15534 * testsuite/Makefile.in: Regenerate.
15535
15536 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
15537
15538 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
15539 settings for LC_ALL and LANG.
15540
15541 2009-11-25 Jakub Jelinek <jakub@redhat.com>
15542
15543 PR fortran/42162
15544 * testsuite/libgomp.fortran/pr42162.f90: New test.
15545
15546 2009-11-13 Jakub Jelinek <jakub@redhat.com>
15547
15548 PR middle-end/42029
15549 * testsuite/libgomp.c/pr42029.c: New test.
15550
15551 2009-10-26 Jakub Jelinek <jakub@redhat.com>
15552
15553 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
15554 *s. Accept ld version without text in ()s.
15555 * configure: Regenerated.
15556
15557 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
15558
15559 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
15560
15561 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15562
15563 PR libgomp/41418
15564 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
15565 or a hyphen (happens with fortran language disabled).
15566 * configure: Regenerate.
15567
15568 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15569
15570 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
15571 use sed script portable to Solaris /bin/sed for extracting ld
15572 version.
15573 * configure: Regenerate.
15574
15575 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
15576
15577 * testsuite/libgomp.graphite/bounds.c: New test.
15578
15579 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15580
15581 * Makefile.am (libgomp_la_LINK): New.
15582 * Makefile.in: Regenerate.
15583
15584 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15585
15586 * configure.ac (AC_PREREQ): Bump to 2.64.
15587
15588 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15589
15590 * Makefile.am (install-html, install-pdf): Remove.
15591 * Makefile.in: Regenerate.
15592
15593 * Makefile.in: Regenerate.
15594 * aclocal.m4: Regenerate.
15595 * config.h.in: Regenerate.
15596 * configure: Regenerate.
15597 * testsuite/Makefile.in: Regenerate.
15598
15599 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15600
15601 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
15602 * Makefile.in: Regenerate.
15603
15604 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
15605
15606 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
15607 * Makefile.in: Regenerate.
15608
15609 2009-08-19 Tobias Burnus <burnus@net-b.de>
15610
15611 PR fortran/41102
15612 omp_lib.h.in: Fix -std=f95 errors.
15613
15614 2009-08-14 David Edelsohn <edelsohn@gnu.org>
15615
15616 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
15617 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
15618 * testsuite/libgomp.graphite/graphite.exp: New.
15619
15620 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
15621
15622 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
15623 only build.
15624
15625 2009-08-04 David Daney <ddaney@caviumnetworks.com>
15626
15627 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
15628 needed memory barrier semantics.
15629 * config/linux/mips/mutex.h: New file.
15630
15631 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15632
15633 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
15634
15635 2009-07-16 Joseph Myers <joseph@codesourcery.com>
15636
15637 * configure: Regenerate.
15638
15639 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
15640
15641 PR testsuite/40699
15642 PR testsuite/40707
15643 PR testsuite/40709
15644 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
15645 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
15646 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
15647
15648 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
15649
15650 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
15651 options when choosing a multilib.
15652
15653 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
15654
15655 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
15656 ld_library_path. Use add_path. Add just find_libgcc_s to
15657 ld_library_path, not every libgcc multilib directory.
15658 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
15659 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
15660 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
15661 Use add_path.
15662 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
15663
15664 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
15665
15666 * Makefile.am (LTLDFLAGS): Define.
15667 (LINK): Define.
15668 * Makefile.in: Regenerate.
15669
15670 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
15671
15672 PR fortran/39718
15673 * testsuite/libgomp.fortran/fortran.exp: Don't link with
15674 libgfortranbegin, check existence of libgfortran.a instead of
15675 libgfortranbegin.a.
15676
15677 2009-05-20 Jakub Jelinek <jakub@redhat.com>
15678
15679 PR libgomp/40174
15680 * team.c (gomp_thread_start): Destroy thr->release semaphore.
15681 (gomp_free_pool_helper): Likewise.
15682
15683 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
15684 Jakub Jelinek <jakub@redhat.com>
15685
15686 PR fortran/35423
15687 * testsuite/libgomp.fortran/workshare2.f90: New test.
15688
15689 2009-04-09 Nick Clifton <nickc@redhat.com>
15690
15691 * iter.c: Change copyright header to refer to version 3 of the
15692 GNU General Public License with version 3.1 of the GCC Runtime
15693 Library Exception and to point readers at the COPYING3 and
15694 COPYING3.RUNTIME files and the FSF's license web page.
15695 * alloc.c: Likewise.
15696 * barrier.c: Likewise.
15697 * config/bsd/proc.c: Likewise.
15698 * config/linux/affinity.c: Likewise.
15699 * config/linux/alpha/futex.h: Likewise.
15700 * config/linux/bar.c: Likewise.
15701 * config/linux/bar.h: Likewise.
15702 * config/linux/ia64/futex.h: Likewise.
15703 * config/linux/ia64/mutex.h: Likewise.
15704 * config/linux/lock.c: Likewise.
15705 * config/linux/mips/futex.h: Likewise.
15706 * config/linux/mutex.c: Likewise.
15707 * config/linux/mutex.h: Likewise.
15708 * config/linux/powerpc/futex.h: Likewise.
15709 * config/linux/proc.c: Likewise.
15710 * config/linux/ptrlock.c: Likewise.
15711 * config/linux/ptrlock.h: Likewise.
15712 * config/linux/s390/futex.h: Likewise.
15713 * config/linux/sem.c: Likewise.
15714 * config/linux/sem.h: Likewise.
15715 * config/linux/sparc/futex.h: Likewise.
15716 * config/linux/wait.h: Likewise.
15717 * config/linux/x86/futex.h: Likewise.
15718 * config/mingw32/proc.c: Likewise.
15719 * config/mingw32/time.c: Likewise.
15720 * config/posix/affinity.c: Likewise.
15721 * config/posix/bar.c: Likewise.
15722 * config/posix/bar.h: Likewise.
15723 * config/posix/lock.c: Likewise.
15724 * config/posix/mutex.h: Likewise.
15725 * config/posix/proc.c: Likewise.
15726 * config/posix/ptrlock.h: Likewise.
15727 * config/posix/sem.c: Likewise.
15728 * config/posix/sem.h: Likewise.
15729 * config/posix/time.c: Likewise.
15730 * config/posix95/lock.c: Likewise.
15731 * critical.c: Likewise.
15732 * env.c: Likewise.
15733 * error.c: Likewise.
15734 * fortran.c: Likewise.
15735 * iter_ull.c: Likewise.
15736 * libgomp.h: Likewise.
15737 * libgomp_f.h.in: Likewise.
15738 * libgomp_g.h: Likewise.
15739 * loop.c: Likewise.
15740 * loop_ull.c: Likewise.
15741 * omp.h.in: Likewise.
15742 * omp_lib.f90.in: Likewise.
15743 * omp_lib.h.in: Likewise.
15744 * ordered.c: Likewise.
15745 * parallel.c: Likewise.
15746 * sections.c: Likewise.
15747 * single.c: Likewise.
15748 * task.c: Likewise.
15749 * team.c: Likewise.
15750 * work.c: Likewise.
15751
15752 2009-04-09 Jakub Jelinek <jakub@redhat.com>
15753
15754 * testsuite/config/default.exp: Change copyright header to refer to
15755 version 3 of the GNU General Public License and to point readers
15756 at the COPYING3 file and the FSF's license web page.
15757
15758 2009-04-08 Jakub Jelinek <jakub@redhat.com>
15759
15760 PR middle-end/39573
15761 * libgomp.c++/pr39573.C: New test.
15762
15763 2009-04-01 Jakub Jelinek <jakub@redhat.com>
15764
15765 PR other/39591
15766 * testsuite/libgomp.c/pr39591-1.c: New test.
15767 * testsuite/libgomp.c/pr39591-2.c: New test.
15768 * testsuite/libgomp.c/pr39591-3.c: New test.
15769
15770 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
15771
15772 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
15773 * testsuite/libgomp.c/atomic-6.c: Ditto.
15774
15775 2009-03-23 Jakub Jelinek <jakub@redhat.com>
15776
15777 PR c/39495
15778 * testsuite/libgomp.c/loop-12.c: New test.
15779 * testsuite/libgomp.c/loop-11.c: New test.
15780 * testsuite/libgomp.c++/loop-11.C: New test.
15781 * testsuite/libgomp.c++/loop-12.C: New test.
15782 * testsuite/libgomp.c++/for-8.C: New test.
15783
15784 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15785
15786 * configure: Regenerate.
15787
15788 2009-02-11 Jakub Jelinek <jakub@redhat.com>
15789
15790 PR middle-end/39154
15791 * testsuite/libgomp.c/pr39154.c: New test.
15792
15793 2009-01-30 Ian Lance Taylor <iant@google.com>
15794
15795 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
15796 libgomp_ld_is_gold. Get gold version number.
15797 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
15798 * configure: Rebuild.
15799
15800 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15801
15802 * testsuite/lib/libgomp.exp: Add -B option for targets that
15803 use libgfortran.a%s in their specs.
15804
15805 2009-01-07 Jakub Jelinek <jakub@redhat.com>
15806
15807 PR libgomp/38086
15808 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
15809 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
15810 HAVE_AS_SYMVER_DIRECTIVE is not defined.
15811 * configure: Regenerated.
15812 * config.h.in: Likewise.
15813
15814 2008-12-28 Jakub Jelinek <jakub@redhat.com>
15815
15816 PR c++/38650
15817 * testsuite/libgomp.c/pr38650.c: New test.
15818 * testsuite/libgomp.c++/pr38650.C: New test.
15819
15820 2008-12-27 Jakub Jelinek <jakub@redhat.com>
15821
15822 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
15823
15824 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
15825
15826 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
15827
15828 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15829
15830 * configure: Regenerate.
15831
15832 2008-12-08 Jakub Jelinek <jakub@redhat.com>
15833
15834 PR middle-end/36802
15835 * testsuite/libgomp.c/pr36802-1.c: New test.
15836 * testsuite/libgomp.c/pr36802-2.c: New test.
15837 * testsuite/libgomp.c/pr36802-3.c: New test.
15838
15839 2008-12-01 Janis Johnson <janis187@us.ibm.com>
15840
15841 PR libgomp/38270
15842 * config/linux/powerpc/mutex.h: New.
15843
15844 2008-12-01 Jakub Jelinek <jakub@redhat.com>
15845
15846 PR c++/38257
15847 * testsuite/libgomp.c++/for-7.C: New test.
15848
15849 PR c++/38348
15850 * testsuite/libgomp.c++/for-6.C: New test.
15851
15852 2008-11-26 Janis Johnson <janis187@us.ibm.com>
15853
15854 PR testsuite/28870
15855 * testsuite/lib/libgomp.exp: Include new timeout library files.
15856 (libgomp_target_compile): Set timeout value from new proc.
15857
15858 2008-11-13 Steve Ellcey <sje@cup.hp.com>
15859
15860 PR libgomp/37938
15861 * config/linux/ia64/mutex.h: New.
15862
15863 2008-11-04 Tobias Burnus <burnus@net-b.de>
15864
15865 PR libgomp/37935
15866 * libgomp.texi (Runtime library routines, environment variables):
15867 Update for OpenMP version 3.0.
15868
15869 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
15870 Steve Ellcey <sje@cup.hp.com>
15871
15872 * configure: Regenerate for new libtool.
15873 * Makefile.in: Ditto.
15874 * testsuite/Makefile.in: Ditto.
15875
15876 2008-09-19 Jakub Jelinek <jakub@redhat.com>
15877 Andreas Tobler <a.tobler@schweiz.org>
15878
15879 * config/bsd/proc.c: New file.
15880 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
15881 * configure.ac: Check for header <sys/sysctl.h>
15882 * configure: Regenerate.
15883 * config.h.in: Likewise.
15884
15885 2008-09-05 Janis Johnson <janis187@us.ibm.com>
15886
15887 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
15888
15889 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
15890
15891 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
15892 * Makefile.in: Regenerated.
15893 * testsuite/Makefile.in: Regenerated.
15894
15895 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
15896
15897 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
15898 depend on blddir if blddir exists.
15899 (libgomp_target_compile): Likewise.
15900 * testsuite/libgomp.c++/c++.exp: Likewise.
15901 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15902
15903 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15904
15905 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
15906 Do not list GPL as Invariant Section.
15907
15908 2008-07-28 Ilie Garbacea <ilie@mips.com>
15909 Chao-ying Fu <fu@mips.com>
15910
15911 * configure.tgt: Enable futex for MIPS.
15912 * config/linux/mips/futex.h: New file.
15913
15914 2008-07-16 Jakub Jelinek <jakub@redhat.com>
15915
15916 * team.c (gomp_team_end): Free team immediately if it has
15917 just one thread.
15918
15919 2008-07-08 David Edelsohn <edelsohn@gnu.org>
15920
15921 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
15922 * testsuite/libgomp.fortran/fortran.exp: Same.
15923 * testsuite/libgomp.c/c.exp: Same.
15924 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
15925 directory to library path first.
15926
15927 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
15928
15929 * env.c (parse_stacksize): Add cast to avoid warning.
15930 (parse_spincount): Likewise.
15931
15932 2008-06-27 Jakub Jelinek <jakub@redhat.com>
15933
15934 * testsuite/libgomp.c/loop-10.c: New test.
15935 * libgomp.c/loop-3.c (main): Add lastprivate clause.
15936 * libgomp.c++/loop-6.C (main): Likewise.
15937
15938 PR debug/36617
15939 * testsuite/libgomp.c/debug-1.c: New test.
15940
15941 2008-06-19 Jakub Jelinek <jakub@redhat.com>
15942
15943 * testsuite/libgomp.c/nqueens-1.c: New test.
15944
15945 PR c++/36523
15946 * testsuite/libgomp.c++/task-7.C: New function.
15947
15948 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15949
15950 * configure: Regenerate.
15951
15952 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15953
15954 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
15955 mutex when HAVE_SYNC_BUILTINS isn't defined.
15956
15957 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15958
15959 * libgomp.texi (omp_test_lock): Fix typo.
15960
15961 2008-06-12 Tobias Burnus <burnus@net-b.de>
15962
15963 * omp_lib.f90.in: Add "implicit none".
15964
15965 2008-06-12 Jakub Jelinek <jakub@redhat.com>
15966
15967 PR middle-end/36506
15968 * testsuite/libgomp.c/reduction-5.c: New test.
15969
15970 2008-06-11 Jakub Jelinek <jakub@redhat.com>
15971
15972 * libgomp.h (struct gomp_task): Add in_tied_task field.
15973 * task.c (gomp_init_task): Initialize it.
15974 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
15975 unconditionally. Don't call gomp_team_barrier_wake if
15976 current task is implicit or if(0) from implicit and number of
15977 running tasks is equal to nthreads - 1.
15978
15979 PR libgomp/36471
15980 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
15981 omp_get_team_size_8): Fix pastos.
15982
15983 PR libgomp/36469
15984 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
15985 * configure: Regenerated.
15986 * config.h.in: Regenerated.
15987 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
15988 defined.
15989
15990 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
15991
15992 PR bootstrap/36452
15993 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
15994 (GOMP_loop_ull_dynamic_start): Likewise.
15995 (GOMP_loop_ull_guided_start): Likewise.
15996 (GOMP_loop_ull_ordered_static_start): Likewise.
15997 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
15998 (GOMP_loop_ull_ordered_guided_start): Likewise.
15999
16000 2008-06-06 Jakub Jelinek <jakub@redhat.com>
16001 Richard Henderson <rth@redhat.com>
16002 Ulrich Drepper <drepper@redhat.com>
16003 Jakob Blomer <jakob.blomer@ira.uka.de>
16004
16005 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
16006 Substitute also OMP_*LOCK_25*.
16007 * configure: Regenerated.
16008 * config.h.in: Regenerated.
16009 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
16010 ptrlock.c and task.c.
16011 * Makefile.in: Regenerated.
16012 * testsuite/Makefile.in: Regenerated.
16013 * task.c: New file.
16014 * loop_ull.c: New file.
16015 * iter_ull.c: New file.
16016 * libgomp.h: Include ptrlock.h.
16017 (enum gomp_task_kind): New type.
16018 (struct gomp_team): Add task_lock, task_queue, task_count,
16019 task_running_count, single_count fields. Add
16020 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
16021 Remove work_share_lock, generation_mask,
16022 oldest_live_gen, num_live_gen and init_work_shares fields, add
16023 work work_share_list_alloc, work_share_list_free and work_share_chunk
16024 fields. Change work_shares from pointer to pointers into an array.
16025 Change ordered_release field into gomp_sem_t ** from flexible array
16026 member. Add implicit_task and initial_work_shares fields.
16027 Move close to the end of the struct.
16028 (struct gomp_team_state): Add single_count, last_work_share,
16029 active_level and level fields, remove work_share_generation.
16030 (gomp_barrier_handle_tasks): New prototype.
16031 (gomp_finish_task): New inline function.
16032 (struct gomp_work_share): Move chunk_size, end, incr into
16033 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
16034 next_ll fields. Reshuffle fields. Add next_alloc,
16035 next_ws, next_free and inline_ordered_team_ids fields, change
16036 ordered_team_ids into pointer from flexible array member.
16037 Add mode field. Put lock and next into a different cache line
16038 from most of the write-once fields.
16039 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
16040 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
16041 gomp_iter_ull_guided_next): New prototypes.
16042 (gomp_new_icv): New prototype.
16043 (struct gomp_thread): Add thread_pool and task fields.
16044 (struct gomp_thread_pool): New type.
16045 (gomp_new_team): New prototype.
16046 (gomp_team_start): Change type of last argument.
16047 (gomp_new_work_share): Removed.
16048 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
16049 (gomp_work_share_init_done): New static inline.
16050 (gomp_throttled_spin_count_var, gomp_available_cpus,
16051 gomp_managed_threads): New extern decls.
16052 (gomp_init_task): New prototype.
16053 (gomp_spin_count_var): New extern var decl.
16054 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
16055 or no alias support, or if not PIC.
16056 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
16057 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
16058 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
16059 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
16060 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
16061 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
16062 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
16063 gomp_test_nest_lock_25): New prototypes.
16064 (omp_lock_symver, strong_alias): Define.
16065 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
16066 decls.
16067 (gomp_end_task): New.
16068 (struct gomp_task_icv, gomp_global_icv): New.
16069 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
16070 (struct gomp_task): New.
16071 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16072 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16073 (gomp_icv): New.
16074 (gomp_schedule_type): Reorder enum to match
16075 omp_sched_t.
16076 * team.c (struct gomp_thread_start_data): Add thread_pool and task
16077 fields.
16078 (gomp_thread_start): Add gomp_team_barrier_wait call.
16079 For non-nested case remove clearing of docked thread thr fields.
16080 Use pool fields instead of global gomp_* variables. Use
16081 gomp_barrier_wait_last when needed. Initialize ts.active_level.
16082 Create tasks for each member thread.
16083 (free_team): Only destroy team barrier, task_lock here and free it.
16084 (gomp_free_thread): Free last_team if non-NULL.
16085 (gomp_team_end): Call gomp_team_barrier_wait instead of
16086 gomp_barrier_wait. For nested case call one extra
16087 gomp_barrier_wait. Move here some destruction from free_team.
16088 Call free_team on pool->last_team if any, rather than freeing
16089 current team. Destroy work_share_list_free_lock ifndef
16090 HAVE_SYNC_BUILTINS.
16091 (gomp_new_icv): New function.
16092 (gomp_threads, gomp_threads_size, gomp_threads_used,
16093 gomp_threads_dock): Removed.
16094 (gomp_thread_destructor): New variable.
16095 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
16096 functions.
16097 (gomp_team_start): Create new pool if current thread doesn't have
16098 one. Use pool fields instead of global gomp_* variables.
16099 Initialize thread_pool field for new threads. Clear single_count.
16100 Change last argument from ws to team, don't create
16101 new team, set ts.work_share to &team->work_shares[0] and clear
16102 ts.last_work_share. Don't clear ts.work_share_generation.
16103 If number of threads changed, adjust atomically gomp_managed_threads.
16104 Use gomp_init_task instead of gomp_new_task,
16105 set thr->task to the corresponding implicit_task array entry.
16106 Create tasks for each member thread. Initialize ts.level.
16107 (initialize_team): Call pthread_key_create on
16108 gomp_thread_destructor.
16109 (team_destructor): New function.
16110 (new_team): Removed.
16111 (gomp_new_team): New function.
16112 (free_team): Free gomp_work_share blocks chained through next_alloc,
16113 instead of freeing work_shares and destroying work_share_lock.
16114 (gomp_team_end): Call gomp_fini_work_share. If number of threads
16115 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
16116 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
16117 of gomp_barrier_wait.
16118 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
16119 instead of gomp_barrier_wait. Call gomp_work_share_init_done
16120 if gomp_work_share_start returned true. Don't unlock ws->lock.
16121 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
16122 of gomp_barrier_wait.
16123 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
16124 gomp_work_share_init_done if gomp_work_share_start returned true.
16125 Don't unlock ws->lock.
16126 * work.c: Include stddef.h.
16127 (free_work_share): Use work_share_list_free_lock instead
16128 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
16129 Call gomp_fini_work_share and then either free ws if orphaned, or
16130 put it into work_share_list_free list of the current team.
16131 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
16132 functions.
16133 (gomp_work_share_start, gomp_work_share_end,
16134 gomp_work_share_end_nowait): Rewritten.
16135 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
16136 (openmp_version): Set to 200805.
16137 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
16138 omp_sched_guided, omp_sched_auto): New parameters.
16139 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16140 omp_set_max_active_levels, omp_get_max_active_levels,
16141 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16142 omp_get_active_level): New interfaces.
16143 * omp_lib.h.in (openmp_version): Set to 200805.
16144 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
16145 omp_sched_guided, omp_sched_auto): New parameters.
16146 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16147 omp_set_max_active_levels, omp_get_max_active_levels,
16148 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16149 omp_get_active_level): New externals.
16150 * loop.c: Include limits.h.
16151 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
16152 GFS_AUTO.
16153 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
16154 Likewise. Use gomp_icv.
16155 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
16156 ts.static_trip here.
16157 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
16158 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
16159 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
16160 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
16161 don't unlock ws->lock, otherwise lock it.
16162 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
16163 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
16164 (gomp_parallel_loop_start): Call gomp_new_team instead of
16165 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
16166 Adjust gomp_team_start caller. Pass 0 as second argument to
16167 gomp_resolve_num_threads.
16168 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
16169 If adding ws->chunk_size nthreads + 1 times after end won't
16170 overflow, set ws->mode to 1.
16171 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
16172 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
16173 GOMP_loop_ull_ordered_static_start,
16174 GOMP_loop_ull_ordered_dynamic_start,
16175 GOMP_loop_ull_ordered_guided_start,
16176 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
16177 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
16178 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
16179 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
16180 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
16181 prototypes.
16182 * libgomp.map: Export lock routines also @@OMP_2.0.
16183 (GOMP_loop_ordered_dynamic_first,
16184 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
16185 GOMP_loop_ordered_static_first): Remove.
16186 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
16187 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
16188 GOMP_loop_ull_ordered_dynamic_next,
16189 GOMP_loop_ull_ordered_dynamic_start,
16190 GOMP_loop_ull_ordered_guided_next,
16191 GOMP_loop_ull_ordered_guided_start,
16192 GOMP_loop_ull_ordered_runtime_next,
16193 GOMP_loop_ull_ordered_runtime_start,
16194 GOMP_loop_ull_ordered_static_next,
16195 GOMP_loop_ull_ordered_static_start,
16196 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
16197 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
16198 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
16199 (omp_set_schedule, omp_get_schedule,
16200 omp_get_thread_limit, omp_set_max_active_levels,
16201 omp_get_max_active_levels, omp_get_level,
16202 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
16203 omp_set_schedule_, omp_set_schedule_8_,
16204 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16205 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16206 omp_get_max_active_levels_, omp_get_level_,
16207 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16208 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16209 New exports @@OMP_3.0.
16210 * omp.h.in (omp_sched_t): New type.
16211 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16212 omp_set_max_active_levels, omp_get_max_active_levels,
16213 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16214 omp_get_active_level): New prototypes.
16215 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
16216 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
16217 gomp_thread_limit_var, gomp_remaining_threads_count,
16218 gomp_remaining_threads_lock): New variables.
16219 (parse_spincount): New function.
16220 (initialize_env): Call gomp_init_num_threads unconditionally.
16221 Initialize gomp_available_cpus. Call parse_spincount,
16222 initialize gomp_{,throttled_}spin_count_var
16223 depending on presence and value of OMP_WAIT_POLICY and
16224 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
16225 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
16226 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
16227 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
16228 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
16229 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16230 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16231 (gomp_global_icv): New.
16232 (parse_schedule): Use it. Parse "auto".
16233 (omp_set_num_threads): Use gomp_icv.
16234 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
16235 Likewise.
16236 (omp_get_max_threads): Move from parallel.c.
16237 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16238 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
16239 add ialias.
16240 (parse_stacksize, parse_wait_policy): New functions.
16241 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
16242 both wrappers for compatibility and new locks.
16243 (omp_set_schedule, omp_get_schedule,
16244 omp_get_thread_limit, omp_set_max_active_levels,
16245 omp_get_max_active_levels, omp_get_level,
16246 omp_get_ancestor_thread_num, omp_get_team_size,
16247 omp_get_active_level): New ialias_redirect.
16248 (omp_set_schedule_, omp_set_schedule_8_,
16249 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16250 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16251 omp_get_max_active_levels_, omp_get_level_,
16252 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16253 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16254 New functions.
16255 * parallel.c: Include limits.h.
16256 (gomp_resolve_num_threads): Add count argument. Rewritten.
16257 (GOMP_parallel_start): Call gomp_new_team and pass that as last
16258 argument to gomp_team_start. Pass 0 as second argument to
16259 gomp_resolve_num_threads.
16260 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
16261 if gomp_thread_limit_var != ULONG_MAX.
16262 (omp_in_parallel): Implement using ts.active_level.
16263 (omp_get_max_threads): Move to env.c.
16264 (omp_get_level, omp_get_ancestor_thread_num,
16265 omp_get_team_size, omp_get_active_level): New functions,
16266 add ialias.
16267 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
16268 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
16269 gomp_iter_dynamic_next instead of the _locked variant and don't take
16270 lock around it, otherwise acquire it before calling
16271 gomp_iter_dynamic_next_locked.
16272 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
16273 gomp_iter_dynamic_next instead of the _locked variant and don't take
16274 lock around it.
16275 (GOMP_parallel_sections_start): Call gomp_new_team instead of
16276 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
16277 Adjust gomp_team_start caller. Pass count as second argument to
16278 gomp_resolve_num_threads, don't adjust num_threads after the call.
16279 Use gomp_icv.
16280 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
16281 ws->chunk_size by incr.
16282 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
16283 code.
16284 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
16285 types.
16286 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
16287 (omp_check_defines): Check even the compat defines.
16288 * config/linux/ptrlock.c: New file.
16289 * config/linux/ptrlock.h: New file.
16290 * config/linux/wait.h: New file.
16291 * config/posix/ptrlock.c: New file.
16292 * config/posix/ptrlock.h: New file.
16293 * config/linux/bar.h (gomp_team_barrier_wait,
16294 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16295 (gomp_team_barrier_set_task_pending,
16296 gomp_team_barrier_clear_task_pending,
16297 gomp_team_barrier_set_waiting_for_tasks,
16298 gomp_team_barrier_waiting_for_tasks,
16299 gomp_team_barrier_done): New inlines.
16300 (gomp_barrier_t): Rewritten.
16301 (gomp_barrier_state_t): New typedef.
16302 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
16303 gomp_barrier_wait_start): Rewritten.
16304 (gomp_barrier_wait_end): Change second argument to
16305 gomp_barrier_state_t.
16306 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16307 inlines.
16308 * config/linux/bar.c: Include wait.h instead of libgomp.h and
16309 futex.h.
16310 (gomp_barrier_wait_end): Rewritten.
16311 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16312 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
16313 * config/posix/bar.h (gomp_barrier_t): Add generation field.
16314 (gomp_barrier_state_t): New typedef.
16315 (gomp_team_barrier_wait,
16316 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16317 (gomp_barrier_wait_start): Or all but low 2 bits from generation
16318 into the return value. Return gomp_barrier_state_t.
16319 (gomp_team_barrier_set_task_pending,
16320 gomp_team_barrier_clear_task_pending,
16321 gomp_team_barrier_set_waiting_for_tasks,
16322 gomp_team_barrier_waiting_for_tasks,
16323 gomp_team_barrier_done): New inlines.
16324 (gomp_barrier_wait_end): Change second argument to
16325 gomp_barrier_state_t.
16326 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16327 inlines.
16328 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
16329 (gomp_barrier_wait_end): Change second argument to
16330 gomp_barrier_state_t.
16331 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16332 gomp_team_barrier_wake): New functions.
16333 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
16334 futex.h.
16335 (gomp_futex_wake, gomp_futex_wait): New variables.
16336 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
16337 * config/linux/lock.c: Rewrite to make locks task owned,
16338 for backwards compatibility provide the old entrypoints
16339 if symbol versioning. Include wait.h instead of libgomp.h and
16340 futex.h.
16341 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
16342 * config/posix95/lock.c: Rewrite to make locks task owned,
16343 for backwards compatibility provide the old entrypoints
16344 if symbol versioning.
16345 * config/posix/lock.c: Rewrite to make locks task owned,
16346 for backwards compatibility provide the old entrypoints
16347 if symbol versioning.
16348 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
16349 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
16350 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
16351 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16352 (sys_futex0): Return error code.
16353 (futex_wake, futex_wait): If ENOSYS was returned, clear
16354 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16355 (cpu_relax, atomic_write_barrier): New static inlines.
16356 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16357 (futex_wake, futex_wait): If ENOSYS was returned, clear
16358 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16359 (cpu_relax, atomic_write_barrier): New static inlines.
16360 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16361 (sys_futex0): Return error code.
16362 (futex_wake, futex_wait): If ENOSYS was returned, clear
16363 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16364 (cpu_relax, atomic_write_barrier): New static inlines.
16365 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16366 (sys_futex0): Return error code.
16367 (futex_wake, futex_wait): If ENOSYS was returned, clear
16368 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16369 (cpu_relax, atomic_write_barrier): New static inlines.
16370 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16371 (sys_futex0): Return error code.
16372 (futex_wake, futex_wait): If ENOSYS was returned, clear
16373 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16374 (cpu_relax, atomic_write_barrier): New static inlines.
16375 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16376 (sys_futex0): Return error code.
16377 (futex_wake, futex_wait): If ENOSYS was returned, clear
16378 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16379 (cpu_relax, atomic_write_barrier): New static inlines.
16380 * config/linux/sem.c: Include wait.h instead of libgomp.h and
16381 futex.h.
16382 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
16383 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
16384 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
16385 types.
16386 (omp_nest_lock_t): Change owner into void *, add lock field.
16387 * config/posix95/omp-lock.h: Include semaphore.h.
16388 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16389 (omp_lock_t): Use sem_t instead of mutex if semaphores
16390 aren't broken.
16391 (omp_nest_lock_t): Likewise. Change owner to void *.
16392 * config/posix/omp-lock.h: Include semaphore.h.
16393 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16394 (omp_lock_t): Use sem_t instead of mutex if semaphores
16395 aren't broken.
16396 (omp_nest_lock_t): Likewise. Add owner field.
16397
16398 2008-06-06 Jakub Jelinek <jakub@redhat.com>
16399
16400 * testsuite/libgomp.c/collapse-1.c: New test.
16401 * testsuite/libgomp.c/collapse-2.c: New test.
16402 * testsuite/libgomp.c/collapse-3.c: New test.
16403 * testsuite/libgomp.c/icv-1.c: New test.
16404 * testsuite/libgomp.c/icv-2.c: New test.
16405 * testsuite/libgomp.c/lib-2.c: New test.
16406 * testsuite/libgomp.c/lock-1.c: New test.
16407 * testsuite/libgomp.c/lock-2.c: New test.
16408 * testsuite/libgomp.c/lock-3.c: New test.
16409 * testsuite/libgomp.c/loop-4.c: New test.
16410 * testsuite/libgomp.c/loop-5.c: New test.
16411 * testsuite/libgomp.c/loop-6.c: New test.
16412 * testsuite/libgomp.c/loop-7.c: New test.
16413 * testsuite/libgomp.c/loop-8.c: New test.
16414 * testsuite/libgomp.c/loop-9.c: New test.
16415 * testsuite/libgomp.c/nested-3.c: New test.
16416 * testsuite/libgomp.c/nestedfn-6.c: New test.
16417 * testsuite/libgomp.c/sort-1.c: New test.
16418 * testsuite/libgomp.c/task-1.c: New test.
16419 * testsuite/libgomp.c/task-2.c: New test.
16420 * testsuite/libgomp.c/task-3.c: New test.
16421 * testsuite/libgomp.c/task-4.c: New test.
16422 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
16423 to C++ testsuite default compiler options.
16424 * testsuite/libgomp.c++/collapse-1.C: New test.
16425 * testsuite/libgomp.c++/collapse-2.C: New test.
16426 * testsuite/libgomp.c++/ctor-10.C: New test.
16427 * testsuite/libgomp.c++/for-1.C: New test.
16428 * testsuite/libgomp.c++/for-2.C: New test.
16429 * testsuite/libgomp.c++/for-3.C: New test.
16430 * testsuite/libgomp.c++/for-4.C: New test.
16431 * testsuite/libgomp.c++/for-5.C: New test.
16432 * testsuite/libgomp.c++/loop-8.C: New test.
16433 * testsuite/libgomp.c++/loop-9.C: New test.
16434 * testsuite/libgomp.c++/loop-10.C: New test.
16435 * testsuite/libgomp.c++/task-1.C: New test.
16436 * testsuite/libgomp.c++/task-2.C: New test.
16437 * testsuite/libgomp.c++/task-3.C: New test.
16438 * testsuite/libgomp.c++/task-4.C: New test.
16439 * testsuite/libgomp.c++/task-5.C: New test.
16440 * testsuite/libgomp.c++/task-6.C: New test.
16441 * testsuite/libgomp.fortran/allocatable1.f90: New test.
16442 * testsuite/libgomp.fortran/allocatable2.f90: New test.
16443 * testsuite/libgomp.fortran/allocatable3.f90: New test.
16444 * testsuite/libgomp.fortran/allocatable4.f90: New test.
16445 * testsuite/libgomp.fortran/collapse1.f90: New test.
16446 * testsuite/libgomp.fortran/collapse2.f90: New test.
16447 * testsuite/libgomp.fortran/collapse3.f90: New test.
16448 * testsuite/libgomp.fortran/collapse4.f90: New test.
16449 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
16450 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
16451 * testsuite/libgomp.fortran/lib4.f90: New test.
16452 * testsuite/libgomp.fortran/lock-1.f90: New test.
16453 * testsuite/libgomp.fortran/lock-2.f90: New test.
16454 * testsuite/libgomp.fortran/nested1.f90: New test.
16455 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
16456 * testsuite/libgomp.fortran/strassen.f90: New test.
16457 * testsuite/libgomp.fortran/tabs1.f90: New test.
16458 * testsuite/libgomp.fortran/tabs2.f: New test.
16459 * testsuite/libgomp.fortran/task1.f90: New test.
16460 * testsuite/libgomp.fortran/task2.f90: New test.
16461 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
16462 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16463 * testsuite/libgomp.c/pr26943-2.c: Likewise.
16464 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16465 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16466
16467 2008-05-23 Jakub Jelinek <jakub@redhat.com>
16468
16469 PR c++/36308
16470 * testsuite/libgomp.c++/ctor-11.C: New test.
16471 * testsuite/libgomp.c++/ctor-12.C: New test.
16472
16473 2008-05-15 Janis Johnson <janis187@us.ibm.com>
16474
16475 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
16476
16477 2008-05-07 Jakub Jelinek <jakub@redhat.com>
16478
16479 PR middle-end/36106
16480 * testsuite/libgomp.c/atomic-5.c: New test.
16481 * testsuite/libgomp.c/atomic-6.c: New test.
16482 * testsuite/libgomp.c/autopar-1.c: New test.
16483
16484 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16485
16486 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
16487 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
16488 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
16489 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
16490 * configure: Regenerate.
16491 * Makefile.in, testsuite/Makefile.in: Likewise.
16492
16493 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
16494
16495 PR bootstrap/35457
16496 * aclocal.m4: Regenerate.
16497 * configure: Regenerate.
16498
16499 2008-03-18 Jakub Jelinek <jakub@redhat.com>
16500
16501 PR middle-end/35611
16502 * testsuite/libgomp.c/atomic-4.c: New test.
16503
16504 PR libgomp/35625
16505 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
16506 (gomp_iter_guided_next): Likewise.
16507 * testsuite/libgomp.c/pr35625.c: New test.
16508
16509 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16510
16511 * aclocal.m4: Regenerate.
16512 * configure: Likewise.
16513 * Makefile.in: Likewise.
16514 * testsuite/Makefile.in: Likewise.
16515
16516 2008-03-13 Jakub Jelinek <jakub@redhat.com>
16517
16518 PR middle-end/35185
16519 * testsuite/libgomp.c++/pr35185.C: New test.
16520
16521 2008-03-12 Jakub Jelinek <jakub@redhat.com>
16522
16523 PR middle-end/35549
16524 * testsuite/libgomp.c/pr35549.c: New test.
16525
16526 2008-03-06 Jakub Jelinek <jakub@redhat.com>
16527
16528 * testsuite/libgomp.c/atomic-3.c: New test.
16529
16530 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16531
16532 PR fortran/33197
16533 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
16534 .F08 file suffixes.
16535
16536 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
16537
16538 PR libgomp/33131
16539 * configure.ac: Add ACX_HEADER_STRING.
16540 * env.c: Include strings.h.
16541 * aclocal.m4: Regenerate.
16542 * config.h.in: Regenerate.
16543 * configure: Regenerate.
16544 * Makefile.in: Regenerate.
16545 * testsuite/Makefile.in: Regenerate.
16546
16547 2008-02-15 Jakub Jelinek <jakub@redhat.com>
16548
16549 PR middle-end/35196
16550 * testsuite/libgomp.c/pr35196.c: New test.
16551
16552 PR middle-end/35130
16553 * testsuite/libgomp.fortran/pr35130.f90: New test.
16554 * testsuite/libgomp.c/pr35130.c: New test.
16555
16556 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16557
16558 PR middle-end/33880
16559 * testsuite/libgomp.c/pr33880.c: New test.
16560 * testsuite/libgomp.fortran/pr33880.f90: New test.
16561
16562 2008-01-24 David Edelsohn <edelsohn@gnu.org>
16563
16564 * configure: Regenerate.
16565
16566 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16567
16568 * configure.ac: Move futex checking into ../config/futex.m4.
16569 * configure: Rebuilt.
16570 * aclocal.m4: Rebuilt.
16571 * Makefile.in: Rebuilt.
16572
16573 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
16574 2007-10-15 ../config/tls.m4 change.
16575
16576 2007-12-19 Jakub Jelinek <jakub@redhat.com>
16577
16578 PR c++/34513
16579 * testsuite/libgomp.c/pr34513.c: New test.
16580 * testsuite/libgomp.c++/pr34513.C: New test.
16581
16582 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
16583
16584 PR target/32765
16585 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
16586
16587 2007-12-04 Jakub Jelinek <jakub@redhat.com>
16588
16589 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
16590
16591 2007-12-03 Jakub Jelinek <jakub@redhat.com>
16592
16593 * testsuite/libgomp.c/private-1.c: New test.
16594
16595 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
16596 Paolo Bonzini <bonzini@gnu.org>
16597
16598 * Makefile.am: Use space as vpath separator. Use 'vpath %'
16599 instead of 'VPATH ='.
16600 * Makefile.in: Regenerate.
16601
16602 2007-11-23 Matthias Klose <doko@ubuntu.com>
16603
16604 * configure.ac: Adjust makeinfo version check.
16605 * configure: Regenerate.
16606
16607 2007-11-10 Jakub Jelinek <jakub@redhat.com>
16608
16609 PR fortran/34020
16610 * testsuite/libgomp.fortran/pr34020.f90: New test.
16611
16612 2007-11-06 Jakub Jelinek <jakub@redhat.com>
16613
16614 PR c++/33894
16615 * testsuite/libgomp.c++/atomic-1.C: New test.
16616
16617 2007-10-25 Jakub Jelinek <jakub@redhat.com>
16618
16619 PR libgomp/33275
16620 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
16621 Make x and y integers rather than (implicit) reals. Add private (j)
16622 clause to the last omp parallel.
16623
16624 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
16625
16626 * configure: Regenerate following changes to ../config/tls.m4.
16627
16628 2007-09-28 Jakub Jelinek <jakub@redhat.com>
16629
16630 * testsuite/libgomp.fortran/stack.f90: New test.
16631
16632 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
16633
16634 * config/mingw32/proc.c: New file.
16635
16636 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
16637
16638 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
16639 (main): Use __get_cpuid to get i386 target fetaures.
16640 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
16641 (main): Use __get_cpuid to get x86_64 target fetaures.
16642
16643 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
16644
16645 PR target/32765
16646 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
16647 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
16648
16649 2007-07-12 Jakub Jelinek <jakub@redhat.com>
16650
16651 PR fortran/32550
16652 * testsuite/libgomp.fortran/pr32550.f90: New test.
16653 * testsuite/libgomp.fortran/crayptr2.f90: New test.
16654
16655 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
16656
16657 * aclocal.m4: Regenerated.
16658
16659 2007-07-05 Tobias Burnus <burnus@net-b.de>
16660
16661 PR fortran/32359
16662 * testsuite/libgomp.fortran/pr32359.f90: New.
16663
16664 2007-07-02 Jakub Jelinek <jakub@redhat.com>
16665
16666 PR libgomp/32468
16667 * sections.c (GOMP_parallel_sections_start): Only decrease
16668 number of threads to COUNT if dyn_var is true.
16669 * testsuite/libgomp.c/pr32468.c: New test.
16670
16671 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16672
16673 PR libgomp/26308
16674 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
16675
16676 2007-06-21 Jakub Jelinek <jakub@redhat.com>
16677
16678 PR middle-end/32362
16679 * testsuite/libgomp.c/pr32362-1.c: New test.
16680 * testsuite/libgomp.c/pr32362-2.c: New test.
16681 * testsuite/libgomp.c/pr32362-3.c: New test.
16682
16683 2007-06-07 Jakub Jelinek <jakub@redhat.com>
16684
16685 * team.c (gomp_team_start): Fix setting up thread_attr
16686 stack size.
16687
16688 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
16689
16690 * configure: Regenerate.
16691
16692 2007-05-23 Steve Ellcey <sje@cup.hp.com>
16693
16694 * Makefile.in: Regenerate.
16695 * configure: Regenerate.
16696 * aclocal.m4: Regenerate.
16697 * testsuite/Makefile.in: Regenerate.
16698
16699 2007-05-04 Jakub Jelinek <jakub@redhat.com>
16700
16701 * config/linux/proc.c: New file.
16702
16703 PR libgomp/28482
16704 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
16705
16706 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
16707
16708 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
16709
16710 2007-04-16 Matthias Klose <doko@debian.org>
16711
16712 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
16713 flags if not building with -m64.
16714 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
16715 flag for i?86-*-* targets, if current target matches -m64.
16716
16717 2007-04-14 Steve Ellcey <sje@cup.hp.com>
16718
16719 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
16720 * Makefile.in: Regenerate.
16721
16722 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16723
16724 PR testsuite/31369
16725 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
16726 ld_library_path.
16727 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16728
16729 2007-04-04 Jakub Jelinek <jakub@redhat.com>
16730
16731 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
16732 decls.
16733 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
16734 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
16735 (parse_affinity): New function.
16736 (initialize_env): Call it and gomp_init_affinity.
16737 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
16738 create new pthread_attr_t and call gomp_init_thread_affinity
16739 on it for each thread before passing the attribute to pthread_create.
16740 * config/linux/affinity.c: New file.
16741 * config/posix/affinity.c: New file.
16742 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
16743 * configure: Rebuilt.
16744 * config.h.in: Rebuilt.
16745 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
16746 * Makefile.in: Rebuilt.
16747
16748 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
16749
16750 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
16751 *-*-darwin*.
16752 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
16753 and use it if found.
16754
16755 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
16756
16757 * testsuite/config/default.exp: New file.
16758 * testsuite/lib/libgomp.exp: New file.
16759 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
16760 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
16761 load_lib *, load_gcc_lib *): Move to libgomp.exp.
16762 (libgomp_load): Remove.
16763 * testsuite/lib/libgomp.exp (libgomp_init): Compute
16764 always_ld_library_path, not ld_library_path. Set additional_flags
16765 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
16766 (target_compile): Do not call libgomp_init. Append lang_library_path
16767 and lang_link_flags to options.
16768 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
16769 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
16770 here.
16771 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
16772 always_ld_library_path. Set LD_LIBRARY_PATH here.
16773 * testsuite/libgomp.fortran/fortran.exp: Ditto.
16774 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
16775 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
16776 CX8 flag.
16777 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
16778 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
16779 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
16780 * testsuite/libgomp.c/pr29947-1.c: Ditto.
16781 * testsuite/libgomp.c/atomic-10.c: Ditto.
16782
16783 2007-03-21 Jakub Jelinek <jakub@redhat.com>
16784
16785 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
16786 dg-final cleanup-modules line.
16787 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
16788 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
16789 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
16790 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
16791 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
16792 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
16793 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
16794
16795 2007-03-18 Andreas Schwab <schwab@suse.de>
16796
16797 * acinclude.m4: Adjust regular expression for ld version
16798 extraction.
16799 * configure: Regenerate.
16800
16801 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16802
16803 * Makefile.am: Add install-pdf target as copied from
16804 automake v1.10 rules.
16805 * Makefile.in: Regenerate
16806
16807 2007-02-07 Jakub Jelinek <jakub@redhat.com>
16808
16809 PR libgomp/28486
16810 * configure: Regenerate.
16811
16812 PR c++/30703
16813 * testsuite/libgomp.c++/pr30703.C: New test.
16814
16815 2007-02-02 Jakub Jelinek <jakub@redhat.com>
16816
16817 Revert:
16818 2006-07-05 Eric Christopher <echristo@apple.com>
16819 * configure.ac: Depend addition of -pthread on host OS.
16820 * configure: Regenerate.
16821
16822 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16823
16824 * libgomp.texi: Fix spacing after abbreviations.
16825
16826 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
16827
16828 PR libgomp/30546
16829 * configure.ac: Add check for makeinfo
16830 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
16831 if an appropriate version of makeinfo is found.
16832 * aclocal.m4: Regenerated.
16833 * configure: Regenerated.
16834 * Makefile.in: Regenerated.
16835 * testsuite/Makefile.in: Regenerated.
16836
16837 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
16838
16839 PR libgomp/30540
16840 * libgomp.texi: More about implementation-dependent settings.
16841
16842 2007-01-26 Tobias Burnus <burnus@net-b.de>
16843
16844 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
16845
16846 2007-01-24 Jakub Jelinek <jakub@redhat.com>
16847
16848 PR middle-end/30494
16849 * testsuite/libgomp.c/pr30494.c: New test.
16850
16851 2007-01-15 Tom Tromey <tromey@redhat.com>
16852
16853 * configure: Rebuilt.
16854 * configure.ac: Fixed comment.
16855
16856 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
16857
16858 * libgomp.texi: Document implementation specific default values of
16859 environment variables.
16860
16861 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
16862
16863 PR libgomp/28209
16864 * libgomp.texi: New file.
16865 * configure.ac: Add --enable-generated-files-in-srcdir option.
16866 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
16867 files to srcdir.
16868 * Makefile.in: Regenerated.
16869 * config.h.in: Regenerated.
16870 * testsuite/Makefile.in: Regenerated.
16871 * NOTES: Removed.
16872
16873 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
16874
16875 PR libgomp/29949
16876 * env.c (omp_set_num_threads): Set illegal thread count to 1.
16877
16878 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
16879
16880 * configure: Regenerate.
16881
16882 2006-12-04 Jakub Jelinek <jakub@redhat.com>
16883
16884 PR libgomp/29947
16885 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
16886 start if there shouldn't be any loop iterations.
16887 (gomp_loop_ordered_static_start): Remove start == end test.
16888 * testsuite/libgomp.c/pr29947-1.c: New test.
16889 * testsuite/libgomp.c/pr29947-2.c: New test.
16890
16891 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
16892
16893 * configure.tgt: Force initial-exec TLS model on Linux only.
16894
16895 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
16896
16897 * configure: Regenerated.
16898
16899 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
16900
16901 * env.c (parse_schedule): Reject out of range values.
16902 (parse_unsigned_long): Reject out of range, negative or zero values.
16903
16904 2006-10-29 Jakub Jelinek <jakub@redhat.com>
16905
16906 PR fortran/29629
16907 * testsuite/libgomp.fortran/pr29629.f90: New test.
16908
16909 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
16910
16911 PR libgomp/29494
16912 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
16913 * config/posix95: New directory.
16914 * config/posix95/omp-lock.h: New file.
16915 * config/posix95/lock.c: Likewise.
16916
16917 2006-10-14 Geoffrey Keating <geoffk@apple.com>
16918
16919 * aclocal.m4: Regenerate.
16920 * configure: Regenerate.
16921
16922 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
16923
16924 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
16925 '<' to '<='.
16926
16927 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
16928
16929 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
16930 test.
16931 * configure: Regenerate.
16932 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
16933
16934 2006-09-26 Jakub Jelinek <jakub@redhat.com>
16935
16936 PR middle-end/25261
16937 PR middle-end/28790
16938 * testsuite/libgomp.c/nestedfn-4.c: New test.
16939 * testsuite/libgomp.c/nestedfn-5.c: New test.
16940 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
16941
16942 PR fortran/29097
16943 * testsuite/libgomp.fortran/condinc1.f: New test.
16944 * testsuite/libgomp.fortran/condinc2.f: New test.
16945 * testsuite/libgomp.fortran/condinc3.f90: New test.
16946 * testsuite/libgomp.fortran/condinc4.f90: New test.
16947 * testsuite/libgomp.fortran/condinc1.inc: New file.
16948
16949 2006-09-18 Tom Tromey <tromey@redhat.com>
16950
16951 * configure: Rebuilt.
16952
16953 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
16954
16955 PR c/28768
16956 PR preprocessor/14634
16957 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
16958 to AC_DEFINE.
16959 * configure: Regenerate.
16960
16961 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
16962
16963 * testsuite/libgomp.fortran/reduction3.f90: Change
16964 -2147483648 to -huge(i)-1 to avoid overflow.
16965 * testsuite/libgomp.fortran/reduction4.f90: Change
16966 Z'ffffffff' to not(0) to avoid overflow.
16967
16968 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
16969
16970 PR libgomp/25938
16971 * Makefile.am (libsubincludedir): New.
16972 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
16973 * Makefile.in: Regenerate.
16974
16975 2006-08-17 Jakub Jelinek <jakub@redhat.com>
16976
16977 PR libgomp/28725
16978 * env.c: Include ctype.h.
16979 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
16980 leading and/or trailing whitespace and compare strings case
16981 insensitively.
16982
16983 2006-07-16 Jakub Jelinek <jakub@redhat.com>
16984
16985 PR fortran/28390
16986 * testsuite/libgomp.fortran/pr28390.f: New test.
16987
16988 2006-07-05 Eric Christopher <echristo@apple.com>
16989
16990 * configure.ac: Depend addition of -pthread on host OS.
16991 * configure: Regenerate.
16992
16993 2006-06-21 Jakub Jelinek <jakub@redhat.com>
16994
16995 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
16996 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
16997 defined.
16998
16999 2006-06-20 Jakub Jelinek <jakub@redhat.com>
17000
17001 PR libgomp/26175
17002 PR libgomp/26477
17003 * configure.ac: If neither --enable-linux-futex nor
17004 --disable-linux-futex is passed, determine the default by checking
17005 for compiling and/or running against NPTL. With --enable-linux-futex,
17006 check if SYS_gettid and SYS_futex are defined.
17007 * configure: Rebuilt.
17008
17009 2006-06-14 Richard Henderson <rth@redhat.com>
17010
17011 PR libgomp/28008
17012 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
17013 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
17014
17015 2006-06-09 Richard Henderson <rth@redhat.com>
17016
17017 * env.c (gomp_nthreads_var): Change to unsigned long.
17018 (gomp_run_sched_chunk): Likewise.
17019 (parse_unsigned_long): Rename from parse_num_threads and generalize.
17020 (initialize_env): Initialize gomp_thread_attr.
17021 * libgomp.h (gomp_nthreads_var): Update decl.
17022 (gomp_run_sched_chunk): Likewise.
17023 (gomp_thread_attr): Declare.
17024 * team.c (gomp_thread_attr): Export.
17025 (initialize_team): Don't initialize it.
17026
17027 2006-06-09 Jakub Jelinek <jakub@redhat.com>
17028
17029 PR fortran/27916
17030 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
17031 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
17032
17033 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
17034
17035 * config/mingw32/time.c: New file.
17036 * configure.tgt: Use it.
17037
17038 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
17039
17040 * Makefile.am: Add install-html target. Add install-html to .PHONY
17041 * Makefile.in: Regenerate.
17042
17043 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17044
17045 PR libgomp/27612
17046 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
17047 * testsuite/libgomp.c/critical-1.c: Likewise.
17048 * testsuite/libgomp.c/loop-1.c: Likewise.
17049 * testsuite/libgomp.c/loop-2.c: Likewise.
17050 * testsuite/libgomp.c/single-1.c: Likewise.
17051 * testsuite/libgomp.c/ordered-1.c: Likewise.
17052 * testsuite/libgomp.c/ordered-2.c: Likewise.
17053
17054 2006-05-15 Jakub Jelinek <jakub@redhat.com>
17055
17056 PR middle-end/27416
17057 * libgomp.fortran/pr27416-1.f90: New test.
17058
17059 2006-05-03 Jakub Jelinek <jakub@redhat.com>
17060
17061 PR fortran/27395
17062 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
17063 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
17064
17065 2006-05-02 Jakub Jelinek <jakub@redhat.com>
17066
17067 PR c++/26943
17068 * testsuite/libgomp.c/pr26943-1.c: New test.
17069 * testsuite/libgomp.c/pr26943-2.c: New test.
17070 * testsuite/libgomp.c/pr26943-3.c: New test.
17071 * testsuite/libgomp.c/pr26943-4.c: New test.
17072 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
17073 * testsuite/libgomp.c++/pr26943.C: New test.
17074
17075 2006-05-02 Jakub Jelinek <jakub@redhat.com>
17076
17077 PR middle-end/27337
17078 * testsuite/libgomp.c++/pr27337.C: New test.
17079
17080 2006-04-26 Jakub Jelinek <jakub@redhat.com>
17081
17082 PR c/26171
17083 * testsuite/libgomp.c/pr26171.c: New test.
17084
17085 2006-04-25 Richard Henderson <rth@redhat.com>
17086
17087 PR libgomp/25865
17088 * configure.ac: Use GCC_CHECK_TLS.
17089 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
17090 * Makefile.in, aclocal.m4, configure: Regenerate.
17091
17092 2006-04-10 Matthias Klose <doko@debian.org>
17093
17094 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
17095 directory names containing underscores.
17096
17097 2006-03-21 Jakub Jelinek <jakub@redhat.com>
17098
17099 PR c++/26691
17100 * testsuite/libgomp.c++/pr26691.C: New test.
17101
17102 2006-03-13 Jakub Jelinek <jakub@redhat.com>
17103
17104 * testsuite/libgomp.fortran/retval2.f90: New test.
17105
17106 2006-03-09 Diego Novillo <dnovillo@redhat.com>
17107
17108 * testsuite/libgomp.c++: New directory.
17109
17110 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
17111
17112 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
17113 * config/posix/sem.c: Implement the above.
17114
17115 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
17116
17117 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
17118 define HAVE_BROKEN_POSIX_SEMAPHORES.
17119 * configure: Rebuilt.
17120 * config.h.in: Rebuilt.
17121
17122 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
17123
17124 PR bootstrap/26161
17125 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
17126 for the other pthread check.
17127 * configure: Regenerate.
17128 * config.h.in: Regenerate.
17129
17130 2006-02-15 Jakub Jelinek <jakub@redhat.com>
17131
17132 PR libgomp/25938
17133 PR libgomp/25984
17134 * Makefile.am (fincludedir): New variable.
17135 (nodist_include_HEADERS): Remove Fortran files.
17136 (nodist_finclude_HEADERS): New variable.
17137 * Makefile.in: Regenerated.
17138
17139 2006-02-13 Jakub Jelinek <jakub@redhat.com>
17140
17141 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
17142 Remove tests for returning assumed character length arrays.
17143
17144 2006-02-12 Roger Sayle <roger@eyesopen.com>
17145 John David Anglin <dave@hiauly1.hia.nrc.ca>
17146
17147 PR libgomp/25936
17148 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
17149
17150 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
17151
17152 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
17153
17154 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
17155
17156 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
17157 part of LD_LIBRARY_PATH manually.
17158
17159 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
17160
17161 PR libgomp/25852
17162 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
17163 libgomp_init.
17164
17165 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
17166
17167 PR libgomp/25884
17168 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
17169 * configure.ac (PERL): Don't set.
17170 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
17171 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
17172 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
17173 * omp.h.in: Wrap the new configure substitutions with @ characters.
17174 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
17175 * aclocal.m4, configure, Makefile.in: Regenerate.
17176 * mkomp_h.pl: Delete.
17177
17178 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
17179
17180 PR libgomp/25259
17181 * configure.ac: Use GCC_HEADER_STDINT.
17182 * libgomp.h: Include gstdint.h.
17183 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
17184 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
17185
17186 2006-01-24 Richard Henderson <rth@redhat.com>
17187
17188 PR libgomp/25942
17189 * configure.ac: Add AM_MAINTAINER_MODE.
17190 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
17191
17192 2006-01-24 Diego Novillo <dnovillo@redhat.com>
17193
17194 * Makefile.in: Regenerate.
17195 * testsuite/Makefile.in: Regenerate.
17196 * aclocal.m4: Regenerate.
17197
17198 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
17199
17200 * config/posix/proc.c: Conditional include of sys/loadavg.h for
17201 Solaris.
17202 * configure.ac: Add check for loadavg.h.
17203 (link_gomp): Adjust comment.
17204 * configure: Regenerate.
17205 * config.h.in: Regenerate.
17206
17207 2006-01-21 Steve Ellcey <sje@cup.hp.com>
17208
17209 PR libgomp/25877
17210 * configure.ac: Remove check for alloca.h.
17211 * configure: Regenerate.
17212 * config.h.in: Regenerate.
17213 * libgomp.h: define gomp_alloca to be __builtin_alloca.
17214 * team.c: Remove use of alloca.h.
17215 Call gomp_alloca instead of alloca.
17216
17217 2006-01-20 Steve Ellcey <sje@cup.hp.com>
17218
17219 PR libgomp/25877
17220 * team.c: Add include of alloca.h.
17221 * configure.ac: Add check for alloca.h.
17222 * configure: Regenerate.
17223 * config.h.in: Regenerate.
17224
17225 2006-01-17 Jakub Jelinek <jakub@redhat.com>
17226
17227 PR fortran/25219
17228 * testsuite/libgomp.fortran/pr25219.f90: New test.
17229
17230 2005-12-05 Uros Bizjak <uros@kss-loka.si>
17231
17232 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
17233 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
17234 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17235 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17236 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
17237 testsuite/libgomp.fortran/threadprivate1.f90,
17238 testsuite/libgomp.fortran/threadprivate2.f90,
17239 testsuite/libgomp.fortran/threadprivate3.f90,
17240 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17241 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17242 testsuite/libgomp.fortran/omp_parse3.f90: Change required
17243 effective-target to TLS runtime.
17244
17245 * testsuite/libgomp.fortran/pr25162.f: Require
17246 effective-target TLS runtime.
17247
17248 2005-12-01 Jakub Jelinek <jakub@redhat.com>
17249
17250 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
17251 * testsuite/libgomp.c/nestedfn-3.c: New test.
17252
17253 2005-11-30 Jakub Jelinek <jakub@redhat.com>
17254
17255 PR fortran/25162
17256 * testsuite/libgomp.fortran/pr25162.f: New test.
17257
17258 2005-11-28 Jakub Jelinek <jakub@redhat.com>
17259
17260 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
17261 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
17262
17263 2005-11-25 Jakub Jelinek <jakub@redhat.com>
17264
17265 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
17266 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
17267 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
17268 single.c, team.c, work.c, config/linux/alpha/futex.h,
17269 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
17270 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
17271 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
17272 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
17273 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
17274 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
17275 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
17276 FSF address.
17277
17278 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17279
17280 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
17281 to nodist_noinst_HEADERS.
17282 * Makefile.in: Rebuilt.
17283
17284 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
17285 add integer count field.
17286 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
17287 omp_nest_lock_t type change.
17288 (omp_init_nest_lock): Likewise. Initialize count to 0.
17289 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
17290 Increment count.
17291 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
17292 Decrement count.
17293 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
17294 Increment count if successful and return the new nesting level.
17295 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
17296 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
17297 * testsuite/libgomp.c/lib-1.c: New test.
17298 * testsuite/libgomp.fortran/lib1.f90: New test.
17299 * testsuite/libgomp.fortran/lib2.f: New test.
17300 * testsuite/libgomp.fortran/lib3.f: New test.
17301
17302 2005-11-17 Richard Henderson <rth@redhat.com>
17303
17304 PR 24845
17305 * Makefile.am (nodist_toolexeclib_HEADERS): New.
17306 * configure.ac (link_gomp): New. Substitute it.
17307 (AC_CONFIG_FILES): Add libgomp.spec.
17308 * libgomp.spec.in: New file.
17309 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
17310 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
17311
17312 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17313
17314 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
17315 reduction(-:var) behaving the same as reduction(+:var).
17316 * testsuite/libgomp.c/reduction-4.c: New test.
17317
17318 2005-11-15 Uros Bizjak <uros@kss-loka.si>
17319
17320 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
17321 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
17322 testsuite/libgomp.c/copyin-3.c,
17323 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17324 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17325 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
17326 testsuite/libgomp.c++/pr24455.C,
17327 testsuite/libgomp.fortran/threadprivate1.f90,
17328 testsuite/libgomp.fortran/threadprivate2.f90,
17329 testsuite/libgomp.fortran/threadprivate3.f90,
17330 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17331 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17332 testsuite/libgomp.fortran/omp_parse3.f90: Require
17333 effective-target TLS.
17334
17335 2005-11-14 Diego Novillo <dnovillo@redhat.com>
17336
17337 * HEADER: Remove.
17338
17339 2005-11-13 Jakub Jelinek <jakub@redhat.com>
17340
17341 PR libgomp/24797
17342 * team.c (initialize_team): Pass NULL rather than free as
17343 pthread_key_create destructor. Initialize thread specific data
17344 pointer in initial thread to a static local variable rather than
17345 malloced memory.
17346
17347 2005-11-11 Uros Bizjak <uros@kss-loka.si>
17348
17349 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
17350 its location to ld_library_path.
17351
17352 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17353
17354 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
17355
17356 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17357
17358 * testsuite/libgomp.c: Rename from libgomp.dg.
17359
17360 2005-11-09 Diego Novillo <dnovillo@redhat.com>
17361
17362 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
17363 threadprivate variable 'i'.
17364
17365 2005-11-09 Jakub Jelinek <jakub@redhat.com>
17366
17367 * config/linux/s390/futex.h: New file.
17368 * configure.tgt: Use it.
17369
17370 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
17371 before the parallel.
17372
17373 2005-11-08 Jakub Jelinek <jakub@redhat.com>
17374
17375 PR c++/24734
17376 * testsuite/libgomp.c++/master-1.C: New test.
17377
17378 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17379
17380 * testsuite/libgomp.dg/copyin-3.c: New test.
17381
17382 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17383
17384 * testsuite/libgomp.fortran/retval1.f90: New test.
17385 * testsuite/libgomp.fortran/vla7.f90: New test.
17386
17387 2005-11-06 Jakub Jelinek <jakub@redhat.com>
17388
17389 * testsuite/libgomp.fortran/vla2.f90: New test.
17390 * testsuite/libgomp.fortran/vla3.f90: New test.
17391 * testsuite/libgomp.fortran/vla4.f90: New test.
17392 * testsuite/libgomp.fortran/vla5.f90: New test.
17393 * testsuite/libgomp.fortran/vla6.f90: New test.
17394
17395 2005-11-01 Jakub Jelinek <jakub@redhat.com>
17396
17397 * config/linux/sparc/futex.h: New file.
17398 * configure.tgt: Use it.
17399 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
17400
17401 * critical.c: Include stdlib.h.
17402 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
17403 ignoring return value.
17404 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
17405 LIBGOMP_CHECK_SYNC_BUILTINS check.
17406 * configure: Rebuilt.
17407
17408 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17409
17410 * testsuite/libgomp.fortran/vla1.f90: New test.
17411
17412 2005-10-31 Richard Henderson <rth@redhat.com>
17413
17414 * testsuite/libgomp.fortran/character2.f90: Fix race condition
17415 setting 's' in different threads.
17416
17417 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17418
17419 * libgomp.h (attribute_hidden, ialias): Define.
17420 * config/posix/proc.c (omp_get_num_procs): Add ialias.
17421 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
17422 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
17423 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17424 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17425 omp_test_lock, omp_test_nest_lock): Likewise.
17426 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
17427 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17428 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17429 omp_test_lock, omp_test_nest_lock): Likewise.
17430 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
17431 omp_get_dynamic, omp_get_nested): Likewise.
17432 * parallel.c (omp_get_num_threads, omp_get_max_threads,
17433 omp_get_thread_num, omp_in_parallel): Likewise.
17434 * fortran.c (ialias_redirect): Define.
17435 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
17436 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
17437 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
17438 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
17439 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
17440 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
17441 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
17442 omp_get_wtime): Add ialias_redirect.
17443
17444 2005-10-30 Jakub Jelinek <jakub@redhat.com>
17445
17446 * fortran.c: Include stdlib.h.
17447
17448 2005-10-29 Jakub Jelinek <jakub@redhat.com>
17449
17450 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
17451 * Makefile.in: Regenerated.
17452
17453 2005-10-28 Jakub Jelinek <jakub@redhat.com>
17454
17455 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
17456 * libgomp_f.h.in (omp_check_defines): New function.
17457 * env.c: Include libgomp_f.h.
17458 (initialize_env): Call omp_check_defines.
17459
17460 * testsuite/libgomp.dg/copyin-2.c: New test.
17461 * testsuite/libgomp.c++/copyin-2.C: New test.
17462 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
17463
17464 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
17465 * testsuite/libgomp.fortran/sharing2.f90: New test.
17466
17467 * testsuite/libgomp.dg/copyin-1.c: New test.
17468 * testsuite/libgomp.c++/copyin-1.C: New test.
17469
17470 2005-10-26 Jakub Jelinek <jakub@redhat.com>
17471
17472 * testsuite/libgomp.fortran/crayptr1.f90: New test.
17473
17474 * testsuite/libgomp.fortran/workshare1.f90: New test.
17475
17476 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
17477 only test.
17478 * libgomp.fortran/sharing1.f90: New test.
17479
17480 2005-10-24 Jakub Jelinek <jakub@redhat.com>
17481
17482 PR c++/24502
17483 * testsuite/libgomp.c++/loop-7.C: New test.
17484
17485 * testsuite/libgomp.dg/nestedfn-2.c: New test.
17486
17487 * testsuite/libgomp.dg/nestedfn-1.c: New test.
17488 * testsuite/libgomp.fortran/reduction6.f90: New test.
17489 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
17490
17491 2005-10-23 Richard Henderson <rth@redhat.com>
17492
17493 * testsuite/libgomp.c++/ctor-1.C: New.
17494 * testsuite/libgomp.c++/ctor-2.C: New.
17495 * testsuite/libgomp.c++/ctor-3.C: New.
17496 * testsuite/libgomp.c++/ctor-4.C: New.
17497 * testsuite/libgomp.c++/ctor-5.C: New.
17498 * testsuite/libgomp.c++/ctor-6.C: New.
17499 * testsuite/libgomp.c++/ctor-7.C: New.
17500 * testsuite/libgomp.c++/ctor-8.C: New.
17501 * testsuite/libgomp.c++/ctor-9.C: New.
17502
17503 2005-10-21 Diego Novillo <dnovillo@redhat.com>
17504
17505 PR 24455
17506 * testsuite/libgomp.c++/pr24455-1.C: New test.
17507 * testsuite/libgomp.c++/pr24455.C: New test.
17508 * testsuite/libgomp.dg/pr24455-1.c: New test.
17509 * testsuite/libgomp.dg/pr24455.c: New test.
17510
17511 2005-10-20 Richard Henderson <rth@redhat.com>
17512
17513 * testsuite/libgomp.c++/loop-6.C: New.
17514 * testsuite/libgomp.dg/loop-3.c: New.
17515
17516 2005-10-20 Jakub Jelinek <jakub@redhat.com>
17517
17518 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
17519 explicitly private.
17520 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
17521 explicitly shared.
17522
17523 2005-10-19 Diego Novillo <dnovillo@redhat.com>
17524
17525 * testsuite/libgomp.fortran/jacobi.f: New test.
17526
17527 2005-10-19 Richard Henderson <rth@redhat.com>
17528
17529 * configure.tgt (i?86-linux): Default to with_arch instead of
17530 CFLAGS. Add -mtune to match target_cpu.
17531 (x86_64-linux): Tune to i686.
17532
17533 * fortran.c (omp_test_nest_lock_): Fix typo.
17534
17535 2005-10-19 Jakub Jelinek <jakub@redhat.com>
17536
17537 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
17538 gomp_ordered_sync): Do nothing if team->nthreads == 1.
17539 * testsuite/libgomp.dg/ordered-3.c: New test.
17540
17541 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
17542 Remove volatile keyword.
17543
17544 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
17545 in COMMON block to avoid warnings on 64-bit targets.
17546
17547 2005-10-18 Diego Novillo <dnovillo@redhat.com>
17548
17549 * testsuite/libgomp.dg/shared-3.c: New test.
17550
17551 2005-10-18 Jakub Jelinek <jakub@redhat.com>
17552
17553 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
17554 * testsuite/libgomp.fortran/reduction5.f90: New test.
17555
17556 2005-10-18 Jakub Jelinek <jakub@redhat.com>
17557
17558 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
17559 dg-options.
17560 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
17561 flush loop now that __sync_synchronize has proper memory barrier.
17562 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
17563 Add -ffixed-form to dg-options.
17564
17565 2005-10-17 Diego Novillo <dnovillo@redhat.com>
17566
17567 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
17568 from subdirectories.
17569 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
17570 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
17571 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
17572 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
17573 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
17574 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
17575 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
17576 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
17577 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
17578 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
17579 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
17580 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
17581 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
17582 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
17583 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
17584 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
17585 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
17586 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
17587 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
17588 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
17589 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
17590 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
17591 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
17592 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
17593 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
17594
17595 2005-10-17 Jakub Jelinek <jakub@redhat.com>
17596
17597 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
17598 lang_library_path exists. Use find instead of glob to gather tests.
17599 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
17600
17601 2005-10-17 Diego Novillo <dnovillo@redhat.com>
17602
17603 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
17604 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
17605 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
17606 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
17607 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
17608 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
17609 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
17610 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
17611 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
17612 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
17613 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
17614 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
17615 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
17616
17617 2005-10-15 Jakub Jelinek <jakub@redhat.com>
17618
17619 * testsuite/libgomp.dg/vla-1.c: New test.
17620
17621 * testsuite/libgomp.fortran/reference2.f90: New test.
17622
17623 * testsuite/libgomp.fortran/character2.f90: Remove explicit
17624 declaration of omp_get_thread_num.
17625 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
17626 use omp_lib.
17627
17628 * testsuite/libgomp.fortran/reduction1.f90: New test.
17629 * testsuite/libgomp.fortran/reduction2.f90: New test.
17630 * testsuite/libgomp.fortran/reduction3.f90: New test.
17631 * testsuite/libgomp.fortran/reduction4.f90: New test.
17632
17633 2005-10-13 Richard Henderson <rth@redhat.com>
17634
17635 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
17636 * Makefile.in: Regenerate.
17637 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
17638 * libgomp.h: Include bar.h.
17639 (struct gomp_barrier): Remove.
17640 (struct gomp_team): Add barrier. Replace master_barrier with
17641 master_release. Replace threads with ordered_release.
17642 (struct gomp_thread): Replace barrier with release.
17643 * ordered.c (gomp_ordered_first): Update for ordered_release change.
17644 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
17645 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
17646 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
17647 (GOMP_single_copy_end): Likewise.
17648 * team.c (gomp_threads_dock): New.
17649 (gomp_barrier_init, gomp_barrier_destroy): Remove.
17650 (gomp_thread_start): Use gomp_barrier_wait.
17651 (new_team, free_team): Update for gomp_team changes.
17652 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
17653 (gomp_team_end): Use gomp_barrier_wait.
17654 (initialize_team): Update for gomp_thread changes.
17655 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
17656 (gomp_work_share_end_nowait): Use atomic ops when available.
17657 * config/linux/bar.c, config/linux/bar.h: New files.
17658 * config/posix/bar.c, config/posix/bar.h: New files.
17659
17660 2005-10-13 Jakub Jelinek <jakub@redhat.com>
17661
17662 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
17663 * testsuite/libgomp.dg/single-2.c: New test.
17664
17665 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
17666 lang_link_flags): Unset, so that they aren't inherited from previously
17667 sourced *.exp.
17668
17669 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
17670
17671 2005-10-12 Richard Henderson <rth@redhat.com>
17672
17673 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
17674 (libgomp_init): Use lang_test_file, lang_library_path, and
17675 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
17676
17677 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
17678 (lang_test_file, lang_link_flags): New.
17679 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
17680
17681 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
17682 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
17683 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
17684 testsuite/libgomp.c++/parallel-1.C,
17685 testsuite/libgomp.c++/reduction-1.C,
17686 testsuite/libgomp.c++/reduction-2.C,
17687 testsuite/libgomp.c++/reduction-3.C,
17688 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
17689 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
17690 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
17691 New files, largely cribbed from the C testsuite.
17692
17693 2005-10-12 Jakub Jelinek <jakub@redhat.com>
17694
17695 * testsuite/libgomp.fortran/character1.f90: New test.
17696 * testsuite/libgomp.fortran/character2.f90: New test.
17697
17698 * testsuite/libgomp.dg/nested-1.c: New test.
17699 * testsuite/libgomp.dg/nested-2.c: New test.
17700 * testsuite/libgomp.fortran/do1.f90: New test.
17701 * testsuite/libgomp.fortran/do2.f90: New test.
17702
17703 * testsuite/libgomp.fortran/reference1.f90: New test.
17704
17705 2005-10-11 Jakub Jelinek <jakub@redhat.com>
17706
17707 * testsuite/libgomp.dg/reduction-1.c: New test.
17708 * testsuite/libgomp.dg/reduction-2.c: New test.
17709 * testsuite/libgomp.dg/reduction-3.c: New test.
17710
17711 2005-10-10 Jakub Jelinek <jakub@redhat.com>
17712
17713 * testsuite/libgomp.dg/atomic-1.c: New test.
17714 * testsuite/libgomp.dg/atomic-2.c: New test.
17715
17716 2005-10-09 Richard Henderson <rth@redhat.com>
17717
17718 * critical.c (atomic_lock): New.
17719 (initialize_critical): Initialize it.
17720 (GOMP_atomic_start, GOMP_atomic_end): New.
17721 * libgomp.map: Export them.
17722 * libgomp_g.h: Declare them.
17723
17724 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
17725
17726 2005-10-02 Richard Henderson <rth@redhat.com>
17727
17728 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
17729 to XCFLAGS instead of CFLAGS.
17730
17731 2005-09-30 Richard Henderson <rth@redhat.com>
17732
17733 * configure.ac: Determine whether -pthread or -lpthread is needed.
17734 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
17735 * Makefile.in, configure: Rebuild.
17736
17737 2005-09-28 Richard Henderson <rth@redhat.com>
17738
17739 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
17740 * testsuite/libgomp.dg/omp-single-3.c: New test.
17741
17742 2005-09-28 Diego Novillo <dnovillo@redhat.com>
17743
17744 * testsuite/libgomp.dg/omp-single-2.c: New test.
17745 * testsuite/libgomp.dg/shared-2.c: Fix return code.
17746
17747 2005-09-27 Richard Henderson <rth@redhat.com>
17748
17749 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
17750 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
17751
17752 2005-09-27 Jakub Jelinek <jakub@redhat.com>
17753
17754 * testsuite/libgomp.dg/omp-loop03.c: New test.
17755
17756 2005-09-27 Diego Novillo <dnovillo@redhat.com>
17757
17758 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
17759
17760 2005-09-27 Diego Novillo <dnovillo@redhat.com>
17761
17762 * testsuite/libgomp.dg/omp-single-1.c: New test.
17763 * testsuite/libgomp.dg/shared-1.c: Return 0.
17764 Add prototype for abort.
17765 * testsuite/libgomp.dg/shared-2.c: Likewise.
17766
17767 2005-09-26 Jakub Jelinek <jakub@redhat.com>
17768
17769 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
17770 constructs.
17771
17772 2005-09-26 Diego Novillo <dnovillo@redhat.com>
17773
17774 * testsuite/libgomp.dg/shared-1.c: New test.
17775 * testsuite/libgomp.dg/shared-2.c: New test.
17776
17777 2005-09-24 Richard Henderson <rth@redhat.com>
17778
17779 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
17780
17781 2005-09-24 Richard Henderson <rth@redhat.com>
17782
17783 * iter.c (gomp_iter_static_next): Round up when computing number
17784 of iterations. Don't bother distributing a remainder equally.
17785
17786 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
17787 Don't call srand. Zero b before testing.
17788 (main): New.
17789
17790 2005-09-24 Jakub Jelinek <jakub@redhat.com>
17791
17792 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
17793 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
17794
17795 2005-09-23 Jakub Jelinek <jakub@redhat.com>
17796
17797 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
17798 without !$omp end do, followed immediately by subroutine end.
17799
17800 2005-09-23 Diego Novillo <dnovillo@redhat.com>
17801
17802 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
17803
17804 2005-09-22 Richard Henderson <rth@redhat.com>
17805
17806 * critical.c (GOMP_critical_name_start): Change argument to void**.
17807 Reuse the pointer space if the mutex fits.
17808 (GOMP_critical_name_end): Likewise.
17809 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
17810 * libgomp_g.h (GOMP_critical_name_start): Update decl.
17811 (GOMP_critical_name_end): Likewise.
17812 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
17813 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
17814
17815 2005-09-20 Richard Henderson <rth@redhat.com>
17816
17817 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
17818 (create_lock_lock): New.
17819 (initialize_critical): Initialize it.
17820 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
17821 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
17822
17823 2005-09-20 Diego Novillo <dnovillo@redhat.com>
17824
17825 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
17826
17827 2005-09-20 Diego Novillo <dnovillo@redhat.com>
17828
17829 * testsuite/libgomp.dg/omp-loop01.c: New test.
17830 * testsuite/libgomp.dg/omp-loop02.c: New test.
17831
17832 2005-09-20 Jakub Jelinek <jakub@redhat.com>
17833
17834 * configure.ac (AC_PROG_FC): Add.
17835 (USE_FORTRAN): New automake conditional.
17836 * configure: Rebuilt.
17837 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
17838 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
17839 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
17840 Add rules to build them.
17841 * Makefile.in: Rebuilt.
17842 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
17843 OMP_NEST_LOCK_KIND.
17844 * libgomp.map: Add Fortran wrappers.
17845 * libgomp_f.h.in: New file.
17846 * omp_lib.h.in: New file.
17847 * omp_lib.f90.in: New file.
17848 * fortran.c: New file.
17849 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
17850 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
17851 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
17852 libgfortran has been built.
17853 * testsuite/libgomp.fortran/fortran.exp: New file.
17854 * testsuite/libgomp.fortran/omp_cond1.f: New test.
17855 * testsuite/libgomp.fortran/omp_cond2.f: New test.
17856 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
17857 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
17858 * testsuite/libgomp.fortran/omp_hello.f: New test.
17859 * testsuite/libgomp.fortran/omp_orphan.f: New test.
17860 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
17861 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
17862 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
17863 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
17864 * testsuite/libgomp.fortran/omp_reduction.f: New test.
17865 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
17866 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
17867
17868 2005-08-30 Richard Henderson <rth@redhat.com>
17869
17870 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
17871 function for when aliases are not usable.
17872 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
17873 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
17874 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
17875 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
17876 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
17877 GOMP_loop_ordered_guided_next): Likewise.
17878 * ordered.c (GOMP_ordered_start): Likewise.
17879
17880 2005-08-01 Diego Novillo <dnovillo@redhat.com>
17881
17882 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
17883 * testsuite/libgomp.dg/omp_hello.c: Fix return code
17884 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
17885 * testsuite/libgomp.dg/omp_orphan.c: Likewise
17886 * testsuite/libgomp.dg/omp_reduction.c: Likewise
17887 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
17888 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
17889 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
17890 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
17891
17892 2005-07-07 Eric Christopher <echristo@redhat.com>
17893 Diego Novillo <dnovillo@redhat.com>
17894
17895 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
17896 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
17897 up code.
17898 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
17899 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
17900 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
17901 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
17902 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
17903 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
17904 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
17905
17906 2005-06-13 Diego Novillo <dnovillo@redhat.com>
17907
17908 * TOPLEVEL.patch: Remove.
17909
17910 2005-05-16 Richard Henderson <rth@redhat.com>
17911
17912 * configure.ac: Test for clock_gettime.
17913 * config.h.in, configure: Rebuild.
17914 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
17915 (omp_get_wtime): Use clock_gettime if available.
17916 (omp_get_wtick): Use clock_getres if available.
17917
17918 2005-05-11 Richard Henderson <rth@redhat.com>
17919
17920 * config/linux/ia64/futex.h: New file.
17921 * configure.tgt: Use it.
17922
17923 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
17924
17925 2005-05-07 Richard Henderson <rth@redhat.com>
17926
17927 * config/linux/powerpc/futex.h: New file.
17928 * configure.tgt: Use it.
17929
17930 * config/linux/i486/futex.h: Merge ...
17931 * config/linux/x86_64/futex.h: ... into ...
17932 * config/linux/x86/futex.h: ... here.
17933 * configure.tgt: Update to match.
17934
17935 2005-05-06 Richard Henderson <rth@redhat.com>
17936
17937 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
17938 * config/linux/i486/futex.h: Likewise.
17939 * config/linux/x86_64/futex.h: Likewise.
17940
17941 * config/linux/lock.c: New file.
17942 * config/linux/omp-lock.h: New file.
17943
17944 * critical.c, env.h: Don't include omp.h
17945 * config/posix/lock.c: Include libgomp.h instead of omp.h.
17946 * config/posix/time.c: Likewise.
17947 * config/posix/omp-lock.h: New file.
17948 * libgomp.h: Include omp-lock.h and omp.h.
17949 * Makefile.am (nodist_include_HEADERS): New.
17950 (omp.h): New rule.
17951 * configure.ac (PERL): New.
17952 * mkomp_h.pl: New file.
17953 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
17954 with templates.
17955 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
17956
17957 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
17958 build directory. Re-add -march=i486 hack.
17959
17960 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
17961 (libgomp_link_flags): Remove.
17962 (libgomp_initialized): Remove.
17963 (libgomp_init): Don't protect from reinitialization. Copy code
17964 from libstdc++ for getting the multilib set correctly.
17965
17966 2005-05-05 Richard Henderson <rth@redhat.com>
17967
17968 * config/linux/alpha/futex.h: New file.
17969 * configure.tgt (alpha*-*-linux*): Use it.
17970
17971 * config/posix/mutex.c: New file.
17972 * config/posix/sem.c: Use libgomp.h.
17973
17974 * configure.tgt (x86_64-linux): Also test CC for -m32.
17975 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
17976
17977 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
17978 after $gccpath.
17979
17980 * Makefile.am (SUBDIRS): New.
17981 (libgomp_la_LDFLAGS): Add -lpthread.
17982 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
17983 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
17984
17985 * libgomp_g.h: New file.
17986 * libgomp.h: Split out all public declarations to libgomp_g.h.
17987 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
17988 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
17989 * config/linux/sem.h: Likewise.
17990 * config/posix/sem.h: Likewise.
17991
17992 * Makefile.am (AM_LDFLAGS): New.
17993 (libgomp_version_script): Split out from ...
17994 (libgomp_la_LDFLAGS): ... here.
17995 (libgomp_version_info): New.
17996 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
17997 (LIBGOMP_ENABLE): New.
17998 (LIBGOMP_CHECK_LINKER_FEATURES): New.
17999 (LIBGOMP_ENABLE_SYMVERS): New.
18000 * configure.ac (AC_INIT): Version 1.0.
18001 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
18002 (enable-linux-futex): Likewise. Rename from enable-futex.
18003 (libtool_VERSION): New.
18004 (LIBGOMP_ENABLE_SYMVERS): Use it.
18005 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
18006 * Makefile.in, aclocal.m4, configure: Rebuild.
18007
18008 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
18009 (gomp_mutex_unlock_slow): Fix typo.
18010 * config/linux/sem.c: Similarly.
18011 (gomp_sem_post_slow): Fix typo.
18012 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
18013 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
18014 [__PIC__] (sys_futex0): Don't use tmp output in asm.
18015
18016 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
18017 (libgomp_la_LDFLAGS): Add top_srcdir to path.
18018 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
18019 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
18020 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
18021 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
18022 LDFLAGS. Pull enable_futex check to top-level.
18023 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
18024 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
18025
18026 First attempt at real configury.
18027 * Makefile, config.h: Remove file.
18028 * Makefile.am, Makefile.in: New file.
18029 * acinclude.m4 aclocal.m4: New file.
18030 * configure.ac, configure.tgt, configure: New file.
18031
18032 * config/posix/lock.c: Rename from sys-lock.c.
18033 * config/posix/mutex.h: Rename from sys-mutex.h.
18034 * config/posix/sem.c: Rename from sys-sem.c.
18035 * config/posix/sem.h: Rename from sys-sem.h.
18036 * config/posix/proc.c: Rename from sys-proc.c.
18037 * config/posix/time.c: Rename from sys-proc.c.
18038
18039 * config/linux/mutex.c: New file.
18040 * config/linux/mutex.h: New file.
18041 * config/linux/sem.c: New file.
18042 * config/linux/sem.h: New file.
18043 * config/linux/i486/futex.h: New file.
18044 * config/linux/x86_64/futex.h: New file.
18045
18046 2005-05-04 Richard Henderson <rth@redhat.com>
18047
18048 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
18049 * libgomp.h: Declare them.
18050 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
18051 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
18052
18053 2005-05-04 Richard Henderson <rth@redhat.com>
18054
18055 * libgomp-1 code drop
18056
18057 2005-05-04 Richard Henderson <rth@redhat.com>
18058
18059 * iter.c (gomp_iter_static_next): Return tri-state on 0.
18060 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
18061 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
18062 (gomp_iter_static_next): Update.
18063 (gomp_ordered_static_next): Update.
18064 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
18065 (gomp_loop_ordered_static_start): Likewise. Exit early for a
18066 totally empty range.
18067 (gomp_loop_ordered_static_next): Refine test for calling
18068 gomp_ordered_static_next.
18069 * testsuite/ordered-1.c: Add case for more threads than iterations.
18070
18071 * iter.c (gomp_iter_runtime_next_locked): Remove.
18072 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
18073 gomp_loop_guided_start, gomp_loop_ordered_static_start,
18074 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
18075 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
18076 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
18077 gomp_loop_ordered_guided_next): Downcase name, make static, add
18078 an external alias with the old name.
18079 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
18080 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
18081 switch and call one of the above static functions.
18082 * libgomp.h: Update.
18083
18084 * work.c (gomp_work_share_start): Lock the mutex for !first too.
18085 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
18086 GOMP_loop_guided_start, GOMP_loop_runtime_start,
18087 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
18088 GOMP_loop_ordered_guided_start): Update to match.
18089 * sections.c (GOMP_sections_start): Likewise.
18090 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
18091
18092 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
18093 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
18094 Use bounds check instead of modulus.
18095 (gomp_ordered_sync): Split out of GOMP_ordered_start.
18096 (gomp_ordered_last): Don't sync with ordered_owner here.
18097 (gomp_ordered_next): Likewise.
18098 (gomp_ordered_static_loop_next): Likewise.
18099 * loop.c, libgomp.h: Update to match.
18100
18101 * libgomp.h (GOMP_barrier): Declare.
18102
18103 * testsuite/barrier-1.c: New file.
18104 * testsuite/critical-1.c: New file.
18105 * testsuite/ordered-2.c: New file.
18106 * testsuite/ordered-1.c: New file.
18107 * testsuite/sections-1.c: New file.
18108 * testsuite/single-1.c: New file.
18109 * testsuite/Makefile (TESTS): Add them.
18110
18111 2005-05-04 Richard Henderson <rth@redhat.com>
18112
18113 * libgomp.h (struct gomp_work_share): Add ordered_owner.
18114 * loop.c (GOMP_loop_static_start): If not the startup thread,
18115 acquire the mutex to wait for initialization complete.
18116 (GOMP_loop_ordered_static_start): Likewise.
18117 (GOMP_loop_ordered_runtime_start): Likewise.
18118 (GOMP_loop_ordered_static_first): Remove.
18119 (GOMP_loop_ordered_dynamic_first): Remove.
18120 (GOMP_loop_ordered_guided_first): Remove.
18121 (GOMP_loop_ordered_runtime_first): Remove.
18122 * ordered.c (gomp_ordered_loop_first): Post to own release when
18123 we're the first thread.
18124 (gomp_ordered_loop_last): Wait on release if not owner.
18125 (gomp_ordered_loop_next): Likewise.
18126 (gomp_ordered_static_loop_init): New.
18127 (gomp_ordered_static_loop_next): Use ordered_owner.
18128 (GOMP_ordered_start): Likewise.
18129 * work.c (gomp_new_work_share): Initialize ordered_owner.
18130
18131 2005-05-03 Richard Henderson <rth@redhat.com>
18132
18133 * Makefile (OPT): New.
18134 (CFLAGS): Use it.
18135
18136 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
18137 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
18138 * libgomp.h, libgomp.map, NOTES: Update to match.
18139
18140 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
18141 Add initialized and thr members.
18142 (gomp_thread_start): Pause when initially spawned to wait for
18143 the whole team to be created.
18144 (gomp_team_start): Release team members at the end.
18145
18146 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
18147 (f_foo_1): Use GOMP_loop_end.
18148 (f_foo_2): Use GOMP_loop_end_nowait.
18149
18150 * testsuite/loop-2.c: New file.
18151 * testsuite/Makefile (TESTS): Add it.
18152
18153 2005-05-03 Richard Henderson <rth@redhat.com>
18154
18155 * iter.c (gomp_iter_static_next): Fix overflow check typo.
18156 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
18157 * team.c (new_team): Initialize oldest_live_gen to 1 if no
18158 initial work_share.
18159
18160 * testsuite/Makefile: New file.
18161 * testsuite/loop-1.c: New file.
18162
18163 2005-05-03 Richard Henderson <rth@redhat.com>
18164
18165 Initial implementation and checkin.
18166 \f
18167 Copyright (C) 2005-2022 Free Software Foundation, Inc.
18168
18169 Copying and distribution of this file, with or without modification,
18170 are permitted in any medium without royalty provided the copyright
18171 notice and this notice are preserved.