1 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
3 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
5 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
6 on_device_arch_gcn): New.
7 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
8 requires-4.c but using heap-allocated memory.
10 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
13 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
15 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
17 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
18 '-foffload-options' syntax.
20 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
22 * testsuite/libgomp.fortran/task-7.f90: New test.
23 * testsuite/libgomp.fortran/task-8.f90: New test.
24 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
25 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
26 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
27 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
28 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
30 2022-10-12 Jakub Jelinek <jakub@redhat.com>
32 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
33 in deprecation bullet.
35 2022-10-12 Jakub Jelinek <jakub@redhat.com>
37 * omp.h.in (omp_in_explicit_task): Declare.
38 * omp_lib.h.in (omp_in_explicit_task): Likewise.
39 * omp_lib.f90.in (omp_in_explicit_task): New interface.
40 * libgomp.map (OMP_5.2): New symbol version, export
41 omp_in_explicit_task and omp_in_explicit_task_.
42 * task.c (omp_in_explicit_task): New function.
43 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
44 (omp_in_explicit_task_): New function.
45 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
46 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
47 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
48 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
50 2022-10-12 Jakub Jelinek <jakub@redhat.com>
52 * task.c (gomp_create_artificial_team): Fix up handling of invocations
53 from within explicit task.
54 * target.c (GOMP_target_ext): Likewise.
55 * testsuite/libgomp.c/task-7.c: New test.
56 * testsuite/libgomp.c/task-8.c: New test.
57 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
58 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
60 2022-10-12 Martin Liska <mliska@suse.cz>
62 * configure: Regenerate.
64 2022-10-11 Olivier Hainque <hainque@adacore.com>
65 Olivier Hainque <hainque@adacore.com>
67 * configure: Regenerate.
69 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
71 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
73 2022-10-04 Jakub Jelinek <jakub@redhat.com>
75 * libgomp.texi (Support begin/end declare target syntax in C/C++):
78 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
81 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
83 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
85 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
86 for C/C++. Remove duplicated 'begin declare target' entry.
88 2022-09-24 Jakub Jelinek <jakub@redhat.com>
91 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
93 2022-09-14 Julian Brown <julian@codesourcery.com>
95 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
96 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
97 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
98 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
99 test to here, make "run" test.
101 2022-09-13 Jakub Jelinek <jakub@redhat.com>
104 * env.c (get_icv_member_addr): Cast false to void * before assigning
105 it to icv_addr[1], and comment the whole assignment out.
107 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
109 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
112 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
114 * libgomp.texi (Offload-Target Specifics: nvptx): Document
115 that reverse offload requires >= -march=sm_35.
116 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
118 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
119 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
120 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
121 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
122 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
124 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
126 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
127 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
129 2022-09-12 Jakub Jelinek <jakub@redhat.com>
132 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
133 (main): Avoid tests for which corresponding non-_ALL suffixed variable
134 is in the environment, or for OMP_NUM_TEAMS on the device
137 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
139 * env.c (initialize_env): Include libiberty environ.h.
141 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
143 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
144 function address table '$offload_func_table' if rev_fn_table
147 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
149 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
150 .offload_func_table to populate rev_fn_table when requested.
152 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
154 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
155 'uint64_t **rev_fn_table' argument.
156 * oacc-host.c (host_load_image): Likewise.
157 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
159 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
160 * target.c (gomp_load_image_to_device): Update call but pass
163 2022-09-09 Jakub Jelinek <jakub@redhat.com>
166 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
167 char * for dest[1] initialization from params[1]. Formatting fixes.
169 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
172 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
174 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
176 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
177 section; move OpenMP Context Selectors from ...
178 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
181 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
183 * config/gcn/icv-device.c (omp_get_default_device): Return device-
185 (omp_get_max_teams): Added for GCN devices.
186 (omp_set_num_teams): Likewise.
188 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
190 (omp_get_max_teams): Added for NVPTX devices.
191 (omp_set_num_teams): Likewise.
193 * env.c (struct gomp_icv_list): New struct to store entries of initial
195 (struct gomp_offload_icv_list): New struct to store entries of device-
196 specific ICV values that are copied to the device and back.
197 (struct gomp_default_icv_values): New struct to store default values of
198 ICVs according to the OpenMP standard.
199 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
200 (print_env_var_error): Function that prints an error for invalid values
202 (parse_unsigned_long_1): Removed getenv. Generalized.
203 (parse_unsigned_long): Likewise.
204 (parse_int_1): Likewise.
205 (parse_int): Likewise.
206 (parse_int_secure): Likewise.
207 (parse_unsigned_long_list): Likewise.
208 (parse_target_offload): Likewise.
209 (parse_bind_var): Likewise.
210 (parse_stacksize): Likewise.
211 (parse_boolean): Likewise.
212 (parse_wait_policy): Likewise.
213 (parse_allocator): Likewise.
214 (omp_display_env): Extended to output different variants of environment
216 (print_schedule): New helper function for omp_display_env which prints
217 the values of run_sched_var.
218 (print_proc_bind): New helper function for omp_display_env which prints
219 the values of proc_bind_var.
220 (enum gomp_parse_type): Collection of types used for parsing environment
222 (ENTRY): Preprocess string lengths of environment variables.
223 (OMP_VAR_CNT): Preprocess table size.
224 (OMP_HOST_VAR_CNT): Likewise.
225 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
227 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
228 (gomp_set_icv_flag): Sets a flag for a particular ICV.
229 (print_device_specific_icvs): New helper function for omp_display_env to
230 print device specific ICV values.
231 (get_device_num): New helper function for parse_device_specific.
232 Extracts the device number from an environment variable name.
233 (get_icv_member_addr): Gets the memory address for a particular member
235 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
236 (initialize_icvs): New function to initialize a gomp_initial_icvs
238 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
239 (startswith): Checks if a string starts with a given prefix.
240 (initialize_env): Extended to parse the new syntax of environment
242 * icv-device.c (omp_get_max_teams): Added.
244 (omp_set_num_teams): Likewise.
245 * icv.c (omp_set_num_teams): Moved to icv-device.c.
246 (omp_get_max_teams): Likewise.
248 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
249 (GOMP_ADDITIONAL_ICVS): New target-side struct that
250 holds the designated ICVs of the target device.
251 * libgomp.h (enum gomp_icvs): Collection of ICVs.
252 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
254 (enum gomp_env_suffix): Collection of possible suffixes of environment
256 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
258 (struct gomp_default_icv):New struct to hold ICVs for which we need
259 to store initial values.
260 (struct gomp_icv_list): Definition of a linked list that is used for
261 storing ICVs for the devices and also for _DEV, _ALL, and without
263 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
265 (struct gomp_offload_icv_list): Definition of a linked list that holds
266 device-specific ICVs that are copied to devices.
267 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
268 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
269 * libgomp.texi: Updated.
270 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
271 further ICVs from the offload image.
272 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
273 * target.c (gomp_get_offload_icv_item): Get a list item of
274 gomp_offload_icv_list.
275 (get_gomp_offload_icvs): New. Returns the ICV values
276 depending on the device num and the variable hierarchy.
277 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
278 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
279 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
280 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
281 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
282 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
283 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
285 2022-09-08 Jakub Jelinek <jakub@redhat.com>
287 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
289 * testsuite/libgomp.c/doacross-4.c: New test.
290 * testsuite/libgomp.c/doacross-5.c: New test.
291 * testsuite/libgomp.c/doacross-6.c: New test.
292 * testsuite/libgomp.c/doacross-7.c: New test.
294 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
296 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
298 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
300 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
302 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
303 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
304 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
305 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
307 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
310 * testsuite/libgomp.c/linear-2.c: New test.
312 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
314 * splay-tree.h: Fix splay_* macro unsetting if
315 splay_tree_prefix is defined.
317 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
319 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
321 2022-07-29 Jakub Jelinek <jakub@redhat.com>
324 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
326 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
328 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
330 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
333 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
334 'offloading_enabled' diagnostics issue.
336 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
338 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
339 '_Pragma' diagnostics verification.
341 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
343 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
344 improved warning locations.
345 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
347 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
349 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
350 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
351 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
352 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
353 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
355 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
357 * target.c (GOMP_offload_register, GOMP_offload_unregister):
358 Denote as legacy entry points.
359 * testsuite/lib/libgomp.exp
360 (check_effective_target_offload_target_any): New proc.
361 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
362 'offload_target_any'.
363 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
364 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
365 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
367 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
369 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
370 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
372 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
374 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
376 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
378 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
380 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
382 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
383 Jakub Jelinek <jakub@redhat.com>
385 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
387 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
388 Chung-Lin Tang <cltang@codesourcery.com>
389 Thomas Schwinge <thomas@codesourcery.com>
391 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
392 omp_requires_mask arg.
393 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
394 return -1 when device available but omp_requires_mask != 0.
395 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
396 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
398 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
399 goacc_attach_host_thread_to_device, acc_get_num_devices,
400 acc_set_device_num, get_property_any): Likewise.
401 * target.c (omp_requires_mask): New global var.
402 (gomp_requires_to_name): New.
403 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
404 (gomp_target_init): Handle omp_requires_mask.
405 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
406 (OpenMP 5.1): Add a missed item.
407 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
408 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
409 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
410 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
411 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
412 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
413 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
414 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
415 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
416 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
417 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
418 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
419 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
420 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
421 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
422 * testsuite/libgomp.fortran/requires-1.f90: New test.
424 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
426 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
427 with fromto as implemented.
429 2022-06-28 Martin Liska <mliska@suse.cz>
431 * acinclude.m4: Fix typo in mold linker detection.
432 * Makefile.in: Regenerate.
433 * configure: Regenerate.
435 2022-06-21 Jakub Jelinek <jakub@redhat.com>
436 Paul Iannetta <piannetta@kalrayinc.com>
439 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
441 2022-06-17 Martin Liska <mliska@suse.cz>
443 * libgomp.texi: Add table header for new features of
446 2022-06-15 Jakub Jelinek <jakub@redhat.com>
448 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
449 q to ddress of an automatic variable. Use -5 instead of -1 in
450 omp_get_mapped_ptr call. Add test with omp_initial_device.
451 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
452 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
453 Renumber stop arguments afterwards.
455 2022-06-13 Jakub Jelinek <jakub@redhat.com>
457 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
458 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
460 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
461 * target.c (resolve_device): Add remapped argument, handle
462 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
463 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
464 if remapped, otherwise treat omp_initial_device that way. For
465 omp_invalid_device, always emit gomp_fatal, even when
466 OMP_TARGET_OFFLOAD isn't mandatory.
467 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
468 GOMP_target_update, GOMP_target_update_ext,
469 GOMP_target_enter_exit_data): Pass true as remapped argument to
471 (omp_target_alloc, omp_target_free, omp_target_is_present,
472 omp_target_memcpy_check, omp_target_associate_ptr,
473 omp_target_disassociate_ptr, omp_get_mapped_ptr,
474 omp_target_is_accessible): Pass false as remapped argument to
475 resolve_device. Treat omp_initial_device the same as
476 gomp_get_num_devices (). Don't bypass resolve_device calls if
477 device_num is negative.
478 (omp_pause_resource): Treat omp_initial_device the same as
479 gomp_get_num_devices (). Call resolve_device.
480 * icv-device.c (omp_set_default_device): Always set to device_num
481 even when it is negative.
482 * libgomp.texi: Document that Conforming device numbers,
483 omp_initial_device and omp_invalid_device is implemented.
484 * testsuite/libgomp.c/target-41.c (main): Add test with
486 * testsuite/libgomp.c/target-45.c: New test.
487 * testsuite/libgomp.c/target-46.c: New test.
488 * testsuite/libgomp.c/target-47.c: New test.
489 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
490 test with omp_initial_device. Use -5 instead of -1 for negative value
492 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
493 Likewise. Reorder stop numbers.
495 2022-06-10 Jakub Jelinek <jakub@redhat.com>
497 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
498 rather than "libmemkind.so".
500 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
502 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
503 * plugin/configfrag.ac (--with-cuda-driver)
504 (--with-cuda-driver-include, --with-cuda-driver-lib)
505 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
506 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
508 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
509 (cuda_driver_lib): Remove.
510 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
511 * Makefile.in: Regenerate.
512 * configure: Likewise.
513 * testsuite/Makefile.in: Likewise.
515 2022-06-09 Jakub Jelinek <jakub@redhat.com>
517 * config/linux/allocator.c: Fix up #include directive.
519 2022-06-09 Jakub Jelinek <jakub@redhat.com>
521 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
522 (enum gomp_memkind_kind): New type.
523 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
525 (struct gomp_memkind_data): New type.
526 (memkind_data, memkind_data_once): New variables.
527 (gomp_init_memkind, gomp_get_memkind): New functions.
528 (omp_init_allocator): Initialize data.memkind, don't fail for
529 omp_high_bw_mem_space if libmemkind supports it.
530 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
531 memkind support of LIBGOMP_USE_MEMKIND is defined.
532 * config/linux/allocator.c: New file.
534 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
536 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
537 * testsuite/libgomp.fortran/scope-2.f90: New test.
539 2022-06-02 David Malcolm <dmalcolm@redhat.com>
541 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
543 2022-05-31 Jakub Jelinek <jakub@redhat.com>
545 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
546 scope construct with allocate clause.
547 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
548 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
550 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
552 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
553 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
554 explicit 'to' and 'enter' clause.
555 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
557 2022-05-28 Jakub Jelinek <jakub@redhat.com>
560 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
561 defined(HAVE__ALIGNED_MALLOC) case.
562 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
563 handling as last option before fallback instead of first.
564 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
567 2022-05-27 Jakub Jelinek <jakub@redhat.com>
569 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
571 * testsuite/libgomp.c/target-41.c: Likewise.
573 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
575 * libgomp.texi (Other new OpenMP 5.1 features): Add
576 'begin declare target'.
577 (Other new OpenMP 5.2 features): New.
579 2022-05-25 Jakub Jelinek <jakub@redhat.com>
581 * task.c (gomp_task_run_post_handle_dependers): If empty_task
582 is the last task taskwait depend depends on, wake it up.
583 Similarly if it is the last child of a taskgroup, use atomic
584 store instead of decrement and awak taskgroup wait if any.
585 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
587 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
589 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
590 EF_AMDGPU_MACH_AMDGCN_GFX90a.
592 (isa_hsa_name): Support gfx90a.
593 (isa_code): Likewise.
595 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
598 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
599 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
601 2022-05-24 Jakub Jelinek <jakub@redhat.com>
604 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
605 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
606 * task.c (empty_task): New function.
607 (gomp_task_run_post_handle_depend_hash): Declare earlier.
608 (gomp_task_run_post_handle_depend): Declare.
609 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
611 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
612 (GOMP_taskwait_depend_nowait): New function.
613 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
615 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
618 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
619 Support attach for GOMP_MAP_FIRSTPRIVATE.
620 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
621 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
622 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
624 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
626 * libgomp.map: Added omp_target_memcpy_async and
627 omp_target_memcpy_rect_async.
628 * libgomp.texi: Both functions are now supported.
629 * omp.h.in: Added omp_target_memcpy_async and
630 omp_target_memcpy_rect_async.
631 * omp_lib.f90.in: Added interfaces for both new functions.
632 * omp_lib.h.in: Likewise.
633 * target.c (ialias_redirect): Added for GOMP_task.
634 (omp_target_memcpy): Restructured into check and copy part.
635 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
636 omp_target_memcpy_async that checks requirements.
637 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
638 omp_target_memcpy_async that performs the memcpy.
639 (omp_target_memcpy_async_helper): New helper function that is used in
640 omp_target_memcpy_async for the asynchronous task.
641 (omp_target_memcpy_async): Added.
642 (omp_target_memcpy_rect): Restructured into check and copy part.
643 (omp_target_memcpy_rect_check): New helper function for
644 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
646 (omp_target_memcpy_rect_copy): New helper function for
647 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
649 (omp_target_memcpy_rect_async_helper): New helper function that is used
650 in omp_target_memcpy_rect_async for the asynchronous task.
651 (omp_target_memcpy_rect_async): Added.
652 * task.c (ialias): Added for GOMP_task.
653 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
654 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
655 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
656 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
657 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
658 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
659 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
660 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
662 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
664 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
665 (OpenMP Context Selectors): Add missing comma.
666 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
667 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
668 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
669 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
671 2022-05-17 Jakub Jelinek <jakub@redhat.com>
673 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
674 comment for omp_display_env feature.
676 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
678 * libgomp.texi (Offload-Target Specifics): New chapter; add section
679 to document OpenMP context selectors.
681 2022-05-17 Jakub Jelinek <jakub@redhat.com>
683 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
684 from bool to unsigned char.
685 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
686 Ignore dependencies where
687 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
688 rather than just task->depend[i].is_in && ent->is_in. Remember
689 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
691 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
692 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
693 rather than just elem.is_in && ent->is_in.
694 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
695 inoutset depend-kind.
696 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
697 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
698 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
700 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
702 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
704 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
706 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
707 * testsuite/libgomp.fortran/depend-5.f90: New test.
708 * testsuite/libgomp.fortran/depend-6.f90: New test.
709 * testsuite/libgomp.fortran/depend-7.f90: New test.
711 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
713 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
714 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
715 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
717 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
719 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
721 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
723 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
725 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
727 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
728 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
729 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
730 append '$(PLUGIN_NVPTX_LDFLAGS)'.
731 * Makefile.in: Regenerate.
733 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
735 * Makefile.am (libgomp_la_LIBADD): Initialize.
736 * plugin/configfrag.ac (DL_LIBS): New.
737 (PLUGIN_GCN_LIBS): Remove.
738 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
739 * plugin/Makefrag.am (libgomp_la_LIBADD)
740 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
741 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
742 * Makefile.in: Regenerate.
743 * config.h.in: Likewise.
744 * configure: Likewise.
745 * testsuite/Makefile.in: Likewise.
747 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
749 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
750 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
751 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
752 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
753 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
754 'PLUGIN_NVPTX_LINK_LIBCUDA'.
755 * Makefile.in: Regenerate.
756 * config.h.in: Likewise.
757 * configure: Likewise.
759 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
761 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
762 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
763 * Makefile.in: Regenerate.
764 * config.h.in: Likewise.
765 * configure: Likewise.
766 * testsuite/Makefile.in: Likewise.
768 2022-05-12 Jakub Jelinek <jakub@redhat.com>
770 * libgomp.h (struct gomp_task): Add depend_all_memory member.
771 * task.c (gomp_init_task): Initialize depend_all_memory.
772 (gomp_task_handle_depend): Handle omp_all_memory.
773 (gomp_task_run_post_handle_depend_hash): Clear
774 parent->depend_all_memory if equal to current task.
775 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
776 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
777 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
778 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
780 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
782 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
783 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
784 * Makefile.in: Regenerate.
785 * configure: Likewise.
786 * testsuite/Makefile.in: Likewise.
788 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
790 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
791 consider 'PLUGIN_GCN_CPPFLAGS'.
792 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
793 'PLUGIN_GCN_LDFLAGS'.
794 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
796 * Makefile.in: Regenerate.
797 * configure: Likewise.
798 * testsuite/Makefile.in: Likewise.
800 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
802 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
803 (HSA_RUNTIME_LDFLAGS): Remove.
804 * configure: Regenerate.
806 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
808 * testsuite/lib/libgomp.exp (libgomp_init): Don't
809 'append always_ld_library_path ":$hsa_runtime_lib"'.
810 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
812 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
814 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
815 multi-device testing.
817 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
819 * libgomp.map: Added omp_target_is_accessible.
820 * libgomp.texi: Tagged omp_target_is_accessible as supported.
821 * omp.h.in: Added omp_target_is_accessible.
822 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
823 * omp_lib.h.in: Likewise.
824 * target.c (omp_target_is_accessible): Added implementation of
825 omp_target_is_accessible.
826 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
827 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
829 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
831 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
833 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
835 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
837 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
839 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
841 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
843 * libgomp.map: Added omp_get_mapped_ptr.
844 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
845 * omp.h.in: Added omp_get_mapped_ptr.
846 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
847 * omp_lib.h.in: Likewise.
848 * target.c (omp_get_mapped_ptr): Added implementation of
850 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
851 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
852 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
853 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
854 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
855 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
856 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
857 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
859 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
862 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
863 privatization scanning. For GCN offloading compilation, raise
864 '-mgang-private-size'.
866 2022-04-26 Jakub Jelinek <jakub@redhat.com>
869 * work.c (gomp_init_work_share): Don't mask of adjustment for
870 dynamic long long realignment if struct gomp_work_share has smaller
871 alignof than long long.
872 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
873 struct gomp_work_share has smaller alignof than long long or if
874 sizeof (struct gomp_work_share) is smaller than
875 INLINE_ORDERED_TEAM_IDS_OFF.
876 * loop_ull.c (GOMP_loop_ull_start): Likewise.
877 * sections.c (GOMP_sections2_start): Likewise.
879 2022-04-25 Jakub Jelinek <jakub@redhat.com>
880 Thomas Schwinge <thomas@codesourcery.com>
883 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
885 2022-04-13 Jakub Jelinek <jakub@redhat.com>
887 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
889 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
891 * plugin/cuda/cuda.h: Remove file.
892 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
893 "cuda/cuda.h" instead of <cuda.h>.
894 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
895 'PLUGIN_NVPTX_CPPFLAGS'.
896 * configure: Regenerate.
898 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
900 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
902 2022-04-04 Tom de Vries <tdevries@suse.de>
904 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
905 on_device_arch_nvptx instead of offload_target_nvptx.
906 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
908 2022-04-01 Tom de Vries <tdevries@suse.de>
910 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
912 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
914 2022-04-01 Tom de Vries <tdevries@suse.de>
916 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
919 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
920 Lulu Cheng <chenglulu@loongson.cn>
922 * configure.tgt: Add LoongArch triplet.
924 2022-03-28 Tom de Vries <tdevries@suse.de>
926 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
927 instead of /libexec/.
928 * configure: Regenerate.
930 2022-03-25 Tom de Vries <tdevries@suse.de>
933 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
935 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
936 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
938 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
941 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
942 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
943 * testsuite/libgomp.c++/target-same-name-2.C: New test.
944 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
945 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
946 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
948 2022-03-22 Tom de Vries <tdevries@suse.de>
952 * testsuite/libgomp.c/pr104783-2.c: New test.
954 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
957 * testsuite/libgomp.fortran/associate4.f90: New test.
959 2022-03-18 Tom de Vries <tdevries@suse.de>
962 * testsuite/libgomp.c/pr104952-1.c: New test.
963 * testsuite/libgomp.c/pr104952-2.c: New test.
965 2022-03-18 Jakub Jelinek <jakub@redhat.com>
967 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
968 variable next to pl variable.
970 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
972 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
974 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
975 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
977 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
980 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
981 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
983 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
985 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
986 omp_set_max_active_levels.
987 * testsuite/libgomp.fortran/icv-8.f90: New test.
989 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
992 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
994 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
996 * libgomp.texi: Fix typo.
998 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1000 PR middle-end/100280
1001 PR middle-end/104892
1002 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1003 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
1004 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1006 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1008 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1009 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1010 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1013 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1015 PR middle-end/104892
1016 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
1018 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
1019 enable '--param=openacc-kernels=decompose' and adjust.
1020 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1022 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1023 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1026 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1029 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
1030 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
1031 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1032 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
1034 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
1036 PR middle-end/100280
1037 PR middle-end/104086
1038 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1040 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1042 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
1044 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1047 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
1049 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
1050 trait. Test last index in w and v array. Remove redundant
1051 assignment to V(1). Move alignment checks at the end of
1054 2022-03-10 Tom de Vries <tdevries@suse.de>
1056 * testsuite/libgomp.c/pr104783.c: New test.
1058 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
1061 PR middle-end/102330
1062 PR middle-end/104774
1063 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1065 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1067 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1069 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1071 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1073 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1075 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1077 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1079 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1081 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1083 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1085 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1087 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1089 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1091 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1092 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1093 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1095 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
1098 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
1099 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1100 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1101 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
1103 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1106 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
1107 expected diagnostics.
1109 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1111 PR middle-end/104784
1112 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1113 Test with '--param=openacc-kernels=decompose'.
1114 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1116 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1118 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1120 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1122 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1124 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1126 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1128 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1130 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1132 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1134 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1136 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1138 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1140 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1142 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1144 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1146 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1148 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1150 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1152 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1154 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1156 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1158 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1160 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1162 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1164 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1166 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1168 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1170 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1172 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1174 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1176 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1179 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1181 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1182 Test '-fopt-info-omp-all'.
1183 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1185 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1187 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1189 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1191 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1193 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1195 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1197 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1199 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1201 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1203 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1205 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1207 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1209 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1211 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1213 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1215 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1217 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1219 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1221 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1223 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1225 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1227 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1229 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1231 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1233 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1235 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1237 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1239 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1241 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1243 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1245 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1248 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1250 PR middle-end/100280
1251 PR middle-end/104132
1252 PR middle-end/104133
1253 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1256 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1258 PR middle-end/100280
1259 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1260 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1263 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1265 PR middle-end/100280
1266 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1267 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1270 2022-02-28 Tom de Vries <tdevries@suse.de>
1272 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
1273 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
1274 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
1275 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
1276 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
1277 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
1279 2022-02-24 Tom de Vries <tdevries@suse.de>
1281 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
1282 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
1283 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
1284 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
1285 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
1286 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
1287 * testsuite/libgomp.c/declare-variant-3.h: New header file.
1289 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
1291 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
1292 gang-redundant execution.
1294 2022-02-22 Tom de Vries <tdevries@suse.de>
1297 * config/nvptx/bar.c (generation_to_barrier): New function, copied
1298 from config/rtems/bar.c.
1299 (futex_wait, futex_wake): New function.
1300 (do_spin, do_wait): New function, copied from config/linux/wait.h.
1301 (gomp_barrier_wait_end, gomp_barrier_wait_last)
1302 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
1303 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
1304 and replace with include of config/linux/bar.c.
1305 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
1306 (gomp_barrier_init): Init new fields.
1307 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
1309 * testsuite/libgomp.c/pr99555-1.c: Same.
1310 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
1312 2022-02-22 Tom de Vries <tdevries@suse.de>
1315 * testsuite/libgomp.c++/pr96390.C: Add additional-option
1316 -foffload=-Wa,--verify for nvptx.
1317 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
1319 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
1321 * testsuite/libgomp.fortran/depend-4.f90: New test.
1323 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
1326 * testsuite/libgomp.c++/target-virtual-1.C: New test.
1328 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
1330 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
1331 * target.c (copy_firstprivate_data): Copy only if host address is not
1333 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
1334 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
1335 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
1336 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
1337 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
1338 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
1339 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
1340 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
1341 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
1342 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
1344 2022-02-08 Jakub Jelinek <jakub@redhat.com>
1347 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
1349 * testsuite/libgomp.c/pr104385.c: New test.
1351 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1353 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
1354 STOP of previous commit.
1356 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1358 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
1359 from is_64bit_aligned_.
1360 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
1361 and use it, more implicit none, remove unused argument.
1363 2022-02-03 David Seifert <soap@gentoo.org>
1364 Jakub Jelinek <jakub@redhat.com>
1366 * configure.ac: Support --disable-werror.
1367 * configure: Regenerate.
1369 2022-02-01 Tom de Vries <tdevries@suse.de>
1371 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
1373 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
1374 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
1376 2022-02-01 Tom de Vries <tdevries@suse.de>
1378 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
1379 num_workers for nvidia accelerator to fix libgomp error 'insufficient
1381 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1383 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
1385 2022-02-01 Tom de Vries <tdevries@suse.de>
1387 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1389 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1391 2022-01-31 Martin Liska <mliska@suse.cz>
1393 * acinclude.m4: Detect *_ld_is_mold and use it.
1394 * configure: Regenerate.
1396 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
1398 * libgomp.texi (OpenMP 5.0): Update implementation status.
1400 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
1402 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
1403 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1404 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1405 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1406 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1407 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1408 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1409 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1410 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1411 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1412 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1413 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
1414 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
1415 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1416 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
1418 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
1420 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
1421 "static") to make the device num available in the offload image.
1423 2022-01-19 Martin Liska <mliska@suse.cz>
1424 Thomas Schwinge <thomas@codesourcery.com>
1426 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
1428 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1429 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1431 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1432 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1433 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1434 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1435 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
1437 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
1439 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
1441 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
1443 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
1445 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1447 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1448 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1449 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1451 2022-01-18 Martin Liska <mliska@suse.cz>
1453 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
1455 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1456 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1457 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1458 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1459 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1460 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1461 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
1462 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
1463 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
1464 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
1465 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
1466 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
1467 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1468 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1469 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1471 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
1473 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
1474 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1475 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1477 2022-01-17 Julian Brown <julian@codesourcery.com>
1478 Thomas Schwinge <thomas@codesourcery.com>
1480 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
1481 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
1482 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
1484 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1485 Andrew Stubbs <ams@codesourcery.com>
1487 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
1488 the number of teams and threads if necessary.
1489 (gcn_exec): Automatically set the number of gangs and workers if
1492 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
1494 * testsuite/libgomp.fortran/allocate-1.c: New test.
1495 * testsuite/libgomp.fortran/allocate-1.f90: New test.
1496 * libgomp.texi: Remove string that says that allocate clause
1497 support is for C/C++ only.
1499 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1501 * testsuite/libgomp.c-c++-common/on_device_arch.h
1502 (any_device_arch, any_device_arch_intel_mic): New.
1503 * testsuite/lib/libgomp.exp
1504 (check_effective_target_offload_device_any_intel_mic): New.
1505 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
1506 * testsuite/libgomp.fortran/target10.f90: Likewise.
1508 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1510 PR tree-optimization/102192
1511 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
1512 '-Wuninitialized' diagnostics.
1514 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1516 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
1517 current '-Wuninitialized' diagnostics.
1518 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
1519 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
1520 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
1521 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
1522 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1523 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
1524 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
1525 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1526 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1527 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1528 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
1531 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1533 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
1534 for 'offload_device_intel_mic'.
1536 2022-01-13 Julian Brown <julian@codesourcery.com>
1537 Thomas Schwinge <thomas@codesourcery.com>
1539 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
1540 offloading execution XFAIL.
1542 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1544 PR middle-end/100280
1545 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1547 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1548 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1551 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1553 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1555 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1557 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
1558 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1559 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
1560 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
1561 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1563 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1564 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1565 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1566 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1568 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
1570 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
1571 * testsuite/libgomp.fortran/target10.f90: Likewise.
1573 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
1575 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
1576 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
1577 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1579 2022-01-03 Jakub Jelinek <jakub@redhat.com>
1581 * libgomp.texi: Bump @copying's copyright year.
1583 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
1585 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
1586 * testsuite/libgomp.fortran/atomic-19.f90: New test.
1588 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
1590 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
1591 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
1592 table, not individual symbols.
1594 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1596 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
1597 "target offload_device_nonshared_as"
1598 * testsuite/libgomp.c++/target-this-3.C: Likewise.
1599 * testsuite/libgomp.c++/target-this-4.C: Likewise.
1601 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1603 * target.c (gomp_map_vars_existing): Make sure attached pointer is
1604 not overwritten during cross-host/device copying.
1605 (gomp_update): Likewise.
1606 (gomp_exit_data): Likewise.
1607 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
1608 * testsuite/libgomp.c++/target-12.C: Likewise.
1609 * testsuite/libgomp.c++/target-15.C: Likewise.
1610 * testsuite/libgomp.c++/target-16.C: Likewise.
1611 * testsuite/libgomp.c++/target-17.C: Likewise.
1612 * testsuite/libgomp.c++/target-21.C: Likewise.
1613 * testsuite/libgomp.c++/target-23.C: Likewise.
1614 * testsuite/libgomp.c/target-23.c: Likewise.
1615 * testsuite/libgomp.c/target-29.c: Likewise.
1616 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
1618 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1621 * libgomp.h (gomp_attach_pointer): Add bool parameter.
1622 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
1623 (goacc_enter_data_internal): Likewise.
1624 * target.c (gomp_map_vars_existing): Update assert condition to
1625 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
1626 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
1627 parameter, add support for mapping a pointer with NULL target.
1628 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
1629 parameter, add support for attaching a pointer with NULL target.
1630 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
1631 gomp_attach_pointer, add handling for
1632 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
1633 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
1634 * testsuite/libgomp.c++/target-23.C: New testcase.
1635 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
1636 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
1637 * testsuite/libgomp.c++/target-this-1.C: New testcase.
1638 * testsuite/libgomp.c++/target-this-2.C: New testcase.
1639 * testsuite/libgomp.c++/target-this-3.C: New testcase.
1640 * testsuite/libgomp.c++/target-this-4.C: New testcase.
1641 * testsuite/libgomp.c++/target-this-5.C: New testcase.
1643 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
1645 * libgomp.texi (OpenMP 5.1): Update status.
1647 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
1649 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
1651 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
1654 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
1655 * testsuite/libgomp.fortran/pr90030.f90: New test.
1657 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1658 Thomas Schwinge <thomas@codesourcery.com>
1660 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
1663 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
1664 Thomas Schwinge <thomas@codesourcery.com>
1666 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
1669 2021-11-29 Richard Biener <rguenther@suse.de>
1671 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
1674 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1676 PR middle-end/103384
1677 * testsuite/libgomp.c/declare-variant-2.c: New test.
1679 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
1681 * alloc.c (gomp_aligned_alloc): Fix typo.
1683 2021-11-18 Jakub Jelinek <jakub@redhat.com>
1686 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
1687 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
1688 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
1689 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1690 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
1691 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
1692 gomp_aligned_alloc instead of team_malloc.
1694 2021-11-18 Jakub Jelinek <jakub@redhat.com>
1697 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
1698 memalign over posix_memalign over aligned_alloc over fallback
1699 with malloc instead of aligned_alloc over _aligned_alloc over
1700 posix_memalign over memalign over fallback with malloc. For
1701 aligned_alloc, round up size up to multiple of al.
1703 2021-11-16 Jakub Jelinek <jakub@redhat.com>
1705 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
1706 construct as implemented.
1708 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
1710 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
1712 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1714 * task.c (gomp_create_target_task): Copy args array as well.
1715 * target.c (gomp_target_fallback): Add args argument.
1716 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
1717 (GOMP_target): Adjust gomp_target_fallback caller.
1718 (GOMP_target_ext): Likewise.
1719 (gomp_target_task_fn): Likewise.
1720 * config/nvptx/team.c (gomp_nvptx_main): Set
1721 gomp_global_icv.thread_limit_var.
1722 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
1724 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1726 * config/nvptx/team.c (__gomp_team_num): Define as
1727 __attribute__((shared)) var.
1728 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
1729 * config/nvptx/target.c (__gomp_team_num): Declare as
1730 extern __attribute__((shared)) var.
1731 (GOMP_teams4): Use __gomp_team_num as the team number instead of
1732 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
1733 is bigger than num_blocks, use num_teams_lower teams and arrange for
1734 bumping of __gomp_team_num if !first and returning false once we run
1736 * config/nvptx/teams.c (__gomp_team_num): Declare as
1737 extern __attribute__((shared)) var.
1738 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
1740 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1742 * testsuite/libgomp.c/teams-5.c: New test.
1744 2021-11-12 Jakub Jelinek <jakub@redhat.com>
1747 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
1749 * config/gcn/teams.c: ... here. New file.
1751 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
1753 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
1754 implicit map handling to allow a "superset" existing map as valid case.
1755 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
1756 (get_implicit): New function to extract implicit status.
1757 (gomp_map_fields_existing): Adjust arguments in calls to
1758 gomp_map_vars_existing, and add uses of get_implicit.
1759 (gomp_map_vars_internal): Likewise.
1760 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
1762 2021-11-12 Jakub Jelinek <jakub@redhat.com>
1764 * libgomp_g.h (GOMP_teams4): Declare.
1765 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
1766 * target.c (GOMP_teams4): New function.
1767 * config/nvptx/target.c (GOMP_teams): Remove.
1768 (GOMP_teams4): New function.
1769 * config/gcn/target.c (GOMP_teams): Remove.
1770 (GOMP_teams4): New function.
1771 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
1772 teams instead of <= 2.
1773 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
1775 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
1777 * testsuite/libgomp.fortran/teams-1.f90: New test.
1779 2021-11-11 Jakub Jelinek <jakub@redhat.com>
1781 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
1782 * team.c (struct gomp_thread_start_data): Likewise.
1783 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
1784 (gomp_team_start): Initialize start_data->num_teams and
1785 start_data->team_num. Update nthr->num_teams and nthr->team_num.
1786 * teams.c (gomp_num_teams, gomp_team_num): Remove.
1787 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
1788 instead of gomp_num_teams and gomp_team_num.
1789 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
1790 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
1791 * testsuite/libgomp.c/teams-4.c: New test.
1793 2021-11-11 Jakub Jelinek <jakub@redhat.com>
1795 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
1797 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
1799 * env.c (parse_gomp_openacc_dim): Restore parsing.
1801 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
1803 PR middle-end/102972
1804 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
1806 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
1807 * testsuite/libgomp.c/target-3.c: Likewise.
1808 * testsuite/libgomp.c/target-5.c: Likewise.
1809 * testsuite/libgomp.c/target-6.c: Likewise.
1810 * testsuite/libgomp.c/target-teams-1.c: Likewise.
1811 * testsuite/libgomp.c/teams-1.c: Likewise.
1812 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1813 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
1814 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
1815 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
1816 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
1817 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
1818 * testsuite/libgomp.fortran/teams1.f90: Likewise.
1820 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
1822 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
1823 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1825 2021-10-27 Jakub Jelinek <jakub@redhat.com>
1827 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
1828 aren't implemented for Fortran yet.
1830 2021-10-27 Jakub Jelinek <jakub@redhat.com>
1832 * testsuite/libgomp.c/loop-26.c: New test.
1833 * testsuite/libgomp.c/loop-27.c: New test.
1835 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
1838 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
1839 instead of #include <alloca.h> + alloca.
1841 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
1843 * libgomp.texi (Support of strictly structured blocks in Fortran):
1845 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
1847 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
1849 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
1850 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
1852 2021-10-20 Jakub Jelinek <jakub@redhat.com>
1855 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
1856 (struct gomp_work_share): Only use aligned(64) attribute if
1857 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
1858 add padding before lock to ensure lock is at offset 64 bytes
1860 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
1861 New poor man's static assertions.
1862 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
1863 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1865 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1866 Richard Biener <rguenther@suse.de>
1868 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
1870 2021-10-18 Jakub Jelinek <jakub@redhat.com>
1872 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
1873 && gomp_places_list_len < count after nfirst <= nlast loop condition.
1875 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
1884 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
1886 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1888 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
1889 type from char [50] to const char *.
1890 (places_array): Add a testcase for simplified syntax place followed
1891 by length or length and stride.
1893 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1895 * env.c (parse_one_place): Handle non-negative-number the same
1896 as { non-negative-number }. Reject even !number:1 and
1897 !number:1:stride or !place:1 or !place:1:stride instead of just
1898 length other than 1.
1899 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
1900 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
1901 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
1903 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
1906 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1908 * env.c (parse_schedule): For strtoul or strtoull calls which don't
1909 clearly reject return value 0 as invalid handle the case where end
1910 pointer is the same as first argument as invalid.
1911 (parse_unsigned_long_1): Likewise.
1912 (parse_one_place): Likewise.
1913 (parse_places_var): Likewise.
1914 (parse_stacksize): Likewise.
1915 (parse_spincount): Likewise.
1916 (parse_affinity): Likewise.
1917 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
1918 Make code valid C89.
1919 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
1920 For strtoul calls which don't clearly reject return value 0 as
1921 invalid handle the case where end pointer is the same as first
1922 argument as invalid.
1923 (gomp_affinity_init_level_1): Likewise.
1924 (gomp_affinity_init_numa_domains): Likewise.
1925 * config/rtems/proc.c (parse_thread_pools): Likewise.
1927 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1929 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
1930 after creating count places clean up and return immediately.
1931 * testsuite/libgomp.c/places-6.c: New test.
1932 * testsuite/libgomp.c/places-7.c: New test.
1933 * testsuite/libgomp.c/places-8.c: New test.
1934 * testsuite/libgomp.c/places-9.c: New test.
1935 * testsuite/libgomp.c/places-10.c: New test.
1937 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1939 * env.c (parse_places_var): Handle numa_domains as level 5.
1940 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
1942 (gomp_affinity_init_level): Use it instead of
1943 gomp_affinity_init_level_1 for level == 5.
1944 * testsuite/libgomp.c/places-5.c: New test.
1946 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1948 * env.c (parse_places_var): Handle ll_caches as level 4.
1949 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
1951 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
1953 (gomp_affinity_init_level): Likewise.
1954 * testsuite/libgomp.c/places-1.c: New test.
1955 * testsuite/libgomp.c/places-2.c: New test.
1956 * testsuite/libgomp.c/places-3.c: New test.
1957 * testsuite/libgomp.c/places-4.c: New test.
1959 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1961 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
1964 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1966 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
1968 2021-10-12 Julian Brown <julian@codesourcery.com>
1970 * target.c (gomp_copy_host2dev): Release device lock on cbuf
1973 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
1975 * testsuite/libgomp.fortran/icv-3.f90: New.
1976 * testsuite/libgomp.fortran/icv-4.f90: New.
1978 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1980 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
1981 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
1982 OMP_TEAMS_THREAD_LIMIT): Document.
1984 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1986 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
1987 to avoid makeinfo warnings.
1989 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1991 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
1992 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
1994 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1998 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
1999 allocation sizes from 420 to 320 and from 768 to 568.
2000 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
2001 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
2002 for cr from 16 to 4.
2004 2021-10-12 Jakub Jelinek <jakub@redhat.com>
2006 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
2007 * testsuite/libgomp.c/scan-12.c: Likewise.
2008 * testsuite/libgomp.c/scan-13.c: Likewise.
2009 * testsuite/libgomp.c/scan-14.c: Likewise.
2010 * testsuite/libgomp.c/scan-15.c: Likewise.
2011 * testsuite/libgomp.c/scan-16.c: Likewise.
2012 * testsuite/libgomp.c/scan-17.c: Likewise.
2013 * testsuite/libgomp.c/scan-18.c: Likewise.
2014 * testsuite/libgomp.c/scan-19.c: Likewise.
2015 * testsuite/libgomp.c/scan-20.c: Likewise.
2016 * testsuite/libgomp.c/scan-21.c: Likewise.
2017 * testsuite/libgomp.c/scan-22.c: Likewise.
2018 * testsuite/libgomp.c++/scan-9.C: Likewise.
2019 * testsuite/libgomp.c++/scan-10.C: Likewise.
2020 * testsuite/libgomp.c++/scan-11.C: Likewise.
2021 * testsuite/libgomp.c++/scan-12.C: Likewise.
2022 * testsuite/libgomp.c++/scan-13.C: Likewise.
2023 * testsuite/libgomp.c++/scan-14.C: Likewise.
2024 * testsuite/libgomp.c++/scan-15.C: Likewise.
2025 * testsuite/libgomp.c++/scan-16.C: Likewise.
2027 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
2029 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
2031 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
2033 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
2035 * omp.h.in: Add deprecated flag for omp_atv_sequential.
2036 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
2037 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
2038 * testsuite/libgomp.fortran/alloc-12.f90: New test.
2040 2021-10-11 Jakub Jelinek <jakub@redhat.com>
2042 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
2043 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2044 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
2045 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2046 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
2047 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
2048 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
2049 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
2050 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
2051 omp_set_teams_thread_limit{,_,_8_}.
2052 * icv.c (omp_set_num_teams, omp_get_max_teams,
2053 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
2055 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
2056 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
2057 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
2059 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
2060 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
2061 is not specified, use gomp_nteams_var.
2062 * fortran.c (omp_set_num_teams, omp_get_max_teams,
2063 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
2065 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
2066 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
2067 omp_get_teams_thread_limit_): New functions.
2069 2021-10-09 liuhongt <hongtao.liu@intel.com>
2071 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
2072 * testsuite/libgomp.c++/scan-11.C: Ditto.
2073 * testsuite/libgomp.c++/scan-12.C: Ditto.
2074 * testsuite/libgomp.c++/scan-13.C: Ditto.
2075 * testsuite/libgomp.c++/scan-14.C: Ditto.
2076 * testsuite/libgomp.c++/scan-15.C: Ditto.
2077 * testsuite/libgomp.c++/scan-16.C: Ditto.
2078 * testsuite/libgomp.c++/scan-9.C: Ditto.
2079 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
2080 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
2081 * testsuite/libgomp.c/scan-11.c: Ditto.
2082 * testsuite/libgomp.c/scan-12.c: Ditto.
2083 * testsuite/libgomp.c/scan-13.c: Ditto.
2084 * testsuite/libgomp.c/scan-14.c: Ditto.
2085 * testsuite/libgomp.c/scan-15.c: Ditto.
2086 * testsuite/libgomp.c/scan-16.c: Ditto.
2087 * testsuite/libgomp.c/scan-17.c: Ditto.
2088 * testsuite/libgomp.c/scan-18.c: Ditto.
2089 * testsuite/libgomp.c/scan-19.c: Ditto.
2090 * testsuite/libgomp.c/scan-20.c: Ditto.
2091 * testsuite/libgomp.c/scan-21.c: Ditto.
2092 * testsuite/libgomp.c/scan-22.c: Ditto.
2094 2021-10-09 Jakub Jelinek <jakub@redhat.com>
2096 * libgomp.texi (OpenMP 5.1): Mention implemented support for
2097 structured block sequences in C/C++. Mention support for
2098 unconstrained/reproducible modifiers on order clause.
2099 Mention partial (C/C++ only) support of extentensions to atomics
2100 construct. Mention partial (C/C++ on clause only) support of
2101 align/allocator modifiers on allocate clause.
2103 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
2105 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
2106 based on libgomp.c-c++-common/order-reproducible-1.c.
2107 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
2108 * testsuite/libgomp.fortran/my-usleep.c: New test.
2110 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
2112 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
2113 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
2114 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
2115 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
2116 based on libgomp.c-c++-common/alloc-9.c.
2118 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2120 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
2121 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
2123 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2125 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
2127 * env.c (handle_omp_display_env): Use ialias_call.
2128 * icv-device.c: Move ialias right below each function.
2129 (omp_get_device_num): Use ialias_call.
2130 * fortran.c (omp_fulfill_event): Add ialias_redirect.
2131 * icv.c (omp_get_active_level): Add ialias_redirect.
2133 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2135 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
2136 __alloc_align__ (1) attribute.
2137 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
2139 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2141 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
2142 for -fintrinsic-modules-path= warning of the C compiler.
2143 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
2144 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
2146 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2148 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
2149 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
2150 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2152 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2154 * testsuite/libgomp.fortran/alloc-10.f90: New test.
2155 * testsuite/libgomp.fortran/alloc-6.f90: New test.
2156 * testsuite/libgomp.fortran/alloc-7.c: New test.
2157 * testsuite/libgomp.fortran/alloc-7.f90: New test.
2158 * testsuite/libgomp.fortran/alloc-8.f90: New test.
2159 * testsuite/libgomp.fortran/alloc-9.f90: New test.
2161 2021-09-30 Jakub Jelinek <jakub@redhat.com>
2163 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
2164 omp_realloc): New prototypes.
2165 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
2167 * allocator.c: Include string.h.
2168 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
2169 variable and use it instead of alignment so that when retrying the old
2170 alignment is used again. Don't retry if new alignment is the same
2171 as old alignment, unless allocator had pool size.
2172 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
2173 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
2174 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
2175 omp_aligned_calloc and omp_realloc.
2176 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
2177 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
2178 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
2179 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
2180 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
2181 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
2183 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
2186 * configure.ac: Only check for int-type = 2*size_t support when
2187 building with Fortran support.
2188 * configure: Regenerate.
2190 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
2192 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
2193 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2195 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2197 * team.c: Initialize start_data.
2198 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2199 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
2201 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2203 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
2204 dg-message back to dg-note.
2206 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2209 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
2210 expected dg-note output.
2212 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
2215 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
2216 r12-3722 by removing -Wno-missing-include-dirs.
2217 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2219 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2221 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
2222 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
2224 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
2227 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
2229 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2231 2021-09-18 Jakub Jelinek <jakub@redhat.com>
2233 * testsuite/libgomp.c++/default-1.C: New test.
2234 * testsuite/libgomp.c-c++-common/default-1.c: New test.
2235 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
2236 to default clause in C and C++" as implemented.
2238 2021-09-17 Julian Brown <julian@codesourcery.com>
2240 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
2242 2021-09-17 Julian Brown <julian@codesourcery.com>
2244 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
2246 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2248 * libgomp.texi (OpenMP 5.1): Spelling fix,
2249 declare variante -> declare variant.
2251 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2253 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
2254 Use /* */ comments instead of //.
2255 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
2256 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
2257 * testsuite/libgomp.c++/atomic-16.C: New test.
2258 * testsuite/libgomp.c++/atomic-17.C: New test.
2260 2021-09-10 Jakub Jelinek <jakub@redhat.com>
2262 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
2263 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
2264 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
2266 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2268 * libgomp.texi (OpenMP Implementation Status): Extend
2270 (OpenACC Profiling Interface): Fix typo.
2272 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2274 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
2275 not to 4.5; link to new section.
2276 (OpenMP Implementation Status): New.
2278 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
2280 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
2282 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
2284 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
2286 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2288 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2289 Jakub Jelinek <jakub@redhat.com>
2291 * testsuite/libgomp.c/address-space-1.c: New file.
2293 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2295 * testsuite/lib/libgomp.exp
2296 (check_effective_target_offload_target_intelmic): Remove 'proc'.
2297 (check_effective_target_offload_device_intel_mic): New 'proc'.
2298 * testsuite/libgomp.c-c++-common/on_device_arch.h
2299 (device_arch_intel_mic, on_device_arch_intel_mic): New.
2300 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
2302 * testsuite/libgomp.fortran/target10.f90: Likewise.
2304 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
2306 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
2307 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
2308 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
2309 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
2311 2021-08-23 Jakub Jelinek <jakub@redhat.com>
2313 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
2314 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
2315 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
2317 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
2319 * config/nvptx/error.c (fwrite, exit): Override, too.
2320 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
2321 of offloading testing.
2322 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2324 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
2326 * testsuite/libgomp.fortran/error-1.f90: New test.
2328 2021-08-20 Jakub Jelinek <jakub@redhat.com>
2330 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
2331 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
2332 * error.c (GOMP_warning, GOMP_error): New functions.
2333 * testsuite/libgomp.c-c++-common/error-1.c: New test.
2335 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
2337 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
2338 omp_target_free. omp_target_is_present, omp_target_memcpy,
2339 omp_target_memcpy_rect, omp_target_associate_ptr,
2340 omp_target_disassociate_ptr): Add interface.
2341 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
2342 omp_target_free. omp_target_is_present, omp_target_memcpy,
2343 omp_target_memcpy_rect, omp_target_associate_ptr,
2344 omp_target_disassociate_ptr): Add interface.
2345 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
2346 interface block for omp_alloc + omp_free.
2347 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
2348 * testsuite/libgomp.fortran/refcount-1.f90: New test.
2349 * testsuite/libgomp.fortran/target-12.f90: New test.
2351 2021-08-18 Jakub Jelinek <jakub@redhat.com>
2353 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
2355 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
2357 * testsuite/libgomp.fortran/scope-1.f90: New test.
2358 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
2360 2021-08-17 Jakub Jelinek <jakub@redhat.com>
2362 * Makefile.am (libgomp_la_SOURCES): Add scope.c
2363 * Makefile.in: Regenerated.
2364 * libgomp_g.h (GOMP_scope_start): Declare.
2365 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
2366 * scope.c: New file.
2367 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
2368 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
2370 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
2372 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
2375 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
2377 * testsuite/libgomp.fortran/masked-1.f90: New test.
2379 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
2381 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
2383 2021-08-12 Jakub Jelinek <jakub@redhat.com>
2385 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
2387 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
2389 * env.c (parse_bind_var): Accept 'primary' as alias for
2391 (omp_display_env): Add TODO comment to
2392 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
2393 * libgomp.texi: Change 'master thread' to 'primary thread'
2394 in line with OpenMP 5.1.
2395 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
2396 omp_proc_bind_master is an alias of it.
2397 (OMP_PROC_BIND): Mention 'PRIMARY'.
2398 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
2399 (omp_proc_bind_primary): Add.
2400 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2401 * omp_lib.f90.in (omp_proc_bind_primary): Add.
2402 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2403 * omp_lib.h.in (omp_proc_bind_primary): Add.
2404 * testsuite/libgomp.c/affinity-1.c: Check that
2405 'primary' works and is identical to 'master'.
2407 2021-08-09 Julian Brown <julian@codesourcery.com>
2408 Kwok Cheung Yeung <kcy@codesourcery.com>
2409 Thomas Schwinge <thomas@codesourcery.com>
2411 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
2413 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
2414 [acc_device_radeon]: Update.
2415 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
2416 [ACC_DEVICE_TYPE_radeon]: Likewise.
2417 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2418 [acc_device_radeon]: Likewise.
2419 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
2420 [ACC_DEVICE_TYPE_radeon]: Likewise.
2421 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
2422 'openacc_radeon_accel_selected' and '-O0'.
2423 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2425 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
2427 * icv-device.c (omp_get_device_num): New API function, host side.
2428 * fortran.c (omp_get_device_num_): New interface function.
2429 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
2430 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
2431 omp_get_device_num_.
2432 * libgomp.texi (omp_get_device_num): Add documentation for new API
2434 * omp.h.in (omp_get_device_num): Add declaration.
2435 * omp_lib.f90.in (omp_get_device_num): Likewise.
2436 * omp_lib.h.in (omp_get_device_num): Likewise.
2437 * target.c (gomp_load_image_to_device): If additional entry for device
2438 number exists at end of returned entries from 'load_image_func' hook,
2439 copy the assigned device number over to the device variable.
2440 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2441 (omp_get_device_num): New API function, device side.
2442 * plugin/plugin-gcn.c ("symcat.h"): Add include.
2443 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2444 at end of returned 'target_table' entries.
2445 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2446 (omp_get_device_num): New API function, device side.
2447 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
2448 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2449 at end of returned 'target_table' entries.
2450 * testsuite/lib/libgomp.exp
2451 (check_effective_target_offload_target_intelmic): New function for
2452 testing for intelmic offloading.
2453 * testsuite/libgomp.c-c++-common/target-45.c: New test.
2454 * testsuite/libgomp.fortran/target10.f90: New test.
2456 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
2457 Ulrich Drepper <drepper@redhat.com>
2459 * fortran.c (omp_display_env_, omp_display_env_8_): Only
2460 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
2462 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
2463 Julian Brown <julian@codesourcery.com>
2464 Kwok Cheung Yeung <kcy@codesourcery.com>
2466 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
2467 's%oaccdevlow%oaccloops%g'.
2468 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2469 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2470 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
2472 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
2474 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
2476 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
2478 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
2480 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
2482 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
2484 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
2486 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2488 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
2490 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
2492 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
2494 2021-07-27 Ulrich Drepper <drepper@gmail.com>
2496 * env.c (wait_policy, stacksize): New static variables,
2497 move out of handle_omp_display_env.
2498 (omp_display_env): New function. The meat of the old
2499 handle_omp_display_env function.
2500 (handle_omp_display_env): Change to not take parameters
2501 and instead use the global variables. Only perform
2502 parsing, defer to omp_display_env for the implementation.
2503 (initialize_env): Remove local variables wait_policy and
2504 stacksize. Don't pass parameters to handle_omp_display_env.
2505 * fortran.c: Add ialias_redirect for omp_display_env.
2506 (omp_display_env_, omp_display_env_8_): New functions.
2507 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
2508 omp_display_env_, and omp_display_env_8_.
2509 * omp.h.in: Declare omp_display_env.
2510 * omp_lib.f90.in: Likewise.
2511 * omp_lib.h.in: Likewise.
2513 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2514 Julian Brown <julian@codesourcery.com>
2516 * target.c (gomp_coalesce_buf_add): Update comment.
2517 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
2519 (gomp_map_vars_internal): Only 'if (!aq)', do
2520 'gomp_coalesce_buf_add'.
2521 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
2524 2021-07-27 Julian Brown <julian@codesourcery.com>
2525 Thomas Schwinge <thomas@codesourcery.com>
2527 * libgomp.h (gomp_copy_host2dev): Update prototype.
2528 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
2529 argument to gomp_copy_host2dev (false).
2530 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
2531 (copy_data): Don't free src.
2532 (queue_push_copy): Remove free_src handling.
2533 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
2534 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
2536 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
2538 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
2539 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
2540 data when true, and set up deferred freeing of temporary buffer.
2541 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
2542 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
2543 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
2544 calls to gomp_copy_host2dev with appropriate ephemeral argument.
2545 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
2548 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2549 Tom de Vries <tom@codesourcery.com>
2551 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
2552 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
2554 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2556 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
2557 sequencing of 'async' data copying vs. profiling events.
2558 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2561 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2562 Julian Brown <julian@codesourcery.com>
2564 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
2565 'async'/'wait' issue.
2566 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
2567 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
2568 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
2570 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
2571 Joseph Myers <joseph@codesourcery.com>
2572 Cesar Philippidis <cesar@codesourcery.com>
2574 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
2576 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2578 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
2580 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2582 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
2585 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
2586 '-Wno-error=array-bounds'.
2587 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
2588 * libgomp.h [__AMDGCN__]: Likewise.
2590 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
2593 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
2594 * libgomp.h [__AMDGCN__]: Likewise.
2596 2021-07-13 Jakub Jelinek <jakub@redhat.com>
2597 Florian Weimer <fweimer@redhat.com>
2599 * config/linux/sem.h: Don't include limits.h.
2600 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
2601 * config/linux/affinity.c: Include limits.h.
2603 2021-07-01 Jakub Jelinek <jakub@redhat.com>
2606 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
2608 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2611 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
2612 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
2613 avoid disabling other offload targets.
2614 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
2615 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
2616 * testsuite/libgomp.c/target-44.c: Likewise.
2618 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2620 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
2621 target has shared memory and disable some scalar pointer/allocatable
2622 checks if not as firstprivate does not work.
2624 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
2627 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
2628 Add "target offload_device_nonshared_as" condition for enabling test.
2630 2021-06-24 Jakub Jelinek <jakub@redhat.com>
2632 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
2633 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
2634 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
2635 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
2637 2021-06-23 Jakub Jelinek <jakub@redhat.com>
2639 PR middle-end/101167
2640 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
2642 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
2644 * hashtab.h (htab_clear): New function with initialization code
2645 factored out from...
2646 (htab_create): ...here, adjust to use htab_clear function.
2647 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
2648 special refcount values, add comments.
2649 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
2650 (REFCOUNT_LINK): Likewise.
2651 (REFCOUNT_STRUCTELEM): New special refcount range for structure
2653 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
2655 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
2656 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
2657 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
2658 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
2659 (struct splay_tree_key_s): Add structelem_refcount and
2660 structelem_refcount_ptr fields into a union with dynamic_refcount.
2662 (gomp_map_vars): Delete declaration.
2663 (gomp_map_vars_async): Likewise.
2664 (gomp_unmap_vars): Likewise.
2665 (gomp_unmap_vars_async): Likewise.
2666 (goacc_map_vars): New declaration.
2667 (goacc_unmap_vars): Likewise.
2668 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
2669 (goacc_enter_datum): Likewise.
2670 (goacc_enter_data_internal): Likewise.
2671 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
2672 and goacc_unmap_vars.
2673 (GOACC_data_start): Adjust to use goacc_map_vars.
2674 (GOACC_data_end): Adjust to use goacc_unmap_vars.
2675 * target.c (hash_entry_type): New typedef.
2676 (htab_alloc): New function hook for hashtab.h.
2677 (htab_free): Likewise.
2678 (htab_hash): Likewise.
2679 (htab_eq): Likewise.
2680 (hashtab.h): Add file include.
2681 (gomp_increment_refcount): New function.
2682 (gomp_decrement_refcount): Likewise.
2683 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
2684 gomp_increment_refcount.
2685 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
2686 to gomp_map_vars_existing.
2687 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
2688 variable to guard OpenMP specific paths, adjust calls to
2689 gomp_map_vars_existing, add structure element sibling splay_tree_key
2690 sequence creation code, adjust Fortran map case to avoid increment
2692 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
2693 local refcount_set if caller passed in NULL, adjust call to
2694 gomp_map_vars_internal.
2695 (gomp_map_vars_async): Adjust and rename into...
2696 (goacc_map_vars): ...this new function, adjust call to
2697 gomp_map_vars_internal.
2698 (gomp_remove_splay_tree_key): New function with code factored out from
2699 gomp_remove_var_internal.
2700 (gomp_remove_var_internal): Add code to handle removing multiple
2701 splay_tree_key sequence for structure elements, adjust code to use
2702 gomp_remove_splay_tree_key for splay-tree key removal.
2703 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
2704 gomp_decrement_refcount.
2705 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
2706 local refcount_set if caller passed in NULL, adjust call to
2707 gomp_unmap_vars_internal.
2708 (gomp_unmap_vars_async): Adjust and rename into...
2709 (goacc_unmap_vars): ...this new function, adjust call to
2710 gomp_unmap_vars_internal.
2711 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
2713 (GOMP_target_ext): Likewise.
2714 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
2715 (GOMP_target_data): Likewise.
2716 (GOMP_target_data_ext): Likewise.
2717 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
2718 (gomp_exit_data): Add refcount_set parameter, adjust to use
2719 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
2721 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
2722 gomp_map_vars and gomp_exit_data.
2723 (gomp_target_task_fn): Likewise.
2724 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
2725 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
2726 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
2727 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
2728 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
2729 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
2731 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
2734 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
2736 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
2737 Thomas Schwinge <thomas@codesourcery.com>
2739 * libgomp.map (GOACC_2.0.2): New symbol version.
2740 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
2741 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
2743 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
2744 Andrew Stubbs <ams@codesourcery.com>
2746 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
2748 (GOACC_enter_exit_data): ... here.
2749 (GOACC_declare): Use it.
2751 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
2753 * oacc-parallel.c (GOACC_declare): Move...
2754 * oacc-mem.c: ... here.
2755 * libgomp_g.h: Adjust.
2757 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
2758 Thomas Schwinge <thomas@codesourcery.com>
2760 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
2763 2021-06-10 Jakub Jelinek <jakub@redhat.com>
2765 PR tree-optimization/100981
2766 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
2767 dsdotr and dsdoti to 0.
2769 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
2771 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
2772 if atomic compare-and-swap is supported on 'int'.
2774 2021-06-09 Richard Biener <rguenther@suse.de>
2776 PR tree-optimization/100981
2777 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
2779 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2781 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
2783 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2785 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2786 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
2788 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2790 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
2791 '-DACC_MEM_SHARED=0'.
2792 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
2793 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2794 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
2795 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2796 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2797 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2798 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2799 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2800 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2801 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2802 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
2803 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
2804 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
2805 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2806 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
2807 'acc_device_radeon' testing.
2808 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
2809 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2810 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2811 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
2812 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2813 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2814 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
2815 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
2816 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2817 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2818 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
2819 for non-'openacc_nvidia_accel_selected'.
2820 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2821 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
2822 all implement this checking".
2823 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2824 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2825 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2826 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2827 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2829 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2831 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
2832 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
2834 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2836 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
2837 for 'acc_device_radeon'.
2839 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2841 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
2842 for non-'acc_device_nvidia'.
2844 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2846 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
2847 'acc_device_radeon' testing.
2848 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2849 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2850 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2852 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2854 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
2855 require 'openacc_nvidia_accel_selected'. Fix up for
2856 'ACC_DEVICE_TYPE_radeon'.
2858 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2860 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
2861 'openacc_nvidia_accel_selected'.
2862 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2864 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2866 * testsuite/lib/libgomp.exp
2867 (check_effective_target_openacc_radeon_accel_selected):
2870 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2872 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
2875 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2877 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2878 <acc_device_nvidia>: Update comment.
2880 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
2882 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
2884 2021-05-27 Jakub Jelinek <jakub@redhat.com>
2886 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
2887 check_effective_target_openacc_cublas,
2888 check_effective_target_openacc_cudart): New.
2889 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
2890 target openacc_cublas.
2891 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2892 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2893 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
2894 target openacc_cuda.
2895 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
2896 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
2897 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
2898 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
2899 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
2900 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
2901 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
2902 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2903 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
2904 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
2905 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
2906 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2907 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
2908 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
2909 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
2910 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2911 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
2912 targets openacc_cublas and openacc_cudart.
2913 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
2914 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
2915 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
2916 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
2917 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
2918 Require effective target openacc_cudart.
2919 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
2920 for effective target openacc_cuda and add && defined USE_CUDA_H to
2921 preprocessor conditionals. Guard -lcuda also on openacc_cuda
2924 2021-05-26 Jakub Jelinek <jakub@redhat.com>
2927 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
2928 GOMP_target_end_data, GOMP_target_update_ext,
2929 GOMP_target_enter_exit_data): New dummy entrypoints.
2930 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
2931 GOMP_target_end_data, GOMP_target_update_ext,
2932 GOMP_target_enter_exit_data): Likewise.
2933 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
2934 OMPFROM, OMPTO): Define.
2935 (main): Remove #pragma omp target teams around all the tests.
2936 * testsuite/libgomp.c-c++-common/target-41.c: New test.
2937 * testsuite/libgomp.c-c++-common/target-42.c: New test.
2939 2021-05-25 Jakub Jelinek <jakub@redhat.com>
2942 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
2944 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
2947 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
2948 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
2949 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
2951 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
2954 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
2955 uninteresting/varying diagnostics.
2957 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
2960 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
2961 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2963 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
2966 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
2968 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
2969 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
2970 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2972 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2974 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2976 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2978 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2980 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2982 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2984 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2986 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2988 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2990 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2992 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2994 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2996 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2998 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3000 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3002 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3004 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3006 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3008 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3010 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3012 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3013 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3014 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3015 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3016 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3017 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3018 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3019 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3020 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3021 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3022 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3023 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3024 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3025 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3026 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3028 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
3030 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
3032 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3034 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3035 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3037 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3038 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3039 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3040 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3041 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3042 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3043 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3045 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3047 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3049 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3051 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3053 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3055 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3057 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3059 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3061 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3063 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3065 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3067 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3069 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3070 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3071 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3073 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3075 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3076 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3077 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3079 2021-05-21 Julian Brown <julian@codesourcery.com>
3080 Chung-Lin Tang <cltang@codesourcery.com>
3081 Thomas Schwinge <thomas@codesourcery.com>
3084 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
3086 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3088 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3091 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3093 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
3094 for nvptx offloading.
3096 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
3098 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
3100 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
3103 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
3105 2021-05-19 Julian Brown <julian@codesourcery.com>
3107 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
3109 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3111 * testsuite/lib/libgomp.exp
3112 (check_effective_target_offload_target_nvptx): Don't shadow global
3113 'offload_targets' variable.
3115 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3117 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
3118 '-latomic' to nvptx offloading compilation.
3119 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3121 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3123 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
3124 offloading compilation.
3126 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
3128 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
3129 if new tasks generated.
3130 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
3132 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
3134 * testsuite/libgomp.fortran/parallel-master.f90: New test.
3136 2021-05-13 Martin Liska <mliska@suse.cz>
3139 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
3140 * testsuite/libgomp.c/pr46032-2.c: Likewise.
3141 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
3142 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
3144 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
3146 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
3147 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
3149 2021-05-11 Jakub Jelinek <jakub@redhat.com>
3151 PR middle-end/100471
3152 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
3153 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
3155 * testsuite/libgomp.c/task-reduction-4.c: New test.
3157 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
3158 Tom de Vries <tdevries@suse.de>
3160 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
3161 complex/floating-point || + && reduction with 'omp target'.
3162 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3164 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3166 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
3167 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
3168 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
3169 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
3171 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3174 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
3175 declaration to scope of non-'depend'-guarded assignment to avoid races.
3177 2021-05-03 Tom de Vries <tdevries@suse.de>
3180 * testsuite/libgomp.c/target-44.c: New test.
3182 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
3184 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
3186 2021-04-29 Tom de Vries <tdevries@suse.de>
3188 * testsuite/libgomp.c/pr81778.c: New test.
3190 2021-04-29 Tom de Vries <tdevries@suse.de>
3193 * testsuite/libgomp.c/target-43.c: New file.
3195 2021-04-28 Jakub Jelinek <jakub@redhat.com>
3196 Tobias Burnus <tobias@codesourcery.com>
3198 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
3199 * target.c (gomp_load_plugin_for_device): If set and if a plugin
3200 can't be dlopened, silently assume it has no devices.
3201 * Makefile.in: Regenerate.
3202 * config.h.in: Regenerate.
3203 * configure: Regenerate.
3205 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3207 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3208 Use [Ww]arning in dg-bogus as FE diagnostic and default
3209 diagnostic differ and the result depends on ENABLE_OFFLOAD.
3210 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3211 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3212 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3214 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3216 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3217 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
3218 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3219 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3220 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3222 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3223 Nathan Sidwell <nathan@codesourcery.com>
3224 Tom de Vries <vries@codesourcery.com>
3225 Julian Brown <julian@codesourcery.com>
3226 Kwok Cheung Yeung <kcy@codesourcery.com>
3228 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
3229 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
3230 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3231 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3232 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3233 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3234 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
3236 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
3237 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3238 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3239 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3241 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
3242 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3244 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3245 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3246 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3247 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3248 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3249 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3251 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3252 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3253 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3254 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3255 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3256 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3257 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3258 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3259 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3260 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3261 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3263 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3265 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
3267 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3268 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3270 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3271 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
3272 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3273 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3274 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3275 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3276 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3278 2021-04-22 Richard Biener <rguenther@suse.de>
3280 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
3283 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3285 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
3286 omp_depend_kind instead of defining it as 16.
3288 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3290 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3291 New, based on check_effective_target_offload_target_nvptx.
3292 (check_effective_target_offload_target_nvptx): Call it.
3293 (check_effective_target_offload_target_amdgcn): New.
3294 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
3295 Require target offload_target_nvptx || offload_target_amdgcn.
3296 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
3297 * testsuite/libgomp.c/pr86416-1.c: Likewise.
3298 * testsuite/libgomp.c/pr86416-2.c: Likewise.
3300 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3302 * testsuite/libgomp.fortran/depobj-1.f90: New test.
3304 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
3306 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3307 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
3308 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3310 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3312 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3314 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
3317 * testsuite/lib/libgomp.exp
3318 (check_effective_target_offload_device_nvptx): New.
3319 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
3320 resolved, make sure that we exit quickly, with error status,
3322 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
3323 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3325 2021-04-14 Jakub Jelinek <jakub@redhat.com>
3328 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
3329 cp = omp_alloc with cp, p arguments instead of cq, q and call
3330 c_f_pointer after last cq = omp_alloc with cq, q.
3332 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
3335 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
3336 for loop with GT/GE condition.
3337 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3339 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
3344 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
3346 2021-04-09 Jakub Jelinek <jakub@redhat.com>
3349 * team.c (gomp_thread_start): Call pthread_setspecific for
3350 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
3351 has been initialized to avoid false positive warning.
3353 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
3356 * testsuite/lib/on_device_arch.c: Move to ...
3357 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
3358 * testsuite/libgomp.fortran/on_device_arch.c: New file;
3359 #include on_device_arch.h.
3360 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
3361 on_device_arch.h instead of using dg-additional-source.
3362 * testsuite/libgomp.c/pr99555-1.c: Likewise.
3363 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
3364 on_device_arch.c without relative paths.
3366 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3368 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
3369 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
3370 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
3371 * config.h.in: Regenerate.
3372 * configure: Likewise.
3374 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3377 * testsuite/lib/on_device_arch.c: New file.
3378 * testsuite/libgomp.c/pr99555-1.c: Likewise.
3379 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
3380 skip for nvptx offloading, with error status.
3381 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3383 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3385 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3386 OpenACC 'serial' construct diagnostic for nvptx offloading.
3388 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
3391 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
3393 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
3396 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
3398 2021-03-04 Jakub Jelinek <jakub@redhat.com>
3400 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
3401 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
3402 checking of -m32 or -mx32 options on the command line.
3403 * config.h.in: Regenerated.
3404 * configure: Regenerated.
3406 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
3408 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
3409 support from the target.
3411 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3412 Jakub Jelinek <jakub@redhat.com>
3415 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
3416 (struct gomp_task): Replace detach and completion_sem fields with
3417 union containing completion_sem and detach_team. Add deferred_p
3419 (struct gomp_team): Remove task_detach_queue.
3420 * task.c: Include assert.h.
3421 (gomp_init_task): Initialize deferred_p and completion_sem fields.
3422 Rearrange initialization order of fields.
3423 (task_fulfilled_p): Delete.
3424 (GOMP_task): Use address of task as the event handle. Remove
3425 initialization of detach field. Initialize deferred_p field.
3426 Use automatic local for completion_sem. Initialize detach_team field
3428 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
3429 Set kind of suspended detach task to GOMP_TASK_DETACHED and
3430 decrement task_running_count. Move finish_cancelled block out of
3431 else branch. Relocate call to gomp_team_barrier_done.
3432 (GOMP_taskwait): Handle tasks with completion events that have not
3434 (GOMP_taskgroup_end): Likewise.
3435 (omp_fulfill_event): Use address of task as event handle. Post to
3436 completion_sem for undeferred tasks. Clear detach_team if task
3437 has not finished. For finished tasks, handle post-execution tasks,
3438 call gomp_team_barrier_wake if necessary, and free task.
3439 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
3440 (free_team): Remove free of task_detach_queue.
3441 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
3442 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
3443 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
3444 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
3445 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
3446 Change data-sharing of detach events on enclosing parallel to private.
3447 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
3449 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
3450 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
3451 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
3452 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
3453 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
3454 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
3455 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
3456 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
3457 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
3458 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
3459 Change data-sharing of detach events on enclosing parallel to private.
3460 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
3462 * testsuite/libgomp.fortran/task-detach-7.f90: New.
3463 * testsuite/libgomp.fortran/task-detach-8.f90: New.
3464 * testsuite/libgomp.fortran/task-detach-9.f90: New.
3465 * testsuite/libgomp.fortran/task-detach-10.f90: New.
3466 * testsuite/libgomp.fortran/task-detach-11.f90: New.
3468 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
3471 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
3473 2021-02-17 Julian Brown <julian@codesourcery.com>
3475 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
3478 2021-02-17 Julian Brown <julian@codesourcery.com>
3480 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
3481 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
3483 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
3485 * config/linux/x86/futex.h (__futex_wait):
3486 Revert output type back to long.
3487 (__futex_wake): Ditto.
3488 (futex_wait): Update for revert.
3489 (futex_wake): Ditto.
3491 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
3493 * config/linux/x86/futex.h (__futex_wait): New static inline
3494 wrapper function. Correct output type to int and
3495 timeout type to void *.
3496 (__futex_wake): New static inline wrapper function.
3497 Correct output type to int.
3498 (futex_wait): Use __futex_wait.
3499 (futex_wake): Use __futex_wake.
3501 2021-02-10 Julian Brown <julian@codesourcery.com>
3504 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
3507 2021-02-04 Julian Brown <julian@codesourcery.com>
3509 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
3511 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
3513 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3514 EF_AMDGPU_MACH_AMDGCN_GFX908.
3515 (gcn_gfx908_s): New constant string.
3516 (isa_hsa_name): Add gfx908.
3517 (isa_code): Add gfx908.
3519 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3521 * libgomp.texi (omp_fulfill_event): New entry.
3523 2021-01-20 Jakub Jelinek <jakub@redhat.com>
3525 * task.c (GOMP_task): Rename priority argument to priority_arg,
3526 add priority automatic variable and modify that variable. Instead of
3527 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
3528 check flags for that bit.
3530 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
3533 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
3535 2021-01-18 Andreas Schwab <schwab@suse.de>
3537 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
3539 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3541 * config/rtems/sem.h (gomp_sem_getcount): New function.
3543 2021-01-18 Jakub Jelinek <jakub@redhat.com>
3545 * config/linux/sem.h (gomp_sem_getcount): New function.
3546 * config/posix/sem.h (gomp_sem_getcount): New function.
3547 * config/posix/sem.c (gomp_sem_getcount): New function.
3548 * config/accel/sem.h (gomp_sem_getcount): New function.
3549 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
3550 (omp_fulfill_event): Likewise.
3552 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3554 * fortran.c (omp_fulfill_event_): New.
3555 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
3556 (struct gomp_team): Add task_detach_queue and task_detach_count
3558 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
3559 * libgomp_g.h (GOMP_task): Add extra argument.
3560 * omp.h.in (enum omp_event_handle_t): New.
3561 (omp_fulfill_event): New.
3562 * omp_lib.f90.in (omp_event_handle_kind): New.
3563 (omp_fulfill_event): New.
3564 * omp_lib.h.in (omp_event_handle_kind): New.
3565 (omp_fulfill_event): Declare.
3566 * priority_queue.c (priority_tree_find): New.
3567 (priority_list_find): New.
3568 (priority_queue_find): New.
3569 * priority_queue.h (priority_queue_predicate): New.
3570 (priority_queue_find): New.
3571 * task.c (gomp_init_task): Initialize detach field.
3572 (task_fulfilled_p): New.
3573 (GOMP_task): Add detach argument. Ignore detach argument if
3574 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
3575 field. Copy address of completion_sem into detach argument and
3576 into the start of the data record. Wait for detach event if task
3578 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
3579 Remove completed tasks and requeue dependent tasks.
3580 (omp_fulfill_event): New.
3581 * team.c (gomp_new_team): Initialize task_detach_queue and
3582 task_detach_count fields.
3583 (free_team): Free task_detach_queue field.
3584 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
3585 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
3586 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
3587 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
3588 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
3589 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
3590 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
3591 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
3592 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
3593 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
3594 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
3595 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
3597 2021-01-15 Jakub Jelinek <jakub@redhat.com>
3600 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
3601 be added through preprocessor check on
3602 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
3604 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
3607 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
3609 * configure: Regenerate.
3610 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
3613 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3615 * configure: Re-generate.
3617 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3619 * configure: Re-generate.
3621 2021-01-05 Julian Brown <julian@codesourcery.com>
3623 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
3624 (struct ptx_device): Add omp_stacks struct.
3625 (nvptx_open_device): Initialise cached-stacks housekeeping info.
3626 (nvptx_close_device): Free cached stacks block and mutex.
3627 (nvptx_stacks_free): New function.
3628 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
3629 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
3630 (nvptx_stacks_alloc): Rename to...
3631 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
3632 size or smaller is required.
3633 (nvptx_stacks_free): Remove.
3634 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
3635 during kernel execution.
3637 2021-01-01 Jakub Jelinek <jakub@redhat.com>
3639 * libgomp.texi: Bump @copying's copyright year.
3641 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
3643 * libgomp.texi (Top): Avoid bad "up" link.
3645 2020-12-18 Jakub Jelinek <jakub@redhat.com>
3647 * testsuite/libgomp.c/task-6.c: New test.
3649 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
3651 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
3652 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
3654 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
3656 * testsuite/libgomp.fortran/scan-1.f90: New test.
3658 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
3661 * configure: Regenerate.
3663 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
3665 * configure: Regenerate.
3667 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
3669 * testsuite/libgomp.oacc-c++/cache-1.C: New.
3670 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
3672 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
3674 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
3677 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
3679 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
3680 (reserved): Delete unused define.
3682 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
3684 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
3685 Tcl 8.5-specific behavior.
3686 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3688 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3690 * env.c (gomp_global_icv): Remove nest_var field. Add
3691 max_active_levels_var field.
3692 (gomp_max_active_levels_var): Remove.
3693 (parse_boolean): Return true on success.
3694 (handle_omp_display_env): Express OMP_NESTED in terms of
3695 max_active_levels_var. Change format specifier for
3696 max_active_levels_var.
3697 (initialize_env): Set max_active_levels_var from
3698 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
3700 * icv.c (omp_set_nested): Express in terms of
3701 max_active_levels_var.
3702 (omp_get_nested): Likewise.
3703 (omp_set_max_active_levels): Use max_active_levels_var field instead
3704 of gomp_max_active_levels_var.
3705 (omp_get_max_active_levels): Likewise.
3706 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
3707 max_active_levels_var field.
3708 (gomp_supported_active_levels): Set to UCHAR_MAX.
3709 (gomp_max_active_levels_var): Delete.
3710 * libgomp.texi (omp_get_nested): Update documentation.
3711 (omp_set_nested): Likewise.
3712 (OMP_MAX_ACTIVE_LEVELS): Likewise.
3713 (OMP_NESTED): Likewise.
3714 (OMP_NUM_THREADS): Likewise.
3715 (OMP_PROC_BIND): Likewise.
3716 * parallel.c (gomp_resolve_num_threads): Replace reference
3717 to nest_var with max_active_levels_var. Use max_active_levels_var
3718 field instead of gomp_max_active_levels_var.
3720 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
3722 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
3723 nvptx_usleep; use also for device={arch(gcn)}.
3725 2020-11-14 Jakub Jelinek <jakub@redhat.com>
3727 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
3728 (foo): Add tests for non-VLA private and firstprivate clauses on
3730 (bar): Likewise. Remove taking of address from private/firstprivate
3732 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
3733 (foo): Add p, q, px and s arguments. Add tests for array reductions
3734 and for non-VLA private and firstprivate clauses on omp task.
3736 (main): Adjust foo caller. Don't call bar.
3738 2020-11-13 Gergö Barany <gergo@codesourcery.com>
3739 Thomas Schwinge <thomas@codesourcery.com>
3741 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3743 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3745 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3747 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3748 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3750 2020-11-13 Gergö Barany <gergo@codesourcery.com>
3751 Thomas Schwinge <thomas@codesourcery.com>
3754 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
3756 2020-11-13 Jakub Jelinek <jakub@redhat.com>
3758 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
3759 for array reductions.
3760 (main): Adjust foo callers.
3762 2020-11-12 Jakub Jelinek <jakub@redhat.com>
3764 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
3765 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
3766 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
3767 * allocator.c (omp_aligned_alloc): New for now static function,
3768 add alignment argument and handle it.
3769 (omp_alloc): Reimplement using omp_aligned_alloc.
3770 (GOMP_alloc, GOMP_free): New functions.
3771 (omp_free): Add ialias.
3772 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
3773 * testsuite/libgomp.c++/allocate-1.C: New test.
3775 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
3778 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
3780 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
3782 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
3784 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
3785 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
3786 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
3787 (goacc_enter_data_internal): Likewise.
3788 * target.c (gomp_map_vars_internal):
3789 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
3790 of gomp_attach_pointer for OpenMP cases.
3791 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
3792 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
3793 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
3795 2020-11-05 Ulrich Drepper <drepper@redhat.com>
3796 Kwok Cheung Yeung <kcy@codesourcery.com>
3798 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
3799 * Makefile.in: Regenerate.
3800 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
3801 pragmas to ignore -Wdeprecated-declarations warnings.
3803 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
3804 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
3805 and omp_get_nested with __GOMP_DEPRECATED_5_0.
3806 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
3808 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
3810 * testsuite/libgomp.c/affinity-1.c: Likewise.
3811 * testsuite/libgomp.c/affinity-2.c: Likewise.
3812 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
3813 * testsuite/libgomp.c/lib-1.c: Likewise.
3814 * testsuite/libgomp.c/nested-1.c: Likewise.
3815 * testsuite/libgomp.c/nested-2.c: Likewise.
3816 * testsuite/libgomp.c/nested-3.c: Likewise.
3817 * testsuite/libgomp.c/pr32362-1.c: Likewise.
3818 * testsuite/libgomp.c/pr32362-2.c: Likewise.
3819 * testsuite/libgomp.c/pr32362-3.c: Likewise.
3820 * testsuite/libgomp.c/pr35549.c: Likewise.
3821 * testsuite/libgomp.c/pr42942.c: Likewise.
3822 * testsuite/libgomp.c/pr61200.c: Likewise.
3823 * testsuite/libgomp.c/sort-1.c: Likewise.
3824 * testsuite/libgomp.c/target-5.c: Likewise.
3825 * testsuite/libgomp.c/target-6.c: Likewise.
3826 * testsuite/libgomp.c/teams-1.c: Likewise.
3827 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3828 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3829 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3830 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
3831 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3832 * testsuite/libgomp.fortran/lib2.f: Likewise.
3833 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3834 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3836 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
3839 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
3840 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3841 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3843 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
3847 * testsuite/lib/libgomp.exp (libgomp_init): Set
3848 'gcc_warning_prefix', 'gcc_error_prefix'.
3850 2020-10-30 Jakub Jelinek <jakub@redhat.com>
3852 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
3853 even in field_tgt_clear initializer.
3855 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3857 * testsuite/libgomp.c/target-42.c: New test.
3859 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3860 Tom de Vries <tdevries@suse.de>
3863 * testsuite/libgomp.c/usleep.h: New file.
3864 * testsuite/libgomp.c/target-32.c: Include usleep.h.
3865 (main): Use tgt_usleep instead of usleep.
3866 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
3867 (main): Use tgt_usleep instead of usleep.
3869 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3872 * testsuite/libgomp.c/declare-variant-1.c: New test.
3874 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3876 * testsuite/libgomp.c/target-41.c: New test.
3878 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3880 * icv.c (omp_get_initial_device): Remove including corresponding
3882 * icv-device.c (omp_get_initial_device): New function. Return
3883 gomp_get_num_devices (). Add ialias.
3884 * target.c (resolve_device): Don't fail with
3885 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
3886 gomp_get_num_devices ().
3887 (omp_target_alloc, omp_target_free, omp_target_is_present,
3888 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
3889 omp_target_disassociate_ptr, omp_pause_resource): Use
3890 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
3891 first use in the functions, in uses dominated by the
3892 gomp_get_num_devices call use num_devices_openmp instead.
3893 * libgomp.texi (omp_get_initial_device): Document.
3894 * config/gcn/icv-device.c (omp_get_initial_device): New function.
3896 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
3897 * testsuite/libgomp.c/target-40.c: New test.
3899 2020-10-21 Jakub Jelinek <jakub@redhat.com>
3901 * env.c (parse_target_offload): Change new_offload var type to int,
3902 preinitialize to -1, remove found var and test new_offload != -1
3905 2020-10-20 Jakub Jelinek <jakub@redhat.com>
3907 * target.c (gomp_target_init): Inside of the function, use automatic
3908 variables corresponding to num_devices, num_devices_openmp and devices
3909 global variables and update the globals only at the end of the
3912 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
3914 * env.c (gomp_target_offload_var): New.
3915 (parse_target_offload): New.
3916 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
3917 (initialize_env): Parse OMP_TARGET_OFFLOAD.
3918 * libgomp.h (gomp_target_offload_t): New.
3919 (gomp_target_offload_var): New.
3920 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
3921 * target.c (resolve_device): Generate error if device not found and
3922 offloading is mandatory.
3923 (gomp_target_fallback): Generate error if offloading is mandatory.
3924 (GOMP_target): Add argument in call to gomp_target_fallback.
3925 (GOMP_target_ext): Likewise.
3926 (gomp_target_data_fallback): Generate error if offloading is mandatory.
3927 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
3928 (GOMP_target_data_ext): Likewise.
3929 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
3930 (gomp_target_init): Return early if offloading is disabled.
3932 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3934 * libgomp.texi (omp_get_max_active_levels): Modify description.
3935 (omp_get_supported_active_levels): Make descriptions consistent.
3937 2020-10-14 Jakub Jelinek <jakub@redhat.com>
3939 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
3941 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
3943 * env.c (gomp_max_active_levels_var): Initialize to
3944 gomp_supported_active_levels.
3945 (initialize_env): Limit gomp_max_active_levels_var to be at most
3946 equal to gomp_supported_active_levels.
3947 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
3948 (omp_get_supported_active_levels_): New.
3949 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
3950 to at most equal to gomp_supported_active_levels.
3951 (omp_get_supported_active_levels): New.
3952 * libgomp.h (gomp_supported_active_levels): New.
3953 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
3954 omp_get_supported_active_levels_.
3955 * libgomp.texi (omp_get_supported_active_levels): New.
3956 (omp_set_max_active_levels): Update. Add reference to
3957 omp_get_supported_active_levels.
3958 * omp.h.in (omp_get_supported_active_levels): New.
3959 * omp_lib.f90.in (omp_get_supported_active_levels): New.
3960 * omp_lib.h.in (omp_get_supported_active_levels): New.
3961 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
3962 against omp_get_supported_active_levels.
3963 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
3965 2020-10-11 Clement Chigot <clement.chigot@atos.net>
3967 * config/t-aix: Delete and recreate libgomp before creating
3970 2020-10-08 Tom de Vries <tdevries@suse.de>
3973 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
3976 2020-10-06 Tom de Vries <tdevries@suse.de>
3978 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
3980 2020-10-06 Tom de Vries <tdevries@suse.de>
3983 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
3985 2020-10-05 Tom de Vries <tdevries@suse.de>
3988 * testsuite/libgomp.fortran/pr95654.f90: New test.
3990 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
3992 * Makefile.in: Regenerate with automake 1.15.1.
3993 * aclocal.m4: Likewise.
3994 * configure: Likewise.
3995 * testsuite/Makefile.in: Likewise.
3997 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
3999 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
4002 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
4004 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
4006 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
4008 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
4009 total number of threads is one.
4010 (gomp_team_barrier_wake): Likewise.
4011 (gomp_team_barrier_wait_end): Likewise.
4012 (gomp_team_barrier_wait_cancel_end): Likewise.
4013 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
4014 (gomp_team_barrier_wake): Likewise.
4015 (gomp_team_barrier_wait_end): Likewise.
4016 (gomp_team_barrier_wait_cancel_end): Likewise.
4017 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
4019 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
4022 * testsuite/libgomp.c++/pr96390.C: New test.
4023 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
4025 2020-09-27 Clement Chigot <clement.chigot@atos.net>
4027 * config/t-aix: Use $(AR) without -X32_64.
4029 2020-09-25 Jakub Jelinek <jakub@redhat.com>
4031 * testsuite/libgomp.c/loop-25.c: New test.
4033 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
4036 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
4038 2020-09-22 Tom de Vries <tdevries@suse.de>
4040 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
4043 2020-09-16 Nathan Sidwell <nathan@acm.org>
4045 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
4047 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
4050 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
4052 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
4055 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
4056 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
4057 (gomp_map_vars_existing): Update call to it.
4058 (gomp_map_fields_existing): Likewise
4059 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
4060 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
4062 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
4064 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
4065 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
4067 2020-09-14 Tom de Vries <tdevries@suse.de>
4069 * config/nvptx/atomic.c: New file. Add
4070 __sync_val_compare_and_swap_16.
4071 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
4072 target offload_target_nvptx.
4074 2020-09-08 Julian Brown <julian@codesourcery.com>
4076 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
4077 iteration-ordering assumptions.
4079 2020-09-08 Julian Brown <julian@codesourcery.com>
4081 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
4082 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4084 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
4086 * plugin/plugin-nvptx.c (nvptx_free):
4087 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
4088 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
4091 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
4093 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
4095 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
4097 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
4099 2020-08-13 Jakub Jelinek <jakub@redhat.com>
4101 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
4102 * testsuite/libgomp.c/loop-23.c (main): Likewise.
4103 * testsuite/libgomp.c/loop-24.c: New test.
4105 2020-08-08 Jakub Jelinek <jakub@redhat.com>
4106 Tobias Burnus <tobias@codesourcery.com>
4109 * testsuite/libgomp.fortran/pr93553.f90: New test.
4111 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4113 * testsuite/libgomp.c/loop-22.c: New test.
4114 * testsuite/libgomp.c/loop-23.c: New test.
4116 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4119 * testsuite/libgomp.c/teams-3.c: New test.
4120 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
4122 (N(test)): Use it before all N(f*) calls.
4123 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
4124 (main): Don't call all test_* functions from within
4125 #pragma omp teams reduction(|:err), call them directly.
4127 2020-08-04 Tom de Vries <tdevries@suse.de>
4130 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
4131 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
4133 2020-08-03 Julian Brown <julian@codesourcery.com>
4134 Thomas Schwinge <thomas@codesourcery.com>
4136 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
4137 shared-memory devices. Extend with further checking.
4139 2020-08-03 Martin Jambor <mjambor@suse.cz>
4141 * plugin/Makefrag.am: Remove configuration of HSA plugin.
4142 * aclocal.m4: Regenerated.
4143 * Makefile.in: Regenerated.
4144 * config.h.in: Regenerated.
4145 * configure: Regenerated.
4146 * plugin/configfrag.ac: Likewise.
4147 * plugin/hsa_ext_finalize.h: Removed.
4148 * plugin/plugin-hsa.c: Likewise.
4149 * testsuite/Makefile.in: Regenerated.
4150 * testsuite/lib/libgomp.exp
4151 (offload_target_to_openacc_device_type): Remove hsa case.
4152 (check_effective_target_hsa_offloading_selected_nocache): Removed
4153 (check_effective_target_hsa_offloading_selected): Likewise.
4154 (libgomp_init): Do not add -Wno-hsa to additional_flags.
4155 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
4156 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4157 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
4158 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4159 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4160 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4161 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
4162 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4163 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4164 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4165 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4166 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4167 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4168 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4169 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4170 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4171 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
4172 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4173 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
4174 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4175 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4176 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
4177 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4178 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4180 2020-07-27 Julian Brown <julian@codesourcery.com>
4181 Thomas Schwinge <thomas@codesourcery.com>
4183 * libgomp.h (struct target_var_desc): Rename do_detach field to
4185 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
4186 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
4187 (goacc_enter_data_internal): Don't affect reference counts
4188 for attach mappings.
4189 (goacc_exit_data_internal): Don't affect reference counts for detach
4191 * target.c (gomp_map_vars_existing): Don't affect reference counts for
4193 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
4194 mark attach mappings.
4195 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
4196 reference count for attach mappings.
4197 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
4198 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4199 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4200 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
4202 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
4203 gracefully in no-finalize mode.
4204 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
4206 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
4208 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
4210 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4211 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4213 2020-07-23 Julian Brown <julian@codesourcery.com>
4214 Thomas Schwinge <thomas@codesourcery.com>
4216 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
4217 finalization for detach operation.
4218 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
4221 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
4223 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
4224 * libgomp_f.h.in (omp_check_defines): Check whether
4225 sizeof of determined Fortran kind and C typedef match.
4226 * omp_lib.f90.in: Add omp_depened_kind.
4227 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
4228 * configure: Regenerate.
4229 * Makefile.in: Regenerate.
4230 * testsuite/Makefile.in: Regenerate.
4232 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4234 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
4235 gcc/testsuite/c-c++-common/gomp/.
4236 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
4237 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
4238 from gcc/testsuite/gfortran.dg/gomp/.
4239 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
4241 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4243 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
4244 * omp_lib.h.in: Likewise.
4246 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
4249 * testsuite/libgomp.c/pr95620.c: New test.
4251 2020-07-16 Julian Brown <julian@codesourcery.com>
4252 Thomas Schwinge <thomas@codesourcery.com>
4254 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
4255 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
4257 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4259 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
4260 avoid conversion on 32bit systems from 32bit to 64bit due
4261 to -fdefault-integer-8.
4263 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4265 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
4266 variables; add character(kind=4) tests; update TODO comment.
4268 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4270 * allocator.c: Add ialias for omp_init_allocator and
4271 omp_destroy_allocator.
4272 * configure.ac: Set INTPTR_T_KIND.
4273 * configure: Regenerate.
4274 * Makefile.in: Regenerate.
4275 * testsuite/Makefile.in: Regenerate.
4276 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
4277 omp_set_default_allocator_, omp_get_default_allocator_): New
4278 functions and ialias_redirect.
4279 * icv.c: Add ialias for omp_set_default_allocator and
4280 omp_get_default_allocator.
4281 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
4282 omp_destroy_allocator_, omp_set_default_allocator_ and
4283 omp_get_default_allocator_.
4284 * omp_lib.f90.in: Add allocator traits parameters, declare
4285 allocator routines and add related kind parameters.
4286 * omp_lib.h.in: Likewise.
4287 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
4288 * testsuite/libgomp.fortran/alloc-1.F90: New test.
4289 * testsuite/libgomp.fortran/alloc-2.F90: New test.
4290 * testsuite/libgomp.fortran/alloc-3.F: New test.
4291 * testsuite/libgomp.fortran/alloc-4.f90: New test.
4292 * testsuite/libgomp.fortran/alloc-5.f90: New test.
4294 2020-07-14 Tom de Vries <tom@codesourcery.com>
4295 Cesar Philippidis <cesar@codesourcery.com>
4296 Thomas Schwinge <thomas@codesourcery.com>
4297 Kwok Cheung Yeung <kcy@codesourcery.com>
4299 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
4301 (acc_init_1): Set acc_init_thread to pthread_self (). Set
4302 acc_init_state to initializing at the start, and to initialized at the
4304 (self_initializing_p): New function.
4305 (acc_get_device_type): Return acc_device_none if called by thread that
4306 is currently executing acc_init_1.
4307 * libgomp.texi (acc_get_device_type): Update documentation.
4308 (Implementation Status and Implementation-Defined Behavior): Likewise.
4309 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
4311 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
4313 * config/t-aix: Set BITS from compiler cpp macro.
4315 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4317 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
4319 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4322 * testsuite/libgomp.fortran/target-map-1.f90: New test.
4324 2020-07-14 Jakub Jelinek <jakub@redhat.com>
4326 * testsuite/libgomp.c/loop-21.c: New test.
4328 2020-07-13 Julian Brown <julian@codesourcery.com>
4329 Thomas Schwinge <thomas@codesourcery.com>
4331 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
4333 2020-07-10 Julian Brown <julian@codesourcery.com>
4334 Thomas Schwinge <thomas@codesourcery.com>
4336 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
4338 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
4339 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
4341 (acc_unmap_data): Update comment.
4342 (goacc_map_var_existing, goacc_enter_datum): Adjust for
4343 dynamic_refcount semantics.
4344 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
4345 Adjust for dynamic_refcount semantics.
4346 (goacc_enter_data_internal): Implement "present" case of dynamic
4347 memory-map handling here. Update "non-present" case for
4348 dynamic_refcount semantics.
4349 (goacc_exit_data_internal): Use goacc_exit_datum_1.
4350 * target.c (gomp_map_vars_internal): Remove
4351 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
4353 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
4354 (gomp_load_image_to_device): Substitute dynamic_refcount for
4356 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
4357 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
4358 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
4359 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
4360 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
4362 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
4364 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
4366 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4367 Remove stale comment.
4368 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
4369 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4370 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4371 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4372 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4373 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
4375 2020-07-10 Julian Brown <julian@codesourcery.com>
4376 Thomas Schwinge <thomas@codesourcery.com>
4378 * oacc-mem.c (goacc_map_var_existing): New function.
4379 (goacc_enter_datum): Use above function.
4380 (goacc_exit_datum_1): New function.
4381 (goacc_exit_datum): Use above function.
4383 2020-07-09 Julian Brown <julian@codesourcery.com>
4384 Thomas Schwinge <thomas@codesourcery.com>
4387 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
4388 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
4390 2020-07-09 Julian Brown <julian@codesourcery.com>
4392 * oacc-mem.c (find_group_last): Group data-movement clauses
4393 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
4394 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
4396 2020-07-09 Jakub Jelinek <jakub@redhat.com>
4398 * testsuite/libgomp.c/loop-19.c: New test.
4399 * testsuite/libgomp.c/loop-20.c: New test.
4401 2020-07-09 Jakub Jelinek <jakub@redhat.com>
4403 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
4404 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
4405 it. Remove __omp_alloctrait_value_max__.
4406 * allocator.c (omp_init_allocator): Handle omp_atv_default for
4407 omp_atk_alignment and omp_atk_pool_size.
4409 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
4411 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
4412 behavior for 'GOMP_MAP_FORCE_FROM'.
4413 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
4415 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
4417 * oacc-mem.c (goacc_exit_data_internal): Remove
4418 'GOMP_MAP_ALWAYS_FROM' handling.
4420 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
4422 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
4423 'scan-assembler' with 'scan-offload-rtl'.
4424 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4425 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4426 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
4427 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
4429 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
4431 * target.c (gomp_map_vars_existing): Assert 'kind !=
4433 (gomp_map_vars_internal): Clean up.
4435 2020-06-27 Jakub Jelinek <jakub@redhat.com>
4437 * testsuite/libgomp.c/loop-17.c: New test.
4438 * testsuite/libgomp.c/loop-18.c: New test.
4440 2020-06-26 Marek Polacek <polacek@redhat.com>
4442 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
4444 2020-06-23 Alexandre Oliva <oliva@adacore.com>
4446 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
4447 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
4449 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
4451 * Makefile.am: Use -include.
4452 * Makefile.in: Regenerate.
4454 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
4456 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
4457 * Makefile.in: Regenerate
4458 * configure.ac (tmake_file): Substitute.
4459 * configure: Regenerate.
4460 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
4461 * config/t-aix: New file.
4463 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
4466 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
4469 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
4471 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
4472 variant for HSA_RUNTIME_LIB name.
4473 (find_executable_symbol_1): Delete.
4474 (find_executable_symbol): Delete.
4475 (init_kernel_properties): Add ".kd" suffix to symbol names.
4476 (find_load_offset): Delete.
4477 (create_and_finalize_hsa_program): Remove relocation handling.
4479 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
4481 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
4483 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
4487 * testsuite/libgomp.fortran/target-var.f90: New test.
4489 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
4490 Julian Brown <julian@codesourcery.com>
4492 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
4495 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
4496 Julian Brown <julian@codesourcery.com>
4498 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4501 2020-06-05 Julian Brown <julian@codesourcery.com>
4503 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
4504 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
4506 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4508 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4509 Evaluate 'copyfrom' individually for each entry.
4510 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
4512 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4514 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4515 Evaluate 'finalize' individually for each entry.
4516 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
4517 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
4520 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4522 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
4524 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
4526 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4527 Julian Brown <julian@codesourcery.com>
4529 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
4531 (acc_unmap_data, goacc_exit_data_internal): Restore
4532 'is_tgt_unmapped' checking.
4533 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
4535 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
4536 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4537 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4538 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4539 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4540 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4542 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4543 Julian Brown <julian@codesourcery.com>
4545 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
4547 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4550 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
4552 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4555 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
4558 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4559 Julian Brown <julian@codesourcery.com>
4561 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
4563 (acc_map_data): Clean up accordingly.
4565 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4567 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
4568 of over-eager 'finalize' clause.
4569 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
4571 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4572 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4573 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4574 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4575 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4576 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
4577 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4578 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
4580 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4582 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
4584 2020-06-04 Julian Brown <julian@codesourcery.com>
4586 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
4588 (goacc_detach_internal): Likewise.
4590 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4592 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
4594 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4595 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4596 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4597 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4598 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4600 2020-06-02 Jakub Jelinek <jakub@redhat.com>
4602 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
4605 2020-05-30 Jakub Jelinek <jakub@redhat.com>
4607 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
4609 2020-05-30 Jakub Jelinek <jakub@redhat.com>
4611 * allocator.c (omp_alloc): For size == 0, return NULL early.
4613 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
4616 * configure: Regenerated.
4618 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
4621 * testsuite/libgomp.fortran/async_io_9.f90: New test.
4623 2020-05-19 Jakub Jelinek <jakub@redhat.com>
4625 * omp.h.in (omp_uintptr_t): New typedef.
4626 (__GOMP_UINTPTR_T_ENUM): Define.
4627 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
4628 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
4629 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
4630 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
4631 omp_get_default_allocator, omp_alloc, omp_free): Declare.
4632 * libgomp.h (struct gomp_team_state): Add def_allocator field.
4633 (gomp_def_allocator): Declare.
4634 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
4635 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
4636 omp_alloc and omp_free.
4637 * team.c (gomp_team_start): Copy over ts.def_allocator.
4638 * env.c (gomp_def_allocator): New variable.
4639 (parse_wait_policy): Adjust function comment.
4640 (parse_allocator): New function.
4641 (handle_omp_display_env): Print OMP_ALLOCATOR.
4642 (initialize_env): Call parse_allocator.
4643 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
4644 * allocator.c: New file.
4645 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
4647 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
4648 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
4649 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
4650 * Makefile.in: Regenerated.
4652 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
4655 * configure: Regenerated.
4657 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
4660 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
4662 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
4664 * configure: Regenerated.
4666 2020-05-14 Jakub Jelinek <jakub@redhat.com>
4668 * testsuite/libgomp.c-c++-common/target-40.c: New test.
4670 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
4673 * testsuite/libgomp.fortran/pr66199-3.f90: New.
4674 * testsuite/libgomp.fortran/pr66199-4.f90: New.
4675 * testsuite/libgomp.fortran/pr66199-5.f90: New.
4676 * testsuite/libgomp.fortran/pr66199-6.f90: New.
4677 * testsuite/libgomp.fortran/pr66199-7.f90: New.
4678 * testsuite/libgomp.fortran/pr66199-8.f90: New.
4679 * testsuite/libgomp.fortran/pr66199-9.f90: New.
4681 2020-05-12 Jakub Jelinek <jakub@redhat.com>
4683 * testsuite/libgomp.c/target-39.c: New test.
4685 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
4687 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
4688 * openacc.f90 (acc_device_current): Likewise.
4689 * openacc.h (acc_device_current): Likewise.
4690 * openacc_lib.h (acc_device_current): Likewise.
4693 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
4694 'dg-allow-blank-lines-in-output'.
4696 * oacc-init.c (get_openacc_name): Handle 'gcn'.
4697 * testsuite/lib/libgomp.exp
4698 (offload_target_to_openacc_device_type) [amdgcn*]: Return
4699 'radeon'. Adjust all users.
4700 (check_effective_target_openacc_amdgcn_accel_present): Rename
4702 (check_effective_target_openacc_radeon_accel_present): ... this.
4704 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
4705 (check_effective_target_openacc_radeon_accel_selected): ... this.
4708 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
4711 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
4715 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
4717 (GOMP_OFFLOAD_init_device): Check return values from both calls to
4718 hsa_agent_iterate_regions.
4720 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
4723 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
4726 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
4729 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
4732 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
4735 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
4737 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
4740 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4742 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
4744 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4746 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
4748 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4750 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
4752 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4754 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
4756 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4758 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
4760 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4762 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
4764 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4766 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
4768 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4770 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4772 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4774 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
4776 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4778 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
4780 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4782 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
4784 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4786 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
4788 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4790 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
4792 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4794 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
4796 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4798 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
4800 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
4802 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
4805 2020-04-10 Julian Brown <julian@codesourcery.com>
4806 Thomas Schwinge <thomas@codesourcery.com>
4809 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4811 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4813 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4815 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4817 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4819 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4821 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4823 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4825 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4827 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4829 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4831 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4833 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4835 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4837 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4839 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
4842 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
4844 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
4847 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
4850 * libgomp.oacc-c++/declare-pr94120.C: New.
4852 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
4854 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
4856 * configure: Regenerate.
4857 * testsuite/libgomp-site-extra.exp.in: New file.
4858 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
4860 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
4862 * testsuite/Makefile.in: Regenerate.
4864 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
4866 PR tree-optimization/89713
4868 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
4870 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4872 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
4874 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
4875 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
4877 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
4880 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
4882 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
4885 * target.c (gomp_load_image_to_device): Fix link
4888 2020-03-19 Jakub Jelinek <jakub@redhat.com>
4891 * testsuite/libgomp.c++/pr93931.C: New test.
4893 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
4895 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
4896 dg-allow-blank-lines-in-output.
4898 2020-03-18 Julian Brown <julian@codesourcery.com>
4899 Tobias Burnus <tobias@codesourcery.com>
4901 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
4902 it work concurrently.
4904 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
4906 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
4907 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
4908 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
4910 2020-03-14 Jakub Jelinek <jakub@redhat.com>
4913 * testsuite/libgomp.c/pr93566.c: New test.
4915 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
4917 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
4918 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
4919 integer(acc_device_property) for the type of the return value of
4922 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
4924 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
4925 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
4926 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
4927 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
4928 (acc_set_device_num): Fix Fortran argument name, use same name for C.
4929 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
4930 corrections; add note about the previous interface and named constant.
4931 (OpenACC library and environment variables): Fix two typos.
4932 * openacc.f90: Use for all procedures the argument names from the spec
4933 as for …_h they are user visible.
4934 (openacc_kinds): Rename acc_device_property to
4935 acc_device_property_kinds and change value to int32 ; and update users.
4936 Re-add acc_device_property for for backward compatibility.
4937 (acc_get_property_string_h): Clean up as acc_device_property_kind
4939 (acc_get_property_h): Likewise and return c_size_t instead of
4940 acc_device_property.
4941 (openacc): Also export acc_device_property_kinds.
4942 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
4943 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
4944 handling; check against /= 0 instead of == 1 to match C.
4945 * openacc_lib.h: Use for all procedures the argument names from the spec
4946 as for …_h they are user visible. Place !GCC$ into the first column to
4947 be active also for fixed-form souce form.
4948 (acc_device_current, acc_device_property_kind, acc_device_property,
4949 acc_property_memory, acc_property_free_memory, acc_property_name,
4950 acc_property_vendor, acc_property_driver): New named constants.
4951 (acc_get_property, acc_get_property_string): New generic interface.
4953 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
4956 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
4957 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
4959 (gomp_target_task_fn): Assert "devicep->async_run_func".
4960 (clear_unsupported_flags): New function to remove unsupported flags
4961 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
4962 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
4963 * testsuite/libgomp.c/target-33.c:
4964 Remove xfail for offload_target_nvptx.
4965 * testsuite/libgomp.c/target-34.c: Likewise.
4967 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
4969 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
4970 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
4971 * testsuite/libgomp.c/target-34.c: Likewise.
4972 * testsuite/libgomp.c/target-link-1.c: Add xfail for
4973 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
4975 2020-02-09 Jakub Jelinek <jakub@redhat.com>
4977 * testsuite/libgomp.c/target-38.c: New test.
4979 2020-02-06 Jakub Jelinek <jakub@redhat.com>
4982 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
4984 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
4986 * testsuite/lib/libgomp.exp
4987 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
4988 and not as 'source' argument to libgomp_target_compile.
4990 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
4992 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
4993 (gcn_gfx801_s): Remove.
4994 (isa_hsa_name): Remove gfx801.
4995 (isa_gcc_name): Remove gfx801/carizzo.
4996 (isa_code): Remove gfx801.
4998 2020-02-03 Julian Brown <julian@codesourcery.com>
4999 Tobias Burnus <tobias@codesourcery.com>
5001 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
5002 and *_finalize variants; document acc_attach and acc_detach; update
5003 references from OpenACC 2.0 to 2.6.
5004 * openacc.f90 (openacc_version): Update to 201711.
5005 * openacc_lib.h (openacc_version): Update to 201711.
5006 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
5007 openacc_version to 201711.
5008 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
5010 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
5012 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
5013 and vgpr_count fields.
5014 (struct kernel_info): Add a field for a hsa_kernel_description.
5015 (run_kernel): Reduce the number of threads/workers if the requested
5016 number would require too many VGPRs.
5017 (init_basic_kernel_info): Initialize description field with
5018 the hsa_kernel_description entry for the kernel.
5020 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
5023 * plugin/configfrag.ac (enable_offload_targets): Skip
5024 HSA and GCN plugin besides -m32 also for -mx32.
5025 * configure: Regenerate.
5027 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
5029 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
5031 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
5033 * plugin-gcn.c (struct agent_info): Add fields "name" and
5035 (GOMP_OFFLOAD_init_device): ... and init from here.
5036 (struct hsa_context_info): Add field "driver_version_s" ...
5037 (init_hsa_contest): ... and init from here.
5038 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
5040 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5041 Enable test execution for amdgcn and host offloading targets.
5042 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
5043 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5044 (expect_device_properties): Split function into ...
5045 (expect_device_string_properties): ... this new function ...
5046 (expect_device_memory): ... and this new function.
5047 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
5050 2020-01-28 Julian Brown <julian@codesourcery.com>
5052 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
5053 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
5054 component/non-component variable refs in a single directive.
5055 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
5057 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
5059 * configure.ac: Handle `--with-toolexeclibdir='.
5060 * Makefile.in: Regenerate.
5061 * aclocal.m4: Regenerate.
5062 * configure: Regenerate.
5063 * testsuite/Makefile.in: Regenerate.
5065 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
5067 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5068 (expect_device_properties): Remove "expected_free_mem" argument,
5069 change "expected_total_mem" argument type to size_t;
5070 change types of acc_get_property results to size_t,
5071 adapt format strings.
5072 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5073 Use %zu instead of %zd to print size_t values.
5074 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
5076 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
5077 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
5079 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
5081 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
5083 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
5086 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
5088 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
5089 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
5090 Adjust test dimensions for amdgcn.
5091 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
5092 gang/worker/vector expectations dynamically.
5093 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
5095 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
5096 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
5097 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
5098 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
5099 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
5100 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
5101 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
5102 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
5103 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5104 (acc_gang): Recognise acc_device_radeon.
5105 (acc_worker): Likewise.
5106 (acc_vector): Likewise.
5107 (main): Set expectations for amdgcn.
5108 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
5109 (main): Adjust gang/worker/vector expectations dynamically.
5110 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
5111 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
5112 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
5113 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
5116 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
5118 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
5120 (openacc): Likewise.
5121 * openacc.f90 (openacc_kinds): Likewise.
5122 (openacc): Likewise.
5123 * openacc.h (acc_device_t): Likewise.
5124 * openacc_lib.h: Likewise.
5125 * testsuite/lib/libgomp.exp
5126 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
5127 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
5128 (cb_compute_construct_end): Likewise.
5129 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5130 (cb_enqueue_launch_start): Likewise.
5131 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
5132 (cb_enter_data_end): Likewise.
5133 (cb_exit_data_start): Likewise.
5134 (cb_exit_data_end): Likewise.
5135 (cb_compute_construct_end): Likewise.
5136 (cb_enqueue_launch_start): Likewise.
5137 (cb_enqueue_launch_end): Likewise.
5138 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
5141 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
5143 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
5144 to use this instead of 'enum gomp_device_property'.
5145 (GOMP_OFFLOAD_get_property): Rename to...
5146 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
5147 * libgomp.h (struct gomp_device_descr): Move
5148 'GOMP_OFFLOAD_openacc_get_property'...
5149 (struct acc_dispatch_t): ... here. Adjust all users.
5150 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
5152 * target.c (gomp_map_vars_internal)
5153 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
5156 2020-01-10 Jakub Jelinek <jakub@redhat.com>
5159 * libgomp.h (gomp_print_string): Change return type from void to int.
5160 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
5161 not all characters have been written.
5163 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
5165 * libgomp.texi: Fix typos, use https.
5167 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
5169 * testsuite/libgomp.fortran/optional-map.f90: Add test for
5170 unallocated/disassociated actual arguments to nonallocatable/nonpointer
5171 dummy arguments; those are/shall be regarded as absent arguments.
5172 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5173 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
5175 2020-01-01 Jakub Jelinek <jakub@redhat.com>
5177 Update copyright years.
5179 * libgomp.texi: Bump @copying's copyright year.
5181 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
5184 * oacc-init.c (goacc_runtime_deinitialize): New function.
5186 2019-12-28 Jakub Jelinek <jakub@redhat.com>
5189 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
5190 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
5192 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
5193 Frederik Harwath <frederik@codesourcery.com>
5194 Thomas Schwinge <tschwinge@codesourcery.com>
5196 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
5197 * libgomp-plugin.h (gomp_device_property_value): New union.
5198 (gomp_device_property_value): New prototype.
5199 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
5201 (acc_device_property_t): New enum.
5202 (acc_get_property, acc_get_property_string): New prototypes.
5203 * oacc-init.c (acc_get_device_type): Also assert that result
5204 is not `acc_device_current'.
5205 (get_property_any, acc_get_property, acc_get_property_string):
5207 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
5208 `acc_property_memory', `acc_property_free_memory',
5209 `acc_property_name', `acc_property_vendor' and
5210 `acc_property_driver' constants. Add `acc_device_property' data
5212 (openacc_internal): Add `acc_get_property' and
5213 `acc_get_property_string' interfaces. Add `acc_get_property_h',
5214 `acc_get_property_string_h', `acc_get_property_l' and
5215 `acc_get_property_string_l'.
5216 * oacc-host.c (host_get_property): New function.
5217 (host_dispatch): Wire it.
5218 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
5219 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
5220 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
5221 * libgomp.texi (OpenACC Runtime Library Routines): Add
5223 (acc_get_property): New node.
5224 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
5226 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
5227 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
5228 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
5230 (GOMP_OFFLOAD_get_property): New function.
5231 (struct ptx_device): Add new field "name".
5232 (cuda_driver_version_s): Add new static variable ...
5233 (nvptx_init): ... and init from here.
5235 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
5236 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
5237 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
5238 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
5239 with test helper functions.
5241 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
5243 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
5245 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
5248 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
5250 * target.c (gomp_map_vars_internal): Restore 'omp declare target
5253 2019-12-19 Julian Brown <julian@codesourcery.com>
5255 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
5256 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
5257 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
5259 2019-12-19 Julian Brown <julian@codesourcery.com>
5260 Cesar Philippidis <cesar@codesourcery.com>
5262 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
5263 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
5264 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
5265 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
5266 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
5267 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
5268 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
5269 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
5270 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
5271 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
5272 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
5273 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
5274 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
5276 2019-12-19 Julian Brown <julian@codesourcery.com>
5278 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
5279 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
5280 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
5281 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
5282 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
5283 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
5284 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
5285 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
5286 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
5287 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
5288 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
5289 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
5291 2019-12-19 Julian Brown <julian@codesourcery.com>
5293 * libgomp.h (struct target_var_desc): Add do_detach flag.
5294 * oacc-init.c (acc_shutdown_1): Free aux block if present.
5295 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
5296 struct components. Tidy up and add some new checks.
5297 (goacc_enter_data_internal): Update call to find_group_last.
5298 (goacc_exit_data_internal): Support detach operations and
5300 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
5301 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
5302 attach/detach in enter/exit data detection code.
5303 * target.c (gomp_map_vars_existing): Initialise do_detach field of
5305 (gomp_map_vars_internal): Support attach.
5306 (gomp_unmap_vars_internal): Support detach.
5308 2019-12-19 Julian Brown <julian@codesourcery.com>
5309 Thomas Schwinge <thomas@codesourcery.com>
5311 * libgomp.h (struct splay_tree_aux): Add attach_count field.
5312 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
5313 * libgomp.map (OACC_2.6): New section. Add acc_attach,
5314 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
5315 acc_detach_finalize_async.
5316 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
5317 acc_detach, acc_detach_async, acc_detach_finalize,
5318 acc_detach_finalize_async): New functions.
5319 * openacc.h (acc_attach, acc_attach_async, acc_detach,
5320 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
5322 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
5323 (gomp_remove_var_internal): Free attachment counts if present.
5324 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
5325 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
5327 2019-12-19 Julian Brown <julian@codesourcery.com>
5328 Cesar Philippidis <cesar@codesourcery.com>
5330 * libgomp.h (gomp_map_val): Add prototype.
5331 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
5332 open-coding device-address calculation.
5333 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
5336 2019-12-19 Julian Brown <julian@codesourcery.com>
5338 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
5339 field for virtual_refcount.
5340 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5341 (gomp_free_memmap): Remove prototype.
5342 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
5343 instead of calling gomp_free_memmap.
5344 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
5346 (acc_unmap_data): Open code instead of forcing target_mem_desc's
5347 to_free field to NULL then calling gomp_unmap_vars. Handle
5348 REFCOUNT_INFINITY on target blocks.
5349 (goacc_enter_data): Rename to...
5350 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
5351 handling for mapping groups. Use virtual_refcount instead of
5352 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
5353 map_map_vars_async call. Re-do lookup for target pointer return value.
5354 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
5355 renamed goacc_enter_datum function.
5356 (goacc_exit_data): Rename to...
5357 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
5358 (acc_delete, acc_delete_async, acc_delete_finalize,
5359 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
5360 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
5361 goacc_exit_datum function.
5362 (gomp_acc_remove_pointer, find_pointer): Remove functions.
5363 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
5365 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
5366 goacc_exit_data_internal helper functions.
5367 * target.c (gomp_map_vars_internal): Handle
5368 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
5370 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
5371 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
5372 virtual_refcount field instead of dynamic_refcount.
5373 (gomp_free_memmap): Remove function.
5374 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
5375 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
5376 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
5378 2019-12-19 Julian Brown <julian@codesourcery.com>
5379 Thomas Schwinge <thomas@codesourcery.com>
5381 * libgomp.h (struct splay_tree_aux): New.
5382 (struct splay_tree_key_s): Replace link_key field with aux pointer.
5383 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
5385 (gomp_remove_var_internal): Free aux block if present.
5386 (gomp_load_image_to_device): Zero-initialise aux field instead of
5388 (omp_target_associate_pointer): Zero-initialise aux field.
5390 2019-12-18 Jakub Jelinek <jakub@redhat.com>
5393 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
5395 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
5398 2019-12-19 Julian Brown <julian@codesourcery.com>
5399 Maciej W. Rozycki <macro@codesourcery.com>
5400 Tobias Burnus <tobias@codesourcery.com>
5401 Thomas Schwinge <thomas@codesourcery.com>
5403 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
5404 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
5405 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
5406 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
5407 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
5408 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
5409 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
5410 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
5411 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
5413 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
5415 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5417 (goacc_insert_pointer): ... from here, "present" case.
5418 (goacc_insert_pointer): Inline function into...
5419 (GOACC_enter_exit_data): ... here, and simplify.
5421 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5423 (goacc_insert_pointer): ... from here, "not present" case.
5425 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
5428 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
5429 'goacc_enter_data', 'goacc_exit_data'.
5431 * oacc-mem.c (delete_copyout): Refactor into...
5432 (goacc_exit_data): ... this. Adjust all users.
5434 * oacc-mem.c (present_create_copy): Refactor into...
5435 (goacc_enter_data): ... this. Adjust all users.
5437 * target.c (gomp_unmap_vars_internal): Add a safeguard to
5440 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
5441 like 'GOMP_MAP_FROM'.
5446 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
5448 (GOACC_enter_exit_data): Simplify accordingly.
5449 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
5451 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
5452 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
5454 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
5456 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
5457 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
5459 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
5461 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
5463 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
5464 'finalize' handling.
5467 * oacc-mem.c (acc_map_data, present_create_copy)
5468 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
5469 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
5470 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
5471 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
5472 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
5474 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
5475 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5478 * target.c (gomp_unmap_tgt): Make it 'static'.
5479 * libgomp.h (gomp_unmap_tgt): Remove.
5481 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
5484 * testsuite/libgomp.c/pr86416-1.c: New.
5485 * testsuite/libgomp.c/pr86416-2.c: New.
5487 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
5489 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
5490 all symbols as public except for the 'use …, only' imported symbol,
5492 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5493 all symbols from module openacc_kinds as PUBLIC
5494 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
5496 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
5498 2019-12-13 Julian Brown <julian@codesourcery.com>
5502 * libgomp.h (gomp_remove_var_async): Add prototype.
5503 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
5505 * target.c (gomp_unref_tgt): Change return type to bool, indicating
5506 whether target_mem_desc was unmapped.
5507 (gomp_unref_tgt_void): New.
5508 (gomp_remove_var): Reimplement in terms of...
5509 (gomp_remove_var_internal): ...this new helper function.
5510 (gomp_remove_var_async): New, implemented using above helper function.
5511 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
5514 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
5516 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
5517 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
5518 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
5519 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
5520 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
5522 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
5523 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
5525 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
5527 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
5528 as public except for the 'use …, only' imported symbol, which is
5530 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5531 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
5532 attributes for acc_copyout_finalize and acc_delete_finalize.
5534 2019-12-11 Jakub Jelinek <jakub@redhat.com>
5537 * testsuite/libgomp.fortran/atomic1.f90: New test.
5539 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
5542 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
5543 reference counting for structured 'REFCOUNT_INFINITY'. Add some
5545 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
5546 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
5547 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
5548 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5549 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5551 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
5552 * oacc-mem.c: ... here.
5553 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
5554 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
5555 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
5557 * libgomp_g.h: Update.
5559 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
5560 * oacc-async.c: ... here.
5561 * oacc-int.h (goacc_wait): Declare.
5562 * libgomp_g.h: Update
5565 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
5567 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
5569 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
5571 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
5573 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
5575 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
5578 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
5579 Julian Brown <julian@codesourcery.com>
5581 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
5582 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
5584 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
5586 * omp_lib.h.in: Fix spelling of function declaration
5587 omp_get_cancell(l)ation.
5588 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
5590 * env.c: Fix comment typos.
5591 * oacc-host.c: Likewise.
5592 * ordered.c: Likewise.
5595 * config/gcn/task.c: Likewise.
5596 * config/gcn/team.c: Likewise.
5597 * config/nvptx/task.c: Likewise.
5598 * config/nvptx/team.c: Likewise.
5599 * plugin/plugin-gcn.c: Likewise.
5600 * testsuite/libgomp.fortran/jacobi.f: Likewise.
5601 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5602 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
5604 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
5606 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
5607 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
5608 unnecessary 'dg-additional-options "-w"'.
5610 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
5611 Julian Brown <julian@codesourcery.com>
5616 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
5617 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
5619 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5621 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5623 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
5625 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
5628 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
5629 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
5631 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
5633 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
5635 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
5637 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5639 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5641 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5642 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5643 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5644 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5645 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5646 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5647 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5648 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5649 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
5650 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5653 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
5654 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
5655 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
5657 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
5659 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
5661 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5662 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
5665 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
5667 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
5669 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
5671 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
5673 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5674 ... with their content moved into, and extended in this new file.
5675 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
5677 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
5679 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
5681 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
5684 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
5687 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
5689 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
5691 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
5693 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
5695 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
5697 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
5698 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5699 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
5700 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
5702 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
5703 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
5705 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
5707 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
5709 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
5710 Kwok Cheung Yeung <kcy@codesourcery.com>
5712 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
5713 if input it a NULL pointer.
5714 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
5715 diagnostic of NULL pointer.
5716 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
5717 * testsuite/libgomp.fortran/optional-map.f90: New.
5718 * testsuite/libgomp.fortran/use_device_addr-1.f90
5719 (test_dummy_opt_callee_1_absent): New.
5720 (test_dummy_opt_call_1): Call it.
5721 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
5722 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
5723 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
5724 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
5725 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
5726 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
5727 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
5728 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
5729 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
5730 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
5731 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
5732 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
5733 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
5734 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
5735 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
5736 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
5738 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
5740 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
5741 expect dg-output of 'Error termination.' for GCN.
5742 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5743 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5745 2019-12-04 Jakub Jelinek <jakub@redhat.com>
5748 * testsuite/libgomp.fortran/teams1.f90: New test.
5749 * testsuite/libgomp.fortran/teams2.f90: New test.
5751 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
5753 * oacc-init.c (acc_known_device_type): Add function.
5754 (unknown_device_type_error): Add function.
5755 (name_of_acc_device_t): Change to call unknown_device_type_error
5757 (resolve_device): Use acc_known_device_type.
5758 (acc_init): Fail if acc_device_t argument is not valid.
5759 (acc_shutdown): Likewise.
5760 (acc_get_num_devices): Likewise.
5761 (acc_set_device_type): Likewise.
5762 (acc_get_device_num): Likewise.
5763 (acc_set_device_num): Likewise.
5764 (acc_on_device): Add comment that argument validity is not checked.
5766 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
5768 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5770 (check_effective_target_openacc_amdgcn_accel_present): New proc.
5771 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
5772 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
5773 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5774 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5776 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5779 * configure.tgt: Avoid IE tls on *-*-musl*.
5781 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
5783 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
5784 adding a common-block test case.
5786 2019-11-29 Jakub Jelinek <jakub@redhat.com>
5789 * testsuite/libgomp.c++/udr-20.C: New test.
5790 * testsuite/libgomp.c++/udr-21.C: New test.
5792 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
5794 * testsuite/lib/libgomp.exp
5795 (check_effective_target_offload_target_nvptx): New proc.
5796 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
5798 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
5799 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
5800 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
5802 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5804 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
5805 * testsuite/libgomp.c/pr39591-2.c: Likewise.
5806 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5807 * testsuite/libgomp.c/private-1.c: Likewise.
5808 * testsuite/libgomp.c/task-1.c: Likewise.
5809 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
5811 2019-11-20 Julian Brown <julian@codesourcery.com>
5813 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
5815 (queue_push_launch): Lock aq->mutex before calling
5816 wait_for_queue_nonfull.
5817 (queue_push_callback): Likewise.
5818 (queue_push_asyncwait): Likewise.
5819 (queue_push_placeholder): Likewise.
5821 2019-11-20 Julian Brown <julian@codesourcery.com>
5823 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
5824 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
5825 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
5828 2019-11-20 Julian Brown <julian@codesourcery.com>
5832 * oacc-mem.c (present_create_copy): Fix device pointer return value in
5833 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
5834 in non-present/create case.
5835 (delete_copyout): Change error condition to fail only on copies outside
5836 of mapped block. Adjust error message accordingly.
5837 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
5838 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
5839 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
5841 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5842 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
5843 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5845 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
5847 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
5848 libatomic in build-tree testing.
5850 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
5852 * testsuite/Makefile.in: Regenerate.
5854 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
5856 * testsuite/libgomp.c/target-print-1.c: New file.
5857 * testsuite/libgomp.fortran/target-print-1.f90: New file.
5858 * testsuite/libgomp.oacc-c/print-1.c: New file.
5859 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
5861 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5862 Kwok Cheung Yeung <kcy@codesourcery.com>
5863 Julian Brown <julian@codesourcery.com>
5864 Tom de Vries <tom@codesourcery.com>
5866 * plugin/Makefrag.am: Add amdgcn plugin support.
5867 * plugin/configfrag.ac: Likewise.
5868 * plugin/plugin-gcn.c: New file.
5869 * configure: Regenerate.
5870 * Makefile.in: Regenerate.
5871 * testsuite/Makefile.in: Regenerate.
5873 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5875 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
5876 and use team_malloc variants.
5877 (gomp_gcn_exit_kernel): Use team_free.
5878 * libgomp.h (TEAM_ARENA_SIZE): Define.
5879 (TEAM_ARENA_START): Define.
5880 (TEAM_ARENA_FREE): Define.
5881 (TEAM_ARENA_END): Define.
5882 (team_malloc): New function.
5883 (team_malloc_cleared): New function.
5884 (team_free): New function.
5885 * team.c (gomp_new_team): Initialize and use team_malloc.
5886 (free_team): Use team_free.
5887 (gomp_free_thread): Use team_free.
5888 (gomp_pause_host): Use team_free.
5889 * work.c (gomp_init_work_share): Use team_malloc.
5890 (gomp_fini_work_share): Use team_free.
5892 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5893 Kwok Cheung Yeung <kcy@codesourcery.com>
5894 Julian Brown <julian@codesourcery.com>
5895 Tom de Vries <tom@codesourcery.com>
5897 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
5898 * Makefile.in: Regenerate.
5899 * config.h.in (PLUGIN_GCN): Add new undef.
5900 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
5901 * config/gcn/affinity-fmt.c: New file.
5902 * config/gcn/bar.c: New file.
5903 * config/gcn/bar.h: New file.
5904 * config/gcn/doacross.h: New file.
5905 * config/gcn/icv-device.c: New file.
5906 * config/gcn/oacc-target.c: New file.
5907 * config/gcn/simple-bar.h: New file.
5908 * config/gcn/target.c: New file.
5909 * config/gcn/task.c: New file.
5910 * config/gcn/team.c: New file.
5911 * config/gcn/time.c: New file.
5912 * configure.ac: Add amdgcn*-*-*.
5913 * configure: Regenerate.
5914 * configure.tgt: Add amdgcn*-*-*.
5915 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
5916 * libgomp.h (gcn_thrs): Add amdgcn variant.
5917 (set_gcn_thrs): Likewise.
5918 (gomp_thread): Likewise.
5919 * oacc-int.h (goacc_thread): Likewise.
5920 * oacc-target.c: New file.
5921 * openacc.f90 (acc_device_gcn): New parameter.
5922 * openacc.h (acc_device_t): Add acc_device_gcn.
5923 * team.c (gomp_free_pool_helper): Add amdgcn support.
5925 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5926 Julian Brown <julian@codesourcery.com>
5928 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
5930 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
5932 * oacc-host.c (host_openacc_async_construct): Add device parameter.
5933 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
5936 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5938 * configure.tgt (nvptx*-*-*): Add "accel" directory.
5939 * config/nvptx/libgomp-plugin.c: Move ...
5940 * config/accel/libgomp-plugin.c: ... to here.
5941 * config/nvptx/lock.c: Move ...
5942 * config/accel/lock.c: ... to here.
5943 * config/nvptx/mutex.c: Move ...
5944 * config/accel/mutex.c: ... to here.
5945 * config/nvptx/mutex.h: Move ...
5946 * config/accel/mutex.h: ... to here.
5947 * config/nvptx/oacc-async.c: Move ...
5948 * config/accel/oacc-async.c: ... to here.
5949 * config/nvptx/oacc-cuda.c: Move ...
5950 * config/accel/oacc-cuda.c: ... to here.
5951 * config/nvptx/oacc-host.c: Move ...
5952 * config/accel/oacc-host.c: ... to here.
5953 * config/nvptx/oacc-init.c: Move ...
5954 * config/accel/oacc-init.c: ... to here.
5955 * config/nvptx/oacc-mem.c: Move ...
5956 * config/accel/oacc-mem.c: ... to here.
5957 * config/nvptx/oacc-plugin.c: Move ...
5958 * config/accel/oacc-plugin.c: ... to here.
5959 * config/nvptx/omp-lock.h: Move ...
5960 * config/accel/omp-lock.h: ... to here.
5961 * config/nvptx/openacc.f90: Move ...
5962 * config/accel/openacc.f90: ... to here.
5963 * config/nvptx/pool.h: Move ...
5964 * config/accel/pool.h: ... to here.
5965 * config/nvptx/proc.c: Move ...
5966 * config/accel/proc.c: ... to here.
5967 * config/nvptx/ptrlock.c: Move ...
5968 * config/accel/ptrlock.c: ... to here.
5969 * config/nvptx/ptrlock.h: Move ...
5970 * config/accel/ptrlock.h: ... to here.
5971 * config/nvptx/sem.c: Move ...
5972 * config/accel/sem.c: ... to here.
5973 * config/nvptx/sem.h: Move ...
5974 * config/accel/sem.h: ... to here.
5975 * config/nvptx/thread-stacksize.h: Move ...
5976 * config/accel/thread-stacksize.h: ... to here.
5978 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
5979 Tobias Burnus <tobias@codesourcery.com>
5980 Frederik Harwath <frederik@codesourcery.com>
5981 Thomas Schwinge <thomas@codesourcery.com>
5984 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
5985 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
5986 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
5988 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
5989 Kwok Cheung Yeung <kcy@codesourcery.com>
5991 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
5992 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
5994 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
5996 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
5998 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
6000 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
6001 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
6003 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
6005 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
6006 Add expected warnings about missing reduction clauses.
6007 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
6009 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
6011 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
6014 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6016 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
6017 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
6018 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
6019 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6020 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6021 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6023 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6026 * testsuite/libgomp.fortran/allocatable2.f90: Use
6027 unique numbers with 'stop'.
6028 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6029 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6030 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
6031 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
6032 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
6034 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6036 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
6037 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
6038 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
6039 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
6040 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
6041 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
6043 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6045 * testsuite/libgomp.fortran/target9.f90: New.
6047 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6049 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
6050 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
6051 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
6052 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
6053 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
6054 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
6055 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
6056 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
6057 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
6058 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
6059 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
6060 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
6061 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
6062 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
6063 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
6064 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
6065 * testsuite/libgomp.fortran/associate1.f90: Ditto.
6066 * testsuite/libgomp.fortran/associate2.f90: Ditto.
6067 * testsuite/libgomp.fortran/associate3.f90: Ditto.
6068 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
6069 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
6070 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
6071 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
6072 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
6073 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
6074 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
6075 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
6076 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
6077 * testsuite/libgomp.fortran/character1.f90: Ditto.
6078 * testsuite/libgomp.fortran/character2.f90: Ditto.
6079 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
6080 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
6081 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
6082 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
6083 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
6084 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
6085 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
6086 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
6087 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
6088 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
6089 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
6090 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
6091 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
6092 * testsuite/libgomp.fortran/do1.f90: Ditto.
6093 * testsuite/libgomp.fortran/do2.f90: Ditto.
6094 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
6095 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
6096 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
6097 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
6098 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
6099 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
6100 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
6101 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
6102 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
6103 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
6104 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
6105 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
6106 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
6107 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
6108 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
6109 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
6110 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
6111 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
6112 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
6113 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
6114 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
6115 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
6116 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
6117 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
6118 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
6119 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
6120 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
6121 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
6122 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
6123 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
6124 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
6125 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
6126 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
6127 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
6128 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
6129 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
6130 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
6131 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
6132 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
6133 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
6134 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
6135 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
6136 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
6137 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
6138 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
6139 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
6140 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
6141 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
6142 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
6143 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6144 * testsuite/libgomp.fortran/lib1.f90: Ditto.
6145 * testsuite/libgomp.fortran/lib4.f90: Ditto.
6146 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
6147 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
6148 * testsuite/libgomp.fortran/nested1.f90: Ditto.
6149 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
6150 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
6151 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
6152 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6153 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
6154 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
6155 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6156 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
6157 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
6158 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
6159 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
6160 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
6161 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
6162 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
6163 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6164 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
6165 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6166 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
6167 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
6168 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
6169 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
6170 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
6171 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
6172 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
6173 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6174 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
6175 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
6176 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
6177 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
6178 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
6179 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6180 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
6181 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
6182 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
6183 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
6184 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6185 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
6186 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
6187 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
6188 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
6189 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
6190 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
6191 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
6192 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
6193 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
6194 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
6195 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
6196 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
6197 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
6198 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
6199 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
6200 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
6201 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
6202 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
6203 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
6204 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
6205 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6206 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
6207 * testsuite/libgomp.fortran/reference1.f90: Ditto.
6208 * testsuite/libgomp.fortran/reference2.f90: Ditto.
6209 * testsuite/libgomp.fortran/retval1.f90: Ditto.
6210 * testsuite/libgomp.fortran/retval2.f90: Ditto.
6211 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
6212 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
6213 * testsuite/libgomp.fortran/simd1.f90: Ditto.
6214 * testsuite/libgomp.fortran/simd2.f90: Ditto.
6215 * testsuite/libgomp.fortran/simd3.f90: Ditto.
6216 * testsuite/libgomp.fortran/simd4.f90: Ditto.
6217 * testsuite/libgomp.fortran/simd5.f90: Ditto.
6218 * testsuite/libgomp.fortran/simd6.f90: Ditto.
6219 * testsuite/libgomp.fortran/simd7.f90: Ditto.
6220 * testsuite/libgomp.fortran/stack.f90: Ditto.
6221 * testsuite/libgomp.fortran/strassen.f90: Ditto.
6222 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
6223 * testsuite/libgomp.fortran/tabs2.f: Ditto.
6224 * testsuite/libgomp.fortran/target1.f90: Ditto.
6225 * testsuite/libgomp.fortran/target2.f90: Ditto.
6226 * testsuite/libgomp.fortran/target3.f90: Ditto.
6227 * testsuite/libgomp.fortran/target4.f90: Ditto.
6228 * testsuite/libgomp.fortran/target5.f90: Ditto.
6229 * testsuite/libgomp.fortran/target6.f90: Ditto.
6230 * testsuite/libgomp.fortran/target7.f90: Ditto.
6231 * testsuite/libgomp.fortran/target8.f90: Ditto.
6232 * testsuite/libgomp.fortran/task1.f90: Ditto.
6233 * testsuite/libgomp.fortran/task2.f90: Ditto.
6234 * testsuite/libgomp.fortran/task3.f90: Ditto.
6235 * testsuite/libgomp.fortran/task4.f90: Ditto.
6236 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6237 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6238 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6239 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6240 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6241 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
6242 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
6243 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
6244 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
6245 * testsuite/libgomp.fortran/udr1.f90: Ditto.
6246 * testsuite/libgomp.fortran/udr10.f90: Ditto.
6247 * testsuite/libgomp.fortran/udr11.f90: Ditto.
6248 * testsuite/libgomp.fortran/udr12.f90: Ditto.
6249 * testsuite/libgomp.fortran/udr13.f90: Ditto.
6250 * testsuite/libgomp.fortran/udr14.f90: Ditto.
6251 * testsuite/libgomp.fortran/udr15.f90: Ditto.
6252 * testsuite/libgomp.fortran/udr2.f90: Ditto.
6253 * testsuite/libgomp.fortran/udr3.f90: Ditto.
6254 * testsuite/libgomp.fortran/udr4.f90: Ditto.
6255 * testsuite/libgomp.fortran/udr5.f90: Ditto.
6256 * testsuite/libgomp.fortran/udr6.f90: Ditto.
6257 * testsuite/libgomp.fortran/udr7.f90: Ditto.
6258 * testsuite/libgomp.fortran/udr8.f90: Ditto.
6259 * testsuite/libgomp.fortran/udr9.f90: Ditto.
6260 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6261 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6262 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6263 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6264 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6265 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6266 * testsuite/libgomp.fortran/vla7.f90: Ditto.
6267 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6268 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6269 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6271 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6273 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
6274 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
6275 Ditto; add 'dg-do run' for torture testing.
6276 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
6277 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6278 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6279 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6280 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6281 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6282 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
6283 * testsuite/libgomp.fortran/task2.f90: Ditto.
6284 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6285 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6286 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6287 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6288 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6289 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6291 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
6293 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
6294 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
6295 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
6296 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
6297 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
6298 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
6299 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
6300 Use 'stop' not abort().
6301 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
6302 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
6303 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
6304 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
6305 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
6306 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
6307 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
6308 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
6309 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
6310 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
6311 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
6312 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
6313 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
6314 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
6315 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
6316 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
6317 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6319 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6321 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6323 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6325 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6327 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
6329 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
6331 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
6333 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
6335 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
6337 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
6339 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
6341 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
6343 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
6345 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
6346 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
6347 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
6348 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
6349 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6350 Likewise and also add 'dg-do run'.
6351 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6354 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6355 Tobias Burnus <tobias@codesourcery.com>
6357 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
6358 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
6359 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
6361 2019-10-14 Jakub Jelinek <jakub@redhat.com>
6364 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
6367 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
6369 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
6370 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
6372 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
6375 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
6378 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
6381 * testsuite/libgomp.fortran/fortran.exp: Conditionally
6383 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
6385 2019-10-09 Jakub Jelinek <jakub@redhat.com>
6388 * target.c (gomp_map_vars_internal): Readd the previous
6389 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
6390 though do that just in the !not_found_cnt case.
6392 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
6394 * gfortran.dg/gomp/target-simd.f90: New.
6396 2019-10-02 Julian Brown <julian@codesourcery.com>
6397 Cesar Philippidis <cesar@codesourcery.com>
6399 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
6400 * target.c (FIELD_TGT_EMPTY): Define.
6401 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
6402 as switch instead of list of ifs.
6403 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
6405 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
6407 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
6408 include. Replace alloca () with __builtin_alloca ().
6409 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
6411 2019-10-01 Jakub Jelinek <jakub@redhat.com>
6413 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
6414 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
6415 * oacc-parallel.c: Don't include "libgomp_g.h".
6416 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
6417 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
6418 * aclocal.m4: Regenerated.
6419 * config.h.in: Regenerated.
6420 * configure: Regenerated.
6421 * Makefile.in: Regenerated.
6423 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
6425 * libgomp_g.h: Include stdint.h instead of gstdint.h.
6427 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
6429 * configure: Regenerate.
6431 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
6433 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
6434 string is initialized.
6436 2019-09-06 Florian Weimer <fweimer@redhat.com>
6438 * configure: Regenerate.
6440 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
6443 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
6444 scanning to conform to the GNU Coding Standards.
6445 * configure: Regenerate.
6447 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6450 * testsuite/libgomp.c/scan-21.c: New test.
6451 * testsuite/libgomp.c/scan-22.c: New test.
6453 2019-08-27 Jakub Jelinek <jakub@redhat.com>
6456 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
6458 * testsuite/libgomp.c/scan-12.c: Likewise.
6459 * testsuite/libgomp.c/scan-13.c: Likewise.
6460 * testsuite/libgomp.c/scan-14.c: Likewise.
6461 * testsuite/libgomp.c/scan-15.c: Likewise.
6462 * testsuite/libgomp.c/scan-16.c: Likewise.
6463 * testsuite/libgomp.c/scan-17.c: Likewise.
6464 * testsuite/libgomp.c/scan-18.c: Likewise.
6465 * testsuite/libgomp.c/scan-19.c: Likewise.
6466 * testsuite/libgomp.c/scan-20.c: Likewise.
6467 * testsuite/libgomp.c++/scan-9.C: Likewise.
6468 * testsuite/libgomp.c++/scan-10.C: Likewise.
6469 * testsuite/libgomp.c++/scan-11.C: Likewise.
6470 * testsuite/libgomp.c++/scan-12.C: Likewise.
6471 * testsuite/libgomp.c++/scan-14.C: Likewise.
6472 * testsuite/libgomp.c++/scan-15.C: Likewise.
6473 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
6474 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
6475 * testsuite/libgomp.c++/scan-16.C: Likewise.
6477 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
6480 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
6481 -std=legacy so invalid code in the test case is accepted.
6483 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
6486 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
6489 2019-08-08 Jakub Jelinek <jakub@redhat.com>
6491 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
6492 perform the lookup in the first loop only if !not_found_cnt, otherwise
6493 perform lookups for it in the second loop guarded with
6494 if (not_found_cnt || has_firstprivate).
6495 * testsuite/libgomp.c/target-37.c: New test.
6496 * testsuite/libgomp.c++/target-22.C: New test.
6498 2019-08-07 Jakub Jelinek <jakub@redhat.com>
6500 * testsuite/libgomp.c/target-18.c (struct S): New type.
6501 (foo): Use use_device_addr clause instead of use_device_ptr clause
6502 where required by OpenMP 5.0, add further tests for both use_device_ptr
6503 and use_device_addr clauses.
6504 * testsuite/libgomp.c++/target-9.C (struct S): New type.
6505 (foo): Use use_device_addr clause instead of use_device_ptr clause
6506 where required by OpenMP 5.0, add further tests for both use_device_ptr
6507 and use_device_addr clauses. Add t and u arguments.
6508 (main): Adjust caller.
6510 2019-08-06 Jakub Jelinek <jakub@redhat.com>
6512 * testsuite/libgomp.c++/loop-13.C: New test.
6513 * testsuite/libgomp.c++/loop-14.C: New test.
6514 * testsuite/libgomp.c++/loop-15.C: New test.
6516 2019-07-31 Jakub Jelinek <jakub@redhat.com>
6519 * testsuite/libgomp.c++/for-27.C: New test.
6521 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
6523 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
6524 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6526 2019-07-20 Jakub Jelinek <jakub@redhat.com>
6528 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
6530 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6532 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
6533 * testsuite/libgomp.c++/scan-16.C: Likewise.
6535 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6537 * testsuite/libgomp.c/scan-19.c: New test.
6538 * testsuite/libgomp.c/scan-20.c: New test.
6540 * testsuite/libgomp.c/scan-11.c: New test.
6541 * testsuite/libgomp.c/scan-12.c: New test.
6542 * testsuite/libgomp.c/scan-13.c: New test.
6543 * testsuite/libgomp.c/scan-14.c: New test.
6544 * testsuite/libgomp.c/scan-15.c: New test.
6545 * testsuite/libgomp.c/scan-16.c: New test.
6546 * testsuite/libgomp.c/scan-17.c: New test.
6547 * testsuite/libgomp.c/scan-18.c: New test.
6548 * testsuite/libgomp.c++/scan-9.C: New test.
6549 * testsuite/libgomp.c++/scan-10.C: New test.
6550 * testsuite/libgomp.c++/scan-11.C: New test.
6551 * testsuite/libgomp.c++/scan-12.C: New test.
6552 * testsuite/libgomp.c++/scan-13.C: New test.
6553 * testsuite/libgomp.c++/scan-14.C: New test.
6554 * testsuite/libgomp.c++/scan-15.C: New test.
6555 * testsuite/libgomp.c++/scan-16.C: New test.
6557 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6559 * testsuite/libgomp.c/scan-9.c: New test.
6560 * testsuite/libgomp.c/scan-10.c: New test.
6562 2019-07-03 Jakub Jelinek <jakub@redhat.com>
6564 * testsuite/libgomp.c++/scan-1.C: New test.
6565 * testsuite/libgomp.c++/scan-2.C: New test.
6566 * testsuite/libgomp.c++/scan-3.C: New test.
6567 * testsuite/libgomp.c++/scan-4.C: New test.
6568 * testsuite/libgomp.c++/scan-5.C: New test.
6569 * testsuite/libgomp.c++/scan-6.C: New test.
6570 * testsuite/libgomp.c++/scan-7.C: New test.
6571 * testsuite/libgomp.c++/scan-8.C: New test.
6572 * testsuite/libgomp.c/scan-1.c: New test.
6573 * testsuite/libgomp.c/scan-2.c: New test.
6574 * testsuite/libgomp.c/scan-3.c: New test.
6575 * testsuite/libgomp.c/scan-4.c: New test.
6576 * testsuite/libgomp.c/scan-5.c: New test.
6577 * testsuite/libgomp.c/scan-6.c: New test.
6578 * testsuite/libgomp.c/scan-7.c: New test.
6579 * testsuite/libgomp.c/scan-8.c: New test.
6581 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
6583 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
6584 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
6587 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
6590 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
6592 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
6595 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
6598 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
6600 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
6601 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
6602 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
6603 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
6606 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
6609 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
6611 2019-06-16 Tom de Vries <tdevries@suse.de>
6613 PR tree-optimization/89376
6614 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
6616 2019-06-15 Tom de Vries <tdevries@suse.de>
6618 PR tree-optimization/89713
6619 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
6620 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
6622 2019-06-15 Jakub Jelinek <jakub@redhat.com>
6625 * testsuite/libgomp.c/pr90779.c: New test.
6626 * testsuite/libgomp.fortran/pr90779.f90: New test.
6628 2019-06-15 Tom de Vries <tdevries@suse.de>
6630 PR tree-optimization/90009
6631 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
6633 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
6635 PR tree-optimization/89713
6636 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
6638 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6641 * testsuite/libgomp.c/pr90811.c: New test.
6643 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6645 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
6646 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
6648 2019-06-04 Jakub Jelinek <jakub@redhat.com>
6650 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
6651 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
6652 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
6653 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
6655 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6657 * configure.ac: Call AX_COUNT_CPUS.
6658 Substitute CPU_COUNT.
6659 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
6661 * aclocal.m4: Regenerate.
6662 * configure: Regenerate.
6663 * Makefile.in, testsuite/Makefile.in: Regenerate.
6665 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6667 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
6669 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
6670 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
6671 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
6673 2019-05-27 Jakub Jelinek <jakub@redhat.com>
6675 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
6677 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
6680 * work.c (gomp_init_work_share): Instead of aligning final ordered
6681 value to multiples of long long alignment, align to that the
6682 first part (ordered team ids) and if inline_ordered_team_ids
6683 is not on a long long alignment boundary within the structure,
6684 use __alignof__ (long long) - 1 pad size always.
6685 * loop.c (GOMP_loop_start): Fix *mem computation if
6686 inline_ordered_team_ids is not aligned on long long alignment boundary
6687 within the structure.
6688 * loop-ull.c (GOMP_loop_ull_start): Likewise.
6689 * sections.c (GOMP_sections2_start): Likewise.
6691 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6693 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
6694 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
6697 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
6698 HAVE_INTTYPES_H is defined.
6699 (print_uint64_t): New typedef.
6700 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
6701 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
6702 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
6703 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
6704 before casting to void *.
6705 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
6706 * oacc-mem.c: Don't include config.h nor stdint.h.
6707 * target.c: Don't include config.h.
6708 * oacc-cuda.c: Likewise.
6709 * oacc-host.c: Don't include stdint.h.
6711 2019-05-20 Jakub Jelinek <jakub@redhat.com>
6714 * alloc.c (_GNU_SOURCE): Define.
6716 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
6718 * acc_prof.h: New file.
6719 * oacc-profiling.c: Likewise.
6720 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
6721 Add these, respectively.
6722 * Makefile.in: Regenerate.
6723 * env.c (initialize_env): Call goacc_profiling_initialize.
6724 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
6725 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
6726 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
6727 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
6728 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
6729 acc_prof_register, acc_prof_unregister, and acc_register_library.
6730 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
6731 GOMP_PLUGIN_goacc_thread.
6732 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
6733 prof_callbacks_enabled members.
6734 (goacc_prof_enabled, goacc_profiling_initialize)
6735 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
6736 (goacc_profiling_dispatch): Declare.
6737 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
6738 (GOACC_PROFILING_SETUP_P): Define.
6739 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
6740 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
6741 OpenACC Profiling Interface.
6742 * oacc-cuda.c (acc_get_current_cuda_device)
6743 (acc_get_current_cuda_context, acc_get_cuda_stream)
6744 (acc_set_cuda_stream): Likewise.
6745 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
6746 (acc_init, acc_set_device_type, acc_get_device_type)
6747 (acc_get_device_num, goacc_lazy_initialize): Likewise.
6748 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
6749 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
6750 (acc_unmap_data, present_create_copy, delete_copyout)
6751 (update_dev_host): Likewise.
6752 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
6753 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
6755 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
6756 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
6758 * libgomp.texi: Update.
6759 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
6761 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
6762 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
6764 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
6766 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
6768 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
6771 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
6773 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
6774 (struct goacc_asyncqueue_list): Likewise.
6775 (goacc_aq): Likewise.
6776 (goacc_aq_list): Likewise.
6777 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6778 (GOMP_OFFLOAD_openacc_async_test): Remove.
6779 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6780 (GOMP_OFFLOAD_openacc_async_wait): Remove.
6781 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6782 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6783 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6784 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6785 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
6786 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
6787 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
6788 (GOMP_OFFLOAD_openacc_async_exec): Declare.
6789 (GOMP_OFFLOAD_openacc_async_construct): Declare.
6790 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
6791 (GOMP_OFFLOAD_openacc_async_test): Declare.
6792 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
6793 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
6794 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
6795 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
6796 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
6798 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
6799 (gomp_acc_insert_pointer): Adjust declaration.
6800 (gomp_copy_host2dev): New declaration.
6801 (gomp_copy_dev2host): Likewise.
6802 (gomp_map_vars_async): Likewise.
6803 (gomp_unmap_tgt): Likewise.
6804 (gomp_unmap_vars_async): Likewise.
6805 (gomp_fini_device): Likewise.
6807 * oacc-async.c (get_goacc_thread): New function.
6808 (get_goacc_thread_device): New function.
6809 (lookup_goacc_asyncqueue): New function.
6810 (get_goacc_asyncqueue): New function.
6811 (acc_async_test): Adjust code to use new async design.
6812 (acc_async_test_all): Likewise.
6813 (acc_wait): Likewise.
6814 (acc_wait_async): Likewise.
6815 (acc_wait_all): Likewise.
6816 (acc_wait_all_async): Likewise.
6817 (goacc_async_free): New function.
6818 (goacc_init_asyncqueues): Likewise.
6819 (goacc_fini_asyncqueues): Likewise.
6820 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
6822 (acc_set_cuda_stream): Likewise.
6823 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
6824 (host_openacc_register_async_cleanup): Remove.
6825 (host_openacc_async_exec): New function.
6826 (host_openacc_async_test): Adjust parameters.
6827 (host_openacc_async_test_all): Remove.
6828 (host_openacc_async_wait): Remove.
6829 (host_openacc_async_wait_async): Remove.
6830 (host_openacc_async_wait_all): Remove.
6831 (host_openacc_async_wait_all_async): Remove.
6832 (host_openacc_async_set_async): Remove.
6833 (host_openacc_async_synchronize): New function.
6834 (host_openacc_async_serialize): New function.
6835 (host_openacc_async_host2dev): New function.
6836 (host_openacc_async_dev2host): New function.
6837 (host_openacc_async_queue_callback): New function.
6838 (host_openacc_async_construct): New function.
6839 (host_openacc_async_destruct): New function.
6840 (struct gomp_device_descr host_dispatch): Remove initialization of old
6841 interface, add initialization of new async sub-struct.
6842 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
6843 (goacc_attach_host_thread_to_device): Remove old async code usage.
6844 * oacc-int.h (goacc_init_asyncqueues): New declaration.
6845 (goacc_fini_asyncqueues): Likewise.
6846 (goacc_async_copyout_unmap_vars): Likewise.
6847 (goacc_async_free): Likewise.
6848 (get_goacc_asyncqueue): Likewise.
6849 (lookup_goacc_asyncqueue): Likewise.
6850 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
6852 (present_create_copy): Adjust code to use new async design.
6853 (delete_copyout): Likewise.
6854 (update_dev_host): Likewise.
6855 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
6857 (gomp_acc_remove_pointer): Adjust code to use new async design.
6858 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
6860 (GOACC_enter_exit_data): Likewise.
6861 (goacc_wait): Likewise.
6862 (GOACC_update): Likewise.
6863 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
6864 when called, warn as obsolete in comment.
6865 * target.c (goacc_device_copy_async): New function.
6866 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
6867 add goacc_device_copy_async case.
6868 (gomp_copy_dev2host): Likewise.
6869 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
6870 (gomp_map_pointer): Likewise.
6871 (gomp_map_fields_existing): Likewise.
6872 (gomp_map_vars_internal): New always_inline function, renamed from
6874 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
6875 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
6876 passing goacc_asyncqueue argument.
6877 (gomp_unmap_tgt): Remove static, add attribute_hidden.
6878 (gomp_unref_tgt): New function.
6879 (gomp_unmap_vars_internal): New always_inline function, renamed from
6881 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
6882 (gomp_unmap_vars_async): Implement by calling
6883 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
6884 (gomp_fini_device): New function.
6885 (gomp_exit_data): Adjust gomp_copy_dev2host call.
6886 (gomp_load_plugin_for_device): Remove old interface, adjust to load
6887 new async interface.
6888 (gomp_target_fini): Adjust code to call gomp_fini_device.
6890 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
6891 (struct ptx_stream): Remove.
6892 (struct nvptx_thread): Remove current_stream field.
6893 (cuda_map_create): Remove.
6894 (cuda_map_destroy): Remove.
6899 (struct goacc_asyncqueue): Define.
6900 (struct nvptx_callback): Define.
6901 (struct ptx_free_block): Define.
6902 (struct ptx_device): Remove null_stream, active_streams, async_streams,
6903 stream_lock, and next fields.
6904 (enum ptx_event_type): Remove.
6905 (struct ptx_event): Remove.
6906 (ptx_event_lock): Remove.
6907 (ptx_events): Remove.
6908 (init_streams_for_device): Remove.
6909 (fini_streams_for_device): Remove.
6910 (select_stream_for_async): Remove.
6911 (nvptx_init): Remove ptx_events and ptx_event_lock references.
6912 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
6914 (nvptx_open_device): Add free_blocks initialization, remove
6915 init_streams_for_device call.
6916 (nvptx_close_device): Remove fini_streams_for_device call, add
6917 free_blocks destruct code.
6919 (event_add): Remove.
6920 (nvptx_exec): Adjust parameters and code.
6921 (nvptx_free): Likewise.
6922 (nvptx_host2dev): Remove.
6923 (nvptx_dev2host): Remove.
6924 (nvptx_set_async): Remove.
6925 (nvptx_async_test): Remove.
6926 (nvptx_async_test_all): Remove.
6927 (nvptx_wait): Remove.
6928 (nvptx_wait_async): Remove.
6929 (nvptx_wait_all): Remove.
6930 (nvptx_wait_all_async): Remove.
6931 (nvptx_get_cuda_stream): Remove.
6932 (nvptx_set_cuda_stream): Remove.
6933 (GOMP_OFFLOAD_alloc): Adjust code.
6934 (GOMP_OFFLOAD_free): Likewise.
6935 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6936 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
6937 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6938 (GOMP_OFFLOAD_openacc_async_wait): Remove.
6939 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6940 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6941 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6942 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6943 (cuda_free_argmem): New function.
6944 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
6945 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
6946 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
6947 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
6948 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
6949 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
6950 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
6951 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
6952 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
6953 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
6954 (cuda_callback_wrapper): New function.
6955 (cuda_memcpy_sanity_check): New function.
6956 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
6957 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
6958 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
6959 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
6961 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
6964 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
6966 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
6968 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
6970 2019-03-27 Kevin Buettner <kevinb@redhat.com>
6972 * team.c (gomp_team_start): Initialize pool->threads[0].
6974 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6976 * testsuite/libgomp.oacc-c++/c++.exp: Specify
6977 "-foffload=$offload_target".
6978 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6979 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6980 * testsuite/lib/libgomp.exp
6981 (check_effective_target_openacc_nvidia_accel_configured): Remove,
6982 as (conceptually) merged into
6983 check_effective_target_openacc_nvidia_accel_selected. Adjust all
6986 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
6987 * testsuite/libgomp-test-support.exp.in: Adjust.
6988 * testsuite/lib/libgomp.exp: Likewise. Don't populate
6989 openacc_device_types_s.
6990 (offload_target_to_openacc_device_type): New proc.
6991 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
6992 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6993 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6994 * Makefile.in: Regenerate.
6995 * configure: Likewise.
6996 * testsuite/Makefile.in: Likewise.
6998 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
6999 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
7000 instead of OFFLOAD_TARGETS.
7001 * target.c (gomp_target_init): Adjust.
7002 * testsuite/libgomp-test-support.exp.in: Likewise.
7003 * testsuite/lib/libgomp.exp: Likewise. Populate
7004 openacc_device_types_s instead of offload_targets_s_openacc.
7005 (check_effective_target_openacc_nvidia_accel_selected)
7006 (check_effective_target_openacc_host_selected): Adjust.
7007 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
7008 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7009 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7010 * Makefile.in: Regenerate.
7011 * config.h.in: Likewise.
7012 * configure: Likewise.
7013 * testsuite/Makefile.in: Likewise.
7015 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
7016 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
7017 "offloading: supported, but hardware not accessible".
7018 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7019 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7021 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
7024 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
7026 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
7027 and related adjustment.
7029 2019-01-30 Jakub Jelinek <jakub@redhat.com>
7032 * testsuite/libgomp.c++/pr88988.C: New test.
7034 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7037 * testsuite/libgomp.c/pr89002.c: New test.
7039 2019-01-28 Richard Biener <rguenther@suse.de>
7042 PR tree-optimization/86865
7043 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
7045 2019-01-24 Tom de Vries <tdevries@suse.de>
7047 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
7048 once instantiated_devices drops to 0.
7050 2019-01-23 Tom de Vries <tdevries@suse.de>
7053 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
7055 (nvptx_exec): Don't call map_push if mapnum == 0.
7056 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
7058 2019-01-23 Tom de Vries <tdevries@suse.de>
7062 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
7063 (map_fini): Remove "assert (!s->map->active)".
7064 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
7066 2019-01-23 Tom de Vries <tdevries@suse.de>
7069 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
7070 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
7072 2019-01-15 Tom de Vries <tdevries@suse.de>
7075 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
7078 2019-01-12 Tom de Vries <tdevries@suse.de>
7080 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
7081 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
7082 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
7083 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
7085 2019-01-12 Tom de Vries <tdevries@suse.de>
7087 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
7089 2019-01-12 Tom de Vries <tdevries@suse.de>
7091 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
7092 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
7093 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
7095 2019-01-12 Tom de Vries <tdevries@suse.de>
7098 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
7099 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
7101 2019-01-12 Tom de Vries <tdevries@suse.de>
7104 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
7105 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
7107 2019-01-12 Tom de Vries <tdevries@suse.de>
7109 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
7110 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
7111 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
7113 2019-01-12 Tom de Vries <tdevries@suse.de>
7115 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
7116 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
7117 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
7119 2019-01-12 Tom de Vries <tdevries@suse.de>
7121 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
7122 resources diagnostic.
7124 2019-01-12 Tom de Vries <tdevries@suse.de>
7126 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
7127 vector length to be 128.
7128 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
7129 length 2097152 to be reduced to 1024 instead of 32.
7131 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
7132 James Norris <jnorris@codesourcery.com>
7134 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
7135 Library Routines", and "Environment Variables".
7137 2019-01-11 Tom de Vries <tdevries@suse.de>
7139 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
7142 2019-01-11 Tom de Vries <tdevries@suse.de>
7144 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
7146 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
7147 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
7148 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
7149 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
7151 2019-01-11 Tom de Vries <tdevries@suse.de>
7153 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
7156 2019-01-10 Nathan Sidwell <nathan@acm.org>
7157 Julian Brown <julian@codesourcery.com>
7160 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
7161 * testsuite/libgomp.oacc-c++/pr71959.C: New.
7163 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7165 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
7168 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7170 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
7171 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7174 2019-01-09 Tom de Vries <tdevries@suse.de>
7177 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
7178 #define instead of "const int".
7179 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
7180 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
7181 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
7182 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
7184 2019-01-09 Tom de Vries <tdevries@suse.de>
7186 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
7189 2019-01-07 Tom de Vries <tdevries@suse.de>
7191 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
7192 GOMP_OPENACC_DIM argument.
7194 2019-01-03 Tom de Vries <tdevries@suse.de>
7196 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
7197 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
7199 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7201 Update copyright years.
7203 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7205 * libgomp.texi: Bump @copying's copyright year.
7207 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7209 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
7210 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
7211 (GOACC_declare): Redefine the "device" argument to "flags".
7213 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7214 Cesar Philippidis <cesar@codesourcery.com>
7216 * target.c (struct gomp_coalesce_chunk): New structure.
7217 (struct gomp_coalesce_buf): Update the chunks member to use that
7218 type. Adjust all users.
7220 2018-12-19 Tom de Vries <tdevries@suse.de>
7222 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
7223 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
7224 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
7226 2018-12-19 Tom de Vries <tdevries@suse.de>
7228 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
7229 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
7230 gcc/testsuite/gcc.dg/goacc.
7231 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
7233 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7234 Chung-Lin Tang <cltang@codesourcery.com>
7236 * oacc-mem.c (acc_present_or_create): Remove definition and change
7237 to alias of acc_create.
7238 (acc_present_or_copyin): Remove definition and change to alias of
7240 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
7241 of acc_present_or_create.
7242 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
7243 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7244 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7245 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7246 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7247 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7248 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7249 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7250 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7251 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7252 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7253 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7254 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7255 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7256 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7257 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7259 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7262 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
7263 "identical parameters".
7264 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
7265 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
7268 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
7269 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
7272 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
7273 (nvptx_wait_async): Unseen async-argument is a no-op.
7274 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
7275 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
7276 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7277 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7278 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
7279 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
7280 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
7281 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
7282 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
7284 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
7285 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7287 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
7289 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
7290 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7291 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7293 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7296 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
7297 (acc_set_cuda_stream): Clarify.
7298 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
7300 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
7302 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
7303 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
7304 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
7305 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7307 2018-12-14 Tom de Vries <tdevries@suse.de>
7309 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
7310 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
7311 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
7312 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
7313 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
7315 2018-12-13 Tom de Vries <tdevries@suse.de>
7317 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
7318 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
7319 * fortran.c (omp_display_affinity_): ... here.
7320 * libgomp.h (gomp_print_string): Declare.
7321 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
7322 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7325 2018-12-13 Jakub Jelinek <jakub@redhat.com>
7328 * testsuite/libgomp.c++/for-24.C (results): Include it in
7329 omp declare target region.
7330 (main): Use map (always, tofrom: results) instead of
7331 map (tofrom: results).
7333 2018-12-12 Jakub Jelinek <jakub@redhat.com>
7336 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
7337 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
7339 * testsuite/libgomp.c-c++-common/for-16.c: New test.
7341 2018-12-12 Andreas Schwab <schwab@suse.de>
7343 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
7346 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
7349 * testsuite/libgomp.fortran/async_io_8.f90: New test.
7351 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
7352 Jakub Jelinek <jakub@redhat.com>
7354 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
7355 devicep->host2dev_func.
7357 2018-12-08 Jakub Jelinek <jakub@redhat.com>
7360 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
7361 tls_runtime effective target.
7362 (t): New threadprivate variable.
7363 (main): Set t in threads which execute iterations of the worksharing
7364 loop. Propagate that to the task after the loop and don't abort
7365 if the current taskgroup hasn't been cancelled.
7367 2018-12-02 Jakub Jelinek <jakub@redhat.com>
7369 * testsuite/libgomp.c/task-reduction-3.c: New test.
7371 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
7373 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
7376 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
7377 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
7379 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
7381 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
7383 2018-10-19 Richard Biener <rguenther@suse.de>
7385 PR tree-optimization/88182
7386 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
7388 2018-11-26 Jakub Jelinek <jakub@redhat.com>
7390 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
7391 (RUNTEST): Don't define.
7392 (RUNTESTDEFAULTFLAGS): Add.
7393 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
7394 (distclean-am): Depend on distclean-DEJAGNU.
7395 (check-am): If -j% option is present in MFLAGS and if
7396 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
7397 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
7398 * testsuite/Makefile.in: Regenerated.
7400 2018-11-26 Richard Biener <rguenther@suse.de>
7402 PR tree-optimization/88182
7403 * testsuite/libgomp.c++/pr88182.C: New testcase.
7405 2018-11-20 Jakub Jelinek <jakub@redhat.com>
7408 * config/mingw32/affinity-fmt.c: New file.
7410 2018-11-09 Jakub Jelinek <jakub@redhat.com>
7412 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
7413 (gomp_display_affinity): Use __builtin_choose_expr to handle
7414 properly handle argument having integral, or pointer or some other
7415 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
7416 with uint64_t type instead of %llx and unsigned long long.
7418 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
7419 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
7421 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7423 * affinity.c: Include <string.h>, <stdio.h>.
7424 (gomp_display_affinity_place): Remove cpusetp.
7425 * teams.c: Include <limits.h>.
7427 2018-11-08 Jakub Jelinek <jakub@redhat.com>
7429 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
7430 in_reduction clause for s[0].
7432 * affinity.c (gomp_display_affinity_place): New function.
7433 * affinity-fmt.c: New file.
7434 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
7435 * config/linux/affinity.c (gomp_display_affinity_place): New function.
7436 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
7437 Move these functions to ...
7438 * config/nvptx/teams.c: ... here. New file.
7439 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
7441 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
7443 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
7444 and _aligned_malloc.
7445 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
7446 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
7447 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
7448 gomp_affinity_format_len): New variables.
7449 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
7450 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
7451 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
7452 modifiers. Display (non-default) chunk sizes. Print
7453 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
7454 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
7455 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
7456 * fortran.c: Include stdio.h and string.h.
7457 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
7458 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
7459 (omp_set_affinity_format_, omp_get_affinity_format_,
7460 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
7461 omp_pause_resource_all_): New functions.
7462 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
7464 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
7466 * teams.c: ... here. New file.
7467 * libgomp_g.h: Include gstdint.h.
7468 (GOMP_loop_nonmonotonic_runtime_start,
7469 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
7470 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
7471 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
7472 GOMP_parallel_loop_nonmonotonic_runtime,
7473 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7474 GOMP_loop_ull_nonmonotonic_runtime_start,
7475 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
7476 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
7477 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7478 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
7479 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
7480 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7481 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7482 GOMP_teams_reg): Declare.
7483 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
7484 gomp_aligned_alloc uses fallback implementation.
7485 (gomp_aligned_alloc, gomp_aligned_free): Declare.
7486 (enum gomp_schedule_type): Add GFS_MONOTONIC.
7487 (struct gomp_doacross_work_share): Add extra field.
7488 (struct gomp_work_share): Add task_reductions field.
7489 (struct gomp_taskgroup): Add workshare and reductions fields.
7490 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
7491 (gomp_thread_handle): New typedef.
7492 (gomp_display_affinity_place, gomp_set_affinity_format,
7493 gomp_display_string, gomp_display_affinity,
7494 gomp_display_affinity_thread): Declare.
7495 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
7496 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
7497 gomp_workshare_task_reduction_register): Declare.
7498 (gomp_team_start): Add taskgroup argument.
7499 (gomp_pause_host): Declare.
7500 (gomp_init_work_share, gomp_work_share_start): Change bool argument
7502 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
7503 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
7504 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
7505 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7506 GOMP_loop_ull_doacross_start,
7507 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7508 GOMP_loop_maybe_nonmonotonic_runtime_next,
7509 GOMP_loop_maybe_nonmonotonic_runtime_start,
7510 GOMP_loop_nonmonotonic_runtime_next,
7511 GOMP_loop_nonmonotonic_runtime_start,
7512 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7513 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7514 GOMP_loop_ull_nonmonotonic_runtime_next,
7515 GOMP_loop_ull_nonmonotonic_runtime_start,
7516 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7517 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
7518 GOMP_taskgroup_reduction_register,
7519 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7520 GOMP_teams_reg and GOMP_taskwait_depend.
7521 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
7522 omp_{capture,display}_affinity{,_}, and
7523 omp_[gs]et_affinity_format{,_}.
7524 * loop.c: Include string.h.
7525 (GOMP_loop_runtime_next): Add ialias.
7526 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7527 (gomp_loop_static_start, gomp_loop_dynamic_start,
7528 gomp_loop_guided_start, gomp_loop_ordered_static_start,
7529 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7530 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7531 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
7532 or gomp_doacross_init callers.
7533 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
7534 GOMP_loop_doacross_start): New functions.
7535 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7536 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
7537 Mask off GFS_MONOTONIC bit.
7538 (GOMP_loop_maybe_nonmonotonic_runtime_next,
7539 GOMP_loop_maybe_nonmonotonic_runtime_start,
7540 GOMP_loop_nonmonotonic_runtime_next,
7541 GOMP_loop_nonmonotonic_runtime_start,
7542 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7543 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
7545 (gomp_parallel_loop_start): Pass NULL as taskgroup to
7547 * loop_ull.c: Include string.h.
7548 (GOMP_loop_ull_runtime_next): Add ialias.
7549 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7550 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
7551 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
7552 gomp_loop_ull_ordered_dynamic_start,
7553 gomp_loop_ull_ordered_guided_start,
7554 gomp_loop_ull_doacross_static_start,
7555 gomp_loop_ull_doacross_dynamic_start,
7556 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
7557 and gomp_doacross_ull_init callers.
7558 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7559 GOMP_loop_ull_doacross_start): New functions.
7560 (GOMP_loop_ull_runtime_start,
7561 GOMP_loop_ull_ordered_runtime_start,
7562 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
7563 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7564 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7565 GOMP_loop_ull_nonmonotonic_runtime_next,
7566 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
7567 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
7568 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
7569 (omp_pause_resource_t, omp_depend_t): New typedefs.
7570 (enum omp_lock_hint_t): Renamed to ...
7571 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
7572 enumerators using numbers and omp_lock_hint_* as their aliases.
7573 (omp_lock_hint_t): New typedef. Rename to ...
7574 (omp_sync_hint_t): ... this.
7575 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
7576 omp_sync_hint_t instead of omp_lock_hint_t.
7577 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7578 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7580 (omp_target_is_present, omp_target_disassociate_ptr):
7581 Change first argument from void * to const void *.
7582 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
7583 from void * to const void *.
7584 (omp_target_associate_ptr): Change first and second arguments from
7585 void * to const void *.
7586 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
7587 omp_pause_hard): New parameters.
7588 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7589 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7591 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
7592 omp_pause_hard): New parameters.
7593 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7594 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7596 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
7597 EXTRA argument. If not needed to prepare array, if extra is 0,
7598 clear ws->doacross, otherwise allocate just doacross structure and
7599 extra payload. If array is needed, allocate also extra payload.
7600 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
7601 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
7603 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
7605 (GOMP_parallel): Likewise. Formatting fix.
7606 (GOMP_parallel_reductions): New function.
7607 (GOMP_cancellation_point): If taskgroup has workshare
7608 flag set, check cancelled of prev taskgroup if any.
7609 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
7610 on prev taskgroup if any.
7611 * sections.c: Include string.h.
7612 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7613 (GOMP_sections_start): Adjust gomp_work_share_start caller.
7614 (GOMP_sections2_start): New function.
7615 (GOMP_parallel_sections_start, GOMP_parallel_sections):
7616 Pass NULL as taskgroup to gomp_team_start.
7617 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
7618 gomp_work_share_start callers.
7619 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
7620 If taskgroup has workshare flag set, check cancelled on prev
7621 taskgroup if any. Guard all cancellation tests with
7622 gomp_cancel_var test.
7623 (omp_target_is_present, omp_target_disassociate_ptr):
7624 Change ptr argument from void * to const void *.
7625 (omp_target_memcpy): Change src argument from void * to const void *.
7626 (omp_target_memcpy_rect): Likewise.
7627 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
7628 instead of char * where needed.
7629 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
7630 from void * to const void *.
7631 (omp_pause_resource, omp_pause_resource_all): New functions.
7632 * task.c (gomp_task_handle_depend): Handle new depend array format
7633 in addition to the old. Handle mutexinoutset kinds the same as
7634 inout for now, handle unspecified kinds.
7635 (gomp_create_target_task): If taskgroup has workshare flag set, check
7636 cancelled on prev taskgroup if any. Guard all cancellation tests with
7637 gomp_cancel_var test. Handle new depend array format count in
7638 addition to the old.
7639 (GOMP_task): Likewise. Adjust function comment.
7640 (gomp_task_run_pre): If taskgroup has workshare flag set, check
7641 cancelled on prev taskgroup if any. Guard all cancellation tests with
7642 gomp_cancel_var test.
7643 (GOMP_taskwait_depend): New function.
7644 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
7645 format in addition to the old. Handle mutexinoutset kinds the same as
7646 inout for now, handle unspecified kinds. Fix a function comment typo.
7647 (gomp_taskgroup_init): New function.
7648 (GOMP_taskgroup_start): Use it.
7649 (gomp_reduction_register, gomp_create_artificial_team,
7650 GOMP_taskgroup_reduction_register,
7651 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7652 gomp_parallel_reduction_register,
7653 gomp_workshare_task_reduction_register,
7654 gomp_workshare_taskgroup_start,
7655 GOMP_workshare_task_reduction_unregister): New functions.
7656 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
7657 check cancelled on prev taskgroup if any. Guard all cancellation
7658 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
7659 by calling GOMP_taskgroup_reduction_register.
7660 * team.c (gomp_thread_attr): Remove comment.
7661 (struct gomp_thread_start_data): Add handle field.
7662 (gomp_thread_start): Call pthread_detach.
7663 (gomp_new_team): Adjust gomp_init_work_share caller.
7664 (gomp_free_pool_helper): Call pthread_detach.
7665 (gomp_team_start): Add taskgroup argument, initialize implicit
7666 tasks' taskgroup field to that. Don't call
7667 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
7668 (gomp_team_end): Determine nesting by thr->ts.level != 0
7669 rather than thr->ts.team != NULL.
7670 (gomp_pause_pool_helper, gomp_pause_host): New functions.
7671 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
7672 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
7673 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
7674 if more than 1 allocate also extra payload at the end of array. Never
7675 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
7676 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
7677 return true instead of ws.
7678 * Makefile.in: Regenerated.
7679 * configure: Regenerated.
7680 * config.h.in: Regenerated.
7681 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
7683 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
7684 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
7685 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
7686 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
7687 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
7688 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
7689 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
7690 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
7691 * testsuite/libgomp.c-c++-common/for-10.c: New test.
7692 * testsuite/libgomp.c-c++-common/for-11.c: New test.
7693 * testsuite/libgomp.c-c++-common/for-12.c: New test.
7694 * testsuite/libgomp.c-c++-common/for-13.c: New test.
7695 * testsuite/libgomp.c-c++-common/for-14.c: New test.
7696 * testsuite/libgomp.c-c++-common/for-15.c: New test.
7697 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
7698 define a different N(test), don't define N(f0) to N(f14), but instead
7699 define N(f20) to N(f34) using != comparisons.
7700 * testsuite/libgomp.c-c++-common/for-7.c: New test.
7701 * testsuite/libgomp.c-c++-common/for-8.c: New test.
7702 * testsuite/libgomp.c-c++-common/for-9.c: New test.
7703 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
7704 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
7705 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
7706 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
7707 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
7708 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
7709 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
7710 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
7711 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
7712 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
7713 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
7714 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
7715 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
7716 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
7717 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
7718 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
7719 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
7720 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
7721 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
7722 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
7723 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
7724 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
7725 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
7726 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
7727 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
7728 * testsuite/libgomp.c++/depend-1.C: New test.
7729 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
7730 * testsuite/libgomp.c++/depobj-1.C: New test.
7731 * testsuite/libgomp.c++/for-16.C: New test.
7732 * testsuite/libgomp.c++/for-21.C: New test.
7733 * testsuite/libgomp.c++/for-22.C: New test.
7734 * testsuite/libgomp.c++/for-23.C: New test.
7735 * testsuite/libgomp.c++/for-24.C: New test.
7736 * testsuite/libgomp.c++/for-25.C: New test.
7737 * testsuite/libgomp.c++/for-26.C: New test.
7738 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
7739 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
7740 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
7741 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
7742 * testsuite/libgomp.c++/task-reduction-10.C: New test.
7743 * testsuite/libgomp.c++/task-reduction-11.C: New test.
7744 * testsuite/libgomp.c++/task-reduction-12.C: New test.
7745 * testsuite/libgomp.c++/task-reduction-13.C: New test.
7746 * testsuite/libgomp.c++/task-reduction-14.C: New test.
7747 * testsuite/libgomp.c++/task-reduction-15.C: New test.
7748 * testsuite/libgomp.c++/task-reduction-16.C: New test.
7749 * testsuite/libgomp.c++/task-reduction-17.C: New test.
7750 * testsuite/libgomp.c++/task-reduction-18.C: New test.
7751 * testsuite/libgomp.c++/task-reduction-19.C: New test.
7752 * testsuite/libgomp.c/task-reduction-1.c: New test.
7753 * testsuite/libgomp.c++/task-reduction-1.C: New test.
7754 * testsuite/libgomp.c/task-reduction-2.c: New test.
7755 * testsuite/libgomp.c++/task-reduction-2.C: New test.
7756 * testsuite/libgomp.c++/task-reduction-3.C: New test.
7757 * testsuite/libgomp.c++/task-reduction-4.C: New test.
7758 * testsuite/libgomp.c++/task-reduction-5.C: New test.
7759 * testsuite/libgomp.c++/task-reduction-6.C: New test.
7760 * testsuite/libgomp.c++/task-reduction-7.C: New test.
7761 * testsuite/libgomp.c++/task-reduction-8.C: New test.
7762 * testsuite/libgomp.c++/task-reduction-9.C: New test.
7763 * testsuite/libgomp.c/teams-1.c: New test.
7764 * testsuite/libgomp.c/teams-2.c: New test.
7765 * testsuite/libgomp.c/thread-limit-4.c: New test.
7766 * testsuite/libgomp.c/thread-limit-5.c: New test.
7767 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
7769 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
7771 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
7772 acc_memcpy_to/from_device functions, now with async parameter.
7773 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
7774 (acc_memcpy_from_device): Likewise.
7775 (acc_memcpy_to_device_async): New API function.
7776 (acc_memcpy_from_device_async): Likewise.
7777 (present_create_copy): Add async parameter and async setting/unsetting.
7778 (acc_create): Adjust present_create_copy call.
7779 (acc_copyin): Likewise.
7780 (acc_present_or_create): Likewise.
7781 (acc_present_or_copyin): Likewise.
7782 (acc_create_async): New API function.
7783 (acc_copyin_async): New API function.
7784 (delete_copyout): Add async parameter and async setting/unsetting.
7785 (acc_delete): Adjust delete_copyout call.
7786 (acc_copyout): Likewise.
7787 (acc_delete_async): New API function.
7788 (acc_copyout_async): Likewise.
7789 (update_dev_host): Add async parameter and async setting/unsetting.
7790 (acc_update_device): Adjust update_dev_host call.
7791 (acc_update_self): Likewise.
7792 (acc_update_device_async): New API function.
7793 (acc_update_self_async): Likewise.
7794 * openacc.h (acc_copyin_async): Declare new API function.
7795 (acc_create_async): Likewise.
7796 (acc_copyout_async): Likewise.
7797 (acc_delete_async): Likewise.
7798 (acc_update_device_async): Likewise.
7799 (acc_update_self_async): Likewise.
7800 (acc_memcpy_to_device_async): Likewise.
7801 (acc_memcpy_from_device_async): Likewise.
7802 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
7803 (acc_copyin_async_64_h): New subroutine.
7804 (acc_copyin_async_array_h): New subroutine.
7805 (acc_create_async_32_h): New subroutine.
7806 (acc_create_async_64_h): New subroutine.
7807 (acc_create_async_array_h): New subroutine.
7808 (acc_copyout_async_32_h): New subroutine.
7809 (acc_copyout_async_64_h): New subroutine.
7810 (acc_copyout_async_array_h): New subroutine.
7811 (acc_delete_async_32_h): New subroutine.
7812 (acc_delete_async_64_h): New subroutine.
7813 (acc_delete_async_array_h): New subroutine.
7814 (acc_update_device_async_32_h): New subroutine.
7815 (acc_update_device_async_64_h): New subroutine.
7816 (acc_update_device_async_array_h): New subroutine.
7817 (acc_update_self_async_32_h): New subroutine.
7818 (acc_update_self_async_64_h): New subroutine.
7819 (acc_update_self_async_array_h): New subroutine.
7820 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
7821 (acc_copyin_async_64_h): New subroutine.
7822 (acc_copyin_async_array_h): New subroutine.
7823 (acc_create_async_32_h): New subroutine.
7824 (acc_create_async_64_h): New subroutine.
7825 (acc_create_async_array_h): New subroutine.
7826 (acc_copyout_async_32_h): New subroutine.
7827 (acc_copyout_async_64_h): New subroutine.
7828 (acc_copyout_async_array_h): New subroutine.
7829 (acc_delete_async_32_h): New subroutine.
7830 (acc_delete_async_64_h): New subroutine.
7831 (acc_delete_async_array_h): New subroutine.
7832 (acc_update_device_async_32_h): New subroutine.
7833 (acc_update_device_async_64_h): New subroutine.
7834 (acc_update_device_async_array_h): New subroutine.
7835 (acc_update_self_async_32_h): New subroutine.
7836 (acc_update_self_async_64_h): New subroutine.
7837 (acc_update_self_async_array_h): New subroutine.
7838 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
7839 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
7840 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
7841 acc_memcpy_to_device_async*, acc_update_device_async*, and
7842 acc_update_self_async* entries.
7843 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
7844 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
7845 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
7847 2018-10-31 Joseph Myers <joseph@codesourcery.com>
7850 * Makefile.am: Include multilib.am
7851 (AUTOMAKE_OPTIONS): Add info-in-builddir.
7852 (CLEANFILES): Remove libgomp.info.
7853 * configure.ac: Remove AC_PREREQ.
7854 * testsuite/Makefile.am (RUNTEST): Remove quotes.
7855 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
7858 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7859 Julian Brown <julian@codesourcery.com>
7861 * testsuite/libgomp.oacc-c++/this.C: New.
7863 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
7865 * plugin/plugin-nvptx.c (struct cuda_map): New.
7866 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
7867 h_tail with (cuda_map *) map.
7868 (cuda_map_create): New function.
7869 (cuda_map_destroy): New function.
7870 (map_init): Update to use a linked list of cuda_map objects.
7871 (map_fini): Likewise.
7872 (map_pop): Likewise.
7873 (map_push): Likewise. Return CUdeviceptr instead of void.
7874 (init_streams_for_device): Remove stales references to ptx_stream
7876 (select_stream_for_async): Likewise.
7877 (nvptx_exec): Update call to map_init.
7879 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
7880 Julian Brown <julian@codesourcery.com>
7883 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
7885 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
7886 Thomas Koenig <tkoenig@gcc.gnu.org>
7889 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7890 * testsuite/libgomp.fortran/async_io_2.f90: New test.
7891 * testsuite/libgomp.fortran/async_io_3.f90: New test.
7892 * testsuite/libgomp.fortran/async_io_4.f90: New test.
7893 * testsuite/libgomp.fortran/async_io_5.f90: New test.
7894 * testsuite/libgomp.fortran/async_io_6.f90: New test.
7895 * testsuite/libgomp.fortran/async_io_7.f90: New test.
7897 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
7898 Tom de Vries <tdevries@suse.de>
7901 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
7902 (cuOccupancyMaxPotentialBlockSize): Declare.
7903 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
7904 CUDA_ONE_CALL_MAYBE_NULL.
7905 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
7906 CUoccupancyB2DSize and declare
7907 cuOccupancyMaxPotentialBlockSize.
7908 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
7909 default num_gangs and num_workers when the driver supports it.
7911 2018-08-08 Tom de Vries <tdevries@suse.de>
7913 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
7914 CUDA_ONE_CALL_MAYBE_NULL.
7915 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
7916 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
7917 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
7920 2018-08-08 Tom de Vries <tdevries@suse.de>
7922 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
7923 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
7926 2018-08-08 Tom de Vries <tdevries@suse.de>
7928 * plugin/plugin-nvptx.c
7929 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
7930 (nvptx_open_device): Use
7931 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
7933 2018-08-08 Tom de Vries <tdevries@suse.de>
7935 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
7936 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
7938 2018-08-07 Tom de Vries <tdevries@suse.de>
7940 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
7941 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
7942 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
7943 corresponding call in CUDA_ONE_CALL. Add def/undef of
7944 CUDA_ONE_CALL_MAYBE_NULL.
7945 (CUDA_CALL_EXISTS): Define.
7947 2018-08-07 Tom de Vries <tdevries@suse.de>
7949 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
7950 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
7951 corresponding undefs right after.
7953 2018-08-04 Tom de Vries <tdevries@suse.de>
7955 * plugin/configfrag.ac: For --without-cuda-driver, set
7956 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
7957 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
7958 * configure: Regenerate.
7960 2018-08-02 Tom de Vries <tdevries@suse.de>
7963 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
7964 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
7965 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
7967 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
7968 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
7969 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
7971 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
7972 Thomas Schwinge <thomas@codesourcery.com>
7974 * config/nvptx/oacc-parallel.c: Truncate.
7976 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
7977 James Norris <jnorris@codesourcery.com>
7979 * plugin/plugin-nvptx.c (struct map): Removed.
7980 (map_init, map_pop): Remove use of struct map.
7981 (map_push): Likewise and change argument list.
7982 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
7984 2018-08-01 Tom de Vries <tdevries@suse.de>
7986 * plugin/cuda-lib.def: New file. Factor out of ...
7987 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
7988 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
7991 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
7993 Revert 'AsyncI/O patch committed'.
7994 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
7995 Thomas Koenig <tkoenig@gcc.gnu.org>
7998 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7999 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8000 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8001 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8002 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8003 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8004 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8006 2018-07-30 Tom de Vries <tdevries@suse.de>
8008 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
8009 (nvptx_exec): Ensure worker and vector default dims don't exceed
8010 targ_fn->max_threads_per_block.
8012 2018-07-30 Tom de Vries <tdevries@suse.de>
8014 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
8015 (nvptx_open_device): Init default_dims for device.
8016 (nvptx_exec): Use default_dims from device.
8018 2018-07-26 Jakub Jelinek <jakub@redhat.com>
8021 * testsuite/libgomp.c++/for-15.C (results): Include it in
8022 omp declare target region.
8023 (main): Use map (always, tofrom: results) instead of
8024 map (tofrom: results).
8027 * testsuite/libgomp.c/pr86660.c: New test.
8029 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
8030 Tom de Vries <tdevries@suse.de>
8032 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
8033 sufficient resources to launch a kernel, and give a hint on how to fix
8036 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
8037 Tom de Vries <tdevries@suse.de>
8039 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
8040 max_threads_per_block and max_threads_per_multiprocessor fields.
8041 (nvptx_open_device): Initialize new fields.
8042 (nvptx_exec): Use num_sms, and new fields.
8044 2018-07-26 Tom de Vries <tdevries@suse.de>
8046 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
8047 to correct locations. Remove xfail.
8049 2018-07-26 Tom de Vries <tdevries@suse.de>
8051 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
8052 acc_wait. Move acc_async_test calls to correct locations. Remove
8055 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
8056 Thomas Koenig <tkoenig@gcc.gnu.org>
8059 * testsuite/libgomp.fortran/async_io_1.f90: New test.
8060 * testsuite/libgomp.fortran/async_io_2.f90: New test.
8061 * testsuite/libgomp.fortran/async_io_3.f90: New test.
8062 * testsuite/libgomp.fortran/async_io_4.f90: New test.
8063 * testsuite/libgomp.fortran/async_io_5.f90: New test.
8064 * testsuite/libgomp.fortran/async_io_6.f90: New test.
8065 * testsuite/libgomp.fortran/async_io_7.f90: New test.
8067 2018-07-17 Jakub Jelinek <jakub@redhat.com>
8070 * testsuite/libgomp.c++/pr86542.C: New test.
8073 * testsuite/libgomp.c++/pr86539.C: New test.
8075 2018-07-11 Jakub Jelinek <jakub@redhat.com>
8078 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
8079 (results): Make sure the variable is not inside declare target region.
8080 (qux): Remove unused function.
8082 2018-07-10 Jakub Jelinek <jakub@redhat.com>
8085 * testsuite/libgomp.c++/for-15.C: New test.
8087 2018-06-26 Jakub Jelinek <jakub@redhat.com>
8090 * testsuite/libgomp.c++/pr86291.C: New test.
8092 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
8094 * libgomp.texi (Top): Move www.openmp.org to https.
8095 (Enabling OpenMP): Ditto.
8096 (omp_get_active_level): Ditto.
8097 (omp_get_ancestor_thread_num): Ditto.
8098 (omp_get_cancellation): Ditto.
8099 (omp_get_default_device): Ditto.
8100 (omp_get_dynamic): Ditto.
8101 (omp_get_level): Ditto.
8102 (omp_get_max_active_levels): Ditto.
8103 (omp_get_max_task_priority): Ditto.
8104 (omp_get_max_threads): Ditto.
8105 (omp_get_nested): Ditto.
8106 (omp_get_num_devices): Ditto.
8107 (omp_get_num_procs): Ditto.
8108 (omp_get_num_teams): Ditto.
8109 (omp_get_num_threads): Ditto.
8110 (omp_get_proc_bind): Ditto.
8111 (omp_get_schedule): Ditto.
8112 (omp_get_team_num): Ditto.
8113 (omp_get_team_size): Ditto.
8114 (omp_get_thread_limit): Ditto.
8115 (omp_get_thread_num): Ditto.
8116 (omp_in_parallel): Ditto.
8117 (omp_in_final): Ditto.
8118 (omp_is_initial_device): Ditto.
8119 (omp_set_default_device): Ditto.
8120 (omp_set_dynamic): Ditto.
8121 (omp_set_max_active_levels): Ditto.
8122 (omp_set_nested): Ditto.
8123 (omp_set_num_threads): Ditto.
8124 (omp_set_schedule): Ditto.
8125 (omp_init_lock): Ditto.
8126 (omp_set_lock): Ditto.
8127 (omp_test_lock): Ditto.
8128 (omp_unset_lock): Ditto.
8129 (omp_destroy_lock): Ditto.
8130 (omp_init_nest_lock): Ditto.
8131 (omp_set_nest_lock): Ditto.
8132 (omp_test_nest_lock): Ditto.
8133 (omp_unset_nest_lock): Ditto.
8134 (omp_destroy_nest_lock): Ditto.
8135 (omp_get_wtick): Ditto.
8136 (omp_get_wtime): Ditto.
8137 (OMP_CANCELLATION): Ditto.
8138 (OMP_DISPLAY_ENV): Ditto.
8139 (OMP_DEFAULT_DEVICE): Ditto.
8140 (OMP_DYNAMIC): Ditto.
8141 (OMP_MAX_ACTIVE_LEVELS): Ditto.
8142 (OMP_MAX_TASK_PRIORITY): Ditto.
8143 (OMP_NESTED): Ditto.
8144 (OMP_NUM_THREADS): Ditto.
8145 (OMP_PROC_BIND): Ditto.
8146 (OMP_PLACES): Ditto.
8147 (OMP_STACKSIZE): Ditto.
8148 (OMP_SCHEDULE): Ditto.
8149 (OMP_THREAD_LIMIT): Ditto.
8150 (OMP_WAIT_POLICY): Ditto.
8152 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
8153 James Norris <jnorris@codesourcery.com>
8154 Julian Brown <julian@codesourcery.com>
8155 Thomas Schwinge <thomas@codesourcery.com>
8156 Tom de Vries <tom@codesourcery.com>
8158 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
8159 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
8160 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
8161 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
8162 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8163 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8164 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
8165 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
8166 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
8167 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
8169 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
8171 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
8173 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
8175 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
8177 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
8179 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
8181 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
8183 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
8185 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
8187 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
8189 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
8191 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
8193 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
8195 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
8197 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
8199 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
8201 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
8203 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
8205 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
8207 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
8209 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
8211 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
8213 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
8215 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
8217 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
8219 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
8221 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
8222 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
8223 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
8224 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
8225 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
8226 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
8227 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
8228 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
8229 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8231 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8233 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
8234 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
8235 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
8237 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
8238 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
8239 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8241 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8243 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8245 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8247 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8249 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
8251 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
8253 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
8255 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
8257 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
8259 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
8261 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
8263 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
8265 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
8267 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
8269 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8270 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
8271 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
8272 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
8273 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
8274 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
8275 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
8277 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
8278 Thomas Schwinge <thomas@codesourcery.com>
8279 Cesar Philippidis <cesar@codesourcery.com>
8281 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
8282 (gomp_acc_remove_pointer): Update declaration.
8283 (gomp_acc_declare_allocate): Declare.
8284 (gomp_remove_var): Declare.
8285 * libgomp.map (OACC_2.5): Define.
8286 * oacc-mem.c (acc_map_data): Update refcount.
8287 (acc_unmap_data): Likewise.
8288 (present_create_copy): Likewise.
8289 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
8290 (acc_copyin): Likewise.
8291 (FLAG_FINALIZE): Define.
8292 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
8293 (acc_delete_finalize): New function.
8294 (acc_delete_finalize_async): New function.
8295 (acc_copyout_finalize): New function.
8296 (acc_copyout_finalize_async): New function.
8297 (gomp_acc_insert_pointer): Update refcounts.
8298 (gomp_acc_remove_pointer): Return if data is not present on the
8300 * oacc-parallel.c (find_pset): Rename to find_pointer.
8301 (find_pointer): Add support for GOMP_MAP_POINTER.
8302 (handle_ftn_pointers): New function.
8303 (GOACC_parallel_keyed): Update refcounts of variables.
8304 (GOACC_enter_exit_data): Add support for finalized data mappings.
8305 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
8307 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
8308 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
8309 for GOMP_MAP_FORCE_FROM.
8310 * openacc.f90 (module openacc_internal): Add
8311 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
8312 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
8313 acc_copyout_finalize and acc_delete_finalize.
8314 (acc_copyout_finalize_32_h): New subroutine.
8315 (acc_copyout_finalize_64_h): New subroutine.
8316 (acc_copyout_finalize_array_h): New subroutine.
8317 (acc_delete_finalize_32_h): New subroutine.
8318 (acc_delete_finalize_64_h): New subroutine.
8319 (acc_delete_finalize_array_h): New subroutine.
8320 * openacc.h (acc_copyout_finalize): Declare.
8321 (acc_copyout_finalize_async): Declare.
8322 (acc_delete_finalize): Declare.
8323 (acc_delete_finalize_async): Declare.
8324 * openacc_lib.h (acc_copyout_finalize): New interface.
8325 (acc_delete_finalize): New interface.
8326 * target.c (gomp_map_vars): Update dynamic_refcount.
8327 (gomp_remove_var): New function.
8328 (gomp_unmap_vars): Use it.
8329 (gomp_unload_image_from_device): Likewise.
8330 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
8331 case to utilize OpenACC 2.5 data clause semantics.
8332 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8333 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8334 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8335 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8336 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8337 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8338 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8339 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8340 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8341 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8342 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8343 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
8344 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
8345 utilize OpenACC 2.5 data clause semantics.
8346 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8347 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8348 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8349 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8350 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8351 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8352 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8353 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8354 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8356 2018-05-21 Janus Weil <janus@gcc.gnu.org>
8360 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
8361 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8362 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8363 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8364 * testsuite/libgomp.fortran/task2.f90: Ditto.
8365 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8366 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8367 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8368 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8369 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8370 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8371 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8372 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
8373 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
8375 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
8378 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
8380 2018-05-09 Tom de Vries <tom@codesourcery.com>
8383 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
8384 to GOACC_enter_exit_data.
8386 2018-05-09 Tom de Vries <tom@codesourcery.com>
8389 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
8390 (async_synchronous_p): New function.
8391 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
8393 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8394 async_valid_stream_id_p.
8395 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
8396 * oacc-parallel.c (GOACC_parallel_keyed): Same.
8398 2018-05-07 Tom de Vries <tom@codesourcery.com>
8401 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
8402 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
8404 2018-05-03 Tom de Vries <tom@codesourcery.com>
8407 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
8408 extra_tool_flags if it contains an -foffload=-fdump-* flag.
8409 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
8410 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
8412 2018-05-02 Tom de Vries <tom@codesourcery.com>
8415 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
8416 GOMP_OPENACC_DIM ...
8417 * env.c (parse_gomp_openacc_dim): ... here. New function.
8418 (initialize_env): Call parse_gomp_openacc_dim.
8419 (goacc_default_dims): Define.
8420 * libgomp.h (goacc_default_dims): Declare.
8421 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
8422 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
8423 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
8424 GOMP_PLUGIN_acc_default_dim.
8425 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
8426 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
8428 2018-05-02 Tom de Vries <tom@codesourcery.com>
8431 * testsuite/libgomp.c++/udr-9.C: Update.
8432 * testsuite/libgomp.c++/atomic-16.C: Remove.
8433 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
8434 * testsuite/libgomp.c++/loop-13.C: Remove.
8435 * testsuite/libgomp.c++/loop-14.C: Remove.
8436 * testsuite/libgomp.c++/loop-15.C: Remove.
8437 * testsuite/libgomp.c++/monotonic-1.C: Remove.
8438 * testsuite/libgomp.c++/monotonic-2.C: Remove.
8439 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
8440 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
8441 * testsuite/libgomp.c++/ordered-1.C: Remove.
8442 * testsuite/libgomp.c++/pr45784.C: Remove.
8443 * testsuite/libgomp.c++/pr64824.C: Remove.
8444 * testsuite/libgomp.c++/pr64868.C: Remove.
8445 * testsuite/libgomp.c++/pr66199-1.C: Remove.
8446 * testsuite/libgomp.c++/pr66199-2.C: Remove.
8447 * testsuite/libgomp.c++/pr66199-3.C: Remove.
8448 * testsuite/libgomp.c++/pr66199-4.C: Remove.
8449 * testsuite/libgomp.c++/pr66199-5.C: Remove.
8450 * testsuite/libgomp.c++/pr66199-6.C: Remove.
8451 * testsuite/libgomp.c++/pr66199-7.C: Remove.
8452 * testsuite/libgomp.c++/pr66199-8.C: Remove.
8453 * testsuite/libgomp.c++/pr66199-9.C: Remove.
8454 * testsuite/libgomp.c++/pr69389.C: Remove.
8455 * testsuite/libgomp.c++/simd10.C: Remove.
8456 * testsuite/libgomp.c++/simd11.C: Remove.
8457 * testsuite/libgomp.c++/simd12.C: Remove.
8458 * testsuite/libgomp.c++/simd13.C: Remove.
8459 * testsuite/libgomp.c++/target-1.C: Remove.
8460 * testsuite/libgomp.c++/target-3.C: Remove.
8461 * testsuite/libgomp.c++/target-4.C: Remove.
8462 * testsuite/libgomp.c++/target-5.C: Remove.
8463 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
8464 * testsuite/libgomp.c++/taskloop-1.C: Remove.
8465 * testsuite/libgomp.c++/taskloop-2.C: Remove.
8466 * testsuite/libgomp.c++/taskloop-3.C: Remove.
8467 * testsuite/libgomp.c++/taskloop-4.C: Remove.
8468 * testsuite/libgomp.c++/udr-9.C: Remove.
8469 * testsuite/libgomp.c++/for-10.C: Remove.
8470 * testsuite/libgomp.c++/for-11.C: Remove.
8471 * testsuite/libgomp.c++/for-12.C: Remove.
8472 * testsuite/libgomp.c++/for-13.C: Remove.
8473 * testsuite/libgomp.c++/for-14.C: Remove.
8474 * testsuite/libgomp.c++/for-9.C: Remove.
8475 * testsuite/libgomp.c/atomic-18.c: Move ...
8476 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
8477 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
8478 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
8479 * testsuite/libgomp.c/loop-13.c: Move ...
8480 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
8481 * testsuite/libgomp.c/loop-14.c: Move ...
8482 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
8483 * testsuite/libgomp.c/loop-15.c: Remove.
8484 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
8485 * testsuite/libgomp.c/monotonic-1.c: Move ...
8486 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
8487 * testsuite/libgomp.c/monotonic-2.c: Move ...
8488 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
8489 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
8490 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
8491 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
8492 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
8493 * testsuite/libgomp.c/ordered-4.c: Move ...
8494 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
8495 * testsuite/libgomp.c/pr45784.c: Move ...
8496 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
8497 * testsuite/libgomp.c/pr64824.c: Move ...
8498 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
8499 * testsuite/libgomp.c/pr64868.c: Move ...
8500 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
8501 * testsuite/libgomp.c/pr66199-1.c: Move ...
8502 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
8503 * testsuite/libgomp.c/pr66199-2.c: Move ...
8504 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
8505 * testsuite/libgomp.c/pr66199-3.c: Move ...
8506 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
8507 * testsuite/libgomp.c/pr66199-4.c: Move ...
8508 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
8509 * testsuite/libgomp.c/pr66199-5.c: Move ...
8510 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
8511 * testsuite/libgomp.c/pr66199-6.c: Move ...
8512 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
8513 * testsuite/libgomp.c/pr66199-7.c: Move ...
8514 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
8515 * testsuite/libgomp.c/pr66199-8.c: Move ...
8516 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
8517 * testsuite/libgomp.c/pr66199-9.c: Move ...
8518 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
8519 * testsuite/libgomp.c/pr69389.c: Move ...
8520 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
8521 * testsuite/libgomp.c/simd-14.c: Move ...
8522 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
8523 * testsuite/libgomp.c/simd-15.c: Move ...
8524 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
8525 * testsuite/libgomp.c/simd-16.c: Move ...
8526 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
8527 * testsuite/libgomp.c/simd-17.c: Move ...
8528 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
8529 * testsuite/libgomp.c/target-1.c: Move ...
8530 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
8531 * testsuite/libgomp.c/target-10.c: Move ...
8532 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
8533 * testsuite/libgomp.c/target-13.c: Move ...
8534 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
8535 * testsuite/libgomp.c/target-2.c: Move ...
8536 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
8537 * testsuite/libgomp.c/taskgroup-1.c: Move ...
8538 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
8539 * testsuite/libgomp.c/taskloop-1.c: Move ...
8540 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
8541 * testsuite/libgomp.c/taskloop-2.c: Move ...
8542 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
8543 * testsuite/libgomp.c/taskloop-3.c: Move ...
8544 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
8545 * testsuite/libgomp.c/taskloop-4.c: Move ...
8546 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
8547 * testsuite/libgomp.c/udr-1.c: Move ...
8548 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
8549 * testsuite/libgomp.c/for-1.c: Move ...
8550 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
8551 * testsuite/libgomp.c/for-1.h: Move ...
8552 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
8553 * testsuite/libgomp.c/for-2.c: Move ...
8554 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
8555 * testsuite/libgomp.c/for-2.h: Move ...
8556 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
8557 * testsuite/libgomp.c/for-3.c: Move ...
8558 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
8559 * testsuite/libgomp.c/for-4.c: Move ...
8560 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
8561 * testsuite/libgomp.c/for-5.c: Move ...
8562 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
8563 * testsuite/libgomp.c/for-6.c: Move ...
8564 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
8566 2018-05-02 Tom de Vries <tom@codesourcery.com>
8569 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
8570 __builtin_goacc_parlevel_{id,size}.
8571 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
8572 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
8573 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
8574 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
8575 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
8576 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
8577 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
8578 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
8579 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
8580 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
8581 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
8582 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
8583 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
8584 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
8585 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
8586 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
8587 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
8588 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
8589 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
8590 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
8591 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
8592 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
8593 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
8595 2018-05-02 Tom de Vries <tom@codesourcery.com>
8598 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
8600 2018-05-02 Tom de Vries <tom@codesourcery.com>
8603 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
8605 2018-04-29 Julian Brown <julian@codesourcery.com>
8606 Tom de Vries <tom@codesourcery.com>
8609 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
8610 arbitrary order for iterations of atomic subtract check.
8612 2018-04-28 Tom de Vries <tom@codesourcery.com>
8615 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
8616 atomic capture results obtained in parallel loop to an array, instead of
8619 2018-04-26 Tom de Vries <tom@codesourcery.com>
8622 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
8623 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
8624 (process_GOMP_NVPTX_JIT): New function.
8625 (link_ptx): Use process_GOMP_NVPTX_JIT.
8627 2018-04-26 Richard Biener <rguenther@suse.de>
8628 Tom de Vries <tom@codesourcery.com>
8631 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
8633 2018-04-26 Tom de Vries <tom@codesourcery.com>
8636 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
8637 recursion depth from 25 to 23.
8638 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
8640 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
8642 * configure: Regenerated.
8644 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
8645 Tom de Vries <tom@codesourcery.com>
8648 * testsuite/libgomp.oacc-c++/ref-1.C: New.
8650 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
8653 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
8654 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8655 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8656 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
8657 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
8658 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
8661 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
8663 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8665 2018-04-19 Jakub Jelinek <jakub@redhat.com>
8667 * configure: Regenerated.
8669 2018-04-18 David Malcolm <dmalcolm@redhat.com>
8672 * configure: Regenerate.
8674 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
8675 Tom de Vries <tom@codesourcery.com>
8678 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8679 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8681 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8685 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
8686 test from gfortran.dg to here.
8688 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
8690 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
8691 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
8693 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
8696 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8697 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8699 2018-04-05 Tom de Vries <tom@codesourcery.com>
8702 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
8704 2018-03-26 Tom de Vries <tom@codesourcery.com>
8706 PR tree-optimization/85063
8707 * testsuite/libgomp.c/switch-conversion-2.c: New test.
8708 * testsuite/libgomp.c/switch-conversion.c: New test.
8709 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
8710 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
8712 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
8715 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
8716 call abort by STOP n.
8717 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
8718 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
8719 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
8720 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
8721 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
8722 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
8723 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
8724 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
8725 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
8726 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
8727 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
8728 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
8729 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
8730 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
8731 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
8732 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
8733 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
8734 * testsuite/libgomp.fortran/associate1.f90: Likewise.
8735 * testsuite/libgomp.fortran/associate2.f90: Likewise.
8736 * testsuite/libgomp.fortran/associate3.f90: Likewise.
8737 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
8738 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
8739 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
8740 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
8741 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
8742 * testsuite/libgomp.fortran/character1.f90: Likewise.
8743 * testsuite/libgomp.fortran/character2.f90: Likewise.
8744 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
8745 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
8746 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
8747 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
8748 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
8749 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
8750 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
8751 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
8752 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
8753 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
8754 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
8755 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
8756 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
8757 * testsuite/libgomp.fortran/do1.f90: Likewise.
8758 * testsuite/libgomp.fortran/do2.f90: Likewise.
8759 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
8760 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
8761 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
8762 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
8763 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
8764 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
8765 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8766 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
8767 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
8768 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
8769 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
8770 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
8771 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8772 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
8773 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
8774 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
8775 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
8776 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
8777 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
8778 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
8779 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
8780 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
8781 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
8782 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
8783 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
8784 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
8785 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
8786 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8787 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
8788 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
8789 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
8790 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
8791 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
8792 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8793 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8794 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
8795 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
8796 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
8797 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
8798 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
8799 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
8800 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
8801 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
8802 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
8803 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
8804 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
8805 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
8806 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
8807 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
8808 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8809 * testsuite/libgomp.fortran/lib2.f: Likewise.
8810 * testsuite/libgomp.fortran/lib3.f: Likewise.
8811 * testsuite/libgomp.fortran/lib4.f90: Likewise.
8812 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
8813 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
8814 * testsuite/libgomp.fortran/nested1.f90: Likewise.
8815 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
8816 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
8817 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
8818 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
8819 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
8820 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
8821 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
8822 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
8823 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
8824 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
8825 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
8826 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
8827 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
8828 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
8829 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
8830 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
8831 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
8832 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
8833 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
8834 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8835 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
8836 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
8837 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
8838 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
8839 * testsuite/libgomp.fortran/pr25162.f: Likewise.
8840 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
8841 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
8842 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
8843 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
8844 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
8845 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
8846 * testsuite/libgomp.fortran/pr28390.f: Likewise.
8847 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
8848 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
8849 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
8850 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
8851 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
8852 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
8853 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
8854 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
8855 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
8856 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
8857 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
8858 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
8859 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
8860 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
8861 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
8862 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
8863 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
8864 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
8865 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
8866 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
8867 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
8868 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
8869 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
8870 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
8871 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
8872 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
8873 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
8874 * testsuite/libgomp.fortran/reference1.f90: Likewise.
8875 * testsuite/libgomp.fortran/reference2.f90: Likewise.
8876 * testsuite/libgomp.fortran/retval1.f90: Likewise.
8877 * testsuite/libgomp.fortran/retval2.f90: Likewise.
8878 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
8879 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
8880 * testsuite/libgomp.fortran/simd1.f90: Likewise.
8881 * testsuite/libgomp.fortran/simd2.f90: Likewise.
8882 * testsuite/libgomp.fortran/simd3.f90: Likewise.
8883 * testsuite/libgomp.fortran/simd4.f90: Likewise.
8884 * testsuite/libgomp.fortran/simd5.f90: Likewise.
8885 * testsuite/libgomp.fortran/simd6.f90: Likewise.
8886 * testsuite/libgomp.fortran/simd7.f90: Likewise.
8887 * testsuite/libgomp.fortran/stack.f90: Likewise.
8888 * testsuite/libgomp.fortran/strassen.f90: Likewise.
8889 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
8890 * testsuite/libgomp.fortran/tabs2.f: Likewise.
8891 * testsuite/libgomp.fortran/target1.f90: Likewise.
8892 * testsuite/libgomp.fortran/target2.f90: Likewise.
8893 * testsuite/libgomp.fortran/target3.f90: Likewise.
8894 * testsuite/libgomp.fortran/target4.f90: Likewise.
8895 * testsuite/libgomp.fortran/target5.f90: Likewise.
8896 * testsuite/libgomp.fortran/target6.f90: Likewise.
8897 * testsuite/libgomp.fortran/target7.f90: Likewise.
8898 * testsuite/libgomp.fortran/target8.f90: Likewise.
8899 * testsuite/libgomp.fortran/task1.f90: Likewise.
8900 * testsuite/libgomp.fortran/task2.f90: Likewise.
8901 * testsuite/libgomp.fortran/task3.f90: Likewise.
8902 * testsuite/libgomp.fortran/task4.f90: Likewise.
8903 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
8904 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
8905 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
8906 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
8907 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
8908 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
8909 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
8910 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
8911 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
8912 * testsuite/libgomp.fortran/udr1.f90: Likewise.
8913 * testsuite/libgomp.fortran/udr10.f90: Likewise.
8914 * testsuite/libgomp.fortran/udr11.f90: Likewise.
8915 * testsuite/libgomp.fortran/udr12.f90: Likewise.
8916 * testsuite/libgomp.fortran/udr13.f90: Likewise.
8917 * testsuite/libgomp.fortran/udr14.f90: Likewise.
8918 * testsuite/libgomp.fortran/udr15.f90: Likewise.
8919 * testsuite/libgomp.fortran/udr2.f90: Likewise.
8920 * testsuite/libgomp.fortran/udr3.f90: Likewise.
8921 * testsuite/libgomp.fortran/udr4.f90: Likewise.
8922 * testsuite/libgomp.fortran/udr5.f90: Likewise.
8923 * testsuite/libgomp.fortran/udr6.f90: Likewise.
8924 * testsuite/libgomp.fortran/udr7.f90: Likewise.
8925 * testsuite/libgomp.fortran/udr8.f90: Likewise.
8926 * testsuite/libgomp.fortran/udr9.f90: Likewise.
8927 * testsuite/libgomp.fortran/vla1.f90: Likewise.
8928 * testsuite/libgomp.fortran/vla2.f90: Likewise.
8929 * testsuite/libgomp.fortran/vla3.f90: Likewise.
8930 * testsuite/libgomp.fortran/vla4.f90: Likewise.
8931 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8932 * testsuite/libgomp.fortran/vla6.f90: Likewise.
8933 * testsuite/libgomp.fortran/vla7.f90: Likewise.
8934 * testsuite/libgomp.fortran/vla8.f90: Likewise.
8935 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
8936 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
8937 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8938 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8939 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8940 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8941 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8942 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8943 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8944 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8945 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
8946 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
8947 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
8948 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
8949 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8950 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8951 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8952 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8953 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8954 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8955 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8956 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8957 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8958 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
8959 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
8960 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8961 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8962 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8963 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8964 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8965 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8966 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
8967 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
8968 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
8969 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
8970 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8971 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8972 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8973 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
8974 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8975 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
8976 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
8977 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
8978 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
8979 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
8980 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
8981 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8982 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8983 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8984 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8985 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8986 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8987 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8988 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8989 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8990 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8991 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8992 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8993 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8994 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8995 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8996 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8997 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8998 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
8999 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
9000 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
9001 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
9002 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9003 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
9004 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
9005 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
9006 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
9007 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
9008 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
9009 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
9010 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
9011 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
9012 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9013 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9014 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9015 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
9016 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9017 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
9018 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
9019 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
9020 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
9021 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
9022 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
9023 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
9024 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
9025 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
9026 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
9027 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
9028 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
9030 2018-03-20 Richard Biener <rguenther@suse.de>
9032 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
9033 parallelizable loop.
9035 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9038 * configure: Regenerate.
9040 2018-02-16 Jakub Jelinek <jakub@redhat.com>
9043 * libgomp.fortran/pr84418-1.f90: New test.
9044 * libgomp.fortran/pr84418-2.f90: New test.
9046 2018-02-14 Jakub Jelinek <jakub@redhat.com>
9049 * testsuite/libgomp.fortran/threadprivate4.f90: Add
9050 -std=f2003 -fall-intrinsics into dg-additional-options.
9052 2018-02-08 Martin Jambor <mjambor@suse.cz>
9054 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
9057 2018-02-08 Martin Jambor <mjambor@suse.cz>
9059 * testsuite/libgomp.hsa.c/staticvar.c: New test.
9061 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9063 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
9064 [__cplusplus]: Declare extern "C".
9066 2018-02-07 Tom de Vries <tom@codesourcery.com>
9069 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
9071 2018-01-29 Christoph Spiel <cspiel@freenet.de>
9072 Jakub Jelinek <jakub@redhat.com>
9075 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
9076 instead of omp_lock_t.
9078 2018-01-25 Tom de Vries <tom@codesourcery.com>
9081 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
9083 2018-01-24 Tom de Vries <tom@codesourcery.com>
9086 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
9088 2018-01-24 Tom de Vries <tom@codesourcery.com>
9091 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
9093 2018-01-19 Tom de Vries <tom@codesourcery.com>
9094 Cesar Philippidis <cesar@codesourcery.com>
9097 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
9098 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
9100 2018-01-03 Jakub Jelinek <jakub@redhat.com>
9102 Update copyright years.
9104 * libgomp.texi: Bump @copying's copyright year.
9106 2017-12-30 Tom de Vries <tom@codesourcery.com>
9109 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
9110 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
9112 2017-12-27 Tom de Vries <tom@codesourcery.com>
9115 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
9116 (test_nonstatic): Fix return type to workaround PR83046.
9118 2017-12-05 Jakub Jelinek <jakub@redhat.com>
9121 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
9122 j suffix instead of i.
9123 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
9126 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
9128 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
9129 call to acc_wait (1).
9131 2017-11-24 Jakub Jelinek <jakub@redhat.com>
9134 * testsuite/libgomp.fortran/pr81304.f90: New test.
9136 2017-11-23 Jakub Jelinek <jakub@redhat.com>
9139 * libgomp.fortran/pr81841.f90: New test.
9141 2017-11-22 Jakub Jelinek <jakub@redhat.com>
9144 * target.c (gomp_target_init): Compute lengths just once and
9145 use them in both malloc size and subsequent copying.
9147 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9149 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
9150 * acinclude.m4: Add cet.m4.
9151 * configure: Regenerate.
9152 * Makefile.in: Likewise.
9153 * testsuite/Makefile.in: Likewise.
9155 2017-11-15 Tom de Vries <tom@codesourcery.com>
9157 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
9158 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
9159 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
9160 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
9161 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
9162 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
9164 2017-11-14 Tom de Vries <tom@codesourcery.com>
9166 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
9169 2017-11-07 Jakub Jelinek <jakub@redhat.com>
9172 * testsuite/libgomp.c++/pr82835.C: New test.
9174 2017-11-06 Martin Liska <mliska@suse.cz>
9176 * testsuite/libgomp.c++/loop-2.C: Return a value
9177 for functions with non-void return type, or change type to void,
9178 or add -Wno-return-type for test.
9179 * testsuite/libgomp.c++/loop-4.C: Likewise.
9180 * testsuite/libgomp.c++/parallel-1.C: Likewise.
9181 * testsuite/libgomp.c++/shared-1.C: Likewise.
9182 * testsuite/libgomp.c++/single-1.C: Likewise.
9183 * testsuite/libgomp.c++/single-2.C: Likewise.
9185 2017-10-31 Tom de Vries <tom@codesourcery.com>
9187 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
9188 "do {} while (false)".
9189 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
9190 after HSA_DEBUG call.
9192 2017-10-28 Jakub Jelinek <jakub@redhat.com>
9194 * target.c (struct gomp_coalesce_buf): New type.
9195 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
9196 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
9197 (gomp_copy_host2dev): Add CBUF argument, if copying into
9198 the cached ranges, memcpy into buffer instead of copying
9200 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
9201 Add CBUF argument, pass it through to other calls.
9202 (gomp_map_vars): Aggregate copies from host to device if small enough
9203 and with small enough gaps in between into memcpy into a buffer and
9204 fewer host to device copies from the buffer.
9205 (gomp_update): Adjust gomp_copy_host2dev caller.
9207 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
9209 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
9211 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9212 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9213 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9214 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9216 2017-10-16 Tom de Vries <tom@codesourcery.com>
9218 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
9219 openacc_nvidia_accel_selected.
9220 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
9221 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
9222 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
9223 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
9224 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
9225 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
9226 openacc_nvidia_accel_selected. Skip for shared memory device.
9227 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
9228 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
9230 2017-10-09 Martin Jambor <mjambor@suse.cz>
9233 * testsuite/libgomp.hsa.c/pr82416.c: New test.
9235 2017-10-07 Tom de Vries <tom@codesourcery.com>
9237 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
9238 Remove acc_device_nvidia references.
9239 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
9242 2017-10-05 Tom de Vries <tom@codesourcery.com>
9244 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
9245 vector_length(32) clause from acc parallel directive.
9246 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
9248 2017-10-04 Tom de Vries <tom@codesourcery.com>
9250 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
9251 (main): Reduce sum of arr elements. Assert that hres is exactly
9252 representable in 32-bit floating point.
9253 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
9254 (main): Reduce sum of arr elements. Assert that hres and hmres are
9255 exactly representable in 32-bit floating point.
9256 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
9258 2017-09-28 Tom de Vries <tom@codesourcery.com>
9260 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
9262 * testsuite/libgomp.c++/pr69393.C: Same.
9263 * testsuite/libgomp.c++/taskloop-1.C: Same.
9264 * testsuite/libgomp.c++/taskloop-3.C: Same.
9265 * testsuite/libgomp.c++/taskloop-4.C: Same.
9266 * testsuite/libgomp.c/for-4.c: Same.
9267 * testsuite/libgomp.c/pr66199-3.c: Same.
9268 * testsuite/libgomp.c/pr66199-4.c: Same.
9269 * testsuite/libgomp.c/pr66199-6.c: Same.
9270 * testsuite/libgomp.c/taskloop-1.c: Same.
9271 * testsuite/libgomp.c/taskloop-3.c: Same.
9272 * testsuite/libgomp.c/taskloop-4.c: Same.
9273 * testsuite/libgomp.fortran/aligned1.f03: Same.
9274 * testsuite/libgomp.fortran/condinc1.f: Same.
9275 * testsuite/libgomp.fortran/condinc3.f90: Same.
9276 * testsuite/libgomp.fortran/crayptr1.f90: Same.
9277 * testsuite/libgomp.fortran/crayptr2.f90: Same.
9278 * testsuite/libgomp.fortran/crayptr3.f90: Same.
9279 * testsuite/libgomp.fortran/omp_cond1.f: Same.
9280 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
9281 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
9282 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
9283 * testsuite/libgomp.fortran/recursion1.f90: Same.
9284 * testsuite/libgomp.fortran/target2.f90: Same.
9285 * testsuite/libgomp.fortran/target5.f90: Same.
9286 * testsuite/libgomp.fortran/task3.f90: Same.
9288 2017-09-28 Tom de Vries <tom@codesourcery.com>
9290 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
9291 vector_length(32) clause from acc parallel directive.
9292 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
9294 2017-09-27 Tom de Vries <tom@codesourcery.com>
9296 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
9297 Remove acc_device_nvidia references.
9299 2017-09-16 Tom de Vries <tom@codesourcery.com>
9302 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
9304 2017-09-14 Tom de Vries <tom@codesourcery.com>
9306 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
9307 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
9308 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
9309 * testsuite/libgomp.c/c.exp: Include test-cases from
9310 libgomp.c-c++-common.
9311 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
9314 2017-09-14 Jakub Jelinek <jakub@redhat.com>
9317 * testsuite/libgomp.c++/pr81314.C: New test.
9319 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
9321 * libgomp.texi (Top): www.openacc.org now uses https.
9322 (Enabling OpenACC): Ditto.
9323 (acc_get_num_devices): Ditto.
9324 (acc_set_device_type): Ditto.
9325 (acc_get_device_type): Ditto.
9326 (acc_set_device_num): Ditto.
9327 (acc_get_device_num): Ditto.
9328 (acc_async_test): Ditto.
9329 (acc_async_test_all): Ditto.
9331 (acc_wait_all): Ditto.
9332 (acc_wait_all_async): Ditto.
9333 (acc_wait_async): Ditto.
9335 (acc_shutdown): Ditto.
9336 (acc_on_device): Ditto.
9337 (acc_malloc): Ditto.
9339 (acc_copyin): Ditto.
9340 (acc_present_or_copyin): Ditto.
9341 (acc_create): Ditto.
9342 (acc_present_or_create): Ditto.
9343 (acc_copyout): Ditto.
9344 (acc_delete): Ditto.
9345 (acc_update_device): Ditto.
9346 (acc_update_self): Ditto.
9347 (acc_map_data): Ditto.
9348 (acc_unmap_data): Ditto.
9349 (acc_deviceptr): Ditto.
9350 (acc_hostptr): Ditto.
9351 (acc_is_present): Ditto.
9352 (acc_memcpy_to_device): Ditto.
9353 (acc_memcpy_from_device): Ditto.
9354 (acc_get_current_cuda_device): Ditto.
9355 (acc_get_current_cuda_context): Ditto.
9356 (acc_get_cuda_stream): Ditto.
9357 (acc_set_cuda_stream): Ditto.
9358 (ACC_DEVICE_TYPE): Ditto.
9359 (ACC_DEVICE_NUM): Ditto.
9360 (OpenACC Library Interoperability): Ditto.
9362 2017-08-09 Jakub Jelinek <jakub@redhat.com>
9365 * testsuite/libgomp.c/pr81687-1.c: New test.
9366 * testsuite/libgomp.c/pr81687-2.c: New test.
9368 2017-08-07 Jakub Jelinek <jakub@redhat.com>
9371 * testsuite/libgomp.c/pr69389.c: New test.
9372 * testsuite/libgomp.c++/pr69389.C: New test.
9374 2017-08-07 Tom de Vries <tom@codesourcery.com>
9377 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
9378 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
9380 2017-07-27 Jakub Jelinek <jakub@redhat.com>
9383 * testsuite/libgomp.c/pr45784.c: New test.
9384 * testsuite/libgomp.c++/pr45784.C: New test.
9386 2017-07-19 Tom de Vries <tom@codesourcery.com>
9388 * testsuite/libgomp.oacc-c/vec.c: New test.
9390 2017-07-03 Tom de Vries <tom@codesourcery.com>
9392 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
9394 2017-06-27 Tom de Vries <tom@codesourcery.com>
9396 * plugin/plugin-nvptx.c (notify_var): New function.
9397 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
9399 2017-06-27 Tom de Vries <tom@codesourcery.com>
9401 * env.c (parse_unsigned_long_1): Factor out of ...
9402 (parse_unsigned_long): ... here.
9403 (parse_int_1): Factor out of ...
9404 (parse_int): ... here.
9405 (parse_int_secure): New function.
9406 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
9407 * secure_getenv.h: Factor out of ...
9408 * plugin/plugin-hsa.c: ... here.
9409 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
9411 2017-06-21 Jakub Jelinek <jakub@redhat.com>
9414 * testsuite/libgomp.c++/pr81130.C: New test.
9416 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9418 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
9420 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
9421 dg-xfail-run-if default args.
9423 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9425 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
9426 * testsuite/libgomp.c/pr39591-3.c: Likewise.
9428 2017-05-30 Jakub Jelinek <jakub@redhat.com>
9431 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
9432 (gomp_affinity_init_level): Use it. Always analyze the core and thread
9433 sibling lists, depending on level just pick up what CPUs to put
9434 together into a place vs. whether add multiple ordered places.
9436 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
9438 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
9439 * libgomp.map (OACC_2.0.1): Add these.
9440 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
9441 for "acc_wait", and "acc_wait_all", respectively.
9442 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
9443 for "acc_wait", and "acc_wait_all", respectively.
9444 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
9445 * libgomp.texi (acc_wait, acc_wait_all): Update.
9446 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
9447 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
9448 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9450 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
9451 acc_present_or_copyin and acc_present_or_create procedures,
9453 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
9454 generally different variants of OpenACC Runtime Library functions.
9455 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9457 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
9458 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9460 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
9461 of preprocessor definitions.
9462 * libgomp.h (strong_alias): Guard by "#ifdef
9463 HAVE_ATTRIBUTE_ALIAS".
9464 * oacc-mem.c: Provide "acc_pcreate" as alias for
9465 "acc_present_or_create", and "acc_pcopyin" as alias for
9466 "acc_present_or_copyin".
9467 * libgomp.map: New version "OACC_2.0.1".
9468 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
9469 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
9471 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
9474 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
9475 when disabling nvptx offloading.
9477 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
9479 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
9480 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
9481 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
9483 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
9484 * testsuite/lib/libgomp.exp
9485 (check_effective_target_openacc_nvidia_accel_configured): New
9487 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
9488 (check_effective_target_c++): New procs.
9489 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
9490 (check_effective_target_c++): Likewise.
9492 2017-05-22 Jakub Jelinek <jakub@redhat.com>
9495 * testsuite/libgomp.c/pr80809-2.c: New test.
9496 * testsuite/libgomp.c/pr80809-3.c: New test.
9499 * testsuite/libgomp.c/pr80809-1.c: New test.
9502 * testsuite/libgomp.c/pr80853.c: New test.
9504 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
9506 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
9507 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
9508 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9509 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9510 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
9512 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
9513 Debug output for failure.
9515 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9517 * testsuite/lib/libgomp.exp: Load scanlang.exp.
9519 2017-04-27 Jakub Jelinek <jakub@redhat.com>
9522 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
9523 bootstrap compare failures.
9525 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
9527 * testsuite/libgomp.c/target-36.c: New testcase.
9529 2017-04-13 Jakub Jelinek <jakub@redhat.com>
9531 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
9534 2017-04-11 Jakub Jelinek <jakub@redhat.com>
9537 * testsuite/libgomp.c/pr80394.c: New test.
9539 2017-04-04 Jakub Jelinek <jakub@redhat.com>
9542 * config/posix/thread-stacksize.h: New file.
9543 * config/darwin/thread-stacksize.h: New file.
9544 * config/nvptx/thread-stacksize.h: New file.
9545 * env.c: Include thread-stacksize.h.
9546 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
9547 instead of 0. Call pthread_attr_setstacksize even if
9548 GOMP_DEFAULT_STACKSIZE is non-zero.
9550 2017-03-30 Jakub Jelinek <jakub@redhat.com>
9552 * env.c (initialize_env): Initialize stacksize to 0.
9554 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
9557 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
9559 2017-03-08 Jakub Jelinek <jakub@redhat.com>
9562 * testsuite/libgomp.c/pr79940.c: New test.
9564 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9566 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
9568 Add __float128 options.
9570 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
9572 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
9573 hppa*-*-* dg-skip-if directive.
9575 2017-02-09 Jakub Jelinek <jakub@redhat.com>
9577 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
9578 dg-skip-if directive into a comment.
9580 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
9581 Chung-Lin Tang <cltang@codesourcery.com>
9583 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
9584 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
9585 add additional case.
9586 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
9587 "openacc_nvidia_accel_selected".
9588 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
9589 Add num_workers(8) clause.
9591 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
9593 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
9595 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
9596 include complex.h on hppa*-*-hpux*.
9597 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
9599 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
9601 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
9603 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
9604 GOMP_OFFLOAD_openacc_exec. Adjust all users.
9605 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
9606 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
9607 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
9608 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
9609 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
9610 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
9611 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
9612 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
9614 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
9616 * libgomp-plugin.h: #include <stdbool.h>.
9617 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
9618 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
9619 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
9620 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
9621 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
9622 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
9623 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
9624 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
9625 (GOMP_OFFLOAD_openacc_register_async_cleanup)
9626 (GOMP_OFFLOAD_openacc_async_test)
9627 (GOMP_OFFLOAD_openacc_async_test_all)
9628 (GOMP_OFFLOAD_openacc_async_wait)
9629 (GOMP_OFFLOAD_openacc_async_wait_async)
9630 (GOMP_OFFLOAD_openacc_async_wait_all)
9631 (GOMP_OFFLOAD_openacc_async_wait_all_async)
9632 (GOMP_OFFLOAD_openacc_async_set_async)
9633 (GOMP_OFFLOAD_openacc_create_thread_data)
9634 (GOMP_OFFLOAD_openacc_destroy_thread_data)
9635 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
9636 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
9637 (GOMP_OFFLOAD_openacc_get_cuda_stream)
9638 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
9639 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
9641 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
9642 (GOMP_OFFLOAD_unload_image): Fix argument types.
9644 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9646 * testsuite/lib/libgomp.exp
9647 (check_effective_target_hsa_offloading_selected_nocache): Fix up
9648 check_compile invocation. Fix up removal of executable. Drop
9649 bogus "2>&1" argument.
9651 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
9654 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
9655 Martin Jambor <mjambor@suse.cz>
9657 * plugin/hsa.h: Moved to top level include.
9658 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
9660 2017-01-21 Jakub Jelinek <jakub@redhat.com>
9663 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
9664 of cat to get version from BASE-VER file.
9665 * testsuite/Makefile.in: Regenerated.
9667 2017-01-19 Jakub Jelinek <jakub@redhat.com>
9669 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
9672 2017-01-17 Jakub Jelinek <jakub@redhat.com>
9674 * plugin/hsa.h: Add GCC runtime library exception.
9675 * plugin/hsa_ext_finalize.h: Likewise.
9677 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
9678 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
9679 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
9680 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
9681 plugin/include/cuda as include dir and -ldl instead of -lcuda as
9682 library to link ptx plugin against.
9683 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
9684 (CUDA_CALLS): Define.
9685 (cuda_lib, cuda_lib_inited): New variables.
9686 (init_cuda_lib): New function.
9687 (CUDA_CALL_PREFIX): Define.
9688 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
9689 (CUDA_CALL): Use FN instead of (FN).
9690 (CUDA_CALL_NOCHECK): Define.
9691 (cuda_error, fini_streams_for_device, select_stream_for_async,
9692 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
9693 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
9694 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
9695 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
9697 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
9699 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
9700 Use CUDA_CALL_NOCHECK.
9701 * plugin/cuda/cuda.h: New file.
9702 * config.h.in: Regenerated.
9703 * configure: Regenerated.
9706 * configure.ac: Add GCC_BASE_VER.
9707 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
9708 get version from BASE-VER file.
9709 * testsuite/Makefile.in: Regenerated.
9710 * configure: Regenerated.
9711 * Makefile.in: Regenerated.
9713 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9716 * Makefile.am: Make fincludedir multilib-aware.
9717 * Makefile.in: Regenerate.
9719 2017-01-01 Jakub Jelinek <jakub@redhat.com>
9721 Update copyright years.
9723 * libgomp.texi: Bump @copying's copyright year.
9725 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
9727 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
9728 pthread_spinlock_t instead of gomp_mutex_t lock.
9729 (gomp_get_thread_pool): Likewise.
9730 (gomp_release_thread_pool): Likewise.
9731 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
9734 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
9736 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
9737 thread pool in case nthreads == 1.
9739 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9741 * config/nvptx/env.c: Delete.
9742 * icv.c: Move definitions of ICV variables back ...
9743 * env.c: ...here. Do not compile environment-related functionality if
9744 LIBGOMP_OFFLOADED_ONLY is set.
9746 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9748 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
9749 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
9750 * configure: Regenerate.
9751 * config.h.in: Likewise.
9753 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9755 * Makefile.in: Regenerate with automake-1.11.6.
9756 * aclocal.m4: Likewise.
9757 * configure: Likewise.
9758 * testsuite/Makefile.in: Likewise.
9760 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
9762 * config/nvptx/critical.c: Delete to use generic implementation.
9764 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
9766 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
9767 ../../affinity.c as fallback.
9768 * config/nvptx/affinity.c: Delete to use fallback implementation.
9770 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
9771 Jakub Jelinek <jakub@redhat.com>
9772 Dmitry Melnik <dm@ispras.ru>
9774 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
9775 * Makefile.in. Regenerate.
9776 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
9777 (LIBGOMP_USE_PTHREADS): ...here; new define.
9778 * configure: Regenerate.
9779 * config.h.in: Likewise.
9780 * config/posix/affinity.c: Move to...
9781 * affinity.c: ...here (new file). Guard use of Pthreads-specific
9782 interface by LIBGOMP_USE_PTHREADS.
9783 * critical.c: Split out GOMP_atomic_{start,end} into...
9784 * atomic.c: ...here (new file).
9785 * env.c: Split out ICV definitions into...
9786 * icv.c: ...here (new file) and...
9787 * icv-device.c: ...here. New file.
9788 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
9789 (gomp_destroy_lock_30): Ditto.
9790 (gomp_set_lock_30): Ditto.
9791 (gomp_unset_lock_30): Ditto.
9792 (gomp_test_lock_30): Ditto.
9793 (gomp_init_nest_lock_30): Ditto.
9794 (gomp_destroy_nest_lock_30): Ditto.
9795 (gomp_set_nest_lock_30): Ditto.
9796 (gomp_unset_nest_lock_30): Ditto.
9797 (gomp_test_nest_lock_30): Ditto.
9799 * config/nvptx/lock.c: New.
9800 * config/nvptx/bar.c: New.
9801 * config/nvptx/bar.h: New.
9802 * config/nvptx/doacross.h: New.
9803 * config/nvptx/error.c: New.
9804 * config/nvptx/icv-device.c: New.
9805 * config/nvptx/mutex.h: New.
9806 * config/nvptx/pool.h: New.
9807 * config/nvptx/proc.c: New.
9808 * config/nvptx/ptrlock.h: New.
9809 * config/nvptx/sem.h: New.
9810 * config/nvptx/simple-bar.h: New.
9811 * config/nvptx/target.c: New.
9812 * config/nvptx/task.c: New.
9813 * config/nvptx/team.c: New.
9814 * config/nvptx/time.c: New.
9815 * config/posix/simple-bar.h: New.
9816 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
9817 (gomp_num_teams_var): Declare.
9818 (struct gomp_thread_pool): Change threads_dock member to
9819 gomp_simple_barrier_t.
9820 [__nvptx__] (gomp_thread): New implementation.
9821 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
9822 (gomp_thread_destructor): Ditto.
9823 (gomp_init_thread_affinity): Ditto.
9824 * team.c: Guard uses of Pthreads-specific interfaces by
9825 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
9826 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
9827 * config/nvptx/alloc.c: Delete.
9828 * config/nvptx/barrier.c: Ditto.
9829 * config/nvptx/fortran.c: Ditto.
9830 * config/nvptx/iter.c: Ditto.
9831 * config/nvptx/iter_ull.c: Ditto.
9832 * config/nvptx/loop.c: Ditto.
9833 * config/nvptx/loop_ull.c: Ditto.
9834 * config/nvptx/ordered.c: Ditto.
9835 * config/nvptx/parallel.c: Ditto.
9836 * config/nvptx/priority_queue.c: Ditto.
9837 * config/nvptx/sections.c: Ditto.
9838 * config/nvptx/single.c: Ditto.
9839 * config/nvptx/splay-tree.c: Ditto.
9840 * config/nvptx/work.c: Ditto.
9841 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
9842 -foffload=-lgfortran in addition to -lgfortran.
9843 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
9844 * plugin/plugin-nvptx.c: Include <limits.h>.
9845 (struct targ_fn_descriptor): Add new fields.
9846 (struct ptx_device): Ditto. Set them...
9847 (nvptx_open_device): ...here.
9848 (nvptx_adjust_launch_bounds): New.
9849 (nvptx_host2dev): Allow NULL 'nvthd'.
9850 (nvptx_dev2host): Ditto.
9851 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
9852 (link_ptx): Adjust log sizes.
9853 (nvptx_host2dev): Allow NULL 'nvthd'.
9854 (nvptx_dev2host): Ditto.
9855 (nvptx_set_clocktick): New. Use it...
9856 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
9858 (GOMP_OFFLOAD_dev2dev): New.
9859 (nvptx_adjust_launch_bounds): New.
9860 (nvptx_stacks_size): New.
9861 (nvptx_stacks_alloc): New.
9862 (nvptx_stacks_free): New.
9863 (GOMP_OFFLOAD_run): New.
9864 (GOMP_OFFLOAD_async_run): New (stub).
9866 2016-11-23 Martin Jambor <mjambor@suse.cz>
9868 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
9869 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
9870 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
9872 2016-11-23 Martin Liska <mliska@suse.cz>
9873 Martin Jambor <mjambor@suse.cz>
9875 * plugin/hsa.h: New file.
9876 * plugin/hsa_ext_finalize.h: New file.
9877 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
9878 header file unistd.h, and functions secure_getenv, __secure_getenv,
9879 getuid, geteuid, getgid and getegid.
9880 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
9882 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
9883 Handle various cases of secure_getenv presence, add an implementation
9884 when we can test effective UID and GID.
9885 (struct hsa_runtime_fn_info): New structure.
9886 (hsa_runtime_fn_info hsa_fns): New variable.
9887 (hsa_runtime_lib): Likewise.
9888 (support_cpu_devices): Likewise.
9889 (init_enviroment_variables): Load newly introduced ENV
9891 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
9892 (hsa_fatal): Likewise.
9893 (DLSYM_FN): New macro.
9894 (init_hsa_runtime_functions): New function.
9895 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
9896 structure. Depending on environment, also allow CPU devices.
9897 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
9898 (get_kernarg_memory_region): Likewise.
9899 (GOMP_OFFLOAD_init_device): Likewise.
9900 (destroy_hsa_program): Likewise.
9901 (init_basic_kernel_info): New function.
9902 (GOMP_OFFLOAD_load_image): Use it.
9903 (create_and_finalize_hsa_program): Call hsa run-time functions via
9905 (create_single_kernel_dispatch): Likewise.
9906 (release_kernel_dispatch): Likewise.
9907 (init_single_kernel): Likewise.
9908 (parse_target_attributes): Allow up multiple HSA grid dimensions.
9909 (get_group_size): New function.
9910 (run_kernel): Likewise.
9911 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
9912 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
9914 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
9915 * testsuite/libgomp-test-support.exp.in: Likewise.
9916 * Makefile.in: Regenerated.
9917 * aclocal.m4: Likewise.
9918 * config.h.in: Likewise.
9919 * configure: Likewise.
9920 * testsuite/Makefile.in: Likewise.
9922 2016-11-15 Martin Jambor <mjambor@suse.cz>
9923 Alexander Monakov <amonakov@ispras.ru>
9925 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
9926 mapping clauses to target constructs.
9927 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
9929 2016-11-15 Matthias Klose <doko@ubuntu.com>
9931 * configure: Regenerate.
9933 2016-11-10 Jakub Jelinek <jakub@redhat.com>
9935 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
9936 * omp_lib.h.in (openmp_version): Likewise.
9937 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
9939 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9941 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
9942 (fib_wrapper): Add map(from: x) clause.
9943 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
9945 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
9946 (accum): Add map(tmp) clause.
9947 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
9948 (accum): Add map(tofrom: tmp) clause.
9949 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
9950 (gramSchmidt): Likewise.
9951 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
9952 map(tofrom: sum) clause.
9953 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
9954 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
9955 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
9956 only allowed on the loop iterator.
9957 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
9958 * testsuite/libgomp.fortran/taskloop2.f90: New test.
9959 * testsuite/libgomp.fortran/taskloop4.f90: New test.
9960 * testsuite/libgomp.fortran/doacross1.f90: New test.
9961 * testsuite/libgomp.fortran/doacross3.f90: New test.
9962 * testsuite/libgomp.fortran/taskloop1.f90: New test.
9963 * testsuite/libgomp.fortran/taskloop3.f90: New test.
9964 * testsuite/libgomp.fortran/doacross2.f90: New test.
9965 * testsuite/libgomp.c/doacross-1.c (main): Add missing
9966 #pragma omp atomic read.
9967 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
9968 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
9970 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
9971 Nathan Sidwell <nathan@acm.org>
9973 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
9974 to determine default geometry.
9975 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
9978 2016-11-01 Jakub Jelinek <jakub@redhat.com>
9980 * hashtab.h: Use standard GPLv3 with runtime exception
9983 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
9985 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
9986 size when allocating new thread.
9988 2016-09-14 Marek Polacek <polacek@redhat.com>
9990 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
9992 2016-08-19 Jakub Jelinek <jakub@redhat.com>
9995 * testsuite/libgomp.fortran/pr71014.f90: New test.
9997 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
10000 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
10001 firstprivate clauses.
10002 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
10004 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10005 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
10006 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
10007 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
10008 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
10009 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
10010 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10011 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
10012 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10013 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10014 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10015 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
10017 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
10020 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
10022 2016-08-08 Jakub Jelinek <jakub@redhat.com>
10025 * testsuite/libgomp.c++/pr58706.C: New test.
10027 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
10029 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
10030 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
10031 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10033 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
10034 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
10036 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
10038 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
10039 test, and don't hardcode -O0.
10041 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
10043 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
10045 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
10047 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
10050 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
10052 PR middle-end/71734
10053 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
10054 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
10056 2016-07-01 Jakub Jelinek <jakub@redhat.com>
10059 * testsuite/libgomp.fortran/associate3.f90: New test.
10061 2016-06-17 Jakub Jelinek <jakub@redhat.com>
10063 * testsuite/libgomp.c++/target-21.C: New test.
10065 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10067 * testsuite/libgomp.c++/target-20.C: New test.
10069 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10070 Cesar Philippidis <cesar@codesourcery.com>
10072 PR middle-end/71373
10073 * libgomp.oacc-c/nested-function-1.c: New file.
10074 * libgomp.oacc-c/nested-function-2.c: Likewise.
10075 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10076 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10077 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10079 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10082 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
10083 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
10084 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
10086 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
10088 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
10089 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
10091 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
10094 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
10096 2016-05-26 Jakub Jelinek <jakub@redhat.com>
10098 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
10099 instead of invalid schedule(static, 0).
10100 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
10102 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10104 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
10105 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
10106 parameter, use to set async stream around call to gomp_unmap_vars,
10107 call gomp_unmap_vars() with 'do_copyfrom' set to true.
10108 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
10109 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
10110 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
10111 (event_add): Add int parameter, initialize 'val' field when
10112 adding new ptx_event struct.
10113 (nvptx_evec): Adjust event_add() call arguments.
10114 (nvptx_host2dev): Likewise.
10115 (nvptx_dev2host): Likewise.
10116 (nvptx_wait_async): Likewise.
10117 (nvptx_wait_all_async): Likewise.
10118 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
10119 pass to event_add() call.
10120 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
10122 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
10123 call openacc.register_async_cleanup_func() hook.
10124 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
10125 * target.c (gomp_copy_from_async): Delete function.
10126 (gomp_map_vars): Remove async_refcount.
10127 (gomp_unmap_vars): Likewise.
10128 (gomp_load_image_to_device): Likewise.
10129 (omp_target_associate_ptr): Likewise.
10130 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
10131 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
10132 (gomp_copy_from_async): Remove.
10134 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10136 * target.c (gomp_device_copy): New function.
10137 (gomp_copy_host2dev): Likewise.
10138 (gomp_copy_dev2host): Likewise.
10139 (gomp_free_device_memory): Likewise.
10140 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
10141 (gomp_map_pointer): Likewise.
10142 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
10143 NULL value from alloc_func plugin hook.
10144 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
10145 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
10146 (gomp_unmap_vars): Likewise.
10147 (gomp_update): Adjust to call gomp_copy_dev2host and
10148 gomp_copy_host2dev functions.
10149 (gomp_unload_image_from_device): Handle false value from
10150 unload_image_func plugin hook.
10151 (gomp_init_device): Handle false value from init_device_func
10153 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
10154 (omp_target_free): Adjust to call gomp_free_device_memory.
10155 (omp_target_memcpy): Handle return values from host2dev_func,
10156 dev2host_func, and dev2dev_func plugin hooks.
10157 (omp_target_memcpy_rect_worker): Likewise.
10158 (gomp_target_fini): Handle false value from fini_device_func
10160 * libgomp.h (struct gomp_device_descr): Adjust return type of
10161 init_device_func, fini_device_func, unload_image_func, free_func,
10162 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
10163 * oacc-init.c (acc_shutdown_1): Handle false value from
10164 fini_device_func plugin hook.
10165 * oacc-host.c (host_init_device): Change return type to bool.
10166 (host_fini_device): Likewise.
10167 (host_unload_image): Likewise.
10168 (host_free): Likewise.
10169 (host_dev2host): Likewise.
10170 (host_host2dev): Likewise.
10171 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
10172 (acc_memcpy_to_device): Likewise.
10173 (acc_memcpy_from_device): Likewise.
10174 (delete_copyout): Add libfnname parameter, handle free_func
10175 hook fatal error case.
10176 (acc_delete): Adjust delete_copyout call.
10177 (acc_copyout): Likewise.
10178 (update_dev_host): Move gomp_mutex_unlock to after
10179 host2dev/dev2host hook calls.
10181 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
10182 to 'hsa_error_msg', for clarity.
10183 (hsa_fatal): Likewise.
10184 (hsa_error): New function.
10185 (init_hsa_context): Change return type to bool, adjust to return
10187 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
10189 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
10190 return false on error.
10191 (get_agent_info): Adjust to return NULL on error.
10192 (destroy_hsa_program): Change return type to bool, adjust to
10193 return false on error.
10194 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
10195 (destroy_module): Change return type to bool, adjust to
10196 return false on error.
10197 (GOMP_OFFLOAD_unload_image): Likewise.
10198 (GOMP_OFFLOAD_fini_device): Likewise.
10199 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
10200 (GOMP_OFFLOAD_free): Change to return false when called.
10201 (GOMP_OFFLOAD_dev2host): Likewise.
10202 (GOMP_OFFLOAD_host2dev): Likewise.
10203 (GOMP_OFFLOAD_dev2dev): Likewise.
10205 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
10206 (CUDA_CALL): Likewise.
10207 (CUDA_CALL_ASSERT): Likewise.
10208 (map_init): Change return type to bool, use CUDA_CALL* macros.
10209 (map_fini): Likewise.
10210 (init_streams_for_device): Change return type to bool, adjust
10212 (fini_streams_for_device): Change return type to bool, adjust
10214 (select_stream_for_async): Release stream_lock before calls to
10215 GOMP_PLUGIN_fatal, adjust call to map_init.
10216 (nvptx_init): Use CUDA_CALL* macros.
10217 (nvptx_attach_host_thread_to_device): Change return type to bool,
10218 use CUDA_CALL* macros.
10219 (nvptx_open_device): Use CUDA_CALL* macros.
10220 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
10222 (nvptx_get_num_devices): Use CUDA_CALL* macros.
10223 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
10224 (nvptx_exec): Use CUDA_CALL* macros.
10225 (nvptx_alloc): Use CUDA_CALL* macros.
10226 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
10227 (nvptx_host2dev): Likewise.
10228 (nvptx_dev2host): Likewise.
10229 (nvptx_wait): Use CUDA_CALL* macros.
10230 (nvptx_wait_async): Likewise.
10231 (nvptx_wait_all): Likewise.
10232 (nvptx_wait_all_async): Likewise.
10233 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
10234 use CUDA_CALL* macros, adjust call to map_fini.
10235 (GOMP_OFFLOAD_init_device): Change return type to bool,
10236 adjust code accordingly.
10237 (GOMP_OFFLOAD_fini_device): Likewise.
10238 (GOMP_OFFLOAD_load_image): Adjust calls to
10239 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
10240 use CUDA_CALL* macros.
10241 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
10243 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
10244 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
10245 handle error return.
10246 (GOMP_OFFLOAD_dev2host): Likewise.
10247 (GOMP_OFFLOAD_host2dev): Likewise.
10248 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
10249 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
10251 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
10253 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
10254 (acc_free): Likewise.
10255 (acc_memcpy_to_device): Likewise.
10256 (acc_memcpy_from_device): Likewise.
10257 (acc_deviceptr): Likewise.
10258 (acc_hostptr): Likewise.
10259 (acc_is_present): Likewise.
10260 (acc_map_data): Likewise.
10261 (acc_unmap_data): Likewise.
10262 (present_create_copy): Likewise.
10263 (delete_copyout): Likewise.
10264 (update_dev_host): Likewise.
10265 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
10266 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
10267 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
10268 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10269 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
10270 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
10271 it only runs on nvptx targets.
10272 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10273 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
10274 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10275 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10276 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10277 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10278 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10279 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10280 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10281 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
10282 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10283 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10284 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10285 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10286 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10287 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10288 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10289 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10290 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10291 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10292 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10293 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10294 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10296 2016-05-23 Martin Jambor <mjambor@suse.cz>
10298 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
10300 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
10302 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
10303 to gomp_init_targets_once.
10304 (acc_set_device_type): Remove !cached_base_dev condition on call to
10305 gomp_init_targets_once, move call to before acc_device_lock acquire,
10307 (acc_get_device_num): Remove !cached_base_dev condition on call to
10308 gomp_init_targets_once.
10309 (acc_set_device_num): Likewise.
10311 2016-05-16 Martin Jambor <mjambor@suse.cz>
10313 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
10315 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
10317 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
10318 expected partitioning.
10320 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
10322 PR middle-end/70626
10323 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
10324 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
10325 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
10327 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
10329 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
10332 2016-04-19 Jakub Jelinek <jakub@redhat.com>
10334 PR middle-end/70680
10335 * testsuite/libgomp.c/pr70680-1.c: New test.
10336 * testsuite/libgomp.c/pr70680-2.c: New test.
10338 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10340 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
10341 pass parameter variables to subroutines.
10343 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10345 PR middle-end/70643
10346 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
10348 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
10351 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
10352 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10354 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
10356 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
10357 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
10358 GOACC_declare prototype.
10360 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
10361 Merge this file, and...
10362 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
10363 ... this file, and...
10364 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
10365 ... this file, and...
10366 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
10367 ... this file, and...
10368 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
10369 ... this file, and...
10370 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
10371 ... this file, and...
10372 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
10373 ... this file, and...
10374 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
10375 ... this file, and...
10376 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
10377 ... this file, and...
10378 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
10379 ... this file, and...
10380 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
10381 ... this file, and...
10382 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
10383 ... this file, and...
10384 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
10385 ... this file into...
10386 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
10389 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
10390 Make failure observable.
10392 2016-04-12 Jakub Jelinek <jakub@redhat.com>
10394 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
10396 * target.c (gomp_target_fallback_firstprivate,
10397 gomp_target_unshare_firstprivate): Removed.
10398 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
10399 before waiting for dependencies.
10400 (gomp_target_task_fn): Don't copy firstprivate vars here.
10401 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
10402 firstprivate_copies here.
10403 (gomp_create_target_task): Don't initialize firstprivate_copies field.
10404 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
10405 explicit/implicit firstprivate.
10407 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
10411 PR tree-optimization/70373
10412 PR middle-end/70533
10413 PR middle-end/70534
10414 PR middle-end/70535
10415 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
10417 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
10419 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
10421 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
10423 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
10425 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
10427 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
10429 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
10431 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
10433 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
10434 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
10435 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
10436 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
10438 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
10440 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
10442 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
10444 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
10446 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
10447 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10448 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
10449 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
10450 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
10451 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
10453 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10454 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
10455 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
10456 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
10457 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
10458 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
10459 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
10460 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
10461 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
10462 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10463 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10464 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10465 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10466 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10467 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
10469 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
10470 James Norris <jnorris@codesourcery.com>
10471 Nathan Sidwell <nathan@codesourcery.com>
10472 Julian Brown <julian@codesourcery.com>
10473 Cesar Philippidis <cesar@codesourcery.com>
10474 Chung-Lin Tang <cltang@codesourcery.com>
10475 Tom de Vries <tom@codesourcery.com>
10477 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
10478 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
10479 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
10480 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
10481 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10482 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10483 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10484 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10485 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
10487 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
10489 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
10491 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
10492 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
10493 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
10494 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
10496 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
10498 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10499 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
10500 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
10501 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
10502 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10503 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10504 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10505 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10506 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10507 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
10509 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
10510 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10511 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
10513 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
10515 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
10517 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
10519 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
10521 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
10522 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
10523 ... this new file. Update.
10524 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
10525 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
10526 ... this new file. Update.
10527 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
10528 file. Incorporate...
10529 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
10531 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
10533 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
10535 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
10537 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
10539 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
10540 set-torture-options.
10542 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
10544 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
10546 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10547 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
10548 -fno-builtin-acc_on_device instead of -O0.
10549 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
10551 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
10552 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
10554 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
10555 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
10556 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
10557 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10558 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10559 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10560 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
10561 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10562 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
10563 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
10564 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
10565 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
10566 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
10567 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
10568 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
10569 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
10570 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
10571 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
10573 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
10575 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
10578 2016-03-24 Martin Liska <mliska@suse.cz>
10580 * plugin/plugin-hsa.c (packet_store_release): New function
10581 that is taken from the HSA runtime manual.
10582 (GOMP_OFFLOAD_run): Use the function.
10584 2016-03-23 Jakub Jelinek <jakub@redhat.com>
10587 * testsuite/libgomp.c++/pr70376.C: New test.
10589 2016-03-23 Tom de Vries <tom@codesourcery.com>
10591 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
10592 initialization of lresult and lvresult.
10593 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
10595 2016-03-23 James Norris <jnorris@codesourcery.com>
10596 Daichi Fukuoka <dc-fukuoka@sgi.com>
10599 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
10600 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
10601 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
10602 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
10604 2016-03-23 Martin Liska <mliska@suse.cz>
10607 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
10608 argument just in case a dispatched kernel uses that argument.
10610 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
10612 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
10613 -ftree-parallelize-loops/-fopenacc changes.
10614 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
10616 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10618 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
10620 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
10622 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10623 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10625 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
10627 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
10628 always_ld_library_path the path to libgcc_s.
10630 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
10633 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
10635 2016-03-09 Tom de Vries <tom@codesourcery.com>
10637 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
10638 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
10639 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10641 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
10642 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
10643 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
10644 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
10646 2016-03-07 Martin Jambor <mjambor@suse.cz>
10648 * testsuite/lib/libgomp.exp
10649 (check_effective_target_hsa_offloading_selected_nocache): New.
10650 (check_effective_target_hsa_offloading_selected): Likewise.
10651 * testsuite/libgomp.hsa.c/c.exp: Likewise.
10652 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
10653 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
10654 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
10655 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
10656 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
10657 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
10658 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
10659 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
10660 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
10661 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
10662 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
10663 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
10664 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
10665 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
10666 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
10667 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
10669 2016-03-07 Martin Jambor <mjambor@suse.cz>
10671 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
10672 non-shared memory accelerators.
10673 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
10674 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
10675 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
10676 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
10677 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10678 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10679 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10680 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10681 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10683 2016-03-07 Martin Jambor <mjambor@suse.cz>
10685 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
10688 2016-03-02 Jakub Jelinek <jakub@redhat.com>
10691 * testsuite/libgomp.c++/pr69555-1.C: New test.
10692 * testsuite/libgomp.c++/pr69555-2.C: New test.
10694 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
10695 Martin Jambor <mjambor@suse.cz>
10697 * testsuite/lib/libgomp.exp
10698 (check_effective_target_offload_device_shared_as): New proc.
10699 * testsuite/libgomp.c++/declare_target-1.C: New test.
10701 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
10704 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
10706 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
10708 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
10709 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
10711 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
10712 -ftree-parallelize-loops/-fopenacc changes.
10713 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
10714 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
10716 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
10718 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
10720 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
10722 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
10724 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
10726 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
10728 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
10729 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
10731 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
10732 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
10734 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
10735 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
10738 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
10740 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
10742 2016-02-19 Jakub Jelinek <jakub@redhat.com>
10745 * testsuite/libgomp.c/pr69805.c: New test.
10747 2016-02-16 Tom de Vries <tom@codesourcery.com>
10750 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
10752 2016-02-09 Tom de Vries <tom@codesourcery.com>
10754 PR tree-optimization/69599
10755 * testsuite/libgomp.c/omp-nested-3.c: New test.
10756 * testsuite/libgomp.c/pr46032-2.c: New test.
10757 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
10758 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
10760 2016-02-09 Tom de Vries <tom@codesourcery.com>
10763 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
10765 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10767 * testsuite/libgomp.c/target-31.c: Fix testcase.
10769 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10771 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
10773 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
10774 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
10775 reduction and map clauses.
10776 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10778 2016-02-02 James Norris <jnorris@codesourcery.com>
10780 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
10782 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
10784 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
10785 * oacc-parallel.c (GOACC_host_data): Remove function definition.
10787 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
10790 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
10792 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
10793 (hsa_kmt_lib): Set variables.
10794 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
10795 always_ld_library_path.
10796 * Makefile.in: Regenerate.
10797 * configure: Likewise.
10798 * testsuite/Makefile.in: Likewise.
10800 * plugin/configfrag.ac (offload_additional_options)
10801 (offload_additional_lib_paths): Don't amend for hsa offloading.
10802 * configure: Regenerate.
10804 * plugin/configfrag.ac: Don't configure for offloading target if
10805 we don't build the corresponding plugin.
10806 * configure: Regenerate.
10808 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
10810 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
10811 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
10813 2016-01-26 Tom de Vries <tom@codesourcery.com>
10815 PR tree-optimization/69110
10816 * testsuite/libgomp.c/pr69110.c: New test.
10818 2016-01-25 Richard Biener <rguenther@suse.de>
10821 * testsuite/libgomp.c++/pr69393.C: New testcase.
10823 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
10825 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
10826 function wasn't mapped to the device with non-shared memory.
10828 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
10830 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
10832 2016-01-19 Martin Jambor <mjambor@suse.cz>
10833 Martin Liska <mliska@suse.cz>
10835 * plugin/Makefrag.am: Add HSA plugin requirements.
10836 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
10837 (HSA_RUNTIME_LIB): Likewise.
10838 (HSA_RUNTIME_CPPFLAGS): Likewise.
10839 (HSA_RUNTIME_INCLUDE): New substitution.
10840 (HSA_RUNTIME_LIB): Likewise.
10841 (HSA_RUNTIME_LDFLAGS): Likewise.
10842 (hsa-runtime): New configure option.
10843 (hsa-runtime-include): Likewise.
10844 (hsa-runtime-lib): Likewise.
10845 (PLUGIN_HSA): New substitution variable.
10846 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
10848 (PLUGIN_HSA_CPPFLAGS): Likewise.
10849 (PLUGIN_HSA_LDFLAGS): Likewise.
10850 (PLUGIN_HSA_LIBS): Likewise.
10851 Check that we have access to HSA run-time.
10852 * libgomp-plugin.h (offload_target_type): New element
10853 OFFLOAD_TARGET_TYPE_HSA.
10854 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
10856 (bool gomp_create_target_task): Updated.
10857 (gomp_device_descr): Extra parameter of run_func and async_run_func,
10858 new field can_run_func.
10859 * libgomp_g.h (GOMP_target_ext): Update prototype.
10860 * oacc-host.c (host_run): Added a new parameter args.
10861 * target.c (calculate_firstprivate_requirements): New function.
10862 (copy_firstprivate_data): Likewise.
10863 (gomp_target_fallback_firstprivate): Use them.
10864 (gomp_target_unshare_firstprivate): New function.
10865 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
10867 (GOMP_target): Do host fallback for all shared memory devices. Do not
10868 pass any args to plugins.
10869 (GOMP_target_ext): Introduce device-specific argument parameter args.
10870 Allow host fallback if device shares memory. Do not remap data if
10871 device has shared memory.
10872 (gomp_target_task_fn): Likewise. Also treat shared memory devices
10873 like host fallback for mappings.
10874 (GOMP_target_data): Treat shared memory devices like host fallback.
10875 (GOMP_target_data_ext): Likewise.
10876 (GOMP_target_update): Likewise.
10877 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
10878 gomp_create_target_task.
10879 (GOMP_target_enter_exit_data): Likewise.
10880 (omp_target_alloc): Treat shared memory devices like host fallback.
10881 (omp_target_free): Likewise.
10882 (omp_target_is_present): Likewise.
10883 (omp_target_memcpy): Likewise.
10884 (omp_target_memcpy_rect): Likewise.
10885 (omp_target_associate_ptr): Likewise.
10886 (gomp_load_plugin_for_device): Also load can_run.
10887 * task.c (GOMP_PLUGIN_target_task_completion): Free
10888 firstprivate_copies.
10889 (gomp_create_target_task): Accept new argument args and store it to
10891 * plugin/plugin-hsa.c: New file.
10893 2016-01-18 Tom de Vries <tom@codesourcery.com>
10895 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
10896 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
10897 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
10898 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
10899 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
10900 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
10901 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
10902 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
10903 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
10904 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
10905 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10907 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10909 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
10910 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
10911 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
10912 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
10913 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
10914 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
10915 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
10916 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10918 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
10920 2016-01-15 Jakub Jelinek <jakub@redhat.com>
10922 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
10924 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
10926 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
10928 2016-01-12 James Norris <jnorris@codesourcery.com>
10930 * libgomp.texi: Updates for OpenACC.
10932 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
10934 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
10936 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
10939 * testsuite/libgomp.fortran/pr66680.f90: New test.
10941 2016-01-07 Jakub Jelinek <jakub@redhat.com>
10943 PR middle-end/68960
10944 * testsuite/libgomp.c/pr68960.c: New test.
10946 2016-01-06 Nathan Sidwell <nathan@acm.org>
10948 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
10949 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
10951 2016-01-04 Jakub Jelinek <jakub@redhat.com>
10953 Update copyright years.
10955 * libgomp.texi: Bump @copying's copyright year.
10957 2015-12-31 Nathan Sidwell <nathan@acm.org>
10959 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
10960 dg-additional-options syntax.
10961 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
10962 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
10963 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
10964 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10965 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
10966 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
10967 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
10968 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
10969 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
10970 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
10971 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10972 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
10973 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
10974 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
10975 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
10976 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
10977 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10978 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10980 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
10982 * libgomp.h (REFCOUNT_LINK): Define.
10983 (struct splay_tree_key_s): Add link_key.
10984 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
10985 Replace target address of the pointer with target address of newly
10986 mapped object in the splay tree. Set link pointer on target to the
10987 device address of the mapped object.
10988 (gomp_unmap_vars): Restore target address of the pointer in the splay
10989 tree for REFCOUNT_LINK objects after unmapping.
10990 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
10991 declare target link" objects.
10992 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
10993 "omp declare target link" objects, which were mapped for the image.
10994 (gomp_exit_data): Restore target address of the pointer in the splay
10995 tree for REFCOUNT_LINK objects after unmapping.
10996 * testsuite/libgomp.c/target-link-1.c: New file.
10998 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
11000 * libgomp.h (gomp_device_state): New enum.
11001 (struct gomp_device_descr): Replace is_initialized with state.
11002 (gomp_fini_device): Remove declaration.
11003 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
11004 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
11005 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
11006 (acc_set_device_type): Use state instead of is_initialized.
11007 (acc_set_device_num): Likewise.
11008 * target.c (resolve_device): Use state instead of is_initialized.
11009 Do not initialize finalized device.
11010 (gomp_map_vars): Do nothing if device is finalized.
11011 (gomp_unmap_vars): Likewise.
11012 (gomp_update): Likewise.
11013 (GOMP_offload_register_ver): Use state instead of is_initialized.
11014 (GOMP_offload_unregister_ver): Likewise.
11015 (gomp_init_device): Likewise.
11016 (gomp_unload_device): Likewise.
11017 (gomp_fini_device): Remove.
11018 (gomp_get_target_fn_addr): Do nothing if device is finalized.
11019 (GOMP_target): Go to host fallback if device is finalized.
11020 (GOMP_target_ext): Likewise.
11021 (gomp_exit_data): Do nothing if device is finalized.
11022 (gomp_target_task_fn): Go to host fallback if device is finalized.
11023 (gomp_target_fini): New static function.
11024 (gomp_target_init): Use state instead of is_initialized.
11025 Call gomp_target_fini at exit.
11027 2015-12-09 Tom de Vries <tom@codesourcery.com>
11029 PR tree-optimization/68716
11030 * testsuite/libgomp.c/omp-nested-2.c: New test.
11032 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
11034 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
11035 target openacc_nvidia_accel_selected.
11036 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
11037 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
11038 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
11039 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
11041 2015-12-01 Julian Brown <julian@codesourcery.com>
11042 James Norris <James_Norris@mentor.com>
11044 * oacc-parallel.c (GOACC_host_data): New function.
11045 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
11046 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
11047 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
11048 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
11049 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
11050 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
11051 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
11053 2015-11-30 James Norris <jnorris@codesourcery.com>
11054 Cesar Philippidis <cesar@codesourcery.com>
11057 * libgomp.oacc-fortran/routine-5.f90: New test.
11058 * libgomp.oacc-fortran/routine-7.f90: New test.
11059 * libgomp.oacc-fortran/routine-9.f90: New test.
11061 2015-11-30 Tom de Vries <tom@codesourcery.com>
11063 PR tree-optimization/46032
11064 * testsuite/libgomp.c/pr46032.c: New test.
11066 2015-11-27 Jakub Jelinek <jakub@redhat.com>
11069 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
11070 (gomp_create_target_task): Call it before freeing
11071 GOMP_TARGET_TASK_DATA tasks.
11074 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
11075 in between case label and OpenMP standalone directives.
11076 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
11078 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
11080 * configure: Regenerate.
11082 2015-11-26 Jakub Jelinek <jakub@redhat.com>
11084 * testsuite/libgomp.c/target-35.c: New test.
11086 2015-11-22 James Norris <jnorris@codesourcery.com>
11087 Cesar Philippidis <cesar@codesourcery.com>
11089 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
11090 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11091 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11092 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11093 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11095 2015-11-20 Jakub Jelinek <jakub@redhat.com>
11097 PR middle-end/68221
11098 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
11099 * testsuite/libgomp.c/reduction-12.c: Likewise.
11100 * testsuite/libgomp.c++/reduction-11.C: Likewise.
11101 * testsuite/libgomp.c++/reduction-12.C: Likewise.
11103 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
11105 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
11106 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
11107 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
11108 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
11109 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
11111 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11112 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11114 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
11116 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
11117 worker & gang cases.
11118 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11120 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
11122 * config/nvptx/priority_queue.c: New file.
11124 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11126 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
11129 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11130 Aldy Hernandez <aldyh@redhat.com>
11131 Ilya Verbin <ilya.verbin@intel.com>
11133 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
11134 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
11135 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
11136 iterators or IV by chunk size.
11137 * parallel.c (gomp_resolve_num_threads): Don't assume that
11138 if thr->ts.team is non-NULL, then pool must be non-NULL.
11139 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
11140 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
11141 GOMP_PLUGIN_target_task_completion.
11142 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
11143 * Makefile.in: Regenerate.
11144 * libgomp.h: Shuffle prototypes and forward definitions around so
11145 priority queues can be defined.
11146 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
11147 (enum gomp_target_task_state): New enum.
11148 (struct gomp_target_task): Add state, tgt, task and team fields.
11149 (gomp_create_target_task): Change return type to bool, add
11151 (gomp_target_task_fn): Change return type to bool.
11152 (struct gomp_device_descr): Add async_run_func.
11153 (struct gomp_task): Remove children, next_child, prev_child,
11154 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
11156 (struct gomp_taskgroup): Remove children.
11157 Add taskgroup_queue.
11158 (struct gomp_team): Change task_queue type to a priority queue.
11159 (splay_compare): Define inline.
11160 (priority_queue_offset): New.
11161 (priority_node_to_task): New.
11162 (task_to_priority_node): New.
11163 * oacc-mem.c: Do not include splay-tree.h.
11164 * priority_queue.c: New file.
11165 * priority_queue.h: New file.
11166 * splay-tree.c: Do not include splay-tree.h.
11167 (splay_tree_foreach_internal): New.
11168 (splay_tree_foreach): New.
11169 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
11170 (splay_tree_callback): Define typedef.
11171 * target.c (splay_compare): Move to libgomp.h.
11172 (GOMP_target): Don't adjust *thr in any way around running offloaded
11174 (GOMP_target_ext): Likewise. Handle target nowait.
11175 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
11176 return value from gomp_create_target_task, if false, fallthrough
11177 as if no dependencies exist.
11178 (gomp_target_task_fn): Change return type to bool, return true
11179 if the task should have another part scheduled later. Handle
11181 (gomp_load_plugin_for_device): Initialize async_run.
11182 * task.c (gomp_init_task): Initialize children_queue.
11183 (gomp_clear_parent_in_list): New.
11184 (gomp_clear_parent_in_tree): New.
11185 (gomp_clear_parent): Handle priorities.
11186 (GOMP_task): Likewise.
11187 (priority_queue_move_task_first,
11188 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
11190 (gomp_create_target_task): Use priority queues. Change return type
11191 to bool, add state argument, return false if for async
11192 {{enter,exit} data,update} constructs no dependencies need to be
11193 waited for, handle target nowait. Set task->fn to NULL instead of
11194 gomp_target_task_fn.
11195 (verify_children_queue): Remove.
11196 (priority_list_upgrade_task): New.
11197 (priority_queue_upgrade_task): New.
11198 (verify_task_queue): Remove.
11199 (priority_list_downgrade_task): New.
11200 (priority_queue_downgrade_task): New.
11201 (gomp_task_run_pre): Use priority queues.
11202 Abstract code out to priority_queue_downgrade_task.
11203 (gomp_task_run_post_handle_dependers): Use priority queues.
11204 (gomp_task_run_post_remove_parent): Likewise.
11205 (gomp_task_run_post_remove_taskgroup): Likewise.
11206 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
11208 (GOMP_taskwait): Likewise.
11209 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
11210 priority-queue_upgrade_task.
11211 (GOMP_taskgroup_start): Use priority queues.
11212 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
11213 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
11215 * taskloop.c (GOMP_taskloop): Handle priorities.
11216 * team.c (gomp_new_team): Call priority_queue_init.
11217 (free_team): Call priority_queue_free.
11218 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
11219 team created for target nowait in implicit parallel region.
11220 (gomp_team_start): For nested check, test thr->ts.level instead of
11221 thr->ts.team != NULL.
11222 * testsuite/libgomp.c/doacross-3.c: New test.
11223 * testsuite/libgomp.c/ordered-5.c: New test.
11224 * testsuite/libgomp.c/priority.c: New test.
11225 * testsuite/libgomp.c/target-31.c: New test.
11226 * testsuite/libgomp.c/target-32.c: New test.
11227 * testsuite/libgomp.c/target-33.c: New test.
11228 * testsuite/libgomp.c/target-34.c: New test.
11230 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11232 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
11234 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
11235 loop is sequential.
11237 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11239 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
11240 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
11242 2015-11-12 James Norris <jnorris@codesourcery.com>
11243 Joseph Myers <joseph@codesourcery.com>
11245 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
11246 * oacc-parallel.c (GOACC_declare): New function.
11247 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
11248 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
11249 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
11250 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
11251 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
11253 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
11255 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
11257 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
11259 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
11260 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
11262 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11264 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
11265 inadvertent commit.
11267 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11269 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
11270 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
11271 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
11272 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
11273 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
11275 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
11277 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
11278 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11280 2015-11-05 Jakub Jelinek <jakub@redhat.com>
11281 Ilya Verbin <ilya.verbin@intel.com>
11283 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
11284 GOMP_loop_nonmonotonic_dynamic_start,
11285 GOMP_loop_nonmonotonic_guided_next,
11286 GOMP_loop_nonmonotonic_guided_start,
11287 GOMP_loop_ull_nonmonotonic_dynamic_next,
11288 GOMP_loop_ull_nonmonotonic_dynamic_start,
11289 GOMP_loop_ull_nonmonotonic_guided_next,
11290 GOMP_loop_ull_nonmonotonic_guided_start,
11291 GOMP_parallel_loop_nonmonotonic_dynamic,
11292 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
11293 (GOMP_target_41): Renamed to ...
11294 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11296 (GOMP_target_data_41): Renamed to ...
11297 (GOMP_target_data_ext): ... this.
11298 (GOMP_target_update_41): Renamed to ...
11299 (GOMP_target_update_ext): ... this.
11300 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
11301 GOMP_target_data_ext and GOMP_target_update_ext instead of
11302 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
11303 Export GOMP_loop_nonmonotonic_dynamic_next,
11304 GOMP_loop_nonmonotonic_dynamic_start,
11305 GOMP_loop_nonmonotonic_guided_next,
11306 GOMP_loop_nonmonotonic_guided_start,
11307 GOMP_loop_ull_nonmonotonic_dynamic_next,
11308 GOMP_loop_ull_nonmonotonic_dynamic_start,
11309 GOMP_loop_ull_nonmonotonic_guided_next,
11310 GOMP_loop_ull_nonmonotonic_guided_start,
11311 GOMP_parallel_loop_nonmonotonic_dynamic and
11312 GOMP_parallel_loop_nonmonotonic_guided.
11313 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
11314 GOMP_parallel_loop_nonmonotonic_guided,
11315 GOMP_loop_nonmonotonic_dynamic_start,
11316 GOMP_loop_nonmonotonic_guided_start,
11317 GOMP_loop_nonmonotonic_dynamic_next,
11318 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
11319 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
11320 GOMP_loop_ull_nonmonotonic_guided_start,
11321 GOMP_loop_ull_nonmonotonic_dynamic_next,
11322 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
11323 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
11325 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
11326 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
11327 Use gomp_map_val function.
11328 (gomp_target_fallback_firstprivate): New static function.
11329 (GOMP_target_41): Renamed to ...
11330 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11331 arguments. Move firstprivate fallback handling into a new
11333 (GOMP_target_data_41): Renamed to ...
11334 (GOMP_target_data_ext): ... this.
11335 (GOMP_target_update_41): Renamed to ...
11336 (GOMP_target_update_ext): ... this.
11337 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
11338 gomp_map_0len_lookup instead of gomp_map_lookup.
11339 (omp_target_is_present): Use gomp_map_0len_lookup instead of
11341 * testsuite/libgomp.c/target-28.c: Likewise.
11342 * testsuite/libgomp.c/monotonic-1.c: New test.
11343 * testsuite/libgomp.c/monotonic-2.c: New test.
11344 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
11345 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
11346 * testsuite/libgomp.c/pr66199-5.c: New test.
11347 * testsuite/libgomp.c/pr66199-6.c: New test.
11348 * testsuite/libgomp.c/pr66199-7.c: New test.
11349 * testsuite/libgomp.c/pr66199-8.c: New test.
11350 * testsuite/libgomp.c/pr66199-9.c: New test.
11351 * testsuite/libgomp.c/reduction-11.c: New test.
11352 * testsuite/libgomp.c/reduction-12.c: New test.
11353 * testsuite/libgomp.c/reduction-13.c: New test.
11354 * testsuite/libgomp.c/reduction-14.c: New test.
11355 * testsuite/libgomp.c/reduction-15.c: New test.
11356 * testsuite/libgomp.c/target-12.c (main): Adjust for
11357 omp_target_is_present change for one-past-last element.
11358 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
11359 the same var is both mapped and privatized.
11360 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
11361 handling of zero-length array sections.
11362 * testsuite/libgomp.c/target-28.c: New test.
11363 * testsuite/libgomp.c/target-29.c: New test.
11364 * testsuite/libgomp.c/target-30.c: New test.
11365 * testsuite/libgomp.c/target-teams-1.c: New test.
11366 * testsuite/libgomp.c++/member-6.C: New test.
11367 * testsuite/libgomp.c++/member-7.C: New test.
11368 * testsuite/libgomp.c++/monotonic-1.C: New test.
11369 * testsuite/libgomp.c++/monotonic-2.C: New test.
11370 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
11371 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
11372 * testsuite/libgomp.c++/pr66199-3.C: New test.
11373 * testsuite/libgomp.c++/pr66199-4.C: New test.
11374 * testsuite/libgomp.c++/pr66199-5.C: New test.
11375 * testsuite/libgomp.c++/pr66199-6.C: New test.
11376 * testsuite/libgomp.c++/pr66199-7.C: New test.
11377 * testsuite/libgomp.c++/pr66199-8.C: New test.
11378 * testsuite/libgomp.c++/pr66199-9.C: New test.
11379 * testsuite/libgomp.c++/reduction-11.C: New test.
11380 * testsuite/libgomp.c++/reduction-12.C: New test.
11381 * testsuite/libgomp.c++/target-13.C: New test.
11382 * testsuite/libgomp.c++/target-14.C: New test.
11383 * testsuite/libgomp.c++/target-15.C: New test.
11384 * testsuite/libgomp.c++/target-16.C: New test.
11385 * testsuite/libgomp.c++/target-17.C: New test.
11386 * testsuite/libgomp.c++/target-18.C: New test.
11387 * testsuite/libgomp.c++/target-19.C: New test.
11389 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
11391 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
11392 and reduction copy.
11393 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11394 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11395 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11396 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11397 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
11398 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11399 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11400 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11401 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11402 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
11403 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11404 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11405 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11406 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
11408 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
11410 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
11411 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
11412 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
11413 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
11414 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
11415 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
11416 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
11417 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
11419 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
11421 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
11422 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
11423 (GOMP_OFFLOAD_openacc_parallel): Likewise.
11424 * oacc-host.c (host_openacc_exec): Likewise.
11425 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
11427 2015-11-03 Julian Brown <julian@codesourcery.com>
11428 Thomas Schwinge <thomas@codesourcery.com>
11430 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
11431 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11432 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
11434 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
11435 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
11437 2015-11-03 James Norris <jnorris@codesourcery.com>
11439 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
11441 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
11443 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
11444 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
11445 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11446 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
11447 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11449 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
11451 * openacc.h (enum acc_device_t): Reformat. Ensure layout
11453 (enum acc_async_t): Reformat.
11454 (acc_on_device): Declare compatible with builtin and provide C++
11456 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
11458 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
11459 Cesar Philippidis <cesar@codesourcery.com>
11461 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
11462 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
11463 ... this. Add a description of the test at the top of the file.
11464 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
11465 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
11466 ... this. Add a description of the test at the top of the file.
11468 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
11470 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
11471 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
11472 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
11473 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
11474 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
11475 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
11477 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
11479 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
11482 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
11485 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
11487 2015-10-27 James Norris <jnorris@codesourcery.com>
11489 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
11490 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
11492 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
11494 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
11495 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11497 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
11498 acc_device_nvidia usage.
11499 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11500 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11501 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11503 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
11504 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
11507 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
11511 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
11512 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
11514 2015-10-23 Tom de Vries <tom@codesourcery.com>
11517 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
11519 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
11521 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
11523 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11525 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
11526 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
11528 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
11529 to 0 when mapnum is 0.
11531 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
11533 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
11534 Cast to int from int32_t.
11536 2015-10-13 Jakub Jelinek <jakub@redhat.com>
11537 Aldy Hernandez <aldyh@redhat.com>
11538 Ilya Verbin <ilya.verbin@intel.com>
11540 * config/linux/affinity.c (omp_get_place_num_procs,
11541 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11542 * config/linux/doacross.h: New file.
11543 * config/posix/affinity.c (omp_get_place_num_procs,
11544 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11545 * config/posix/doacross.h: New file.
11546 * env.c: Include gomp-constants.h.
11547 (struct gomp_task_icv): Rename run_sched_modifier to
11548 run_sched_chunk_size.
11549 (gomp_max_task_priority_var): New variable.
11550 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
11551 (handle_omp_display_env): Change _OPENMP value from 201307 to
11552 201511. Print OMP_MAX_TASK_PRIORITY.
11553 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
11554 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
11555 chunk_size and run_sched_modifier to run_sched_chunk_size.
11556 (omp_get_max_task_priority, omp_get_initial_device,
11557 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
11558 omp_get_partition_place_nums): New functions.
11559 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
11560 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
11562 (omp_get_num_places_, omp_get_place_num_procs_,
11563 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
11564 omp_get_place_proc_ids_8_, omp_get_place_num_,
11565 omp_get_partition_num_places_, omp_get_partition_place_nums_,
11566 omp_get_partition_place_nums_8_, omp_get_initial_device_,
11567 omp_get_max_task_priority_): New functions.
11568 * libgomp_g.h (GOMP_loop_doacross_static_start,
11569 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
11570 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
11571 GOMP_loop_ull_doacross_dynamic_start,
11572 GOMP_loop_ull_doacross_guided_start,
11573 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
11574 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
11575 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
11576 GOMP_target_data_41, GOMP_target_update_41,
11577 GOMP_target_enter_exit_data): New prototypes.
11578 (GOMP_task): Add prototype argument.
11579 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
11580 (struct gomp_doacross_work_share): New type.
11581 (struct gomp_work_share): Add doacross field.
11582 (struct gomp_task_icv): Rename run_sched_modifier to
11583 run_sched_chunk_size.
11584 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
11585 GOMP_TASK_UNDEFERRED. Add comments.
11586 (struct gomp_task_depend_entry): Add comments.
11587 (struct gomp_task): Likewise.
11588 (struct gomp_taskgroup): Likewise.
11589 (struct gomp_target_task): New type.
11590 (struct gomp_team): Add comment.
11591 (gomp_get_place_proc_ids_8, gomp_doacross_init,
11592 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
11593 gomp_create_target_task, gomp_target_task_fn): New prototypes.
11594 (struct target_var_desc): New type.
11595 (struct target_mem_desc): Adjust comment. Use struct
11596 target_var_desc instead of splay_tree_key for list.
11597 (REFCOUNT_INFINITY): Define.
11598 (struct splay_tree_key_s): Remove copy_from field.
11599 (struct gomp_device_descr): Add dev2dev_func field.
11600 (enum gomp_map_vars_kind): New enum.
11601 (gomp_map_vars): Add one argument.
11602 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
11603 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
11604 omp_get_place_num_procs, omp_get_place_num_procs_,
11605 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
11606 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
11607 omp_get_place_num_, omp_get_partition_num_places,
11608 omp_get_partition_num_places_, omp_get_partition_place_nums,
11609 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
11610 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
11611 omp_target_free, omp_target_is_present, omp_target_memcpy,
11612 omp_target_memcpy_rect, omp_target_associate_ptr and
11613 omp_target_disassociate_ptr.
11614 (GOMP_4.0.2): Renamed to ...
11615 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
11616 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
11617 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
11618 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11619 GOMP_loop_doacross_static_start, GOMP_doacross_post,
11620 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
11621 GOMP_loop_ull_doacross_guided_start,
11622 GOMP_loop_ull_doacross_runtime_start,
11623 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
11624 GOMP_doacross_ull_wait.
11625 * libgomp.texi: Document omp_get_max_task_priority.
11626 Rename modifier argument to chunk_size for omp_set_schedule and
11627 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
11628 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
11629 to run_sched_chunk_size renaming.
11630 (GOMP_loop_ordered_runtime_start): Likewise.
11631 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
11632 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11633 GOMP_parallel_loop_runtime_start): New functions.
11634 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
11635 to run_sched_chunk_size renaming.
11636 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
11637 GOMP_loop_doacross_guided_start): New functions or aliases.
11638 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
11639 run_sched_modifier to run_sched_chunk_size renaming.
11640 (GOMP_loop_ull_ordered_runtime_start): Likewise.
11641 (gomp_loop_ull_doacross_static_start,
11642 gomp_loop_ull_doacross_dynamic_start,
11643 gomp_loop_ull_doacross_guided_start,
11644 GOMP_loop_ull_doacross_runtime_start): New functions.
11645 (GOMP_loop_ull_doacross_static_start,
11646 GOMP_loop_ull_doacross_dynamic_start,
11647 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
11648 * oacc-mem.c (acc_map_data, present_create_copy,
11649 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
11651 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
11652 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
11653 instead of false to gomp_map_vars.
11654 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
11655 * omp.h.in (omp_lock_hint_t): New type.
11656 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11657 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11658 omp_get_place_num, omp_get_partition_num_places,
11659 omp_get_partition_place_nums, omp_get_initial_device,
11660 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
11661 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
11662 omp_target_associate_ptr, omp_target_disassociate_ptr): New
11664 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
11665 (omp_lock_hint_none, omp_lock_hint_uncontended,
11666 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11667 omp_lock_hint_speculative): New parameters.
11668 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11669 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11670 omp_get_place_num, omp_get_partition_num_places,
11671 omp_get_partition_place_nums, omp_get_initial_device,
11672 omp_get_max_task_priority): New interfaces.
11673 (omp_set_schedule, omp_get_schedule): Rename modifier argument
11675 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
11676 (omp_lock_hint_none, omp_lock_hint_uncontended,
11677 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11678 omp_lock_hint_speculative): New parameters.
11679 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11680 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11681 omp_get_place_num, omp_get_partition_num_places,
11682 omp_get_partition_place_nums, omp_get_initial_device,
11683 omp_get_max_task_priority): New functions and subroutines.
11684 * ordered.c: Include stdarg.h and string.h.
11685 (MAX_COLLAPSED_BITS): Define.
11686 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
11687 gomp_doacross_ull_init, GOMP_doacross_ull_post,
11688 GOMP_doacross_ull_wait): New functions.
11689 * target.c: Include errno.h.
11690 (resolve_device): If device is not initialized, call
11691 gomp_init_device on it.
11692 (gomp_map_lookup): New function.
11693 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
11694 Don't bump refcount if REFCOUNT_INFINITY. Handle
11695 GOMP_MAP_ALWAYS_TO_P.
11696 (get_kind): Rename is_openacc argument to short_mapkind.
11697 (gomp_map_pointer): Use gomp_map_lookup.
11698 (gomp_map_fields_existing): New function.
11699 (gomp_map_vars): Rename is_openacc argument to short_mapkind
11700 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
11701 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
11702 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
11703 Adjust for tgt->list changed type and copy_from living in there.
11704 (gomp_copy_from_async): Adjust for tgt->list changed type and
11705 copy_from living in there.
11706 (gomp_unmap_vars): Likewise.
11707 (gomp_update): Likewise. Rename is_openacc argument to
11708 short_mapkind. Don't fail if object is not mapped.
11709 (gomp_load_image_to_device): Initialize refcount to
11711 (gomp_target_fallback): New function.
11712 (gomp_get_target_fn_addr): Likewise.
11713 (GOMP_target): Adjust gomp_map_vars caller, use
11714 gomp_get_target_fn_addr and gomp_target_fallback.
11715 (GOMP_target_41): New function.
11716 (gomp_target_data_fallback): New function.
11717 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
11718 (GOMP_target_data_41): New function.
11719 (GOMP_target_update): Adjust gomp_update caller.
11720 (GOMP_target_update_41): New function.
11721 (gomp_exit_data, GOMP_target_enter_exit_data,
11722 gomp_target_task_fn, omp_target_alloc, omp_target_free,
11723 omp_target_is_present, omp_target_memcpy,
11724 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
11725 omp_target_associate_ptr, omp_target_disassociate_ptr,
11726 gomp_load_plugin_for_device): New functions.
11727 * task.c: Include gomp-constants.h. Include taskloop.c
11728 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
11729 (gomp_task_handle_depend): New function.
11730 (GOMP_task): Use it. Add priority argument. Use
11731 gomp-constant.h constants instead of hardcoded numbers.
11732 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
11733 (gomp_create_target_task): New function.
11734 (verify_children_queue, verify_taskgroup_queue,
11735 verify_task_queue): New functions.
11736 (gomp_task_run_pre): Call verify_*_queue functions.
11737 If an upcoming tied task is about to leave the sibling or
11738 taskgroup queues in an invalid state, adjust appropriately.
11739 Remove taskgroup argument. Add comments.
11740 (gomp_task_run_post_handle_dependers): Add comments.
11741 (gomp_task_run_post_remove_parent): Likewise.
11742 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
11743 (GOMP_taskwait): Likewise. Add comments.
11744 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
11745 problem such that the first non parent_depends_on task does not
11746 end up at the end of the children queue.
11747 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
11748 GOMP_TASK_UNDEFERRED.
11749 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
11750 * taskloop.c: New file.
11751 * testsuite/lib/libgomp.exp
11752 (check_effective_target_offload_device_nonshared_as): New proc.
11753 * testsuite/libgomp.c/affinity-2.c: New test.
11754 * testsuite/libgomp.c/doacross-1.c: New test.
11755 * testsuite/libgomp.c/doacross-2.c: New test.
11756 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
11757 Add map clause to target.
11758 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
11759 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
11760 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
11761 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
11762 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
11764 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
11765 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
11766 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
11767 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
11768 not defined. Use those where needed.
11769 * testsuite/libgomp.c/for-4.c: New test.
11770 * testsuite/libgomp.c/for-5.c: New test.
11771 * testsuite/libgomp.c/for-6.c: New test.
11772 * testsuite/libgomp.c/linear-1.c: New test.
11773 * testsuite/libgomp.c/ordered-4.c: New test.
11774 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
11775 only allowed on the loop iterator.
11776 * testsuite/libgomp.c/pr66199-3.c: New test.
11777 * testsuite/libgomp.c/pr66199-4.c: New test.
11778 * testsuite/libgomp.c/reduction-7.c: New test.
11779 * testsuite/libgomp.c/reduction-8.c: New test.
11780 * testsuite/libgomp.c/reduction-9.c: New test.
11781 * testsuite/libgomp.c/reduction-10.c: New test.
11782 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
11784 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
11785 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
11786 * testsuite/libgomp.c/target-11.c: New test.
11787 * testsuite/libgomp.c/target-12.c: New test.
11788 * testsuite/libgomp.c/target-13.c: New test.
11789 * testsuite/libgomp.c/target-14.c: New test.
11790 * testsuite/libgomp.c/target-15.c: New test.
11791 * testsuite/libgomp.c/target-16.c: New test.
11792 * testsuite/libgomp.c/target-17.c: New test.
11793 * testsuite/libgomp.c/target-18.c: New test.
11794 * testsuite/libgomp.c/target-19.c: New test.
11795 * testsuite/libgomp.c/target-20.c: New test.
11796 * testsuite/libgomp.c/target-21.c: New test.
11797 * testsuite/libgomp.c/target-22.c: New test.
11798 * testsuite/libgomp.c/target-23.c: New test.
11799 * testsuite/libgomp.c/target-24.c: New test.
11800 * testsuite/libgomp.c/target-25.c: New test.
11801 * testsuite/libgomp.c/target-26.c: New test.
11802 * testsuite/libgomp.c/target-27.c: New test.
11803 * testsuite/libgomp.c/taskloop-1.c: New test.
11804 * testsuite/libgomp.c/taskloop-2.c: New test.
11805 * testsuite/libgomp.c/taskloop-3.c: New test.
11806 * testsuite/libgomp.c/taskloop-4.c: New test.
11807 * testsuite/libgomp.c++/ctor-13.C: New test.
11808 * testsuite/libgomp.c++/doacross-1.C: New test.
11809 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
11810 Replace offload_device with offload_device_nonshared_as.
11811 * testsuite/libgomp.c++/for-12.C: New test.
11812 * testsuite/libgomp.c++/for-13.C: New test.
11813 * testsuite/libgomp.c++/for-14.C: New test.
11814 * testsuite/libgomp.c++/linear-1.C: New test.
11815 * testsuite/libgomp.c++/member-1.C: New test.
11816 * testsuite/libgomp.c++/member-2.C: New test.
11817 * testsuite/libgomp.c++/member-3.C: New test.
11818 * testsuite/libgomp.c++/member-4.C: New test.
11819 * testsuite/libgomp.c++/member-5.C: New test.
11820 * testsuite/libgomp.c++/ordered-1.C: New test.
11821 * testsuite/libgomp.c++/reduction-5.C: New test.
11822 * testsuite/libgomp.c++/reduction-6.C: New test.
11823 * testsuite/libgomp.c++/reduction-7.C: New test.
11824 * testsuite/libgomp.c++/reduction-8.C: New test.
11825 * testsuite/libgomp.c++/reduction-9.C: New test.
11826 * testsuite/libgomp.c++/reduction-10.C: New test.
11827 * testsuite/libgomp.c++/reference-1.C: New test.
11828 * testsuite/libgomp.c++/simd14.C: New test.
11829 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
11830 * testsuite/libgomp.c++/target-5.C: New test.
11831 * testsuite/libgomp.c++/target-6.C: New test.
11832 * testsuite/libgomp.c++/target-7.C: New test.
11833 * testsuite/libgomp.c++/target-8.C: New test.
11834 * testsuite/libgomp.c++/target-9.C: New test.
11835 * testsuite/libgomp.c++/target-10.C: New test.
11836 * testsuite/libgomp.c++/target-11.C: New test.
11837 * testsuite/libgomp.c++/target-12.C: New test.
11838 * testsuite/libgomp.c++/taskloop-1.C: New test.
11839 * testsuite/libgomp.c++/taskloop-2.C: New test.
11840 * testsuite/libgomp.c++/taskloop-3.C: New test.
11841 * testsuite/libgomp.c++/taskloop-4.C: New test.
11842 * testsuite/libgomp.c++/taskloop-5.C: New test.
11843 * testsuite/libgomp.c++/taskloop-6.C: New test.
11844 * testsuite/libgomp.c++/taskloop-7.C: New test.
11845 * testsuite/libgomp.c++/taskloop-8.C: New test.
11846 * testsuite/libgomp.c++/taskloop-9.C: New test.
11847 * testsuite/libgomp.fortran/affinity1.f90: New test.
11848 * testsuite/libgomp.fortran/affinity2.f90: New test.
11850 2015-10-13 Tom de Vries <tom@codesourcery.com>
11852 PR tree-optimization/67476
11853 * testsuite/libgomp.c/autopar-3.c: New test.
11854 * testsuite/libgomp.c/autopar-4.c: New test.
11855 * testsuite/libgomp.c/autopar-5.c: New test.
11856 * testsuite/libgomp.c/autopar-6.c: New test.
11857 * testsuite/libgomp.c/autopar-7.c: New test.
11858 * testsuite/libgomp.c/autopar-8.c: New test.
11860 2015-10-12 James Norris <jnorris@codesourcery.com>
11862 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
11865 2015-10-09 David Malcolm <dmalcolm@redhat.com>
11867 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
11868 using load_gcc_lib.
11870 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11872 * oacc-ptx.h: Remove file, moving its content into...
11873 * config/nvptx/fortran.c: ... here...
11874 * config/nvptx/oacc-init.c: ..., here...
11875 * config/nvptx/oacc-parallel.c: ..., and here.
11876 * config/nvptx/openacc.f90: New file.
11877 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
11878 (link_ptx): Don't link in predefined bits of PTX code.
11880 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11881 Bernd Schmidt <bernds@codesourcery.com>
11883 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
11884 (struct targ_ptx_obj): New.
11885 (nvptx_tdata): Move earlier, change data format.
11886 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
11888 (GOMP_OFFLOAD_load_image): Adjust.
11890 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11892 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
11893 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11894 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11895 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11896 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11897 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11898 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11899 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11900 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11901 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11902 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11903 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11904 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11905 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11906 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11907 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11908 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11909 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11910 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11911 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11912 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11913 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11914 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11915 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11916 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11917 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11918 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11919 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11920 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11921 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11922 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11923 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11924 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11925 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11926 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11927 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11928 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11929 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11930 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11931 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11932 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11933 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11934 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11935 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11936 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11937 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11938 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11939 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11940 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11941 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11942 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11943 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11944 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11945 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11946 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11947 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11948 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11949 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11950 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11951 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11952 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11953 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11954 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11956 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11958 * oacc-init.c (acc_on_device): Force optimization level.
11960 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11962 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
11963 (cuda_errlist): Delete.
11964 (cuda_error): Reimplement.
11966 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11968 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
11970 * libgomp.map (GOACC_parallel_keyed): New.
11971 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
11973 (GOACC_parallel_keyed): New interface. Lose geometry arguments
11974 and take keyed varargs list. Adjust call to exec_func.
11975 (GOACC_parallel): Force host fallback.
11976 * libgomp_g.h (GOACC_parallel): Remove.
11977 (GOACC_parallel_keyed): Declare.
11978 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
11979 (struct targ_gn_descriptor): Replace name field with launch field.
11980 (nvptx_exec): Lose separate geometry args, take array. Process
11981 dynamic dimensions and adjust.
11982 (struct nvptx_tdata): Replace fn_names field with fn_descs.
11983 (GOMP_OFFLOAD_load_image): Adjust for change in function table
11985 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
11987 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
11990 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11993 * oacc-int.h (goacc_host_init): Add declaration.
11994 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
11995 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
11997 2015-09-08 Aditya Kumar <hiraditya@msn.com>
11998 Sebastian Pop <s.pop@samsung.com>
12000 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
12002 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
12003 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
12004 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
12005 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
12006 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
12008 2015-09-03 Jakub Jelinek <jakub@redhat.com>
12010 * configure.tgt: Add missing ;; in between nvptx and rtems
12013 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12015 * config/posix/pool.h (gomp_adjust_thread_attr): New.
12016 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
12017 (gomp_thread_pool_reservoir): Add priority member.
12018 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
12020 (parse_thread_pools): Likewise.
12021 * team.c (gomp_team_start): Call configuration provided
12022 gomp_adjust_thread_attr(). Destroy thread attributes if
12024 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
12026 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12028 * config/posix/pool.h: New.
12029 * config/rtems/pool.h: Likewise.
12030 * config/rtems/proc.c: Likewise.
12031 * libgomp.h (gomp_thread_destructor): Declare.
12032 * team.c: Include configuration provided "pool.h".
12033 (gomp_get_thread_pool): Define in configuration.
12034 (gomp_team_end): Call configuration defined
12035 gomp_release_thread_pool().
12037 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12039 * config/rtems/bar.c: New.
12040 * config/rtems/bar.h: Likewise.
12041 * config/rtems/mutex.c: Likewise.
12042 * config/rtems/mutex.h: Likewise.
12043 * config/rtems/sem.c: Likewise.
12044 * config/rtems/sem.h: Likewise.
12045 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
12046 <sys/lock.h> header file.
12047 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
12048 supported by Newlib.
12049 * configure: Regenerate.
12051 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
12053 * team.c (gomp_new_thread_pool): Delete and move content to ...
12054 (gomp_get_thread_pool): ... new function. Allocate and
12055 initialize thread pool on demand.
12056 (get_last_team): Use gomp_get_thread_pool().
12057 (gomp_team_start): Delete thread pool initialization.
12059 2015-09-03 Tom de Vries <tom@codesourcery.com>
12061 PR tree-optimization/65637
12062 * testsuite/libgomp.c/autopar-2.c: New test.
12064 2015-08-29 Tom de Vries <tom@codesourcery.com>
12066 PR tree-optimization/46193
12067 * testsuite/libgomp.c/pr46193.c: New test.
12069 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
12072 * libgomp.map: Add 4.0.2 version.
12073 * target.c (offload_image_descr): Add version field.
12074 (gomp_load_image_to_device): Add version argument. Adjust plugin
12075 call. Improve load mismatch diagnostic.
12076 (gomp_unload_image_from_device): Add version argument. Adjust plugin
12078 (GOMP_offload_regster): Make stub function, move bulk to ...
12079 (GOMP_offload_register_ver): ... here. Process version argument.
12080 (GOMP_offload_unregister): Make stub function, move bulk to ...
12081 (GOMP_offload_unregister_ver): ... here. Process version argument.
12082 (gomp_init_device): Process version field.
12083 (gomp_unload_device): Process version field.
12084 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
12085 macros. Check plugin version.
12086 * libgomp.h (gomp_device_descr): Add version function field. Adjust
12087 loader and unloader types.
12088 * oacc-host.c: Include gomp-constants.h.
12089 (host_version): New.
12090 (host_load_image, host_unload_image): Adjust.
12091 (host_dispatch): Add host_version.
12092 * plugin/plugin-nvptx.c: Include gomp-constants.h.
12093 (GOMP_OFFLOAD_version): New.
12094 (GOMP_OFFLOAD_load_image): Add version arg and check it.
12095 (GOMP_OFFLOAD_unload_image): Likewise.
12096 * plugin/plugin-host.c: Include gomp-constants.h.
12097 (GOMP_OFFLOAD_version): New.
12098 (GOMP_OFFLOAD_load_image): Add version arg.
12099 (GOMP_OFFLOAD_unload_image): Likewise.
12101 2015-08-24 Tom de Vries <tom@codesourcery.com>
12103 PR tree-optimization/65468
12104 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
12106 2015-08-24 Tom de Vries <tom@codesourcery.com>
12108 PR tree-optimization/65468
12109 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
12111 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
12115 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
12116 (gomp_iter_guided_next): Idem.
12117 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
12118 (gomp_iter_ull_guided_next): Idem.
12119 * config/linux/wait.h (do_spin): Idem.
12121 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12123 * libgomp-plugin.h (enum offload_target_type): Remove
12124 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
12125 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
12126 * openacc.h (enum acc_device_t): Likewise.
12127 * openacc_lib.h: Likewise.
12128 * oacc-init.c (name_of_acc_device_t): Don't handle it.
12129 (acc_on_device): Just use __builtin_acc_on_device.
12130 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
12131 of acc_on_device builtin.
12132 * plugin/plugin-host.h: Remove file.
12133 * plugin/plugin-host.c: Likewise, but salvage some content into...
12134 * oacc-host.c: ... this file.
12135 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
12136 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
12137 * Makefile.in: Regenerate.
12138 * configure: Likewise.
12139 * testsuite/lib/libgomp.exp
12140 (check_effective_target_openacc_host_nonshm_selected): Remove.
12141 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
12142 ACC_DEVICE_TYPE=host_nonshm.
12143 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12144 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12145 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
12146 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12147 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12148 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12150 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12151 Jakub Jelinek <jakub@redhat.com>
12153 * config/nvptx/affinity.c: New file.
12154 * config/nvptx/alloc.c: Likewise.
12155 * config/nvptx/bar.c: Likewise.
12156 * config/nvptx/barrier.c: Likewise.
12157 * config/nvptx/critical.c: Likewise.
12158 * config/nvptx/env.c: Likewise.
12159 * config/nvptx/error.c: Likewise.
12160 * config/nvptx/fortran.c: Likewise.
12161 * config/nvptx/iter.c: Likewise.
12162 * config/nvptx/iter_ull.c: Likewise.
12163 * config/nvptx/libgomp-plugin.c: Likewise.
12164 * config/nvptx/lock.c: Likewise.
12165 * config/nvptx/loop.c: Likewise.
12166 * config/nvptx/loop_ull.c: Likewise.
12167 * config/nvptx/mutex.c: Likewise.
12168 * config/nvptx/oacc-async.c: Likewise.
12169 * config/nvptx/oacc-cuda.c: Likewise.
12170 * config/nvptx/oacc-host.c: Likewise.
12171 * config/nvptx/oacc-init.c: Likewise.
12172 * config/nvptx/oacc-mem.c: Likewise.
12173 * config/nvptx/oacc-parallel.c: Likewise.
12174 * config/nvptx/oacc-plugin.c: Likewise.
12175 * config/nvptx/omp-lock.h: Likewise.
12176 * config/nvptx/ordered.c: Likewise.
12177 * config/nvptx/parallel.c: Likewise.
12178 * config/nvptx/proc.c: Likewise.
12179 * config/nvptx/ptrlock.c: Likewise.
12180 * config/nvptx/sections.c: Likewise.
12181 * config/nvptx/sem.c: Likewise.
12182 * config/nvptx/single.c: Likewise.
12183 * config/nvptx/splay-tree.c: Likewise.
12184 * config/nvptx/target.c: Likewise.
12185 * config/nvptx/task.c: Likewise.
12186 * config/nvptx/team.c: Likewise.
12187 * config/nvptx/time.c: Likewise.
12188 * config/nvptx/work.c: Likewise.
12189 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
12190 * configure: Regenerate.
12191 * configure.tgt (config_path): Set to "nvptx" for target
12194 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12196 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
12198 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
12200 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
12201 (cuda_errlist): Constify.
12202 (errmsg): Move into ...
12203 (cuda_error): ... here. Make smaller.
12204 (_XSTR, _STR): Delete.
12205 (cuda_synames): Delete.
12206 (verify_device_library): Delete.
12207 (nvptx_init): Don't call it.
12209 2015-07-28 Tom de Vries <tom@codesourcery.com>
12211 * testsuite/libgomp.c/uns-outer-4.c: New test.
12213 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12215 * testsuite/libgomp.c/pr66714.c: New test.
12217 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
12220 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
12221 (fib_ref): New function.
12222 (fib): Correct corner cases in the recursion.
12223 (main): Replace the non-simd loop with fib_ref call.
12224 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
12226 (fibonacci): Lower the parameter N to 30. Correct accordingly check
12227 for the last array element value. Replace the non-simd loop with
12228 fib_ref call. Remove redundant b_ref array. Remove the comparison
12229 of the last array element with according Fibonacci sequence element.
12230 (fib): Correct corner cases in the recursion.
12232 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12234 * target.c (gomp_offload_image_to_device): Rename to ...
12235 (gomp_load_image_to_device): ... here.
12236 (GOMP_offload_register): Adjust call.
12237 (gomp_init_device): Likewise.
12238 (gomp_unload_image_from_device): New. Broken out of ...
12239 (GOMP_offload_unregister): ... here. Call it.
12240 (gomp_unload_device): New.
12241 * libgomp.h (gomp_unload_device): Declare.
12242 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
12245 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
12247 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
12249 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
12251 (goacc_waits): Move !num_waits handling to ...
12252 (GOACC_wait): ... here, the only caller that might have zero waits.
12254 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
12255 (struct ptx_image_data): Move earlier, add fns field.
12256 (struct ptx_device): Add images and image_lock fields.
12257 (ptx_images, ptx_image_lock): Delete.
12258 (nvptx_open_device): Initialize images and image_lock fields.
12259 (nvptx_close_device): Destroy image_lock.
12260 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
12261 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
12264 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12266 * target.c (GOMP_offload_register): Use int for device type arg.
12267 (GOMP_offload_unregister): Likewise.
12269 * target.c (struct_offload_image_descr): Constify host_table.
12270 (gomp_offload_image_to_device): Likewise.
12271 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
12273 * libgomp.h (gomp_device_descr): Constify target data arguments.
12274 * target.c (struct offload_image_descr): Constify target_data.
12275 (gomp_offload_image_to_device): Likewise.
12276 (GOMP_offload_register): Likewise.
12277 (GOMP_offload_unregister): Likewise.
12278 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
12279 GOMP_OFFLOAD_unload_image): Constify target data.
12280 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
12281 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
12283 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12285 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
12286 Workaround driver library const error.
12287 (struct nvptx_tdata, nvptx_tdata_t): New.
12288 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
12291 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
12293 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
12294 of EPS parameter from integer to real.
12295 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
12296 type of EPS parameter from integer to real.
12298 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
12300 * team.c (get_last_team): New.
12301 (gomp_new_team): Recycle last non-nested team if possible.
12302 (gomp_team_end): Move team work share list free lock destruction
12304 (free_team): ... here.
12306 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
12308 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
12309 and ref from int to double. Replaced their comparison with
12310 an inequality of their difference and EPS.
12311 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
12312 comparison of pri and a reference number with an inequality of their
12313 difference and EPS.
12314 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
12315 the comparison of sum and sum_ref with an inequality of their
12316 difference and EPS.
12317 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
12318 the comparison of pri and a reference number with an inequality of
12319 their difference and EPS.
12321 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
12323 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
12324 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
12325 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
12326 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
12327 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
12328 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
12329 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
12330 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
12331 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
12332 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
12333 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
12334 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
12335 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
12337 (vec_mult): Likewise. Add #pragma omp taskwait.
12338 (main): Adjust caller.
12339 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
12340 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
12341 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
12342 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
12343 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
12344 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
12345 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
12346 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
12347 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
12348 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
12349 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
12350 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
12351 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
12352 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
12353 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
12354 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
12355 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
12356 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
12357 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
12358 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
12359 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
12360 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
12361 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
12362 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
12363 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
12364 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
12365 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
12366 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
12367 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
12368 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
12369 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
12370 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
12371 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
12372 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
12373 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
12374 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
12375 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
12376 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
12377 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
12378 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
12379 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
12380 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
12381 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
12382 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
12383 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
12384 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
12385 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
12386 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
12387 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
12388 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
12389 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
12390 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
12391 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
12392 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
12393 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
12394 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
12395 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
12396 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
12397 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
12398 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
12399 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
12400 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
12401 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
12402 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
12403 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
12404 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
12405 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
12406 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
12407 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
12408 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
12409 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
12410 (vec_mult): Add !$omp taskwait.
12411 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
12412 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
12413 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
12414 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
12415 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
12416 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
12417 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
12418 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
12419 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
12420 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
12421 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
12422 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
12423 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
12424 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
12425 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
12426 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
12427 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
12428 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
12429 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
12430 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
12431 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
12432 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
12433 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
12434 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
12435 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
12436 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
12437 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
12438 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
12439 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
12440 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
12441 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
12442 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
12443 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
12444 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
12445 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
12446 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
12447 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
12448 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
12449 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
12450 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
12451 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
12452 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
12453 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
12454 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
12455 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
12456 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
12457 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
12458 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
12459 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
12460 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
12461 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
12462 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
12463 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
12464 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
12465 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
12466 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
12467 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
12468 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
12469 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
12470 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
12471 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
12472 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
12473 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
12474 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
12475 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
12476 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
12477 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
12479 2015-07-10 Tom de Vries <tom@codesourcery.com>
12481 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
12482 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
12484 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
12487 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
12488 in a 64-bit configuration.
12489 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
12490 offloading testing if no such device is available.
12491 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12492 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12494 2015-07-08 Tom de Vries <tom@codesourcery.com>
12496 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
12498 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12500 2015-07-07 Tom de Vries <tom@codesourcery.com>
12502 PR tree-optimization/66642
12503 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
12504 iteration count case.
12505 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
12506 function, factor out of ...
12507 (main): ... here. Test low iteration count case.
12509 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
12511 * libgomp.h (gomp_thread_pool): Comment last_team field.
12513 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
12515 * testsuite/libgomp.c++/pr66702-1.C: Require
12516 vect_simd_clones effective target.
12517 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
12519 2015-06-30 Tom de Vries <tom@codesourcery.com>
12521 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12522 already set. Use DEFAULT_CFLAGS in dg-runtest.
12523 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
12526 2015-06-30 Tom de Vries <tom@codesourcery.com>
12528 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12529 already set. Use DEFAULT_CFLAGS in dg-runtest.
12530 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
12531 * testsuite/libgomp.c++/pr64824.C: Same.
12532 * testsuite/libgomp.c++/pr64868.C: Same.
12533 * testsuite/libgomp.c++/pr66199-1.C: Same.
12534 * testsuite/libgomp.c++/pr66199-2.C: Same.
12535 * testsuite/libgomp.c++/target-2.C: Same.
12536 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
12537 -std=<standard> option.
12538 * testsuite/libgomp.c++/udr-11.C: Same.
12539 * testsuite/libgomp.c++/udr-12.C: Same.
12540 * testsuite/libgomp.c++/udr-13.C: Same.
12541 * testsuite/libgomp.c++/udr-14.C: Same.
12542 * testsuite/libgomp.c++/udr-15.C: Same.
12543 * testsuite/libgomp.c++/udr-16.C: Same.
12544 * testsuite/libgomp.c++/udr-17.C: Same.
12545 * testsuite/libgomp.c++/udr-18.C: Same.
12546 * testsuite/libgomp.c++/udr-19.C: Same.
12547 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
12548 * testsuite/libgomp.c++/simd-1.C: Same.
12549 * testsuite/libgomp.c++/simd-2.C: Same.
12550 * testsuite/libgomp.c++/simd-3.C: Same.
12551 * testsuite/libgomp.c++/simd-4.C: Same.
12552 * testsuite/libgomp.c++/simd-5.C: Same.
12553 * testsuite/libgomp.c++/simd-6.C: Same.
12554 * testsuite/libgomp.c++/simd-7.C: Same.
12555 * testsuite/libgomp.c++/simd-8.C: Same.
12556 * testsuite/libgomp.c++/simd-9.C: Same.
12557 * testsuite/libgomp.c++/simd10.C: Same.
12558 * testsuite/libgomp.c++/simd11.C: Same.
12559 * testsuite/libgomp.c++/simd12.C: Same.
12560 * testsuite/libgomp.c++/simd13.C: Same.
12562 2015-06-30 Jakub Jelinek <jakub@redhat.com>
12564 PR middle-end/66702
12565 * testsuite/libgomp.c++/pr66702-1.C: New test.
12566 * testsuite/libgomp.c++/pr66702-2.C: New test.
12568 2015-06-30 Tom de Vries <tom@codesourcery.com>
12570 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
12571 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
12572 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
12573 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
12575 2015-06-30 Tom de Vries <tom@codesourcery.com>
12577 PR tree-optimization/66652
12578 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
12579 using restrict pointers.
12580 (main): Add arguments to calls to f.
12581 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12583 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
12585 * configure.ac: Fix check for header <sys/sysctl.h>.
12586 * configure: Regenerate.
12587 * config.h.in: Likewise.
12589 2015-06-23 Tom de Vries <tom@codesourcery.com>
12591 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
12593 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
12595 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
12597 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
12601 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
12602 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12604 2015-06-15 Tom de Vries <tom@codesourcery.com>
12606 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
12607 dg-additional-options for any remaining options.
12608 * testsuite/libgomp.c/atomic-2.c: Same.
12609 * testsuite/libgomp.c/atomic-4.c: Same.
12610 * testsuite/libgomp.c/atomic-5.c: Same.
12611 * testsuite/libgomp.c/atomic-6.c: Same.
12612 * testsuite/libgomp.c/autopar-1.c: Same.
12613 * testsuite/libgomp.c/copyin-1.c: Same.
12614 * testsuite/libgomp.c/copyin-2.c: Same.
12615 * testsuite/libgomp.c/copyin-3.c: Same.
12616 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
12617 * testsuite/libgomp.c/nestedfn-5.c: Same.
12618 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
12619 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
12620 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
12621 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12622 * testsuite/libgomp.c/pr32362-1.c: Same.
12623 * testsuite/libgomp.c/pr32362-2.c: Same.
12624 * testsuite/libgomp.c/pr32362-3.c: Same.
12625 * testsuite/libgomp.c/pr39591-1.c: Same.
12626 * testsuite/libgomp.c/pr39591-2.c: Same.
12627 * testsuite/libgomp.c/pr39591-3.c: Same.
12628 * testsuite/libgomp.c/pr58392.c: Same.
12629 * testsuite/libgomp.c/pr58756.c: Same.
12630 * testsuite/libgomp.c/simd-1.c: Same.
12631 * testsuite/libgomp.c/simd-10.c: Same.
12632 * testsuite/libgomp.c/simd-11.c: Same.
12633 * testsuite/libgomp.c/simd-12.c: Same.
12634 * testsuite/libgomp.c/simd-13.c: Same.
12635 * testsuite/libgomp.c/simd-14.c: Same.
12636 * testsuite/libgomp.c/simd-15.c: Same.
12637 * testsuite/libgomp.c/simd-2.c: Same.
12638 * testsuite/libgomp.c/simd-3.c: Same.
12639 * testsuite/libgomp.c/simd-4.c: Same.
12640 * testsuite/libgomp.c/simd-5.c: Same.
12641 * testsuite/libgomp.c/simd-6.c: Same.
12642 * testsuite/libgomp.c/simd-7.c: Same.
12643 * testsuite/libgomp.c/simd-8.c: Same.
12644 * testsuite/libgomp.c/simd-9.c: Same.
12646 2015-06-15 Tom de Vries <tom@codesourcery.com>
12648 * testsuite/libgomp.c/pr35625.c: Fix typo.
12650 2015-06-15 Tom de Vries <tom@codesourcery.com>
12652 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
12654 * testsuite/libgomp.c/atomic-3.c: Same.
12655 * testsuite/libgomp.c/debug-1.c: Same.
12656 * testsuite/libgomp.c/nqueens-1.c: Same.
12657 * testsuite/libgomp.c/pr26171.c: Same.
12658 * testsuite/libgomp.c/pr48591.c: Same.
12659 * testsuite/libgomp.c/pr64824.c: Same.
12660 * testsuite/libgomp.c/pr64868.c: Same.
12661 * testsuite/libgomp.c/pr66133.c: Same.
12662 * testsuite/libgomp.c/pr66199-1.c: Same.
12663 * testsuite/libgomp.c/pr66199-2.c: Same.
12664 * testsuite/libgomp.c/target-8.c: Same.
12666 2015-06-15 Tom de Vries <tom@codesourcery.com>
12668 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
12670 * testsuite/libgomp.c/for-1.c: Same.
12671 * testsuite/libgomp.c/for-2.c: Same.
12672 * testsuite/libgomp.c/for-3.c: Same.
12673 * testsuite/libgomp.c/pr35625.c: Same.
12674 * testsuite/libgomp.c/pr39154.c: Same.
12675 * testsuite/libgomp.c/simd-16.c: Same.
12676 * testsuite/libgomp.c/simd-17.c: Same.
12678 2015-06-13 Tom de Vries <tom@codesourcery.com>
12680 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
12682 2015-06-13 Tom de Vries <tom@codesourcery.com>
12684 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
12685 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12686 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
12688 (main): Use N instead of hardcoded constants.
12690 2015-06-05 Tom de Vries <tom@codesourcery.com>
12692 merge from gomp4 branch:
12693 2015-05-28 Tom de Vries <tom@codesourcery.com>
12695 PR tree-optimization/65443
12696 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
12697 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
12698 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
12700 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12702 * testsuite/libgomp.graphite/bounds.c: Adjust for
12703 cleanup-tree-dump removal.
12704 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
12705 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12706 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12707 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12708 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12709 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12710 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12711 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12712 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12713 * testsuite/libgomp.graphite/pr41118.c: Likewise.
12715 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
12717 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
12718 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
12719 (futex_wake) [!__x86_64__]: Ditto.
12721 2015-05-28 Julian Brown <julian@codesourcery.com>
12723 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
12724 function comment. Only call gomp_fatal if new argument is true.
12725 (acc_dev_num_out_of_range): New function.
12726 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
12727 acc_dev_num_out_of_range as appropriate.
12728 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12729 (acc_get_device_num, acc_set_device_num): Update calls to
12731 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
12734 2015-05-28 Julian Brown <julian@codesourcery.com>
12737 * oacc-init.c (plugin/plugin-host.h): Include.
12738 (acc_on_device): Check whether we're in an offloaded region for
12740 plugin. Don't use __builtin_acc_on_device.
12741 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
12742 nonshm_exec flag in thread-local data.
12743 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
12744 data for host_nonshm plugin.
12745 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
12746 for host_nonshm plugin.
12747 * plugin/plugin-host.h: New.
12749 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12751 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
12753 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12755 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
12757 (FUTEX_PRIVATE_FLAG): Remove L suffix.
12758 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
12761 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12763 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
12765 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
12767 * target.c (gomp_map_pointer): New function abstracting out
12768 GOMP_MAP_POINTER handling.
12769 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
12770 gomp_map_pointer().
12772 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12774 PR middle-end/66199
12775 * testsuite/libgomp.c/pr66199-1.c: New test.
12776 * testsuite/libgomp.c/pr66199-2.c: New test.
12777 * testsuite/libgomp.c++/pr66199-1.C: New test.
12778 * testsuite/libgomp.c++/pr66199-2.C: New test.
12779 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
12780 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
12782 2015-05-19 Julian Brown <julian@codesourcery.com>
12784 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
12787 2015-05-13 Jakub Jelinek <jakub@redhat.com>
12789 PR middle-end/66133
12790 * testsuite/libgomp.c/pr66133.c: New test.
12792 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12794 * Makefile.in: Regenerated with automake-1.11.6.
12795 * aclocal.m4: Likewise.
12796 * config.h.in: Likewise.
12797 * configure: Likewise.
12798 * testsuite/Makefile.in: Likewise.
12800 2015-05-08 Jason Merrill <jason@redhat.com>
12802 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
12805 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
12807 2015-05-06 Julian Brown <julian@codesourcery.com>
12809 * oacc-init.c (acc_device_lock): Add explanatory comment.
12810 (resolve_device): Add comment about locking requirement.
12811 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
12812 gomp_init_device and gomp_fini_device calls.
12813 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12814 (acc_get_device_num, acc_set_device_num): Add locking around
12815 resolve_device and gomp_init_device calls.
12817 2015-05-06 Julian Brown <julian@codesourcery.com>
12819 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
12820 goacc_thread_lock on error paths.
12821 * oacc-mem.c (lookup_host): Remove locking from function. Note
12822 locking requirement for caller in function comment.
12823 (lookup_dev): Likewise.
12824 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
12825 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
12826 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
12829 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
12833 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
12834 don't expect "0x" prefix for "%p" format specifier, don't expect
12835 "(nil)" for NULL pointer.
12836 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12837 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12838 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12839 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12840 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12841 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12842 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12843 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12844 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12845 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12846 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12847 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12848 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12849 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12850 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12851 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12852 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12853 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12854 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12855 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12856 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12857 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12858 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12859 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12860 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12861 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12862 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12863 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12864 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
12865 accurately specify what we're looking for.
12866 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12867 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12868 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
12869 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12870 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12872 2015-04-30 James Norris <jnorris@codesourcery.com>
12875 * testsuite/lib/libgomp.exp
12876 (check_effective_target_openacc_host_selected)
12877 (check_effective_target_openacc_host_nonshm_selected): New
12879 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
12881 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
12882 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12883 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12884 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12885 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12886 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12887 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12888 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12889 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12890 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12891 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12892 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12893 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12894 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12895 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12896 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
12897 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12898 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12899 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12900 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12901 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12902 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
12903 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12904 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12905 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12906 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12907 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12908 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12909 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12910 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12911 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12912 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12913 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12914 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
12915 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
12916 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
12917 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
12918 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
12919 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
12920 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
12921 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
12922 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
12923 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
12925 2015-04-08 Julian Brown <julian@codesourcery.com>
12927 * libgomp.h (target_mem_desc: Remove mem_map field.
12928 (acc_dispatch_t): Remove open_device_func, close_device_func,
12929 get_device_num_func, set_device_num_func, target_data members.
12930 Change create_thread_data_func argument to device number instead of
12932 * oacc-async.c (assert.h): Include.
12933 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
12934 (acc_wait_all, acc_wait_all_async): Use current host thread's
12935 active device, not base_dev.
12936 * oacc-cuda.c (acc_get_current_cuda_device)
12937 (acc_get_current_cuda_context, acc_get_cuda_stream)
12938 (acc_set_cuda_stream): Likewise.
12939 * oacc-host.c (host_dispatch): Don't set open_device_func,
12940 close_device_func, get_device_num_func or set_device_num_func.
12941 * oacc-init.c (base_dev, init_key): Remove.
12942 (cached_base_dev): New.
12943 (name_of_acc_device_t): New.
12944 (acc_init_1): Initialise default-numbered device, not zeroth.
12945 (acc_shutdown_1): Close all devices of a given type.
12946 (goacc_destroy_thread): Don't use base_dev.
12947 (lazy_open, lazy_init, lazy_init_and_open): Remove.
12948 (goacc_attach_host_thread_to_device): New.
12949 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
12950 (acc_get_num_devices): Don't use base_dev.
12951 (acc_set_device_type): Reimplement.
12952 (acc_get_device_type): Don't use base_dev.
12953 (acc_get_device_num): Tweak logic.
12954 (acc_set_device_num): Likewise.
12955 (acc_on_device): Use acc_get_device_type.
12956 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
12957 (goacc_lazy_initialize): Reimplement with acc_init and
12958 goacc_attach_host_thread_to_device.
12959 * oacc-int.h (goacc_thread): Add base_dev field.
12960 (base_dev): Remove extern declaration.
12961 (goacc_attach_host_thread_to_device): Add prototype.
12962 * oacc-mem.c (acc_malloc): Use current thread's device instead of
12964 (acc_free): Likewise.
12965 (acc_memcpy_to_device): Likewise.
12966 (acc_memcpy_from_device): Likewise.
12967 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
12968 goacc_lazy_initialize (throughout).
12969 (GOACC_parallel): Use tgt_offset to locate target functions.
12970 * target.c (gomp_map_vars): Don't set tgt->mem_map.
12971 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
12972 (gomp_load_plugin_for_device): Remove open_device, close_device,
12973 get_device_num, set_device_num openacc hook initialisation. Don't set
12974 openacc.target_data.
12975 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
12976 (GOMP_OFFLOAD_openacc_close_device)
12977 (GOMP_OFFLOAD_openacc_get_device_num)
12978 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
12979 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
12981 * plugin/plugin-nvptx.c (ptx_inited): Remove.
12982 (instantiated_devices, ptx_dev_lock): New.
12983 (struct ptx_image_data): New.
12984 (ptx_devices, ptx_images, ptx_image_lock): New.
12985 (fini_streams_for_device): Reorder cuStreamDestroy call.
12986 (nvptx_get_num_devices): Remove forward declaration.
12987 (nvptx_init): Change return type to bool.
12988 (nvptx_fini): Remove.
12989 (nvptx_attach_host_thread_to_device): New.
12990 (nvptx_open_device): Return struct ptx_device* instead of void*.
12991 (nvptx_close_device): Change argument type to struct ptx_device*,
12992 return type to void.
12993 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
12994 (kernel_target_data, kernel_host_table): Remove static globals.
12995 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
12996 (GOMP_OFFLOAD_init_device): Reimplement.
12997 (GOMP_OFFLOAD_fini_device): Likewise.
12998 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
12999 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
13000 (GOMP_OFFLOAD_host2dev): Use ORD argument.
13001 (GOMP_OFFLOAD_openacc_open_device)
13002 (GOMP_OFFLOAD_openacc_close_device)
13003 (GOMP_OFFLOAD_openacc_set_device_num)
13004 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
13005 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
13009 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
13011 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
13013 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
13014 * libgomp.h (struct gomp_memory_mapping): Remove.
13015 (struct target_mem_desc): Change type of mem_map from
13016 gomp_memory_mapping * to splay_tree_s *.
13017 (struct gomp_device_descr): Remove register_image_func, get_table_func.
13018 Add load_image_func, unload_image_func.
13019 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
13020 Remove offload_regions_registered.
13021 (gomp_init_tables): Remove.
13022 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13024 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
13025 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
13026 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
13027 offload_regions_registered.
13028 Initialize load_image_func, unload_image_func, mem_map.root.
13029 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
13030 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
13031 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
13032 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
13033 gomp_memory_mapping *. Use dev's lock and splay_tree.
13034 (lookup_dev): Use dev's lock.
13035 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
13036 (acc_is_present): Likewise.
13037 (acc_map_data): Likewise.
13038 (acc_unmap_data): Likewise. Use dev's lock.
13039 (present_create_copy): Likewise.
13040 (delete_copyout): Pass dev to lookup_host instead of mem_map.
13041 (update_dev_host): Likewise.
13042 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
13043 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
13044 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
13045 (GOMP_OFFLOAD_get_table): Remove
13046 (GOMP_OFFLOAD_load_image): New function.
13047 (GOMP_OFFLOAD_unload_image): New function.
13048 * target.c (register_lock): New mutex for offload image registration.
13049 (num_devices): Do not guard with PLUGIN_SUPPORT.
13050 (gomp_realloc_unlock): New static function.
13051 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
13053 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
13054 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
13055 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
13057 (gomp_unmap_vars): Likewise.
13058 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
13059 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
13060 (gomp_offload_image_to_device): New static function.
13061 (GOMP_offload_register): Add mutex lock.
13062 Call gomp_offload_image_to_device for all initialized devices.
13063 Replace gomp_realloc with gomp_realloc_unlock.
13064 (GOMP_offload_unregister): New function.
13065 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
13066 get_table_func from the plugin with calls to init_device_func and
13067 gomp_offload_image_to_device.
13068 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13070 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
13071 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
13072 (GOMP_target_data): Do not call gomp_init_tables.
13073 (GOMP_target_update): Likewise. Remove argument from gomp_update.
13074 (gomp_load_plugin_for_device): Replace register_image and get_table
13075 with load_image and unload_image in DLSYM ().
13076 (gomp_register_images_for_device): Remove function.
13077 (gomp_target_init): Do not initialize current_device.mem_map.*,
13078 current_device.offload_regions_registered.
13079 Remove call to gomp_register_images_for_device.
13080 Do not free offload_images and num_offload_images.
13082 2015-03-30 Jakub Jelinek <jakub@redhat.com>
13085 * testsuite/libgomp.fortran/pr65597.f90: New test.
13087 2015-03-27 Tom de Vries <tom@codesourcery.com>
13090 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
13091 (init, check): New function.
13092 (foo): Change return type to void.
13093 (main): Call init and check.
13095 2015-03-27 Tom de Vries <tom@codesourcery.com>
13098 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
13099 (foo): Use M for non-inner loops to scale down test-case.
13101 2015-03-25 Kai Tietz <ktietz@redhat.com>
13104 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
13105 (GOACC_data_start): Likewise.
13106 * target.c (gomp_map_vars): Likewise.
13108 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
13110 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
13113 2015-03-19 Jakub Jelinek <jakub@redhat.com>
13115 * testsuite/libgomp.c/target-10.c: New test.
13116 * testsuite/libgomp.c++/target-4.C: New test.
13118 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
13120 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
13121 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
13123 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
13125 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
13126 * configure.ac (*-*-rtems*): Assume Pthread is supported.
13127 (pthread.h): Check for this header file.
13128 * configure: Regenerate.
13130 2015-02-25 Tom de Vries <tom@codesourcery.com>
13132 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
13133 (check_reduction_op, check_reduction_macro, max, min):
13135 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
13137 (main): Use new functions.
13139 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
13141 * target.c (gomp_load_plugin_for_device): Use const char * instead of
13142 char * for variables holding dlerror return values.
13143 (DLSYM_OPT): Ditto.
13145 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13147 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
13149 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13150 Cesar Philippidis <cesar@codesourcery.com>
13152 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
13153 GOACC_ctaid, and GOACC_nctaid routines.
13155 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13158 * testsuite/libgomp.c/atomic-18.c: New test.
13159 * testsuite/libgomp.c++/atomic-16.C: New test.
13161 2015-02-04 Jakub Jelinek <jakub@redhat.com>
13165 * testsuite/libgomp.c/pr64824.c: New test.
13166 * testsuite/libgomp.c/pr64868.c: New test.
13167 * testsuite/libgomp.c++/pr64824.C: New test.
13168 * testsuite/libgomp.c++/pr64868.C: New test.
13170 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
13173 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
13174 Link with -lpthread.
13175 * config/aix/plugin-suffix.h: Delete.
13177 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
13180 * configure.tgt (*-*-aix*): Use config_path "aix posix".
13181 (*-*-darwin*): Use config_path "bsd darwin posix".
13182 (*-*-hpux*): Use config_path "hpux posix".
13183 * target.c: Add include of plugin-suffix.h and use
13184 SONAME_SUFFIX macro.
13185 * config/aix/plugin-suffix.h: New file.
13186 * config/darwin/plugin-suffix.h: New file.
13187 * config/hpux/plugin-suffix.h: New file.
13188 * config/posix/plugin-suffix.h: New file.
13190 2015-01-23 Jakub Jelinek <jakub@redhat.com>
13192 PR middle-end/64734
13193 * libgomp.c/pr64734.c: New test.
13195 2015-01-23 Tom de Vries <tom@codesourcery.com>
13198 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
13200 2015-01-23 Tom de Vries <tom@codesourcery.com>
13203 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
13206 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
13209 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
13210 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
13211 formal parameter. Update all users.
13212 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
13213 Document unused formal parameter.
13215 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
13217 * oacc-parallel.c: Don't include <alloca.h>.
13218 (GOACC_parallel): Use gomp_alloca instead of alloca.
13220 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
13222 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
13224 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
13225 James Norris <jnorris@codesourcery.com>
13226 Tom de Vries <tom@codesourcery.com>
13227 Julian Brown <julian@codesourcery.com>
13228 Cesar Philippidis <cesar@codesourcery.com>
13229 Nathan Sidwell <nathan@codesourcery.com>
13230 Tobias Burnus <burnus@net-b.de>
13232 * Makefile.am (search_path): Add $(top_srcdir)/../include.
13233 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
13234 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
13235 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
13236 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
13237 Include $(top_srcdir)/plugin/Makefrag.am.
13238 (nodist_libsubinclude_HEADERS): Add openacc.h.
13239 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
13240 openacc.f90, openacc.mod, openacc_kinds.mod.
13241 (omp_lib.mod): Generalize into...
13242 (%.mod): ... this new rule.
13243 (openacc_kinds.mod, openacc.mod): New rules.
13244 * plugin/configfrag.ac: New file.
13245 * configure.ac: Move plugin/offloading support into it. Include
13246 it. Instantiate testsuite/libgomp-test-support.pt.exp.
13247 * plugin/Makefrag.am: New file.
13248 * testsuite/Makefile.am (OFFLOAD_TARGETS)
13249 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
13251 (libgomp-test-support.exp): New rule.
13252 (all-local): Depend on it.
13253 * Makefile.in: Regenerate.
13254 * testsuite/Makefile.in: Regenerate.
13255 * config.h.in: Likewise.
13256 * configure: Likewise.
13257 * configure.tgt: Harden shell syntax.
13258 * env.c: Include "oacc-int.h".
13259 (parse_acc_device_type): New function.
13260 (gomp_debug_var, goacc_device_type, goacc_device_num): New
13262 (initialize_env): Initialize those. Call
13263 goacc_runtime_initialize.
13264 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
13265 (gomp_fatal): Call gomp_vfatal.
13266 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
13267 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
13268 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
13269 (splay_tree_node, splay_tree, splay_tree_key)
13270 (struct target_mem_desc, struct splay_tree_key_s)
13271 (struct gomp_memory_mapping, struct acc_dispatch_t)
13272 (struct gomp_device_descr, gomp_acc_insert_pointer)
13273 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
13274 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
13275 (gomp_free_memmap, gomp_fini_device): New declarations.
13276 (gomp_vdebug, gomp_debug): New macros.
13277 Include "splay-tree.h".
13278 * libgomp.map (OACC_2.0): New symbol version. Use for
13279 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
13280 acc_set_device_type_h_, acc_get_device_type,
13281 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
13282 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
13283 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
13284 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
13285 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
13286 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
13287 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
13288 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
13289 acc_copyin_array_h_, acc_present_or_copyin,
13290 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
13291 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
13292 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
13293 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
13294 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
13295 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
13296 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
13297 acc_update_device, acc_update_device_32_h_,
13298 acc_update_device_64_h_, acc_update_device_array_h_,
13299 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
13300 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
13301 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
13302 acc_is_present_64_h_, acc_is_present_array_h_,
13303 acc_memcpy_to_device, acc_memcpy_from_device,
13304 acc_get_current_cuda_device, acc_get_current_cuda_context,
13305 acc_get_cuda_stream, acc_set_cuda_stream.
13306 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
13307 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
13308 GOACC_update, GOACC_wait, GOACC_get_thread_num,
13309 GOACC_get_num_threads.
13310 (GOMP_PLUGIN_1.0): New symbol version. Use for
13311 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
13312 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
13313 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
13314 GOMP_PLUGIN_acc_thread.
13315 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
13316 environment variable.
13317 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
13318 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
13319 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
13320 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
13321 (splay_tree_remove): New declarations.
13322 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
13323 (splay_tree_remove, splay_tree_lookup): Move into...
13324 * splay-tree.c: ... this new file.
13325 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
13326 (splay_tree_node, splay_tree, splay_tree_key)
13327 (struct target_mem_desc, struct splay_tree_key_s)
13328 (struct gomp_device_descr): Don't declare.
13329 (num_devices_openmp): New variable.
13330 (gomp_get_num_devices ): Use it.
13331 (gomp_init_targets_once): New function.
13332 (gomp_get_num_devices ): Use it.
13333 (get_kind, gomp_copy_from_async, gomp_free_memmap)
13334 (gomp_fini_device, gomp_register_image_for_device): New functions.
13335 (gomp_map_vars): Add devaddrs parameter.
13336 (gomp_update): Add mm parameter.
13337 (gomp_init_device): Move most of it into...
13338 (gomp_init_tables): ... this new function.
13339 (gomp_register_images_for_device): Remove function.
13340 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
13341 Make them hidden instead of static.
13342 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
13343 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
13344 (GOMP_target_end_data, GOMP_target_update)
13345 (gomp_load_plugin_for_device, gomp_target_init): Update for
13347 * oacc-async.c: New file.
13348 * oacc-cuda.c: Likewise.
13349 * oacc-host.c: Likewise.
13350 * oacc-init.c: Likewise.
13351 * oacc-int.h: Likewise.
13352 * oacc-mem.c: Likewise.
13353 * oacc-parallel.c: Likewise.
13354 * oacc-plugin.c: Likewise.
13355 * oacc-plugin.h: Likewise.
13356 * oacc-ptx.h: Likewise.
13357 * openacc.f90: Likewise.
13358 * openacc.h: Likewise.
13359 * openacc_lib.h: Likewise.
13360 * plugin/plugin-host.c: Likewise.
13361 * plugin/plugin-nvptx.c: Likewise.
13362 * libgomp-plugin.c: Likewise.
13363 * libgomp-plugin.h: Likewise.
13364 * libgomp_target.h: Remove file after merging content into the
13365 former file. Update all users.
13366 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
13367 (offload_targets_s, offload_targets_s_openacc): New variables.
13368 (check_effective_target_openacc_nvidia_accel_present)
13369 (check_effective_target_openacc_nvidia_accel_selected): New
13371 (libgomp_init): Update for OpenACC changes.
13372 * testsuite/libgomp-test-support.exp.in: New file.
13373 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
13374 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13375 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13376 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
13377 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
13378 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13379 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
13380 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13381 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13382 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
13383 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
13384 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13385 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
13386 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13387 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
13388 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13389 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
13390 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
13391 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
13392 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
13393 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
13394 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
13395 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13396 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13397 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13398 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13399 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13400 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13401 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13402 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13403 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13404 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13405 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13406 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
13407 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
13408 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13409 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13410 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13411 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
13412 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
13413 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13414 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13415 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13416 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13417 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13418 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
13419 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13420 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13421 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13422 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13423 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13424 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13425 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13426 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13427 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13428 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13429 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13430 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13431 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13432 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
13433 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
13434 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
13435 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13436 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13437 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13438 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
13439 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
13440 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13441 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13442 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13443 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
13444 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13445 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13446 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13447 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
13448 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
13449 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13450 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13451 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
13452 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
13453 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
13454 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
13455 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13456 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13457 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13458 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
13459 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
13460 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13461 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13462 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
13463 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
13464 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
13465 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
13466 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13467 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13468 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13469 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13470 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
13471 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13472 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13473 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
13474 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
13475 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
13476 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13477 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
13478 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
13479 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
13480 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
13481 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
13482 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13483 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
13484 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
13485 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13486 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
13487 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
13488 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
13489 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
13490 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
13491 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
13492 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
13493 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
13494 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
13495 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13496 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
13497 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
13498 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
13499 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
13500 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
13501 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
13502 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
13503 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
13504 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
13505 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13506 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
13507 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13508 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13509 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13510 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13511 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13512 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
13514 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
13515 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
13516 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
13517 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13518 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
13519 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13520 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
13521 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13522 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13523 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13524 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13525 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13526 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13527 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
13528 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
13529 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
13530 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
13531 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
13532 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
13533 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
13534 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
13535 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
13536 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
13537 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
13538 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
13539 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
13540 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13541 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13542 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13543 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13544 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13545 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13546 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13547 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13548 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
13549 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
13550 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
13551 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
13552 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
13553 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
13554 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
13555 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
13556 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
13557 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
13558 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
13559 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
13560 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
13561 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
13562 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
13563 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13564 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13565 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13566 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13567 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13568 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
13569 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
13570 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
13571 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
13572 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
13573 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
13575 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
13576 Julian Brown <julian@codesourcery.com>
13577 David Malcolm <dmalcolm@redhat.com>
13579 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
13580 to "GNU Offloading and Multi Processing Runtime Library". Change
13582 * configure: Regenerate.
13583 * libgomp.texi: Update.
13585 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
13587 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
13589 * configure: Regenerate.
13591 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
13592 "intelmic" in $offload_targets.
13594 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13596 Update copyright years.
13598 * libgomp.texi: Bump @copying's copyright year.
13600 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13602 * testsuite/lib/libgomp.exp: Load target-utils.exp.
13603 Move load of target-supports.exp earlier.
13605 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
13607 * testsuite/libgomp.c/target-9.c: New test.
13609 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
13611 * config.h.in: Regenerate.
13612 * configure: Regenerate.
13613 * configure.ac: Add GCC_CHECK_EMUTLS.
13614 * libgomp.h: Add check for USE_EMUTLS: this case
13615 is equal to HAVE_TLS.
13616 * team.c: Likewise.
13618 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
13620 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
13622 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
13623 Ilya Verbin <ilya.verbin@intel.com>
13625 * testsuite/libgomp.c/target-critical-1.c: New test.
13627 2014-11-26 Jakub Jelinek <jakub@redhat.com>
13629 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
13630 to dg-options unless expensive testing is on.
13631 (TESTITERS): Define to N if not defined.
13632 (main): Use TESTITERS instead of N.
13633 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
13634 dg-additional-options depending on whether expensive testing is on.
13635 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
13636 Decrease N to 100000 and CHUNKSZ to 10000.
13638 2014-11-24 Jakub Jelinek <jakub@redhat.com>
13641 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
13642 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
13644 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
13646 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
13648 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
13651 * configure: Regenerated.
13653 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
13655 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
13656 vect_simd_clones effective target.
13657 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13659 2014-11-14 Jakub Jelinek <jakub@redhat.com>
13661 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
13662 of 32 as block_size.
13663 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
13664 instead of 32 as block_size.
13666 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
13667 Ilya Verbin <ilya.verbin@intel.com>
13669 * Makefile.in: Regenerate.
13670 * configure: Regenerate.
13671 * configure.ac: Set up offload_additional_options,
13672 offload_additional_lib_paths and offload_targets.
13673 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
13674 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
13675 * testsuite/Makefile.in: Regenerate.
13676 * testsuite/lib/libgomp.exp (libgomp_init): Append
13677 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
13678 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
13679 build directory to LD_LIBRARY_PATH for intelmic offload targets.
13681 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
13682 Ilya Verbin <ilya.verbin@intel.com>
13683 Kirill Yukhin <kirill.yukhin@intel.com>
13684 Ilya Tocar <ilya.tocar@intel.com>
13686 * testsuite/lib/libgomp.exp
13687 (check_effective_target_offload_device): New.
13688 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
13689 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
13690 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
13691 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
13692 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
13693 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
13694 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
13695 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
13696 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
13697 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
13698 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
13699 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
13700 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
13701 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
13702 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
13703 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
13704 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
13705 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
13706 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
13707 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
13708 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
13709 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
13710 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
13711 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
13712 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
13713 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
13714 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
13715 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
13716 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
13717 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
13718 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
13719 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
13720 * testsuite/libgomp.c/target-7.c: Fix test.
13721 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
13722 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
13723 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
13724 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
13725 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
13726 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
13727 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
13728 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
13729 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
13730 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
13731 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
13732 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
13733 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
13734 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
13735 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
13736 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
13737 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
13738 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
13739 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13740 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
13741 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
13742 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
13743 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
13744 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
13745 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
13746 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
13747 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
13748 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
13749 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
13750 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
13751 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
13753 2014-11-13 Jakub Jelinek <jakub@redhat.com>
13754 Ilya Verbin <ilya.verbin@intel.com>
13755 Thomas Schwinge <thomas@codesourcery.com>
13756 Andrey Turetskiy <andrey.turetskiy@intel.com>
13758 * libgomp.map (GOMP_4.0.1): New symbol version.
13759 Add GOMP_offload_register.
13760 * libgomp_target.h: New file.
13761 * splay-tree.h: New file.
13762 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
13763 (gomp_target_init): New forward declaration.
13764 (gomp_is_initialized): New static variable.
13765 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
13766 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
13768 (offload_images, num_offload_images, devices, num_devices): New static
13770 (splay_compare): New static function.
13771 (struct gomp_device_descr): New structure.
13772 (gomp_get_num_devices): Call gomp_target_init.
13773 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
13774 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
13775 (GOMP_offload_register): New function.
13776 (GOMP_target): Arrange for host callback to be performed in a separate
13777 initial thread and contention group, inheriting ICVs from
13778 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
13779 Add device initialization and lookup for target function in splay tree.
13780 (GOMP_target_data): Add device initialization and call gomp_map_vars.
13781 (GOMP_target_end_data): Call gomp_unmap_vars.
13782 (GOMP_target_update): Add device initialization and call gomp_update.
13783 (gomp_load_plugin_for_device, gomp_register_images_for_device)
13784 (gomp_target_init): New static functions.
13786 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
13787 Thomas Schwinge <thomas@codesourcery.com>
13788 Ilya Verbin <ilya.verbin@intel.com>
13789 Andrey Turetskiy <andrey.turetskiy@intel.com>
13791 * config.h.in: Regenerate.
13792 * configure: Regenerate.
13793 * configure.ac: Check for libdl, required for plugin support.
13794 (PLUGIN_SUPPORT): Define if plugins are supported.
13795 (enable_offload_targets): Support Intel MIC targets.
13796 (OFFLOAD_TARGETS): List of target names suitable for offloading.
13798 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13801 * configure: Regenerate.
13803 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13805 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
13807 2014-10-06 Marek Polacek <polacek@redhat.com>
13809 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
13810 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
13811 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
13812 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13814 2014-10-06 Marek Polacek <polacek@redhat.com>
13816 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
13817 * testsuite/libgomp.c/nqueens-1.c: Likewise.
13818 * testsuite/libgomp.c/pr26943-3.c: Likewise.
13819 * testsuite/libgomp.c/pr26943-4.c: Likewise.
13820 * testsuite/libgomp.c/pr36802-2.c: Likewise.
13821 * testsuite/libgomp.c/pr36802-3.c: Likewise.
13822 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
13823 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13824 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
13825 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
13826 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
13827 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
13828 * testsuite/libgomp.c/omp-single-1.c: Likewise.
13829 * testsuite/libgomp.c/omp-single-2.c: Likewise.
13830 * testsuite/libgomp.c/omp_matvec.c: Likewise.
13831 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
13832 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
13833 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
13836 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13839 * testsuite/libgomp.c/pr61200.c: New test.
13841 2014-09-18 Jakub Jelinek <jakub@redhat.com>
13844 * testsuite/libgomp.c++/pr63248.C: New test.
13846 2014-08-04 Jakub Jelinek <jakub@redhat.com>
13848 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
13849 is not zero, but taskgroup->children is NULL and there are
13850 any task->children, schedule those instead of waiting.
13851 * testsuite/libgomp.c/depend-6.c: New test.
13852 * testsuite/libgomp.c/depend-7.c: New test.
13853 * testsuite/libgomp.c/depend-8.c: New test.
13854 * testsuite/libgomp.c/depend-9.c: New test.
13855 * testsuite/libgomp.c/depend-10.c: New test.
13857 2014-08-01 Jakub Jelinek <jakub@redhat.com>
13859 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
13860 (struct gomp_taskwait): New type.
13861 (struct gomp_task): Add taskwait and parent_depends_on, remove
13862 in_taskwait and taskwait_sem fields.
13863 (gomp_finish_task): Don't destroy taskwait_sem.
13864 * task.c (gomp_init_task): Don't init in_taskwait, instead init
13865 taskwait and parent_depends_on.
13866 (GOMP_task): For if (0) tasks with depend clause that depend on
13867 earlier tasks don't defer them, instead call
13868 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
13869 Initialize redundant_out field, for redundant out entries just
13870 move them at the end of linked list instead of removing them
13871 completely, and set redundant_out flag instead of redundant.
13872 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
13874 (gomp_task_run_post_handle_dependers): If parent is in
13875 gomp_task_maybe_wait_for_dependencies and newly runnable task
13876 is not parent_depends_on, queue it in parent->children linked
13877 list after all runnable tasks with parent_depends_on set.
13878 Adjust for addition of taskwait indirection.
13879 (gomp_task_run_post_remove_parent): If parent is in
13880 gomp_task_maybe_wait_for_dependencies and task to be removed
13881 is parent_depends_on, decrement n_depend and if needed awake
13882 parent. Adjust for addition of taskwait indirection.
13883 (GOMP_taskwait): Adjust for addition of taskwait indirection.
13884 (gomp_task_maybe_wait_for_dependencies): New function.
13885 * testsuite/libgomp.c/depend-5.c: New test.
13887 2014-07-13 Tobias Burnus <burnus@net-b.de>
13889 * testsuite/libgomp.fortran/pr34020.f90: Make compile
13890 with TS 18508/Fortran 2015.
13892 2014-07-06 Marek Polacek <polacek@redhat.com>
13895 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
13897 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13899 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
13900 matches regex $lang_source_re, add $lang_include_flags to options.
13901 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
13902 * testsuite/libgomp.c++/c++.exp: Likewise.
13903 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
13904 and lang_include_flags instead of adding -fintrinsic-modules-path= to
13906 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
13908 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
13910 * testsuite/libgomp.fortran/fortran.exp: Explain
13911 gfortran-dg-runtest usage.
13913 2014-06-25 Jakub Jelinek <jakub@redhat.com>
13915 * testsuite/libgomp.fortran/simd5.f90: New test.
13916 * testsuite/libgomp.fortran/simd6.f90: New test.
13917 * testsuite/libgomp.fortran/simd7.f90: New test.
13919 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13921 * testsuite/libgomp.c/for-2.c: Define SC to static for
13922 #pragma omp for simd testing.
13923 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
13924 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
13926 * testsuite/libgomp.c/simd-14.c: New test.
13927 * testsuite/libgomp.c/simd-15.c: New test.
13928 * testsuite/libgomp.c/simd-16.c: New test.
13929 * testsuite/libgomp.c/simd-17.c: New test.
13930 * testsuite/libgomp.c++/for-10.C: Define SC to static for
13931 #pragma omp for simd testing.
13932 * testsuite/libgomp.c++/simd10.C: New test.
13933 * testsuite/libgomp.c++/simd11.C: New test.
13934 * testsuite/libgomp.c++/simd12.C: New test.
13935 * testsuite/libgomp.c++/simd13.C: New test.
13937 * testsuite/libgomp.fortran/aligned1.f03: New test.
13938 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
13939 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
13940 tasks with !$omp parallel !$omp single.
13941 * testsuite/libgomp.fortran/target8.f90: New test.
13942 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
13943 not to use trim in the combiner, instead call elemental function.
13944 (fn): New elemental function.
13945 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
13947 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
13949 * testsuite/libgomp.fortran/udr12.f90: New test.
13950 * testsuite/libgomp.fortran/udr13.f90: New test.
13951 * testsuite/libgomp.fortran/udr14.f90: New test.
13952 * testsuite/libgomp.fortran/udr15.f90: New test.
13954 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13956 * omp_lib.f90.in (openmp_version): Set to 201307.
13957 * omp_lib.h.in (openmp_version): Likewise.
13958 * testsuite/libgomp.c/target-8.c: New test.
13959 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
13960 and inbranch clauses.
13961 * testsuite/libgomp.fortran/depend-3.f90: New test.
13962 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
13964 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13965 * testsuite/libgomp.fortran/target1.f90: New test.
13966 * testsuite/libgomp.fortran/target2.f90: New test.
13967 * testsuite/libgomp.fortran/target3.f90: New test.
13968 * testsuite/libgomp.fortran/target4.f90: New test.
13969 * testsuite/libgomp.fortran/target5.f90: New test.
13970 * testsuite/libgomp.fortran/target6.f90: New test.
13971 * testsuite/libgomp.fortran/target7.f90: New test.
13973 2014-06-10 Jakub Jelinek <jakub@redhat.com>
13976 * testsuite/libgomp.fortran/allocatable9.f90: New test.
13977 * testsuite/libgomp.fortran/allocatable10.f90: New test.
13978 * testsuite/libgomp.fortran/allocatable11.f90: New test.
13979 * testsuite/libgomp.fortran/allocatable12.f90: New test.
13980 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
13981 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
13982 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
13983 * testsuite/libgomp.fortran/associate1.f90: New test.
13984 * testsuite/libgomp.fortran/associate2.f90: New test.
13985 * testsuite/libgomp.fortran/procptr1.f90: New test.
13987 2014-06-06 Jakub Jelinek <jakub@redhat.com>
13989 * testsuite/libgomp.fortran/simd1.f90: New test.
13990 * testsuite/libgomp.fortran/udr1.f90: New test.
13991 * testsuite/libgomp.fortran/udr2.f90: New test.
13992 * testsuite/libgomp.fortran/udr3.f90: New test.
13993 * testsuite/libgomp.fortran/udr4.f90: New test.
13994 * testsuite/libgomp.fortran/udr5.f90: New test.
13995 * testsuite/libgomp.fortran/udr6.f90: New test.
13996 * testsuite/libgomp.fortran/udr7.f90: New test.
13997 * testsuite/libgomp.fortran/udr8.f90: New test.
13998 * testsuite/libgomp.fortran/udr9.f90: New test.
13999 * testsuite/libgomp.fortran/udr10.f90: New test.
14000 * testsuite/libgomp.fortran/udr11.f90: New test.
14002 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
14004 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
14005 vect_simd_clones effective target.
14006 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
14008 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14010 PR middle-end/61252
14011 * testsuite/libgomp.c++/simd-9.C: New test.
14013 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
14015 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
14016 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
14017 texts according to their @menu entry positions.
14019 2014-05-11 Jakub Jelinek <jakub@redhat.com>
14021 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
14022 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
14023 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
14024 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
14025 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
14026 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
14027 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
14028 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
14029 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
14030 * testsuite/libgomp.fortran/depend-1.f90: New test.
14031 * testsuite/libgomp.fortran/depend-2.f90: New test.
14032 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
14033 * testsuite/libgomp.fortran/simd1.f90: New test.
14034 * testsuite/libgomp.fortran/simd2.f90: New test.
14035 * testsuite/libgomp.fortran/simd3.f90: New test.
14036 * testsuite/libgomp.fortran/simd4.f90: New test.
14037 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
14039 2014-05-02 Jakub Jelinek <jakub@redhat.com>
14041 * testsuite/libgomp.c/simd-10.c: New test.
14042 * testsuite/libgomp.c/simd-11.c: New test.
14043 * testsuite/libgomp.c/simd-12.c: New test.
14044 * testsuite/libgomp.c/simd-13.c: New test.
14046 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14048 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
14049 atomic type clauses in any order and optional comma in between.
14050 * testsuite/libgomp.c++/atomic-15.C: Likewise.
14051 * testsuite/libgomp.c/atomic-17.c: Likewise.
14053 * testsuite/libgomp.c/simd-7.c: New test.
14054 * testsuite/libgomp.c/simd-8.c: New test.
14055 * testsuite/libgomp.c/simd-9.c: New test.
14056 * testsuite/libgomp.c/loop-16.c: New test.
14058 2014-04-02 Richard Henderson <rth@redhat.com>
14060 * config/linux/futex.h (futex_wait): Get error value from errno.
14061 (futex_wake): Likewise.
14063 2014-03-25 Jakub Jelinek <jakub@redhat.com>
14066 * testsuite/libgomp.c++/udr-11.C: New test.
14067 * testsuite/libgomp.c++/udr-12.C: New test.
14068 * testsuite/libgomp.c++/udr-13.C: New test.
14069 * testsuite/libgomp.c++/udr-14.C: New test.
14070 * testsuite/libgomp.c++/udr-15.C: New test.
14071 * testsuite/libgomp.c++/udr-16.C: New test.
14072 * testsuite/libgomp.c++/udr-17.C: New test.
14073 * testsuite/libgomp.c++/udr-18.C: New test.
14074 * testsuite/libgomp.c++/udr-19.C: New test.
14076 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14078 Update copyright years
14080 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14082 * hashtab.h: Use the standard form for the copyright notice.
14084 2014-01-02 Tobias Burnus <burnus@net-b.de>
14086 * libgomp.texi: Bump @copying's copyright year.
14088 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
14090 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
14091 alloca () with __builtin_alloca ().
14092 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
14093 * testsuite/libgomp.c/lock-3.c: Likewise.
14094 * testsuite/libgomp.c/pr48591.c: Likewise.
14096 2013-12-17 Jakub Jelinek <jakub@redhat.com>
14099 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
14102 2013-12-16 Jakub Jelinek <jakub@redhat.com>
14105 * testsuite/libgomp.c/pr58756.c: New test.
14107 2013-12-12 Jakub Jelinek <jakub@redhat.com>
14110 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
14113 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
14115 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
14117 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
14118 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
14119 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
14120 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
14123 * libgomp_g.h: Include <stddef.h> for size_t.
14125 * libgomp.spec.in: Update comment about libgomp's dependencies.
14126 * configure.ac: Likewise.
14127 * configure: Regenerate.
14129 2013-10-16 Tobias Burnus <burnus@net-b.de>
14131 * libgomp.texi: (Runtime Library Routines): Update references for
14132 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
14133 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
14134 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
14135 (Environment Variables): Update references for OpenMP 4.0. Add
14136 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
14137 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
14140 2013-10-14 Jakub Jelinek <jakub@redhat.com>
14142 * env.c (parse_bind_var): Initialize value to avoid
14143 (false positive) warning.
14145 2013-10-12 Jakub Jelinek <jakub@redhat.com>
14148 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
14150 (gomp_init_num_threads): Move i variable declaration into
14151 #ifdef CPU_ALLOC_SIZE block.
14152 * config/linux/affinity.c (gomp_affinity_init_level): Test
14153 gomp_places_list_len == 0 rather than gomp_places_list == 0
14154 when checking for topology reading error.
14155 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
14156 * env.c (parse_affinity): Add ignore argument, if true, don't populate
14157 gomp_places_list, only parse env var and always return false.
14158 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
14159 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
14160 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
14161 and either of these variables were parsed correctly into a places
14164 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14165 Jakub Jelinek <jakub@redhat.com>
14167 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
14168 of 5 loopfn matches.
14169 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14170 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14171 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14172 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14173 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14174 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14175 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14176 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14178 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14180 * Makefile.am (omp_lib.mod): Streamline rule.
14181 * Makefile.in: Regenerate.
14183 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
14186 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
14187 * testsuite/libgomp.fortran/lib1.f90: Likewise.
14188 * testsuite/libgomp.fortran/lib2.f: Likewise.
14189 * testsuite/libgomp.fortran/lib3.f: Likewise.
14191 * configure.ac: Typo fix.
14192 * configure: Regenerate.
14194 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
14195 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14197 * omp.h.in: Don't touch the user's namespace.
14199 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14200 Tobias Burnus <burnus@net-b.de>
14201 Richard Henderson <rth@redhat.com>
14203 * target.c: New file.
14204 * Makefile.am (libgomp_la_SOURCES): Add target.c.
14205 * Makefile.in: Regenerated.
14206 * libgomp_g.h (GOMP_task): Add depend argument.
14207 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14208 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14209 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
14210 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14211 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14212 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
14213 GOMP_taskgroup_start, GOMP_taskgroup_end,
14214 GOMP_parallel_sections): New prototypes.
14215 * fortran.c (omp_is_initial_device): Add ialias_redirect.
14216 (omp_is_initial_device_): New function.
14217 (ULP, STR1, STR2, ialias_redirect): Removed.
14218 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
14219 omp_set_default_device_8_, omp_get_default_device_,
14220 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
14222 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14223 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14224 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
14226 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
14227 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
14228 omp_set_default_device, omp_set_default_device_,
14229 omp_set_default_device_8_, omp_get_default_device,
14230 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
14231 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
14232 omp_get_team_num_): Export @@OMP_4.0.
14233 * team.c (struct gomp_thread_start_data): Add place field.
14234 (gomp_thread_start): Clear thr->thread_pool and
14235 thr->task before returning. Use gomp_team_barrier_wait_final
14236 instead of gomp_team_barrier_wait. Initialize thr->place.
14237 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
14238 team_cancelled and task_queued_count fields.
14239 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
14240 before calling pthread_exit.
14241 (gomp_free_thread): No longer static. Use
14242 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
14243 (gomp_team_start): Add flags argument. Set
14244 thr->thread_pool->threads_busy to nthreads immediately after creating
14245 new pool. Use gomp_managed_threads_lock instead of
14246 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
14247 (gomp_team_end): Use gomp_managed_threads_lock instead of
14248 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
14249 of gomp_team_barrier_wait. If team->team_cancelled, call
14250 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
14251 rather than thr->ts.work_share.
14252 (initialize_team): Don't call gomp_sem_init here.
14253 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
14255 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
14256 * env.c (gomp_global_icv): Add default_device_var, target_data and
14257 bind_var initializers.
14258 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14259 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14260 gomp_places_list_len): New variables.
14261 (parse_bind_var, parse_one_place, parse_places_var): New functions.
14262 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
14264 (gomp_cancel_var): New global variable.
14265 (parse_int): New function.
14266 (handle_omp_display_env): New function.
14267 (initialize_env): Use it. Initialize default_device_var.
14268 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
14269 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
14270 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
14271 been successfully parsed (and call gomp_init_affinity in that case).
14272 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14273 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14274 omp_get_team_num, omp_is_initial_device): New functions.
14275 * libgomp.h: Include stdlib.h.
14276 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
14278 (struct target_mem_desc): Forward declare.
14279 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
14280 and thread_limit_var fields.
14281 (gomp_get_num_devices): New prototype.
14282 (gomp_cancel_var): New extern decl.
14283 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
14284 team_cancelled and task_queued_count fields. Add comments about
14285 task_{,queued_,running_}count.
14286 (gomp_cancel_kind): New enum.
14287 (gomp_work_share_end_cancel): New prototype.
14288 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
14289 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
14291 (struct gomp_taskgroup): New type.
14292 (struct gomp_task_depend_entry,
14293 struct gomp_dependers_vec): New types.
14294 (gomp_finish_task): Free depend_hash if non-NULL.
14295 (struct gomp_team_state): Add place_partition_off
14296 and place_partition_len fields.
14297 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14298 gomp_places_list_len): New extern decls.
14299 (struct gomp_thread): Add place field.
14300 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14301 (gomp_init_thread_affinity): Add place argument.
14302 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14303 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14304 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14305 gomp_affinity_init_level, gomp_affinity_print_place): New
14307 (gomp_team_start): Add flags argument.
14308 (gomp_thread_limit_var, gomp_remaining_threads_count,
14309 gomp_remaining_threads_lock): Remove.
14310 (gomp_managed_threads_lock): New variable.
14311 (struct gomp_thread_pool): Add threads_busy field.
14312 (gomp_free_thread): New prototype.
14313 * task.c: Include hashtab.h.
14314 (hash_entry_type): New typedef.
14315 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
14316 (gomp_init_task): Clear dependers, depend_hash, depend_count,
14317 copy_ctors_done and taskgroup fields.
14318 (GOMP_task): Add depend argument, handle depend clauses. If
14319 gomp_team_barrier_cancelled or if it's taskgroup has been
14320 cancelled, don't queue or start new tasks. Set copy_ctors_done
14321 field if needed. Initialize taskgroup field. If copy_ctors_done
14322 and already cancelled, don't discard the task. If taskgroup is
14323 non-NULL, enqueue the task into taskgroup queue. Increment
14324 num_children field in taskgroup. Increment task_queued_count.
14325 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
14326 gomp_task_run_post_remove_taskgroup): New inline functions.
14327 (gomp_task_run_post_handle_depend_hash,
14328 gomp_task_run_post_handle_dependers,
14329 gomp_task_run_post_handle_depend): New functions.
14330 (GOMP_taskwait): Use them. If more than one new tasks
14331 have been queued, wake other threads if needed.
14332 (gomp_barrier_handle_tasks): Likewise. If
14333 gomp_team_barrier_cancelled, don't start any new tasks, just free
14335 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
14337 (omp_proc_bind_kind, omp_proc_bind_false,
14338 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14339 omp_proc_bind_spread): New params.
14340 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14341 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14342 omp_get_team_num, omp_is_initial_device): New interfaces.
14343 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
14344 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
14345 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
14346 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
14347 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
14348 useless use omp_lib_kinds.
14349 * omp.h.in (omp_proc_bind_t): New typedef.
14350 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14351 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14352 omp_get_team_num, omp_is_initial_device): New prototypes.
14353 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
14354 through to gomp_team_start.
14355 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
14356 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
14357 Adjust gomp_parallel_loop_start callers.
14358 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14359 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14360 GOMP_loop_end_cancel): New functions.
14361 (GOMP_parallel_end): Add ialias_redirect.
14362 * hashtab.h: New file.
14363 * libgomp.texi (Environment Variables): Minor cleanup,
14364 update section refs to OpenMP 4.0rc2.
14365 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
14366 environment variables.
14367 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
14368 team->work_shares_to_free to thr->ts.work_share before calling
14370 (gomp_work_share_end_cancel): New function.
14371 * config/linux/proc.c: Include errno.h.
14372 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
14373 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
14374 sizeof (cpu_set_t) to determine number of iterations. Fix up check
14375 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
14376 gomp_cpuset_size is sizeof (cpu_set_t).
14377 (gomp_init_num_threads): Initialize gomp_cpuset_size,
14378 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
14379 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
14380 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
14381 contain any logical CPUs.
14382 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
14383 is NULL. Use gomp_cpusetp instead of &cpuset and pass
14384 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
14385 pthread_getaffinity_np. Check gomp_places_list instead of
14386 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
14387 * config/linux/bar.c (gomp_barrier_wait_end,
14388 gomp_barrier_wait_last): Use BAR_* defines.
14389 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
14390 from state where needed. Set work_share_cancelled to 0 on last
14392 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
14393 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
14395 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
14396 Add cpusetsize argument.
14397 (gomp_cpuset_size, gomp_cpusetp): Declare.
14398 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
14399 (affinity_counter): Remove.
14400 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
14401 if CPU_ALLOC_SIZE isn't defined.
14402 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
14403 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
14404 bind current thread to the first place.
14405 (gomp_init_thread_affinity): Rewritten. Add place argument, just
14406 pthread_setaffinity_np to gomp_places_list[place].
14407 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14408 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14409 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14410 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
14411 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14412 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14413 (gomp_barrier_t): Add awaited_final field.
14414 (gomp_barrier_init): Initialize awaited_final field.
14415 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
14416 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
14418 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
14420 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
14421 gomp_team_barrier_cancelled): New inline functions.
14422 (gomp_barrier_last_thread,
14423 gomp_team_barrier_set_task_pending,
14424 gomp_team_barrier_clear_task_pending,
14425 gomp_team_barrier_set_waiting_for_tasks,
14426 gomp_team_barrier_waiting_for_tasks,
14427 gomp_team_barrier_done): Use BAR_* defines.
14428 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
14429 (gomp_barrier_wait_end): Use BAR_* defines.
14430 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
14431 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
14433 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
14434 gomp_team_barrier_cancel): New functions.
14435 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
14437 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14438 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14439 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14440 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
14441 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14442 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14443 (gomp_barrier_t): Add cancellable field.
14444 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
14445 gomp_team_barrier_cancel): New prototypes.
14446 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
14447 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
14448 gomp_team_barrier_cancelled): New inline functions.
14449 (gomp_barrier_wait_start, gomp_barrier_last_thread,
14450 gomp_team_barrier_set_task_pending,
14451 gomp_team_barrier_clear_task_pending,
14452 gomp_team_barrier_set_waiting_for_tasks,
14453 gomp_team_barrier_waiting_for_tasks,
14454 gomp_team_barrier_done): Use BAR_* defines.
14455 * barrier.c (GOMP_barrier_cancel): New function.
14456 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
14457 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14458 omp_proc_bind_spread): New params.
14459 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14460 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14461 omp_get_team_num, omp_is_initial_device): New externals.
14462 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
14464 (gomp_resolve_num_threads): Adjust for thread_limit now being in
14465 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
14466 infinity. If not nested, just return minimum of max_num_threads
14467 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
14468 to the returned value. Otherwise, don't update atomically
14469 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
14470 (GOMP_parallel_end): Adjust for thread_limit now being in
14471 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
14472 infinity. Adjust threads_busy in the pool rather than
14473 gomp_remaining_threads_count. Remember team->nthreads and call
14474 gomp_team_end before adjusting threads_busy, if not nested
14475 afterwards, just set it to 1 non-atomically. Add ialias.
14476 (GOMP_parallel_start): Adjust gomp_team_start caller.
14477 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
14478 * testsuite/libgomp.c/affinity-1.c: New test.
14479 * testsuite/libgomp.c/atomic-15.c: New test.
14480 * testsuite/libgomp.c/atomic-16.c: New test.
14481 * testsuite/libgomp.c/atomic-17.c: New test.
14482 * testsuite/libgomp.c/cancel-for-1.c: New test.
14483 * testsuite/libgomp.c/cancel-for-2.c: New test.
14484 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
14485 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
14486 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
14487 * testsuite/libgomp.c/cancel-sections-1.c: New test.
14488 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
14489 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
14490 * testsuite/libgomp.c/depend-1.c: New test.
14491 * testsuite/libgomp.c/depend-2.c: New test.
14492 * testsuite/libgomp.c/depend-3.c: New test.
14493 * testsuite/libgomp.c/depend-4.c: New test.
14494 * testsuite/libgomp.c/for-1.c: New test.
14495 * testsuite/libgomp.c/for-1.h: New file.
14496 * testsuite/libgomp.c/for-2.c: New test.
14497 * testsuite/libgomp.c/for-2.h: New file.
14498 * testsuite/libgomp.c/for-3.c: New test.
14499 * testsuite/libgomp.c/pr58392.c: New test.
14500 * testsuite/libgomp.c/simd-1.c: New test.
14501 * testsuite/libgomp.c/simd-2.c: New test.
14502 * testsuite/libgomp.c/simd-3.c: New test.
14503 * testsuite/libgomp.c/simd-4.c: New test.
14504 * testsuite/libgomp.c/simd-5.c: New test.
14505 * testsuite/libgomp.c/simd-6.c: New test.
14506 * testsuite/libgomp.c/target-1.c: New test.
14507 * testsuite/libgomp.c/target-2.c: New test.
14508 * testsuite/libgomp.c/target-3.c: New test.
14509 * testsuite/libgomp.c/target-4.c: New test.
14510 * testsuite/libgomp.c/target-5.c: New test.
14511 * testsuite/libgomp.c/target-6.c: New test.
14512 * testsuite/libgomp.c/target-7.c: New test.
14513 * testsuite/libgomp.c/taskgroup-1.c: New test.
14514 * testsuite/libgomp.c/thread-limit-1.c: New test.
14515 * testsuite/libgomp.c/thread-limit-2.c: New test.
14516 * testsuite/libgomp.c/thread-limit-3.c: New test.
14517 * testsuite/libgomp.c/udr-1.c: New test.
14518 * testsuite/libgomp.c/udr-2.c: New test.
14519 * testsuite/libgomp.c/udr-3.c: New test.
14520 * testsuite/libgomp.c++/affinity-1.C: New test.
14521 * testsuite/libgomp.c++/atomic-10.C: New test.
14522 * testsuite/libgomp.c++/atomic-11.C: New test.
14523 * testsuite/libgomp.c++/atomic-12.C: New test.
14524 * testsuite/libgomp.c++/atomic-13.C: New test.
14525 * testsuite/libgomp.c++/atomic-14.C: New test.
14526 * testsuite/libgomp.c++/atomic-15.C: New test.
14527 * testsuite/libgomp.c++/cancel-for-1.C: New test.
14528 * testsuite/libgomp.c++/cancel-for-2.C: New test.
14529 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
14530 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
14531 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
14532 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
14533 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
14534 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
14535 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
14536 * testsuite/libgomp.c++/cancel-test.h: New file.
14537 * testsuite/libgomp.c++/for-9.C: New test.
14538 * testsuite/libgomp.c++/for-10.C: New test.
14539 * testsuite/libgomp.c++/for-11.C: New test.
14540 * testsuite/libgomp.c++/simd-1.C: New test.
14541 * testsuite/libgomp.c++/simd-2.C: New test.
14542 * testsuite/libgomp.c++/simd-3.C: New test.
14543 * testsuite/libgomp.c++/simd-4.C: New test.
14544 * testsuite/libgomp.c++/simd-5.C: New test.
14545 * testsuite/libgomp.c++/simd-6.C: New test.
14546 * testsuite/libgomp.c++/simd-7.C: New test.
14547 * testsuite/libgomp.c++/simd-8.C: New test.
14548 * testsuite/libgomp.c++/target-1.C: New test.
14549 * testsuite/libgomp.c++/target-2.C: New test.
14550 * testsuite/libgomp.c++/target-2-aux.cc: New file.
14551 * testsuite/libgomp.c++/target-3.C: New test.
14552 * testsuite/libgomp.c++/taskgroup-1.C: New test.
14553 * testsuite/libgomp.c++/udr-1.C: New test.
14554 * testsuite/libgomp.c++/udr-2.C: New test.
14555 * testsuite/libgomp.c++/udr-3.C: New test.
14556 * testsuite/libgomp.c++/udr-4.C: New test.
14557 * testsuite/libgomp.c++/udr-5.C: New test.
14558 * testsuite/libgomp.c++/udr-6.C: New test.
14559 * testsuite/libgomp.c++/udr-7.C: New test.
14560 * testsuite/libgomp.c++/udr-8.C: New test.
14561 * testsuite/libgomp.c++/udr-9.C: New test.
14563 2013-09-20 Jakub Jelinek <jakub@redhat.com>
14566 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
14569 2013-09-20 Alan Modra <amodra@gmail.com>
14571 * configure: Regenerate.
14573 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14575 * testsuite/libgomp.c/sections-2.c: New test.
14577 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
14579 * testsuite/libgomp.fortran/strassen.f90:
14580 Add dg-skip-if aarch64_tiny.
14582 2013-06-20 Iain Sandoe <iain@codesourcery.com>
14583 Cesar Philippidis <cesar@codesourcery.com>
14585 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
14586 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
14587 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
14588 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14589 * testsuite/libgomp.graphite/graphite.exp: Likewise.
14590 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
14591 Use dg-runtest rather than gfortran-dg-runtest.
14593 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
14595 * testsuite/libgomp.c/icv-2.c: Extend current handling of
14596 Linux-based x86 systems to cover all GNU systems.
14597 * testsuite/libgomp.c/lock-3.c: Likewise.
14598 * testsuite/libgomp.c/pr48591.c: Likewise.
14600 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
14602 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
14603 GNU/Hurd, as done for Linux-based systems.
14605 * config/posix/ptrlock.h: Fix comment.
14607 2013-05-27 Tobias Burnus <burnus@net-b.de>
14610 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
14611 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
14612 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
14613 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
14614 omp_destroy_nest_lock): Correct arguments to match the one in
14616 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
14617 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
14618 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
14619 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
14621 2013-05-16 Jakub Jelinek <jakub@redhat.com>
14623 * testsuite/libgomp.c/loop-13.c: New test.
14624 * testsuite/libgomp.c/loop-14.c: New test.
14625 * testsuite/libgomp.c/loop-15.c: New test.
14626 * testsuite/libgomp.c++/loop-13.C: New test.
14627 * testsuite/libgomp.c++/loop-14.C: New test.
14628 * testsuite/libgomp.c++/loop-15.C: New test.
14630 2013-02-06 Jakub Jelinek <jakub@redhat.com>
14632 PR middle-end/56217
14633 * testsuite/libgomp.c++/pr56217.C: New test.
14635 2013-02-01 Alan Modra <amodra@gmail.com>
14637 * task.c (GOMP_task, GOMP_taskwait): Comment.
14639 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
14640 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
14643 * config/linux/wait.h (do_spin): Use atomic load for addr.
14644 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
14645 for intptr and ptrlock.
14646 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
14649 2013-01-22 Alan Modra <amodra@gmail.com>
14653 * task.c (GOMP_task): Revert 2011-12-09 change.
14654 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
14655 barrier to read task->children..
14656 (gomp_barrier_handle_tasks): ..and matching atomic store with
14657 release barrier here when setting parent->children to NULL.
14659 2013-01-16 Jakub Jelinek <jakub@redhat.com>
14660 Tobias Burnus <burnus@net-b.de>
14663 * testsuite/libgomp.fortran/fortran.exp: Use
14664 -fintrinsic-modules-path= instead of
14665 -fintrinsic-modules-path.
14667 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
14669 Update copyright years.
14671 2012-12-19 Tobias Burnus <burnus@net-b.de>
14673 * testsuite/libgomp.fortran/fortran.exp: Set
14674 -fintrinsic-modules-path.
14676 2012-12-19 Tobias Burnus <burnus@net-b.de>
14678 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
14679 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
14681 2012-11-21 Jakub Jelinek <jakub@redhat.com>
14684 * team.c (gomp_free_thread): Decrease gomp_managed_threads
14685 if pool had any threads_used.
14687 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
14689 * testsuite/libgomp.c++/pr24455.C: Use
14690 -Wl,-undefined,dynamic_lookup on darwin.
14692 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
14694 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
14696 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
14698 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
14700 2012-10-23 Ian Bolton <ian.bolton@arm.com>
14701 Jim MacArthur <jim.macarthur@arm.com>
14702 Marcus Shawcroft <marcus.shawcroft@arm.com>
14703 Nigel Stephens <nigel.stephens@arm.com>
14704 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14705 Richard Earnshaw <rearnsha@arm.com>
14706 Sofiane Naci <sofiane.naci@arm.com>
14707 Stephen Thomas <stephen.thomas@arm.com>
14708 Tejas Belagod <tejas.belagod@arm.com>
14709 Yufeng Zhang <yufeng.zhang@arm.com>
14711 * configure.tgt: Add AArch64.
14713 2012-10-04 Jason Merrill <jason@redhat.com>
14715 * testsuite/libgomp.c++/tls-init1.C: New.
14717 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
14719 * configure: Regenerated.
14721 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
14723 * config/linux/mips/futex.h (sys_futex0): Change to static
14724 function with noinline, nomips16 attributes under MIPS16. Adjust
14725 asm statement to place 'li v0,SYS_futex' immediately before
14728 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
14730 * libgomp.texi (Library Index): Renamed from "Index" to prevent
14731 conflict with index.html on case-insensitive file systems.
14733 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
14735 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
14736 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
14738 2012-07-02 Richard Guenther <rguenther@suse.de>
14739 Michael Matz <matz@suse.de>
14740 Tobias Grosser <tobias@grosser.es>
14741 Sebastian Pop <sebpop@gmail.com>
14743 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
14744 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14745 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14746 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14748 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
14750 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
14752 2012-06-22 Richard Guenther <rguenther@suse.de>
14754 Merge from graphite branch
14755 2012-01-13 Tobias Grosser <tobias@grosser.es>
14757 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
14758 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14760 2012-06-07 Jakub Jelinek <jakub@redhat.com>
14762 PR middle-end/53580
14763 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
14764 use GOMP_barrier () call instead.
14765 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14766 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14767 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
14768 call GOMP_barrier instead.
14769 * testsuite/libgomp.fortran/vla5.f90: Likewise.
14771 2012-06-06 Jakub Jelinek <jakub@redhat.com>
14774 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
14775 argument to memset call.
14777 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
14779 * configure: Regenerated.
14781 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14783 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
14785 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
14788 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
14790 2012-03-22 Jakub Jelinek <jakub@redhat.com>
14792 PR middle-end/52547
14793 * testsuite/libgomp.c/pr52547.c: New test.
14795 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14797 * testsuite/lib/libgomp.exp: load fortran-modules.exp
14799 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14801 * configure.tgt (mips-sgi-irix6*): Remove.
14803 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14805 * configure.tgt (alpha*-dec-osf*): Remove.
14807 * config/osf/sem.h: Remove.
14808 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
14810 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
14812 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
14814 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14817 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
14818 Remove ENABLE_SYMVERS_SOL2.
14819 * configure: Regenerate.
14820 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
14821 (PREPROCESS): New variable.
14822 (libgomp.ver): New target.
14823 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
14824 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
14825 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
14827 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
14828 * Makefile.in: Regenerate.
14830 2012-02-14 Walter Lee <walt@tilera.com>
14832 * configure.tgt: Handle tilegx and tilepro.
14833 * config/linux/tile/futex.h: New file.
14835 2012-02-08 Richard Guenther <rguenther@suse.de>
14837 PR tree-optimization/46886
14838 * testsuite/libgomp.c/pr46886.c: New testcase.
14840 2012-01-25 Matthias Klose <doko@ubuntu.com>
14842 * config/linux/arm: Remove empty directory.
14843 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
14845 2011-12-09 Alan Modra <amodra@gmail.com>
14848 * task.c (GOMP_taskwait): Don't access task->children outside of
14849 task_lock mutex region.
14850 (GOMP_task): Likewise.
14852 2011-12-06 Jakub Jelinek <jakub@redhat.com>
14855 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
14857 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14858 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14859 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14860 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14861 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14863 2011-12-02 Alan Modra <amodra@gmail.com>
14865 * config/linux/affinity.c: Use atomic rather than sync builtin.
14866 * config/linux/lock.c: Likewise.
14867 * config/linux/ptrlock.h: Likewise.
14868 * config/linux/ptrlock.c: Likewise.
14869 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
14870 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
14871 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
14872 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
14873 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
14874 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
14875 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
14876 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
14877 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
14878 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
14880 2011-11-30 Alan Modra <amodra@gmail.com>
14883 * config/linux/bar.h: Use atomic rather than sync builtins.
14884 * config/linux/bar.c: Likewise. Add missing acquire
14885 synchronisation on generation field.
14886 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
14889 2011-11-30 Alan Modra <amodra@gmail.com>
14891 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
14892 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
14893 * config/linux/mutex.h: Use atomic rather than sync builtins.
14894 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
14895 * config/linux/omp-lock.h: Comment fix.
14896 * config/linux/arm/mutex.h: Delete.
14897 * config/linux/powerpc/mutex.h: Delete.
14898 * config/linux/ia64/mutex.h: Delete.
14899 * config/linux/mips/mutex.h: Delete.
14901 2011-11-30 Alan Modra <amodra@gmail.com>
14904 * config/linux/sem.h: Rewrite.
14905 * config/linux/sem.c: Rewrite.
14907 2011-11-28 Richard Henderson <rth@redhat.com>
14909 * libgomp.h (enum memmodel): New.
14911 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
14913 * configure: Regenerate.
14915 2011-10-10 Matthias Klose <doko@ubuntu.com>
14917 * config/posix95: Remove empty directory.
14919 2011-08-26 Jakub Jelinek <jakub@redhat.com>
14921 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
14923 2011-08-19 Jakub Jelinek <jakub@redhat.com>
14926 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
14927 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
14929 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14931 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
14933 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14936 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
14938 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
14940 * config/linux/proc.h: New.
14941 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
14942 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
14943 (gomp_init_num_threads): Update call to cpuset_popcount.
14944 (get_num_procs): Ditto.
14945 * config/linux/affinity.c (gomp_init_affinity): Call
14946 gomp_cpuset_popcount.
14948 2011-08-02 Jakub Jelinek <jakub@redhat.com>
14952 * omp.h.in (omp_in_final): New prototype.
14953 * omp_lib.f90.in (omp_in_final): New interface.
14954 (omp_integer_kind, omp_logical_kind): Remove
14955 and replace all its uses in the module with 4.
14956 (openmp_version): Change to 201107.
14957 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
14958 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
14959 kind for the parameters.
14960 (omp_in_final): New external.
14961 (openmp_version): Change to 201107.
14962 * task.c (omp_in_final): New function.
14963 (gomp_init_task): Initialize final_task.
14964 (GOMP_task): Remove unused attribute from flags. Handle final
14966 (GOMP_taskyield): New function.
14967 (omp_in_final): Return true if if (false) or final (true) task
14968 or descendant of final (true).
14969 * fortran.c (omp_in_final_): New function.
14970 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
14971 (GOMP_3.0): Export GOMP_taskyield.
14972 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
14974 (parse_unsigned_long_list): New function.
14975 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
14976 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
14977 even if parse_affinity returned false.
14978 * config/linux/affinity.c (gomp_init_affinity): Handle
14979 gomp_cpu_affinity_len == 0.
14980 * libgomp_g.h (GOMP_taskyield): New prototype.
14981 * libgomp.h (struct gomp_task): Add final_task field.
14982 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
14983 * team.c (gomp_team_start): Override new task's nthreads_var icv
14984 if list form OMP_NUM_THREADS has been used and it has value for
14985 the new nesting level.
14987 * testsuite/libgomp.c/atomic-11.c: New test.
14988 * testsuite/libgomp.c/atomic-12.c: New test.
14989 * testsuite/libgomp.c/atomic-13.c: New test.
14990 * testsuite/libgomp.c/atomic-14.c: New test.
14991 * testsuite/libgomp.c/reduction-6.c: New test.
14992 * testsuite/libgomp.c/task-5.c: New test.
14993 * testsuite/libgomp.c++/atomic-2.C: New test.
14994 * testsuite/libgomp.c++/atomic-3.C: New test.
14995 * testsuite/libgomp.c++/atomic-4.C: New test.
14996 * testsuite/libgomp.c++/atomic-5.C: New test.
14997 * testsuite/libgomp.c++/atomic-6.C: New test.
14998 * testsuite/libgomp.c++/atomic-7.C: New test.
14999 * testsuite/libgomp.c++/atomic-8.C: New test.
15000 * testsuite/libgomp.c++/atomic-9.C: New test.
15001 * testsuite/libgomp.c++/task-8.C: New test.
15002 * testsuite/libgomp.c++/reduction-4.C: New test.
15003 * testsuite/libgomp.fortran/allocatable7.f90: New test.
15004 * testsuite/libgomp.fortran/allocatable8.f90: New test.
15005 * testsuite/libgomp.fortran/crayptr3.f90: New test.
15006 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
15007 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
15008 * testsuite/libgomp.fortran/pointer1.f90: New test.
15009 * testsuite/libgomp.fortran/pointer2.f90: New test.
15010 * testsuite/libgomp.fortran/task4.f90: New test.
15012 2011-08-02 Tobias Burnus <burnus@net-b.de>
15014 * libgomp.texi: Update OpenMP spec references to 3.1.
15015 (omp_in_final,OMP_PROC_BIND): New sections.
15016 (OMP_NUM_THREADS): Document that the value can be now a list.
15017 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
15019 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
15021 * config/linux/x86/futex.h: Check __x86_64__ instead of
15024 2011-07-29 Jakub Jelinek <jakub@redhat.com>
15026 PR middle-end/49897
15027 PR middle-end/49898
15028 * testsuite/libgomp.c/pr49897-1.c: New test.
15029 * testsuite/libgomp.c/pr49897-2.c: New test.
15030 * testsuite/libgomp.c/pr49898-1.c: New test.
15031 * testsuite/libgomp.c/pr49898-2.c: New test.
15033 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
15035 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
15036 for ia32 instead of ilp32.
15038 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
15039 * testsuite/libgomp.c/atomic-6.c: Likewise.
15041 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
15043 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
15044 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
15046 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15049 * config/osf/sem.h: New file.
15050 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
15052 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15055 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
15058 2011-07-15 Jakub Jelinek <jakub@redhat.com>
15060 * config/linux/wait.h (do_spin): New inline, largely copied
15061 from do_wait, just don't do futex_wait here, instead return true if
15063 (do_wait): Implement using do_spin.
15064 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
15066 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15067 __sync_bool_compare_and_swap, pass the oldval to
15068 gomp_mutex_lock_slow.
15069 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
15070 If all mutex contenders are just spinning and not sleeping, don't
15071 change state to 2 unnecessarily. Optimize the loop when state has
15072 already become 2 to use just one atomic operation per loop instead
15074 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
15076 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15077 __sync_bool_compare_and_swap, pass the oldval to
15078 gomp_mutex_lock_slow.
15080 2011-06-22 Jakub Jelinek <jakub@redhat.com>
15083 * iter.c (gomp_iter_static_next): For chunk size 0
15084 only use n ceil/ nthreads size for the first
15085 n % nthreads threads in the team instead of
15086 all threads except for the last few ones which
15087 get less work or none at all.
15088 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
15089 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
15090 chunk argument, set run_sched_modifier to 0 for static
15091 resp. 1 for other kinds. If chunk argument is 0
15092 and not static, set value to 1.
15094 2011-05-19 Jakub Jelinek <jakub@redhat.com>
15097 * testsuite/libgomp.c++/pr49043.C: New test.
15100 * testsuite/libgomp.c++/pr48869.C: New test.
15102 2011-05-06 Jakub Jelinek <jakub@redhat.com>
15105 * fortran.c: Include limits.h.
15107 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
15109 (omp_set_num_threads_8_, omp_set_schedule_8_,
15110 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
15111 omp_get_team_size_8_): Use TO_INT macro.
15112 * testsuite/libgomp.fortran/pr48894.f90: New test.
15114 2011-04-13 Jakub Jelinek <jakub@redhat.com>
15116 PR middle-end/48591
15117 * testsuite/libgomp.c/pr48591.c: New test.
15119 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15122 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
15123 * configure: Regenerate.
15125 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15128 * testsuite/libgomp.fortran/task3.f90: New test.
15130 2011-02-24 Tobias Burnus <burnus@net-b.de>
15132 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
15134 2011-02-23 Jakub Jelinek <jakub@redhat.com>
15137 * libgomp.texi (omp_get_wtime): Don't say time in the past
15138 must be Unix Epoch.
15140 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15143 * testsuite/libgomp.fortran/fortran.exp: Check for both
15144 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
15145 but $blddir != "", still append ${blddir}/${lang_library_path}
15146 to ld_library_path.
15148 2011-02-16 Tobias Burnus <burnus@net-b.de>
15151 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
15152 of libquadmath.a before adding its libpath to ldflags.
15154 2011-02-14 Jakub Jelinek <jakub@redhat.com>
15157 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
15158 to FUTEX_WAIT futex syscall.
15159 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
15161 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15163 * configure: Regenerate.
15165 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
15168 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
15170 2011-01-16 Gerald Pfeifer
15172 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
15174 2010-12-14 Jakub Jelinek <jakub@redhat.com>
15177 * libgomp.fortran/allocatable6.f90: New test.
15179 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15181 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
15182 * configure: Regenerate.
15184 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
15188 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
15189 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
15190 * aclocal.m4: Regenerate.
15191 * configure: Regenerate.
15192 * Makefile.in: Regenerate.
15193 * testsuite/Makefile.in: Regenerate.
15195 2010-12-02 Jakub Jelinek <jakub@redhat.com>
15198 * libgomp.fortran/pr46753.f90: New test.
15201 * env.c (initialize_env): Default to spin count 300000
15202 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
15206 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
15207 at the end if sync builtins aren't supported.
15209 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15211 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
15213 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15215 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
15217 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
15219 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
15221 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15222 Tobias Burnus <burnus@net-b.de>
15226 * configure: Regenerate.
15228 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
15230 * config/linux/futex.h: New.
15231 * config/linux/arm/mutex.h: New.
15232 * configure.tgt (arm*-*-linux*): Add config path.
15234 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
15236 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15238 2010-09-23 Tobias Burnus <burnus@net-b.de>
15240 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
15241 Change Fortran datatype to LOGICAL.
15242 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
15243 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
15245 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15247 * configure: Regenerate.
15249 2010-07-26 Jakub Jelinek <jakub@redhat.com>
15251 * libgomp.texi: Add function keyword to a couple of Fortran
15252 interfaces, use integer instead of int for Fortran.
15254 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
15256 * libgomp.texi: Fix spelling and pasto problems throughout.
15257 Adjust prototypes to match code.
15259 2010-07-24 Tobias Burnus <burnus@net-b.de>
15261 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
15262 silence -fwhole-file warning.
15264 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15266 * configure.tgt (*-*-solaris2.[56]*): Removed.
15268 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15270 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
15271 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
15272 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
15273 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
15274 targetting solaris2*.
15275 * configure: Regenerate.
15276 * config.h.in: Regenerate.
15278 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
15279 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
15280 Add libgomp_version_dep.
15281 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
15283 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
15284 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
15285 * Makefile.in: Regenerate.
15287 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
15288 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15289 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
15290 to common block, protected by
15291 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15293 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
15295 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
15297 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
15300 * configure: Regenerate.
15302 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15305 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
15306 * configure: Regenerate.
15307 * Makefile.in: Regenerate.
15308 * testsuite/Makefile.in: Regenerate.
15310 2010-04-26 Jakub Jelinek <jakub@redhat.com>
15313 * testsuite/libgomp.c/pr43893.c: New test.
15314 * testsuite/libgomp.c++/pr43893.C: New test.
15316 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15318 PR middle-end/43570
15319 * testsuite/libgomp.fortran/vla8.f90: New test.
15321 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15324 * config/linux/affinity.c (gomp_init_affinity): Decrease
15325 gomp_available_cpus if affinity mask confines the process to fewer
15327 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
15328 non-NULL, just return gomp_available_cpus.
15331 * sections.c (gomp_sections_init): Initialize ws->mode.
15333 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15335 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
15336 not unused bar variable.
15337 * configure: Regenerate.
15339 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15341 * Makefile.in: Regenerate.
15342 * aclocal.m4: Regenerate.
15343 * testsuite/Makefile.in: Regenerate.
15345 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15348 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
15349 (initialize_env): Adjust callers.
15350 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
15351 when the argument is 0.
15353 * testsuite/libgomp.c/pr42942.c: New test.
15355 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15357 PR middle-end/42644
15358 PR middle-end/42130
15359 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15360 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
15362 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15364 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
15365 * testsuite/libgomp.c++/task-6.C: Likewise.
15367 2010-01-28 Steve Ellcey <sje@cup.hp.com>
15369 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
15371 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
15373 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
15374 * configure: Regenerate.
15376 2010-01-26 Jakub Jelinek <jakub@redhat.com>
15379 * testsuite/libgomp.fortran/allocatable5.f90: New test.
15381 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
15383 * configure.ac: Test for executability of GFORTRAN.
15384 * configure: Regenerate.
15386 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15388 * configure: Regenerate.
15390 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15393 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
15395 2010-01-03 Richard Guenther <rguenther@suse.de>
15397 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
15399 2009-12-23 Sebastian Pop <sebpop@gmail.com>
15401 * testsuite/libgomp.graphite/pr4118.c: New.
15403 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15405 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
15406 for darwin, protect the test with require-effective-target tls_runtime.
15407 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
15409 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15412 * testsuite/lib/libgomp.exp: Provide -B options to allow for
15413 link spec %s substitutions for static libraries.
15415 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
15418 * libgomp.graphite/force-parallel-2.c: Reduce array size.
15420 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15422 * Makefile.in: Regenerate.
15423 * configure: Regenerate.
15424 * testsuite/Makefile.in: Regenerate.
15426 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
15428 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
15429 settings for LC_ALL and LANG.
15431 2009-11-25 Jakub Jelinek <jakub@redhat.com>
15434 * testsuite/libgomp.fortran/pr42162.f90: New test.
15436 2009-11-13 Jakub Jelinek <jakub@redhat.com>
15438 PR middle-end/42029
15439 * testsuite/libgomp.c/pr42029.c: New test.
15441 2009-10-26 Jakub Jelinek <jakub@redhat.com>
15443 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
15444 *s. Accept ld version without text in ()s.
15445 * configure: Regenerated.
15447 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
15449 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
15451 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15454 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
15455 or a hyphen (happens with fortran language disabled).
15456 * configure: Regenerate.
15458 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15460 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
15461 use sed script portable to Solaris /bin/sed for extracting ld
15463 * configure: Regenerate.
15465 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
15467 * testsuite/libgomp.graphite/bounds.c: New test.
15469 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15471 * Makefile.am (libgomp_la_LINK): New.
15472 * Makefile.in: Regenerate.
15474 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15476 * configure.ac (AC_PREREQ): Bump to 2.64.
15478 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15480 * Makefile.am (install-html, install-pdf): Remove.
15481 * Makefile.in: Regenerate.
15483 * Makefile.in: Regenerate.
15484 * aclocal.m4: Regenerate.
15485 * config.h.in: Regenerate.
15486 * configure: Regenerate.
15487 * testsuite/Makefile.in: Regenerate.
15489 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15491 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
15492 * Makefile.in: Regenerate.
15494 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
15496 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
15497 * Makefile.in: Regenerate.
15499 2009-08-19 Tobias Burnus <burnus@net-b.de>
15502 omp_lib.h.in: Fix -std=f95 errors.
15504 2009-08-14 David Edelsohn <edelsohn@gnu.org>
15506 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
15507 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
15508 * testsuite/libgomp.graphite/graphite.exp: New.
15510 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
15512 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
15515 2009-08-04 David Daney <ddaney@caviumnetworks.com>
15517 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
15518 needed memory barrier semantics.
15519 * config/linux/mips/mutex.h: New file.
15521 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15523 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
15525 2009-07-16 Joseph Myers <joseph@codesourcery.com>
15527 * configure: Regenerate.
15529 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
15534 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
15535 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
15536 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
15538 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
15540 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
15541 options when choosing a multilib.
15543 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
15545 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
15546 ld_library_path. Use add_path. Add just find_libgcc_s to
15547 ld_library_path, not every libgcc multilib directory.
15548 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
15549 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
15550 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
15552 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
15554 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
15556 * Makefile.am (LTLDFLAGS): Define.
15558 * Makefile.in: Regenerate.
15560 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
15563 * testsuite/libgomp.fortran/fortran.exp: Don't link with
15564 libgfortranbegin, check existence of libgfortran.a instead of
15565 libgfortranbegin.a.
15567 2009-05-20 Jakub Jelinek <jakub@redhat.com>
15570 * team.c (gomp_thread_start): Destroy thr->release semaphore.
15571 (gomp_free_pool_helper): Likewise.
15573 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
15574 Jakub Jelinek <jakub@redhat.com>
15577 * testsuite/libgomp.fortran/workshare2.f90: New test.
15579 2009-04-09 Nick Clifton <nickc@redhat.com>
15581 * iter.c: Change copyright header to refer to version 3 of the
15582 GNU General Public License with version 3.1 of the GCC Runtime
15583 Library Exception and to point readers at the COPYING3 and
15584 COPYING3.RUNTIME files and the FSF's license web page.
15585 * alloc.c: Likewise.
15586 * barrier.c: Likewise.
15587 * config/bsd/proc.c: Likewise.
15588 * config/linux/affinity.c: Likewise.
15589 * config/linux/alpha/futex.h: Likewise.
15590 * config/linux/bar.c: Likewise.
15591 * config/linux/bar.h: Likewise.
15592 * config/linux/ia64/futex.h: Likewise.
15593 * config/linux/ia64/mutex.h: Likewise.
15594 * config/linux/lock.c: Likewise.
15595 * config/linux/mips/futex.h: Likewise.
15596 * config/linux/mutex.c: Likewise.
15597 * config/linux/mutex.h: Likewise.
15598 * config/linux/powerpc/futex.h: Likewise.
15599 * config/linux/proc.c: Likewise.
15600 * config/linux/ptrlock.c: Likewise.
15601 * config/linux/ptrlock.h: Likewise.
15602 * config/linux/s390/futex.h: Likewise.
15603 * config/linux/sem.c: Likewise.
15604 * config/linux/sem.h: Likewise.
15605 * config/linux/sparc/futex.h: Likewise.
15606 * config/linux/wait.h: Likewise.
15607 * config/linux/x86/futex.h: Likewise.
15608 * config/mingw32/proc.c: Likewise.
15609 * config/mingw32/time.c: Likewise.
15610 * config/posix/affinity.c: Likewise.
15611 * config/posix/bar.c: Likewise.
15612 * config/posix/bar.h: Likewise.
15613 * config/posix/lock.c: Likewise.
15614 * config/posix/mutex.h: Likewise.
15615 * config/posix/proc.c: Likewise.
15616 * config/posix/ptrlock.h: Likewise.
15617 * config/posix/sem.c: Likewise.
15618 * config/posix/sem.h: Likewise.
15619 * config/posix/time.c: Likewise.
15620 * config/posix95/lock.c: Likewise.
15621 * critical.c: Likewise.
15623 * error.c: Likewise.
15624 * fortran.c: Likewise.
15625 * iter_ull.c: Likewise.
15626 * libgomp.h: Likewise.
15627 * libgomp_f.h.in: Likewise.
15628 * libgomp_g.h: Likewise.
15629 * loop.c: Likewise.
15630 * loop_ull.c: Likewise.
15631 * omp.h.in: Likewise.
15632 * omp_lib.f90.in: Likewise.
15633 * omp_lib.h.in: Likewise.
15634 * ordered.c: Likewise.
15635 * parallel.c: Likewise.
15636 * sections.c: Likewise.
15637 * single.c: Likewise.
15638 * task.c: Likewise.
15639 * team.c: Likewise.
15640 * work.c: Likewise.
15642 2009-04-09 Jakub Jelinek <jakub@redhat.com>
15644 * testsuite/config/default.exp: Change copyright header to refer to
15645 version 3 of the GNU General Public License and to point readers
15646 at the COPYING3 file and the FSF's license web page.
15648 2009-04-08 Jakub Jelinek <jakub@redhat.com>
15650 PR middle-end/39573
15651 * libgomp.c++/pr39573.C: New test.
15653 2009-04-01 Jakub Jelinek <jakub@redhat.com>
15656 * testsuite/libgomp.c/pr39591-1.c: New test.
15657 * testsuite/libgomp.c/pr39591-2.c: New test.
15658 * testsuite/libgomp.c/pr39591-3.c: New test.
15660 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
15662 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
15663 * testsuite/libgomp.c/atomic-6.c: Ditto.
15665 2009-03-23 Jakub Jelinek <jakub@redhat.com>
15668 * testsuite/libgomp.c/loop-12.c: New test.
15669 * testsuite/libgomp.c/loop-11.c: New test.
15670 * testsuite/libgomp.c++/loop-11.C: New test.
15671 * testsuite/libgomp.c++/loop-12.C: New test.
15672 * testsuite/libgomp.c++/for-8.C: New test.
15674 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15676 * configure: Regenerate.
15678 2009-02-11 Jakub Jelinek <jakub@redhat.com>
15680 PR middle-end/39154
15681 * testsuite/libgomp.c/pr39154.c: New test.
15683 2009-01-30 Ian Lance Taylor <iant@google.com>
15685 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
15686 libgomp_ld_is_gold. Get gold version number.
15687 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
15688 * configure: Rebuild.
15690 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15692 * testsuite/lib/libgomp.exp: Add -B option for targets that
15693 use libgfortran.a%s in their specs.
15695 2009-01-07 Jakub Jelinek <jakub@redhat.com>
15698 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
15699 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
15700 HAVE_AS_SYMVER_DIRECTIVE is not defined.
15701 * configure: Regenerated.
15702 * config.h.in: Likewise.
15704 2008-12-28 Jakub Jelinek <jakub@redhat.com>
15707 * testsuite/libgomp.c/pr38650.c: New test.
15708 * testsuite/libgomp.c++/pr38650.C: New test.
15710 2008-12-27 Jakub Jelinek <jakub@redhat.com>
15712 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
15714 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
15716 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
15718 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15720 * configure: Regenerate.
15722 2008-12-08 Jakub Jelinek <jakub@redhat.com>
15724 PR middle-end/36802
15725 * testsuite/libgomp.c/pr36802-1.c: New test.
15726 * testsuite/libgomp.c/pr36802-2.c: New test.
15727 * testsuite/libgomp.c/pr36802-3.c: New test.
15729 2008-12-01 Janis Johnson <janis187@us.ibm.com>
15732 * config/linux/powerpc/mutex.h: New.
15734 2008-12-01 Jakub Jelinek <jakub@redhat.com>
15737 * testsuite/libgomp.c++/for-7.C: New test.
15740 * testsuite/libgomp.c++/for-6.C: New test.
15742 2008-11-26 Janis Johnson <janis187@us.ibm.com>
15745 * testsuite/lib/libgomp.exp: Include new timeout library files.
15746 (libgomp_target_compile): Set timeout value from new proc.
15748 2008-11-13 Steve Ellcey <sje@cup.hp.com>
15751 * config/linux/ia64/mutex.h: New.
15753 2008-11-04 Tobias Burnus <burnus@net-b.de>
15756 * libgomp.texi (Runtime library routines, environment variables):
15757 Update for OpenMP version 3.0.
15759 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
15760 Steve Ellcey <sje@cup.hp.com>
15762 * configure: Regenerate for new libtool.
15763 * Makefile.in: Ditto.
15764 * testsuite/Makefile.in: Ditto.
15766 2008-09-19 Jakub Jelinek <jakub@redhat.com>
15767 Andreas Tobler <a.tobler@schweiz.org>
15769 * config/bsd/proc.c: New file.
15770 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
15771 * configure.ac: Check for header <sys/sysctl.h>
15772 * configure: Regenerate.
15773 * config.h.in: Likewise.
15775 2008-09-05 Janis Johnson <janis187@us.ibm.com>
15777 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
15779 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
15781 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
15782 * Makefile.in: Regenerated.
15783 * testsuite/Makefile.in: Regenerated.
15785 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
15787 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
15788 depend on blddir if blddir exists.
15789 (libgomp_target_compile): Likewise.
15790 * testsuite/libgomp.c++/c++.exp: Likewise.
15791 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15793 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15795 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
15796 Do not list GPL as Invariant Section.
15798 2008-07-28 Ilie Garbacea <ilie@mips.com>
15799 Chao-ying Fu <fu@mips.com>
15801 * configure.tgt: Enable futex for MIPS.
15802 * config/linux/mips/futex.h: New file.
15804 2008-07-16 Jakub Jelinek <jakub@redhat.com>
15806 * team.c (gomp_team_end): Free team immediately if it has
15809 2008-07-08 David Edelsohn <edelsohn@gnu.org>
15811 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
15812 * testsuite/libgomp.fortran/fortran.exp: Same.
15813 * testsuite/libgomp.c/c.exp: Same.
15814 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
15815 directory to library path first.
15817 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
15819 * env.c (parse_stacksize): Add cast to avoid warning.
15820 (parse_spincount): Likewise.
15822 2008-06-27 Jakub Jelinek <jakub@redhat.com>
15824 * testsuite/libgomp.c/loop-10.c: New test.
15825 * libgomp.c/loop-3.c (main): Add lastprivate clause.
15826 * libgomp.c++/loop-6.C (main): Likewise.
15829 * testsuite/libgomp.c/debug-1.c: New test.
15831 2008-06-19 Jakub Jelinek <jakub@redhat.com>
15833 * testsuite/libgomp.c/nqueens-1.c: New test.
15836 * testsuite/libgomp.c++/task-7.C: New function.
15838 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15840 * configure: Regenerate.
15842 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15844 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
15845 mutex when HAVE_SYNC_BUILTINS isn't defined.
15847 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15849 * libgomp.texi (omp_test_lock): Fix typo.
15851 2008-06-12 Tobias Burnus <burnus@net-b.de>
15853 * omp_lib.f90.in: Add "implicit none".
15855 2008-06-12 Jakub Jelinek <jakub@redhat.com>
15857 PR middle-end/36506
15858 * testsuite/libgomp.c/reduction-5.c: New test.
15860 2008-06-11 Jakub Jelinek <jakub@redhat.com>
15862 * libgomp.h (struct gomp_task): Add in_tied_task field.
15863 * task.c (gomp_init_task): Initialize it.
15864 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
15865 unconditionally. Don't call gomp_team_barrier_wake if
15866 current task is implicit or if(0) from implicit and number of
15867 running tasks is equal to nthreads - 1.
15870 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
15871 omp_get_team_size_8): Fix pastos.
15874 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
15875 * configure: Regenerated.
15876 * config.h.in: Regenerated.
15877 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
15880 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
15883 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
15884 (GOMP_loop_ull_dynamic_start): Likewise.
15885 (GOMP_loop_ull_guided_start): Likewise.
15886 (GOMP_loop_ull_ordered_static_start): Likewise.
15887 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
15888 (GOMP_loop_ull_ordered_guided_start): Likewise.
15890 2008-06-06 Jakub Jelinek <jakub@redhat.com>
15891 Richard Henderson <rth@redhat.com>
15892 Ulrich Drepper <drepper@redhat.com>
15893 Jakob Blomer <jakob.blomer@ira.uka.de>
15895 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
15896 Substitute also OMP_*LOCK_25*.
15897 * configure: Regenerated.
15898 * config.h.in: Regenerated.
15899 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
15900 ptrlock.c and task.c.
15901 * Makefile.in: Regenerated.
15902 * testsuite/Makefile.in: Regenerated.
15903 * task.c: New file.
15904 * loop_ull.c: New file.
15905 * iter_ull.c: New file.
15906 * libgomp.h: Include ptrlock.h.
15907 (enum gomp_task_kind): New type.
15908 (struct gomp_team): Add task_lock, task_queue, task_count,
15909 task_running_count, single_count fields. Add
15910 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
15911 Remove work_share_lock, generation_mask,
15912 oldest_live_gen, num_live_gen and init_work_shares fields, add
15913 work work_share_list_alloc, work_share_list_free and work_share_chunk
15914 fields. Change work_shares from pointer to pointers into an array.
15915 Change ordered_release field into gomp_sem_t ** from flexible array
15916 member. Add implicit_task and initial_work_shares fields.
15917 Move close to the end of the struct.
15918 (struct gomp_team_state): Add single_count, last_work_share,
15919 active_level and level fields, remove work_share_generation.
15920 (gomp_barrier_handle_tasks): New prototype.
15921 (gomp_finish_task): New inline function.
15922 (struct gomp_work_share): Move chunk_size, end, incr into
15923 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
15924 next_ll fields. Reshuffle fields. Add next_alloc,
15925 next_ws, next_free and inline_ordered_team_ids fields, change
15926 ordered_team_ids into pointer from flexible array member.
15927 Add mode field. Put lock and next into a different cache line
15928 from most of the write-once fields.
15929 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
15930 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
15931 gomp_iter_ull_guided_next): New prototypes.
15932 (gomp_new_icv): New prototype.
15933 (struct gomp_thread): Add thread_pool and task fields.
15934 (struct gomp_thread_pool): New type.
15935 (gomp_new_team): New prototype.
15936 (gomp_team_start): Change type of last argument.
15937 (gomp_new_work_share): Removed.
15938 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
15939 (gomp_work_share_init_done): New static inline.
15940 (gomp_throttled_spin_count_var, gomp_available_cpus,
15941 gomp_managed_threads): New extern decls.
15942 (gomp_init_task): New prototype.
15943 (gomp_spin_count_var): New extern var decl.
15944 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
15945 or no alias support, or if not PIC.
15946 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
15947 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
15948 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
15949 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
15950 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
15951 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
15952 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
15953 gomp_test_nest_lock_25): New prototypes.
15954 (omp_lock_symver, strong_alias): Define.
15955 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
15957 (gomp_end_task): New.
15958 (struct gomp_task_icv, gomp_global_icv): New.
15959 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
15960 (struct gomp_task): New.
15961 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
15962 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
15964 (gomp_schedule_type): Reorder enum to match
15966 * team.c (struct gomp_thread_start_data): Add thread_pool and task
15968 (gomp_thread_start): Add gomp_team_barrier_wait call.
15969 For non-nested case remove clearing of docked thread thr fields.
15970 Use pool fields instead of global gomp_* variables. Use
15971 gomp_barrier_wait_last when needed. Initialize ts.active_level.
15972 Create tasks for each member thread.
15973 (free_team): Only destroy team barrier, task_lock here and free it.
15974 (gomp_free_thread): Free last_team if non-NULL.
15975 (gomp_team_end): Call gomp_team_barrier_wait instead of
15976 gomp_barrier_wait. For nested case call one extra
15977 gomp_barrier_wait. Move here some destruction from free_team.
15978 Call free_team on pool->last_team if any, rather than freeing
15979 current team. Destroy work_share_list_free_lock ifndef
15980 HAVE_SYNC_BUILTINS.
15981 (gomp_new_icv): New function.
15982 (gomp_threads, gomp_threads_size, gomp_threads_used,
15983 gomp_threads_dock): Removed.
15984 (gomp_thread_destructor): New variable.
15985 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
15987 (gomp_team_start): Create new pool if current thread doesn't have
15988 one. Use pool fields instead of global gomp_* variables.
15989 Initialize thread_pool field for new threads. Clear single_count.
15990 Change last argument from ws to team, don't create
15991 new team, set ts.work_share to &team->work_shares[0] and clear
15992 ts.last_work_share. Don't clear ts.work_share_generation.
15993 If number of threads changed, adjust atomically gomp_managed_threads.
15994 Use gomp_init_task instead of gomp_new_task,
15995 set thr->task to the corresponding implicit_task array entry.
15996 Create tasks for each member thread. Initialize ts.level.
15997 (initialize_team): Call pthread_key_create on
15998 gomp_thread_destructor.
15999 (team_destructor): New function.
16000 (new_team): Removed.
16001 (gomp_new_team): New function.
16002 (free_team): Free gomp_work_share blocks chained through next_alloc,
16003 instead of freeing work_shares and destroying work_share_lock.
16004 (gomp_team_end): Call gomp_fini_work_share. If number of threads
16005 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
16006 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
16007 of gomp_barrier_wait.
16008 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
16009 instead of gomp_barrier_wait. Call gomp_work_share_init_done
16010 if gomp_work_share_start returned true. Don't unlock ws->lock.
16011 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
16012 of gomp_barrier_wait.
16013 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
16014 gomp_work_share_init_done if gomp_work_share_start returned true.
16015 Don't unlock ws->lock.
16016 * work.c: Include stddef.h.
16017 (free_work_share): Use work_share_list_free_lock instead
16018 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
16019 Call gomp_fini_work_share and then either free ws if orphaned, or
16020 put it into work_share_list_free list of the current team.
16021 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
16023 (gomp_work_share_start, gomp_work_share_end,
16024 gomp_work_share_end_nowait): Rewritten.
16025 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
16026 (openmp_version): Set to 200805.
16027 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
16028 omp_sched_guided, omp_sched_auto): New parameters.
16029 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16030 omp_set_max_active_levels, omp_get_max_active_levels,
16031 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16032 omp_get_active_level): New interfaces.
16033 * omp_lib.h.in (openmp_version): Set to 200805.
16034 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
16035 omp_sched_guided, omp_sched_auto): New parameters.
16036 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16037 omp_set_max_active_levels, omp_get_max_active_levels,
16038 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16039 omp_get_active_level): New externals.
16040 * loop.c: Include limits.h.
16041 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
16043 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
16044 Likewise. Use gomp_icv.
16045 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
16046 ts.static_trip here.
16047 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
16048 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
16049 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
16050 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
16051 don't unlock ws->lock, otherwise lock it.
16052 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
16053 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
16054 (gomp_parallel_loop_start): Call gomp_new_team instead of
16055 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
16056 Adjust gomp_team_start caller. Pass 0 as second argument to
16057 gomp_resolve_num_threads.
16058 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
16059 If adding ws->chunk_size nthreads + 1 times after end won't
16060 overflow, set ws->mode to 1.
16061 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
16062 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
16063 GOMP_loop_ull_ordered_static_start,
16064 GOMP_loop_ull_ordered_dynamic_start,
16065 GOMP_loop_ull_ordered_guided_start,
16066 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
16067 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
16068 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
16069 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
16070 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
16072 * libgomp.map: Export lock routines also @@OMP_2.0.
16073 (GOMP_loop_ordered_dynamic_first,
16074 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
16075 GOMP_loop_ordered_static_first): Remove.
16076 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
16077 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
16078 GOMP_loop_ull_ordered_dynamic_next,
16079 GOMP_loop_ull_ordered_dynamic_start,
16080 GOMP_loop_ull_ordered_guided_next,
16081 GOMP_loop_ull_ordered_guided_start,
16082 GOMP_loop_ull_ordered_runtime_next,
16083 GOMP_loop_ull_ordered_runtime_start,
16084 GOMP_loop_ull_ordered_static_next,
16085 GOMP_loop_ull_ordered_static_start,
16086 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
16087 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
16088 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
16089 (omp_set_schedule, omp_get_schedule,
16090 omp_get_thread_limit, omp_set_max_active_levels,
16091 omp_get_max_active_levels, omp_get_level,
16092 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
16093 omp_set_schedule_, omp_set_schedule_8_,
16094 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16095 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16096 omp_get_max_active_levels_, omp_get_level_,
16097 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16098 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16099 New exports @@OMP_3.0.
16100 * omp.h.in (omp_sched_t): New type.
16101 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16102 omp_set_max_active_levels, omp_get_max_active_levels,
16103 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16104 omp_get_active_level): New prototypes.
16105 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
16106 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
16107 gomp_thread_limit_var, gomp_remaining_threads_count,
16108 gomp_remaining_threads_lock): New variables.
16109 (parse_spincount): New function.
16110 (initialize_env): Call gomp_init_num_threads unconditionally.
16111 Initialize gomp_available_cpus. Call parse_spincount,
16112 initialize gomp_{,throttled_}spin_count_var
16113 depending on presence and value of OMP_WAIT_POLICY and
16114 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
16115 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
16116 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
16117 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
16118 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
16119 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16120 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16121 (gomp_global_icv): New.
16122 (parse_schedule): Use it. Parse "auto".
16123 (omp_set_num_threads): Use gomp_icv.
16124 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
16126 (omp_get_max_threads): Move from parallel.c.
16127 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16128 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
16130 (parse_stacksize, parse_wait_policy): New functions.
16131 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
16132 both wrappers for compatibility and new locks.
16133 (omp_set_schedule, omp_get_schedule,
16134 omp_get_thread_limit, omp_set_max_active_levels,
16135 omp_get_max_active_levels, omp_get_level,
16136 omp_get_ancestor_thread_num, omp_get_team_size,
16137 omp_get_active_level): New ialias_redirect.
16138 (omp_set_schedule_, omp_set_schedule_8_,
16139 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16140 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16141 omp_get_max_active_levels_, omp_get_level_,
16142 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16143 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16145 * parallel.c: Include limits.h.
16146 (gomp_resolve_num_threads): Add count argument. Rewritten.
16147 (GOMP_parallel_start): Call gomp_new_team and pass that as last
16148 argument to gomp_team_start. Pass 0 as second argument to
16149 gomp_resolve_num_threads.
16150 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
16151 if gomp_thread_limit_var != ULONG_MAX.
16152 (omp_in_parallel): Implement using ts.active_level.
16153 (omp_get_max_threads): Move to env.c.
16154 (omp_get_level, omp_get_ancestor_thread_num,
16155 omp_get_team_size, omp_get_active_level): New functions,
16157 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
16158 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
16159 gomp_iter_dynamic_next instead of the _locked variant and don't take
16160 lock around it, otherwise acquire it before calling
16161 gomp_iter_dynamic_next_locked.
16162 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
16163 gomp_iter_dynamic_next instead of the _locked variant and don't take
16165 (GOMP_parallel_sections_start): Call gomp_new_team instead of
16166 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
16167 Adjust gomp_team_start caller. Pass count as second argument to
16168 gomp_resolve_num_threads, don't adjust num_threads after the call.
16170 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
16171 ws->chunk_size by incr.
16172 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
16174 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
16176 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
16177 (omp_check_defines): Check even the compat defines.
16178 * config/linux/ptrlock.c: New file.
16179 * config/linux/ptrlock.h: New file.
16180 * config/linux/wait.h: New file.
16181 * config/posix/ptrlock.c: New file.
16182 * config/posix/ptrlock.h: New file.
16183 * config/linux/bar.h (gomp_team_barrier_wait,
16184 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16185 (gomp_team_barrier_set_task_pending,
16186 gomp_team_barrier_clear_task_pending,
16187 gomp_team_barrier_set_waiting_for_tasks,
16188 gomp_team_barrier_waiting_for_tasks,
16189 gomp_team_barrier_done): New inlines.
16190 (gomp_barrier_t): Rewritten.
16191 (gomp_barrier_state_t): New typedef.
16192 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
16193 gomp_barrier_wait_start): Rewritten.
16194 (gomp_barrier_wait_end): Change second argument to
16195 gomp_barrier_state_t.
16196 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16198 * config/linux/bar.c: Include wait.h instead of libgomp.h and
16200 (gomp_barrier_wait_end): Rewritten.
16201 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16202 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
16203 * config/posix/bar.h (gomp_barrier_t): Add generation field.
16204 (gomp_barrier_state_t): New typedef.
16205 (gomp_team_barrier_wait,
16206 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16207 (gomp_barrier_wait_start): Or all but low 2 bits from generation
16208 into the return value. Return gomp_barrier_state_t.
16209 (gomp_team_barrier_set_task_pending,
16210 gomp_team_barrier_clear_task_pending,
16211 gomp_team_barrier_set_waiting_for_tasks,
16212 gomp_team_barrier_waiting_for_tasks,
16213 gomp_team_barrier_done): New inlines.
16214 (gomp_barrier_wait_end): Change second argument to
16215 gomp_barrier_state_t.
16216 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16218 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
16219 (gomp_barrier_wait_end): Change second argument to
16220 gomp_barrier_state_t.
16221 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16222 gomp_team_barrier_wake): New functions.
16223 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
16225 (gomp_futex_wake, gomp_futex_wait): New variables.
16226 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
16227 * config/linux/lock.c: Rewrite to make locks task owned,
16228 for backwards compatibility provide the old entrypoints
16229 if symbol versioning. Include wait.h instead of libgomp.h and
16231 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
16232 * config/posix95/lock.c: Rewrite to make locks task owned,
16233 for backwards compatibility provide the old entrypoints
16234 if symbol versioning.
16235 * config/posix/lock.c: Rewrite to make locks task owned,
16236 for backwards compatibility provide the old entrypoints
16237 if symbol versioning.
16238 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
16239 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
16240 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
16241 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16242 (sys_futex0): Return error code.
16243 (futex_wake, futex_wait): If ENOSYS was returned, clear
16244 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16245 (cpu_relax, atomic_write_barrier): New static inlines.
16246 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16247 (futex_wake, futex_wait): If ENOSYS was returned, clear
16248 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16249 (cpu_relax, atomic_write_barrier): New static inlines.
16250 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16251 (sys_futex0): Return error code.
16252 (futex_wake, futex_wait): If ENOSYS was returned, clear
16253 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16254 (cpu_relax, atomic_write_barrier): New static inlines.
16255 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16256 (sys_futex0): Return error code.
16257 (futex_wake, futex_wait): If ENOSYS was returned, clear
16258 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16259 (cpu_relax, atomic_write_barrier): New static inlines.
16260 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16261 (sys_futex0): Return error code.
16262 (futex_wake, futex_wait): If ENOSYS was returned, clear
16263 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16264 (cpu_relax, atomic_write_barrier): New static inlines.
16265 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16266 (sys_futex0): Return error code.
16267 (futex_wake, futex_wait): If ENOSYS was returned, clear
16268 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16269 (cpu_relax, atomic_write_barrier): New static inlines.
16270 * config/linux/sem.c: Include wait.h instead of libgomp.h and
16272 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
16273 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
16274 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
16276 (omp_nest_lock_t): Change owner into void *, add lock field.
16277 * config/posix95/omp-lock.h: Include semaphore.h.
16278 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16279 (omp_lock_t): Use sem_t instead of mutex if semaphores
16281 (omp_nest_lock_t): Likewise. Change owner to void *.
16282 * config/posix/omp-lock.h: Include semaphore.h.
16283 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16284 (omp_lock_t): Use sem_t instead of mutex if semaphores
16286 (omp_nest_lock_t): Likewise. Add owner field.
16288 2008-06-06 Jakub Jelinek <jakub@redhat.com>
16290 * testsuite/libgomp.c/collapse-1.c: New test.
16291 * testsuite/libgomp.c/collapse-2.c: New test.
16292 * testsuite/libgomp.c/collapse-3.c: New test.
16293 * testsuite/libgomp.c/icv-1.c: New test.
16294 * testsuite/libgomp.c/icv-2.c: New test.
16295 * testsuite/libgomp.c/lib-2.c: New test.
16296 * testsuite/libgomp.c/lock-1.c: New test.
16297 * testsuite/libgomp.c/lock-2.c: New test.
16298 * testsuite/libgomp.c/lock-3.c: New test.
16299 * testsuite/libgomp.c/loop-4.c: New test.
16300 * testsuite/libgomp.c/loop-5.c: New test.
16301 * testsuite/libgomp.c/loop-6.c: New test.
16302 * testsuite/libgomp.c/loop-7.c: New test.
16303 * testsuite/libgomp.c/loop-8.c: New test.
16304 * testsuite/libgomp.c/loop-9.c: New test.
16305 * testsuite/libgomp.c/nested-3.c: New test.
16306 * testsuite/libgomp.c/nestedfn-6.c: New test.
16307 * testsuite/libgomp.c/sort-1.c: New test.
16308 * testsuite/libgomp.c/task-1.c: New test.
16309 * testsuite/libgomp.c/task-2.c: New test.
16310 * testsuite/libgomp.c/task-3.c: New test.
16311 * testsuite/libgomp.c/task-4.c: New test.
16312 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
16313 to C++ testsuite default compiler options.
16314 * testsuite/libgomp.c++/collapse-1.C: New test.
16315 * testsuite/libgomp.c++/collapse-2.C: New test.
16316 * testsuite/libgomp.c++/ctor-10.C: New test.
16317 * testsuite/libgomp.c++/for-1.C: New test.
16318 * testsuite/libgomp.c++/for-2.C: New test.
16319 * testsuite/libgomp.c++/for-3.C: New test.
16320 * testsuite/libgomp.c++/for-4.C: New test.
16321 * testsuite/libgomp.c++/for-5.C: New test.
16322 * testsuite/libgomp.c++/loop-8.C: New test.
16323 * testsuite/libgomp.c++/loop-9.C: New test.
16324 * testsuite/libgomp.c++/loop-10.C: New test.
16325 * testsuite/libgomp.c++/task-1.C: New test.
16326 * testsuite/libgomp.c++/task-2.C: New test.
16327 * testsuite/libgomp.c++/task-3.C: New test.
16328 * testsuite/libgomp.c++/task-4.C: New test.
16329 * testsuite/libgomp.c++/task-5.C: New test.
16330 * testsuite/libgomp.c++/task-6.C: New test.
16331 * testsuite/libgomp.fortran/allocatable1.f90: New test.
16332 * testsuite/libgomp.fortran/allocatable2.f90: New test.
16333 * testsuite/libgomp.fortran/allocatable3.f90: New test.
16334 * testsuite/libgomp.fortran/allocatable4.f90: New test.
16335 * testsuite/libgomp.fortran/collapse1.f90: New test.
16336 * testsuite/libgomp.fortran/collapse2.f90: New test.
16337 * testsuite/libgomp.fortran/collapse3.f90: New test.
16338 * testsuite/libgomp.fortran/collapse4.f90: New test.
16339 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
16340 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
16341 * testsuite/libgomp.fortran/lib4.f90: New test.
16342 * testsuite/libgomp.fortran/lock-1.f90: New test.
16343 * testsuite/libgomp.fortran/lock-2.f90: New test.
16344 * testsuite/libgomp.fortran/nested1.f90: New test.
16345 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
16346 * testsuite/libgomp.fortran/strassen.f90: New test.
16347 * testsuite/libgomp.fortran/tabs1.f90: New test.
16348 * testsuite/libgomp.fortran/tabs2.f: New test.
16349 * testsuite/libgomp.fortran/task1.f90: New test.
16350 * testsuite/libgomp.fortran/task2.f90: New test.
16351 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
16352 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16353 * testsuite/libgomp.c/pr26943-2.c: Likewise.
16354 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16355 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16357 2008-05-23 Jakub Jelinek <jakub@redhat.com>
16360 * testsuite/libgomp.c++/ctor-11.C: New test.
16361 * testsuite/libgomp.c++/ctor-12.C: New test.
16363 2008-05-15 Janis Johnson <janis187@us.ibm.com>
16365 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
16367 2008-05-07 Jakub Jelinek <jakub@redhat.com>
16369 PR middle-end/36106
16370 * testsuite/libgomp.c/atomic-5.c: New test.
16371 * testsuite/libgomp.c/atomic-6.c: New test.
16372 * testsuite/libgomp.c/autopar-1.c: New test.
16374 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16376 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
16377 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
16378 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
16379 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
16380 * configure: Regenerate.
16381 * Makefile.in, testsuite/Makefile.in: Likewise.
16383 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
16386 * aclocal.m4: Regenerate.
16387 * configure: Regenerate.
16389 2008-03-18 Jakub Jelinek <jakub@redhat.com>
16391 PR middle-end/35611
16392 * testsuite/libgomp.c/atomic-4.c: New test.
16395 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
16396 (gomp_iter_guided_next): Likewise.
16397 * testsuite/libgomp.c/pr35625.c: New test.
16399 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16401 * aclocal.m4: Regenerate.
16402 * configure: Likewise.
16403 * Makefile.in: Likewise.
16404 * testsuite/Makefile.in: Likewise.
16406 2008-03-13 Jakub Jelinek <jakub@redhat.com>
16408 PR middle-end/35185
16409 * testsuite/libgomp.c++/pr35185.C: New test.
16411 2008-03-12 Jakub Jelinek <jakub@redhat.com>
16413 PR middle-end/35549
16414 * testsuite/libgomp.c/pr35549.c: New test.
16416 2008-03-06 Jakub Jelinek <jakub@redhat.com>
16418 * testsuite/libgomp.c/atomic-3.c: New test.
16420 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16423 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
16424 .F08 file suffixes.
16426 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
16429 * configure.ac: Add ACX_HEADER_STRING.
16430 * env.c: Include strings.h.
16431 * aclocal.m4: Regenerate.
16432 * config.h.in: Regenerate.
16433 * configure: Regenerate.
16434 * Makefile.in: Regenerate.
16435 * testsuite/Makefile.in: Regenerate.
16437 2008-02-15 Jakub Jelinek <jakub@redhat.com>
16439 PR middle-end/35196
16440 * testsuite/libgomp.c/pr35196.c: New test.
16442 PR middle-end/35130
16443 * testsuite/libgomp.fortran/pr35130.f90: New test.
16444 * testsuite/libgomp.c/pr35130.c: New test.
16446 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16448 PR middle-end/33880
16449 * testsuite/libgomp.c/pr33880.c: New test.
16450 * testsuite/libgomp.fortran/pr33880.f90: New test.
16452 2008-01-24 David Edelsohn <edelsohn@gnu.org>
16454 * configure: Regenerate.
16456 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16458 * configure.ac: Move futex checking into ../config/futex.m4.
16459 * configure: Rebuilt.
16460 * aclocal.m4: Rebuilt.
16461 * Makefile.in: Rebuilt.
16463 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
16464 2007-10-15 ../config/tls.m4 change.
16466 2007-12-19 Jakub Jelinek <jakub@redhat.com>
16469 * testsuite/libgomp.c/pr34513.c: New test.
16470 * testsuite/libgomp.c++/pr34513.C: New test.
16472 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
16475 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
16477 2007-12-04 Jakub Jelinek <jakub@redhat.com>
16479 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
16481 2007-12-03 Jakub Jelinek <jakub@redhat.com>
16483 * testsuite/libgomp.c/private-1.c: New test.
16485 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
16486 Paolo Bonzini <bonzini@gnu.org>
16488 * Makefile.am: Use space as vpath separator. Use 'vpath %'
16489 instead of 'VPATH ='.
16490 * Makefile.in: Regenerate.
16492 2007-11-23 Matthias Klose <doko@ubuntu.com>
16494 * configure.ac: Adjust makeinfo version check.
16495 * configure: Regenerate.
16497 2007-11-10 Jakub Jelinek <jakub@redhat.com>
16500 * testsuite/libgomp.fortran/pr34020.f90: New test.
16502 2007-11-06 Jakub Jelinek <jakub@redhat.com>
16505 * testsuite/libgomp.c++/atomic-1.C: New test.
16507 2007-10-25 Jakub Jelinek <jakub@redhat.com>
16510 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
16511 Make x and y integers rather than (implicit) reals. Add private (j)
16512 clause to the last omp parallel.
16514 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
16516 * configure: Regenerate following changes to ../config/tls.m4.
16518 2007-09-28 Jakub Jelinek <jakub@redhat.com>
16520 * testsuite/libgomp.fortran/stack.f90: New test.
16522 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
16524 * config/mingw32/proc.c: New file.
16526 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
16528 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
16529 (main): Use __get_cpuid to get i386 target fetaures.
16530 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
16531 (main): Use __get_cpuid to get x86_64 target fetaures.
16533 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
16536 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
16537 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
16539 2007-07-12 Jakub Jelinek <jakub@redhat.com>
16542 * testsuite/libgomp.fortran/pr32550.f90: New test.
16543 * testsuite/libgomp.fortran/crayptr2.f90: New test.
16545 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
16547 * aclocal.m4: Regenerated.
16549 2007-07-05 Tobias Burnus <burnus@net-b.de>
16552 * testsuite/libgomp.fortran/pr32359.f90: New.
16554 2007-07-02 Jakub Jelinek <jakub@redhat.com>
16557 * sections.c (GOMP_parallel_sections_start): Only decrease
16558 number of threads to COUNT if dyn_var is true.
16559 * testsuite/libgomp.c/pr32468.c: New test.
16561 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16564 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
16566 2007-06-21 Jakub Jelinek <jakub@redhat.com>
16568 PR middle-end/32362
16569 * testsuite/libgomp.c/pr32362-1.c: New test.
16570 * testsuite/libgomp.c/pr32362-2.c: New test.
16571 * testsuite/libgomp.c/pr32362-3.c: New test.
16573 2007-06-07 Jakub Jelinek <jakub@redhat.com>
16575 * team.c (gomp_team_start): Fix setting up thread_attr
16578 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
16580 * configure: Regenerate.
16582 2007-05-23 Steve Ellcey <sje@cup.hp.com>
16584 * Makefile.in: Regenerate.
16585 * configure: Regenerate.
16586 * aclocal.m4: Regenerate.
16587 * testsuite/Makefile.in: Regenerate.
16589 2007-05-04 Jakub Jelinek <jakub@redhat.com>
16591 * config/linux/proc.c: New file.
16594 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
16596 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
16598 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
16600 2007-04-16 Matthias Klose <doko@debian.org>
16602 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
16603 flags if not building with -m64.
16604 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
16605 flag for i?86-*-* targets, if current target matches -m64.
16607 2007-04-14 Steve Ellcey <sje@cup.hp.com>
16609 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
16610 * Makefile.in: Regenerate.
16612 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16615 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
16617 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16619 2007-04-04 Jakub Jelinek <jakub@redhat.com>
16621 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
16623 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
16624 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
16625 (parse_affinity): New function.
16626 (initialize_env): Call it and gomp_init_affinity.
16627 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
16628 create new pthread_attr_t and call gomp_init_thread_affinity
16629 on it for each thread before passing the attribute to pthread_create.
16630 * config/linux/affinity.c: New file.
16631 * config/posix/affinity.c: New file.
16632 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
16633 * configure: Rebuilt.
16634 * config.h.in: Rebuilt.
16635 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
16636 * Makefile.in: Rebuilt.
16638 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
16640 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
16642 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
16643 and use it if found.
16645 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
16647 * testsuite/config/default.exp: New file.
16648 * testsuite/lib/libgomp.exp: New file.
16649 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
16650 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
16651 load_lib *, load_gcc_lib *): Move to libgomp.exp.
16652 (libgomp_load): Remove.
16653 * testsuite/lib/libgomp.exp (libgomp_init): Compute
16654 always_ld_library_path, not ld_library_path. Set additional_flags
16655 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
16656 (target_compile): Do not call libgomp_init. Append lang_library_path
16657 and lang_link_flags to options.
16658 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
16659 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
16661 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
16662 always_ld_library_path. Set LD_LIBRARY_PATH here.
16663 * testsuite/libgomp.fortran/fortran.exp: Ditto.
16664 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
16665 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
16667 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
16668 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
16669 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
16670 * testsuite/libgomp.c/pr29947-1.c: Ditto.
16671 * testsuite/libgomp.c/atomic-10.c: Ditto.
16673 2007-03-21 Jakub Jelinek <jakub@redhat.com>
16675 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
16676 dg-final cleanup-modules line.
16677 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
16678 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
16679 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
16680 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
16681 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
16682 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
16683 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
16685 2007-03-18 Andreas Schwab <schwab@suse.de>
16687 * acinclude.m4: Adjust regular expression for ld version
16689 * configure: Regenerate.
16691 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16693 * Makefile.am: Add install-pdf target as copied from
16694 automake v1.10 rules.
16695 * Makefile.in: Regenerate
16697 2007-02-07 Jakub Jelinek <jakub@redhat.com>
16700 * configure: Regenerate.
16703 * testsuite/libgomp.c++/pr30703.C: New test.
16705 2007-02-02 Jakub Jelinek <jakub@redhat.com>
16708 2006-07-05 Eric Christopher <echristo@apple.com>
16709 * configure.ac: Depend addition of -pthread on host OS.
16710 * configure: Regenerate.
16712 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16714 * libgomp.texi: Fix spacing after abbreviations.
16716 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
16719 * configure.ac: Add check for makeinfo
16720 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
16721 if an appropriate version of makeinfo is found.
16722 * aclocal.m4: Regenerated.
16723 * configure: Regenerated.
16724 * Makefile.in: Regenerated.
16725 * testsuite/Makefile.in: Regenerated.
16727 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
16730 * libgomp.texi: More about implementation-dependent settings.
16732 2007-01-26 Tobias Burnus <burnus@net-b.de>
16734 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
16736 2007-01-24 Jakub Jelinek <jakub@redhat.com>
16738 PR middle-end/30494
16739 * testsuite/libgomp.c/pr30494.c: New test.
16741 2007-01-15 Tom Tromey <tromey@redhat.com>
16743 * configure: Rebuilt.
16744 * configure.ac: Fixed comment.
16746 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
16748 * libgomp.texi: Document implementation specific default values of
16749 environment variables.
16751 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
16754 * libgomp.texi: New file.
16755 * configure.ac: Add --enable-generated-files-in-srcdir option.
16756 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
16758 * Makefile.in: Regenerated.
16759 * config.h.in: Regenerated.
16760 * testsuite/Makefile.in: Regenerated.
16763 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
16766 * env.c (omp_set_num_threads): Set illegal thread count to 1.
16768 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
16770 * configure: Regenerate.
16772 2006-12-04 Jakub Jelinek <jakub@redhat.com>
16775 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
16776 start if there shouldn't be any loop iterations.
16777 (gomp_loop_ordered_static_start): Remove start == end test.
16778 * testsuite/libgomp.c/pr29947-1.c: New test.
16779 * testsuite/libgomp.c/pr29947-2.c: New test.
16781 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
16783 * configure.tgt: Force initial-exec TLS model on Linux only.
16785 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
16787 * configure: Regenerated.
16789 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
16791 * env.c (parse_schedule): Reject out of range values.
16792 (parse_unsigned_long): Reject out of range, negative or zero values.
16794 2006-10-29 Jakub Jelinek <jakub@redhat.com>
16797 * testsuite/libgomp.fortran/pr29629.f90: New test.
16799 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
16802 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
16803 * config/posix95: New directory.
16804 * config/posix95/omp-lock.h: New file.
16805 * config/posix95/lock.c: Likewise.
16807 2006-10-14 Geoffrey Keating <geoffk@apple.com>
16809 * aclocal.m4: Regenerate.
16810 * configure: Regenerate.
16812 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
16814 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
16817 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
16819 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
16821 * configure: Regenerate.
16822 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
16824 2006-09-26 Jakub Jelinek <jakub@redhat.com>
16826 PR middle-end/25261
16827 PR middle-end/28790
16828 * testsuite/libgomp.c/nestedfn-4.c: New test.
16829 * testsuite/libgomp.c/nestedfn-5.c: New test.
16830 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
16833 * testsuite/libgomp.fortran/condinc1.f: New test.
16834 * testsuite/libgomp.fortran/condinc2.f: New test.
16835 * testsuite/libgomp.fortran/condinc3.f90: New test.
16836 * testsuite/libgomp.fortran/condinc4.f90: New test.
16837 * testsuite/libgomp.fortran/condinc1.inc: New file.
16839 2006-09-18 Tom Tromey <tromey@redhat.com>
16841 * configure: Rebuilt.
16843 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
16846 PR preprocessor/14634
16847 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
16849 * configure: Regenerate.
16851 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
16853 * testsuite/libgomp.fortran/reduction3.f90: Change
16854 -2147483648 to -huge(i)-1 to avoid overflow.
16855 * testsuite/libgomp.fortran/reduction4.f90: Change
16856 Z'ffffffff' to not(0) to avoid overflow.
16858 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
16861 * Makefile.am (libsubincludedir): New.
16862 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
16863 * Makefile.in: Regenerate.
16865 2006-08-17 Jakub Jelinek <jakub@redhat.com>
16868 * env.c: Include ctype.h.
16869 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
16870 leading and/or trailing whitespace and compare strings case
16873 2006-07-16 Jakub Jelinek <jakub@redhat.com>
16876 * testsuite/libgomp.fortran/pr28390.f: New test.
16878 2006-07-05 Eric Christopher <echristo@apple.com>
16880 * configure.ac: Depend addition of -pthread on host OS.
16881 * configure: Regenerate.
16883 2006-06-21 Jakub Jelinek <jakub@redhat.com>
16885 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
16886 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
16889 2006-06-20 Jakub Jelinek <jakub@redhat.com>
16893 * configure.ac: If neither --enable-linux-futex nor
16894 --disable-linux-futex is passed, determine the default by checking
16895 for compiling and/or running against NPTL. With --enable-linux-futex,
16896 check if SYS_gettid and SYS_futex are defined.
16897 * configure: Rebuilt.
16899 2006-06-14 Richard Henderson <rth@redhat.com>
16902 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
16903 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
16905 2006-06-09 Richard Henderson <rth@redhat.com>
16907 * env.c (gomp_nthreads_var): Change to unsigned long.
16908 (gomp_run_sched_chunk): Likewise.
16909 (parse_unsigned_long): Rename from parse_num_threads and generalize.
16910 (initialize_env): Initialize gomp_thread_attr.
16911 * libgomp.h (gomp_nthreads_var): Update decl.
16912 (gomp_run_sched_chunk): Likewise.
16913 (gomp_thread_attr): Declare.
16914 * team.c (gomp_thread_attr): Export.
16915 (initialize_team): Don't initialize it.
16917 2006-06-09 Jakub Jelinek <jakub@redhat.com>
16920 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
16921 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
16923 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
16925 * config/mingw32/time.c: New file.
16926 * configure.tgt: Use it.
16928 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
16930 * Makefile.am: Add install-html target. Add install-html to .PHONY
16931 * Makefile.in: Regenerate.
16933 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16936 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
16937 * testsuite/libgomp.c/critical-1.c: Likewise.
16938 * testsuite/libgomp.c/loop-1.c: Likewise.
16939 * testsuite/libgomp.c/loop-2.c: Likewise.
16940 * testsuite/libgomp.c/single-1.c: Likewise.
16941 * testsuite/libgomp.c/ordered-1.c: Likewise.
16942 * testsuite/libgomp.c/ordered-2.c: Likewise.
16944 2006-05-15 Jakub Jelinek <jakub@redhat.com>
16946 PR middle-end/27416
16947 * libgomp.fortran/pr27416-1.f90: New test.
16949 2006-05-03 Jakub Jelinek <jakub@redhat.com>
16952 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
16953 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
16955 2006-05-02 Jakub Jelinek <jakub@redhat.com>
16958 * testsuite/libgomp.c/pr26943-1.c: New test.
16959 * testsuite/libgomp.c/pr26943-2.c: New test.
16960 * testsuite/libgomp.c/pr26943-3.c: New test.
16961 * testsuite/libgomp.c/pr26943-4.c: New test.
16962 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
16963 * testsuite/libgomp.c++/pr26943.C: New test.
16965 2006-05-02 Jakub Jelinek <jakub@redhat.com>
16967 PR middle-end/27337
16968 * testsuite/libgomp.c++/pr27337.C: New test.
16970 2006-04-26 Jakub Jelinek <jakub@redhat.com>
16973 * testsuite/libgomp.c/pr26171.c: New test.
16975 2006-04-25 Richard Henderson <rth@redhat.com>
16978 * configure.ac: Use GCC_CHECK_TLS.
16979 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
16980 * Makefile.in, aclocal.m4, configure: Regenerate.
16982 2006-04-10 Matthias Klose <doko@debian.org>
16984 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
16985 directory names containing underscores.
16987 2006-03-21 Jakub Jelinek <jakub@redhat.com>
16990 * testsuite/libgomp.c++/pr26691.C: New test.
16992 2006-03-13 Jakub Jelinek <jakub@redhat.com>
16994 * testsuite/libgomp.fortran/retval2.f90: New test.
16996 2006-03-09 Diego Novillo <dnovillo@redhat.com>
16998 * testsuite/libgomp.c++: New directory.
17000 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
17002 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
17003 * config/posix/sem.c: Implement the above.
17005 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
17007 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
17008 define HAVE_BROKEN_POSIX_SEMAPHORES.
17009 * configure: Rebuilt.
17010 * config.h.in: Rebuilt.
17012 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
17015 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
17016 for the other pthread check.
17017 * configure: Regenerate.
17018 * config.h.in: Regenerate.
17020 2006-02-15 Jakub Jelinek <jakub@redhat.com>
17024 * Makefile.am (fincludedir): New variable.
17025 (nodist_include_HEADERS): Remove Fortran files.
17026 (nodist_finclude_HEADERS): New variable.
17027 * Makefile.in: Regenerated.
17029 2006-02-13 Jakub Jelinek <jakub@redhat.com>
17031 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
17032 Remove tests for returning assumed character length arrays.
17034 2006-02-12 Roger Sayle <roger@eyesopen.com>
17035 John David Anglin <dave@hiauly1.hia.nrc.ca>
17038 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
17040 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
17042 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
17044 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
17046 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
17047 part of LD_LIBRARY_PATH manually.
17049 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
17052 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
17055 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
17058 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
17059 * configure.ac (PERL): Don't set.
17060 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
17061 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
17062 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
17063 * omp.h.in: Wrap the new configure substitutions with @ characters.
17064 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
17065 * aclocal.m4, configure, Makefile.in: Regenerate.
17066 * mkomp_h.pl: Delete.
17068 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
17071 * configure.ac: Use GCC_HEADER_STDINT.
17072 * libgomp.h: Include gstdint.h.
17073 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
17074 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
17076 2006-01-24 Richard Henderson <rth@redhat.com>
17079 * configure.ac: Add AM_MAINTAINER_MODE.
17080 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
17082 2006-01-24 Diego Novillo <dnovillo@redhat.com>
17084 * Makefile.in: Regenerate.
17085 * testsuite/Makefile.in: Regenerate.
17086 * aclocal.m4: Regenerate.
17088 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
17090 * config/posix/proc.c: Conditional include of sys/loadavg.h for
17092 * configure.ac: Add check for loadavg.h.
17093 (link_gomp): Adjust comment.
17094 * configure: Regenerate.
17095 * config.h.in: Regenerate.
17097 2006-01-21 Steve Ellcey <sje@cup.hp.com>
17100 * configure.ac: Remove check for alloca.h.
17101 * configure: Regenerate.
17102 * config.h.in: Regenerate.
17103 * libgomp.h: define gomp_alloca to be __builtin_alloca.
17104 * team.c: Remove use of alloca.h.
17105 Call gomp_alloca instead of alloca.
17107 2006-01-20 Steve Ellcey <sje@cup.hp.com>
17110 * team.c: Add include of alloca.h.
17111 * configure.ac: Add check for alloca.h.
17112 * configure: Regenerate.
17113 * config.h.in: Regenerate.
17115 2006-01-17 Jakub Jelinek <jakub@redhat.com>
17118 * testsuite/libgomp.fortran/pr25219.f90: New test.
17120 2005-12-05 Uros Bizjak <uros@kss-loka.si>
17122 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
17123 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
17124 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17125 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17126 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
17127 testsuite/libgomp.fortran/threadprivate1.f90,
17128 testsuite/libgomp.fortran/threadprivate2.f90,
17129 testsuite/libgomp.fortran/threadprivate3.f90,
17130 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17131 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17132 testsuite/libgomp.fortran/omp_parse3.f90: Change required
17133 effective-target to TLS runtime.
17135 * testsuite/libgomp.fortran/pr25162.f: Require
17136 effective-target TLS runtime.
17138 2005-12-01 Jakub Jelinek <jakub@redhat.com>
17140 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
17141 * testsuite/libgomp.c/nestedfn-3.c: New test.
17143 2005-11-30 Jakub Jelinek <jakub@redhat.com>
17146 * testsuite/libgomp.fortran/pr25162.f: New test.
17148 2005-11-28 Jakub Jelinek <jakub@redhat.com>
17150 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
17151 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
17153 2005-11-25 Jakub Jelinek <jakub@redhat.com>
17155 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
17156 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
17157 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
17158 single.c, team.c, work.c, config/linux/alpha/futex.h,
17159 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
17160 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
17161 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
17162 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
17163 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
17164 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
17165 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
17168 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17170 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
17171 to nodist_noinst_HEADERS.
17172 * Makefile.in: Rebuilt.
17174 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
17175 add integer count field.
17176 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
17177 omp_nest_lock_t type change.
17178 (omp_init_nest_lock): Likewise. Initialize count to 0.
17179 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
17181 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
17183 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
17184 Increment count if successful and return the new nesting level.
17185 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
17186 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
17187 * testsuite/libgomp.c/lib-1.c: New test.
17188 * testsuite/libgomp.fortran/lib1.f90: New test.
17189 * testsuite/libgomp.fortran/lib2.f: New test.
17190 * testsuite/libgomp.fortran/lib3.f: New test.
17192 2005-11-17 Richard Henderson <rth@redhat.com>
17195 * Makefile.am (nodist_toolexeclib_HEADERS): New.
17196 * configure.ac (link_gomp): New. Substitute it.
17197 (AC_CONFIG_FILES): Add libgomp.spec.
17198 * libgomp.spec.in: New file.
17199 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
17200 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
17202 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17204 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
17205 reduction(-:var) behaving the same as reduction(+:var).
17206 * testsuite/libgomp.c/reduction-4.c: New test.
17208 2005-11-15 Uros Bizjak <uros@kss-loka.si>
17210 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
17211 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
17212 testsuite/libgomp.c/copyin-3.c,
17213 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17214 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17215 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
17216 testsuite/libgomp.c++/pr24455.C,
17217 testsuite/libgomp.fortran/threadprivate1.f90,
17218 testsuite/libgomp.fortran/threadprivate2.f90,
17219 testsuite/libgomp.fortran/threadprivate3.f90,
17220 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17221 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17222 testsuite/libgomp.fortran/omp_parse3.f90: Require
17223 effective-target TLS.
17225 2005-11-14 Diego Novillo <dnovillo@redhat.com>
17229 2005-11-13 Jakub Jelinek <jakub@redhat.com>
17232 * team.c (initialize_team): Pass NULL rather than free as
17233 pthread_key_create destructor. Initialize thread specific data
17234 pointer in initial thread to a static local variable rather than
17237 2005-11-11 Uros Bizjak <uros@kss-loka.si>
17239 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
17240 its location to ld_library_path.
17242 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17244 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
17246 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17248 * testsuite/libgomp.c: Rename from libgomp.dg.
17250 2005-11-09 Diego Novillo <dnovillo@redhat.com>
17252 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
17253 threadprivate variable 'i'.
17255 2005-11-09 Jakub Jelinek <jakub@redhat.com>
17257 * config/linux/s390/futex.h: New file.
17258 * configure.tgt: Use it.
17260 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
17261 before the parallel.
17263 2005-11-08 Jakub Jelinek <jakub@redhat.com>
17266 * testsuite/libgomp.c++/master-1.C: New test.
17268 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17270 * testsuite/libgomp.dg/copyin-3.c: New test.
17272 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17274 * testsuite/libgomp.fortran/retval1.f90: New test.
17275 * testsuite/libgomp.fortran/vla7.f90: New test.
17277 2005-11-06 Jakub Jelinek <jakub@redhat.com>
17279 * testsuite/libgomp.fortran/vla2.f90: New test.
17280 * testsuite/libgomp.fortran/vla3.f90: New test.
17281 * testsuite/libgomp.fortran/vla4.f90: New test.
17282 * testsuite/libgomp.fortran/vla5.f90: New test.
17283 * testsuite/libgomp.fortran/vla6.f90: New test.
17285 2005-11-01 Jakub Jelinek <jakub@redhat.com>
17287 * config/linux/sparc/futex.h: New file.
17288 * configure.tgt: Use it.
17289 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
17291 * critical.c: Include stdlib.h.
17292 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
17293 ignoring return value.
17294 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
17295 LIBGOMP_CHECK_SYNC_BUILTINS check.
17296 * configure: Rebuilt.
17298 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17300 * testsuite/libgomp.fortran/vla1.f90: New test.
17302 2005-10-31 Richard Henderson <rth@redhat.com>
17304 * testsuite/libgomp.fortran/character2.f90: Fix race condition
17305 setting 's' in different threads.
17307 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17309 * libgomp.h (attribute_hidden, ialias): Define.
17310 * config/posix/proc.c (omp_get_num_procs): Add ialias.
17311 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
17312 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
17313 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17314 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17315 omp_test_lock, omp_test_nest_lock): Likewise.
17316 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
17317 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17318 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17319 omp_test_lock, omp_test_nest_lock): Likewise.
17320 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
17321 omp_get_dynamic, omp_get_nested): Likewise.
17322 * parallel.c (omp_get_num_threads, omp_get_max_threads,
17323 omp_get_thread_num, omp_in_parallel): Likewise.
17324 * fortran.c (ialias_redirect): Define.
17325 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
17326 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
17327 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
17328 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
17329 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
17330 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
17331 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
17332 omp_get_wtime): Add ialias_redirect.
17334 2005-10-30 Jakub Jelinek <jakub@redhat.com>
17336 * fortran.c: Include stdlib.h.
17338 2005-10-29 Jakub Jelinek <jakub@redhat.com>
17340 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
17341 * Makefile.in: Regenerated.
17343 2005-10-28 Jakub Jelinek <jakub@redhat.com>
17345 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
17346 * libgomp_f.h.in (omp_check_defines): New function.
17347 * env.c: Include libgomp_f.h.
17348 (initialize_env): Call omp_check_defines.
17350 * testsuite/libgomp.dg/copyin-2.c: New test.
17351 * testsuite/libgomp.c++/copyin-2.C: New test.
17352 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
17354 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
17355 * testsuite/libgomp.fortran/sharing2.f90: New test.
17357 * testsuite/libgomp.dg/copyin-1.c: New test.
17358 * testsuite/libgomp.c++/copyin-1.C: New test.
17360 2005-10-26 Jakub Jelinek <jakub@redhat.com>
17362 * testsuite/libgomp.fortran/crayptr1.f90: New test.
17364 * testsuite/libgomp.fortran/workshare1.f90: New test.
17366 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
17368 * libgomp.fortran/sharing1.f90: New test.
17370 2005-10-24 Jakub Jelinek <jakub@redhat.com>
17373 * testsuite/libgomp.c++/loop-7.C: New test.
17375 * testsuite/libgomp.dg/nestedfn-2.c: New test.
17377 * testsuite/libgomp.dg/nestedfn-1.c: New test.
17378 * testsuite/libgomp.fortran/reduction6.f90: New test.
17379 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
17381 2005-10-23 Richard Henderson <rth@redhat.com>
17383 * testsuite/libgomp.c++/ctor-1.C: New.
17384 * testsuite/libgomp.c++/ctor-2.C: New.
17385 * testsuite/libgomp.c++/ctor-3.C: New.
17386 * testsuite/libgomp.c++/ctor-4.C: New.
17387 * testsuite/libgomp.c++/ctor-5.C: New.
17388 * testsuite/libgomp.c++/ctor-6.C: New.
17389 * testsuite/libgomp.c++/ctor-7.C: New.
17390 * testsuite/libgomp.c++/ctor-8.C: New.
17391 * testsuite/libgomp.c++/ctor-9.C: New.
17393 2005-10-21 Diego Novillo <dnovillo@redhat.com>
17396 * testsuite/libgomp.c++/pr24455-1.C: New test.
17397 * testsuite/libgomp.c++/pr24455.C: New test.
17398 * testsuite/libgomp.dg/pr24455-1.c: New test.
17399 * testsuite/libgomp.dg/pr24455.c: New test.
17401 2005-10-20 Richard Henderson <rth@redhat.com>
17403 * testsuite/libgomp.c++/loop-6.C: New.
17404 * testsuite/libgomp.dg/loop-3.c: New.
17406 2005-10-20 Jakub Jelinek <jakub@redhat.com>
17408 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
17409 explicitly private.
17410 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
17413 2005-10-19 Diego Novillo <dnovillo@redhat.com>
17415 * testsuite/libgomp.fortran/jacobi.f: New test.
17417 2005-10-19 Richard Henderson <rth@redhat.com>
17419 * configure.tgt (i?86-linux): Default to with_arch instead of
17420 CFLAGS. Add -mtune to match target_cpu.
17421 (x86_64-linux): Tune to i686.
17423 * fortran.c (omp_test_nest_lock_): Fix typo.
17425 2005-10-19 Jakub Jelinek <jakub@redhat.com>
17427 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
17428 gomp_ordered_sync): Do nothing if team->nthreads == 1.
17429 * testsuite/libgomp.dg/ordered-3.c: New test.
17431 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
17432 Remove volatile keyword.
17434 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
17435 in COMMON block to avoid warnings on 64-bit targets.
17437 2005-10-18 Diego Novillo <dnovillo@redhat.com>
17439 * testsuite/libgomp.dg/shared-3.c: New test.
17441 2005-10-18 Jakub Jelinek <jakub@redhat.com>
17443 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
17444 * testsuite/libgomp.fortran/reduction5.f90: New test.
17446 2005-10-18 Jakub Jelinek <jakub@redhat.com>
17448 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
17450 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
17451 flush loop now that __sync_synchronize has proper memory barrier.
17452 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
17453 Add -ffixed-form to dg-options.
17455 2005-10-17 Diego Novillo <dnovillo@redhat.com>
17457 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
17458 from subdirectories.
17459 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
17460 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
17461 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
17462 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
17463 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
17464 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
17465 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
17466 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
17467 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
17468 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
17469 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
17470 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
17471 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
17472 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
17473 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
17474 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
17475 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
17476 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
17477 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
17478 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
17479 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
17480 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
17481 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
17482 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
17483 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
17485 2005-10-17 Jakub Jelinek <jakub@redhat.com>
17487 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
17488 lang_library_path exists. Use find instead of glob to gather tests.
17489 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
17491 2005-10-17 Diego Novillo <dnovillo@redhat.com>
17493 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
17494 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
17495 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
17496 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
17497 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
17498 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
17499 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
17500 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
17501 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
17502 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
17503 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
17504 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
17505 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
17507 2005-10-15 Jakub Jelinek <jakub@redhat.com>
17509 * testsuite/libgomp.dg/vla-1.c: New test.
17511 * testsuite/libgomp.fortran/reference2.f90: New test.
17513 * testsuite/libgomp.fortran/character2.f90: Remove explicit
17514 declaration of omp_get_thread_num.
17515 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
17518 * testsuite/libgomp.fortran/reduction1.f90: New test.
17519 * testsuite/libgomp.fortran/reduction2.f90: New test.
17520 * testsuite/libgomp.fortran/reduction3.f90: New test.
17521 * testsuite/libgomp.fortran/reduction4.f90: New test.
17523 2005-10-13 Richard Henderson <rth@redhat.com>
17525 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
17526 * Makefile.in: Regenerate.
17527 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
17528 * libgomp.h: Include bar.h.
17529 (struct gomp_barrier): Remove.
17530 (struct gomp_team): Add barrier. Replace master_barrier with
17531 master_release. Replace threads with ordered_release.
17532 (struct gomp_thread): Replace barrier with release.
17533 * ordered.c (gomp_ordered_first): Update for ordered_release change.
17534 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
17535 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
17536 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
17537 (GOMP_single_copy_end): Likewise.
17538 * team.c (gomp_threads_dock): New.
17539 (gomp_barrier_init, gomp_barrier_destroy): Remove.
17540 (gomp_thread_start): Use gomp_barrier_wait.
17541 (new_team, free_team): Update for gomp_team changes.
17542 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
17543 (gomp_team_end): Use gomp_barrier_wait.
17544 (initialize_team): Update for gomp_thread changes.
17545 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
17546 (gomp_work_share_end_nowait): Use atomic ops when available.
17547 * config/linux/bar.c, config/linux/bar.h: New files.
17548 * config/posix/bar.c, config/posix/bar.h: New files.
17550 2005-10-13 Jakub Jelinek <jakub@redhat.com>
17552 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
17553 * testsuite/libgomp.dg/single-2.c: New test.
17555 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
17556 lang_link_flags): Unset, so that they aren't inherited from previously
17559 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
17561 2005-10-12 Richard Henderson <rth@redhat.com>
17563 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
17564 (libgomp_init): Use lang_test_file, lang_library_path, and
17565 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
17567 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
17568 (lang_test_file, lang_link_flags): New.
17569 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
17571 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
17572 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
17573 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
17574 testsuite/libgomp.c++/parallel-1.C,
17575 testsuite/libgomp.c++/reduction-1.C,
17576 testsuite/libgomp.c++/reduction-2.C,
17577 testsuite/libgomp.c++/reduction-3.C,
17578 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
17579 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
17580 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
17581 New files, largely cribbed from the C testsuite.
17583 2005-10-12 Jakub Jelinek <jakub@redhat.com>
17585 * testsuite/libgomp.fortran/character1.f90: New test.
17586 * testsuite/libgomp.fortran/character2.f90: New test.
17588 * testsuite/libgomp.dg/nested-1.c: New test.
17589 * testsuite/libgomp.dg/nested-2.c: New test.
17590 * testsuite/libgomp.fortran/do1.f90: New test.
17591 * testsuite/libgomp.fortran/do2.f90: New test.
17593 * testsuite/libgomp.fortran/reference1.f90: New test.
17595 2005-10-11 Jakub Jelinek <jakub@redhat.com>
17597 * testsuite/libgomp.dg/reduction-1.c: New test.
17598 * testsuite/libgomp.dg/reduction-2.c: New test.
17599 * testsuite/libgomp.dg/reduction-3.c: New test.
17601 2005-10-10 Jakub Jelinek <jakub@redhat.com>
17603 * testsuite/libgomp.dg/atomic-1.c: New test.
17604 * testsuite/libgomp.dg/atomic-2.c: New test.
17606 2005-10-09 Richard Henderson <rth@redhat.com>
17608 * critical.c (atomic_lock): New.
17609 (initialize_critical): Initialize it.
17610 (GOMP_atomic_start, GOMP_atomic_end): New.
17611 * libgomp.map: Export them.
17612 * libgomp_g.h: Declare them.
17614 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
17616 2005-10-02 Richard Henderson <rth@redhat.com>
17618 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
17619 to XCFLAGS instead of CFLAGS.
17621 2005-09-30 Richard Henderson <rth@redhat.com>
17623 * configure.ac: Determine whether -pthread or -lpthread is needed.
17624 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
17625 * Makefile.in, configure: Rebuild.
17627 2005-09-28 Richard Henderson <rth@redhat.com>
17629 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
17630 * testsuite/libgomp.dg/omp-single-3.c: New test.
17632 2005-09-28 Diego Novillo <dnovillo@redhat.com>
17634 * testsuite/libgomp.dg/omp-single-2.c: New test.
17635 * testsuite/libgomp.dg/shared-2.c: Fix return code.
17637 2005-09-27 Richard Henderson <rth@redhat.com>
17639 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
17640 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
17642 2005-09-27 Jakub Jelinek <jakub@redhat.com>
17644 * testsuite/libgomp.dg/omp-loop03.c: New test.
17646 2005-09-27 Diego Novillo <dnovillo@redhat.com>
17648 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
17650 2005-09-27 Diego Novillo <dnovillo@redhat.com>
17652 * testsuite/libgomp.dg/omp-single-1.c: New test.
17653 * testsuite/libgomp.dg/shared-1.c: Return 0.
17654 Add prototype for abort.
17655 * testsuite/libgomp.dg/shared-2.c: Likewise.
17657 2005-09-26 Jakub Jelinek <jakub@redhat.com>
17659 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
17662 2005-09-26 Diego Novillo <dnovillo@redhat.com>
17664 * testsuite/libgomp.dg/shared-1.c: New test.
17665 * testsuite/libgomp.dg/shared-2.c: New test.
17667 2005-09-24 Richard Henderson <rth@redhat.com>
17669 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
17671 2005-09-24 Richard Henderson <rth@redhat.com>
17673 * iter.c (gomp_iter_static_next): Round up when computing number
17674 of iterations. Don't bother distributing a remainder equally.
17676 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
17677 Don't call srand. Zero b before testing.
17680 2005-09-24 Jakub Jelinek <jakub@redhat.com>
17682 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
17683 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
17685 2005-09-23 Jakub Jelinek <jakub@redhat.com>
17687 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
17688 without !$omp end do, followed immediately by subroutine end.
17690 2005-09-23 Diego Novillo <dnovillo@redhat.com>
17692 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
17694 2005-09-22 Richard Henderson <rth@redhat.com>
17696 * critical.c (GOMP_critical_name_start): Change argument to void**.
17697 Reuse the pointer space if the mutex fits.
17698 (GOMP_critical_name_end): Likewise.
17699 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
17700 * libgomp_g.h (GOMP_critical_name_start): Update decl.
17701 (GOMP_critical_name_end): Likewise.
17702 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
17703 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
17705 2005-09-20 Richard Henderson <rth@redhat.com>
17707 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
17708 (create_lock_lock): New.
17709 (initialize_critical): Initialize it.
17710 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
17711 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
17713 2005-09-20 Diego Novillo <dnovillo@redhat.com>
17715 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
17717 2005-09-20 Diego Novillo <dnovillo@redhat.com>
17719 * testsuite/libgomp.dg/omp-loop01.c: New test.
17720 * testsuite/libgomp.dg/omp-loop02.c: New test.
17722 2005-09-20 Jakub Jelinek <jakub@redhat.com>
17724 * configure.ac (AC_PROG_FC): Add.
17725 (USE_FORTRAN): New automake conditional.
17726 * configure: Rebuilt.
17727 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
17728 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
17729 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
17730 Add rules to build them.
17731 * Makefile.in: Rebuilt.
17732 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
17733 OMP_NEST_LOCK_KIND.
17734 * libgomp.map: Add Fortran wrappers.
17735 * libgomp_f.h.in: New file.
17736 * omp_lib.h.in: New file.
17737 * omp_lib.f90.in: New file.
17738 * fortran.c: New file.
17739 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
17740 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
17741 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
17742 libgfortran has been built.
17743 * testsuite/libgomp.fortran/fortran.exp: New file.
17744 * testsuite/libgomp.fortran/omp_cond1.f: New test.
17745 * testsuite/libgomp.fortran/omp_cond2.f: New test.
17746 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
17747 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
17748 * testsuite/libgomp.fortran/omp_hello.f: New test.
17749 * testsuite/libgomp.fortran/omp_orphan.f: New test.
17750 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
17751 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
17752 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
17753 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
17754 * testsuite/libgomp.fortran/omp_reduction.f: New test.
17755 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
17756 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
17758 2005-08-30 Richard Henderson <rth@redhat.com>
17760 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
17761 function for when aliases are not usable.
17762 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
17763 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
17764 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
17765 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
17766 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
17767 GOMP_loop_ordered_guided_next): Likewise.
17768 * ordered.c (GOMP_ordered_start): Likewise.
17770 2005-08-01 Diego Novillo <dnovillo@redhat.com>
17772 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
17773 * testsuite/libgomp.dg/omp_hello.c: Fix return code
17774 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
17775 * testsuite/libgomp.dg/omp_orphan.c: Likewise
17776 * testsuite/libgomp.dg/omp_reduction.c: Likewise
17777 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
17778 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
17779 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
17780 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
17782 2005-07-07 Eric Christopher <echristo@redhat.com>
17783 Diego Novillo <dnovillo@redhat.com>
17785 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
17786 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
17788 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
17789 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
17790 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
17791 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
17792 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
17793 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
17794 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
17796 2005-06-13 Diego Novillo <dnovillo@redhat.com>
17798 * TOPLEVEL.patch: Remove.
17800 2005-05-16 Richard Henderson <rth@redhat.com>
17802 * configure.ac: Test for clock_gettime.
17803 * config.h.in, configure: Rebuild.
17804 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
17805 (omp_get_wtime): Use clock_gettime if available.
17806 (omp_get_wtick): Use clock_getres if available.
17808 2005-05-11 Richard Henderson <rth@redhat.com>
17810 * config/linux/ia64/futex.h: New file.
17811 * configure.tgt: Use it.
17813 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
17815 2005-05-07 Richard Henderson <rth@redhat.com>
17817 * config/linux/powerpc/futex.h: New file.
17818 * configure.tgt: Use it.
17820 * config/linux/i486/futex.h: Merge ...
17821 * config/linux/x86_64/futex.h: ... into ...
17822 * config/linux/x86/futex.h: ... here.
17823 * configure.tgt: Update to match.
17825 2005-05-06 Richard Henderson <rth@redhat.com>
17827 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
17828 * config/linux/i486/futex.h: Likewise.
17829 * config/linux/x86_64/futex.h: Likewise.
17831 * config/linux/lock.c: New file.
17832 * config/linux/omp-lock.h: New file.
17834 * critical.c, env.h: Don't include omp.h
17835 * config/posix/lock.c: Include libgomp.h instead of omp.h.
17836 * config/posix/time.c: Likewise.
17837 * config/posix/omp-lock.h: New file.
17838 * libgomp.h: Include omp-lock.h and omp.h.
17839 * Makefile.am (nodist_include_HEADERS): New.
17841 * configure.ac (PERL): New.
17842 * mkomp_h.pl: New file.
17843 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
17845 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
17847 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
17848 build directory. Re-add -march=i486 hack.
17850 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
17851 (libgomp_link_flags): Remove.
17852 (libgomp_initialized): Remove.
17853 (libgomp_init): Don't protect from reinitialization. Copy code
17854 from libstdc++ for getting the multilib set correctly.
17856 2005-05-05 Richard Henderson <rth@redhat.com>
17858 * config/linux/alpha/futex.h: New file.
17859 * configure.tgt (alpha*-*-linux*): Use it.
17861 * config/posix/mutex.c: New file.
17862 * config/posix/sem.c: Use libgomp.h.
17864 * configure.tgt (x86_64-linux): Also test CC for -m32.
17865 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
17867 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
17870 * Makefile.am (SUBDIRS): New.
17871 (libgomp_la_LDFLAGS): Add -lpthread.
17872 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
17873 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
17875 * libgomp_g.h: New file.
17876 * libgomp.h: Split out all public declarations to libgomp_g.h.
17877 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
17878 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
17879 * config/linux/sem.h: Likewise.
17880 * config/posix/sem.h: Likewise.
17882 * Makefile.am (AM_LDFLAGS): New.
17883 (libgomp_version_script): Split out from ...
17884 (libgomp_la_LDFLAGS): ... here.
17885 (libgomp_version_info): New.
17886 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
17887 (LIBGOMP_ENABLE): New.
17888 (LIBGOMP_CHECK_LINKER_FEATURES): New.
17889 (LIBGOMP_ENABLE_SYMVERS): New.
17890 * configure.ac (AC_INIT): Version 1.0.
17891 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
17892 (enable-linux-futex): Likewise. Rename from enable-futex.
17893 (libtool_VERSION): New.
17894 (LIBGOMP_ENABLE_SYMVERS): Use it.
17895 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
17896 * Makefile.in, aclocal.m4, configure: Rebuild.
17898 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
17899 (gomp_mutex_unlock_slow): Fix typo.
17900 * config/linux/sem.c: Similarly.
17901 (gomp_sem_post_slow): Fix typo.
17902 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
17903 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
17904 [__PIC__] (sys_futex0): Don't use tmp output in asm.
17906 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
17907 (libgomp_la_LDFLAGS): Add top_srcdir to path.
17908 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
17909 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
17910 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
17911 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
17912 LDFLAGS. Pull enable_futex check to top-level.
17913 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
17914 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
17916 First attempt at real configury.
17917 * Makefile, config.h: Remove file.
17918 * Makefile.am, Makefile.in: New file.
17919 * acinclude.m4 aclocal.m4: New file.
17920 * configure.ac, configure.tgt, configure: New file.
17922 * config/posix/lock.c: Rename from sys-lock.c.
17923 * config/posix/mutex.h: Rename from sys-mutex.h.
17924 * config/posix/sem.c: Rename from sys-sem.c.
17925 * config/posix/sem.h: Rename from sys-sem.h.
17926 * config/posix/proc.c: Rename from sys-proc.c.
17927 * config/posix/time.c: Rename from sys-proc.c.
17929 * config/linux/mutex.c: New file.
17930 * config/linux/mutex.h: New file.
17931 * config/linux/sem.c: New file.
17932 * config/linux/sem.h: New file.
17933 * config/linux/i486/futex.h: New file.
17934 * config/linux/x86_64/futex.h: New file.
17936 2005-05-04 Richard Henderson <rth@redhat.com>
17938 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
17939 * libgomp.h: Declare them.
17940 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
17941 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
17943 2005-05-04 Richard Henderson <rth@redhat.com>
17945 * libgomp-1 code drop
17947 2005-05-04 Richard Henderson <rth@redhat.com>
17949 * iter.c (gomp_iter_static_next): Return tri-state on 0.
17950 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
17951 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
17952 (gomp_iter_static_next): Update.
17953 (gomp_ordered_static_next): Update.
17954 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
17955 (gomp_loop_ordered_static_start): Likewise. Exit early for a
17956 totally empty range.
17957 (gomp_loop_ordered_static_next): Refine test for calling
17958 gomp_ordered_static_next.
17959 * testsuite/ordered-1.c: Add case for more threads than iterations.
17961 * iter.c (gomp_iter_runtime_next_locked): Remove.
17962 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
17963 gomp_loop_guided_start, gomp_loop_ordered_static_start,
17964 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
17965 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
17966 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
17967 gomp_loop_ordered_guided_next): Downcase name, make static, add
17968 an external alias with the old name.
17969 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
17970 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
17971 switch and call one of the above static functions.
17972 * libgomp.h: Update.
17974 * work.c (gomp_work_share_start): Lock the mutex for !first too.
17975 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
17976 GOMP_loop_guided_start, GOMP_loop_runtime_start,
17977 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
17978 GOMP_loop_ordered_guided_start): Update to match.
17979 * sections.c (GOMP_sections_start): Likewise.
17980 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
17982 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
17983 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
17984 Use bounds check instead of modulus.
17985 (gomp_ordered_sync): Split out of GOMP_ordered_start.
17986 (gomp_ordered_last): Don't sync with ordered_owner here.
17987 (gomp_ordered_next): Likewise.
17988 (gomp_ordered_static_loop_next): Likewise.
17989 * loop.c, libgomp.h: Update to match.
17991 * libgomp.h (GOMP_barrier): Declare.
17993 * testsuite/barrier-1.c: New file.
17994 * testsuite/critical-1.c: New file.
17995 * testsuite/ordered-2.c: New file.
17996 * testsuite/ordered-1.c: New file.
17997 * testsuite/sections-1.c: New file.
17998 * testsuite/single-1.c: New file.
17999 * testsuite/Makefile (TESTS): Add them.
18001 2005-05-04 Richard Henderson <rth@redhat.com>
18003 * libgomp.h (struct gomp_work_share): Add ordered_owner.
18004 * loop.c (GOMP_loop_static_start): If not the startup thread,
18005 acquire the mutex to wait for initialization complete.
18006 (GOMP_loop_ordered_static_start): Likewise.
18007 (GOMP_loop_ordered_runtime_start): Likewise.
18008 (GOMP_loop_ordered_static_first): Remove.
18009 (GOMP_loop_ordered_dynamic_first): Remove.
18010 (GOMP_loop_ordered_guided_first): Remove.
18011 (GOMP_loop_ordered_runtime_first): Remove.
18012 * ordered.c (gomp_ordered_loop_first): Post to own release when
18013 we're the first thread.
18014 (gomp_ordered_loop_last): Wait on release if not owner.
18015 (gomp_ordered_loop_next): Likewise.
18016 (gomp_ordered_static_loop_init): New.
18017 (gomp_ordered_static_loop_next): Use ordered_owner.
18018 (GOMP_ordered_start): Likewise.
18019 * work.c (gomp_new_work_share): Initialize ordered_owner.
18021 2005-05-03 Richard Henderson <rth@redhat.com>
18023 * Makefile (OPT): New.
18026 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
18027 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
18028 * libgomp.h, libgomp.map, NOTES: Update to match.
18030 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
18031 Add initialized and thr members.
18032 (gomp_thread_start): Pause when initially spawned to wait for
18033 the whole team to be created.
18034 (gomp_team_start): Release team members at the end.
18036 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
18037 (f_foo_1): Use GOMP_loop_end.
18038 (f_foo_2): Use GOMP_loop_end_nowait.
18040 * testsuite/loop-2.c: New file.
18041 * testsuite/Makefile (TESTS): Add it.
18043 2005-05-03 Richard Henderson <rth@redhat.com>
18045 * iter.c (gomp_iter_static_next): Fix overflow check typo.
18046 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
18047 * team.c (new_team): Initialize oldest_live_gen to 1 if no
18048 initial work_share.
18050 * testsuite/Makefile: New file.
18051 * testsuite/loop-1.c: New file.
18053 2005-05-03 Richard Henderson <rth@redhat.com>
18055 Initial implementation and checkin.
18057 Copyright (C) 2005-2022 Free Software Foundation, Inc.
18059 Copying and distribution of this file, with or without modification,
18060 are permitted in any medium without royalty provided the copyright
18061 notice and this notice are preserved.