1 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
3 * libgomp.texi (Offload-Target Specifics: nvptx): Document
4 that reverse offload requires >= -march=sm_35.
5 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
7 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
8 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
9 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
10 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
11 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
13 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
15 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
16 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
18 2022-09-12 Jakub Jelinek <jakub@redhat.com>
21 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
22 (main): Avoid tests for which corresponding non-_ALL suffixed variable
23 is in the environment, or for OMP_NUM_TEAMS on the device
26 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
28 * env.c (initialize_env): Include libiberty environ.h.
30 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
32 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
33 function address table '$offload_func_table' if rev_fn_table
36 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
38 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
39 .offload_func_table to populate rev_fn_table when requested.
41 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
43 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
44 'uint64_t **rev_fn_table' argument.
45 * oacc-host.c (host_load_image): Likewise.
46 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
48 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
49 * target.c (gomp_load_image_to_device): Update call but pass
52 2022-09-09 Jakub Jelinek <jakub@redhat.com>
55 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
56 char * for dest[1] initialization from params[1]. Formatting fixes.
58 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
61 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
63 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
65 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
66 section; move OpenMP Context Selectors from ...
67 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
70 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
72 * config/gcn/icv-device.c (omp_get_default_device): Return device-
74 (omp_get_max_teams): Added for GCN devices.
75 (omp_set_num_teams): Likewise.
77 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
79 (omp_get_max_teams): Added for NVPTX devices.
80 (omp_set_num_teams): Likewise.
82 * env.c (struct gomp_icv_list): New struct to store entries of initial
84 (struct gomp_offload_icv_list): New struct to store entries of device-
85 specific ICV values that are copied to the device and back.
86 (struct gomp_default_icv_values): New struct to store default values of
87 ICVs according to the OpenMP standard.
88 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
89 (print_env_var_error): Function that prints an error for invalid values
91 (parse_unsigned_long_1): Removed getenv. Generalized.
92 (parse_unsigned_long): Likewise.
93 (parse_int_1): Likewise.
94 (parse_int): Likewise.
95 (parse_int_secure): Likewise.
96 (parse_unsigned_long_list): Likewise.
97 (parse_target_offload): Likewise.
98 (parse_bind_var): Likewise.
99 (parse_stacksize): Likewise.
100 (parse_boolean): Likewise.
101 (parse_wait_policy): Likewise.
102 (parse_allocator): Likewise.
103 (omp_display_env): Extended to output different variants of environment
105 (print_schedule): New helper function for omp_display_env which prints
106 the values of run_sched_var.
107 (print_proc_bind): New helper function for omp_display_env which prints
108 the values of proc_bind_var.
109 (enum gomp_parse_type): Collection of types used for parsing environment
111 (ENTRY): Preprocess string lengths of environment variables.
112 (OMP_VAR_CNT): Preprocess table size.
113 (OMP_HOST_VAR_CNT): Likewise.
114 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
116 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
117 (gomp_set_icv_flag): Sets a flag for a particular ICV.
118 (print_device_specific_icvs): New helper function for omp_display_env to
119 print device specific ICV values.
120 (get_device_num): New helper function for parse_device_specific.
121 Extracts the device number from an environment variable name.
122 (get_icv_member_addr): Gets the memory address for a particular member
124 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
125 (initialize_icvs): New function to initialize a gomp_initial_icvs
127 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
128 (startswith): Checks if a string starts with a given prefix.
129 (initialize_env): Extended to parse the new syntax of environment
131 * icv-device.c (omp_get_max_teams): Added.
133 (omp_set_num_teams): Likewise.
134 * icv.c (omp_set_num_teams): Moved to icv-device.c.
135 (omp_get_max_teams): Likewise.
137 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
138 (GOMP_ADDITIONAL_ICVS): New target-side struct that
139 holds the designated ICVs of the target device.
140 * libgomp.h (enum gomp_icvs): Collection of ICVs.
141 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
143 (enum gomp_env_suffix): Collection of possible suffixes of environment
145 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
147 (struct gomp_default_icv):New struct to hold ICVs for which we need
148 to store initial values.
149 (struct gomp_icv_list): Definition of a linked list that is used for
150 storing ICVs for the devices and also for _DEV, _ALL, and without
152 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
154 (struct gomp_offload_icv_list): Definition of a linked list that holds
155 device-specific ICVs that are copied to devices.
156 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
157 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
158 * libgomp.texi: Updated.
159 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
160 further ICVs from the offload image.
161 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
162 * target.c (gomp_get_offload_icv_item): Get a list item of
163 gomp_offload_icv_list.
164 (get_gomp_offload_icvs): New. Returns the ICV values
165 depending on the device num and the variable hierarchy.
166 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
167 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
168 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
169 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
170 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
171 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
172 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
174 2022-09-08 Jakub Jelinek <jakub@redhat.com>
176 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
178 * testsuite/libgomp.c/doacross-4.c: New test.
179 * testsuite/libgomp.c/doacross-5.c: New test.
180 * testsuite/libgomp.c/doacross-6.c: New test.
181 * testsuite/libgomp.c/doacross-7.c: New test.
183 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
185 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
187 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
189 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
191 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
192 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
193 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
194 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
196 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
199 * testsuite/libgomp.c/linear-2.c: New test.
201 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
203 * splay-tree.h: Fix splay_* macro unsetting if
204 splay_tree_prefix is defined.
206 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
208 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
210 2022-07-29 Jakub Jelinek <jakub@redhat.com>
213 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
215 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
217 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
219 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
222 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
223 'offloading_enabled' diagnostics issue.
225 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
227 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
228 '_Pragma' diagnostics verification.
230 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
232 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
233 improved warning locations.
234 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
236 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
238 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
239 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
240 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
241 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
242 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
244 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
246 * target.c (GOMP_offload_register, GOMP_offload_unregister):
247 Denote as legacy entry points.
248 * testsuite/lib/libgomp.exp
249 (check_effective_target_offload_target_any): New proc.
250 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
251 'offload_target_any'.
252 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
253 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
254 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
256 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
258 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
259 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
261 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
263 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
265 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
267 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
269 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
271 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
272 Jakub Jelinek <jakub@redhat.com>
274 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
276 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
277 Chung-Lin Tang <cltang@codesourcery.com>
278 Thomas Schwinge <thomas@codesourcery.com>
280 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
281 omp_requires_mask arg.
282 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
283 return -1 when device available but omp_requires_mask != 0.
284 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
285 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
287 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
288 goacc_attach_host_thread_to_device, acc_get_num_devices,
289 acc_set_device_num, get_property_any): Likewise.
290 * target.c (omp_requires_mask): New global var.
291 (gomp_requires_to_name): New.
292 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
293 (gomp_target_init): Handle omp_requires_mask.
294 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
295 (OpenMP 5.1): Add a missed item.
296 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
297 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
298 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
299 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
300 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
301 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
302 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
303 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
304 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
305 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
306 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
307 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
308 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
309 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
310 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
311 * testsuite/libgomp.fortran/requires-1.f90: New test.
313 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
315 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
316 with fromto as implemented.
318 2022-06-28 Martin Liska <mliska@suse.cz>
320 * acinclude.m4: Fix typo in mold linker detection.
321 * Makefile.in: Regenerate.
322 * configure: Regenerate.
324 2022-06-21 Jakub Jelinek <jakub@redhat.com>
325 Paul Iannetta <piannetta@kalrayinc.com>
328 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
330 2022-06-17 Martin Liska <mliska@suse.cz>
332 * libgomp.texi: Add table header for new features of
335 2022-06-15 Jakub Jelinek <jakub@redhat.com>
337 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
338 q to ddress of an automatic variable. Use -5 instead of -1 in
339 omp_get_mapped_ptr call. Add test with omp_initial_device.
340 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
341 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
342 Renumber stop arguments afterwards.
344 2022-06-13 Jakub Jelinek <jakub@redhat.com>
346 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
347 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
349 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
350 * target.c (resolve_device): Add remapped argument, handle
351 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
352 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
353 if remapped, otherwise treat omp_initial_device that way. For
354 omp_invalid_device, always emit gomp_fatal, even when
355 OMP_TARGET_OFFLOAD isn't mandatory.
356 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
357 GOMP_target_update, GOMP_target_update_ext,
358 GOMP_target_enter_exit_data): Pass true as remapped argument to
360 (omp_target_alloc, omp_target_free, omp_target_is_present,
361 omp_target_memcpy_check, omp_target_associate_ptr,
362 omp_target_disassociate_ptr, omp_get_mapped_ptr,
363 omp_target_is_accessible): Pass false as remapped argument to
364 resolve_device. Treat omp_initial_device the same as
365 gomp_get_num_devices (). Don't bypass resolve_device calls if
366 device_num is negative.
367 (omp_pause_resource): Treat omp_initial_device the same as
368 gomp_get_num_devices (). Call resolve_device.
369 * icv-device.c (omp_set_default_device): Always set to device_num
370 even when it is negative.
371 * libgomp.texi: Document that Conforming device numbers,
372 omp_initial_device and omp_invalid_device is implemented.
373 * testsuite/libgomp.c/target-41.c (main): Add test with
375 * testsuite/libgomp.c/target-45.c: New test.
376 * testsuite/libgomp.c/target-46.c: New test.
377 * testsuite/libgomp.c/target-47.c: New test.
378 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
379 test with omp_initial_device. Use -5 instead of -1 for negative value
381 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
382 Likewise. Reorder stop numbers.
384 2022-06-10 Jakub Jelinek <jakub@redhat.com>
386 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
387 rather than "libmemkind.so".
389 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
391 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
392 * plugin/configfrag.ac (--with-cuda-driver)
393 (--with-cuda-driver-include, --with-cuda-driver-lib)
394 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
395 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
397 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
398 (cuda_driver_lib): Remove.
399 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
400 * Makefile.in: Regenerate.
401 * configure: Likewise.
402 * testsuite/Makefile.in: Likewise.
404 2022-06-09 Jakub Jelinek <jakub@redhat.com>
406 * config/linux/allocator.c: Fix up #include directive.
408 2022-06-09 Jakub Jelinek <jakub@redhat.com>
410 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
411 (enum gomp_memkind_kind): New type.
412 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
414 (struct gomp_memkind_data): New type.
415 (memkind_data, memkind_data_once): New variables.
416 (gomp_init_memkind, gomp_get_memkind): New functions.
417 (omp_init_allocator): Initialize data.memkind, don't fail for
418 omp_high_bw_mem_space if libmemkind supports it.
419 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
420 memkind support of LIBGOMP_USE_MEMKIND is defined.
421 * config/linux/allocator.c: New file.
423 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
425 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
426 * testsuite/libgomp.fortran/scope-2.f90: New test.
428 2022-06-02 David Malcolm <dmalcolm@redhat.com>
430 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
432 2022-05-31 Jakub Jelinek <jakub@redhat.com>
434 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
435 scope construct with allocate clause.
436 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
437 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
439 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
441 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
442 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
443 explicit 'to' and 'enter' clause.
444 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
446 2022-05-28 Jakub Jelinek <jakub@redhat.com>
449 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
450 defined(HAVE__ALIGNED_MALLOC) case.
451 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
452 handling as last option before fallback instead of first.
453 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
456 2022-05-27 Jakub Jelinek <jakub@redhat.com>
458 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
460 * testsuite/libgomp.c/target-41.c: Likewise.
462 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
464 * libgomp.texi (Other new OpenMP 5.1 features): Add
465 'begin declare target'.
466 (Other new OpenMP 5.2 features): New.
468 2022-05-25 Jakub Jelinek <jakub@redhat.com>
470 * task.c (gomp_task_run_post_handle_dependers): If empty_task
471 is the last task taskwait depend depends on, wake it up.
472 Similarly if it is the last child of a taskgroup, use atomic
473 store instead of decrement and awak taskgroup wait if any.
474 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
476 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
478 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
479 EF_AMDGPU_MACH_AMDGCN_GFX90a.
481 (isa_hsa_name): Support gfx90a.
482 (isa_code): Likewise.
484 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
487 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
488 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
490 2022-05-24 Jakub Jelinek <jakub@redhat.com>
493 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
494 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
495 * task.c (empty_task): New function.
496 (gomp_task_run_post_handle_depend_hash): Declare earlier.
497 (gomp_task_run_post_handle_depend): Declare.
498 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
500 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
501 (GOMP_taskwait_depend_nowait): New function.
502 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
504 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
507 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
508 Support attach for GOMP_MAP_FIRSTPRIVATE.
509 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
510 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
511 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
513 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
515 * libgomp.map: Added omp_target_memcpy_async and
516 omp_target_memcpy_rect_async.
517 * libgomp.texi: Both functions are now supported.
518 * omp.h.in: Added omp_target_memcpy_async and
519 omp_target_memcpy_rect_async.
520 * omp_lib.f90.in: Added interfaces for both new functions.
521 * omp_lib.h.in: Likewise.
522 * target.c (ialias_redirect): Added for GOMP_task.
523 (omp_target_memcpy): Restructured into check and copy part.
524 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
525 omp_target_memcpy_async that checks requirements.
526 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
527 omp_target_memcpy_async that performs the memcpy.
528 (omp_target_memcpy_async_helper): New helper function that is used in
529 omp_target_memcpy_async for the asynchronous task.
530 (omp_target_memcpy_async): Added.
531 (omp_target_memcpy_rect): Restructured into check and copy part.
532 (omp_target_memcpy_rect_check): New helper function for
533 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
535 (omp_target_memcpy_rect_copy): New helper function for
536 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
538 (omp_target_memcpy_rect_async_helper): New helper function that is used
539 in omp_target_memcpy_rect_async for the asynchronous task.
540 (omp_target_memcpy_rect_async): Added.
541 * task.c (ialias): Added for GOMP_task.
542 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
543 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
544 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
545 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
546 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
547 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
548 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
549 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
551 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
553 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
554 (OpenMP Context Selectors): Add missing comma.
555 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
556 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
557 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
558 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
560 2022-05-17 Jakub Jelinek <jakub@redhat.com>
562 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
563 comment for omp_display_env feature.
565 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
567 * libgomp.texi (Offload-Target Specifics): New chapter; add section
568 to document OpenMP context selectors.
570 2022-05-17 Jakub Jelinek <jakub@redhat.com>
572 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
573 from bool to unsigned char.
574 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
575 Ignore dependencies where
576 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
577 rather than just task->depend[i].is_in && ent->is_in. Remember
578 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
580 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
581 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
582 rather than just elem.is_in && ent->is_in.
583 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
584 inoutset depend-kind.
585 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
586 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
587 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
589 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
591 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
593 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
595 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
596 * testsuite/libgomp.fortran/depend-5.f90: New test.
597 * testsuite/libgomp.fortran/depend-6.f90: New test.
598 * testsuite/libgomp.fortran/depend-7.f90: New test.
600 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
602 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
603 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
604 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
606 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
608 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
610 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
612 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
614 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
616 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
617 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
618 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
619 append '$(PLUGIN_NVPTX_LDFLAGS)'.
620 * Makefile.in: Regenerate.
622 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
624 * Makefile.am (libgomp_la_LIBADD): Initialize.
625 * plugin/configfrag.ac (DL_LIBS): New.
626 (PLUGIN_GCN_LIBS): Remove.
627 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
628 * plugin/Makefrag.am (libgomp_la_LIBADD)
629 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
630 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
631 * Makefile.in: Regenerate.
632 * config.h.in: Likewise.
633 * configure: Likewise.
634 * testsuite/Makefile.in: Likewise.
636 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
638 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
639 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
640 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
641 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
642 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
643 'PLUGIN_NVPTX_LINK_LIBCUDA'.
644 * Makefile.in: Regenerate.
645 * config.h.in: Likewise.
646 * configure: Likewise.
648 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
650 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
651 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
652 * Makefile.in: Regenerate.
653 * config.h.in: Likewise.
654 * configure: Likewise.
655 * testsuite/Makefile.in: Likewise.
657 2022-05-12 Jakub Jelinek <jakub@redhat.com>
659 * libgomp.h (struct gomp_task): Add depend_all_memory member.
660 * task.c (gomp_init_task): Initialize depend_all_memory.
661 (gomp_task_handle_depend): Handle omp_all_memory.
662 (gomp_task_run_post_handle_depend_hash): Clear
663 parent->depend_all_memory if equal to current task.
664 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
665 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
666 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
667 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
669 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
671 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
672 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
673 * Makefile.in: Regenerate.
674 * configure: Likewise.
675 * testsuite/Makefile.in: Likewise.
677 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
679 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
680 consider 'PLUGIN_GCN_CPPFLAGS'.
681 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
682 'PLUGIN_GCN_LDFLAGS'.
683 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
685 * Makefile.in: Regenerate.
686 * configure: Likewise.
687 * testsuite/Makefile.in: Likewise.
689 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
691 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
692 (HSA_RUNTIME_LDFLAGS): Remove.
693 * configure: Regenerate.
695 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
697 * testsuite/lib/libgomp.exp (libgomp_init): Don't
698 'append always_ld_library_path ":$hsa_runtime_lib"'.
699 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
701 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
703 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
704 multi-device testing.
706 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
708 * libgomp.map: Added omp_target_is_accessible.
709 * libgomp.texi: Tagged omp_target_is_accessible as supported.
710 * omp.h.in: Added omp_target_is_accessible.
711 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
712 * omp_lib.h.in: Likewise.
713 * target.c (omp_target_is_accessible): Added implementation of
714 omp_target_is_accessible.
715 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
716 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
718 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
720 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
722 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
724 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
726 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
728 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
730 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
732 * libgomp.map: Added omp_get_mapped_ptr.
733 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
734 * omp.h.in: Added omp_get_mapped_ptr.
735 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
736 * omp_lib.h.in: Likewise.
737 * target.c (omp_get_mapped_ptr): Added implementation of
739 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
740 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
741 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
742 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
743 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
744 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
745 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
746 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
748 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
751 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
752 privatization scanning. For GCN offloading compilation, raise
753 '-mgang-private-size'.
755 2022-04-26 Jakub Jelinek <jakub@redhat.com>
758 * work.c (gomp_init_work_share): Don't mask of adjustment for
759 dynamic long long realignment if struct gomp_work_share has smaller
760 alignof than long long.
761 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
762 struct gomp_work_share has smaller alignof than long long or if
763 sizeof (struct gomp_work_share) is smaller than
764 INLINE_ORDERED_TEAM_IDS_OFF.
765 * loop_ull.c (GOMP_loop_ull_start): Likewise.
766 * sections.c (GOMP_sections2_start): Likewise.
768 2022-04-25 Jakub Jelinek <jakub@redhat.com>
769 Thomas Schwinge <thomas@codesourcery.com>
772 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
774 2022-04-13 Jakub Jelinek <jakub@redhat.com>
776 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
778 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
780 * plugin/cuda/cuda.h: Remove file.
781 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
782 "cuda/cuda.h" instead of <cuda.h>.
783 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
784 'PLUGIN_NVPTX_CPPFLAGS'.
785 * configure: Regenerate.
787 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
789 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
791 2022-04-04 Tom de Vries <tdevries@suse.de>
793 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
794 on_device_arch_nvptx instead of offload_target_nvptx.
795 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
797 2022-04-01 Tom de Vries <tdevries@suse.de>
799 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
801 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
803 2022-04-01 Tom de Vries <tdevries@suse.de>
805 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
808 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
809 Lulu Cheng <chenglulu@loongson.cn>
811 * configure.tgt: Add LoongArch triplet.
813 2022-03-28 Tom de Vries <tdevries@suse.de>
815 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
816 instead of /libexec/.
817 * configure: Regenerate.
819 2022-03-25 Tom de Vries <tdevries@suse.de>
822 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
824 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
825 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
827 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
830 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
831 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
832 * testsuite/libgomp.c++/target-same-name-2.C: New test.
833 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
834 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
835 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
837 2022-03-22 Tom de Vries <tdevries@suse.de>
841 * testsuite/libgomp.c/pr104783-2.c: New test.
843 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
846 * testsuite/libgomp.fortran/associate4.f90: New test.
848 2022-03-18 Tom de Vries <tdevries@suse.de>
851 * testsuite/libgomp.c/pr104952-1.c: New test.
852 * testsuite/libgomp.c/pr104952-2.c: New test.
854 2022-03-18 Jakub Jelinek <jakub@redhat.com>
856 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
857 variable next to pl variable.
859 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
861 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
863 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
864 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
866 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
869 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
870 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
872 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
874 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
875 omp_set_max_active_levels.
876 * testsuite/libgomp.fortran/icv-8.f90: New test.
878 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
881 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
883 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
885 * libgomp.texi: Fix typo.
887 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
891 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
892 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
893 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
895 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
897 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
898 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
899 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
902 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
905 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
907 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
908 enable '--param=openacc-kernels=decompose' and adjust.
909 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
911 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
912 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
915 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
918 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
919 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
920 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
921 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
923 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
927 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
929 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
931 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
933 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
936 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
938 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
939 trait. Test last index in w and v array. Remove redundant
940 assignment to V(1). Move alignment checks at the end of
943 2022-03-10 Tom de Vries <tdevries@suse.de>
945 * testsuite/libgomp.c/pr104783.c: New test.
947 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
952 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
954 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
956 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
958 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
960 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
962 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
964 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
966 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
968 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
970 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
972 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
974 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
976 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
978 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
980 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
981 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
982 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
984 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
987 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
988 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
989 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
990 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
992 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
995 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
996 expected diagnostics.
998 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1000 PR middle-end/104784
1001 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1002 Test with '--param=openacc-kernels=decompose'.
1003 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1005 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1007 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1009 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1011 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1013 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1015 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1017 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1019 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1021 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1023 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1025 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1027 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1029 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1031 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1033 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1035 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1037 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1039 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1041 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1043 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1045 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1047 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1049 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1051 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1053 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1055 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1057 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1059 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1061 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1063 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1065 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1068 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1070 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1071 Test '-fopt-info-omp-all'.
1072 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1074 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1076 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1078 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1080 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1082 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1084 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1086 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1088 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1090 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1092 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1094 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1096 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1098 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1100 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1102 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1104 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1106 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1108 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1110 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1112 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1114 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1116 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1118 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1120 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1122 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1124 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1126 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1128 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1130 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1132 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1134 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1137 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1139 PR middle-end/100280
1140 PR middle-end/104132
1141 PR middle-end/104133
1142 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1145 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1147 PR middle-end/100280
1148 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1149 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1152 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1154 PR middle-end/100280
1155 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1156 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1159 2022-02-28 Tom de Vries <tdevries@suse.de>
1161 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
1162 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
1163 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
1164 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
1165 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
1166 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
1168 2022-02-24 Tom de Vries <tdevries@suse.de>
1170 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
1171 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
1172 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
1173 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
1174 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
1175 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
1176 * testsuite/libgomp.c/declare-variant-3.h: New header file.
1178 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
1180 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
1181 gang-redundant execution.
1183 2022-02-22 Tom de Vries <tdevries@suse.de>
1186 * config/nvptx/bar.c (generation_to_barrier): New function, copied
1187 from config/rtems/bar.c.
1188 (futex_wait, futex_wake): New function.
1189 (do_spin, do_wait): New function, copied from config/linux/wait.h.
1190 (gomp_barrier_wait_end, gomp_barrier_wait_last)
1191 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
1192 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
1193 and replace with include of config/linux/bar.c.
1194 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
1195 (gomp_barrier_init): Init new fields.
1196 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
1198 * testsuite/libgomp.c/pr99555-1.c: Same.
1199 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
1201 2022-02-22 Tom de Vries <tdevries@suse.de>
1204 * testsuite/libgomp.c++/pr96390.C: Add additional-option
1205 -foffload=-Wa,--verify for nvptx.
1206 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
1208 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
1210 * testsuite/libgomp.fortran/depend-4.f90: New test.
1212 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
1215 * testsuite/libgomp.c++/target-virtual-1.C: New test.
1217 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
1219 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
1220 * target.c (copy_firstprivate_data): Copy only if host address is not
1222 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
1223 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
1224 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
1225 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
1226 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
1227 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
1228 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
1229 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
1230 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
1231 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
1233 2022-02-08 Jakub Jelinek <jakub@redhat.com>
1236 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
1238 * testsuite/libgomp.c/pr104385.c: New test.
1240 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1242 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
1243 STOP of previous commit.
1245 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1247 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
1248 from is_64bit_aligned_.
1249 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
1250 and use it, more implicit none, remove unused argument.
1252 2022-02-03 David Seifert <soap@gentoo.org>
1253 Jakub Jelinek <jakub@redhat.com>
1255 * configure.ac: Support --disable-werror.
1256 * configure: Regenerate.
1258 2022-02-01 Tom de Vries <tdevries@suse.de>
1260 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
1262 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
1263 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
1265 2022-02-01 Tom de Vries <tdevries@suse.de>
1267 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
1268 num_workers for nvidia accelerator to fix libgomp error 'insufficient
1270 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1272 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
1274 2022-02-01 Tom de Vries <tdevries@suse.de>
1276 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1278 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1280 2022-01-31 Martin Liska <mliska@suse.cz>
1282 * acinclude.m4: Detect *_ld_is_mold and use it.
1283 * configure: Regenerate.
1285 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
1287 * libgomp.texi (OpenMP 5.0): Update implementation status.
1289 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
1291 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
1292 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1293 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1294 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1295 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1296 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1297 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1298 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1299 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1300 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1301 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1302 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
1303 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
1304 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1305 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
1307 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
1309 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
1310 "static") to make the device num available in the offload image.
1312 2022-01-19 Martin Liska <mliska@suse.cz>
1313 Thomas Schwinge <thomas@codesourcery.com>
1315 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
1317 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1318 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1320 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1321 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1322 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1323 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1324 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
1326 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
1328 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
1330 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
1332 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
1334 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1336 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1337 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1338 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1340 2022-01-18 Martin Liska <mliska@suse.cz>
1342 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
1344 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1345 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1346 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1347 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1348 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1349 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1350 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
1351 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
1352 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
1353 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
1354 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
1355 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
1356 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1357 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1358 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1360 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
1362 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
1363 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1364 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1366 2022-01-17 Julian Brown <julian@codesourcery.com>
1367 Thomas Schwinge <thomas@codesourcery.com>
1369 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
1370 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
1371 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
1373 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1374 Andrew Stubbs <ams@codesourcery.com>
1376 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
1377 the number of teams and threads if necessary.
1378 (gcn_exec): Automatically set the number of gangs and workers if
1381 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
1383 * testsuite/libgomp.fortran/allocate-1.c: New test.
1384 * testsuite/libgomp.fortran/allocate-1.f90: New test.
1385 * libgomp.texi: Remove string that says that allocate clause
1386 support is for C/C++ only.
1388 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1390 * testsuite/libgomp.c-c++-common/on_device_arch.h
1391 (any_device_arch, any_device_arch_intel_mic): New.
1392 * testsuite/lib/libgomp.exp
1393 (check_effective_target_offload_device_any_intel_mic): New.
1394 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
1395 * testsuite/libgomp.fortran/target10.f90: Likewise.
1397 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1399 PR tree-optimization/102192
1400 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
1401 '-Wuninitialized' diagnostics.
1403 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1405 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
1406 current '-Wuninitialized' diagnostics.
1407 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
1408 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
1409 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
1410 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
1411 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1412 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
1413 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
1414 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1415 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1416 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1417 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
1420 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1422 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
1423 for 'offload_device_intel_mic'.
1425 2022-01-13 Julian Brown <julian@codesourcery.com>
1426 Thomas Schwinge <thomas@codesourcery.com>
1428 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
1429 offloading execution XFAIL.
1431 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1433 PR middle-end/100280
1434 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1436 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1437 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1440 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1442 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1444 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1446 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
1447 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1448 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
1449 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
1450 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1452 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1453 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1454 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1455 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1457 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
1459 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
1460 * testsuite/libgomp.fortran/target10.f90: Likewise.
1462 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
1464 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
1465 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
1466 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1468 2022-01-03 Jakub Jelinek <jakub@redhat.com>
1470 * libgomp.texi: Bump @copying's copyright year.
1472 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
1474 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
1475 * testsuite/libgomp.fortran/atomic-19.f90: New test.
1477 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
1479 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
1480 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
1481 table, not individual symbols.
1483 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1485 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
1486 "target offload_device_nonshared_as"
1487 * testsuite/libgomp.c++/target-this-3.C: Likewise.
1488 * testsuite/libgomp.c++/target-this-4.C: Likewise.
1490 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1492 * target.c (gomp_map_vars_existing): Make sure attached pointer is
1493 not overwritten during cross-host/device copying.
1494 (gomp_update): Likewise.
1495 (gomp_exit_data): Likewise.
1496 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
1497 * testsuite/libgomp.c++/target-12.C: Likewise.
1498 * testsuite/libgomp.c++/target-15.C: Likewise.
1499 * testsuite/libgomp.c++/target-16.C: Likewise.
1500 * testsuite/libgomp.c++/target-17.C: Likewise.
1501 * testsuite/libgomp.c++/target-21.C: Likewise.
1502 * testsuite/libgomp.c++/target-23.C: Likewise.
1503 * testsuite/libgomp.c/target-23.c: Likewise.
1504 * testsuite/libgomp.c/target-29.c: Likewise.
1505 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
1507 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1510 * libgomp.h (gomp_attach_pointer): Add bool parameter.
1511 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
1512 (goacc_enter_data_internal): Likewise.
1513 * target.c (gomp_map_vars_existing): Update assert condition to
1514 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
1515 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
1516 parameter, add support for mapping a pointer with NULL target.
1517 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
1518 parameter, add support for attaching a pointer with NULL target.
1519 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
1520 gomp_attach_pointer, add handling for
1521 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
1522 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
1523 * testsuite/libgomp.c++/target-23.C: New testcase.
1524 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
1525 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
1526 * testsuite/libgomp.c++/target-this-1.C: New testcase.
1527 * testsuite/libgomp.c++/target-this-2.C: New testcase.
1528 * testsuite/libgomp.c++/target-this-3.C: New testcase.
1529 * testsuite/libgomp.c++/target-this-4.C: New testcase.
1530 * testsuite/libgomp.c++/target-this-5.C: New testcase.
1532 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
1534 * libgomp.texi (OpenMP 5.1): Update status.
1536 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
1538 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
1540 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
1543 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
1544 * testsuite/libgomp.fortran/pr90030.f90: New test.
1546 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1547 Thomas Schwinge <thomas@codesourcery.com>
1549 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
1552 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
1553 Thomas Schwinge <thomas@codesourcery.com>
1555 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
1558 2021-11-29 Richard Biener <rguenther@suse.de>
1560 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
1563 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1565 PR middle-end/103384
1566 * testsuite/libgomp.c/declare-variant-2.c: New test.
1568 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
1570 * alloc.c (gomp_aligned_alloc): Fix typo.
1572 2021-11-18 Jakub Jelinek <jakub@redhat.com>
1575 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
1576 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
1577 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
1578 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1579 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
1580 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
1581 gomp_aligned_alloc instead of team_malloc.
1583 2021-11-18 Jakub Jelinek <jakub@redhat.com>
1586 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
1587 memalign over posix_memalign over aligned_alloc over fallback
1588 with malloc instead of aligned_alloc over _aligned_alloc over
1589 posix_memalign over memalign over fallback with malloc. For
1590 aligned_alloc, round up size up to multiple of al.
1592 2021-11-16 Jakub Jelinek <jakub@redhat.com>
1594 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
1595 construct as implemented.
1597 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
1599 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
1601 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1603 * task.c (gomp_create_target_task): Copy args array as well.
1604 * target.c (gomp_target_fallback): Add args argument.
1605 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
1606 (GOMP_target): Adjust gomp_target_fallback caller.
1607 (GOMP_target_ext): Likewise.
1608 (gomp_target_task_fn): Likewise.
1609 * config/nvptx/team.c (gomp_nvptx_main): Set
1610 gomp_global_icv.thread_limit_var.
1611 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
1613 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1615 * config/nvptx/team.c (__gomp_team_num): Define as
1616 __attribute__((shared)) var.
1617 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
1618 * config/nvptx/target.c (__gomp_team_num): Declare as
1619 extern __attribute__((shared)) var.
1620 (GOMP_teams4): Use __gomp_team_num as the team number instead of
1621 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
1622 is bigger than num_blocks, use num_teams_lower teams and arrange for
1623 bumping of __gomp_team_num if !first and returning false once we run
1625 * config/nvptx/teams.c (__gomp_team_num): Declare as
1626 extern __attribute__((shared)) var.
1627 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
1629 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1631 * testsuite/libgomp.c/teams-5.c: New test.
1633 2021-11-12 Jakub Jelinek <jakub@redhat.com>
1636 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
1638 * config/gcn/teams.c: ... here. New file.
1640 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
1642 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
1643 implicit map handling to allow a "superset" existing map as valid case.
1644 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
1645 (get_implicit): New function to extract implicit status.
1646 (gomp_map_fields_existing): Adjust arguments in calls to
1647 gomp_map_vars_existing, and add uses of get_implicit.
1648 (gomp_map_vars_internal): Likewise.
1649 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
1651 2021-11-12 Jakub Jelinek <jakub@redhat.com>
1653 * libgomp_g.h (GOMP_teams4): Declare.
1654 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
1655 * target.c (GOMP_teams4): New function.
1656 * config/nvptx/target.c (GOMP_teams): Remove.
1657 (GOMP_teams4): New function.
1658 * config/gcn/target.c (GOMP_teams): Remove.
1659 (GOMP_teams4): New function.
1660 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
1661 teams instead of <= 2.
1662 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
1664 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
1666 * testsuite/libgomp.fortran/teams-1.f90: New test.
1668 2021-11-11 Jakub Jelinek <jakub@redhat.com>
1670 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
1671 * team.c (struct gomp_thread_start_data): Likewise.
1672 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
1673 (gomp_team_start): Initialize start_data->num_teams and
1674 start_data->team_num. Update nthr->num_teams and nthr->team_num.
1675 * teams.c (gomp_num_teams, gomp_team_num): Remove.
1676 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
1677 instead of gomp_num_teams and gomp_team_num.
1678 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
1679 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
1680 * testsuite/libgomp.c/teams-4.c: New test.
1682 2021-11-11 Jakub Jelinek <jakub@redhat.com>
1684 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
1686 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
1688 * env.c (parse_gomp_openacc_dim): Restore parsing.
1690 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
1692 PR middle-end/102972
1693 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
1695 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
1696 * testsuite/libgomp.c/target-3.c: Likewise.
1697 * testsuite/libgomp.c/target-5.c: Likewise.
1698 * testsuite/libgomp.c/target-6.c: Likewise.
1699 * testsuite/libgomp.c/target-teams-1.c: Likewise.
1700 * testsuite/libgomp.c/teams-1.c: Likewise.
1701 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1702 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
1703 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
1704 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
1705 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
1706 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
1707 * testsuite/libgomp.fortran/teams1.f90: Likewise.
1709 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
1711 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
1712 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1714 2021-10-27 Jakub Jelinek <jakub@redhat.com>
1716 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
1717 aren't implemented for Fortran yet.
1719 2021-10-27 Jakub Jelinek <jakub@redhat.com>
1721 * testsuite/libgomp.c/loop-26.c: New test.
1722 * testsuite/libgomp.c/loop-27.c: New test.
1724 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
1727 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
1728 instead of #include <alloca.h> + alloca.
1730 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
1732 * libgomp.texi (Support of strictly structured blocks in Fortran):
1734 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
1736 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
1738 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
1739 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
1741 2021-10-20 Jakub Jelinek <jakub@redhat.com>
1744 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
1745 (struct gomp_work_share): Only use aligned(64) attribute if
1746 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
1747 add padding before lock to ensure lock is at offset 64 bytes
1749 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
1750 New poor man's static assertions.
1751 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
1752 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1754 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1755 Richard Biener <rguenther@suse.de>
1757 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
1759 2021-10-18 Jakub Jelinek <jakub@redhat.com>
1761 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
1762 && gomp_places_list_len < count after nfirst <= nlast loop condition.
1764 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
1773 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
1775 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1777 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
1778 type from char [50] to const char *.
1779 (places_array): Add a testcase for simplified syntax place followed
1780 by length or length and stride.
1782 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1784 * env.c (parse_one_place): Handle non-negative-number the same
1785 as { non-negative-number }. Reject even !number:1 and
1786 !number:1:stride or !place:1 or !place:1:stride instead of just
1787 length other than 1.
1788 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
1789 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
1790 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
1792 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
1795 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1797 * env.c (parse_schedule): For strtoul or strtoull calls which don't
1798 clearly reject return value 0 as invalid handle the case where end
1799 pointer is the same as first argument as invalid.
1800 (parse_unsigned_long_1): Likewise.
1801 (parse_one_place): Likewise.
1802 (parse_places_var): Likewise.
1803 (parse_stacksize): Likewise.
1804 (parse_spincount): Likewise.
1805 (parse_affinity): Likewise.
1806 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
1807 Make code valid C89.
1808 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
1809 For strtoul calls which don't clearly reject return value 0 as
1810 invalid handle the case where end pointer is the same as first
1811 argument as invalid.
1812 (gomp_affinity_init_level_1): Likewise.
1813 (gomp_affinity_init_numa_domains): Likewise.
1814 * config/rtems/proc.c (parse_thread_pools): Likewise.
1816 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1818 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
1819 after creating count places clean up and return immediately.
1820 * testsuite/libgomp.c/places-6.c: New test.
1821 * testsuite/libgomp.c/places-7.c: New test.
1822 * testsuite/libgomp.c/places-8.c: New test.
1823 * testsuite/libgomp.c/places-9.c: New test.
1824 * testsuite/libgomp.c/places-10.c: New test.
1826 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1828 * env.c (parse_places_var): Handle numa_domains as level 5.
1829 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
1831 (gomp_affinity_init_level): Use it instead of
1832 gomp_affinity_init_level_1 for level == 5.
1833 * testsuite/libgomp.c/places-5.c: New test.
1835 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1837 * env.c (parse_places_var): Handle ll_caches as level 4.
1838 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
1840 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
1842 (gomp_affinity_init_level): Likewise.
1843 * testsuite/libgomp.c/places-1.c: New test.
1844 * testsuite/libgomp.c/places-2.c: New test.
1845 * testsuite/libgomp.c/places-3.c: New test.
1846 * testsuite/libgomp.c/places-4.c: New test.
1848 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1850 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
1853 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1855 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
1857 2021-10-12 Julian Brown <julian@codesourcery.com>
1859 * target.c (gomp_copy_host2dev): Release device lock on cbuf
1862 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
1864 * testsuite/libgomp.fortran/icv-3.f90: New.
1865 * testsuite/libgomp.fortran/icv-4.f90: New.
1867 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1869 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
1870 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
1871 OMP_TEAMS_THREAD_LIMIT): Document.
1873 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1875 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
1876 to avoid makeinfo warnings.
1878 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1880 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
1881 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
1883 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1887 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
1888 allocation sizes from 420 to 320 and from 768 to 568.
1889 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1890 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
1891 for cr from 16 to 4.
1893 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1895 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
1896 * testsuite/libgomp.c/scan-12.c: Likewise.
1897 * testsuite/libgomp.c/scan-13.c: Likewise.
1898 * testsuite/libgomp.c/scan-14.c: Likewise.
1899 * testsuite/libgomp.c/scan-15.c: Likewise.
1900 * testsuite/libgomp.c/scan-16.c: Likewise.
1901 * testsuite/libgomp.c/scan-17.c: Likewise.
1902 * testsuite/libgomp.c/scan-18.c: Likewise.
1903 * testsuite/libgomp.c/scan-19.c: Likewise.
1904 * testsuite/libgomp.c/scan-20.c: Likewise.
1905 * testsuite/libgomp.c/scan-21.c: Likewise.
1906 * testsuite/libgomp.c/scan-22.c: Likewise.
1907 * testsuite/libgomp.c++/scan-9.C: Likewise.
1908 * testsuite/libgomp.c++/scan-10.C: Likewise.
1909 * testsuite/libgomp.c++/scan-11.C: Likewise.
1910 * testsuite/libgomp.c++/scan-12.C: Likewise.
1911 * testsuite/libgomp.c++/scan-13.C: Likewise.
1912 * testsuite/libgomp.c++/scan-14.C: Likewise.
1913 * testsuite/libgomp.c++/scan-15.C: Likewise.
1914 * testsuite/libgomp.c++/scan-16.C: Likewise.
1916 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
1918 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
1920 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
1922 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
1924 * omp.h.in: Add deprecated flag for omp_atv_sequential.
1925 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
1926 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
1927 * testsuite/libgomp.fortran/alloc-12.f90: New test.
1929 2021-10-11 Jakub Jelinek <jakub@redhat.com>
1931 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
1932 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
1933 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
1934 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
1935 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
1936 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
1937 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
1938 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
1939 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
1940 omp_set_teams_thread_limit{,_,_8_}.
1941 * icv.c (omp_set_num_teams, omp_get_max_teams,
1942 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
1944 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
1945 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
1946 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
1948 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
1949 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
1950 is not specified, use gomp_nteams_var.
1951 * fortran.c (omp_set_num_teams, omp_get_max_teams,
1952 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
1954 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
1955 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
1956 omp_get_teams_thread_limit_): New functions.
1958 2021-10-09 liuhongt <hongtao.liu@intel.com>
1960 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
1961 * testsuite/libgomp.c++/scan-11.C: Ditto.
1962 * testsuite/libgomp.c++/scan-12.C: Ditto.
1963 * testsuite/libgomp.c++/scan-13.C: Ditto.
1964 * testsuite/libgomp.c++/scan-14.C: Ditto.
1965 * testsuite/libgomp.c++/scan-15.C: Ditto.
1966 * testsuite/libgomp.c++/scan-16.C: Ditto.
1967 * testsuite/libgomp.c++/scan-9.C: Ditto.
1968 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
1969 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
1970 * testsuite/libgomp.c/scan-11.c: Ditto.
1971 * testsuite/libgomp.c/scan-12.c: Ditto.
1972 * testsuite/libgomp.c/scan-13.c: Ditto.
1973 * testsuite/libgomp.c/scan-14.c: Ditto.
1974 * testsuite/libgomp.c/scan-15.c: Ditto.
1975 * testsuite/libgomp.c/scan-16.c: Ditto.
1976 * testsuite/libgomp.c/scan-17.c: Ditto.
1977 * testsuite/libgomp.c/scan-18.c: Ditto.
1978 * testsuite/libgomp.c/scan-19.c: Ditto.
1979 * testsuite/libgomp.c/scan-20.c: Ditto.
1980 * testsuite/libgomp.c/scan-21.c: Ditto.
1981 * testsuite/libgomp.c/scan-22.c: Ditto.
1983 2021-10-09 Jakub Jelinek <jakub@redhat.com>
1985 * libgomp.texi (OpenMP 5.1): Mention implemented support for
1986 structured block sequences in C/C++. Mention support for
1987 unconstrained/reproducible modifiers on order clause.
1988 Mention partial (C/C++ only) support of extentensions to atomics
1989 construct. Mention partial (C/C++ on clause only) support of
1990 align/allocator modifiers on allocate clause.
1992 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
1994 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
1995 based on libgomp.c-c++-common/order-reproducible-1.c.
1996 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1997 * testsuite/libgomp.fortran/my-usleep.c: New test.
1999 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
2001 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
2002 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
2003 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
2004 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
2005 based on libgomp.c-c++-common/alloc-9.c.
2007 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2009 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
2010 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
2012 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2014 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
2016 * env.c (handle_omp_display_env): Use ialias_call.
2017 * icv-device.c: Move ialias right below each function.
2018 (omp_get_device_num): Use ialias_call.
2019 * fortran.c (omp_fulfill_event): Add ialias_redirect.
2020 * icv.c (omp_get_active_level): Add ialias_redirect.
2022 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2024 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
2025 __alloc_align__ (1) attribute.
2026 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
2028 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2030 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
2031 for -fintrinsic-modules-path= warning of the C compiler.
2032 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
2033 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
2035 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2037 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
2038 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
2039 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2041 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2043 * testsuite/libgomp.fortran/alloc-10.f90: New test.
2044 * testsuite/libgomp.fortran/alloc-6.f90: New test.
2045 * testsuite/libgomp.fortran/alloc-7.c: New test.
2046 * testsuite/libgomp.fortran/alloc-7.f90: New test.
2047 * testsuite/libgomp.fortran/alloc-8.f90: New test.
2048 * testsuite/libgomp.fortran/alloc-9.f90: New test.
2050 2021-09-30 Jakub Jelinek <jakub@redhat.com>
2052 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
2053 omp_realloc): New prototypes.
2054 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
2056 * allocator.c: Include string.h.
2057 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
2058 variable and use it instead of alignment so that when retrying the old
2059 alignment is used again. Don't retry if new alignment is the same
2060 as old alignment, unless allocator had pool size.
2061 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
2062 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
2063 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
2064 omp_aligned_calloc and omp_realloc.
2065 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
2066 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
2067 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
2068 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
2069 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
2070 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
2072 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
2075 * configure.ac: Only check for int-type = 2*size_t support when
2076 building with Fortran support.
2077 * configure: Regenerate.
2079 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
2081 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
2082 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2084 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2086 * team.c: Initialize start_data.
2087 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2088 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
2090 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2092 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
2093 dg-message back to dg-note.
2095 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2098 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
2099 expected dg-note output.
2101 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
2104 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
2105 r12-3722 by removing -Wno-missing-include-dirs.
2106 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2108 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2110 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
2111 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
2113 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
2116 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
2118 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2120 2021-09-18 Jakub Jelinek <jakub@redhat.com>
2122 * testsuite/libgomp.c++/default-1.C: New test.
2123 * testsuite/libgomp.c-c++-common/default-1.c: New test.
2124 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
2125 to default clause in C and C++" as implemented.
2127 2021-09-17 Julian Brown <julian@codesourcery.com>
2129 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
2131 2021-09-17 Julian Brown <julian@codesourcery.com>
2133 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
2135 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2137 * libgomp.texi (OpenMP 5.1): Spelling fix,
2138 declare variante -> declare variant.
2140 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2142 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
2143 Use /* */ comments instead of //.
2144 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
2145 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
2146 * testsuite/libgomp.c++/atomic-16.C: New test.
2147 * testsuite/libgomp.c++/atomic-17.C: New test.
2149 2021-09-10 Jakub Jelinek <jakub@redhat.com>
2151 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
2152 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
2153 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
2155 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2157 * libgomp.texi (OpenMP Implementation Status): Extend
2159 (OpenACC Profiling Interface): Fix typo.
2161 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2163 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
2164 not to 4.5; link to new section.
2165 (OpenMP Implementation Status): New.
2167 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
2169 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
2171 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
2173 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
2175 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2177 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2178 Jakub Jelinek <jakub@redhat.com>
2180 * testsuite/libgomp.c/address-space-1.c: New file.
2182 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2184 * testsuite/lib/libgomp.exp
2185 (check_effective_target_offload_target_intelmic): Remove 'proc'.
2186 (check_effective_target_offload_device_intel_mic): New 'proc'.
2187 * testsuite/libgomp.c-c++-common/on_device_arch.h
2188 (device_arch_intel_mic, on_device_arch_intel_mic): New.
2189 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
2191 * testsuite/libgomp.fortran/target10.f90: Likewise.
2193 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
2195 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
2196 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
2197 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
2198 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
2200 2021-08-23 Jakub Jelinek <jakub@redhat.com>
2202 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
2203 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
2204 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
2206 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
2208 * config/nvptx/error.c (fwrite, exit): Override, too.
2209 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
2210 of offloading testing.
2211 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2213 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
2215 * testsuite/libgomp.fortran/error-1.f90: New test.
2217 2021-08-20 Jakub Jelinek <jakub@redhat.com>
2219 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
2220 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
2221 * error.c (GOMP_warning, GOMP_error): New functions.
2222 * testsuite/libgomp.c-c++-common/error-1.c: New test.
2224 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
2226 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
2227 omp_target_free. omp_target_is_present, omp_target_memcpy,
2228 omp_target_memcpy_rect, omp_target_associate_ptr,
2229 omp_target_disassociate_ptr): Add interface.
2230 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
2231 omp_target_free. omp_target_is_present, omp_target_memcpy,
2232 omp_target_memcpy_rect, omp_target_associate_ptr,
2233 omp_target_disassociate_ptr): Add interface.
2234 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
2235 interface block for omp_alloc + omp_free.
2236 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
2237 * testsuite/libgomp.fortran/refcount-1.f90: New test.
2238 * testsuite/libgomp.fortran/target-12.f90: New test.
2240 2021-08-18 Jakub Jelinek <jakub@redhat.com>
2242 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
2244 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
2246 * testsuite/libgomp.fortran/scope-1.f90: New test.
2247 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
2249 2021-08-17 Jakub Jelinek <jakub@redhat.com>
2251 * Makefile.am (libgomp_la_SOURCES): Add scope.c
2252 * Makefile.in: Regenerated.
2253 * libgomp_g.h (GOMP_scope_start): Declare.
2254 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
2255 * scope.c: New file.
2256 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
2257 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
2259 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
2261 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
2264 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
2266 * testsuite/libgomp.fortran/masked-1.f90: New test.
2268 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
2270 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
2272 2021-08-12 Jakub Jelinek <jakub@redhat.com>
2274 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
2276 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
2278 * env.c (parse_bind_var): Accept 'primary' as alias for
2280 (omp_display_env): Add TODO comment to
2281 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
2282 * libgomp.texi: Change 'master thread' to 'primary thread'
2283 in line with OpenMP 5.1.
2284 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
2285 omp_proc_bind_master is an alias of it.
2286 (OMP_PROC_BIND): Mention 'PRIMARY'.
2287 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
2288 (omp_proc_bind_primary): Add.
2289 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2290 * omp_lib.f90.in (omp_proc_bind_primary): Add.
2291 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2292 * omp_lib.h.in (omp_proc_bind_primary): Add.
2293 * testsuite/libgomp.c/affinity-1.c: Check that
2294 'primary' works and is identical to 'master'.
2296 2021-08-09 Julian Brown <julian@codesourcery.com>
2297 Kwok Cheung Yeung <kcy@codesourcery.com>
2298 Thomas Schwinge <thomas@codesourcery.com>
2300 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
2302 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
2303 [acc_device_radeon]: Update.
2304 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
2305 [ACC_DEVICE_TYPE_radeon]: Likewise.
2306 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2307 [acc_device_radeon]: Likewise.
2308 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
2309 [ACC_DEVICE_TYPE_radeon]: Likewise.
2310 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
2311 'openacc_radeon_accel_selected' and '-O0'.
2312 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2314 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
2316 * icv-device.c (omp_get_device_num): New API function, host side.
2317 * fortran.c (omp_get_device_num_): New interface function.
2318 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
2319 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
2320 omp_get_device_num_.
2321 * libgomp.texi (omp_get_device_num): Add documentation for new API
2323 * omp.h.in (omp_get_device_num): Add declaration.
2324 * omp_lib.f90.in (omp_get_device_num): Likewise.
2325 * omp_lib.h.in (omp_get_device_num): Likewise.
2326 * target.c (gomp_load_image_to_device): If additional entry for device
2327 number exists at end of returned entries from 'load_image_func' hook,
2328 copy the assigned device number over to the device variable.
2329 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2330 (omp_get_device_num): New API function, device side.
2331 * plugin/plugin-gcn.c ("symcat.h"): Add include.
2332 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2333 at end of returned 'target_table' entries.
2334 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2335 (omp_get_device_num): New API function, device side.
2336 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
2337 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2338 at end of returned 'target_table' entries.
2339 * testsuite/lib/libgomp.exp
2340 (check_effective_target_offload_target_intelmic): New function for
2341 testing for intelmic offloading.
2342 * testsuite/libgomp.c-c++-common/target-45.c: New test.
2343 * testsuite/libgomp.fortran/target10.f90: New test.
2345 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
2346 Ulrich Drepper <drepper@redhat.com>
2348 * fortran.c (omp_display_env_, omp_display_env_8_): Only
2349 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
2351 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
2352 Julian Brown <julian@codesourcery.com>
2353 Kwok Cheung Yeung <kcy@codesourcery.com>
2355 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
2356 's%oaccdevlow%oaccloops%g'.
2357 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2358 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2359 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
2361 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
2363 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
2365 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
2367 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
2369 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
2371 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
2373 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
2375 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2377 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
2379 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
2381 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
2383 2021-07-27 Ulrich Drepper <drepper@gmail.com>
2385 * env.c (wait_policy, stacksize): New static variables,
2386 move out of handle_omp_display_env.
2387 (omp_display_env): New function. The meat of the old
2388 handle_omp_display_env function.
2389 (handle_omp_display_env): Change to not take parameters
2390 and instead use the global variables. Only perform
2391 parsing, defer to omp_display_env for the implementation.
2392 (initialize_env): Remove local variables wait_policy and
2393 stacksize. Don't pass parameters to handle_omp_display_env.
2394 * fortran.c: Add ialias_redirect for omp_display_env.
2395 (omp_display_env_, omp_display_env_8_): New functions.
2396 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
2397 omp_display_env_, and omp_display_env_8_.
2398 * omp.h.in: Declare omp_display_env.
2399 * omp_lib.f90.in: Likewise.
2400 * omp_lib.h.in: Likewise.
2402 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2403 Julian Brown <julian@codesourcery.com>
2405 * target.c (gomp_coalesce_buf_add): Update comment.
2406 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
2408 (gomp_map_vars_internal): Only 'if (!aq)', do
2409 'gomp_coalesce_buf_add'.
2410 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
2413 2021-07-27 Julian Brown <julian@codesourcery.com>
2414 Thomas Schwinge <thomas@codesourcery.com>
2416 * libgomp.h (gomp_copy_host2dev): Update prototype.
2417 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
2418 argument to gomp_copy_host2dev (false).
2419 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
2420 (copy_data): Don't free src.
2421 (queue_push_copy): Remove free_src handling.
2422 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
2423 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
2425 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
2427 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
2428 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
2429 data when true, and set up deferred freeing of temporary buffer.
2430 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
2431 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
2432 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
2433 calls to gomp_copy_host2dev with appropriate ephemeral argument.
2434 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
2437 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2438 Tom de Vries <tom@codesourcery.com>
2440 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
2441 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
2443 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2445 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
2446 sequencing of 'async' data copying vs. profiling events.
2447 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2450 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2451 Julian Brown <julian@codesourcery.com>
2453 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
2454 'async'/'wait' issue.
2455 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
2456 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
2457 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
2459 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
2460 Joseph Myers <joseph@codesourcery.com>
2461 Cesar Philippidis <cesar@codesourcery.com>
2463 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
2465 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2467 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
2469 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2471 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
2474 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
2475 '-Wno-error=array-bounds'.
2476 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
2477 * libgomp.h [__AMDGCN__]: Likewise.
2479 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
2482 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
2483 * libgomp.h [__AMDGCN__]: Likewise.
2485 2021-07-13 Jakub Jelinek <jakub@redhat.com>
2486 Florian Weimer <fweimer@redhat.com>
2488 * config/linux/sem.h: Don't include limits.h.
2489 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
2490 * config/linux/affinity.c: Include limits.h.
2492 2021-07-01 Jakub Jelinek <jakub@redhat.com>
2495 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
2497 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2500 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
2501 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
2502 avoid disabling other offload targets.
2503 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
2504 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
2505 * testsuite/libgomp.c/target-44.c: Likewise.
2507 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2509 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
2510 target has shared memory and disable some scalar pointer/allocatable
2511 checks if not as firstprivate does not work.
2513 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
2516 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
2517 Add "target offload_device_nonshared_as" condition for enabling test.
2519 2021-06-24 Jakub Jelinek <jakub@redhat.com>
2521 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
2522 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
2523 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
2524 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
2526 2021-06-23 Jakub Jelinek <jakub@redhat.com>
2528 PR middle-end/101167
2529 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
2531 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
2533 * hashtab.h (htab_clear): New function with initialization code
2534 factored out from...
2535 (htab_create): ...here, adjust to use htab_clear function.
2536 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
2537 special refcount values, add comments.
2538 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
2539 (REFCOUNT_LINK): Likewise.
2540 (REFCOUNT_STRUCTELEM): New special refcount range for structure
2542 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
2544 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
2545 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
2546 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
2547 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
2548 (struct splay_tree_key_s): Add structelem_refcount and
2549 structelem_refcount_ptr fields into a union with dynamic_refcount.
2551 (gomp_map_vars): Delete declaration.
2552 (gomp_map_vars_async): Likewise.
2553 (gomp_unmap_vars): Likewise.
2554 (gomp_unmap_vars_async): Likewise.
2555 (goacc_map_vars): New declaration.
2556 (goacc_unmap_vars): Likewise.
2557 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
2558 (goacc_enter_datum): Likewise.
2559 (goacc_enter_data_internal): Likewise.
2560 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
2561 and goacc_unmap_vars.
2562 (GOACC_data_start): Adjust to use goacc_map_vars.
2563 (GOACC_data_end): Adjust to use goacc_unmap_vars.
2564 * target.c (hash_entry_type): New typedef.
2565 (htab_alloc): New function hook for hashtab.h.
2566 (htab_free): Likewise.
2567 (htab_hash): Likewise.
2568 (htab_eq): Likewise.
2569 (hashtab.h): Add file include.
2570 (gomp_increment_refcount): New function.
2571 (gomp_decrement_refcount): Likewise.
2572 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
2573 gomp_increment_refcount.
2574 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
2575 to gomp_map_vars_existing.
2576 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
2577 variable to guard OpenMP specific paths, adjust calls to
2578 gomp_map_vars_existing, add structure element sibling splay_tree_key
2579 sequence creation code, adjust Fortran map case to avoid increment
2581 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
2582 local refcount_set if caller passed in NULL, adjust call to
2583 gomp_map_vars_internal.
2584 (gomp_map_vars_async): Adjust and rename into...
2585 (goacc_map_vars): ...this new function, adjust call to
2586 gomp_map_vars_internal.
2587 (gomp_remove_splay_tree_key): New function with code factored out from
2588 gomp_remove_var_internal.
2589 (gomp_remove_var_internal): Add code to handle removing multiple
2590 splay_tree_key sequence for structure elements, adjust code to use
2591 gomp_remove_splay_tree_key for splay-tree key removal.
2592 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
2593 gomp_decrement_refcount.
2594 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
2595 local refcount_set if caller passed in NULL, adjust call to
2596 gomp_unmap_vars_internal.
2597 (gomp_unmap_vars_async): Adjust and rename into...
2598 (goacc_unmap_vars): ...this new function, adjust call to
2599 gomp_unmap_vars_internal.
2600 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
2602 (GOMP_target_ext): Likewise.
2603 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
2604 (GOMP_target_data): Likewise.
2605 (GOMP_target_data_ext): Likewise.
2606 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
2607 (gomp_exit_data): Add refcount_set parameter, adjust to use
2608 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
2610 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
2611 gomp_map_vars and gomp_exit_data.
2612 (gomp_target_task_fn): Likewise.
2613 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
2614 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
2615 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
2616 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
2617 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
2618 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
2620 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
2623 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
2625 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
2626 Thomas Schwinge <thomas@codesourcery.com>
2628 * libgomp.map (GOACC_2.0.2): New symbol version.
2629 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
2630 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
2632 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
2633 Andrew Stubbs <ams@codesourcery.com>
2635 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
2637 (GOACC_enter_exit_data): ... here.
2638 (GOACC_declare): Use it.
2640 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
2642 * oacc-parallel.c (GOACC_declare): Move...
2643 * oacc-mem.c: ... here.
2644 * libgomp_g.h: Adjust.
2646 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
2647 Thomas Schwinge <thomas@codesourcery.com>
2649 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
2652 2021-06-10 Jakub Jelinek <jakub@redhat.com>
2654 PR tree-optimization/100981
2655 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
2656 dsdotr and dsdoti to 0.
2658 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
2660 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
2661 if atomic compare-and-swap is supported on 'int'.
2663 2021-06-09 Richard Biener <rguenther@suse.de>
2665 PR tree-optimization/100981
2666 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
2668 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2670 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
2672 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2674 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2675 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
2677 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2679 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
2680 '-DACC_MEM_SHARED=0'.
2681 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
2682 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2683 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
2684 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2685 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2686 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2687 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2688 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2689 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2690 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2691 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
2692 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
2693 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
2694 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2695 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
2696 'acc_device_radeon' testing.
2697 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
2698 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2699 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2700 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
2701 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2702 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2703 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
2704 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
2705 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2706 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2707 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
2708 for non-'openacc_nvidia_accel_selected'.
2709 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2710 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
2711 all implement this checking".
2712 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2713 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2714 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2715 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2716 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2718 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2720 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
2721 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
2723 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2725 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
2726 for 'acc_device_radeon'.
2728 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2730 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
2731 for non-'acc_device_nvidia'.
2733 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2735 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
2736 'acc_device_radeon' testing.
2737 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2738 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2739 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2741 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2743 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
2744 require 'openacc_nvidia_accel_selected'. Fix up for
2745 'ACC_DEVICE_TYPE_radeon'.
2747 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2749 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
2750 'openacc_nvidia_accel_selected'.
2751 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2753 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2755 * testsuite/lib/libgomp.exp
2756 (check_effective_target_openacc_radeon_accel_selected):
2759 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2761 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
2764 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2766 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2767 <acc_device_nvidia>: Update comment.
2769 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
2771 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
2773 2021-05-27 Jakub Jelinek <jakub@redhat.com>
2775 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
2776 check_effective_target_openacc_cublas,
2777 check_effective_target_openacc_cudart): New.
2778 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
2779 target openacc_cublas.
2780 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2781 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2782 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
2783 target openacc_cuda.
2784 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
2785 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
2786 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
2787 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
2788 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
2789 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
2790 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
2791 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2792 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
2793 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
2794 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
2795 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2796 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
2797 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
2798 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
2799 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2800 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
2801 targets openacc_cublas and openacc_cudart.
2802 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
2803 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
2804 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
2805 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
2806 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
2807 Require effective target openacc_cudart.
2808 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
2809 for effective target openacc_cuda and add && defined USE_CUDA_H to
2810 preprocessor conditionals. Guard -lcuda also on openacc_cuda
2813 2021-05-26 Jakub Jelinek <jakub@redhat.com>
2816 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
2817 GOMP_target_end_data, GOMP_target_update_ext,
2818 GOMP_target_enter_exit_data): New dummy entrypoints.
2819 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
2820 GOMP_target_end_data, GOMP_target_update_ext,
2821 GOMP_target_enter_exit_data): Likewise.
2822 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
2823 OMPFROM, OMPTO): Define.
2824 (main): Remove #pragma omp target teams around all the tests.
2825 * testsuite/libgomp.c-c++-common/target-41.c: New test.
2826 * testsuite/libgomp.c-c++-common/target-42.c: New test.
2828 2021-05-25 Jakub Jelinek <jakub@redhat.com>
2831 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
2833 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
2836 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
2837 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
2838 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
2840 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
2843 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
2844 uninteresting/varying diagnostics.
2846 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
2849 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
2850 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2852 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
2855 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
2857 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
2858 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
2859 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2861 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2863 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2865 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2867 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2869 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2871 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2873 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2875 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2877 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2879 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2881 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2883 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2885 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2887 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2889 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2891 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2893 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2895 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2897 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2899 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2901 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
2902 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
2903 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
2904 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2905 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
2906 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2907 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2908 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2909 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2910 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2911 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2912 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2913 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2914 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2915 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
2917 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
2919 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
2921 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
2923 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
2924 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
2926 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2927 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2928 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2929 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2930 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2931 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2932 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2934 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2936 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2938 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2940 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2942 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2944 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2946 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2948 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2950 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2952 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2954 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2956 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2958 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
2959 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2960 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
2962 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
2964 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2965 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2966 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2968 2021-05-21 Julian Brown <julian@codesourcery.com>
2969 Chung-Lin Tang <cltang@codesourcery.com>
2970 Thomas Schwinge <thomas@codesourcery.com>
2973 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
2975 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
2977 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
2980 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
2982 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
2983 for nvptx offloading.
2985 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
2987 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
2989 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
2992 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
2994 2021-05-19 Julian Brown <julian@codesourcery.com>
2996 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
2998 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3000 * testsuite/lib/libgomp.exp
3001 (check_effective_target_offload_target_nvptx): Don't shadow global
3002 'offload_targets' variable.
3004 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3006 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
3007 '-latomic' to nvptx offloading compilation.
3008 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3010 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3012 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
3013 offloading compilation.
3015 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
3017 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
3018 if new tasks generated.
3019 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
3021 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
3023 * testsuite/libgomp.fortran/parallel-master.f90: New test.
3025 2021-05-13 Martin Liska <mliska@suse.cz>
3028 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
3029 * testsuite/libgomp.c/pr46032-2.c: Likewise.
3030 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
3031 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
3033 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
3035 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
3036 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
3038 2021-05-11 Jakub Jelinek <jakub@redhat.com>
3040 PR middle-end/100471
3041 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
3042 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
3044 * testsuite/libgomp.c/task-reduction-4.c: New test.
3046 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
3047 Tom de Vries <tdevries@suse.de>
3049 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
3050 complex/floating-point || + && reduction with 'omp target'.
3051 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3053 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3055 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
3056 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
3057 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
3058 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
3060 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3063 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
3064 declaration to scope of non-'depend'-guarded assignment to avoid races.
3066 2021-05-03 Tom de Vries <tdevries@suse.de>
3069 * testsuite/libgomp.c/target-44.c: New test.
3071 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
3073 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
3075 2021-04-29 Tom de Vries <tdevries@suse.de>
3077 * testsuite/libgomp.c/pr81778.c: New test.
3079 2021-04-29 Tom de Vries <tdevries@suse.de>
3082 * testsuite/libgomp.c/target-43.c: New file.
3084 2021-04-28 Jakub Jelinek <jakub@redhat.com>
3085 Tobias Burnus <tobias@codesourcery.com>
3087 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
3088 * target.c (gomp_load_plugin_for_device): If set and if a plugin
3089 can't be dlopened, silently assume it has no devices.
3090 * Makefile.in: Regenerate.
3091 * config.h.in: Regenerate.
3092 * configure: Regenerate.
3094 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3096 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3097 Use [Ww]arning in dg-bogus as FE diagnostic and default
3098 diagnostic differ and the result depends on ENABLE_OFFLOAD.
3099 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3100 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3101 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3103 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3105 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3106 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
3107 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3108 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3109 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3111 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3112 Nathan Sidwell <nathan@codesourcery.com>
3113 Tom de Vries <vries@codesourcery.com>
3114 Julian Brown <julian@codesourcery.com>
3115 Kwok Cheung Yeung <kcy@codesourcery.com>
3117 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
3118 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
3119 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3120 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3121 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3122 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3123 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
3125 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
3126 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3127 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3128 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3130 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
3131 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3133 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3134 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3135 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3136 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3137 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3138 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3140 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3141 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3142 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3143 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3144 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3145 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3146 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3147 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3148 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3149 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3150 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3152 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3154 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
3156 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3157 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3159 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3160 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
3161 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3162 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3163 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3164 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3165 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3167 2021-04-22 Richard Biener <rguenther@suse.de>
3169 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
3172 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3174 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
3175 omp_depend_kind instead of defining it as 16.
3177 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3179 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3180 New, based on check_effective_target_offload_target_nvptx.
3181 (check_effective_target_offload_target_nvptx): Call it.
3182 (check_effective_target_offload_target_amdgcn): New.
3183 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
3184 Require target offload_target_nvptx || offload_target_amdgcn.
3185 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
3186 * testsuite/libgomp.c/pr86416-1.c: Likewise.
3187 * testsuite/libgomp.c/pr86416-2.c: Likewise.
3189 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3191 * testsuite/libgomp.fortran/depobj-1.f90: New test.
3193 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
3195 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3196 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
3197 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3199 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3201 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3203 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
3206 * testsuite/lib/libgomp.exp
3207 (check_effective_target_offload_device_nvptx): New.
3208 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
3209 resolved, make sure that we exit quickly, with error status,
3211 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
3212 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3214 2021-04-14 Jakub Jelinek <jakub@redhat.com>
3217 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
3218 cp = omp_alloc with cp, p arguments instead of cq, q and call
3219 c_f_pointer after last cq = omp_alloc with cq, q.
3221 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
3224 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
3225 for loop with GT/GE condition.
3226 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3228 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
3233 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
3235 2021-04-09 Jakub Jelinek <jakub@redhat.com>
3238 * team.c (gomp_thread_start): Call pthread_setspecific for
3239 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
3240 has been initialized to avoid false positive warning.
3242 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
3245 * testsuite/lib/on_device_arch.c: Move to ...
3246 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
3247 * testsuite/libgomp.fortran/on_device_arch.c: New file;
3248 #include on_device_arch.h.
3249 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
3250 on_device_arch.h instead of using dg-additional-source.
3251 * testsuite/libgomp.c/pr99555-1.c: Likewise.
3252 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
3253 on_device_arch.c without relative paths.
3255 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3257 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
3258 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
3259 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
3260 * config.h.in: Regenerate.
3261 * configure: Likewise.
3263 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3266 * testsuite/lib/on_device_arch.c: New file.
3267 * testsuite/libgomp.c/pr99555-1.c: Likewise.
3268 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
3269 skip for nvptx offloading, with error status.
3270 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3272 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3274 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3275 OpenACC 'serial' construct diagnostic for nvptx offloading.
3277 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
3280 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
3282 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
3285 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
3287 2021-03-04 Jakub Jelinek <jakub@redhat.com>
3289 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
3290 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
3291 checking of -m32 or -mx32 options on the command line.
3292 * config.h.in: Regenerated.
3293 * configure: Regenerated.
3295 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
3297 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
3298 support from the target.
3300 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3301 Jakub Jelinek <jakub@redhat.com>
3304 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
3305 (struct gomp_task): Replace detach and completion_sem fields with
3306 union containing completion_sem and detach_team. Add deferred_p
3308 (struct gomp_team): Remove task_detach_queue.
3309 * task.c: Include assert.h.
3310 (gomp_init_task): Initialize deferred_p and completion_sem fields.
3311 Rearrange initialization order of fields.
3312 (task_fulfilled_p): Delete.
3313 (GOMP_task): Use address of task as the event handle. Remove
3314 initialization of detach field. Initialize deferred_p field.
3315 Use automatic local for completion_sem. Initialize detach_team field
3317 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
3318 Set kind of suspended detach task to GOMP_TASK_DETACHED and
3319 decrement task_running_count. Move finish_cancelled block out of
3320 else branch. Relocate call to gomp_team_barrier_done.
3321 (GOMP_taskwait): Handle tasks with completion events that have not
3323 (GOMP_taskgroup_end): Likewise.
3324 (omp_fulfill_event): Use address of task as event handle. Post to
3325 completion_sem for undeferred tasks. Clear detach_team if task
3326 has not finished. For finished tasks, handle post-execution tasks,
3327 call gomp_team_barrier_wake if necessary, and free task.
3328 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
3329 (free_team): Remove free of task_detach_queue.
3330 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
3331 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
3332 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
3333 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
3334 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
3335 Change data-sharing of detach events on enclosing parallel to private.
3336 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
3338 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
3339 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
3340 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
3341 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
3342 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
3343 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
3344 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
3345 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
3346 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
3347 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
3348 Change data-sharing of detach events on enclosing parallel to private.
3349 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
3351 * testsuite/libgomp.fortran/task-detach-7.f90: New.
3352 * testsuite/libgomp.fortran/task-detach-8.f90: New.
3353 * testsuite/libgomp.fortran/task-detach-9.f90: New.
3354 * testsuite/libgomp.fortran/task-detach-10.f90: New.
3355 * testsuite/libgomp.fortran/task-detach-11.f90: New.
3357 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
3360 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
3362 2021-02-17 Julian Brown <julian@codesourcery.com>
3364 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
3367 2021-02-17 Julian Brown <julian@codesourcery.com>
3369 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
3370 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
3372 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
3374 * config/linux/x86/futex.h (__futex_wait):
3375 Revert output type back to long.
3376 (__futex_wake): Ditto.
3377 (futex_wait): Update for revert.
3378 (futex_wake): Ditto.
3380 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
3382 * config/linux/x86/futex.h (__futex_wait): New static inline
3383 wrapper function. Correct output type to int and
3384 timeout type to void *.
3385 (__futex_wake): New static inline wrapper function.
3386 Correct output type to int.
3387 (futex_wait): Use __futex_wait.
3388 (futex_wake): Use __futex_wake.
3390 2021-02-10 Julian Brown <julian@codesourcery.com>
3393 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
3396 2021-02-04 Julian Brown <julian@codesourcery.com>
3398 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
3400 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
3402 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3403 EF_AMDGPU_MACH_AMDGCN_GFX908.
3404 (gcn_gfx908_s): New constant string.
3405 (isa_hsa_name): Add gfx908.
3406 (isa_code): Add gfx908.
3408 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3410 * libgomp.texi (omp_fulfill_event): New entry.
3412 2021-01-20 Jakub Jelinek <jakub@redhat.com>
3414 * task.c (GOMP_task): Rename priority argument to priority_arg,
3415 add priority automatic variable and modify that variable. Instead of
3416 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
3417 check flags for that bit.
3419 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
3422 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
3424 2021-01-18 Andreas Schwab <schwab@suse.de>
3426 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
3428 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3430 * config/rtems/sem.h (gomp_sem_getcount): New function.
3432 2021-01-18 Jakub Jelinek <jakub@redhat.com>
3434 * config/linux/sem.h (gomp_sem_getcount): New function.
3435 * config/posix/sem.h (gomp_sem_getcount): New function.
3436 * config/posix/sem.c (gomp_sem_getcount): New function.
3437 * config/accel/sem.h (gomp_sem_getcount): New function.
3438 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
3439 (omp_fulfill_event): Likewise.
3441 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3443 * fortran.c (omp_fulfill_event_): New.
3444 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
3445 (struct gomp_team): Add task_detach_queue and task_detach_count
3447 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
3448 * libgomp_g.h (GOMP_task): Add extra argument.
3449 * omp.h.in (enum omp_event_handle_t): New.
3450 (omp_fulfill_event): New.
3451 * omp_lib.f90.in (omp_event_handle_kind): New.
3452 (omp_fulfill_event): New.
3453 * omp_lib.h.in (omp_event_handle_kind): New.
3454 (omp_fulfill_event): Declare.
3455 * priority_queue.c (priority_tree_find): New.
3456 (priority_list_find): New.
3457 (priority_queue_find): New.
3458 * priority_queue.h (priority_queue_predicate): New.
3459 (priority_queue_find): New.
3460 * task.c (gomp_init_task): Initialize detach field.
3461 (task_fulfilled_p): New.
3462 (GOMP_task): Add detach argument. Ignore detach argument if
3463 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
3464 field. Copy address of completion_sem into detach argument and
3465 into the start of the data record. Wait for detach event if task
3467 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
3468 Remove completed tasks and requeue dependent tasks.
3469 (omp_fulfill_event): New.
3470 * team.c (gomp_new_team): Initialize task_detach_queue and
3471 task_detach_count fields.
3472 (free_team): Free task_detach_queue field.
3473 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
3474 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
3475 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
3476 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
3477 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
3478 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
3479 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
3480 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
3481 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
3482 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
3483 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
3484 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
3486 2021-01-15 Jakub Jelinek <jakub@redhat.com>
3489 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
3490 be added through preprocessor check on
3491 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
3493 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
3496 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
3498 * configure: Regenerate.
3499 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
3502 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3504 * configure: Re-generate.
3506 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3508 * configure: Re-generate.
3510 2021-01-05 Julian Brown <julian@codesourcery.com>
3512 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
3513 (struct ptx_device): Add omp_stacks struct.
3514 (nvptx_open_device): Initialise cached-stacks housekeeping info.
3515 (nvptx_close_device): Free cached stacks block and mutex.
3516 (nvptx_stacks_free): New function.
3517 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
3518 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
3519 (nvptx_stacks_alloc): Rename to...
3520 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
3521 size or smaller is required.
3522 (nvptx_stacks_free): Remove.
3523 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
3524 during kernel execution.
3526 2021-01-01 Jakub Jelinek <jakub@redhat.com>
3528 * libgomp.texi: Bump @copying's copyright year.
3530 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
3532 * libgomp.texi (Top): Avoid bad "up" link.
3534 2020-12-18 Jakub Jelinek <jakub@redhat.com>
3536 * testsuite/libgomp.c/task-6.c: New test.
3538 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
3540 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
3541 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
3543 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
3545 * testsuite/libgomp.fortran/scan-1.f90: New test.
3547 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
3550 * configure: Regenerate.
3552 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
3554 * configure: Regenerate.
3556 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
3558 * testsuite/libgomp.oacc-c++/cache-1.C: New.
3559 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
3561 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
3563 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
3566 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
3568 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
3569 (reserved): Delete unused define.
3571 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
3573 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
3574 Tcl 8.5-specific behavior.
3575 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3577 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3579 * env.c (gomp_global_icv): Remove nest_var field. Add
3580 max_active_levels_var field.
3581 (gomp_max_active_levels_var): Remove.
3582 (parse_boolean): Return true on success.
3583 (handle_omp_display_env): Express OMP_NESTED in terms of
3584 max_active_levels_var. Change format specifier for
3585 max_active_levels_var.
3586 (initialize_env): Set max_active_levels_var from
3587 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
3589 * icv.c (omp_set_nested): Express in terms of
3590 max_active_levels_var.
3591 (omp_get_nested): Likewise.
3592 (omp_set_max_active_levels): Use max_active_levels_var field instead
3593 of gomp_max_active_levels_var.
3594 (omp_get_max_active_levels): Likewise.
3595 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
3596 max_active_levels_var field.
3597 (gomp_supported_active_levels): Set to UCHAR_MAX.
3598 (gomp_max_active_levels_var): Delete.
3599 * libgomp.texi (omp_get_nested): Update documentation.
3600 (omp_set_nested): Likewise.
3601 (OMP_MAX_ACTIVE_LEVELS): Likewise.
3602 (OMP_NESTED): Likewise.
3603 (OMP_NUM_THREADS): Likewise.
3604 (OMP_PROC_BIND): Likewise.
3605 * parallel.c (gomp_resolve_num_threads): Replace reference
3606 to nest_var with max_active_levels_var. Use max_active_levels_var
3607 field instead of gomp_max_active_levels_var.
3609 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
3611 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
3612 nvptx_usleep; use also for device={arch(gcn)}.
3614 2020-11-14 Jakub Jelinek <jakub@redhat.com>
3616 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
3617 (foo): Add tests for non-VLA private and firstprivate clauses on
3619 (bar): Likewise. Remove taking of address from private/firstprivate
3621 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
3622 (foo): Add p, q, px and s arguments. Add tests for array reductions
3623 and for non-VLA private and firstprivate clauses on omp task.
3625 (main): Adjust foo caller. Don't call bar.
3627 2020-11-13 Gergö Barany <gergo@codesourcery.com>
3628 Thomas Schwinge <thomas@codesourcery.com>
3630 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3632 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3634 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3636 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3637 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3639 2020-11-13 Gergö Barany <gergo@codesourcery.com>
3640 Thomas Schwinge <thomas@codesourcery.com>
3643 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
3645 2020-11-13 Jakub Jelinek <jakub@redhat.com>
3647 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
3648 for array reductions.
3649 (main): Adjust foo callers.
3651 2020-11-12 Jakub Jelinek <jakub@redhat.com>
3653 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
3654 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
3655 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
3656 * allocator.c (omp_aligned_alloc): New for now static function,
3657 add alignment argument and handle it.
3658 (omp_alloc): Reimplement using omp_aligned_alloc.
3659 (GOMP_alloc, GOMP_free): New functions.
3660 (omp_free): Add ialias.
3661 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
3662 * testsuite/libgomp.c++/allocate-1.C: New test.
3664 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
3667 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
3669 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
3671 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
3673 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
3674 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
3675 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
3676 (goacc_enter_data_internal): Likewise.
3677 * target.c (gomp_map_vars_internal):
3678 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
3679 of gomp_attach_pointer for OpenMP cases.
3680 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
3681 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
3682 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
3684 2020-11-05 Ulrich Drepper <drepper@redhat.com>
3685 Kwok Cheung Yeung <kcy@codesourcery.com>
3687 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
3688 * Makefile.in: Regenerate.
3689 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
3690 pragmas to ignore -Wdeprecated-declarations warnings.
3692 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
3693 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
3694 and omp_get_nested with __GOMP_DEPRECATED_5_0.
3695 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
3697 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
3699 * testsuite/libgomp.c/affinity-1.c: Likewise.
3700 * testsuite/libgomp.c/affinity-2.c: Likewise.
3701 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
3702 * testsuite/libgomp.c/lib-1.c: Likewise.
3703 * testsuite/libgomp.c/nested-1.c: Likewise.
3704 * testsuite/libgomp.c/nested-2.c: Likewise.
3705 * testsuite/libgomp.c/nested-3.c: Likewise.
3706 * testsuite/libgomp.c/pr32362-1.c: Likewise.
3707 * testsuite/libgomp.c/pr32362-2.c: Likewise.
3708 * testsuite/libgomp.c/pr32362-3.c: Likewise.
3709 * testsuite/libgomp.c/pr35549.c: Likewise.
3710 * testsuite/libgomp.c/pr42942.c: Likewise.
3711 * testsuite/libgomp.c/pr61200.c: Likewise.
3712 * testsuite/libgomp.c/sort-1.c: Likewise.
3713 * testsuite/libgomp.c/target-5.c: Likewise.
3714 * testsuite/libgomp.c/target-6.c: Likewise.
3715 * testsuite/libgomp.c/teams-1.c: Likewise.
3716 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3717 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3718 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3719 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
3720 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3721 * testsuite/libgomp.fortran/lib2.f: Likewise.
3722 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3723 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3725 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
3728 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
3729 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3730 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3732 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
3736 * testsuite/lib/libgomp.exp (libgomp_init): Set
3737 'gcc_warning_prefix', 'gcc_error_prefix'.
3739 2020-10-30 Jakub Jelinek <jakub@redhat.com>
3741 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
3742 even in field_tgt_clear initializer.
3744 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3746 * testsuite/libgomp.c/target-42.c: New test.
3748 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3749 Tom de Vries <tdevries@suse.de>
3752 * testsuite/libgomp.c/usleep.h: New file.
3753 * testsuite/libgomp.c/target-32.c: Include usleep.h.
3754 (main): Use tgt_usleep instead of usleep.
3755 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
3756 (main): Use tgt_usleep instead of usleep.
3758 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3761 * testsuite/libgomp.c/declare-variant-1.c: New test.
3763 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3765 * testsuite/libgomp.c/target-41.c: New test.
3767 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3769 * icv.c (omp_get_initial_device): Remove including corresponding
3771 * icv-device.c (omp_get_initial_device): New function. Return
3772 gomp_get_num_devices (). Add ialias.
3773 * target.c (resolve_device): Don't fail with
3774 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
3775 gomp_get_num_devices ().
3776 (omp_target_alloc, omp_target_free, omp_target_is_present,
3777 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
3778 omp_target_disassociate_ptr, omp_pause_resource): Use
3779 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
3780 first use in the functions, in uses dominated by the
3781 gomp_get_num_devices call use num_devices_openmp instead.
3782 * libgomp.texi (omp_get_initial_device): Document.
3783 * config/gcn/icv-device.c (omp_get_initial_device): New function.
3785 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
3786 * testsuite/libgomp.c/target-40.c: New test.
3788 2020-10-21 Jakub Jelinek <jakub@redhat.com>
3790 * env.c (parse_target_offload): Change new_offload var type to int,
3791 preinitialize to -1, remove found var and test new_offload != -1
3794 2020-10-20 Jakub Jelinek <jakub@redhat.com>
3796 * target.c (gomp_target_init): Inside of the function, use automatic
3797 variables corresponding to num_devices, num_devices_openmp and devices
3798 global variables and update the globals only at the end of the
3801 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
3803 * env.c (gomp_target_offload_var): New.
3804 (parse_target_offload): New.
3805 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
3806 (initialize_env): Parse OMP_TARGET_OFFLOAD.
3807 * libgomp.h (gomp_target_offload_t): New.
3808 (gomp_target_offload_var): New.
3809 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
3810 * target.c (resolve_device): Generate error if device not found and
3811 offloading is mandatory.
3812 (gomp_target_fallback): Generate error if offloading is mandatory.
3813 (GOMP_target): Add argument in call to gomp_target_fallback.
3814 (GOMP_target_ext): Likewise.
3815 (gomp_target_data_fallback): Generate error if offloading is mandatory.
3816 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
3817 (GOMP_target_data_ext): Likewise.
3818 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
3819 (gomp_target_init): Return early if offloading is disabled.
3821 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3823 * libgomp.texi (omp_get_max_active_levels): Modify description.
3824 (omp_get_supported_active_levels): Make descriptions consistent.
3826 2020-10-14 Jakub Jelinek <jakub@redhat.com>
3828 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
3830 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
3832 * env.c (gomp_max_active_levels_var): Initialize to
3833 gomp_supported_active_levels.
3834 (initialize_env): Limit gomp_max_active_levels_var to be at most
3835 equal to gomp_supported_active_levels.
3836 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
3837 (omp_get_supported_active_levels_): New.
3838 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
3839 to at most equal to gomp_supported_active_levels.
3840 (omp_get_supported_active_levels): New.
3841 * libgomp.h (gomp_supported_active_levels): New.
3842 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
3843 omp_get_supported_active_levels_.
3844 * libgomp.texi (omp_get_supported_active_levels): New.
3845 (omp_set_max_active_levels): Update. Add reference to
3846 omp_get_supported_active_levels.
3847 * omp.h.in (omp_get_supported_active_levels): New.
3848 * omp_lib.f90.in (omp_get_supported_active_levels): New.
3849 * omp_lib.h.in (omp_get_supported_active_levels): New.
3850 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
3851 against omp_get_supported_active_levels.
3852 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
3854 2020-10-11 Clement Chigot <clement.chigot@atos.net>
3856 * config/t-aix: Delete and recreate libgomp before creating
3859 2020-10-08 Tom de Vries <tdevries@suse.de>
3862 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
3865 2020-10-06 Tom de Vries <tdevries@suse.de>
3867 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
3869 2020-10-06 Tom de Vries <tdevries@suse.de>
3872 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
3874 2020-10-05 Tom de Vries <tdevries@suse.de>
3877 * testsuite/libgomp.fortran/pr95654.f90: New test.
3879 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
3881 * Makefile.in: Regenerate with automake 1.15.1.
3882 * aclocal.m4: Likewise.
3883 * configure: Likewise.
3884 * testsuite/Makefile.in: Likewise.
3886 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
3888 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
3891 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
3893 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
3895 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
3897 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
3898 total number of threads is one.
3899 (gomp_team_barrier_wake): Likewise.
3900 (gomp_team_barrier_wait_end): Likewise.
3901 (gomp_team_barrier_wait_cancel_end): Likewise.
3902 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
3903 (gomp_team_barrier_wake): Likewise.
3904 (gomp_team_barrier_wait_end): Likewise.
3905 (gomp_team_barrier_wait_cancel_end): Likewise.
3906 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
3908 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
3911 * testsuite/libgomp.c++/pr96390.C: New test.
3912 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
3914 2020-09-27 Clement Chigot <clement.chigot@atos.net>
3916 * config/t-aix: Use $(AR) without -X32_64.
3918 2020-09-25 Jakub Jelinek <jakub@redhat.com>
3920 * testsuite/libgomp.c/loop-25.c: New test.
3922 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
3925 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
3927 2020-09-22 Tom de Vries <tdevries@suse.de>
3929 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
3932 2020-09-16 Nathan Sidwell <nathan@acm.org>
3934 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
3936 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
3939 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
3941 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
3944 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
3945 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
3946 (gomp_map_vars_existing): Update call to it.
3947 (gomp_map_fields_existing): Likewise
3948 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
3949 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
3951 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
3953 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
3954 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
3956 2020-09-14 Tom de Vries <tdevries@suse.de>
3958 * config/nvptx/atomic.c: New file. Add
3959 __sync_val_compare_and_swap_16.
3960 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
3961 target offload_target_nvptx.
3963 2020-09-08 Julian Brown <julian@codesourcery.com>
3965 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
3966 iteration-ordering assumptions.
3968 2020-09-08 Julian Brown <julian@codesourcery.com>
3970 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
3971 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3973 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
3975 * plugin/plugin-nvptx.c (nvptx_free):
3976 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
3977 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
3980 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
3982 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
3984 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
3986 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
3988 2020-08-13 Jakub Jelinek <jakub@redhat.com>
3990 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
3991 * testsuite/libgomp.c/loop-23.c (main): Likewise.
3992 * testsuite/libgomp.c/loop-24.c: New test.
3994 2020-08-08 Jakub Jelinek <jakub@redhat.com>
3995 Tobias Burnus <tobias@codesourcery.com>
3998 * testsuite/libgomp.fortran/pr93553.f90: New test.
4000 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4002 * testsuite/libgomp.c/loop-22.c: New test.
4003 * testsuite/libgomp.c/loop-23.c: New test.
4005 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4008 * testsuite/libgomp.c/teams-3.c: New test.
4009 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
4011 (N(test)): Use it before all N(f*) calls.
4012 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
4013 (main): Don't call all test_* functions from within
4014 #pragma omp teams reduction(|:err), call them directly.
4016 2020-08-04 Tom de Vries <tdevries@suse.de>
4019 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
4020 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
4022 2020-08-03 Julian Brown <julian@codesourcery.com>
4023 Thomas Schwinge <thomas@codesourcery.com>
4025 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
4026 shared-memory devices. Extend with further checking.
4028 2020-08-03 Martin Jambor <mjambor@suse.cz>
4030 * plugin/Makefrag.am: Remove configuration of HSA plugin.
4031 * aclocal.m4: Regenerated.
4032 * Makefile.in: Regenerated.
4033 * config.h.in: Regenerated.
4034 * configure: Regenerated.
4035 * plugin/configfrag.ac: Likewise.
4036 * plugin/hsa_ext_finalize.h: Removed.
4037 * plugin/plugin-hsa.c: Likewise.
4038 * testsuite/Makefile.in: Regenerated.
4039 * testsuite/lib/libgomp.exp
4040 (offload_target_to_openacc_device_type): Remove hsa case.
4041 (check_effective_target_hsa_offloading_selected_nocache): Removed
4042 (check_effective_target_hsa_offloading_selected): Likewise.
4043 (libgomp_init): Do not add -Wno-hsa to additional_flags.
4044 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
4045 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4046 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
4047 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4048 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4049 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4050 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
4051 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4052 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4053 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4054 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4055 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4056 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4057 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4058 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4059 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4060 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
4061 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4062 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
4063 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4064 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4065 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
4066 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4067 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4069 2020-07-27 Julian Brown <julian@codesourcery.com>
4070 Thomas Schwinge <thomas@codesourcery.com>
4072 * libgomp.h (struct target_var_desc): Rename do_detach field to
4074 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
4075 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
4076 (goacc_enter_data_internal): Don't affect reference counts
4077 for attach mappings.
4078 (goacc_exit_data_internal): Don't affect reference counts for detach
4080 * target.c (gomp_map_vars_existing): Don't affect reference counts for
4082 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
4083 mark attach mappings.
4084 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
4085 reference count for attach mappings.
4086 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
4087 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4088 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4089 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
4091 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
4092 gracefully in no-finalize mode.
4093 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
4095 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
4097 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
4099 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4100 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4102 2020-07-23 Julian Brown <julian@codesourcery.com>
4103 Thomas Schwinge <thomas@codesourcery.com>
4105 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
4106 finalization for detach operation.
4107 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
4110 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
4112 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
4113 * libgomp_f.h.in (omp_check_defines): Check whether
4114 sizeof of determined Fortran kind and C typedef match.
4115 * omp_lib.f90.in: Add omp_depened_kind.
4116 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
4117 * configure: Regenerate.
4118 * Makefile.in: Regenerate.
4119 * testsuite/Makefile.in: Regenerate.
4121 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4123 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
4124 gcc/testsuite/c-c++-common/gomp/.
4125 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
4126 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
4127 from gcc/testsuite/gfortran.dg/gomp/.
4128 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
4130 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4132 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
4133 * omp_lib.h.in: Likewise.
4135 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
4138 * testsuite/libgomp.c/pr95620.c: New test.
4140 2020-07-16 Julian Brown <julian@codesourcery.com>
4141 Thomas Schwinge <thomas@codesourcery.com>
4143 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
4144 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
4146 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4148 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
4149 avoid conversion on 32bit systems from 32bit to 64bit due
4150 to -fdefault-integer-8.
4152 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4154 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
4155 variables; add character(kind=4) tests; update TODO comment.
4157 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4159 * allocator.c: Add ialias for omp_init_allocator and
4160 omp_destroy_allocator.
4161 * configure.ac: Set INTPTR_T_KIND.
4162 * configure: Regenerate.
4163 * Makefile.in: Regenerate.
4164 * testsuite/Makefile.in: Regenerate.
4165 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
4166 omp_set_default_allocator_, omp_get_default_allocator_): New
4167 functions and ialias_redirect.
4168 * icv.c: Add ialias for omp_set_default_allocator and
4169 omp_get_default_allocator.
4170 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
4171 omp_destroy_allocator_, omp_set_default_allocator_ and
4172 omp_get_default_allocator_.
4173 * omp_lib.f90.in: Add allocator traits parameters, declare
4174 allocator routines and add related kind parameters.
4175 * omp_lib.h.in: Likewise.
4176 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
4177 * testsuite/libgomp.fortran/alloc-1.F90: New test.
4178 * testsuite/libgomp.fortran/alloc-2.F90: New test.
4179 * testsuite/libgomp.fortran/alloc-3.F: New test.
4180 * testsuite/libgomp.fortran/alloc-4.f90: New test.
4181 * testsuite/libgomp.fortran/alloc-5.f90: New test.
4183 2020-07-14 Tom de Vries <tom@codesourcery.com>
4184 Cesar Philippidis <cesar@codesourcery.com>
4185 Thomas Schwinge <thomas@codesourcery.com>
4186 Kwok Cheung Yeung <kcy@codesourcery.com>
4188 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
4190 (acc_init_1): Set acc_init_thread to pthread_self (). Set
4191 acc_init_state to initializing at the start, and to initialized at the
4193 (self_initializing_p): New function.
4194 (acc_get_device_type): Return acc_device_none if called by thread that
4195 is currently executing acc_init_1.
4196 * libgomp.texi (acc_get_device_type): Update documentation.
4197 (Implementation Status and Implementation-Defined Behavior): Likewise.
4198 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
4200 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
4202 * config/t-aix: Set BITS from compiler cpp macro.
4204 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4206 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
4208 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4211 * testsuite/libgomp.fortran/target-map-1.f90: New test.
4213 2020-07-14 Jakub Jelinek <jakub@redhat.com>
4215 * testsuite/libgomp.c/loop-21.c: New test.
4217 2020-07-13 Julian Brown <julian@codesourcery.com>
4218 Thomas Schwinge <thomas@codesourcery.com>
4220 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
4222 2020-07-10 Julian Brown <julian@codesourcery.com>
4223 Thomas Schwinge <thomas@codesourcery.com>
4225 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
4227 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
4228 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
4230 (acc_unmap_data): Update comment.
4231 (goacc_map_var_existing, goacc_enter_datum): Adjust for
4232 dynamic_refcount semantics.
4233 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
4234 Adjust for dynamic_refcount semantics.
4235 (goacc_enter_data_internal): Implement "present" case of dynamic
4236 memory-map handling here. Update "non-present" case for
4237 dynamic_refcount semantics.
4238 (goacc_exit_data_internal): Use goacc_exit_datum_1.
4239 * target.c (gomp_map_vars_internal): Remove
4240 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
4242 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
4243 (gomp_load_image_to_device): Substitute dynamic_refcount for
4245 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
4246 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
4247 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
4248 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
4249 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
4251 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
4253 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
4255 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4256 Remove stale comment.
4257 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
4258 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4259 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4260 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4261 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4262 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
4264 2020-07-10 Julian Brown <julian@codesourcery.com>
4265 Thomas Schwinge <thomas@codesourcery.com>
4267 * oacc-mem.c (goacc_map_var_existing): New function.
4268 (goacc_enter_datum): Use above function.
4269 (goacc_exit_datum_1): New function.
4270 (goacc_exit_datum): Use above function.
4272 2020-07-09 Julian Brown <julian@codesourcery.com>
4273 Thomas Schwinge <thomas@codesourcery.com>
4276 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
4277 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
4279 2020-07-09 Julian Brown <julian@codesourcery.com>
4281 * oacc-mem.c (find_group_last): Group data-movement clauses
4282 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
4283 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
4285 2020-07-09 Jakub Jelinek <jakub@redhat.com>
4287 * testsuite/libgomp.c/loop-19.c: New test.
4288 * testsuite/libgomp.c/loop-20.c: New test.
4290 2020-07-09 Jakub Jelinek <jakub@redhat.com>
4292 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
4293 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
4294 it. Remove __omp_alloctrait_value_max__.
4295 * allocator.c (omp_init_allocator): Handle omp_atv_default for
4296 omp_atk_alignment and omp_atk_pool_size.
4298 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
4300 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
4301 behavior for 'GOMP_MAP_FORCE_FROM'.
4302 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
4304 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
4306 * oacc-mem.c (goacc_exit_data_internal): Remove
4307 'GOMP_MAP_ALWAYS_FROM' handling.
4309 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
4311 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
4312 'scan-assembler' with 'scan-offload-rtl'.
4313 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4314 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4315 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
4316 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
4318 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
4320 * target.c (gomp_map_vars_existing): Assert 'kind !=
4322 (gomp_map_vars_internal): Clean up.
4324 2020-06-27 Jakub Jelinek <jakub@redhat.com>
4326 * testsuite/libgomp.c/loop-17.c: New test.
4327 * testsuite/libgomp.c/loop-18.c: New test.
4329 2020-06-26 Marek Polacek <polacek@redhat.com>
4331 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
4333 2020-06-23 Alexandre Oliva <oliva@adacore.com>
4335 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
4336 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
4338 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
4340 * Makefile.am: Use -include.
4341 * Makefile.in: Regenerate.
4343 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
4345 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
4346 * Makefile.in: Regenerate
4347 * configure.ac (tmake_file): Substitute.
4348 * configure: Regenerate.
4349 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
4350 * config/t-aix: New file.
4352 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
4355 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
4358 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
4360 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
4361 variant for HSA_RUNTIME_LIB name.
4362 (find_executable_symbol_1): Delete.
4363 (find_executable_symbol): Delete.
4364 (init_kernel_properties): Add ".kd" suffix to symbol names.
4365 (find_load_offset): Delete.
4366 (create_and_finalize_hsa_program): Remove relocation handling.
4368 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
4370 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
4372 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
4376 * testsuite/libgomp.fortran/target-var.f90: New test.
4378 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
4379 Julian Brown <julian@codesourcery.com>
4381 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
4384 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
4385 Julian Brown <julian@codesourcery.com>
4387 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4390 2020-06-05 Julian Brown <julian@codesourcery.com>
4392 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
4393 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
4395 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4397 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4398 Evaluate 'copyfrom' individually for each entry.
4399 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
4401 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4403 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4404 Evaluate 'finalize' individually for each entry.
4405 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
4406 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
4409 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4411 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
4413 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
4415 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4416 Julian Brown <julian@codesourcery.com>
4418 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
4420 (acc_unmap_data, goacc_exit_data_internal): Restore
4421 'is_tgt_unmapped' checking.
4422 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
4424 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
4425 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4426 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4427 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4428 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4429 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4431 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4432 Julian Brown <julian@codesourcery.com>
4434 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
4436 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4439 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
4441 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4444 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
4447 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4448 Julian Brown <julian@codesourcery.com>
4450 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
4452 (acc_map_data): Clean up accordingly.
4454 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4456 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
4457 of over-eager 'finalize' clause.
4458 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
4460 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4461 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4462 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4463 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4464 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4465 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
4466 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4467 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
4469 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4471 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
4473 2020-06-04 Julian Brown <julian@codesourcery.com>
4475 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
4477 (goacc_detach_internal): Likewise.
4479 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4481 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
4483 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4484 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4485 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4486 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4487 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4489 2020-06-02 Jakub Jelinek <jakub@redhat.com>
4491 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
4494 2020-05-30 Jakub Jelinek <jakub@redhat.com>
4496 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
4498 2020-05-30 Jakub Jelinek <jakub@redhat.com>
4500 * allocator.c (omp_alloc): For size == 0, return NULL early.
4502 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
4505 * configure: Regenerated.
4507 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
4510 * testsuite/libgomp.fortran/async_io_9.f90: New test.
4512 2020-05-19 Jakub Jelinek <jakub@redhat.com>
4514 * omp.h.in (omp_uintptr_t): New typedef.
4515 (__GOMP_UINTPTR_T_ENUM): Define.
4516 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
4517 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
4518 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
4519 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
4520 omp_get_default_allocator, omp_alloc, omp_free): Declare.
4521 * libgomp.h (struct gomp_team_state): Add def_allocator field.
4522 (gomp_def_allocator): Declare.
4523 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
4524 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
4525 omp_alloc and omp_free.
4526 * team.c (gomp_team_start): Copy over ts.def_allocator.
4527 * env.c (gomp_def_allocator): New variable.
4528 (parse_wait_policy): Adjust function comment.
4529 (parse_allocator): New function.
4530 (handle_omp_display_env): Print OMP_ALLOCATOR.
4531 (initialize_env): Call parse_allocator.
4532 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
4533 * allocator.c: New file.
4534 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
4536 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
4537 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
4538 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
4539 * Makefile.in: Regenerated.
4541 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
4544 * configure: Regenerated.
4546 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
4549 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
4551 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
4553 * configure: Regenerated.
4555 2020-05-14 Jakub Jelinek <jakub@redhat.com>
4557 * testsuite/libgomp.c-c++-common/target-40.c: New test.
4559 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
4562 * testsuite/libgomp.fortran/pr66199-3.f90: New.
4563 * testsuite/libgomp.fortran/pr66199-4.f90: New.
4564 * testsuite/libgomp.fortran/pr66199-5.f90: New.
4565 * testsuite/libgomp.fortran/pr66199-6.f90: New.
4566 * testsuite/libgomp.fortran/pr66199-7.f90: New.
4567 * testsuite/libgomp.fortran/pr66199-8.f90: New.
4568 * testsuite/libgomp.fortran/pr66199-9.f90: New.
4570 2020-05-12 Jakub Jelinek <jakub@redhat.com>
4572 * testsuite/libgomp.c/target-39.c: New test.
4574 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
4576 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
4577 * openacc.f90 (acc_device_current): Likewise.
4578 * openacc.h (acc_device_current): Likewise.
4579 * openacc_lib.h (acc_device_current): Likewise.
4582 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
4583 'dg-allow-blank-lines-in-output'.
4585 * oacc-init.c (get_openacc_name): Handle 'gcn'.
4586 * testsuite/lib/libgomp.exp
4587 (offload_target_to_openacc_device_type) [amdgcn*]: Return
4588 'radeon'. Adjust all users.
4589 (check_effective_target_openacc_amdgcn_accel_present): Rename
4591 (check_effective_target_openacc_radeon_accel_present): ... this.
4593 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
4594 (check_effective_target_openacc_radeon_accel_selected): ... this.
4597 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
4600 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
4604 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
4606 (GOMP_OFFLOAD_init_device): Check return values from both calls to
4607 hsa_agent_iterate_regions.
4609 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
4612 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
4615 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
4618 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
4621 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
4624 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
4626 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
4629 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4631 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
4633 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4635 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
4637 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4639 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
4641 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4643 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
4645 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4647 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
4649 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4651 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
4653 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4655 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
4657 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4659 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4661 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4663 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
4665 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4667 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
4669 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4671 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
4673 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4675 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
4677 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4679 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
4681 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4683 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
4685 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4687 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
4689 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
4691 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
4694 2020-04-10 Julian Brown <julian@codesourcery.com>
4695 Thomas Schwinge <thomas@codesourcery.com>
4698 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4700 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4702 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4704 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4706 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4708 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4710 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4712 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4714 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4716 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4718 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4720 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4722 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4724 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4726 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4728 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
4731 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
4733 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
4736 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
4739 * libgomp.oacc-c++/declare-pr94120.C: New.
4741 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
4743 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
4745 * configure: Regenerate.
4746 * testsuite/libgomp-site-extra.exp.in: New file.
4747 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
4749 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
4751 * testsuite/Makefile.in: Regenerate.
4753 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
4755 PR tree-optimization/89713
4757 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
4759 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4761 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
4763 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
4764 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
4766 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
4769 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
4771 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
4774 * target.c (gomp_load_image_to_device): Fix link
4777 2020-03-19 Jakub Jelinek <jakub@redhat.com>
4780 * testsuite/libgomp.c++/pr93931.C: New test.
4782 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
4784 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
4785 dg-allow-blank-lines-in-output.
4787 2020-03-18 Julian Brown <julian@codesourcery.com>
4788 Tobias Burnus <tobias@codesourcery.com>
4790 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
4791 it work concurrently.
4793 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
4795 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
4796 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
4797 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
4799 2020-03-14 Jakub Jelinek <jakub@redhat.com>
4802 * testsuite/libgomp.c/pr93566.c: New test.
4804 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
4806 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
4807 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
4808 integer(acc_device_property) for the type of the return value of
4811 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
4813 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
4814 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
4815 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
4816 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
4817 (acc_set_device_num): Fix Fortran argument name, use same name for C.
4818 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
4819 corrections; add note about the previous interface and named constant.
4820 (OpenACC library and environment variables): Fix two typos.
4821 * openacc.f90: Use for all procedures the argument names from the spec
4822 as for …_h they are user visible.
4823 (openacc_kinds): Rename acc_device_property to
4824 acc_device_property_kinds and change value to int32 ; and update users.
4825 Re-add acc_device_property for for backward compatibility.
4826 (acc_get_property_string_h): Clean up as acc_device_property_kind
4828 (acc_get_property_h): Likewise and return c_size_t instead of
4829 acc_device_property.
4830 (openacc): Also export acc_device_property_kinds.
4831 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
4832 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
4833 handling; check against /= 0 instead of == 1 to match C.
4834 * openacc_lib.h: Use for all procedures the argument names from the spec
4835 as for …_h they are user visible. Place !GCC$ into the first column to
4836 be active also for fixed-form souce form.
4837 (acc_device_current, acc_device_property_kind, acc_device_property,
4838 acc_property_memory, acc_property_free_memory, acc_property_name,
4839 acc_property_vendor, acc_property_driver): New named constants.
4840 (acc_get_property, acc_get_property_string): New generic interface.
4842 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
4845 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
4846 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
4848 (gomp_target_task_fn): Assert "devicep->async_run_func".
4849 (clear_unsupported_flags): New function to remove unsupported flags
4850 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
4851 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
4852 * testsuite/libgomp.c/target-33.c:
4853 Remove xfail for offload_target_nvptx.
4854 * testsuite/libgomp.c/target-34.c: Likewise.
4856 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
4858 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
4859 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
4860 * testsuite/libgomp.c/target-34.c: Likewise.
4861 * testsuite/libgomp.c/target-link-1.c: Add xfail for
4862 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
4864 2020-02-09 Jakub Jelinek <jakub@redhat.com>
4866 * testsuite/libgomp.c/target-38.c: New test.
4868 2020-02-06 Jakub Jelinek <jakub@redhat.com>
4871 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
4873 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
4875 * testsuite/lib/libgomp.exp
4876 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
4877 and not as 'source' argument to libgomp_target_compile.
4879 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
4881 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
4882 (gcn_gfx801_s): Remove.
4883 (isa_hsa_name): Remove gfx801.
4884 (isa_gcc_name): Remove gfx801/carizzo.
4885 (isa_code): Remove gfx801.
4887 2020-02-03 Julian Brown <julian@codesourcery.com>
4888 Tobias Burnus <tobias@codesourcery.com>
4890 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
4891 and *_finalize variants; document acc_attach and acc_detach; update
4892 references from OpenACC 2.0 to 2.6.
4893 * openacc.f90 (openacc_version): Update to 201711.
4894 * openacc_lib.h (openacc_version): Update to 201711.
4895 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
4896 openacc_version to 201711.
4897 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4899 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
4901 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
4902 and vgpr_count fields.
4903 (struct kernel_info): Add a field for a hsa_kernel_description.
4904 (run_kernel): Reduce the number of threads/workers if the requested
4905 number would require too many VGPRs.
4906 (init_basic_kernel_info): Initialize description field with
4907 the hsa_kernel_description entry for the kernel.
4909 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
4912 * plugin/configfrag.ac (enable_offload_targets): Skip
4913 HSA and GCN plugin besides -m32 also for -mx32.
4914 * configure: Regenerate.
4916 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
4918 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
4920 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
4922 * plugin-gcn.c (struct agent_info): Add fields "name" and
4924 (GOMP_OFFLOAD_init_device): ... and init from here.
4925 (struct hsa_context_info): Add field "driver_version_s" ...
4926 (init_hsa_contest): ... and init from here.
4927 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
4929 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
4930 Enable test execution for amdgcn and host offloading targets.
4931 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
4932 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
4933 (expect_device_properties): Split function into ...
4934 (expect_device_string_properties): ... this new function ...
4935 (expect_device_memory): ... and this new function.
4936 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
4939 2020-01-28 Julian Brown <julian@codesourcery.com>
4941 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
4942 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
4943 component/non-component variable refs in a single directive.
4944 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
4946 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4948 * configure.ac: Handle `--with-toolexeclibdir='.
4949 * Makefile.in: Regenerate.
4950 * aclocal.m4: Regenerate.
4951 * configure: Regenerate.
4952 * testsuite/Makefile.in: Regenerate.
4954 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
4956 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
4957 (expect_device_properties): Remove "expected_free_mem" argument,
4958 change "expected_total_mem" argument type to size_t;
4959 change types of acc_get_property results to size_t,
4960 adapt format strings.
4961 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
4962 Use %zu instead of %zd to print size_t values.
4963 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
4965 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
4966 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
4968 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
4970 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
4972 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
4975 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
4977 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
4978 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
4979 Adjust test dimensions for amdgcn.
4980 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
4981 gang/worker/vector expectations dynamically.
4982 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
4984 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
4985 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
4986 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
4987 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
4988 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
4989 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
4990 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
4991 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
4992 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4993 (acc_gang): Recognise acc_device_radeon.
4994 (acc_worker): Likewise.
4995 (acc_vector): Likewise.
4996 (main): Set expectations for amdgcn.
4997 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
4998 (main): Adjust gang/worker/vector expectations dynamically.
4999 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
5000 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
5001 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
5002 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
5005 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
5007 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
5009 (openacc): Likewise.
5010 * openacc.f90 (openacc_kinds): Likewise.
5011 (openacc): Likewise.
5012 * openacc.h (acc_device_t): Likewise.
5013 * openacc_lib.h: Likewise.
5014 * testsuite/lib/libgomp.exp
5015 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
5016 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
5017 (cb_compute_construct_end): Likewise.
5018 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5019 (cb_enqueue_launch_start): Likewise.
5020 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
5021 (cb_enter_data_end): Likewise.
5022 (cb_exit_data_start): Likewise.
5023 (cb_exit_data_end): Likewise.
5024 (cb_compute_construct_end): Likewise.
5025 (cb_enqueue_launch_start): Likewise.
5026 (cb_enqueue_launch_end): Likewise.
5027 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
5030 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
5032 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
5033 to use this instead of 'enum gomp_device_property'.
5034 (GOMP_OFFLOAD_get_property): Rename to...
5035 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
5036 * libgomp.h (struct gomp_device_descr): Move
5037 'GOMP_OFFLOAD_openacc_get_property'...
5038 (struct acc_dispatch_t): ... here. Adjust all users.
5039 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
5041 * target.c (gomp_map_vars_internal)
5042 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
5045 2020-01-10 Jakub Jelinek <jakub@redhat.com>
5048 * libgomp.h (gomp_print_string): Change return type from void to int.
5049 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
5050 not all characters have been written.
5052 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
5054 * libgomp.texi: Fix typos, use https.
5056 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
5058 * testsuite/libgomp.fortran/optional-map.f90: Add test for
5059 unallocated/disassociated actual arguments to nonallocatable/nonpointer
5060 dummy arguments; those are/shall be regarded as absent arguments.
5061 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5062 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
5064 2020-01-01 Jakub Jelinek <jakub@redhat.com>
5066 Update copyright years.
5068 * libgomp.texi: Bump @copying's copyright year.
5070 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
5073 * oacc-init.c (goacc_runtime_deinitialize): New function.
5075 2019-12-28 Jakub Jelinek <jakub@redhat.com>
5078 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
5079 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
5081 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
5082 Frederik Harwath <frederik@codesourcery.com>
5083 Thomas Schwinge <tschwinge@codesourcery.com>
5085 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
5086 * libgomp-plugin.h (gomp_device_property_value): New union.
5087 (gomp_device_property_value): New prototype.
5088 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
5090 (acc_device_property_t): New enum.
5091 (acc_get_property, acc_get_property_string): New prototypes.
5092 * oacc-init.c (acc_get_device_type): Also assert that result
5093 is not `acc_device_current'.
5094 (get_property_any, acc_get_property, acc_get_property_string):
5096 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
5097 `acc_property_memory', `acc_property_free_memory',
5098 `acc_property_name', `acc_property_vendor' and
5099 `acc_property_driver' constants. Add `acc_device_property' data
5101 (openacc_internal): Add `acc_get_property' and
5102 `acc_get_property_string' interfaces. Add `acc_get_property_h',
5103 `acc_get_property_string_h', `acc_get_property_l' and
5104 `acc_get_property_string_l'.
5105 * oacc-host.c (host_get_property): New function.
5106 (host_dispatch): Wire it.
5107 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
5108 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
5109 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
5110 * libgomp.texi (OpenACC Runtime Library Routines): Add
5112 (acc_get_property): New node.
5113 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
5115 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
5116 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
5117 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
5119 (GOMP_OFFLOAD_get_property): New function.
5120 (struct ptx_device): Add new field "name".
5121 (cuda_driver_version_s): Add new static variable ...
5122 (nvptx_init): ... and init from here.
5124 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
5125 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
5126 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
5127 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
5128 with test helper functions.
5130 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
5132 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
5134 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
5137 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
5139 * target.c (gomp_map_vars_internal): Restore 'omp declare target
5142 2019-12-19 Julian Brown <julian@codesourcery.com>
5144 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
5145 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
5146 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
5148 2019-12-19 Julian Brown <julian@codesourcery.com>
5149 Cesar Philippidis <cesar@codesourcery.com>
5151 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
5152 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
5153 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
5154 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
5155 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
5156 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
5157 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
5158 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
5159 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
5160 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
5161 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
5162 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
5163 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
5165 2019-12-19 Julian Brown <julian@codesourcery.com>
5167 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
5168 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
5169 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
5170 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
5171 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
5172 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
5173 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
5174 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
5175 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
5176 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
5177 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
5178 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
5180 2019-12-19 Julian Brown <julian@codesourcery.com>
5182 * libgomp.h (struct target_var_desc): Add do_detach flag.
5183 * oacc-init.c (acc_shutdown_1): Free aux block if present.
5184 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
5185 struct components. Tidy up and add some new checks.
5186 (goacc_enter_data_internal): Update call to find_group_last.
5187 (goacc_exit_data_internal): Support detach operations and
5189 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
5190 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
5191 attach/detach in enter/exit data detection code.
5192 * target.c (gomp_map_vars_existing): Initialise do_detach field of
5194 (gomp_map_vars_internal): Support attach.
5195 (gomp_unmap_vars_internal): Support detach.
5197 2019-12-19 Julian Brown <julian@codesourcery.com>
5198 Thomas Schwinge <thomas@codesourcery.com>
5200 * libgomp.h (struct splay_tree_aux): Add attach_count field.
5201 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
5202 * libgomp.map (OACC_2.6): New section. Add acc_attach,
5203 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
5204 acc_detach_finalize_async.
5205 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
5206 acc_detach, acc_detach_async, acc_detach_finalize,
5207 acc_detach_finalize_async): New functions.
5208 * openacc.h (acc_attach, acc_attach_async, acc_detach,
5209 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
5211 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
5212 (gomp_remove_var_internal): Free attachment counts if present.
5213 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
5214 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
5216 2019-12-19 Julian Brown <julian@codesourcery.com>
5217 Cesar Philippidis <cesar@codesourcery.com>
5219 * libgomp.h (gomp_map_val): Add prototype.
5220 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
5221 open-coding device-address calculation.
5222 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
5225 2019-12-19 Julian Brown <julian@codesourcery.com>
5227 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
5228 field for virtual_refcount.
5229 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5230 (gomp_free_memmap): Remove prototype.
5231 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
5232 instead of calling gomp_free_memmap.
5233 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
5235 (acc_unmap_data): Open code instead of forcing target_mem_desc's
5236 to_free field to NULL then calling gomp_unmap_vars. Handle
5237 REFCOUNT_INFINITY on target blocks.
5238 (goacc_enter_data): Rename to...
5239 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
5240 handling for mapping groups. Use virtual_refcount instead of
5241 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
5242 map_map_vars_async call. Re-do lookup for target pointer return value.
5243 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
5244 renamed goacc_enter_datum function.
5245 (goacc_exit_data): Rename to...
5246 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
5247 (acc_delete, acc_delete_async, acc_delete_finalize,
5248 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
5249 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
5250 goacc_exit_datum function.
5251 (gomp_acc_remove_pointer, find_pointer): Remove functions.
5252 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
5254 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
5255 goacc_exit_data_internal helper functions.
5256 * target.c (gomp_map_vars_internal): Handle
5257 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
5259 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
5260 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
5261 virtual_refcount field instead of dynamic_refcount.
5262 (gomp_free_memmap): Remove function.
5263 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
5264 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
5265 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
5267 2019-12-19 Julian Brown <julian@codesourcery.com>
5268 Thomas Schwinge <thomas@codesourcery.com>
5270 * libgomp.h (struct splay_tree_aux): New.
5271 (struct splay_tree_key_s): Replace link_key field with aux pointer.
5272 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
5274 (gomp_remove_var_internal): Free aux block if present.
5275 (gomp_load_image_to_device): Zero-initialise aux field instead of
5277 (omp_target_associate_pointer): Zero-initialise aux field.
5279 2019-12-18 Jakub Jelinek <jakub@redhat.com>
5282 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
5284 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
5287 2019-12-19 Julian Brown <julian@codesourcery.com>
5288 Maciej W. Rozycki <macro@codesourcery.com>
5289 Tobias Burnus <tobias@codesourcery.com>
5290 Thomas Schwinge <thomas@codesourcery.com>
5292 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
5293 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
5294 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
5295 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
5296 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
5297 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
5298 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
5299 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
5300 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
5302 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
5304 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5306 (goacc_insert_pointer): ... from here, "present" case.
5307 (goacc_insert_pointer): Inline function into...
5308 (GOACC_enter_exit_data): ... here, and simplify.
5310 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5312 (goacc_insert_pointer): ... from here, "not present" case.
5314 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
5317 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
5318 'goacc_enter_data', 'goacc_exit_data'.
5320 * oacc-mem.c (delete_copyout): Refactor into...
5321 (goacc_exit_data): ... this. Adjust all users.
5323 * oacc-mem.c (present_create_copy): Refactor into...
5324 (goacc_enter_data): ... this. Adjust all users.
5326 * target.c (gomp_unmap_vars_internal): Add a safeguard to
5329 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
5330 like 'GOMP_MAP_FROM'.
5335 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
5337 (GOACC_enter_exit_data): Simplify accordingly.
5338 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
5340 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
5341 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
5343 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
5345 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
5346 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
5348 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
5350 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
5352 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
5353 'finalize' handling.
5356 * oacc-mem.c (acc_map_data, present_create_copy)
5357 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
5358 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
5359 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
5360 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
5361 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
5362 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
5363 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
5364 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5367 * target.c (gomp_unmap_tgt): Make it 'static'.
5368 * libgomp.h (gomp_unmap_tgt): Remove.
5370 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
5373 * testsuite/libgomp.c/pr86416-1.c: New.
5374 * testsuite/libgomp.c/pr86416-2.c: New.
5376 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
5378 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
5379 all symbols as public except for the 'use …, only' imported symbol,
5381 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5382 all symbols from module openacc_kinds as PUBLIC
5383 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
5385 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
5387 2019-12-13 Julian Brown <julian@codesourcery.com>
5391 * libgomp.h (gomp_remove_var_async): Add prototype.
5392 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
5394 * target.c (gomp_unref_tgt): Change return type to bool, indicating
5395 whether target_mem_desc was unmapped.
5396 (gomp_unref_tgt_void): New.
5397 (gomp_remove_var): Reimplement in terms of...
5398 (gomp_remove_var_internal): ...this new helper function.
5399 (gomp_remove_var_async): New, implemented using above helper function.
5400 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
5403 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
5405 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
5406 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
5407 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
5408 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
5409 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
5411 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
5412 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
5414 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
5416 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
5417 as public except for the 'use …, only' imported symbol, which is
5419 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5420 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
5421 attributes for acc_copyout_finalize and acc_delete_finalize.
5423 2019-12-11 Jakub Jelinek <jakub@redhat.com>
5426 * testsuite/libgomp.fortran/atomic1.f90: New test.
5428 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
5431 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
5432 reference counting for structured 'REFCOUNT_INFINITY'. Add some
5434 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
5435 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
5436 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
5437 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5438 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5440 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
5441 * oacc-mem.c: ... here.
5442 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
5443 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
5444 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
5446 * libgomp_g.h: Update.
5448 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
5449 * oacc-async.c: ... here.
5450 * oacc-int.h (goacc_wait): Declare.
5451 * libgomp_g.h: Update
5454 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
5456 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
5458 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
5460 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
5462 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
5464 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
5467 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
5468 Julian Brown <julian@codesourcery.com>
5470 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
5471 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
5473 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
5475 * omp_lib.h.in: Fix spelling of function declaration
5476 omp_get_cancell(l)ation.
5477 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
5479 * env.c: Fix comment typos.
5480 * oacc-host.c: Likewise.
5481 * ordered.c: Likewise.
5484 * config/gcn/task.c: Likewise.
5485 * config/gcn/team.c: Likewise.
5486 * config/nvptx/task.c: Likewise.
5487 * config/nvptx/team.c: Likewise.
5488 * plugin/plugin-gcn.c: Likewise.
5489 * testsuite/libgomp.fortran/jacobi.f: Likewise.
5490 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5491 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
5493 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
5495 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
5496 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
5497 unnecessary 'dg-additional-options "-w"'.
5499 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
5500 Julian Brown <julian@codesourcery.com>
5505 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
5506 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
5508 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5510 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5512 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
5514 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
5517 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
5518 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
5520 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
5522 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
5524 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
5526 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5528 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5530 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5531 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5532 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5533 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5534 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5535 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5536 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5537 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5538 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
5539 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5542 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
5543 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
5544 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
5546 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
5548 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
5550 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5551 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
5554 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
5556 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
5558 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
5560 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
5562 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5563 ... with their content moved into, and extended in this new file.
5564 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
5566 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
5568 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
5570 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
5573 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
5576 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
5578 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
5580 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
5582 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
5584 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
5586 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
5587 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5588 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
5589 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
5591 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
5592 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
5594 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
5596 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
5598 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
5599 Kwok Cheung Yeung <kcy@codesourcery.com>
5601 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
5602 if input it a NULL pointer.
5603 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
5604 diagnostic of NULL pointer.
5605 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
5606 * testsuite/libgomp.fortran/optional-map.f90: New.
5607 * testsuite/libgomp.fortran/use_device_addr-1.f90
5608 (test_dummy_opt_callee_1_absent): New.
5609 (test_dummy_opt_call_1): Call it.
5610 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
5611 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
5612 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
5613 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
5614 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
5615 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
5616 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
5617 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
5618 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
5619 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
5620 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
5621 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
5622 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
5623 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
5624 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
5625 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
5627 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
5629 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
5630 expect dg-output of 'Error termination.' for GCN.
5631 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5632 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5634 2019-12-04 Jakub Jelinek <jakub@redhat.com>
5637 * testsuite/libgomp.fortran/teams1.f90: New test.
5638 * testsuite/libgomp.fortran/teams2.f90: New test.
5640 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
5642 * oacc-init.c (acc_known_device_type): Add function.
5643 (unknown_device_type_error): Add function.
5644 (name_of_acc_device_t): Change to call unknown_device_type_error
5646 (resolve_device): Use acc_known_device_type.
5647 (acc_init): Fail if acc_device_t argument is not valid.
5648 (acc_shutdown): Likewise.
5649 (acc_get_num_devices): Likewise.
5650 (acc_set_device_type): Likewise.
5651 (acc_get_device_num): Likewise.
5652 (acc_set_device_num): Likewise.
5653 (acc_on_device): Add comment that argument validity is not checked.
5655 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
5657 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5659 (check_effective_target_openacc_amdgcn_accel_present): New proc.
5660 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
5661 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
5662 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5663 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5665 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5668 * configure.tgt: Avoid IE tls on *-*-musl*.
5670 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
5672 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
5673 adding a common-block test case.
5675 2019-11-29 Jakub Jelinek <jakub@redhat.com>
5678 * testsuite/libgomp.c++/udr-20.C: New test.
5679 * testsuite/libgomp.c++/udr-21.C: New test.
5681 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
5683 * testsuite/lib/libgomp.exp
5684 (check_effective_target_offload_target_nvptx): New proc.
5685 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
5687 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
5688 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
5689 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
5691 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5693 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
5694 * testsuite/libgomp.c/pr39591-2.c: Likewise.
5695 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5696 * testsuite/libgomp.c/private-1.c: Likewise.
5697 * testsuite/libgomp.c/task-1.c: Likewise.
5698 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
5700 2019-11-20 Julian Brown <julian@codesourcery.com>
5702 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
5704 (queue_push_launch): Lock aq->mutex before calling
5705 wait_for_queue_nonfull.
5706 (queue_push_callback): Likewise.
5707 (queue_push_asyncwait): Likewise.
5708 (queue_push_placeholder): Likewise.
5710 2019-11-20 Julian Brown <julian@codesourcery.com>
5712 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
5713 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
5714 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
5717 2019-11-20 Julian Brown <julian@codesourcery.com>
5721 * oacc-mem.c (present_create_copy): Fix device pointer return value in
5722 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
5723 in non-present/create case.
5724 (delete_copyout): Change error condition to fail only on copies outside
5725 of mapped block. Adjust error message accordingly.
5726 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
5727 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
5728 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
5730 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5731 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
5732 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5734 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
5736 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
5737 libatomic in build-tree testing.
5739 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
5741 * testsuite/Makefile.in: Regenerate.
5743 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
5745 * testsuite/libgomp.c/target-print-1.c: New file.
5746 * testsuite/libgomp.fortran/target-print-1.f90: New file.
5747 * testsuite/libgomp.oacc-c/print-1.c: New file.
5748 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
5750 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5751 Kwok Cheung Yeung <kcy@codesourcery.com>
5752 Julian Brown <julian@codesourcery.com>
5753 Tom de Vries <tom@codesourcery.com>
5755 * plugin/Makefrag.am: Add amdgcn plugin support.
5756 * plugin/configfrag.ac: Likewise.
5757 * plugin/plugin-gcn.c: New file.
5758 * configure: Regenerate.
5759 * Makefile.in: Regenerate.
5760 * testsuite/Makefile.in: Regenerate.
5762 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5764 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
5765 and use team_malloc variants.
5766 (gomp_gcn_exit_kernel): Use team_free.
5767 * libgomp.h (TEAM_ARENA_SIZE): Define.
5768 (TEAM_ARENA_START): Define.
5769 (TEAM_ARENA_FREE): Define.
5770 (TEAM_ARENA_END): Define.
5771 (team_malloc): New function.
5772 (team_malloc_cleared): New function.
5773 (team_free): New function.
5774 * team.c (gomp_new_team): Initialize and use team_malloc.
5775 (free_team): Use team_free.
5776 (gomp_free_thread): Use team_free.
5777 (gomp_pause_host): Use team_free.
5778 * work.c (gomp_init_work_share): Use team_malloc.
5779 (gomp_fini_work_share): Use team_free.
5781 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5782 Kwok Cheung Yeung <kcy@codesourcery.com>
5783 Julian Brown <julian@codesourcery.com>
5784 Tom de Vries <tom@codesourcery.com>
5786 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
5787 * Makefile.in: Regenerate.
5788 * config.h.in (PLUGIN_GCN): Add new undef.
5789 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
5790 * config/gcn/affinity-fmt.c: New file.
5791 * config/gcn/bar.c: New file.
5792 * config/gcn/bar.h: New file.
5793 * config/gcn/doacross.h: New file.
5794 * config/gcn/icv-device.c: New file.
5795 * config/gcn/oacc-target.c: New file.
5796 * config/gcn/simple-bar.h: New file.
5797 * config/gcn/target.c: New file.
5798 * config/gcn/task.c: New file.
5799 * config/gcn/team.c: New file.
5800 * config/gcn/time.c: New file.
5801 * configure.ac: Add amdgcn*-*-*.
5802 * configure: Regenerate.
5803 * configure.tgt: Add amdgcn*-*-*.
5804 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
5805 * libgomp.h (gcn_thrs): Add amdgcn variant.
5806 (set_gcn_thrs): Likewise.
5807 (gomp_thread): Likewise.
5808 * oacc-int.h (goacc_thread): Likewise.
5809 * oacc-target.c: New file.
5810 * openacc.f90 (acc_device_gcn): New parameter.
5811 * openacc.h (acc_device_t): Add acc_device_gcn.
5812 * team.c (gomp_free_pool_helper): Add amdgcn support.
5814 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5815 Julian Brown <julian@codesourcery.com>
5817 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
5819 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
5821 * oacc-host.c (host_openacc_async_construct): Add device parameter.
5822 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
5825 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5827 * configure.tgt (nvptx*-*-*): Add "accel" directory.
5828 * config/nvptx/libgomp-plugin.c: Move ...
5829 * config/accel/libgomp-plugin.c: ... to here.
5830 * config/nvptx/lock.c: Move ...
5831 * config/accel/lock.c: ... to here.
5832 * config/nvptx/mutex.c: Move ...
5833 * config/accel/mutex.c: ... to here.
5834 * config/nvptx/mutex.h: Move ...
5835 * config/accel/mutex.h: ... to here.
5836 * config/nvptx/oacc-async.c: Move ...
5837 * config/accel/oacc-async.c: ... to here.
5838 * config/nvptx/oacc-cuda.c: Move ...
5839 * config/accel/oacc-cuda.c: ... to here.
5840 * config/nvptx/oacc-host.c: Move ...
5841 * config/accel/oacc-host.c: ... to here.
5842 * config/nvptx/oacc-init.c: Move ...
5843 * config/accel/oacc-init.c: ... to here.
5844 * config/nvptx/oacc-mem.c: Move ...
5845 * config/accel/oacc-mem.c: ... to here.
5846 * config/nvptx/oacc-plugin.c: Move ...
5847 * config/accel/oacc-plugin.c: ... to here.
5848 * config/nvptx/omp-lock.h: Move ...
5849 * config/accel/omp-lock.h: ... to here.
5850 * config/nvptx/openacc.f90: Move ...
5851 * config/accel/openacc.f90: ... to here.
5852 * config/nvptx/pool.h: Move ...
5853 * config/accel/pool.h: ... to here.
5854 * config/nvptx/proc.c: Move ...
5855 * config/accel/proc.c: ... to here.
5856 * config/nvptx/ptrlock.c: Move ...
5857 * config/accel/ptrlock.c: ... to here.
5858 * config/nvptx/ptrlock.h: Move ...
5859 * config/accel/ptrlock.h: ... to here.
5860 * config/nvptx/sem.c: Move ...
5861 * config/accel/sem.c: ... to here.
5862 * config/nvptx/sem.h: Move ...
5863 * config/accel/sem.h: ... to here.
5864 * config/nvptx/thread-stacksize.h: Move ...
5865 * config/accel/thread-stacksize.h: ... to here.
5867 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
5868 Tobias Burnus <tobias@codesourcery.com>
5869 Frederik Harwath <frederik@codesourcery.com>
5870 Thomas Schwinge <thomas@codesourcery.com>
5873 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
5874 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
5875 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
5877 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
5878 Kwok Cheung Yeung <kcy@codesourcery.com>
5880 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
5881 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
5883 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
5885 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
5887 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
5889 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
5890 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
5892 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
5894 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
5895 Add expected warnings about missing reduction clauses.
5896 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5898 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
5900 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
5903 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5905 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
5906 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
5907 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
5908 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
5909 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
5910 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
5912 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5915 * testsuite/libgomp.fortran/allocatable2.f90: Use
5916 unique numbers with 'stop'.
5917 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
5918 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
5919 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
5920 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
5921 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
5923 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5925 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
5926 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
5927 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
5928 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
5929 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
5930 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
5932 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5934 * testsuite/libgomp.fortran/target9.f90: New.
5936 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5938 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
5939 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
5940 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
5941 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
5942 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
5943 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
5944 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
5945 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
5946 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
5947 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
5948 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
5949 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
5950 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
5951 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
5952 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
5953 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
5954 * testsuite/libgomp.fortran/associate1.f90: Ditto.
5955 * testsuite/libgomp.fortran/associate2.f90: Ditto.
5956 * testsuite/libgomp.fortran/associate3.f90: Ditto.
5957 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
5958 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
5959 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
5960 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
5961 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
5962 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
5963 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
5964 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
5965 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
5966 * testsuite/libgomp.fortran/character1.f90: Ditto.
5967 * testsuite/libgomp.fortran/character2.f90: Ditto.
5968 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
5969 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
5970 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
5971 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
5972 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
5973 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
5974 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
5975 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
5976 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
5977 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
5978 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
5979 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
5980 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
5981 * testsuite/libgomp.fortran/do1.f90: Ditto.
5982 * testsuite/libgomp.fortran/do2.f90: Ditto.
5983 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
5984 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
5985 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
5986 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
5987 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
5988 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
5989 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
5990 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
5991 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
5992 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
5993 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
5994 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
5995 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
5996 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
5997 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
5998 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
5999 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
6000 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
6001 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
6002 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
6003 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
6004 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
6005 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
6006 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
6007 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
6008 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
6009 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
6010 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
6011 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
6012 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
6013 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
6014 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
6015 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
6016 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
6017 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
6018 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
6019 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
6020 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
6021 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
6022 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
6023 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
6024 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
6025 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
6026 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
6027 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
6028 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
6029 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
6030 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
6031 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
6032 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6033 * testsuite/libgomp.fortran/lib1.f90: Ditto.
6034 * testsuite/libgomp.fortran/lib4.f90: Ditto.
6035 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
6036 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
6037 * testsuite/libgomp.fortran/nested1.f90: Ditto.
6038 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
6039 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
6040 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
6041 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6042 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
6043 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
6044 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6045 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
6046 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
6047 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
6048 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
6049 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
6050 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
6051 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
6052 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6053 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
6054 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6055 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
6056 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
6057 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
6058 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
6059 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
6060 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
6061 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
6062 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6063 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
6064 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
6065 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
6066 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
6067 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
6068 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6069 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
6070 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
6071 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
6072 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
6073 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6074 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
6075 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
6076 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
6077 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
6078 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
6079 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
6080 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
6081 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
6082 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
6083 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
6084 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
6085 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
6086 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
6087 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
6088 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
6089 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
6090 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
6091 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
6092 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
6093 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
6094 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6095 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
6096 * testsuite/libgomp.fortran/reference1.f90: Ditto.
6097 * testsuite/libgomp.fortran/reference2.f90: Ditto.
6098 * testsuite/libgomp.fortran/retval1.f90: Ditto.
6099 * testsuite/libgomp.fortran/retval2.f90: Ditto.
6100 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
6101 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
6102 * testsuite/libgomp.fortran/simd1.f90: Ditto.
6103 * testsuite/libgomp.fortran/simd2.f90: Ditto.
6104 * testsuite/libgomp.fortran/simd3.f90: Ditto.
6105 * testsuite/libgomp.fortran/simd4.f90: Ditto.
6106 * testsuite/libgomp.fortran/simd5.f90: Ditto.
6107 * testsuite/libgomp.fortran/simd6.f90: Ditto.
6108 * testsuite/libgomp.fortran/simd7.f90: Ditto.
6109 * testsuite/libgomp.fortran/stack.f90: Ditto.
6110 * testsuite/libgomp.fortran/strassen.f90: Ditto.
6111 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
6112 * testsuite/libgomp.fortran/tabs2.f: Ditto.
6113 * testsuite/libgomp.fortran/target1.f90: Ditto.
6114 * testsuite/libgomp.fortran/target2.f90: Ditto.
6115 * testsuite/libgomp.fortran/target3.f90: Ditto.
6116 * testsuite/libgomp.fortran/target4.f90: Ditto.
6117 * testsuite/libgomp.fortran/target5.f90: Ditto.
6118 * testsuite/libgomp.fortran/target6.f90: Ditto.
6119 * testsuite/libgomp.fortran/target7.f90: Ditto.
6120 * testsuite/libgomp.fortran/target8.f90: Ditto.
6121 * testsuite/libgomp.fortran/task1.f90: Ditto.
6122 * testsuite/libgomp.fortran/task2.f90: Ditto.
6123 * testsuite/libgomp.fortran/task3.f90: Ditto.
6124 * testsuite/libgomp.fortran/task4.f90: Ditto.
6125 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6126 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6127 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6128 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6129 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6130 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
6131 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
6132 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
6133 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
6134 * testsuite/libgomp.fortran/udr1.f90: Ditto.
6135 * testsuite/libgomp.fortran/udr10.f90: Ditto.
6136 * testsuite/libgomp.fortran/udr11.f90: Ditto.
6137 * testsuite/libgomp.fortran/udr12.f90: Ditto.
6138 * testsuite/libgomp.fortran/udr13.f90: Ditto.
6139 * testsuite/libgomp.fortran/udr14.f90: Ditto.
6140 * testsuite/libgomp.fortran/udr15.f90: Ditto.
6141 * testsuite/libgomp.fortran/udr2.f90: Ditto.
6142 * testsuite/libgomp.fortran/udr3.f90: Ditto.
6143 * testsuite/libgomp.fortran/udr4.f90: Ditto.
6144 * testsuite/libgomp.fortran/udr5.f90: Ditto.
6145 * testsuite/libgomp.fortran/udr6.f90: Ditto.
6146 * testsuite/libgomp.fortran/udr7.f90: Ditto.
6147 * testsuite/libgomp.fortran/udr8.f90: Ditto.
6148 * testsuite/libgomp.fortran/udr9.f90: Ditto.
6149 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6150 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6151 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6152 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6153 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6154 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6155 * testsuite/libgomp.fortran/vla7.f90: Ditto.
6156 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6157 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6158 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6160 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6162 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
6163 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
6164 Ditto; add 'dg-do run' for torture testing.
6165 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
6166 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6167 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6168 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6169 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6170 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6171 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
6172 * testsuite/libgomp.fortran/task2.f90: Ditto.
6173 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6174 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6175 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6176 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6177 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6178 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6180 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
6182 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
6183 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
6184 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
6185 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
6186 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
6187 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
6188 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
6189 Use 'stop' not abort().
6190 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
6191 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
6192 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
6193 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
6194 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
6195 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
6196 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
6197 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
6198 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
6199 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
6200 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
6201 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
6202 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
6203 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
6204 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
6205 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
6206 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6208 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6210 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6212 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6214 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6216 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
6218 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
6220 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
6222 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
6224 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
6226 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
6228 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
6230 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
6232 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
6234 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
6235 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
6236 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
6237 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
6238 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6239 Likewise and also add 'dg-do run'.
6240 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6243 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6244 Tobias Burnus <tobias@codesourcery.com>
6246 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
6247 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
6248 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
6250 2019-10-14 Jakub Jelinek <jakub@redhat.com>
6253 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
6256 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
6258 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
6259 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
6261 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
6264 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
6267 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
6270 * testsuite/libgomp.fortran/fortran.exp: Conditionally
6272 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
6274 2019-10-09 Jakub Jelinek <jakub@redhat.com>
6277 * target.c (gomp_map_vars_internal): Readd the previous
6278 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
6279 though do that just in the !not_found_cnt case.
6281 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
6283 * gfortran.dg/gomp/target-simd.f90: New.
6285 2019-10-02 Julian Brown <julian@codesourcery.com>
6286 Cesar Philippidis <cesar@codesourcery.com>
6288 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
6289 * target.c (FIELD_TGT_EMPTY): Define.
6290 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
6291 as switch instead of list of ifs.
6292 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
6294 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
6296 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
6297 include. Replace alloca () with __builtin_alloca ().
6298 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
6300 2019-10-01 Jakub Jelinek <jakub@redhat.com>
6302 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
6303 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
6304 * oacc-parallel.c: Don't include "libgomp_g.h".
6305 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
6306 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
6307 * aclocal.m4: Regenerated.
6308 * config.h.in: Regenerated.
6309 * configure: Regenerated.
6310 * Makefile.in: Regenerated.
6312 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
6314 * libgomp_g.h: Include stdint.h instead of gstdint.h.
6316 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
6318 * configure: Regenerate.
6320 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
6322 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
6323 string is initialized.
6325 2019-09-06 Florian Weimer <fweimer@redhat.com>
6327 * configure: Regenerate.
6329 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
6332 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
6333 scanning to conform to the GNU Coding Standards.
6334 * configure: Regenerate.
6336 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6339 * testsuite/libgomp.c/scan-21.c: New test.
6340 * testsuite/libgomp.c/scan-22.c: New test.
6342 2019-08-27 Jakub Jelinek <jakub@redhat.com>
6345 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
6347 * testsuite/libgomp.c/scan-12.c: Likewise.
6348 * testsuite/libgomp.c/scan-13.c: Likewise.
6349 * testsuite/libgomp.c/scan-14.c: Likewise.
6350 * testsuite/libgomp.c/scan-15.c: Likewise.
6351 * testsuite/libgomp.c/scan-16.c: Likewise.
6352 * testsuite/libgomp.c/scan-17.c: Likewise.
6353 * testsuite/libgomp.c/scan-18.c: Likewise.
6354 * testsuite/libgomp.c/scan-19.c: Likewise.
6355 * testsuite/libgomp.c/scan-20.c: Likewise.
6356 * testsuite/libgomp.c++/scan-9.C: Likewise.
6357 * testsuite/libgomp.c++/scan-10.C: Likewise.
6358 * testsuite/libgomp.c++/scan-11.C: Likewise.
6359 * testsuite/libgomp.c++/scan-12.C: Likewise.
6360 * testsuite/libgomp.c++/scan-14.C: Likewise.
6361 * testsuite/libgomp.c++/scan-15.C: Likewise.
6362 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
6363 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
6364 * testsuite/libgomp.c++/scan-16.C: Likewise.
6366 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
6369 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
6370 -std=legacy so invalid code in the test case is accepted.
6372 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
6375 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
6378 2019-08-08 Jakub Jelinek <jakub@redhat.com>
6380 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
6381 perform the lookup in the first loop only if !not_found_cnt, otherwise
6382 perform lookups for it in the second loop guarded with
6383 if (not_found_cnt || has_firstprivate).
6384 * testsuite/libgomp.c/target-37.c: New test.
6385 * testsuite/libgomp.c++/target-22.C: New test.
6387 2019-08-07 Jakub Jelinek <jakub@redhat.com>
6389 * testsuite/libgomp.c/target-18.c (struct S): New type.
6390 (foo): Use use_device_addr clause instead of use_device_ptr clause
6391 where required by OpenMP 5.0, add further tests for both use_device_ptr
6392 and use_device_addr clauses.
6393 * testsuite/libgomp.c++/target-9.C (struct S): New type.
6394 (foo): Use use_device_addr clause instead of use_device_ptr clause
6395 where required by OpenMP 5.0, add further tests for both use_device_ptr
6396 and use_device_addr clauses. Add t and u arguments.
6397 (main): Adjust caller.
6399 2019-08-06 Jakub Jelinek <jakub@redhat.com>
6401 * testsuite/libgomp.c++/loop-13.C: New test.
6402 * testsuite/libgomp.c++/loop-14.C: New test.
6403 * testsuite/libgomp.c++/loop-15.C: New test.
6405 2019-07-31 Jakub Jelinek <jakub@redhat.com>
6408 * testsuite/libgomp.c++/for-27.C: New test.
6410 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
6412 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
6413 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6415 2019-07-20 Jakub Jelinek <jakub@redhat.com>
6417 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
6419 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6421 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
6422 * testsuite/libgomp.c++/scan-16.C: Likewise.
6424 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6426 * testsuite/libgomp.c/scan-19.c: New test.
6427 * testsuite/libgomp.c/scan-20.c: New test.
6429 * testsuite/libgomp.c/scan-11.c: New test.
6430 * testsuite/libgomp.c/scan-12.c: New test.
6431 * testsuite/libgomp.c/scan-13.c: New test.
6432 * testsuite/libgomp.c/scan-14.c: New test.
6433 * testsuite/libgomp.c/scan-15.c: New test.
6434 * testsuite/libgomp.c/scan-16.c: New test.
6435 * testsuite/libgomp.c/scan-17.c: New test.
6436 * testsuite/libgomp.c/scan-18.c: New test.
6437 * testsuite/libgomp.c++/scan-9.C: New test.
6438 * testsuite/libgomp.c++/scan-10.C: New test.
6439 * testsuite/libgomp.c++/scan-11.C: New test.
6440 * testsuite/libgomp.c++/scan-12.C: New test.
6441 * testsuite/libgomp.c++/scan-13.C: New test.
6442 * testsuite/libgomp.c++/scan-14.C: New test.
6443 * testsuite/libgomp.c++/scan-15.C: New test.
6444 * testsuite/libgomp.c++/scan-16.C: New test.
6446 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6448 * testsuite/libgomp.c/scan-9.c: New test.
6449 * testsuite/libgomp.c/scan-10.c: New test.
6451 2019-07-03 Jakub Jelinek <jakub@redhat.com>
6453 * testsuite/libgomp.c++/scan-1.C: New test.
6454 * testsuite/libgomp.c++/scan-2.C: New test.
6455 * testsuite/libgomp.c++/scan-3.C: New test.
6456 * testsuite/libgomp.c++/scan-4.C: New test.
6457 * testsuite/libgomp.c++/scan-5.C: New test.
6458 * testsuite/libgomp.c++/scan-6.C: New test.
6459 * testsuite/libgomp.c++/scan-7.C: New test.
6460 * testsuite/libgomp.c++/scan-8.C: New test.
6461 * testsuite/libgomp.c/scan-1.c: New test.
6462 * testsuite/libgomp.c/scan-2.c: New test.
6463 * testsuite/libgomp.c/scan-3.c: New test.
6464 * testsuite/libgomp.c/scan-4.c: New test.
6465 * testsuite/libgomp.c/scan-5.c: New test.
6466 * testsuite/libgomp.c/scan-6.c: New test.
6467 * testsuite/libgomp.c/scan-7.c: New test.
6468 * testsuite/libgomp.c/scan-8.c: New test.
6470 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
6472 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
6473 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
6476 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
6479 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
6481 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
6484 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
6487 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
6489 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
6490 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
6491 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
6492 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
6495 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
6498 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
6500 2019-06-16 Tom de Vries <tdevries@suse.de>
6502 PR tree-optimization/89376
6503 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
6505 2019-06-15 Tom de Vries <tdevries@suse.de>
6507 PR tree-optimization/89713
6508 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
6509 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
6511 2019-06-15 Jakub Jelinek <jakub@redhat.com>
6514 * testsuite/libgomp.c/pr90779.c: New test.
6515 * testsuite/libgomp.fortran/pr90779.f90: New test.
6517 2019-06-15 Tom de Vries <tdevries@suse.de>
6519 PR tree-optimization/90009
6520 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
6522 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
6524 PR tree-optimization/89713
6525 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
6527 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6530 * testsuite/libgomp.c/pr90811.c: New test.
6532 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6534 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
6535 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
6537 2019-06-04 Jakub Jelinek <jakub@redhat.com>
6539 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
6540 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
6541 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
6542 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
6544 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6546 * configure.ac: Call AX_COUNT_CPUS.
6547 Substitute CPU_COUNT.
6548 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
6550 * aclocal.m4: Regenerate.
6551 * configure: Regenerate.
6552 * Makefile.in, testsuite/Makefile.in: Regenerate.
6554 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6556 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
6558 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
6559 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
6560 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
6562 2019-05-27 Jakub Jelinek <jakub@redhat.com>
6564 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
6566 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
6569 * work.c (gomp_init_work_share): Instead of aligning final ordered
6570 value to multiples of long long alignment, align to that the
6571 first part (ordered team ids) and if inline_ordered_team_ids
6572 is not on a long long alignment boundary within the structure,
6573 use __alignof__ (long long) - 1 pad size always.
6574 * loop.c (GOMP_loop_start): Fix *mem computation if
6575 inline_ordered_team_ids is not aligned on long long alignment boundary
6576 within the structure.
6577 * loop-ull.c (GOMP_loop_ull_start): Likewise.
6578 * sections.c (GOMP_sections2_start): Likewise.
6580 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6582 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
6583 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
6586 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
6587 HAVE_INTTYPES_H is defined.
6588 (print_uint64_t): New typedef.
6589 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
6590 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
6591 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
6592 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
6593 before casting to void *.
6594 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
6595 * oacc-mem.c: Don't include config.h nor stdint.h.
6596 * target.c: Don't include config.h.
6597 * oacc-cuda.c: Likewise.
6598 * oacc-host.c: Don't include stdint.h.
6600 2019-05-20 Jakub Jelinek <jakub@redhat.com>
6603 * alloc.c (_GNU_SOURCE): Define.
6605 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
6607 * acc_prof.h: New file.
6608 * oacc-profiling.c: Likewise.
6609 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
6610 Add these, respectively.
6611 * Makefile.in: Regenerate.
6612 * env.c (initialize_env): Call goacc_profiling_initialize.
6613 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
6614 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
6615 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
6616 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
6617 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
6618 acc_prof_register, acc_prof_unregister, and acc_register_library.
6619 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
6620 GOMP_PLUGIN_goacc_thread.
6621 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
6622 prof_callbacks_enabled members.
6623 (goacc_prof_enabled, goacc_profiling_initialize)
6624 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
6625 (goacc_profiling_dispatch): Declare.
6626 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
6627 (GOACC_PROFILING_SETUP_P): Define.
6628 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
6629 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
6630 OpenACC Profiling Interface.
6631 * oacc-cuda.c (acc_get_current_cuda_device)
6632 (acc_get_current_cuda_context, acc_get_cuda_stream)
6633 (acc_set_cuda_stream): Likewise.
6634 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
6635 (acc_init, acc_set_device_type, acc_get_device_type)
6636 (acc_get_device_num, goacc_lazy_initialize): Likewise.
6637 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
6638 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
6639 (acc_unmap_data, present_create_copy, delete_copyout)
6640 (update_dev_host): Likewise.
6641 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
6642 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
6644 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
6645 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
6647 * libgomp.texi: Update.
6648 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
6650 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
6651 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
6653 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
6655 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
6657 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
6660 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
6662 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
6663 (struct goacc_asyncqueue_list): Likewise.
6664 (goacc_aq): Likewise.
6665 (goacc_aq_list): Likewise.
6666 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6667 (GOMP_OFFLOAD_openacc_async_test): Remove.
6668 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6669 (GOMP_OFFLOAD_openacc_async_wait): Remove.
6670 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6671 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6672 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6673 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6674 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
6675 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
6676 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
6677 (GOMP_OFFLOAD_openacc_async_exec): Declare.
6678 (GOMP_OFFLOAD_openacc_async_construct): Declare.
6679 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
6680 (GOMP_OFFLOAD_openacc_async_test): Declare.
6681 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
6682 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
6683 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
6684 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
6685 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
6687 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
6688 (gomp_acc_insert_pointer): Adjust declaration.
6689 (gomp_copy_host2dev): New declaration.
6690 (gomp_copy_dev2host): Likewise.
6691 (gomp_map_vars_async): Likewise.
6692 (gomp_unmap_tgt): Likewise.
6693 (gomp_unmap_vars_async): Likewise.
6694 (gomp_fini_device): Likewise.
6696 * oacc-async.c (get_goacc_thread): New function.
6697 (get_goacc_thread_device): New function.
6698 (lookup_goacc_asyncqueue): New function.
6699 (get_goacc_asyncqueue): New function.
6700 (acc_async_test): Adjust code to use new async design.
6701 (acc_async_test_all): Likewise.
6702 (acc_wait): Likewise.
6703 (acc_wait_async): Likewise.
6704 (acc_wait_all): Likewise.
6705 (acc_wait_all_async): Likewise.
6706 (goacc_async_free): New function.
6707 (goacc_init_asyncqueues): Likewise.
6708 (goacc_fini_asyncqueues): Likewise.
6709 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
6711 (acc_set_cuda_stream): Likewise.
6712 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
6713 (host_openacc_register_async_cleanup): Remove.
6714 (host_openacc_async_exec): New function.
6715 (host_openacc_async_test): Adjust parameters.
6716 (host_openacc_async_test_all): Remove.
6717 (host_openacc_async_wait): Remove.
6718 (host_openacc_async_wait_async): Remove.
6719 (host_openacc_async_wait_all): Remove.
6720 (host_openacc_async_wait_all_async): Remove.
6721 (host_openacc_async_set_async): Remove.
6722 (host_openacc_async_synchronize): New function.
6723 (host_openacc_async_serialize): New function.
6724 (host_openacc_async_host2dev): New function.
6725 (host_openacc_async_dev2host): New function.
6726 (host_openacc_async_queue_callback): New function.
6727 (host_openacc_async_construct): New function.
6728 (host_openacc_async_destruct): New function.
6729 (struct gomp_device_descr host_dispatch): Remove initialization of old
6730 interface, add initialization of new async sub-struct.
6731 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
6732 (goacc_attach_host_thread_to_device): Remove old async code usage.
6733 * oacc-int.h (goacc_init_asyncqueues): New declaration.
6734 (goacc_fini_asyncqueues): Likewise.
6735 (goacc_async_copyout_unmap_vars): Likewise.
6736 (goacc_async_free): Likewise.
6737 (get_goacc_asyncqueue): Likewise.
6738 (lookup_goacc_asyncqueue): Likewise.
6739 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
6741 (present_create_copy): Adjust code to use new async design.
6742 (delete_copyout): Likewise.
6743 (update_dev_host): Likewise.
6744 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
6746 (gomp_acc_remove_pointer): Adjust code to use new async design.
6747 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
6749 (GOACC_enter_exit_data): Likewise.
6750 (goacc_wait): Likewise.
6751 (GOACC_update): Likewise.
6752 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
6753 when called, warn as obsolete in comment.
6754 * target.c (goacc_device_copy_async): New function.
6755 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
6756 add goacc_device_copy_async case.
6757 (gomp_copy_dev2host): Likewise.
6758 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
6759 (gomp_map_pointer): Likewise.
6760 (gomp_map_fields_existing): Likewise.
6761 (gomp_map_vars_internal): New always_inline function, renamed from
6763 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
6764 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
6765 passing goacc_asyncqueue argument.
6766 (gomp_unmap_tgt): Remove static, add attribute_hidden.
6767 (gomp_unref_tgt): New function.
6768 (gomp_unmap_vars_internal): New always_inline function, renamed from
6770 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
6771 (gomp_unmap_vars_async): Implement by calling
6772 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
6773 (gomp_fini_device): New function.
6774 (gomp_exit_data): Adjust gomp_copy_dev2host call.
6775 (gomp_load_plugin_for_device): Remove old interface, adjust to load
6776 new async interface.
6777 (gomp_target_fini): Adjust code to call gomp_fini_device.
6779 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
6780 (struct ptx_stream): Remove.
6781 (struct nvptx_thread): Remove current_stream field.
6782 (cuda_map_create): Remove.
6783 (cuda_map_destroy): Remove.
6788 (struct goacc_asyncqueue): Define.
6789 (struct nvptx_callback): Define.
6790 (struct ptx_free_block): Define.
6791 (struct ptx_device): Remove null_stream, active_streams, async_streams,
6792 stream_lock, and next fields.
6793 (enum ptx_event_type): Remove.
6794 (struct ptx_event): Remove.
6795 (ptx_event_lock): Remove.
6796 (ptx_events): Remove.
6797 (init_streams_for_device): Remove.
6798 (fini_streams_for_device): Remove.
6799 (select_stream_for_async): Remove.
6800 (nvptx_init): Remove ptx_events and ptx_event_lock references.
6801 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
6803 (nvptx_open_device): Add free_blocks initialization, remove
6804 init_streams_for_device call.
6805 (nvptx_close_device): Remove fini_streams_for_device call, add
6806 free_blocks destruct code.
6808 (event_add): Remove.
6809 (nvptx_exec): Adjust parameters and code.
6810 (nvptx_free): Likewise.
6811 (nvptx_host2dev): Remove.
6812 (nvptx_dev2host): Remove.
6813 (nvptx_set_async): Remove.
6814 (nvptx_async_test): Remove.
6815 (nvptx_async_test_all): Remove.
6816 (nvptx_wait): Remove.
6817 (nvptx_wait_async): Remove.
6818 (nvptx_wait_all): Remove.
6819 (nvptx_wait_all_async): Remove.
6820 (nvptx_get_cuda_stream): Remove.
6821 (nvptx_set_cuda_stream): Remove.
6822 (GOMP_OFFLOAD_alloc): Adjust code.
6823 (GOMP_OFFLOAD_free): Likewise.
6824 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6825 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
6826 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6827 (GOMP_OFFLOAD_openacc_async_wait): Remove.
6828 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6829 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6830 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6831 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6832 (cuda_free_argmem): New function.
6833 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
6834 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
6835 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
6836 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
6837 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
6838 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
6839 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
6840 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
6841 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
6842 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
6843 (cuda_callback_wrapper): New function.
6844 (cuda_memcpy_sanity_check): New function.
6845 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
6846 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
6847 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
6848 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
6850 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
6853 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
6855 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
6857 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
6859 2019-03-27 Kevin Buettner <kevinb@redhat.com>
6861 * team.c (gomp_team_start): Initialize pool->threads[0].
6863 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6865 * testsuite/libgomp.oacc-c++/c++.exp: Specify
6866 "-foffload=$offload_target".
6867 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6868 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6869 * testsuite/lib/libgomp.exp
6870 (check_effective_target_openacc_nvidia_accel_configured): Remove,
6871 as (conceptually) merged into
6872 check_effective_target_openacc_nvidia_accel_selected. Adjust all
6875 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
6876 * testsuite/libgomp-test-support.exp.in: Adjust.
6877 * testsuite/lib/libgomp.exp: Likewise. Don't populate
6878 openacc_device_types_s.
6879 (offload_target_to_openacc_device_type): New proc.
6880 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
6881 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6882 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6883 * Makefile.in: Regenerate.
6884 * configure: Likewise.
6885 * testsuite/Makefile.in: Likewise.
6887 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
6888 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
6889 instead of OFFLOAD_TARGETS.
6890 * target.c (gomp_target_init): Adjust.
6891 * testsuite/libgomp-test-support.exp.in: Likewise.
6892 * testsuite/lib/libgomp.exp: Likewise. Populate
6893 openacc_device_types_s instead of offload_targets_s_openacc.
6894 (check_effective_target_openacc_nvidia_accel_selected)
6895 (check_effective_target_openacc_host_selected): Adjust.
6896 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6897 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6898 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6899 * Makefile.in: Regenerate.
6900 * config.h.in: Likewise.
6901 * configure: Likewise.
6902 * testsuite/Makefile.in: Likewise.
6904 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
6905 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
6906 "offloading: supported, but hardware not accessible".
6907 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6908 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6910 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
6913 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
6915 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
6916 and related adjustment.
6918 2019-01-30 Jakub Jelinek <jakub@redhat.com>
6921 * testsuite/libgomp.c++/pr88988.C: New test.
6923 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6926 * testsuite/libgomp.c/pr89002.c: New test.
6928 2019-01-28 Richard Biener <rguenther@suse.de>
6931 PR tree-optimization/86865
6932 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
6934 2019-01-24 Tom de Vries <tdevries@suse.de>
6936 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
6937 once instantiated_devices drops to 0.
6939 2019-01-23 Tom de Vries <tdevries@suse.de>
6942 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
6944 (nvptx_exec): Don't call map_push if mapnum == 0.
6945 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
6947 2019-01-23 Tom de Vries <tdevries@suse.de>
6951 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
6952 (map_fini): Remove "assert (!s->map->active)".
6953 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
6955 2019-01-23 Tom de Vries <tdevries@suse.de>
6958 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
6959 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
6961 2019-01-15 Tom de Vries <tdevries@suse.de>
6964 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
6967 2019-01-12 Tom de Vries <tdevries@suse.de>
6969 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
6970 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
6971 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
6972 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
6974 2019-01-12 Tom de Vries <tdevries@suse.de>
6976 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
6978 2019-01-12 Tom de Vries <tdevries@suse.de>
6980 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
6981 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
6982 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
6984 2019-01-12 Tom de Vries <tdevries@suse.de>
6987 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
6988 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
6990 2019-01-12 Tom de Vries <tdevries@suse.de>
6993 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
6994 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
6996 2019-01-12 Tom de Vries <tdevries@suse.de>
6998 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
6999 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
7000 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
7002 2019-01-12 Tom de Vries <tdevries@suse.de>
7004 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
7005 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
7006 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
7008 2019-01-12 Tom de Vries <tdevries@suse.de>
7010 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
7011 resources diagnostic.
7013 2019-01-12 Tom de Vries <tdevries@suse.de>
7015 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
7016 vector length to be 128.
7017 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
7018 length 2097152 to be reduced to 1024 instead of 32.
7020 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
7021 James Norris <jnorris@codesourcery.com>
7023 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
7024 Library Routines", and "Environment Variables".
7026 2019-01-11 Tom de Vries <tdevries@suse.de>
7028 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
7031 2019-01-11 Tom de Vries <tdevries@suse.de>
7033 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
7035 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
7036 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
7037 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
7038 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
7040 2019-01-11 Tom de Vries <tdevries@suse.de>
7042 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
7045 2019-01-10 Nathan Sidwell <nathan@acm.org>
7046 Julian Brown <julian@codesourcery.com>
7049 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
7050 * testsuite/libgomp.oacc-c++/pr71959.C: New.
7052 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7054 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
7057 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7059 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
7060 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7063 2019-01-09 Tom de Vries <tdevries@suse.de>
7066 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
7067 #define instead of "const int".
7068 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
7069 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
7070 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
7071 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
7073 2019-01-09 Tom de Vries <tdevries@suse.de>
7075 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
7078 2019-01-07 Tom de Vries <tdevries@suse.de>
7080 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
7081 GOMP_OPENACC_DIM argument.
7083 2019-01-03 Tom de Vries <tdevries@suse.de>
7085 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
7086 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
7088 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7090 Update copyright years.
7092 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7094 * libgomp.texi: Bump @copying's copyright year.
7096 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7098 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
7099 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
7100 (GOACC_declare): Redefine the "device" argument to "flags".
7102 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7103 Cesar Philippidis <cesar@codesourcery.com>
7105 * target.c (struct gomp_coalesce_chunk): New structure.
7106 (struct gomp_coalesce_buf): Update the chunks member to use that
7107 type. Adjust all users.
7109 2018-12-19 Tom de Vries <tdevries@suse.de>
7111 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
7112 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
7113 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
7115 2018-12-19 Tom de Vries <tdevries@suse.de>
7117 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
7118 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
7119 gcc/testsuite/gcc.dg/goacc.
7120 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
7122 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7123 Chung-Lin Tang <cltang@codesourcery.com>
7125 * oacc-mem.c (acc_present_or_create): Remove definition and change
7126 to alias of acc_create.
7127 (acc_present_or_copyin): Remove definition and change to alias of
7129 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
7130 of acc_present_or_create.
7131 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
7132 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7133 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7134 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7135 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7136 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7137 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7138 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7139 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7140 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7141 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7142 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7143 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7144 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7145 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7146 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7148 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7151 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
7152 "identical parameters".
7153 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
7154 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
7157 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
7158 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
7161 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
7162 (nvptx_wait_async): Unseen async-argument is a no-op.
7163 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
7164 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
7165 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7166 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7167 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
7168 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
7169 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
7170 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
7171 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
7173 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
7174 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7176 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
7178 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
7179 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7180 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7182 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7185 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
7186 (acc_set_cuda_stream): Clarify.
7187 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
7189 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
7191 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
7192 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
7193 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
7194 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7196 2018-12-14 Tom de Vries <tdevries@suse.de>
7198 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
7199 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
7200 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
7201 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
7202 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
7204 2018-12-13 Tom de Vries <tdevries@suse.de>
7206 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
7207 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
7208 * fortran.c (omp_display_affinity_): ... here.
7209 * libgomp.h (gomp_print_string): Declare.
7210 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
7211 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7214 2018-12-13 Jakub Jelinek <jakub@redhat.com>
7217 * testsuite/libgomp.c++/for-24.C (results): Include it in
7218 omp declare target region.
7219 (main): Use map (always, tofrom: results) instead of
7220 map (tofrom: results).
7222 2018-12-12 Jakub Jelinek <jakub@redhat.com>
7225 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
7226 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
7228 * testsuite/libgomp.c-c++-common/for-16.c: New test.
7230 2018-12-12 Andreas Schwab <schwab@suse.de>
7232 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
7235 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
7238 * testsuite/libgomp.fortran/async_io_8.f90: New test.
7240 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
7241 Jakub Jelinek <jakub@redhat.com>
7243 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
7244 devicep->host2dev_func.
7246 2018-12-08 Jakub Jelinek <jakub@redhat.com>
7249 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
7250 tls_runtime effective target.
7251 (t): New threadprivate variable.
7252 (main): Set t in threads which execute iterations of the worksharing
7253 loop. Propagate that to the task after the loop and don't abort
7254 if the current taskgroup hasn't been cancelled.
7256 2018-12-02 Jakub Jelinek <jakub@redhat.com>
7258 * testsuite/libgomp.c/task-reduction-3.c: New test.
7260 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
7262 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
7265 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
7266 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
7268 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
7270 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
7272 2018-10-19 Richard Biener <rguenther@suse.de>
7274 PR tree-optimization/88182
7275 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
7277 2018-11-26 Jakub Jelinek <jakub@redhat.com>
7279 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
7280 (RUNTEST): Don't define.
7281 (RUNTESTDEFAULTFLAGS): Add.
7282 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
7283 (distclean-am): Depend on distclean-DEJAGNU.
7284 (check-am): If -j% option is present in MFLAGS and if
7285 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
7286 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
7287 * testsuite/Makefile.in: Regenerated.
7289 2018-11-26 Richard Biener <rguenther@suse.de>
7291 PR tree-optimization/88182
7292 * testsuite/libgomp.c++/pr88182.C: New testcase.
7294 2018-11-20 Jakub Jelinek <jakub@redhat.com>
7297 * config/mingw32/affinity-fmt.c: New file.
7299 2018-11-09 Jakub Jelinek <jakub@redhat.com>
7301 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
7302 (gomp_display_affinity): Use __builtin_choose_expr to handle
7303 properly handle argument having integral, or pointer or some other
7304 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
7305 with uint64_t type instead of %llx and unsigned long long.
7307 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
7308 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
7310 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7312 * affinity.c: Include <string.h>, <stdio.h>.
7313 (gomp_display_affinity_place): Remove cpusetp.
7314 * teams.c: Include <limits.h>.
7316 2018-11-08 Jakub Jelinek <jakub@redhat.com>
7318 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
7319 in_reduction clause for s[0].
7321 * affinity.c (gomp_display_affinity_place): New function.
7322 * affinity-fmt.c: New file.
7323 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
7324 * config/linux/affinity.c (gomp_display_affinity_place): New function.
7325 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
7326 Move these functions to ...
7327 * config/nvptx/teams.c: ... here. New file.
7328 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
7330 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
7332 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
7333 and _aligned_malloc.
7334 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
7335 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
7336 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
7337 gomp_affinity_format_len): New variables.
7338 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
7339 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
7340 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
7341 modifiers. Display (non-default) chunk sizes. Print
7342 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
7343 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
7344 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
7345 * fortran.c: Include stdio.h and string.h.
7346 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
7347 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
7348 (omp_set_affinity_format_, omp_get_affinity_format_,
7349 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
7350 omp_pause_resource_all_): New functions.
7351 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
7353 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
7355 * teams.c: ... here. New file.
7356 * libgomp_g.h: Include gstdint.h.
7357 (GOMP_loop_nonmonotonic_runtime_start,
7358 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
7359 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
7360 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
7361 GOMP_parallel_loop_nonmonotonic_runtime,
7362 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7363 GOMP_loop_ull_nonmonotonic_runtime_start,
7364 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
7365 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
7366 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7367 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
7368 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
7369 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7370 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7371 GOMP_teams_reg): Declare.
7372 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
7373 gomp_aligned_alloc uses fallback implementation.
7374 (gomp_aligned_alloc, gomp_aligned_free): Declare.
7375 (enum gomp_schedule_type): Add GFS_MONOTONIC.
7376 (struct gomp_doacross_work_share): Add extra field.
7377 (struct gomp_work_share): Add task_reductions field.
7378 (struct gomp_taskgroup): Add workshare and reductions fields.
7379 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
7380 (gomp_thread_handle): New typedef.
7381 (gomp_display_affinity_place, gomp_set_affinity_format,
7382 gomp_display_string, gomp_display_affinity,
7383 gomp_display_affinity_thread): Declare.
7384 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
7385 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
7386 gomp_workshare_task_reduction_register): Declare.
7387 (gomp_team_start): Add taskgroup argument.
7388 (gomp_pause_host): Declare.
7389 (gomp_init_work_share, gomp_work_share_start): Change bool argument
7391 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
7392 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
7393 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
7394 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7395 GOMP_loop_ull_doacross_start,
7396 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7397 GOMP_loop_maybe_nonmonotonic_runtime_next,
7398 GOMP_loop_maybe_nonmonotonic_runtime_start,
7399 GOMP_loop_nonmonotonic_runtime_next,
7400 GOMP_loop_nonmonotonic_runtime_start,
7401 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7402 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7403 GOMP_loop_ull_nonmonotonic_runtime_next,
7404 GOMP_loop_ull_nonmonotonic_runtime_start,
7405 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7406 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
7407 GOMP_taskgroup_reduction_register,
7408 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7409 GOMP_teams_reg and GOMP_taskwait_depend.
7410 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
7411 omp_{capture,display}_affinity{,_}, and
7412 omp_[gs]et_affinity_format{,_}.
7413 * loop.c: Include string.h.
7414 (GOMP_loop_runtime_next): Add ialias.
7415 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7416 (gomp_loop_static_start, gomp_loop_dynamic_start,
7417 gomp_loop_guided_start, gomp_loop_ordered_static_start,
7418 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7419 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7420 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
7421 or gomp_doacross_init callers.
7422 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
7423 GOMP_loop_doacross_start): New functions.
7424 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7425 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
7426 Mask off GFS_MONOTONIC bit.
7427 (GOMP_loop_maybe_nonmonotonic_runtime_next,
7428 GOMP_loop_maybe_nonmonotonic_runtime_start,
7429 GOMP_loop_nonmonotonic_runtime_next,
7430 GOMP_loop_nonmonotonic_runtime_start,
7431 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7432 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
7434 (gomp_parallel_loop_start): Pass NULL as taskgroup to
7436 * loop_ull.c: Include string.h.
7437 (GOMP_loop_ull_runtime_next): Add ialias.
7438 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7439 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
7440 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
7441 gomp_loop_ull_ordered_dynamic_start,
7442 gomp_loop_ull_ordered_guided_start,
7443 gomp_loop_ull_doacross_static_start,
7444 gomp_loop_ull_doacross_dynamic_start,
7445 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
7446 and gomp_doacross_ull_init callers.
7447 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7448 GOMP_loop_ull_doacross_start): New functions.
7449 (GOMP_loop_ull_runtime_start,
7450 GOMP_loop_ull_ordered_runtime_start,
7451 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
7452 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7453 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7454 GOMP_loop_ull_nonmonotonic_runtime_next,
7455 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
7456 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
7457 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
7458 (omp_pause_resource_t, omp_depend_t): New typedefs.
7459 (enum omp_lock_hint_t): Renamed to ...
7460 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
7461 enumerators using numbers and omp_lock_hint_* as their aliases.
7462 (omp_lock_hint_t): New typedef. Rename to ...
7463 (omp_sync_hint_t): ... this.
7464 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
7465 omp_sync_hint_t instead of omp_lock_hint_t.
7466 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7467 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7469 (omp_target_is_present, omp_target_disassociate_ptr):
7470 Change first argument from void * to const void *.
7471 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
7472 from void * to const void *.
7473 (omp_target_associate_ptr): Change first and second arguments from
7474 void * to const void *.
7475 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
7476 omp_pause_hard): New parameters.
7477 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7478 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7480 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
7481 omp_pause_hard): New parameters.
7482 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7483 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7485 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
7486 EXTRA argument. If not needed to prepare array, if extra is 0,
7487 clear ws->doacross, otherwise allocate just doacross structure and
7488 extra payload. If array is needed, allocate also extra payload.
7489 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
7490 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
7492 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
7494 (GOMP_parallel): Likewise. Formatting fix.
7495 (GOMP_parallel_reductions): New function.
7496 (GOMP_cancellation_point): If taskgroup has workshare
7497 flag set, check cancelled of prev taskgroup if any.
7498 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
7499 on prev taskgroup if any.
7500 * sections.c: Include string.h.
7501 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7502 (GOMP_sections_start): Adjust gomp_work_share_start caller.
7503 (GOMP_sections2_start): New function.
7504 (GOMP_parallel_sections_start, GOMP_parallel_sections):
7505 Pass NULL as taskgroup to gomp_team_start.
7506 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
7507 gomp_work_share_start callers.
7508 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
7509 If taskgroup has workshare flag set, check cancelled on prev
7510 taskgroup if any. Guard all cancellation tests with
7511 gomp_cancel_var test.
7512 (omp_target_is_present, omp_target_disassociate_ptr):
7513 Change ptr argument from void * to const void *.
7514 (omp_target_memcpy): Change src argument from void * to const void *.
7515 (omp_target_memcpy_rect): Likewise.
7516 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
7517 instead of char * where needed.
7518 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
7519 from void * to const void *.
7520 (omp_pause_resource, omp_pause_resource_all): New functions.
7521 * task.c (gomp_task_handle_depend): Handle new depend array format
7522 in addition to the old. Handle mutexinoutset kinds the same as
7523 inout for now, handle unspecified kinds.
7524 (gomp_create_target_task): If taskgroup has workshare flag set, check
7525 cancelled on prev taskgroup if any. Guard all cancellation tests with
7526 gomp_cancel_var test. Handle new depend array format count in
7527 addition to the old.
7528 (GOMP_task): Likewise. Adjust function comment.
7529 (gomp_task_run_pre): If taskgroup has workshare flag set, check
7530 cancelled on prev taskgroup if any. Guard all cancellation tests with
7531 gomp_cancel_var test.
7532 (GOMP_taskwait_depend): New function.
7533 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
7534 format in addition to the old. Handle mutexinoutset kinds the same as
7535 inout for now, handle unspecified kinds. Fix a function comment typo.
7536 (gomp_taskgroup_init): New function.
7537 (GOMP_taskgroup_start): Use it.
7538 (gomp_reduction_register, gomp_create_artificial_team,
7539 GOMP_taskgroup_reduction_register,
7540 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7541 gomp_parallel_reduction_register,
7542 gomp_workshare_task_reduction_register,
7543 gomp_workshare_taskgroup_start,
7544 GOMP_workshare_task_reduction_unregister): New functions.
7545 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
7546 check cancelled on prev taskgroup if any. Guard all cancellation
7547 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
7548 by calling GOMP_taskgroup_reduction_register.
7549 * team.c (gomp_thread_attr): Remove comment.
7550 (struct gomp_thread_start_data): Add handle field.
7551 (gomp_thread_start): Call pthread_detach.
7552 (gomp_new_team): Adjust gomp_init_work_share caller.
7553 (gomp_free_pool_helper): Call pthread_detach.
7554 (gomp_team_start): Add taskgroup argument, initialize implicit
7555 tasks' taskgroup field to that. Don't call
7556 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
7557 (gomp_team_end): Determine nesting by thr->ts.level != 0
7558 rather than thr->ts.team != NULL.
7559 (gomp_pause_pool_helper, gomp_pause_host): New functions.
7560 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
7561 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
7562 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
7563 if more than 1 allocate also extra payload at the end of array. Never
7564 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
7565 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
7566 return true instead of ws.
7567 * Makefile.in: Regenerated.
7568 * configure: Regenerated.
7569 * config.h.in: Regenerated.
7570 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
7572 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
7573 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
7574 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
7575 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
7576 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
7577 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
7578 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
7579 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
7580 * testsuite/libgomp.c-c++-common/for-10.c: New test.
7581 * testsuite/libgomp.c-c++-common/for-11.c: New test.
7582 * testsuite/libgomp.c-c++-common/for-12.c: New test.
7583 * testsuite/libgomp.c-c++-common/for-13.c: New test.
7584 * testsuite/libgomp.c-c++-common/for-14.c: New test.
7585 * testsuite/libgomp.c-c++-common/for-15.c: New test.
7586 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
7587 define a different N(test), don't define N(f0) to N(f14), but instead
7588 define N(f20) to N(f34) using != comparisons.
7589 * testsuite/libgomp.c-c++-common/for-7.c: New test.
7590 * testsuite/libgomp.c-c++-common/for-8.c: New test.
7591 * testsuite/libgomp.c-c++-common/for-9.c: New test.
7592 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
7593 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
7594 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
7595 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
7596 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
7597 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
7598 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
7599 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
7600 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
7601 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
7602 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
7603 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
7604 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
7605 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
7606 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
7607 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
7608 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
7609 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
7610 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
7611 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
7612 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
7613 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
7614 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
7615 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
7616 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
7617 * testsuite/libgomp.c++/depend-1.C: New test.
7618 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
7619 * testsuite/libgomp.c++/depobj-1.C: New test.
7620 * testsuite/libgomp.c++/for-16.C: New test.
7621 * testsuite/libgomp.c++/for-21.C: New test.
7622 * testsuite/libgomp.c++/for-22.C: New test.
7623 * testsuite/libgomp.c++/for-23.C: New test.
7624 * testsuite/libgomp.c++/for-24.C: New test.
7625 * testsuite/libgomp.c++/for-25.C: New test.
7626 * testsuite/libgomp.c++/for-26.C: New test.
7627 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
7628 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
7629 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
7630 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
7631 * testsuite/libgomp.c++/task-reduction-10.C: New test.
7632 * testsuite/libgomp.c++/task-reduction-11.C: New test.
7633 * testsuite/libgomp.c++/task-reduction-12.C: New test.
7634 * testsuite/libgomp.c++/task-reduction-13.C: New test.
7635 * testsuite/libgomp.c++/task-reduction-14.C: New test.
7636 * testsuite/libgomp.c++/task-reduction-15.C: New test.
7637 * testsuite/libgomp.c++/task-reduction-16.C: New test.
7638 * testsuite/libgomp.c++/task-reduction-17.C: New test.
7639 * testsuite/libgomp.c++/task-reduction-18.C: New test.
7640 * testsuite/libgomp.c++/task-reduction-19.C: New test.
7641 * testsuite/libgomp.c/task-reduction-1.c: New test.
7642 * testsuite/libgomp.c++/task-reduction-1.C: New test.
7643 * testsuite/libgomp.c/task-reduction-2.c: New test.
7644 * testsuite/libgomp.c++/task-reduction-2.C: New test.
7645 * testsuite/libgomp.c++/task-reduction-3.C: New test.
7646 * testsuite/libgomp.c++/task-reduction-4.C: New test.
7647 * testsuite/libgomp.c++/task-reduction-5.C: New test.
7648 * testsuite/libgomp.c++/task-reduction-6.C: New test.
7649 * testsuite/libgomp.c++/task-reduction-7.C: New test.
7650 * testsuite/libgomp.c++/task-reduction-8.C: New test.
7651 * testsuite/libgomp.c++/task-reduction-9.C: New test.
7652 * testsuite/libgomp.c/teams-1.c: New test.
7653 * testsuite/libgomp.c/teams-2.c: New test.
7654 * testsuite/libgomp.c/thread-limit-4.c: New test.
7655 * testsuite/libgomp.c/thread-limit-5.c: New test.
7656 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
7658 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
7660 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
7661 acc_memcpy_to/from_device functions, now with async parameter.
7662 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
7663 (acc_memcpy_from_device): Likewise.
7664 (acc_memcpy_to_device_async): New API function.
7665 (acc_memcpy_from_device_async): Likewise.
7666 (present_create_copy): Add async parameter and async setting/unsetting.
7667 (acc_create): Adjust present_create_copy call.
7668 (acc_copyin): Likewise.
7669 (acc_present_or_create): Likewise.
7670 (acc_present_or_copyin): Likewise.
7671 (acc_create_async): New API function.
7672 (acc_copyin_async): New API function.
7673 (delete_copyout): Add async parameter and async setting/unsetting.
7674 (acc_delete): Adjust delete_copyout call.
7675 (acc_copyout): Likewise.
7676 (acc_delete_async): New API function.
7677 (acc_copyout_async): Likewise.
7678 (update_dev_host): Add async parameter and async setting/unsetting.
7679 (acc_update_device): Adjust update_dev_host call.
7680 (acc_update_self): Likewise.
7681 (acc_update_device_async): New API function.
7682 (acc_update_self_async): Likewise.
7683 * openacc.h (acc_copyin_async): Declare new API function.
7684 (acc_create_async): Likewise.
7685 (acc_copyout_async): Likewise.
7686 (acc_delete_async): Likewise.
7687 (acc_update_device_async): Likewise.
7688 (acc_update_self_async): Likewise.
7689 (acc_memcpy_to_device_async): Likewise.
7690 (acc_memcpy_from_device_async): Likewise.
7691 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
7692 (acc_copyin_async_64_h): New subroutine.
7693 (acc_copyin_async_array_h): New subroutine.
7694 (acc_create_async_32_h): New subroutine.
7695 (acc_create_async_64_h): New subroutine.
7696 (acc_create_async_array_h): New subroutine.
7697 (acc_copyout_async_32_h): New subroutine.
7698 (acc_copyout_async_64_h): New subroutine.
7699 (acc_copyout_async_array_h): New subroutine.
7700 (acc_delete_async_32_h): New subroutine.
7701 (acc_delete_async_64_h): New subroutine.
7702 (acc_delete_async_array_h): New subroutine.
7703 (acc_update_device_async_32_h): New subroutine.
7704 (acc_update_device_async_64_h): New subroutine.
7705 (acc_update_device_async_array_h): New subroutine.
7706 (acc_update_self_async_32_h): New subroutine.
7707 (acc_update_self_async_64_h): New subroutine.
7708 (acc_update_self_async_array_h): New subroutine.
7709 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
7710 (acc_copyin_async_64_h): New subroutine.
7711 (acc_copyin_async_array_h): New subroutine.
7712 (acc_create_async_32_h): New subroutine.
7713 (acc_create_async_64_h): New subroutine.
7714 (acc_create_async_array_h): New subroutine.
7715 (acc_copyout_async_32_h): New subroutine.
7716 (acc_copyout_async_64_h): New subroutine.
7717 (acc_copyout_async_array_h): New subroutine.
7718 (acc_delete_async_32_h): New subroutine.
7719 (acc_delete_async_64_h): New subroutine.
7720 (acc_delete_async_array_h): New subroutine.
7721 (acc_update_device_async_32_h): New subroutine.
7722 (acc_update_device_async_64_h): New subroutine.
7723 (acc_update_device_async_array_h): New subroutine.
7724 (acc_update_self_async_32_h): New subroutine.
7725 (acc_update_self_async_64_h): New subroutine.
7726 (acc_update_self_async_array_h): New subroutine.
7727 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
7728 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
7729 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
7730 acc_memcpy_to_device_async*, acc_update_device_async*, and
7731 acc_update_self_async* entries.
7732 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
7733 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
7734 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
7736 2018-10-31 Joseph Myers <joseph@codesourcery.com>
7739 * Makefile.am: Include multilib.am
7740 (AUTOMAKE_OPTIONS): Add info-in-builddir.
7741 (CLEANFILES): Remove libgomp.info.
7742 * configure.ac: Remove AC_PREREQ.
7743 * testsuite/Makefile.am (RUNTEST): Remove quotes.
7744 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
7747 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7748 Julian Brown <julian@codesourcery.com>
7750 * testsuite/libgomp.oacc-c++/this.C: New.
7752 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
7754 * plugin/plugin-nvptx.c (struct cuda_map): New.
7755 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
7756 h_tail with (cuda_map *) map.
7757 (cuda_map_create): New function.
7758 (cuda_map_destroy): New function.
7759 (map_init): Update to use a linked list of cuda_map objects.
7760 (map_fini): Likewise.
7761 (map_pop): Likewise.
7762 (map_push): Likewise. Return CUdeviceptr instead of void.
7763 (init_streams_for_device): Remove stales references to ptx_stream
7765 (select_stream_for_async): Likewise.
7766 (nvptx_exec): Update call to map_init.
7768 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
7769 Julian Brown <julian@codesourcery.com>
7772 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
7774 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
7775 Thomas Koenig <tkoenig@gcc.gnu.org>
7778 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7779 * testsuite/libgomp.fortran/async_io_2.f90: New test.
7780 * testsuite/libgomp.fortran/async_io_3.f90: New test.
7781 * testsuite/libgomp.fortran/async_io_4.f90: New test.
7782 * testsuite/libgomp.fortran/async_io_5.f90: New test.
7783 * testsuite/libgomp.fortran/async_io_6.f90: New test.
7784 * testsuite/libgomp.fortran/async_io_7.f90: New test.
7786 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
7787 Tom de Vries <tdevries@suse.de>
7790 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
7791 (cuOccupancyMaxPotentialBlockSize): Declare.
7792 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
7793 CUDA_ONE_CALL_MAYBE_NULL.
7794 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
7795 CUoccupancyB2DSize and declare
7796 cuOccupancyMaxPotentialBlockSize.
7797 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
7798 default num_gangs and num_workers when the driver supports it.
7800 2018-08-08 Tom de Vries <tdevries@suse.de>
7802 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
7803 CUDA_ONE_CALL_MAYBE_NULL.
7804 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
7805 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
7806 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
7809 2018-08-08 Tom de Vries <tdevries@suse.de>
7811 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
7812 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
7815 2018-08-08 Tom de Vries <tdevries@suse.de>
7817 * plugin/plugin-nvptx.c
7818 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
7819 (nvptx_open_device): Use
7820 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
7822 2018-08-08 Tom de Vries <tdevries@suse.de>
7824 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
7825 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
7827 2018-08-07 Tom de Vries <tdevries@suse.de>
7829 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
7830 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
7831 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
7832 corresponding call in CUDA_ONE_CALL. Add def/undef of
7833 CUDA_ONE_CALL_MAYBE_NULL.
7834 (CUDA_CALL_EXISTS): Define.
7836 2018-08-07 Tom de Vries <tdevries@suse.de>
7838 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
7839 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
7840 corresponding undefs right after.
7842 2018-08-04 Tom de Vries <tdevries@suse.de>
7844 * plugin/configfrag.ac: For --without-cuda-driver, set
7845 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
7846 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
7847 * configure: Regenerate.
7849 2018-08-02 Tom de Vries <tdevries@suse.de>
7852 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
7853 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
7854 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
7856 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
7857 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
7858 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
7860 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
7861 Thomas Schwinge <thomas@codesourcery.com>
7863 * config/nvptx/oacc-parallel.c: Truncate.
7865 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
7866 James Norris <jnorris@codesourcery.com>
7868 * plugin/plugin-nvptx.c (struct map): Removed.
7869 (map_init, map_pop): Remove use of struct map.
7870 (map_push): Likewise and change argument list.
7871 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
7873 2018-08-01 Tom de Vries <tdevries@suse.de>
7875 * plugin/cuda-lib.def: New file. Factor out of ...
7876 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
7877 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
7880 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
7882 Revert 'AsyncI/O patch committed'.
7883 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
7884 Thomas Koenig <tkoenig@gcc.gnu.org>
7887 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7888 * testsuite/libgomp.fortran/async_io_2.f90: New test.
7889 * testsuite/libgomp.fortran/async_io_3.f90: New test.
7890 * testsuite/libgomp.fortran/async_io_4.f90: New test.
7891 * testsuite/libgomp.fortran/async_io_5.f90: New test.
7892 * testsuite/libgomp.fortran/async_io_6.f90: New test.
7893 * testsuite/libgomp.fortran/async_io_7.f90: New test.
7895 2018-07-30 Tom de Vries <tdevries@suse.de>
7897 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
7898 (nvptx_exec): Ensure worker and vector default dims don't exceed
7899 targ_fn->max_threads_per_block.
7901 2018-07-30 Tom de Vries <tdevries@suse.de>
7903 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
7904 (nvptx_open_device): Init default_dims for device.
7905 (nvptx_exec): Use default_dims from device.
7907 2018-07-26 Jakub Jelinek <jakub@redhat.com>
7910 * testsuite/libgomp.c++/for-15.C (results): Include it in
7911 omp declare target region.
7912 (main): Use map (always, tofrom: results) instead of
7913 map (tofrom: results).
7916 * testsuite/libgomp.c/pr86660.c: New test.
7918 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
7919 Tom de Vries <tdevries@suse.de>
7921 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
7922 sufficient resources to launch a kernel, and give a hint on how to fix
7925 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
7926 Tom de Vries <tdevries@suse.de>
7928 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
7929 max_threads_per_block and max_threads_per_multiprocessor fields.
7930 (nvptx_open_device): Initialize new fields.
7931 (nvptx_exec): Use num_sms, and new fields.
7933 2018-07-26 Tom de Vries <tdevries@suse.de>
7935 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
7936 to correct locations. Remove xfail.
7938 2018-07-26 Tom de Vries <tdevries@suse.de>
7940 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
7941 acc_wait. Move acc_async_test calls to correct locations. Remove
7944 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
7945 Thomas Koenig <tkoenig@gcc.gnu.org>
7948 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7949 * testsuite/libgomp.fortran/async_io_2.f90: New test.
7950 * testsuite/libgomp.fortran/async_io_3.f90: New test.
7951 * testsuite/libgomp.fortran/async_io_4.f90: New test.
7952 * testsuite/libgomp.fortran/async_io_5.f90: New test.
7953 * testsuite/libgomp.fortran/async_io_6.f90: New test.
7954 * testsuite/libgomp.fortran/async_io_7.f90: New test.
7956 2018-07-17 Jakub Jelinek <jakub@redhat.com>
7959 * testsuite/libgomp.c++/pr86542.C: New test.
7962 * testsuite/libgomp.c++/pr86539.C: New test.
7964 2018-07-11 Jakub Jelinek <jakub@redhat.com>
7967 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
7968 (results): Make sure the variable is not inside declare target region.
7969 (qux): Remove unused function.
7971 2018-07-10 Jakub Jelinek <jakub@redhat.com>
7974 * testsuite/libgomp.c++/for-15.C: New test.
7976 2018-06-26 Jakub Jelinek <jakub@redhat.com>
7979 * testsuite/libgomp.c++/pr86291.C: New test.
7981 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
7983 * libgomp.texi (Top): Move www.openmp.org to https.
7984 (Enabling OpenMP): Ditto.
7985 (omp_get_active_level): Ditto.
7986 (omp_get_ancestor_thread_num): Ditto.
7987 (omp_get_cancellation): Ditto.
7988 (omp_get_default_device): Ditto.
7989 (omp_get_dynamic): Ditto.
7990 (omp_get_level): Ditto.
7991 (omp_get_max_active_levels): Ditto.
7992 (omp_get_max_task_priority): Ditto.
7993 (omp_get_max_threads): Ditto.
7994 (omp_get_nested): Ditto.
7995 (omp_get_num_devices): Ditto.
7996 (omp_get_num_procs): Ditto.
7997 (omp_get_num_teams): Ditto.
7998 (omp_get_num_threads): Ditto.
7999 (omp_get_proc_bind): Ditto.
8000 (omp_get_schedule): Ditto.
8001 (omp_get_team_num): Ditto.
8002 (omp_get_team_size): Ditto.
8003 (omp_get_thread_limit): Ditto.
8004 (omp_get_thread_num): Ditto.
8005 (omp_in_parallel): Ditto.
8006 (omp_in_final): Ditto.
8007 (omp_is_initial_device): Ditto.
8008 (omp_set_default_device): Ditto.
8009 (omp_set_dynamic): Ditto.
8010 (omp_set_max_active_levels): Ditto.
8011 (omp_set_nested): Ditto.
8012 (omp_set_num_threads): Ditto.
8013 (omp_set_schedule): Ditto.
8014 (omp_init_lock): Ditto.
8015 (omp_set_lock): Ditto.
8016 (omp_test_lock): Ditto.
8017 (omp_unset_lock): Ditto.
8018 (omp_destroy_lock): Ditto.
8019 (omp_init_nest_lock): Ditto.
8020 (omp_set_nest_lock): Ditto.
8021 (omp_test_nest_lock): Ditto.
8022 (omp_unset_nest_lock): Ditto.
8023 (omp_destroy_nest_lock): Ditto.
8024 (omp_get_wtick): Ditto.
8025 (omp_get_wtime): Ditto.
8026 (OMP_CANCELLATION): Ditto.
8027 (OMP_DISPLAY_ENV): Ditto.
8028 (OMP_DEFAULT_DEVICE): Ditto.
8029 (OMP_DYNAMIC): Ditto.
8030 (OMP_MAX_ACTIVE_LEVELS): Ditto.
8031 (OMP_MAX_TASK_PRIORITY): Ditto.
8032 (OMP_NESTED): Ditto.
8033 (OMP_NUM_THREADS): Ditto.
8034 (OMP_PROC_BIND): Ditto.
8035 (OMP_PLACES): Ditto.
8036 (OMP_STACKSIZE): Ditto.
8037 (OMP_SCHEDULE): Ditto.
8038 (OMP_THREAD_LIMIT): Ditto.
8039 (OMP_WAIT_POLICY): Ditto.
8041 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
8042 James Norris <jnorris@codesourcery.com>
8043 Julian Brown <julian@codesourcery.com>
8044 Thomas Schwinge <thomas@codesourcery.com>
8045 Tom de Vries <tom@codesourcery.com>
8047 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
8048 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
8049 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
8050 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
8051 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8052 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8053 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
8054 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
8055 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
8056 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
8058 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
8060 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
8062 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
8064 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
8066 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
8068 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
8070 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
8072 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
8074 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
8076 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
8078 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
8080 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
8082 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
8084 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
8086 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
8088 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
8090 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
8092 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
8094 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
8096 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
8098 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
8100 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
8102 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
8104 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
8106 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
8108 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
8110 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
8111 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
8112 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
8113 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
8114 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
8115 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
8116 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
8117 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
8118 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8120 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8122 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
8123 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
8124 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
8126 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
8127 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
8128 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8130 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8132 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8134 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8136 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8138 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
8140 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
8142 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
8144 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
8146 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
8148 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
8150 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
8152 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
8154 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
8156 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
8158 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8159 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
8160 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
8161 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
8162 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
8163 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
8164 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
8166 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
8167 Thomas Schwinge <thomas@codesourcery.com>
8168 Cesar Philippidis <cesar@codesourcery.com>
8170 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
8171 (gomp_acc_remove_pointer): Update declaration.
8172 (gomp_acc_declare_allocate): Declare.
8173 (gomp_remove_var): Declare.
8174 * libgomp.map (OACC_2.5): Define.
8175 * oacc-mem.c (acc_map_data): Update refcount.
8176 (acc_unmap_data): Likewise.
8177 (present_create_copy): Likewise.
8178 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
8179 (acc_copyin): Likewise.
8180 (FLAG_FINALIZE): Define.
8181 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
8182 (acc_delete_finalize): New function.
8183 (acc_delete_finalize_async): New function.
8184 (acc_copyout_finalize): New function.
8185 (acc_copyout_finalize_async): New function.
8186 (gomp_acc_insert_pointer): Update refcounts.
8187 (gomp_acc_remove_pointer): Return if data is not present on the
8189 * oacc-parallel.c (find_pset): Rename to find_pointer.
8190 (find_pointer): Add support for GOMP_MAP_POINTER.
8191 (handle_ftn_pointers): New function.
8192 (GOACC_parallel_keyed): Update refcounts of variables.
8193 (GOACC_enter_exit_data): Add support for finalized data mappings.
8194 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
8196 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
8197 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
8198 for GOMP_MAP_FORCE_FROM.
8199 * openacc.f90 (module openacc_internal): Add
8200 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
8201 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
8202 acc_copyout_finalize and acc_delete_finalize.
8203 (acc_copyout_finalize_32_h): New subroutine.
8204 (acc_copyout_finalize_64_h): New subroutine.
8205 (acc_copyout_finalize_array_h): New subroutine.
8206 (acc_delete_finalize_32_h): New subroutine.
8207 (acc_delete_finalize_64_h): New subroutine.
8208 (acc_delete_finalize_array_h): New subroutine.
8209 * openacc.h (acc_copyout_finalize): Declare.
8210 (acc_copyout_finalize_async): Declare.
8211 (acc_delete_finalize): Declare.
8212 (acc_delete_finalize_async): Declare.
8213 * openacc_lib.h (acc_copyout_finalize): New interface.
8214 (acc_delete_finalize): New interface.
8215 * target.c (gomp_map_vars): Update dynamic_refcount.
8216 (gomp_remove_var): New function.
8217 (gomp_unmap_vars): Use it.
8218 (gomp_unload_image_from_device): Likewise.
8219 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
8220 case to utilize OpenACC 2.5 data clause semantics.
8221 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8222 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8223 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8224 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8225 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8226 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8227 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8229 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8230 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8232 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
8233 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
8234 utilize OpenACC 2.5 data clause semantics.
8235 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8236 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8237 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8238 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8239 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8240 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8241 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8242 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8243 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8245 2018-05-21 Janus Weil <janus@gcc.gnu.org>
8249 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
8250 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8251 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8252 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8253 * testsuite/libgomp.fortran/task2.f90: Ditto.
8254 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8255 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8256 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8257 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8258 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8259 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8260 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8261 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
8262 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
8264 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
8267 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
8269 2018-05-09 Tom de Vries <tom@codesourcery.com>
8272 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
8273 to GOACC_enter_exit_data.
8275 2018-05-09 Tom de Vries <tom@codesourcery.com>
8278 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
8279 (async_synchronous_p): New function.
8280 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
8282 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8283 async_valid_stream_id_p.
8284 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
8285 * oacc-parallel.c (GOACC_parallel_keyed): Same.
8287 2018-05-07 Tom de Vries <tom@codesourcery.com>
8290 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
8291 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
8293 2018-05-03 Tom de Vries <tom@codesourcery.com>
8296 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
8297 extra_tool_flags if it contains an -foffload=-fdump-* flag.
8298 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
8299 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
8301 2018-05-02 Tom de Vries <tom@codesourcery.com>
8304 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
8305 GOMP_OPENACC_DIM ...
8306 * env.c (parse_gomp_openacc_dim): ... here. New function.
8307 (initialize_env): Call parse_gomp_openacc_dim.
8308 (goacc_default_dims): Define.
8309 * libgomp.h (goacc_default_dims): Declare.
8310 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
8311 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
8312 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
8313 GOMP_PLUGIN_acc_default_dim.
8314 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
8315 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
8317 2018-05-02 Tom de Vries <tom@codesourcery.com>
8320 * testsuite/libgomp.c++/udr-9.C: Update.
8321 * testsuite/libgomp.c++/atomic-16.C: Remove.
8322 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
8323 * testsuite/libgomp.c++/loop-13.C: Remove.
8324 * testsuite/libgomp.c++/loop-14.C: Remove.
8325 * testsuite/libgomp.c++/loop-15.C: Remove.
8326 * testsuite/libgomp.c++/monotonic-1.C: Remove.
8327 * testsuite/libgomp.c++/monotonic-2.C: Remove.
8328 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
8329 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
8330 * testsuite/libgomp.c++/ordered-1.C: Remove.
8331 * testsuite/libgomp.c++/pr45784.C: Remove.
8332 * testsuite/libgomp.c++/pr64824.C: Remove.
8333 * testsuite/libgomp.c++/pr64868.C: Remove.
8334 * testsuite/libgomp.c++/pr66199-1.C: Remove.
8335 * testsuite/libgomp.c++/pr66199-2.C: Remove.
8336 * testsuite/libgomp.c++/pr66199-3.C: Remove.
8337 * testsuite/libgomp.c++/pr66199-4.C: Remove.
8338 * testsuite/libgomp.c++/pr66199-5.C: Remove.
8339 * testsuite/libgomp.c++/pr66199-6.C: Remove.
8340 * testsuite/libgomp.c++/pr66199-7.C: Remove.
8341 * testsuite/libgomp.c++/pr66199-8.C: Remove.
8342 * testsuite/libgomp.c++/pr66199-9.C: Remove.
8343 * testsuite/libgomp.c++/pr69389.C: Remove.
8344 * testsuite/libgomp.c++/simd10.C: Remove.
8345 * testsuite/libgomp.c++/simd11.C: Remove.
8346 * testsuite/libgomp.c++/simd12.C: Remove.
8347 * testsuite/libgomp.c++/simd13.C: Remove.
8348 * testsuite/libgomp.c++/target-1.C: Remove.
8349 * testsuite/libgomp.c++/target-3.C: Remove.
8350 * testsuite/libgomp.c++/target-4.C: Remove.
8351 * testsuite/libgomp.c++/target-5.C: Remove.
8352 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
8353 * testsuite/libgomp.c++/taskloop-1.C: Remove.
8354 * testsuite/libgomp.c++/taskloop-2.C: Remove.
8355 * testsuite/libgomp.c++/taskloop-3.C: Remove.
8356 * testsuite/libgomp.c++/taskloop-4.C: Remove.
8357 * testsuite/libgomp.c++/udr-9.C: Remove.
8358 * testsuite/libgomp.c++/for-10.C: Remove.
8359 * testsuite/libgomp.c++/for-11.C: Remove.
8360 * testsuite/libgomp.c++/for-12.C: Remove.
8361 * testsuite/libgomp.c++/for-13.C: Remove.
8362 * testsuite/libgomp.c++/for-14.C: Remove.
8363 * testsuite/libgomp.c++/for-9.C: Remove.
8364 * testsuite/libgomp.c/atomic-18.c: Move ...
8365 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
8366 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
8367 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
8368 * testsuite/libgomp.c/loop-13.c: Move ...
8369 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
8370 * testsuite/libgomp.c/loop-14.c: Move ...
8371 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
8372 * testsuite/libgomp.c/loop-15.c: Remove.
8373 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
8374 * testsuite/libgomp.c/monotonic-1.c: Move ...
8375 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
8376 * testsuite/libgomp.c/monotonic-2.c: Move ...
8377 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
8378 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
8379 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
8380 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
8381 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
8382 * testsuite/libgomp.c/ordered-4.c: Move ...
8383 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
8384 * testsuite/libgomp.c/pr45784.c: Move ...
8385 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
8386 * testsuite/libgomp.c/pr64824.c: Move ...
8387 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
8388 * testsuite/libgomp.c/pr64868.c: Move ...
8389 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
8390 * testsuite/libgomp.c/pr66199-1.c: Move ...
8391 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
8392 * testsuite/libgomp.c/pr66199-2.c: Move ...
8393 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
8394 * testsuite/libgomp.c/pr66199-3.c: Move ...
8395 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
8396 * testsuite/libgomp.c/pr66199-4.c: Move ...
8397 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
8398 * testsuite/libgomp.c/pr66199-5.c: Move ...
8399 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
8400 * testsuite/libgomp.c/pr66199-6.c: Move ...
8401 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
8402 * testsuite/libgomp.c/pr66199-7.c: Move ...
8403 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
8404 * testsuite/libgomp.c/pr66199-8.c: Move ...
8405 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
8406 * testsuite/libgomp.c/pr66199-9.c: Move ...
8407 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
8408 * testsuite/libgomp.c/pr69389.c: Move ...
8409 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
8410 * testsuite/libgomp.c/simd-14.c: Move ...
8411 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
8412 * testsuite/libgomp.c/simd-15.c: Move ...
8413 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
8414 * testsuite/libgomp.c/simd-16.c: Move ...
8415 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
8416 * testsuite/libgomp.c/simd-17.c: Move ...
8417 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
8418 * testsuite/libgomp.c/target-1.c: Move ...
8419 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
8420 * testsuite/libgomp.c/target-10.c: Move ...
8421 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
8422 * testsuite/libgomp.c/target-13.c: Move ...
8423 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
8424 * testsuite/libgomp.c/target-2.c: Move ...
8425 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
8426 * testsuite/libgomp.c/taskgroup-1.c: Move ...
8427 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
8428 * testsuite/libgomp.c/taskloop-1.c: Move ...
8429 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
8430 * testsuite/libgomp.c/taskloop-2.c: Move ...
8431 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
8432 * testsuite/libgomp.c/taskloop-3.c: Move ...
8433 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
8434 * testsuite/libgomp.c/taskloop-4.c: Move ...
8435 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
8436 * testsuite/libgomp.c/udr-1.c: Move ...
8437 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
8438 * testsuite/libgomp.c/for-1.c: Move ...
8439 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
8440 * testsuite/libgomp.c/for-1.h: Move ...
8441 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
8442 * testsuite/libgomp.c/for-2.c: Move ...
8443 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
8444 * testsuite/libgomp.c/for-2.h: Move ...
8445 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
8446 * testsuite/libgomp.c/for-3.c: Move ...
8447 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
8448 * testsuite/libgomp.c/for-4.c: Move ...
8449 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
8450 * testsuite/libgomp.c/for-5.c: Move ...
8451 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
8452 * testsuite/libgomp.c/for-6.c: Move ...
8453 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
8455 2018-05-02 Tom de Vries <tom@codesourcery.com>
8458 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
8459 __builtin_goacc_parlevel_{id,size}.
8460 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
8461 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
8462 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
8463 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
8464 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
8465 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
8466 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
8467 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
8468 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
8469 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
8470 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
8471 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
8472 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
8473 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
8474 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
8475 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
8476 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
8477 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
8478 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
8479 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
8480 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
8481 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
8482 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
8484 2018-05-02 Tom de Vries <tom@codesourcery.com>
8487 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
8489 2018-05-02 Tom de Vries <tom@codesourcery.com>
8492 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
8494 2018-04-29 Julian Brown <julian@codesourcery.com>
8495 Tom de Vries <tom@codesourcery.com>
8498 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
8499 arbitrary order for iterations of atomic subtract check.
8501 2018-04-28 Tom de Vries <tom@codesourcery.com>
8504 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
8505 atomic capture results obtained in parallel loop to an array, instead of
8508 2018-04-26 Tom de Vries <tom@codesourcery.com>
8511 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
8512 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
8513 (process_GOMP_NVPTX_JIT): New function.
8514 (link_ptx): Use process_GOMP_NVPTX_JIT.
8516 2018-04-26 Richard Biener <rguenther@suse.de>
8517 Tom de Vries <tom@codesourcery.com>
8520 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
8522 2018-04-26 Tom de Vries <tom@codesourcery.com>
8525 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
8526 recursion depth from 25 to 23.
8527 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
8529 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
8531 * configure: Regenerated.
8533 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
8534 Tom de Vries <tom@codesourcery.com>
8537 * testsuite/libgomp.oacc-c++/ref-1.C: New.
8539 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
8542 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
8543 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8544 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8545 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
8546 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
8547 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
8550 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
8552 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8554 2018-04-19 Jakub Jelinek <jakub@redhat.com>
8556 * configure: Regenerated.
8558 2018-04-18 David Malcolm <dmalcolm@redhat.com>
8561 * configure: Regenerate.
8563 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
8564 Tom de Vries <tom@codesourcery.com>
8567 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8568 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8570 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8574 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
8575 test from gfortran.dg to here.
8577 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
8579 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
8580 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
8582 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
8585 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8586 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8588 2018-04-05 Tom de Vries <tom@codesourcery.com>
8591 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
8593 2018-03-26 Tom de Vries <tom@codesourcery.com>
8595 PR tree-optimization/85063
8596 * testsuite/libgomp.c/switch-conversion-2.c: New test.
8597 * testsuite/libgomp.c/switch-conversion.c: New test.
8598 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
8599 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
8601 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
8604 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
8605 call abort by STOP n.
8606 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
8607 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
8608 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
8609 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
8610 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
8611 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
8612 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
8613 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
8614 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
8615 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
8616 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
8617 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
8618 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
8619 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
8620 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
8621 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
8622 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
8623 * testsuite/libgomp.fortran/associate1.f90: Likewise.
8624 * testsuite/libgomp.fortran/associate2.f90: Likewise.
8625 * testsuite/libgomp.fortran/associate3.f90: Likewise.
8626 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
8627 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
8628 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
8629 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
8630 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
8631 * testsuite/libgomp.fortran/character1.f90: Likewise.
8632 * testsuite/libgomp.fortran/character2.f90: Likewise.
8633 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
8634 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
8635 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
8636 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
8637 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
8638 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
8639 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
8640 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
8641 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
8642 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
8643 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
8644 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
8645 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
8646 * testsuite/libgomp.fortran/do1.f90: Likewise.
8647 * testsuite/libgomp.fortran/do2.f90: Likewise.
8648 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
8649 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
8650 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
8651 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
8652 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
8653 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
8654 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8655 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
8656 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
8657 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
8658 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
8659 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
8660 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8661 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
8662 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
8663 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
8664 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
8665 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
8666 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
8667 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
8668 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
8669 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
8670 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
8671 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
8672 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
8673 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
8674 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
8675 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8676 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
8677 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
8678 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
8679 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
8680 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
8681 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8682 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8683 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
8684 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
8685 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
8686 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
8687 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
8688 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
8689 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
8690 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
8691 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
8692 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
8693 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
8694 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
8695 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
8696 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
8697 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8698 * testsuite/libgomp.fortran/lib2.f: Likewise.
8699 * testsuite/libgomp.fortran/lib3.f: Likewise.
8700 * testsuite/libgomp.fortran/lib4.f90: Likewise.
8701 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
8702 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
8703 * testsuite/libgomp.fortran/nested1.f90: Likewise.
8704 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
8705 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
8706 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
8707 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
8708 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
8709 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
8710 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
8711 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
8712 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
8713 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
8714 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
8715 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
8716 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
8717 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
8718 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
8719 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
8720 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
8721 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
8722 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
8723 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8724 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
8725 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
8726 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
8727 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
8728 * testsuite/libgomp.fortran/pr25162.f: Likewise.
8729 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
8730 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
8731 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
8732 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
8733 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
8734 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
8735 * testsuite/libgomp.fortran/pr28390.f: Likewise.
8736 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
8737 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
8738 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
8739 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
8740 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
8741 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
8742 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
8743 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
8744 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
8745 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
8746 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
8747 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
8748 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
8749 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
8750 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
8751 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
8752 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
8753 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
8754 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
8755 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
8756 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
8757 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
8758 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
8759 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
8760 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
8761 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
8762 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
8763 * testsuite/libgomp.fortran/reference1.f90: Likewise.
8764 * testsuite/libgomp.fortran/reference2.f90: Likewise.
8765 * testsuite/libgomp.fortran/retval1.f90: Likewise.
8766 * testsuite/libgomp.fortran/retval2.f90: Likewise.
8767 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
8768 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
8769 * testsuite/libgomp.fortran/simd1.f90: Likewise.
8770 * testsuite/libgomp.fortran/simd2.f90: Likewise.
8771 * testsuite/libgomp.fortran/simd3.f90: Likewise.
8772 * testsuite/libgomp.fortran/simd4.f90: Likewise.
8773 * testsuite/libgomp.fortran/simd5.f90: Likewise.
8774 * testsuite/libgomp.fortran/simd6.f90: Likewise.
8775 * testsuite/libgomp.fortran/simd7.f90: Likewise.
8776 * testsuite/libgomp.fortran/stack.f90: Likewise.
8777 * testsuite/libgomp.fortran/strassen.f90: Likewise.
8778 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
8779 * testsuite/libgomp.fortran/tabs2.f: Likewise.
8780 * testsuite/libgomp.fortran/target1.f90: Likewise.
8781 * testsuite/libgomp.fortran/target2.f90: Likewise.
8782 * testsuite/libgomp.fortran/target3.f90: Likewise.
8783 * testsuite/libgomp.fortran/target4.f90: Likewise.
8784 * testsuite/libgomp.fortran/target5.f90: Likewise.
8785 * testsuite/libgomp.fortran/target6.f90: Likewise.
8786 * testsuite/libgomp.fortran/target7.f90: Likewise.
8787 * testsuite/libgomp.fortran/target8.f90: Likewise.
8788 * testsuite/libgomp.fortran/task1.f90: Likewise.
8789 * testsuite/libgomp.fortran/task2.f90: Likewise.
8790 * testsuite/libgomp.fortran/task3.f90: Likewise.
8791 * testsuite/libgomp.fortran/task4.f90: Likewise.
8792 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
8793 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
8794 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
8795 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
8796 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
8797 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
8798 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
8799 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
8800 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
8801 * testsuite/libgomp.fortran/udr1.f90: Likewise.
8802 * testsuite/libgomp.fortran/udr10.f90: Likewise.
8803 * testsuite/libgomp.fortran/udr11.f90: Likewise.
8804 * testsuite/libgomp.fortran/udr12.f90: Likewise.
8805 * testsuite/libgomp.fortran/udr13.f90: Likewise.
8806 * testsuite/libgomp.fortran/udr14.f90: Likewise.
8807 * testsuite/libgomp.fortran/udr15.f90: Likewise.
8808 * testsuite/libgomp.fortran/udr2.f90: Likewise.
8809 * testsuite/libgomp.fortran/udr3.f90: Likewise.
8810 * testsuite/libgomp.fortran/udr4.f90: Likewise.
8811 * testsuite/libgomp.fortran/udr5.f90: Likewise.
8812 * testsuite/libgomp.fortran/udr6.f90: Likewise.
8813 * testsuite/libgomp.fortran/udr7.f90: Likewise.
8814 * testsuite/libgomp.fortran/udr8.f90: Likewise.
8815 * testsuite/libgomp.fortran/udr9.f90: Likewise.
8816 * testsuite/libgomp.fortran/vla1.f90: Likewise.
8817 * testsuite/libgomp.fortran/vla2.f90: Likewise.
8818 * testsuite/libgomp.fortran/vla3.f90: Likewise.
8819 * testsuite/libgomp.fortran/vla4.f90: Likewise.
8820 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8821 * testsuite/libgomp.fortran/vla6.f90: Likewise.
8822 * testsuite/libgomp.fortran/vla7.f90: Likewise.
8823 * testsuite/libgomp.fortran/vla8.f90: Likewise.
8824 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
8825 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
8826 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8827 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8828 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8829 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8830 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8831 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8832 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8833 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8834 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
8835 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
8836 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
8837 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
8838 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8839 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8840 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8841 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8842 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8843 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8844 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8845 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8846 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8847 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
8848 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
8849 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8850 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8851 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8852 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8853 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8854 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8855 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
8856 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
8857 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
8858 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
8859 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8860 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8861 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8862 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
8863 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8864 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
8865 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
8866 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
8867 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
8868 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
8869 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
8870 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8871 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8872 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8873 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8874 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8875 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8876 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8877 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8878 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8879 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8880 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8881 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8882 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8883 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8884 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8885 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8886 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8887 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
8888 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8889 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8890 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
8891 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
8892 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
8893 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8894 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
8895 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
8896 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
8897 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
8898 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8899 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8900 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8901 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8902 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8903 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8904 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8905 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8906 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
8907 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
8908 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8909 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8910 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8911 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8912 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
8913 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
8914 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
8915 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8916 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8917 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
8919 2018-03-20 Richard Biener <rguenther@suse.de>
8921 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
8922 parallelizable loop.
8924 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8927 * configure: Regenerate.
8929 2018-02-16 Jakub Jelinek <jakub@redhat.com>
8932 * libgomp.fortran/pr84418-1.f90: New test.
8933 * libgomp.fortran/pr84418-2.f90: New test.
8935 2018-02-14 Jakub Jelinek <jakub@redhat.com>
8938 * testsuite/libgomp.fortran/threadprivate4.f90: Add
8939 -std=f2003 -fall-intrinsics into dg-additional-options.
8941 2018-02-08 Martin Jambor <mjambor@suse.cz>
8943 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
8946 2018-02-08 Martin Jambor <mjambor@suse.cz>
8948 * testsuite/libgomp.hsa.c/staticvar.c: New test.
8950 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8952 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
8953 [__cplusplus]: Declare extern "C".
8955 2018-02-07 Tom de Vries <tom@codesourcery.com>
8958 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
8960 2018-01-29 Christoph Spiel <cspiel@freenet.de>
8961 Jakub Jelinek <jakub@redhat.com>
8964 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
8965 instead of omp_lock_t.
8967 2018-01-25 Tom de Vries <tom@codesourcery.com>
8970 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
8972 2018-01-24 Tom de Vries <tom@codesourcery.com>
8975 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
8977 2018-01-24 Tom de Vries <tom@codesourcery.com>
8980 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
8982 2018-01-19 Tom de Vries <tom@codesourcery.com>
8983 Cesar Philippidis <cesar@codesourcery.com>
8986 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
8987 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
8989 2018-01-03 Jakub Jelinek <jakub@redhat.com>
8991 Update copyright years.
8993 * libgomp.texi: Bump @copying's copyright year.
8995 2017-12-30 Tom de Vries <tom@codesourcery.com>
8998 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
8999 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
9001 2017-12-27 Tom de Vries <tom@codesourcery.com>
9004 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
9005 (test_nonstatic): Fix return type to workaround PR83046.
9007 2017-12-05 Jakub Jelinek <jakub@redhat.com>
9010 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
9011 j suffix instead of i.
9012 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
9015 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
9017 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
9018 call to acc_wait (1).
9020 2017-11-24 Jakub Jelinek <jakub@redhat.com>
9023 * testsuite/libgomp.fortran/pr81304.f90: New test.
9025 2017-11-23 Jakub Jelinek <jakub@redhat.com>
9028 * libgomp.fortran/pr81841.f90: New test.
9030 2017-11-22 Jakub Jelinek <jakub@redhat.com>
9033 * target.c (gomp_target_init): Compute lengths just once and
9034 use them in both malloc size and subsequent copying.
9036 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9038 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
9039 * acinclude.m4: Add cet.m4.
9040 * configure: Regenerate.
9041 * Makefile.in: Likewise.
9042 * testsuite/Makefile.in: Likewise.
9044 2017-11-15 Tom de Vries <tom@codesourcery.com>
9046 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
9047 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
9048 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
9049 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
9050 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
9051 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
9053 2017-11-14 Tom de Vries <tom@codesourcery.com>
9055 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
9058 2017-11-07 Jakub Jelinek <jakub@redhat.com>
9061 * testsuite/libgomp.c++/pr82835.C: New test.
9063 2017-11-06 Martin Liska <mliska@suse.cz>
9065 * testsuite/libgomp.c++/loop-2.C: Return a value
9066 for functions with non-void return type, or change type to void,
9067 or add -Wno-return-type for test.
9068 * testsuite/libgomp.c++/loop-4.C: Likewise.
9069 * testsuite/libgomp.c++/parallel-1.C: Likewise.
9070 * testsuite/libgomp.c++/shared-1.C: Likewise.
9071 * testsuite/libgomp.c++/single-1.C: Likewise.
9072 * testsuite/libgomp.c++/single-2.C: Likewise.
9074 2017-10-31 Tom de Vries <tom@codesourcery.com>
9076 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
9077 "do {} while (false)".
9078 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
9079 after HSA_DEBUG call.
9081 2017-10-28 Jakub Jelinek <jakub@redhat.com>
9083 * target.c (struct gomp_coalesce_buf): New type.
9084 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
9085 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
9086 (gomp_copy_host2dev): Add CBUF argument, if copying into
9087 the cached ranges, memcpy into buffer instead of copying
9089 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
9090 Add CBUF argument, pass it through to other calls.
9091 (gomp_map_vars): Aggregate copies from host to device if small enough
9092 and with small enough gaps in between into memcpy into a buffer and
9093 fewer host to device copies from the buffer.
9094 (gomp_update): Adjust gomp_copy_host2dev caller.
9096 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
9098 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
9100 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9101 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9102 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9103 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9105 2017-10-16 Tom de Vries <tom@codesourcery.com>
9107 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
9108 openacc_nvidia_accel_selected.
9109 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
9110 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
9111 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
9112 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
9113 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
9114 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
9115 openacc_nvidia_accel_selected. Skip for shared memory device.
9116 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
9117 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
9119 2017-10-09 Martin Jambor <mjambor@suse.cz>
9122 * testsuite/libgomp.hsa.c/pr82416.c: New test.
9124 2017-10-07 Tom de Vries <tom@codesourcery.com>
9126 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
9127 Remove acc_device_nvidia references.
9128 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
9131 2017-10-05 Tom de Vries <tom@codesourcery.com>
9133 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
9134 vector_length(32) clause from acc parallel directive.
9135 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
9137 2017-10-04 Tom de Vries <tom@codesourcery.com>
9139 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
9140 (main): Reduce sum of arr elements. Assert that hres is exactly
9141 representable in 32-bit floating point.
9142 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
9143 (main): Reduce sum of arr elements. Assert that hres and hmres are
9144 exactly representable in 32-bit floating point.
9145 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
9147 2017-09-28 Tom de Vries <tom@codesourcery.com>
9149 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
9151 * testsuite/libgomp.c++/pr69393.C: Same.
9152 * testsuite/libgomp.c++/taskloop-1.C: Same.
9153 * testsuite/libgomp.c++/taskloop-3.C: Same.
9154 * testsuite/libgomp.c++/taskloop-4.C: Same.
9155 * testsuite/libgomp.c/for-4.c: Same.
9156 * testsuite/libgomp.c/pr66199-3.c: Same.
9157 * testsuite/libgomp.c/pr66199-4.c: Same.
9158 * testsuite/libgomp.c/pr66199-6.c: Same.
9159 * testsuite/libgomp.c/taskloop-1.c: Same.
9160 * testsuite/libgomp.c/taskloop-3.c: Same.
9161 * testsuite/libgomp.c/taskloop-4.c: Same.
9162 * testsuite/libgomp.fortran/aligned1.f03: Same.
9163 * testsuite/libgomp.fortran/condinc1.f: Same.
9164 * testsuite/libgomp.fortran/condinc3.f90: Same.
9165 * testsuite/libgomp.fortran/crayptr1.f90: Same.
9166 * testsuite/libgomp.fortran/crayptr2.f90: Same.
9167 * testsuite/libgomp.fortran/crayptr3.f90: Same.
9168 * testsuite/libgomp.fortran/omp_cond1.f: Same.
9169 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
9170 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
9171 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
9172 * testsuite/libgomp.fortran/recursion1.f90: Same.
9173 * testsuite/libgomp.fortran/target2.f90: Same.
9174 * testsuite/libgomp.fortran/target5.f90: Same.
9175 * testsuite/libgomp.fortran/task3.f90: Same.
9177 2017-09-28 Tom de Vries <tom@codesourcery.com>
9179 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
9180 vector_length(32) clause from acc parallel directive.
9181 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
9183 2017-09-27 Tom de Vries <tom@codesourcery.com>
9185 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
9186 Remove acc_device_nvidia references.
9188 2017-09-16 Tom de Vries <tom@codesourcery.com>
9191 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
9193 2017-09-14 Tom de Vries <tom@codesourcery.com>
9195 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
9196 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
9197 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
9198 * testsuite/libgomp.c/c.exp: Include test-cases from
9199 libgomp.c-c++-common.
9200 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
9203 2017-09-14 Jakub Jelinek <jakub@redhat.com>
9206 * testsuite/libgomp.c++/pr81314.C: New test.
9208 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
9210 * libgomp.texi (Top): www.openacc.org now uses https.
9211 (Enabling OpenACC): Ditto.
9212 (acc_get_num_devices): Ditto.
9213 (acc_set_device_type): Ditto.
9214 (acc_get_device_type): Ditto.
9215 (acc_set_device_num): Ditto.
9216 (acc_get_device_num): Ditto.
9217 (acc_async_test): Ditto.
9218 (acc_async_test_all): Ditto.
9220 (acc_wait_all): Ditto.
9221 (acc_wait_all_async): Ditto.
9222 (acc_wait_async): Ditto.
9224 (acc_shutdown): Ditto.
9225 (acc_on_device): Ditto.
9226 (acc_malloc): Ditto.
9228 (acc_copyin): Ditto.
9229 (acc_present_or_copyin): Ditto.
9230 (acc_create): Ditto.
9231 (acc_present_or_create): Ditto.
9232 (acc_copyout): Ditto.
9233 (acc_delete): Ditto.
9234 (acc_update_device): Ditto.
9235 (acc_update_self): Ditto.
9236 (acc_map_data): Ditto.
9237 (acc_unmap_data): Ditto.
9238 (acc_deviceptr): Ditto.
9239 (acc_hostptr): Ditto.
9240 (acc_is_present): Ditto.
9241 (acc_memcpy_to_device): Ditto.
9242 (acc_memcpy_from_device): Ditto.
9243 (acc_get_current_cuda_device): Ditto.
9244 (acc_get_current_cuda_context): Ditto.
9245 (acc_get_cuda_stream): Ditto.
9246 (acc_set_cuda_stream): Ditto.
9247 (ACC_DEVICE_TYPE): Ditto.
9248 (ACC_DEVICE_NUM): Ditto.
9249 (OpenACC Library Interoperability): Ditto.
9251 2017-08-09 Jakub Jelinek <jakub@redhat.com>
9254 * testsuite/libgomp.c/pr81687-1.c: New test.
9255 * testsuite/libgomp.c/pr81687-2.c: New test.
9257 2017-08-07 Jakub Jelinek <jakub@redhat.com>
9260 * testsuite/libgomp.c/pr69389.c: New test.
9261 * testsuite/libgomp.c++/pr69389.C: New test.
9263 2017-08-07 Tom de Vries <tom@codesourcery.com>
9266 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
9267 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
9269 2017-07-27 Jakub Jelinek <jakub@redhat.com>
9272 * testsuite/libgomp.c/pr45784.c: New test.
9273 * testsuite/libgomp.c++/pr45784.C: New test.
9275 2017-07-19 Tom de Vries <tom@codesourcery.com>
9277 * testsuite/libgomp.oacc-c/vec.c: New test.
9279 2017-07-03 Tom de Vries <tom@codesourcery.com>
9281 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
9283 2017-06-27 Tom de Vries <tom@codesourcery.com>
9285 * plugin/plugin-nvptx.c (notify_var): New function.
9286 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
9288 2017-06-27 Tom de Vries <tom@codesourcery.com>
9290 * env.c (parse_unsigned_long_1): Factor out of ...
9291 (parse_unsigned_long): ... here.
9292 (parse_int_1): Factor out of ...
9293 (parse_int): ... here.
9294 (parse_int_secure): New function.
9295 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
9296 * secure_getenv.h: Factor out of ...
9297 * plugin/plugin-hsa.c: ... here.
9298 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
9300 2017-06-21 Jakub Jelinek <jakub@redhat.com>
9303 * testsuite/libgomp.c++/pr81130.C: New test.
9305 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9307 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
9309 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
9310 dg-xfail-run-if default args.
9312 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9314 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
9315 * testsuite/libgomp.c/pr39591-3.c: Likewise.
9317 2017-05-30 Jakub Jelinek <jakub@redhat.com>
9320 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
9321 (gomp_affinity_init_level): Use it. Always analyze the core and thread
9322 sibling lists, depending on level just pick up what CPUs to put
9323 together into a place vs. whether add multiple ordered places.
9325 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
9327 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
9328 * libgomp.map (OACC_2.0.1): Add these.
9329 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
9330 for "acc_wait", and "acc_wait_all", respectively.
9331 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
9332 for "acc_wait", and "acc_wait_all", respectively.
9333 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
9334 * libgomp.texi (acc_wait, acc_wait_all): Update.
9335 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
9336 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
9337 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9339 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
9340 acc_present_or_copyin and acc_present_or_create procedures,
9342 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
9343 generally different variants of OpenACC Runtime Library functions.
9344 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9346 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
9347 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9349 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
9350 of preprocessor definitions.
9351 * libgomp.h (strong_alias): Guard by "#ifdef
9352 HAVE_ATTRIBUTE_ALIAS".
9353 * oacc-mem.c: Provide "acc_pcreate" as alias for
9354 "acc_present_or_create", and "acc_pcopyin" as alias for
9355 "acc_present_or_copyin".
9356 * libgomp.map: New version "OACC_2.0.1".
9357 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
9358 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
9360 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
9363 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
9364 when disabling nvptx offloading.
9366 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
9368 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
9369 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
9370 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
9372 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
9373 * testsuite/lib/libgomp.exp
9374 (check_effective_target_openacc_nvidia_accel_configured): New
9376 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
9377 (check_effective_target_c++): New procs.
9378 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
9379 (check_effective_target_c++): Likewise.
9381 2017-05-22 Jakub Jelinek <jakub@redhat.com>
9384 * testsuite/libgomp.c/pr80809-2.c: New test.
9385 * testsuite/libgomp.c/pr80809-3.c: New test.
9388 * testsuite/libgomp.c/pr80809-1.c: New test.
9391 * testsuite/libgomp.c/pr80853.c: New test.
9393 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
9395 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
9396 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
9397 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9398 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9399 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
9401 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
9402 Debug output for failure.
9404 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9406 * testsuite/lib/libgomp.exp: Load scanlang.exp.
9408 2017-04-27 Jakub Jelinek <jakub@redhat.com>
9411 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
9412 bootstrap compare failures.
9414 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
9416 * testsuite/libgomp.c/target-36.c: New testcase.
9418 2017-04-13 Jakub Jelinek <jakub@redhat.com>
9420 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
9423 2017-04-11 Jakub Jelinek <jakub@redhat.com>
9426 * testsuite/libgomp.c/pr80394.c: New test.
9428 2017-04-04 Jakub Jelinek <jakub@redhat.com>
9431 * config/posix/thread-stacksize.h: New file.
9432 * config/darwin/thread-stacksize.h: New file.
9433 * config/nvptx/thread-stacksize.h: New file.
9434 * env.c: Include thread-stacksize.h.
9435 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
9436 instead of 0. Call pthread_attr_setstacksize even if
9437 GOMP_DEFAULT_STACKSIZE is non-zero.
9439 2017-03-30 Jakub Jelinek <jakub@redhat.com>
9441 * env.c (initialize_env): Initialize stacksize to 0.
9443 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
9446 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
9448 2017-03-08 Jakub Jelinek <jakub@redhat.com>
9451 * testsuite/libgomp.c/pr79940.c: New test.
9453 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9455 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
9457 Add __float128 options.
9459 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
9461 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
9462 hppa*-*-* dg-skip-if directive.
9464 2017-02-09 Jakub Jelinek <jakub@redhat.com>
9466 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
9467 dg-skip-if directive into a comment.
9469 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
9470 Chung-Lin Tang <cltang@codesourcery.com>
9472 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
9473 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
9474 add additional case.
9475 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
9476 "openacc_nvidia_accel_selected".
9477 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
9478 Add num_workers(8) clause.
9480 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
9482 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
9484 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
9485 include complex.h on hppa*-*-hpux*.
9486 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
9488 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
9490 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
9492 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
9493 GOMP_OFFLOAD_openacc_exec. Adjust all users.
9494 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
9495 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
9496 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
9497 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
9498 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
9499 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
9500 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
9501 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
9503 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
9505 * libgomp-plugin.h: #include <stdbool.h>.
9506 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
9507 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
9508 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
9509 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
9510 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
9511 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
9512 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
9513 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
9514 (GOMP_OFFLOAD_openacc_register_async_cleanup)
9515 (GOMP_OFFLOAD_openacc_async_test)
9516 (GOMP_OFFLOAD_openacc_async_test_all)
9517 (GOMP_OFFLOAD_openacc_async_wait)
9518 (GOMP_OFFLOAD_openacc_async_wait_async)
9519 (GOMP_OFFLOAD_openacc_async_wait_all)
9520 (GOMP_OFFLOAD_openacc_async_wait_all_async)
9521 (GOMP_OFFLOAD_openacc_async_set_async)
9522 (GOMP_OFFLOAD_openacc_create_thread_data)
9523 (GOMP_OFFLOAD_openacc_destroy_thread_data)
9524 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
9525 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
9526 (GOMP_OFFLOAD_openacc_get_cuda_stream)
9527 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
9528 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
9530 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
9531 (GOMP_OFFLOAD_unload_image): Fix argument types.
9533 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9535 * testsuite/lib/libgomp.exp
9536 (check_effective_target_hsa_offloading_selected_nocache): Fix up
9537 check_compile invocation. Fix up removal of executable. Drop
9538 bogus "2>&1" argument.
9540 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
9543 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
9544 Martin Jambor <mjambor@suse.cz>
9546 * plugin/hsa.h: Moved to top level include.
9547 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
9549 2017-01-21 Jakub Jelinek <jakub@redhat.com>
9552 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
9553 of cat to get version from BASE-VER file.
9554 * testsuite/Makefile.in: Regenerated.
9556 2017-01-19 Jakub Jelinek <jakub@redhat.com>
9558 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
9561 2017-01-17 Jakub Jelinek <jakub@redhat.com>
9563 * plugin/hsa.h: Add GCC runtime library exception.
9564 * plugin/hsa_ext_finalize.h: Likewise.
9566 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
9567 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
9568 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
9569 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
9570 plugin/include/cuda as include dir and -ldl instead of -lcuda as
9571 library to link ptx plugin against.
9572 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
9573 (CUDA_CALLS): Define.
9574 (cuda_lib, cuda_lib_inited): New variables.
9575 (init_cuda_lib): New function.
9576 (CUDA_CALL_PREFIX): Define.
9577 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
9578 (CUDA_CALL): Use FN instead of (FN).
9579 (CUDA_CALL_NOCHECK): Define.
9580 (cuda_error, fini_streams_for_device, select_stream_for_async,
9581 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
9582 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
9583 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
9584 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
9586 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
9588 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
9589 Use CUDA_CALL_NOCHECK.
9590 * plugin/cuda/cuda.h: New file.
9591 * config.h.in: Regenerated.
9592 * configure: Regenerated.
9595 * configure.ac: Add GCC_BASE_VER.
9596 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
9597 get version from BASE-VER file.
9598 * testsuite/Makefile.in: Regenerated.
9599 * configure: Regenerated.
9600 * Makefile.in: Regenerated.
9602 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9605 * Makefile.am: Make fincludedir multilib-aware.
9606 * Makefile.in: Regenerate.
9608 2017-01-01 Jakub Jelinek <jakub@redhat.com>
9610 Update copyright years.
9612 * libgomp.texi: Bump @copying's copyright year.
9614 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
9616 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
9617 pthread_spinlock_t instead of gomp_mutex_t lock.
9618 (gomp_get_thread_pool): Likewise.
9619 (gomp_release_thread_pool): Likewise.
9620 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
9623 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
9625 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
9626 thread pool in case nthreads == 1.
9628 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9630 * config/nvptx/env.c: Delete.
9631 * icv.c: Move definitions of ICV variables back ...
9632 * env.c: ...here. Do not compile environment-related functionality if
9633 LIBGOMP_OFFLOADED_ONLY is set.
9635 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9637 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
9638 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
9639 * configure: Regenerate.
9640 * config.h.in: Likewise.
9642 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9644 * Makefile.in: Regenerate with automake-1.11.6.
9645 * aclocal.m4: Likewise.
9646 * configure: Likewise.
9647 * testsuite/Makefile.in: Likewise.
9649 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
9651 * config/nvptx/critical.c: Delete to use generic implementation.
9653 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
9655 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
9656 ../../affinity.c as fallback.
9657 * config/nvptx/affinity.c: Delete to use fallback implementation.
9659 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
9660 Jakub Jelinek <jakub@redhat.com>
9661 Dmitry Melnik <dm@ispras.ru>
9663 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
9664 * Makefile.in. Regenerate.
9665 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
9666 (LIBGOMP_USE_PTHREADS): ...here; new define.
9667 * configure: Regenerate.
9668 * config.h.in: Likewise.
9669 * config/posix/affinity.c: Move to...
9670 * affinity.c: ...here (new file). Guard use of Pthreads-specific
9671 interface by LIBGOMP_USE_PTHREADS.
9672 * critical.c: Split out GOMP_atomic_{start,end} into...
9673 * atomic.c: ...here (new file).
9674 * env.c: Split out ICV definitions into...
9675 * icv.c: ...here (new file) and...
9676 * icv-device.c: ...here. New file.
9677 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
9678 (gomp_destroy_lock_30): Ditto.
9679 (gomp_set_lock_30): Ditto.
9680 (gomp_unset_lock_30): Ditto.
9681 (gomp_test_lock_30): Ditto.
9682 (gomp_init_nest_lock_30): Ditto.
9683 (gomp_destroy_nest_lock_30): Ditto.
9684 (gomp_set_nest_lock_30): Ditto.
9685 (gomp_unset_nest_lock_30): Ditto.
9686 (gomp_test_nest_lock_30): Ditto.
9688 * config/nvptx/lock.c: New.
9689 * config/nvptx/bar.c: New.
9690 * config/nvptx/bar.h: New.
9691 * config/nvptx/doacross.h: New.
9692 * config/nvptx/error.c: New.
9693 * config/nvptx/icv-device.c: New.
9694 * config/nvptx/mutex.h: New.
9695 * config/nvptx/pool.h: New.
9696 * config/nvptx/proc.c: New.
9697 * config/nvptx/ptrlock.h: New.
9698 * config/nvptx/sem.h: New.
9699 * config/nvptx/simple-bar.h: New.
9700 * config/nvptx/target.c: New.
9701 * config/nvptx/task.c: New.
9702 * config/nvptx/team.c: New.
9703 * config/nvptx/time.c: New.
9704 * config/posix/simple-bar.h: New.
9705 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
9706 (gomp_num_teams_var): Declare.
9707 (struct gomp_thread_pool): Change threads_dock member to
9708 gomp_simple_barrier_t.
9709 [__nvptx__] (gomp_thread): New implementation.
9710 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
9711 (gomp_thread_destructor): Ditto.
9712 (gomp_init_thread_affinity): Ditto.
9713 * team.c: Guard uses of Pthreads-specific interfaces by
9714 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
9715 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
9716 * config/nvptx/alloc.c: Delete.
9717 * config/nvptx/barrier.c: Ditto.
9718 * config/nvptx/fortran.c: Ditto.
9719 * config/nvptx/iter.c: Ditto.
9720 * config/nvptx/iter_ull.c: Ditto.
9721 * config/nvptx/loop.c: Ditto.
9722 * config/nvptx/loop_ull.c: Ditto.
9723 * config/nvptx/ordered.c: Ditto.
9724 * config/nvptx/parallel.c: Ditto.
9725 * config/nvptx/priority_queue.c: Ditto.
9726 * config/nvptx/sections.c: Ditto.
9727 * config/nvptx/single.c: Ditto.
9728 * config/nvptx/splay-tree.c: Ditto.
9729 * config/nvptx/work.c: Ditto.
9730 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
9731 -foffload=-lgfortran in addition to -lgfortran.
9732 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
9733 * plugin/plugin-nvptx.c: Include <limits.h>.
9734 (struct targ_fn_descriptor): Add new fields.
9735 (struct ptx_device): Ditto. Set them...
9736 (nvptx_open_device): ...here.
9737 (nvptx_adjust_launch_bounds): New.
9738 (nvptx_host2dev): Allow NULL 'nvthd'.
9739 (nvptx_dev2host): Ditto.
9740 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
9741 (link_ptx): Adjust log sizes.
9742 (nvptx_host2dev): Allow NULL 'nvthd'.
9743 (nvptx_dev2host): Ditto.
9744 (nvptx_set_clocktick): New. Use it...
9745 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
9747 (GOMP_OFFLOAD_dev2dev): New.
9748 (nvptx_adjust_launch_bounds): New.
9749 (nvptx_stacks_size): New.
9750 (nvptx_stacks_alloc): New.
9751 (nvptx_stacks_free): New.
9752 (GOMP_OFFLOAD_run): New.
9753 (GOMP_OFFLOAD_async_run): New (stub).
9755 2016-11-23 Martin Jambor <mjambor@suse.cz>
9757 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
9758 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
9759 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
9761 2016-11-23 Martin Liska <mliska@suse.cz>
9762 Martin Jambor <mjambor@suse.cz>
9764 * plugin/hsa.h: New file.
9765 * plugin/hsa_ext_finalize.h: New file.
9766 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
9767 header file unistd.h, and functions secure_getenv, __secure_getenv,
9768 getuid, geteuid, getgid and getegid.
9769 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
9771 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
9772 Handle various cases of secure_getenv presence, add an implementation
9773 when we can test effective UID and GID.
9774 (struct hsa_runtime_fn_info): New structure.
9775 (hsa_runtime_fn_info hsa_fns): New variable.
9776 (hsa_runtime_lib): Likewise.
9777 (support_cpu_devices): Likewise.
9778 (init_enviroment_variables): Load newly introduced ENV
9780 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
9781 (hsa_fatal): Likewise.
9782 (DLSYM_FN): New macro.
9783 (init_hsa_runtime_functions): New function.
9784 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
9785 structure. Depending on environment, also allow CPU devices.
9786 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
9787 (get_kernarg_memory_region): Likewise.
9788 (GOMP_OFFLOAD_init_device): Likewise.
9789 (destroy_hsa_program): Likewise.
9790 (init_basic_kernel_info): New function.
9791 (GOMP_OFFLOAD_load_image): Use it.
9792 (create_and_finalize_hsa_program): Call hsa run-time functions via
9794 (create_single_kernel_dispatch): Likewise.
9795 (release_kernel_dispatch): Likewise.
9796 (init_single_kernel): Likewise.
9797 (parse_target_attributes): Allow up multiple HSA grid dimensions.
9798 (get_group_size): New function.
9799 (run_kernel): Likewise.
9800 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
9801 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
9803 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
9804 * testsuite/libgomp-test-support.exp.in: Likewise.
9805 * Makefile.in: Regenerated.
9806 * aclocal.m4: Likewise.
9807 * config.h.in: Likewise.
9808 * configure: Likewise.
9809 * testsuite/Makefile.in: Likewise.
9811 2016-11-15 Martin Jambor <mjambor@suse.cz>
9812 Alexander Monakov <amonakov@ispras.ru>
9814 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
9815 mapping clauses to target constructs.
9816 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
9818 2016-11-15 Matthias Klose <doko@ubuntu.com>
9820 * configure: Regenerate.
9822 2016-11-10 Jakub Jelinek <jakub@redhat.com>
9824 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
9825 * omp_lib.h.in (openmp_version): Likewise.
9826 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
9828 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9830 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
9831 (fib_wrapper): Add map(from: x) clause.
9832 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
9834 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
9835 (accum): Add map(tmp) clause.
9836 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
9837 (accum): Add map(tofrom: tmp) clause.
9838 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
9839 (gramSchmidt): Likewise.
9840 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
9841 map(tofrom: sum) clause.
9842 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
9843 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
9844 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
9845 only allowed on the loop iterator.
9846 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
9847 * testsuite/libgomp.fortran/taskloop2.f90: New test.
9848 * testsuite/libgomp.fortran/taskloop4.f90: New test.
9849 * testsuite/libgomp.fortran/doacross1.f90: New test.
9850 * testsuite/libgomp.fortran/doacross3.f90: New test.
9851 * testsuite/libgomp.fortran/taskloop1.f90: New test.
9852 * testsuite/libgomp.fortran/taskloop3.f90: New test.
9853 * testsuite/libgomp.fortran/doacross2.f90: New test.
9854 * testsuite/libgomp.c/doacross-1.c (main): Add missing
9855 #pragma omp atomic read.
9856 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
9857 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
9859 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
9860 Nathan Sidwell <nathan@acm.org>
9862 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
9863 to determine default geometry.
9864 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
9867 2016-11-01 Jakub Jelinek <jakub@redhat.com>
9869 * hashtab.h: Use standard GPLv3 with runtime exception
9872 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
9874 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
9875 size when allocating new thread.
9877 2016-09-14 Marek Polacek <polacek@redhat.com>
9879 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
9881 2016-08-19 Jakub Jelinek <jakub@redhat.com>
9884 * testsuite/libgomp.fortran/pr71014.f90: New test.
9886 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
9889 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
9890 firstprivate clauses.
9891 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
9893 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
9894 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
9895 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
9896 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9897 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9898 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
9899 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9900 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9901 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9902 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9903 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9904 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
9906 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
9909 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
9911 2016-08-08 Jakub Jelinek <jakub@redhat.com>
9914 * testsuite/libgomp.c++/pr58706.C: New test.
9916 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
9918 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
9919 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
9920 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9922 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
9923 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
9925 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
9927 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
9928 test, and don't hardcode -O0.
9930 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
9932 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
9934 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
9936 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
9939 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
9942 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
9943 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
9945 2016-07-01 Jakub Jelinek <jakub@redhat.com>
9948 * testsuite/libgomp.fortran/associate3.f90: New test.
9950 2016-06-17 Jakub Jelinek <jakub@redhat.com>
9952 * testsuite/libgomp.c++/target-21.C: New test.
9954 2016-06-16 Jakub Jelinek <jakub@redhat.com>
9956 * testsuite/libgomp.c++/target-20.C: New test.
9958 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
9959 Cesar Philippidis <cesar@codesourcery.com>
9962 * libgomp.oacc-c/nested-function-1.c: New file.
9963 * libgomp.oacc-c/nested-function-2.c: Likewise.
9964 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
9965 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
9966 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
9968 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
9971 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
9972 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
9973 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
9975 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
9977 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
9978 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
9980 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
9983 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
9985 2016-05-26 Jakub Jelinek <jakub@redhat.com>
9987 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
9988 instead of invalid schedule(static, 0).
9989 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
9991 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
9993 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
9994 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
9995 parameter, use to set async stream around call to gomp_unmap_vars,
9996 call gomp_unmap_vars() with 'do_copyfrom' set to true.
9997 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
9998 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
9999 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
10000 (event_add): Add int parameter, initialize 'val' field when
10001 adding new ptx_event struct.
10002 (nvptx_evec): Adjust event_add() call arguments.
10003 (nvptx_host2dev): Likewise.
10004 (nvptx_dev2host): Likewise.
10005 (nvptx_wait_async): Likewise.
10006 (nvptx_wait_all_async): Likewise.
10007 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
10008 pass to event_add() call.
10009 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
10011 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
10012 call openacc.register_async_cleanup_func() hook.
10013 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
10014 * target.c (gomp_copy_from_async): Delete function.
10015 (gomp_map_vars): Remove async_refcount.
10016 (gomp_unmap_vars): Likewise.
10017 (gomp_load_image_to_device): Likewise.
10018 (omp_target_associate_ptr): Likewise.
10019 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
10020 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
10021 (gomp_copy_from_async): Remove.
10023 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10025 * target.c (gomp_device_copy): New function.
10026 (gomp_copy_host2dev): Likewise.
10027 (gomp_copy_dev2host): Likewise.
10028 (gomp_free_device_memory): Likewise.
10029 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
10030 (gomp_map_pointer): Likewise.
10031 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
10032 NULL value from alloc_func plugin hook.
10033 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
10034 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
10035 (gomp_unmap_vars): Likewise.
10036 (gomp_update): Adjust to call gomp_copy_dev2host and
10037 gomp_copy_host2dev functions.
10038 (gomp_unload_image_from_device): Handle false value from
10039 unload_image_func plugin hook.
10040 (gomp_init_device): Handle false value from init_device_func
10042 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
10043 (omp_target_free): Adjust to call gomp_free_device_memory.
10044 (omp_target_memcpy): Handle return values from host2dev_func,
10045 dev2host_func, and dev2dev_func plugin hooks.
10046 (omp_target_memcpy_rect_worker): Likewise.
10047 (gomp_target_fini): Handle false value from fini_device_func
10049 * libgomp.h (struct gomp_device_descr): Adjust return type of
10050 init_device_func, fini_device_func, unload_image_func, free_func,
10051 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
10052 * oacc-init.c (acc_shutdown_1): Handle false value from
10053 fini_device_func plugin hook.
10054 * oacc-host.c (host_init_device): Change return type to bool.
10055 (host_fini_device): Likewise.
10056 (host_unload_image): Likewise.
10057 (host_free): Likewise.
10058 (host_dev2host): Likewise.
10059 (host_host2dev): Likewise.
10060 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
10061 (acc_memcpy_to_device): Likewise.
10062 (acc_memcpy_from_device): Likewise.
10063 (delete_copyout): Add libfnname parameter, handle free_func
10064 hook fatal error case.
10065 (acc_delete): Adjust delete_copyout call.
10066 (acc_copyout): Likewise.
10067 (update_dev_host): Move gomp_mutex_unlock to after
10068 host2dev/dev2host hook calls.
10070 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
10071 to 'hsa_error_msg', for clarity.
10072 (hsa_fatal): Likewise.
10073 (hsa_error): New function.
10074 (init_hsa_context): Change return type to bool, adjust to return
10076 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
10078 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
10079 return false on error.
10080 (get_agent_info): Adjust to return NULL on error.
10081 (destroy_hsa_program): Change return type to bool, adjust to
10082 return false on error.
10083 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
10084 (destroy_module): Change return type to bool, adjust to
10085 return false on error.
10086 (GOMP_OFFLOAD_unload_image): Likewise.
10087 (GOMP_OFFLOAD_fini_device): Likewise.
10088 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
10089 (GOMP_OFFLOAD_free): Change to return false when called.
10090 (GOMP_OFFLOAD_dev2host): Likewise.
10091 (GOMP_OFFLOAD_host2dev): Likewise.
10092 (GOMP_OFFLOAD_dev2dev): Likewise.
10094 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
10095 (CUDA_CALL): Likewise.
10096 (CUDA_CALL_ASSERT): Likewise.
10097 (map_init): Change return type to bool, use CUDA_CALL* macros.
10098 (map_fini): Likewise.
10099 (init_streams_for_device): Change return type to bool, adjust
10101 (fini_streams_for_device): Change return type to bool, adjust
10103 (select_stream_for_async): Release stream_lock before calls to
10104 GOMP_PLUGIN_fatal, adjust call to map_init.
10105 (nvptx_init): Use CUDA_CALL* macros.
10106 (nvptx_attach_host_thread_to_device): Change return type to bool,
10107 use CUDA_CALL* macros.
10108 (nvptx_open_device): Use CUDA_CALL* macros.
10109 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
10111 (nvptx_get_num_devices): Use CUDA_CALL* macros.
10112 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
10113 (nvptx_exec): Use CUDA_CALL* macros.
10114 (nvptx_alloc): Use CUDA_CALL* macros.
10115 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
10116 (nvptx_host2dev): Likewise.
10117 (nvptx_dev2host): Likewise.
10118 (nvptx_wait): Use CUDA_CALL* macros.
10119 (nvptx_wait_async): Likewise.
10120 (nvptx_wait_all): Likewise.
10121 (nvptx_wait_all_async): Likewise.
10122 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
10123 use CUDA_CALL* macros, adjust call to map_fini.
10124 (GOMP_OFFLOAD_init_device): Change return type to bool,
10125 adjust code accordingly.
10126 (GOMP_OFFLOAD_fini_device): Likewise.
10127 (GOMP_OFFLOAD_load_image): Adjust calls to
10128 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
10129 use CUDA_CALL* macros.
10130 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
10132 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
10133 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
10134 handle error return.
10135 (GOMP_OFFLOAD_dev2host): Likewise.
10136 (GOMP_OFFLOAD_host2dev): Likewise.
10137 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
10138 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
10140 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
10142 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
10143 (acc_free): Likewise.
10144 (acc_memcpy_to_device): Likewise.
10145 (acc_memcpy_from_device): Likewise.
10146 (acc_deviceptr): Likewise.
10147 (acc_hostptr): Likewise.
10148 (acc_is_present): Likewise.
10149 (acc_map_data): Likewise.
10150 (acc_unmap_data): Likewise.
10151 (present_create_copy): Likewise.
10152 (delete_copyout): Likewise.
10153 (update_dev_host): Likewise.
10154 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
10155 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
10156 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
10157 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10158 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
10159 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
10160 it only runs on nvptx targets.
10161 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10162 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
10163 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10164 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10165 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10166 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10167 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10168 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10169 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10170 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
10171 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10172 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10173 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10174 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10175 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10176 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10177 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10178 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10179 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10180 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10181 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10182 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10183 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10185 2016-05-23 Martin Jambor <mjambor@suse.cz>
10187 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
10189 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
10191 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
10192 to gomp_init_targets_once.
10193 (acc_set_device_type): Remove !cached_base_dev condition on call to
10194 gomp_init_targets_once, move call to before acc_device_lock acquire,
10196 (acc_get_device_num): Remove !cached_base_dev condition on call to
10197 gomp_init_targets_once.
10198 (acc_set_device_num): Likewise.
10200 2016-05-16 Martin Jambor <mjambor@suse.cz>
10202 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
10204 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
10206 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
10207 expected partitioning.
10209 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
10211 PR middle-end/70626
10212 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
10213 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
10214 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
10216 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
10218 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
10221 2016-04-19 Jakub Jelinek <jakub@redhat.com>
10223 PR middle-end/70680
10224 * testsuite/libgomp.c/pr70680-1.c: New test.
10225 * testsuite/libgomp.c/pr70680-2.c: New test.
10227 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10229 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
10230 pass parameter variables to subroutines.
10232 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10234 PR middle-end/70643
10235 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
10237 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
10240 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
10241 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10243 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
10245 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
10246 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
10247 GOACC_declare prototype.
10249 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
10250 Merge this file, and...
10251 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
10252 ... this file, and...
10253 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
10254 ... this file, and...
10255 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
10256 ... this file, and...
10257 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
10258 ... this file, and...
10259 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
10260 ... this file, and...
10261 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
10262 ... this file, and...
10263 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
10264 ... this file, and...
10265 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
10266 ... this file, and...
10267 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
10268 ... this file, and...
10269 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
10270 ... this file, and...
10271 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
10272 ... this file, and...
10273 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
10274 ... this file into...
10275 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
10278 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
10279 Make failure observable.
10281 2016-04-12 Jakub Jelinek <jakub@redhat.com>
10283 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
10285 * target.c (gomp_target_fallback_firstprivate,
10286 gomp_target_unshare_firstprivate): Removed.
10287 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
10288 before waiting for dependencies.
10289 (gomp_target_task_fn): Don't copy firstprivate vars here.
10290 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
10291 firstprivate_copies here.
10292 (gomp_create_target_task): Don't initialize firstprivate_copies field.
10293 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
10294 explicit/implicit firstprivate.
10296 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
10300 PR tree-optimization/70373
10301 PR middle-end/70533
10302 PR middle-end/70534
10303 PR middle-end/70535
10304 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
10306 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
10308 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
10310 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
10312 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
10314 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
10316 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
10318 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
10320 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
10322 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
10323 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
10324 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
10325 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
10327 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
10329 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
10331 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
10333 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
10335 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
10336 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10337 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
10338 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
10339 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
10340 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
10342 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10343 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
10344 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
10345 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
10346 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
10347 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
10348 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
10349 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
10350 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
10351 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10352 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10353 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10354 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10355 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10356 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
10358 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
10359 James Norris <jnorris@codesourcery.com>
10360 Nathan Sidwell <nathan@codesourcery.com>
10361 Julian Brown <julian@codesourcery.com>
10362 Cesar Philippidis <cesar@codesourcery.com>
10363 Chung-Lin Tang <cltang@codesourcery.com>
10364 Tom de Vries <tom@codesourcery.com>
10366 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
10367 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
10368 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
10369 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
10370 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10371 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10372 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10373 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10374 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
10376 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
10378 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
10380 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
10381 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
10382 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
10383 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
10385 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
10387 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10388 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
10389 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
10390 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
10391 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10392 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10393 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10394 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10395 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10396 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
10398 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
10399 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10400 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
10402 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
10404 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
10406 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
10408 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
10410 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
10411 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
10412 ... this new file. Update.
10413 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
10414 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
10415 ... this new file. Update.
10416 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
10417 file. Incorporate...
10418 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
10420 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
10422 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
10424 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
10426 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
10428 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
10429 set-torture-options.
10431 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
10433 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
10435 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10436 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
10437 -fno-builtin-acc_on_device instead of -O0.
10438 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
10440 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
10441 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
10443 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
10444 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
10445 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
10446 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10447 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10448 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10449 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
10450 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10451 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
10452 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
10453 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
10454 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
10455 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
10456 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
10457 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
10458 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
10459 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
10460 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
10462 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
10464 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
10467 2016-03-24 Martin Liska <mliska@suse.cz>
10469 * plugin/plugin-hsa.c (packet_store_release): New function
10470 that is taken from the HSA runtime manual.
10471 (GOMP_OFFLOAD_run): Use the function.
10473 2016-03-23 Jakub Jelinek <jakub@redhat.com>
10476 * testsuite/libgomp.c++/pr70376.C: New test.
10478 2016-03-23 Tom de Vries <tom@codesourcery.com>
10480 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
10481 initialization of lresult and lvresult.
10482 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
10484 2016-03-23 James Norris <jnorris@codesourcery.com>
10485 Daichi Fukuoka <dc-fukuoka@sgi.com>
10488 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
10489 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
10490 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
10491 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
10493 2016-03-23 Martin Liska <mliska@suse.cz>
10496 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
10497 argument just in case a dispatched kernel uses that argument.
10499 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
10501 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
10502 -ftree-parallelize-loops/-fopenacc changes.
10503 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
10505 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10507 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
10509 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
10511 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10512 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10514 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
10516 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
10517 always_ld_library_path the path to libgcc_s.
10519 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
10522 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
10524 2016-03-09 Tom de Vries <tom@codesourcery.com>
10526 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
10527 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
10528 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10530 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
10531 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
10532 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
10533 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
10535 2016-03-07 Martin Jambor <mjambor@suse.cz>
10537 * testsuite/lib/libgomp.exp
10538 (check_effective_target_hsa_offloading_selected_nocache): New.
10539 (check_effective_target_hsa_offloading_selected): Likewise.
10540 * testsuite/libgomp.hsa.c/c.exp: Likewise.
10541 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
10542 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
10543 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
10544 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
10545 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
10546 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
10547 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
10548 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
10549 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
10550 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
10551 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
10552 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
10553 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
10554 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
10555 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
10556 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
10558 2016-03-07 Martin Jambor <mjambor@suse.cz>
10560 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
10561 non-shared memory accelerators.
10562 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
10563 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
10564 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
10565 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
10566 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10567 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10568 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10569 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10570 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10572 2016-03-07 Martin Jambor <mjambor@suse.cz>
10574 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
10577 2016-03-02 Jakub Jelinek <jakub@redhat.com>
10580 * testsuite/libgomp.c++/pr69555-1.C: New test.
10581 * testsuite/libgomp.c++/pr69555-2.C: New test.
10583 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
10584 Martin Jambor <mjambor@suse.cz>
10586 * testsuite/lib/libgomp.exp
10587 (check_effective_target_offload_device_shared_as): New proc.
10588 * testsuite/libgomp.c++/declare_target-1.C: New test.
10590 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
10593 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
10595 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
10597 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
10598 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
10600 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
10601 -ftree-parallelize-loops/-fopenacc changes.
10602 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
10603 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
10605 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
10607 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
10609 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
10611 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
10613 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
10615 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
10617 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
10618 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
10620 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
10621 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
10623 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
10624 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
10627 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
10629 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
10631 2016-02-19 Jakub Jelinek <jakub@redhat.com>
10634 * testsuite/libgomp.c/pr69805.c: New test.
10636 2016-02-16 Tom de Vries <tom@codesourcery.com>
10639 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
10641 2016-02-09 Tom de Vries <tom@codesourcery.com>
10643 PR tree-optimization/69599
10644 * testsuite/libgomp.c/omp-nested-3.c: New test.
10645 * testsuite/libgomp.c/pr46032-2.c: New test.
10646 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
10647 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
10649 2016-02-09 Tom de Vries <tom@codesourcery.com>
10652 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
10654 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10656 * testsuite/libgomp.c/target-31.c: Fix testcase.
10658 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10660 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
10662 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
10663 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
10664 reduction and map clauses.
10665 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10667 2016-02-02 James Norris <jnorris@codesourcery.com>
10669 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
10671 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
10673 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
10674 * oacc-parallel.c (GOACC_host_data): Remove function definition.
10676 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
10679 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
10681 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
10682 (hsa_kmt_lib): Set variables.
10683 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
10684 always_ld_library_path.
10685 * Makefile.in: Regenerate.
10686 * configure: Likewise.
10687 * testsuite/Makefile.in: Likewise.
10689 * plugin/configfrag.ac (offload_additional_options)
10690 (offload_additional_lib_paths): Don't amend for hsa offloading.
10691 * configure: Regenerate.
10693 * plugin/configfrag.ac: Don't configure for offloading target if
10694 we don't build the corresponding plugin.
10695 * configure: Regenerate.
10697 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
10699 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
10700 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
10702 2016-01-26 Tom de Vries <tom@codesourcery.com>
10704 PR tree-optimization/69110
10705 * testsuite/libgomp.c/pr69110.c: New test.
10707 2016-01-25 Richard Biener <rguenther@suse.de>
10710 * testsuite/libgomp.c++/pr69393.C: New testcase.
10712 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
10714 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
10715 function wasn't mapped to the device with non-shared memory.
10717 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
10719 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
10721 2016-01-19 Martin Jambor <mjambor@suse.cz>
10722 Martin Liska <mliska@suse.cz>
10724 * plugin/Makefrag.am: Add HSA plugin requirements.
10725 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
10726 (HSA_RUNTIME_LIB): Likewise.
10727 (HSA_RUNTIME_CPPFLAGS): Likewise.
10728 (HSA_RUNTIME_INCLUDE): New substitution.
10729 (HSA_RUNTIME_LIB): Likewise.
10730 (HSA_RUNTIME_LDFLAGS): Likewise.
10731 (hsa-runtime): New configure option.
10732 (hsa-runtime-include): Likewise.
10733 (hsa-runtime-lib): Likewise.
10734 (PLUGIN_HSA): New substitution variable.
10735 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
10737 (PLUGIN_HSA_CPPFLAGS): Likewise.
10738 (PLUGIN_HSA_LDFLAGS): Likewise.
10739 (PLUGIN_HSA_LIBS): Likewise.
10740 Check that we have access to HSA run-time.
10741 * libgomp-plugin.h (offload_target_type): New element
10742 OFFLOAD_TARGET_TYPE_HSA.
10743 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
10745 (bool gomp_create_target_task): Updated.
10746 (gomp_device_descr): Extra parameter of run_func and async_run_func,
10747 new field can_run_func.
10748 * libgomp_g.h (GOMP_target_ext): Update prototype.
10749 * oacc-host.c (host_run): Added a new parameter args.
10750 * target.c (calculate_firstprivate_requirements): New function.
10751 (copy_firstprivate_data): Likewise.
10752 (gomp_target_fallback_firstprivate): Use them.
10753 (gomp_target_unshare_firstprivate): New function.
10754 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
10756 (GOMP_target): Do host fallback for all shared memory devices. Do not
10757 pass any args to plugins.
10758 (GOMP_target_ext): Introduce device-specific argument parameter args.
10759 Allow host fallback if device shares memory. Do not remap data if
10760 device has shared memory.
10761 (gomp_target_task_fn): Likewise. Also treat shared memory devices
10762 like host fallback for mappings.
10763 (GOMP_target_data): Treat shared memory devices like host fallback.
10764 (GOMP_target_data_ext): Likewise.
10765 (GOMP_target_update): Likewise.
10766 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
10767 gomp_create_target_task.
10768 (GOMP_target_enter_exit_data): Likewise.
10769 (omp_target_alloc): Treat shared memory devices like host fallback.
10770 (omp_target_free): Likewise.
10771 (omp_target_is_present): Likewise.
10772 (omp_target_memcpy): Likewise.
10773 (omp_target_memcpy_rect): Likewise.
10774 (omp_target_associate_ptr): Likewise.
10775 (gomp_load_plugin_for_device): Also load can_run.
10776 * task.c (GOMP_PLUGIN_target_task_completion): Free
10777 firstprivate_copies.
10778 (gomp_create_target_task): Accept new argument args and store it to
10780 * plugin/plugin-hsa.c: New file.
10782 2016-01-18 Tom de Vries <tom@codesourcery.com>
10784 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
10785 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
10786 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
10787 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
10788 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
10789 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
10790 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
10791 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
10792 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
10793 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
10794 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10796 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10798 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
10799 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
10800 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
10801 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
10802 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
10803 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
10804 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
10805 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10807 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
10809 2016-01-15 Jakub Jelinek <jakub@redhat.com>
10811 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
10813 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
10815 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
10817 2016-01-12 James Norris <jnorris@codesourcery.com>
10819 * libgomp.texi: Updates for OpenACC.
10821 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
10823 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
10825 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
10828 * testsuite/libgomp.fortran/pr66680.f90: New test.
10830 2016-01-07 Jakub Jelinek <jakub@redhat.com>
10832 PR middle-end/68960
10833 * testsuite/libgomp.c/pr68960.c: New test.
10835 2016-01-06 Nathan Sidwell <nathan@acm.org>
10837 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
10838 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
10840 2016-01-04 Jakub Jelinek <jakub@redhat.com>
10842 Update copyright years.
10844 * libgomp.texi: Bump @copying's copyright year.
10846 2015-12-31 Nathan Sidwell <nathan@acm.org>
10848 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
10849 dg-additional-options syntax.
10850 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
10851 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
10852 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
10853 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10854 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
10855 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
10856 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
10857 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
10858 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
10859 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
10860 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10861 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
10862 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
10863 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
10864 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
10865 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
10866 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10867 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10869 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
10871 * libgomp.h (REFCOUNT_LINK): Define.
10872 (struct splay_tree_key_s): Add link_key.
10873 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
10874 Replace target address of the pointer with target address of newly
10875 mapped object in the splay tree. Set link pointer on target to the
10876 device address of the mapped object.
10877 (gomp_unmap_vars): Restore target address of the pointer in the splay
10878 tree for REFCOUNT_LINK objects after unmapping.
10879 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
10880 declare target link" objects.
10881 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
10882 "omp declare target link" objects, which were mapped for the image.
10883 (gomp_exit_data): Restore target address of the pointer in the splay
10884 tree for REFCOUNT_LINK objects after unmapping.
10885 * testsuite/libgomp.c/target-link-1.c: New file.
10887 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
10889 * libgomp.h (gomp_device_state): New enum.
10890 (struct gomp_device_descr): Replace is_initialized with state.
10891 (gomp_fini_device): Remove declaration.
10892 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
10893 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
10894 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
10895 (acc_set_device_type): Use state instead of is_initialized.
10896 (acc_set_device_num): Likewise.
10897 * target.c (resolve_device): Use state instead of is_initialized.
10898 Do not initialize finalized device.
10899 (gomp_map_vars): Do nothing if device is finalized.
10900 (gomp_unmap_vars): Likewise.
10901 (gomp_update): Likewise.
10902 (GOMP_offload_register_ver): Use state instead of is_initialized.
10903 (GOMP_offload_unregister_ver): Likewise.
10904 (gomp_init_device): Likewise.
10905 (gomp_unload_device): Likewise.
10906 (gomp_fini_device): Remove.
10907 (gomp_get_target_fn_addr): Do nothing if device is finalized.
10908 (GOMP_target): Go to host fallback if device is finalized.
10909 (GOMP_target_ext): Likewise.
10910 (gomp_exit_data): Do nothing if device is finalized.
10911 (gomp_target_task_fn): Go to host fallback if device is finalized.
10912 (gomp_target_fini): New static function.
10913 (gomp_target_init): Use state instead of is_initialized.
10914 Call gomp_target_fini at exit.
10916 2015-12-09 Tom de Vries <tom@codesourcery.com>
10918 PR tree-optimization/68716
10919 * testsuite/libgomp.c/omp-nested-2.c: New test.
10921 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
10923 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
10924 target openacc_nvidia_accel_selected.
10925 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
10926 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
10927 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
10928 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
10930 2015-12-01 Julian Brown <julian@codesourcery.com>
10931 James Norris <James_Norris@mentor.com>
10933 * oacc-parallel.c (GOACC_host_data): New function.
10934 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
10935 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
10936 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
10937 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
10938 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
10939 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
10940 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
10942 2015-11-30 James Norris <jnorris@codesourcery.com>
10943 Cesar Philippidis <cesar@codesourcery.com>
10946 * libgomp.oacc-fortran/routine-5.f90: New test.
10947 * libgomp.oacc-fortran/routine-7.f90: New test.
10948 * libgomp.oacc-fortran/routine-9.f90: New test.
10950 2015-11-30 Tom de Vries <tom@codesourcery.com>
10952 PR tree-optimization/46032
10953 * testsuite/libgomp.c/pr46032.c: New test.
10955 2015-11-27 Jakub Jelinek <jakub@redhat.com>
10958 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
10959 (gomp_create_target_task): Call it before freeing
10960 GOMP_TARGET_TASK_DATA tasks.
10963 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
10964 in between case label and OpenMP standalone directives.
10965 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
10967 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
10969 * configure: Regenerate.
10971 2015-11-26 Jakub Jelinek <jakub@redhat.com>
10973 * testsuite/libgomp.c/target-35.c: New test.
10975 2015-11-22 James Norris <jnorris@codesourcery.com>
10976 Cesar Philippidis <cesar@codesourcery.com>
10978 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
10979 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10980 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10981 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10982 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10984 2015-11-20 Jakub Jelinek <jakub@redhat.com>
10986 PR middle-end/68221
10987 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
10988 * testsuite/libgomp.c/reduction-12.c: Likewise.
10989 * testsuite/libgomp.c++/reduction-11.C: Likewise.
10990 * testsuite/libgomp.c++/reduction-12.C: Likewise.
10992 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
10994 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
10995 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
10996 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
10997 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
10998 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
11000 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11001 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11003 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
11005 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
11006 worker & gang cases.
11007 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11009 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
11011 * config/nvptx/priority_queue.c: New file.
11013 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11015 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
11018 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11019 Aldy Hernandez <aldyh@redhat.com>
11020 Ilya Verbin <ilya.verbin@intel.com>
11022 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
11023 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
11024 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
11025 iterators or IV by chunk size.
11026 * parallel.c (gomp_resolve_num_threads): Don't assume that
11027 if thr->ts.team is non-NULL, then pool must be non-NULL.
11028 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
11029 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
11030 GOMP_PLUGIN_target_task_completion.
11031 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
11032 * Makefile.in: Regenerate.
11033 * libgomp.h: Shuffle prototypes and forward definitions around so
11034 priority queues can be defined.
11035 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
11036 (enum gomp_target_task_state): New enum.
11037 (struct gomp_target_task): Add state, tgt, task and team fields.
11038 (gomp_create_target_task): Change return type to bool, add
11040 (gomp_target_task_fn): Change return type to bool.
11041 (struct gomp_device_descr): Add async_run_func.
11042 (struct gomp_task): Remove children, next_child, prev_child,
11043 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
11045 (struct gomp_taskgroup): Remove children.
11046 Add taskgroup_queue.
11047 (struct gomp_team): Change task_queue type to a priority queue.
11048 (splay_compare): Define inline.
11049 (priority_queue_offset): New.
11050 (priority_node_to_task): New.
11051 (task_to_priority_node): New.
11052 * oacc-mem.c: Do not include splay-tree.h.
11053 * priority_queue.c: New file.
11054 * priority_queue.h: New file.
11055 * splay-tree.c: Do not include splay-tree.h.
11056 (splay_tree_foreach_internal): New.
11057 (splay_tree_foreach): New.
11058 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
11059 (splay_tree_callback): Define typedef.
11060 * target.c (splay_compare): Move to libgomp.h.
11061 (GOMP_target): Don't adjust *thr in any way around running offloaded
11063 (GOMP_target_ext): Likewise. Handle target nowait.
11064 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
11065 return value from gomp_create_target_task, if false, fallthrough
11066 as if no dependencies exist.
11067 (gomp_target_task_fn): Change return type to bool, return true
11068 if the task should have another part scheduled later. Handle
11070 (gomp_load_plugin_for_device): Initialize async_run.
11071 * task.c (gomp_init_task): Initialize children_queue.
11072 (gomp_clear_parent_in_list): New.
11073 (gomp_clear_parent_in_tree): New.
11074 (gomp_clear_parent): Handle priorities.
11075 (GOMP_task): Likewise.
11076 (priority_queue_move_task_first,
11077 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
11079 (gomp_create_target_task): Use priority queues. Change return type
11080 to bool, add state argument, return false if for async
11081 {{enter,exit} data,update} constructs no dependencies need to be
11082 waited for, handle target nowait. Set task->fn to NULL instead of
11083 gomp_target_task_fn.
11084 (verify_children_queue): Remove.
11085 (priority_list_upgrade_task): New.
11086 (priority_queue_upgrade_task): New.
11087 (verify_task_queue): Remove.
11088 (priority_list_downgrade_task): New.
11089 (priority_queue_downgrade_task): New.
11090 (gomp_task_run_pre): Use priority queues.
11091 Abstract code out to priority_queue_downgrade_task.
11092 (gomp_task_run_post_handle_dependers): Use priority queues.
11093 (gomp_task_run_post_remove_parent): Likewise.
11094 (gomp_task_run_post_remove_taskgroup): Likewise.
11095 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
11097 (GOMP_taskwait): Likewise.
11098 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
11099 priority-queue_upgrade_task.
11100 (GOMP_taskgroup_start): Use priority queues.
11101 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
11102 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
11104 * taskloop.c (GOMP_taskloop): Handle priorities.
11105 * team.c (gomp_new_team): Call priority_queue_init.
11106 (free_team): Call priority_queue_free.
11107 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
11108 team created for target nowait in implicit parallel region.
11109 (gomp_team_start): For nested check, test thr->ts.level instead of
11110 thr->ts.team != NULL.
11111 * testsuite/libgomp.c/doacross-3.c: New test.
11112 * testsuite/libgomp.c/ordered-5.c: New test.
11113 * testsuite/libgomp.c/priority.c: New test.
11114 * testsuite/libgomp.c/target-31.c: New test.
11115 * testsuite/libgomp.c/target-32.c: New test.
11116 * testsuite/libgomp.c/target-33.c: New test.
11117 * testsuite/libgomp.c/target-34.c: New test.
11119 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11121 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
11123 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
11124 loop is sequential.
11126 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11128 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
11129 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
11131 2015-11-12 James Norris <jnorris@codesourcery.com>
11132 Joseph Myers <joseph@codesourcery.com>
11134 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
11135 * oacc-parallel.c (GOACC_declare): New function.
11136 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
11137 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
11138 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
11139 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
11140 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
11142 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
11144 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
11146 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
11148 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
11149 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
11151 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11153 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
11154 inadvertent commit.
11156 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11158 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
11159 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
11160 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
11161 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
11162 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
11164 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
11166 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
11167 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11169 2015-11-05 Jakub Jelinek <jakub@redhat.com>
11170 Ilya Verbin <ilya.verbin@intel.com>
11172 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
11173 GOMP_loop_nonmonotonic_dynamic_start,
11174 GOMP_loop_nonmonotonic_guided_next,
11175 GOMP_loop_nonmonotonic_guided_start,
11176 GOMP_loop_ull_nonmonotonic_dynamic_next,
11177 GOMP_loop_ull_nonmonotonic_dynamic_start,
11178 GOMP_loop_ull_nonmonotonic_guided_next,
11179 GOMP_loop_ull_nonmonotonic_guided_start,
11180 GOMP_parallel_loop_nonmonotonic_dynamic,
11181 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
11182 (GOMP_target_41): Renamed to ...
11183 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11185 (GOMP_target_data_41): Renamed to ...
11186 (GOMP_target_data_ext): ... this.
11187 (GOMP_target_update_41): Renamed to ...
11188 (GOMP_target_update_ext): ... this.
11189 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
11190 GOMP_target_data_ext and GOMP_target_update_ext instead of
11191 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
11192 Export GOMP_loop_nonmonotonic_dynamic_next,
11193 GOMP_loop_nonmonotonic_dynamic_start,
11194 GOMP_loop_nonmonotonic_guided_next,
11195 GOMP_loop_nonmonotonic_guided_start,
11196 GOMP_loop_ull_nonmonotonic_dynamic_next,
11197 GOMP_loop_ull_nonmonotonic_dynamic_start,
11198 GOMP_loop_ull_nonmonotonic_guided_next,
11199 GOMP_loop_ull_nonmonotonic_guided_start,
11200 GOMP_parallel_loop_nonmonotonic_dynamic and
11201 GOMP_parallel_loop_nonmonotonic_guided.
11202 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
11203 GOMP_parallel_loop_nonmonotonic_guided,
11204 GOMP_loop_nonmonotonic_dynamic_start,
11205 GOMP_loop_nonmonotonic_guided_start,
11206 GOMP_loop_nonmonotonic_dynamic_next,
11207 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
11208 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
11209 GOMP_loop_ull_nonmonotonic_guided_start,
11210 GOMP_loop_ull_nonmonotonic_dynamic_next,
11211 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
11212 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
11214 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
11215 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
11216 Use gomp_map_val function.
11217 (gomp_target_fallback_firstprivate): New static function.
11218 (GOMP_target_41): Renamed to ...
11219 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11220 arguments. Move firstprivate fallback handling into a new
11222 (GOMP_target_data_41): Renamed to ...
11223 (GOMP_target_data_ext): ... this.
11224 (GOMP_target_update_41): Renamed to ...
11225 (GOMP_target_update_ext): ... this.
11226 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
11227 gomp_map_0len_lookup instead of gomp_map_lookup.
11228 (omp_target_is_present): Use gomp_map_0len_lookup instead of
11230 * testsuite/libgomp.c/target-28.c: Likewise.
11231 * testsuite/libgomp.c/monotonic-1.c: New test.
11232 * testsuite/libgomp.c/monotonic-2.c: New test.
11233 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
11234 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
11235 * testsuite/libgomp.c/pr66199-5.c: New test.
11236 * testsuite/libgomp.c/pr66199-6.c: New test.
11237 * testsuite/libgomp.c/pr66199-7.c: New test.
11238 * testsuite/libgomp.c/pr66199-8.c: New test.
11239 * testsuite/libgomp.c/pr66199-9.c: New test.
11240 * testsuite/libgomp.c/reduction-11.c: New test.
11241 * testsuite/libgomp.c/reduction-12.c: New test.
11242 * testsuite/libgomp.c/reduction-13.c: New test.
11243 * testsuite/libgomp.c/reduction-14.c: New test.
11244 * testsuite/libgomp.c/reduction-15.c: New test.
11245 * testsuite/libgomp.c/target-12.c (main): Adjust for
11246 omp_target_is_present change for one-past-last element.
11247 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
11248 the same var is both mapped and privatized.
11249 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
11250 handling of zero-length array sections.
11251 * testsuite/libgomp.c/target-28.c: New test.
11252 * testsuite/libgomp.c/target-29.c: New test.
11253 * testsuite/libgomp.c/target-30.c: New test.
11254 * testsuite/libgomp.c/target-teams-1.c: New test.
11255 * testsuite/libgomp.c++/member-6.C: New test.
11256 * testsuite/libgomp.c++/member-7.C: New test.
11257 * testsuite/libgomp.c++/monotonic-1.C: New test.
11258 * testsuite/libgomp.c++/monotonic-2.C: New test.
11259 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
11260 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
11261 * testsuite/libgomp.c++/pr66199-3.C: New test.
11262 * testsuite/libgomp.c++/pr66199-4.C: New test.
11263 * testsuite/libgomp.c++/pr66199-5.C: New test.
11264 * testsuite/libgomp.c++/pr66199-6.C: New test.
11265 * testsuite/libgomp.c++/pr66199-7.C: New test.
11266 * testsuite/libgomp.c++/pr66199-8.C: New test.
11267 * testsuite/libgomp.c++/pr66199-9.C: New test.
11268 * testsuite/libgomp.c++/reduction-11.C: New test.
11269 * testsuite/libgomp.c++/reduction-12.C: New test.
11270 * testsuite/libgomp.c++/target-13.C: New test.
11271 * testsuite/libgomp.c++/target-14.C: New test.
11272 * testsuite/libgomp.c++/target-15.C: New test.
11273 * testsuite/libgomp.c++/target-16.C: New test.
11274 * testsuite/libgomp.c++/target-17.C: New test.
11275 * testsuite/libgomp.c++/target-18.C: New test.
11276 * testsuite/libgomp.c++/target-19.C: New test.
11278 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
11280 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
11281 and reduction copy.
11282 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11283 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11284 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11285 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11286 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
11287 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11288 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11289 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11290 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11291 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
11292 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11293 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11294 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11295 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
11297 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
11299 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
11300 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
11301 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
11302 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
11303 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
11304 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
11305 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
11306 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
11308 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
11310 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
11311 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
11312 (GOMP_OFFLOAD_openacc_parallel): Likewise.
11313 * oacc-host.c (host_openacc_exec): Likewise.
11314 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
11316 2015-11-03 Julian Brown <julian@codesourcery.com>
11317 Thomas Schwinge <thomas@codesourcery.com>
11319 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
11320 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11321 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
11323 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
11324 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
11326 2015-11-03 James Norris <jnorris@codesourcery.com>
11328 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
11330 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
11332 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
11333 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
11334 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11335 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
11336 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11338 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
11340 * openacc.h (enum acc_device_t): Reformat. Ensure layout
11342 (enum acc_async_t): Reformat.
11343 (acc_on_device): Declare compatible with builtin and provide C++
11345 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
11347 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
11348 Cesar Philippidis <cesar@codesourcery.com>
11350 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
11351 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
11352 ... this. Add a description of the test at the top of the file.
11353 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
11354 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
11355 ... this. Add a description of the test at the top of the file.
11357 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
11359 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
11360 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
11361 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
11362 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
11363 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
11364 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
11366 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
11368 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
11371 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
11374 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
11376 2015-10-27 James Norris <jnorris@codesourcery.com>
11378 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
11379 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
11381 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
11383 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
11384 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11386 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
11387 acc_device_nvidia usage.
11388 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11389 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11390 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11392 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
11393 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
11396 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
11400 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
11401 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
11403 2015-10-23 Tom de Vries <tom@codesourcery.com>
11406 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
11408 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
11410 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
11412 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11414 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
11415 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
11417 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
11418 to 0 when mapnum is 0.
11420 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
11422 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
11423 Cast to int from int32_t.
11425 2015-10-13 Jakub Jelinek <jakub@redhat.com>
11426 Aldy Hernandez <aldyh@redhat.com>
11427 Ilya Verbin <ilya.verbin@intel.com>
11429 * config/linux/affinity.c (omp_get_place_num_procs,
11430 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11431 * config/linux/doacross.h: New file.
11432 * config/posix/affinity.c (omp_get_place_num_procs,
11433 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11434 * config/posix/doacross.h: New file.
11435 * env.c: Include gomp-constants.h.
11436 (struct gomp_task_icv): Rename run_sched_modifier to
11437 run_sched_chunk_size.
11438 (gomp_max_task_priority_var): New variable.
11439 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
11440 (handle_omp_display_env): Change _OPENMP value from 201307 to
11441 201511. Print OMP_MAX_TASK_PRIORITY.
11442 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
11443 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
11444 chunk_size and run_sched_modifier to run_sched_chunk_size.
11445 (omp_get_max_task_priority, omp_get_initial_device,
11446 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
11447 omp_get_partition_place_nums): New functions.
11448 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
11449 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
11451 (omp_get_num_places_, omp_get_place_num_procs_,
11452 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
11453 omp_get_place_proc_ids_8_, omp_get_place_num_,
11454 omp_get_partition_num_places_, omp_get_partition_place_nums_,
11455 omp_get_partition_place_nums_8_, omp_get_initial_device_,
11456 omp_get_max_task_priority_): New functions.
11457 * libgomp_g.h (GOMP_loop_doacross_static_start,
11458 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
11459 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
11460 GOMP_loop_ull_doacross_dynamic_start,
11461 GOMP_loop_ull_doacross_guided_start,
11462 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
11463 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
11464 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
11465 GOMP_target_data_41, GOMP_target_update_41,
11466 GOMP_target_enter_exit_data): New prototypes.
11467 (GOMP_task): Add prototype argument.
11468 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
11469 (struct gomp_doacross_work_share): New type.
11470 (struct gomp_work_share): Add doacross field.
11471 (struct gomp_task_icv): Rename run_sched_modifier to
11472 run_sched_chunk_size.
11473 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
11474 GOMP_TASK_UNDEFERRED. Add comments.
11475 (struct gomp_task_depend_entry): Add comments.
11476 (struct gomp_task): Likewise.
11477 (struct gomp_taskgroup): Likewise.
11478 (struct gomp_target_task): New type.
11479 (struct gomp_team): Add comment.
11480 (gomp_get_place_proc_ids_8, gomp_doacross_init,
11481 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
11482 gomp_create_target_task, gomp_target_task_fn): New prototypes.
11483 (struct target_var_desc): New type.
11484 (struct target_mem_desc): Adjust comment. Use struct
11485 target_var_desc instead of splay_tree_key for list.
11486 (REFCOUNT_INFINITY): Define.
11487 (struct splay_tree_key_s): Remove copy_from field.
11488 (struct gomp_device_descr): Add dev2dev_func field.
11489 (enum gomp_map_vars_kind): New enum.
11490 (gomp_map_vars): Add one argument.
11491 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
11492 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
11493 omp_get_place_num_procs, omp_get_place_num_procs_,
11494 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
11495 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
11496 omp_get_place_num_, omp_get_partition_num_places,
11497 omp_get_partition_num_places_, omp_get_partition_place_nums,
11498 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
11499 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
11500 omp_target_free, omp_target_is_present, omp_target_memcpy,
11501 omp_target_memcpy_rect, omp_target_associate_ptr and
11502 omp_target_disassociate_ptr.
11503 (GOMP_4.0.2): Renamed to ...
11504 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
11505 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
11506 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
11507 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11508 GOMP_loop_doacross_static_start, GOMP_doacross_post,
11509 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
11510 GOMP_loop_ull_doacross_guided_start,
11511 GOMP_loop_ull_doacross_runtime_start,
11512 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
11513 GOMP_doacross_ull_wait.
11514 * libgomp.texi: Document omp_get_max_task_priority.
11515 Rename modifier argument to chunk_size for omp_set_schedule and
11516 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
11517 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
11518 to run_sched_chunk_size renaming.
11519 (GOMP_loop_ordered_runtime_start): Likewise.
11520 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
11521 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11522 GOMP_parallel_loop_runtime_start): New functions.
11523 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
11524 to run_sched_chunk_size renaming.
11525 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
11526 GOMP_loop_doacross_guided_start): New functions or aliases.
11527 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
11528 run_sched_modifier to run_sched_chunk_size renaming.
11529 (GOMP_loop_ull_ordered_runtime_start): Likewise.
11530 (gomp_loop_ull_doacross_static_start,
11531 gomp_loop_ull_doacross_dynamic_start,
11532 gomp_loop_ull_doacross_guided_start,
11533 GOMP_loop_ull_doacross_runtime_start): New functions.
11534 (GOMP_loop_ull_doacross_static_start,
11535 GOMP_loop_ull_doacross_dynamic_start,
11536 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
11537 * oacc-mem.c (acc_map_data, present_create_copy,
11538 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
11540 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
11541 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
11542 instead of false to gomp_map_vars.
11543 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
11544 * omp.h.in (omp_lock_hint_t): New type.
11545 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11546 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11547 omp_get_place_num, omp_get_partition_num_places,
11548 omp_get_partition_place_nums, omp_get_initial_device,
11549 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
11550 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
11551 omp_target_associate_ptr, omp_target_disassociate_ptr): New
11553 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
11554 (omp_lock_hint_none, omp_lock_hint_uncontended,
11555 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11556 omp_lock_hint_speculative): New parameters.
11557 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11558 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11559 omp_get_place_num, omp_get_partition_num_places,
11560 omp_get_partition_place_nums, omp_get_initial_device,
11561 omp_get_max_task_priority): New interfaces.
11562 (omp_set_schedule, omp_get_schedule): Rename modifier argument
11564 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
11565 (omp_lock_hint_none, omp_lock_hint_uncontended,
11566 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11567 omp_lock_hint_speculative): New parameters.
11568 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11569 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11570 omp_get_place_num, omp_get_partition_num_places,
11571 omp_get_partition_place_nums, omp_get_initial_device,
11572 omp_get_max_task_priority): New functions and subroutines.
11573 * ordered.c: Include stdarg.h and string.h.
11574 (MAX_COLLAPSED_BITS): Define.
11575 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
11576 gomp_doacross_ull_init, GOMP_doacross_ull_post,
11577 GOMP_doacross_ull_wait): New functions.
11578 * target.c: Include errno.h.
11579 (resolve_device): If device is not initialized, call
11580 gomp_init_device on it.
11581 (gomp_map_lookup): New function.
11582 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
11583 Don't bump refcount if REFCOUNT_INFINITY. Handle
11584 GOMP_MAP_ALWAYS_TO_P.
11585 (get_kind): Rename is_openacc argument to short_mapkind.
11586 (gomp_map_pointer): Use gomp_map_lookup.
11587 (gomp_map_fields_existing): New function.
11588 (gomp_map_vars): Rename is_openacc argument to short_mapkind
11589 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
11590 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
11591 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
11592 Adjust for tgt->list changed type and copy_from living in there.
11593 (gomp_copy_from_async): Adjust for tgt->list changed type and
11594 copy_from living in there.
11595 (gomp_unmap_vars): Likewise.
11596 (gomp_update): Likewise. Rename is_openacc argument to
11597 short_mapkind. Don't fail if object is not mapped.
11598 (gomp_load_image_to_device): Initialize refcount to
11600 (gomp_target_fallback): New function.
11601 (gomp_get_target_fn_addr): Likewise.
11602 (GOMP_target): Adjust gomp_map_vars caller, use
11603 gomp_get_target_fn_addr and gomp_target_fallback.
11604 (GOMP_target_41): New function.
11605 (gomp_target_data_fallback): New function.
11606 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
11607 (GOMP_target_data_41): New function.
11608 (GOMP_target_update): Adjust gomp_update caller.
11609 (GOMP_target_update_41): New function.
11610 (gomp_exit_data, GOMP_target_enter_exit_data,
11611 gomp_target_task_fn, omp_target_alloc, omp_target_free,
11612 omp_target_is_present, omp_target_memcpy,
11613 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
11614 omp_target_associate_ptr, omp_target_disassociate_ptr,
11615 gomp_load_plugin_for_device): New functions.
11616 * task.c: Include gomp-constants.h. Include taskloop.c
11617 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
11618 (gomp_task_handle_depend): New function.
11619 (GOMP_task): Use it. Add priority argument. Use
11620 gomp-constant.h constants instead of hardcoded numbers.
11621 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
11622 (gomp_create_target_task): New function.
11623 (verify_children_queue, verify_taskgroup_queue,
11624 verify_task_queue): New functions.
11625 (gomp_task_run_pre): Call verify_*_queue functions.
11626 If an upcoming tied task is about to leave the sibling or
11627 taskgroup queues in an invalid state, adjust appropriately.
11628 Remove taskgroup argument. Add comments.
11629 (gomp_task_run_post_handle_dependers): Add comments.
11630 (gomp_task_run_post_remove_parent): Likewise.
11631 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
11632 (GOMP_taskwait): Likewise. Add comments.
11633 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
11634 problem such that the first non parent_depends_on task does not
11635 end up at the end of the children queue.
11636 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
11637 GOMP_TASK_UNDEFERRED.
11638 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
11639 * taskloop.c: New file.
11640 * testsuite/lib/libgomp.exp
11641 (check_effective_target_offload_device_nonshared_as): New proc.
11642 * testsuite/libgomp.c/affinity-2.c: New test.
11643 * testsuite/libgomp.c/doacross-1.c: New test.
11644 * testsuite/libgomp.c/doacross-2.c: New test.
11645 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
11646 Add map clause to target.
11647 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
11648 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
11649 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
11650 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
11651 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
11653 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
11654 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
11655 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
11656 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
11657 not defined. Use those where needed.
11658 * testsuite/libgomp.c/for-4.c: New test.
11659 * testsuite/libgomp.c/for-5.c: New test.
11660 * testsuite/libgomp.c/for-6.c: New test.
11661 * testsuite/libgomp.c/linear-1.c: New test.
11662 * testsuite/libgomp.c/ordered-4.c: New test.
11663 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
11664 only allowed on the loop iterator.
11665 * testsuite/libgomp.c/pr66199-3.c: New test.
11666 * testsuite/libgomp.c/pr66199-4.c: New test.
11667 * testsuite/libgomp.c/reduction-7.c: New test.
11668 * testsuite/libgomp.c/reduction-8.c: New test.
11669 * testsuite/libgomp.c/reduction-9.c: New test.
11670 * testsuite/libgomp.c/reduction-10.c: New test.
11671 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
11673 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
11674 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
11675 * testsuite/libgomp.c/target-11.c: New test.
11676 * testsuite/libgomp.c/target-12.c: New test.
11677 * testsuite/libgomp.c/target-13.c: New test.
11678 * testsuite/libgomp.c/target-14.c: New test.
11679 * testsuite/libgomp.c/target-15.c: New test.
11680 * testsuite/libgomp.c/target-16.c: New test.
11681 * testsuite/libgomp.c/target-17.c: New test.
11682 * testsuite/libgomp.c/target-18.c: New test.
11683 * testsuite/libgomp.c/target-19.c: New test.
11684 * testsuite/libgomp.c/target-20.c: New test.
11685 * testsuite/libgomp.c/target-21.c: New test.
11686 * testsuite/libgomp.c/target-22.c: New test.
11687 * testsuite/libgomp.c/target-23.c: New test.
11688 * testsuite/libgomp.c/target-24.c: New test.
11689 * testsuite/libgomp.c/target-25.c: New test.
11690 * testsuite/libgomp.c/target-26.c: New test.
11691 * testsuite/libgomp.c/target-27.c: New test.
11692 * testsuite/libgomp.c/taskloop-1.c: New test.
11693 * testsuite/libgomp.c/taskloop-2.c: New test.
11694 * testsuite/libgomp.c/taskloop-3.c: New test.
11695 * testsuite/libgomp.c/taskloop-4.c: New test.
11696 * testsuite/libgomp.c++/ctor-13.C: New test.
11697 * testsuite/libgomp.c++/doacross-1.C: New test.
11698 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
11699 Replace offload_device with offload_device_nonshared_as.
11700 * testsuite/libgomp.c++/for-12.C: New test.
11701 * testsuite/libgomp.c++/for-13.C: New test.
11702 * testsuite/libgomp.c++/for-14.C: New test.
11703 * testsuite/libgomp.c++/linear-1.C: New test.
11704 * testsuite/libgomp.c++/member-1.C: New test.
11705 * testsuite/libgomp.c++/member-2.C: New test.
11706 * testsuite/libgomp.c++/member-3.C: New test.
11707 * testsuite/libgomp.c++/member-4.C: New test.
11708 * testsuite/libgomp.c++/member-5.C: New test.
11709 * testsuite/libgomp.c++/ordered-1.C: New test.
11710 * testsuite/libgomp.c++/reduction-5.C: New test.
11711 * testsuite/libgomp.c++/reduction-6.C: New test.
11712 * testsuite/libgomp.c++/reduction-7.C: New test.
11713 * testsuite/libgomp.c++/reduction-8.C: New test.
11714 * testsuite/libgomp.c++/reduction-9.C: New test.
11715 * testsuite/libgomp.c++/reduction-10.C: New test.
11716 * testsuite/libgomp.c++/reference-1.C: New test.
11717 * testsuite/libgomp.c++/simd14.C: New test.
11718 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
11719 * testsuite/libgomp.c++/target-5.C: New test.
11720 * testsuite/libgomp.c++/target-6.C: New test.
11721 * testsuite/libgomp.c++/target-7.C: New test.
11722 * testsuite/libgomp.c++/target-8.C: New test.
11723 * testsuite/libgomp.c++/target-9.C: New test.
11724 * testsuite/libgomp.c++/target-10.C: New test.
11725 * testsuite/libgomp.c++/target-11.C: New test.
11726 * testsuite/libgomp.c++/target-12.C: New test.
11727 * testsuite/libgomp.c++/taskloop-1.C: New test.
11728 * testsuite/libgomp.c++/taskloop-2.C: New test.
11729 * testsuite/libgomp.c++/taskloop-3.C: New test.
11730 * testsuite/libgomp.c++/taskloop-4.C: New test.
11731 * testsuite/libgomp.c++/taskloop-5.C: New test.
11732 * testsuite/libgomp.c++/taskloop-6.C: New test.
11733 * testsuite/libgomp.c++/taskloop-7.C: New test.
11734 * testsuite/libgomp.c++/taskloop-8.C: New test.
11735 * testsuite/libgomp.c++/taskloop-9.C: New test.
11736 * testsuite/libgomp.fortran/affinity1.f90: New test.
11737 * testsuite/libgomp.fortran/affinity2.f90: New test.
11739 2015-10-13 Tom de Vries <tom@codesourcery.com>
11741 PR tree-optimization/67476
11742 * testsuite/libgomp.c/autopar-3.c: New test.
11743 * testsuite/libgomp.c/autopar-4.c: New test.
11744 * testsuite/libgomp.c/autopar-5.c: New test.
11745 * testsuite/libgomp.c/autopar-6.c: New test.
11746 * testsuite/libgomp.c/autopar-7.c: New test.
11747 * testsuite/libgomp.c/autopar-8.c: New test.
11749 2015-10-12 James Norris <jnorris@codesourcery.com>
11751 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
11754 2015-10-09 David Malcolm <dmalcolm@redhat.com>
11756 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
11757 using load_gcc_lib.
11759 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11761 * oacc-ptx.h: Remove file, moving its content into...
11762 * config/nvptx/fortran.c: ... here...
11763 * config/nvptx/oacc-init.c: ..., here...
11764 * config/nvptx/oacc-parallel.c: ..., and here.
11765 * config/nvptx/openacc.f90: New file.
11766 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
11767 (link_ptx): Don't link in predefined bits of PTX code.
11769 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11770 Bernd Schmidt <bernds@codesourcery.com>
11772 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
11773 (struct targ_ptx_obj): New.
11774 (nvptx_tdata): Move earlier, change data format.
11775 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
11777 (GOMP_OFFLOAD_load_image): Adjust.
11779 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11781 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
11782 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11783 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11784 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11785 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11786 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11787 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11788 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11789 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11790 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11791 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11792 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11793 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11794 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11795 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11796 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11797 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11798 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11799 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11800 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11801 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11802 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11803 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11804 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11805 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11806 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11807 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11808 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11809 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11810 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11811 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11812 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11813 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11814 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11815 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11816 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11817 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11818 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11819 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11820 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11821 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11822 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11823 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11824 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11825 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11826 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11827 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11828 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11829 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11830 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11831 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11832 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11833 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11834 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11835 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11836 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11837 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11838 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11839 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11840 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11841 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11842 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11843 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11845 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11847 * oacc-init.c (acc_on_device): Force optimization level.
11849 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11851 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
11852 (cuda_errlist): Delete.
11853 (cuda_error): Reimplement.
11855 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11857 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
11859 * libgomp.map (GOACC_parallel_keyed): New.
11860 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
11862 (GOACC_parallel_keyed): New interface. Lose geometry arguments
11863 and take keyed varargs list. Adjust call to exec_func.
11864 (GOACC_parallel): Force host fallback.
11865 * libgomp_g.h (GOACC_parallel): Remove.
11866 (GOACC_parallel_keyed): Declare.
11867 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
11868 (struct targ_gn_descriptor): Replace name field with launch field.
11869 (nvptx_exec): Lose separate geometry args, take array. Process
11870 dynamic dimensions and adjust.
11871 (struct nvptx_tdata): Replace fn_names field with fn_descs.
11872 (GOMP_OFFLOAD_load_image): Adjust for change in function table
11874 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
11876 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
11879 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11882 * oacc-int.h (goacc_host_init): Add declaration.
11883 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
11884 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
11886 2015-09-08 Aditya Kumar <hiraditya@msn.com>
11887 Sebastian Pop <s.pop@samsung.com>
11889 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
11891 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
11892 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
11893 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
11894 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
11895 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
11897 2015-09-03 Jakub Jelinek <jakub@redhat.com>
11899 * configure.tgt: Add missing ;; in between nvptx and rtems
11902 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11904 * config/posix/pool.h (gomp_adjust_thread_attr): New.
11905 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
11906 (gomp_thread_pool_reservoir): Add priority member.
11907 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
11909 (parse_thread_pools): Likewise.
11910 * team.c (gomp_team_start): Call configuration provided
11911 gomp_adjust_thread_attr(). Destroy thread attributes if
11913 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
11915 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11917 * config/posix/pool.h: New.
11918 * config/rtems/pool.h: Likewise.
11919 * config/rtems/proc.c: Likewise.
11920 * libgomp.h (gomp_thread_destructor): Declare.
11921 * team.c: Include configuration provided "pool.h".
11922 (gomp_get_thread_pool): Define in configuration.
11923 (gomp_team_end): Call configuration defined
11924 gomp_release_thread_pool().
11926 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11928 * config/rtems/bar.c: New.
11929 * config/rtems/bar.h: Likewise.
11930 * config/rtems/mutex.c: Likewise.
11931 * config/rtems/mutex.h: Likewise.
11932 * config/rtems/sem.c: Likewise.
11933 * config/rtems/sem.h: Likewise.
11934 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
11935 <sys/lock.h> header file.
11936 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
11937 supported by Newlib.
11938 * configure: Regenerate.
11940 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11942 * team.c (gomp_new_thread_pool): Delete and move content to ...
11943 (gomp_get_thread_pool): ... new function. Allocate and
11944 initialize thread pool on demand.
11945 (get_last_team): Use gomp_get_thread_pool().
11946 (gomp_team_start): Delete thread pool initialization.
11948 2015-09-03 Tom de Vries <tom@codesourcery.com>
11950 PR tree-optimization/65637
11951 * testsuite/libgomp.c/autopar-2.c: New test.
11953 2015-08-29 Tom de Vries <tom@codesourcery.com>
11955 PR tree-optimization/46193
11956 * testsuite/libgomp.c/pr46193.c: New test.
11958 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
11961 * libgomp.map: Add 4.0.2 version.
11962 * target.c (offload_image_descr): Add version field.
11963 (gomp_load_image_to_device): Add version argument. Adjust plugin
11964 call. Improve load mismatch diagnostic.
11965 (gomp_unload_image_from_device): Add version argument. Adjust plugin
11967 (GOMP_offload_regster): Make stub function, move bulk to ...
11968 (GOMP_offload_register_ver): ... here. Process version argument.
11969 (GOMP_offload_unregister): Make stub function, move bulk to ...
11970 (GOMP_offload_unregister_ver): ... here. Process version argument.
11971 (gomp_init_device): Process version field.
11972 (gomp_unload_device): Process version field.
11973 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
11974 macros. Check plugin version.
11975 * libgomp.h (gomp_device_descr): Add version function field. Adjust
11976 loader and unloader types.
11977 * oacc-host.c: Include gomp-constants.h.
11978 (host_version): New.
11979 (host_load_image, host_unload_image): Adjust.
11980 (host_dispatch): Add host_version.
11981 * plugin/plugin-nvptx.c: Include gomp-constants.h.
11982 (GOMP_OFFLOAD_version): New.
11983 (GOMP_OFFLOAD_load_image): Add version arg and check it.
11984 (GOMP_OFFLOAD_unload_image): Likewise.
11985 * plugin/plugin-host.c: Include gomp-constants.h.
11986 (GOMP_OFFLOAD_version): New.
11987 (GOMP_OFFLOAD_load_image): Add version arg.
11988 (GOMP_OFFLOAD_unload_image): Likewise.
11990 2015-08-24 Tom de Vries <tom@codesourcery.com>
11992 PR tree-optimization/65468
11993 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
11995 2015-08-24 Tom de Vries <tom@codesourcery.com>
11997 PR tree-optimization/65468
11998 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
12000 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
12004 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
12005 (gomp_iter_guided_next): Idem.
12006 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
12007 (gomp_iter_ull_guided_next): Idem.
12008 * config/linux/wait.h (do_spin): Idem.
12010 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12012 * libgomp-plugin.h (enum offload_target_type): Remove
12013 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
12014 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
12015 * openacc.h (enum acc_device_t): Likewise.
12016 * openacc_lib.h: Likewise.
12017 * oacc-init.c (name_of_acc_device_t): Don't handle it.
12018 (acc_on_device): Just use __builtin_acc_on_device.
12019 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
12020 of acc_on_device builtin.
12021 * plugin/plugin-host.h: Remove file.
12022 * plugin/plugin-host.c: Likewise, but salvage some content into...
12023 * oacc-host.c: ... this file.
12024 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
12025 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
12026 * Makefile.in: Regenerate.
12027 * configure: Likewise.
12028 * testsuite/lib/libgomp.exp
12029 (check_effective_target_openacc_host_nonshm_selected): Remove.
12030 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
12031 ACC_DEVICE_TYPE=host_nonshm.
12032 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12033 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12034 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
12035 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12036 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12037 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12039 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12040 Jakub Jelinek <jakub@redhat.com>
12042 * config/nvptx/affinity.c: New file.
12043 * config/nvptx/alloc.c: Likewise.
12044 * config/nvptx/bar.c: Likewise.
12045 * config/nvptx/barrier.c: Likewise.
12046 * config/nvptx/critical.c: Likewise.
12047 * config/nvptx/env.c: Likewise.
12048 * config/nvptx/error.c: Likewise.
12049 * config/nvptx/fortran.c: Likewise.
12050 * config/nvptx/iter.c: Likewise.
12051 * config/nvptx/iter_ull.c: Likewise.
12052 * config/nvptx/libgomp-plugin.c: Likewise.
12053 * config/nvptx/lock.c: Likewise.
12054 * config/nvptx/loop.c: Likewise.
12055 * config/nvptx/loop_ull.c: Likewise.
12056 * config/nvptx/mutex.c: Likewise.
12057 * config/nvptx/oacc-async.c: Likewise.
12058 * config/nvptx/oacc-cuda.c: Likewise.
12059 * config/nvptx/oacc-host.c: Likewise.
12060 * config/nvptx/oacc-init.c: Likewise.
12061 * config/nvptx/oacc-mem.c: Likewise.
12062 * config/nvptx/oacc-parallel.c: Likewise.
12063 * config/nvptx/oacc-plugin.c: Likewise.
12064 * config/nvptx/omp-lock.h: Likewise.
12065 * config/nvptx/ordered.c: Likewise.
12066 * config/nvptx/parallel.c: Likewise.
12067 * config/nvptx/proc.c: Likewise.
12068 * config/nvptx/ptrlock.c: Likewise.
12069 * config/nvptx/sections.c: Likewise.
12070 * config/nvptx/sem.c: Likewise.
12071 * config/nvptx/single.c: Likewise.
12072 * config/nvptx/splay-tree.c: Likewise.
12073 * config/nvptx/target.c: Likewise.
12074 * config/nvptx/task.c: Likewise.
12075 * config/nvptx/team.c: Likewise.
12076 * config/nvptx/time.c: Likewise.
12077 * config/nvptx/work.c: Likewise.
12078 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
12079 * configure: Regenerate.
12080 * configure.tgt (config_path): Set to "nvptx" for target
12083 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12085 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
12087 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
12089 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
12090 (cuda_errlist): Constify.
12091 (errmsg): Move into ...
12092 (cuda_error): ... here. Make smaller.
12093 (_XSTR, _STR): Delete.
12094 (cuda_synames): Delete.
12095 (verify_device_library): Delete.
12096 (nvptx_init): Don't call it.
12098 2015-07-28 Tom de Vries <tom@codesourcery.com>
12100 * testsuite/libgomp.c/uns-outer-4.c: New test.
12102 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12104 * testsuite/libgomp.c/pr66714.c: New test.
12106 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
12109 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
12110 (fib_ref): New function.
12111 (fib): Correct corner cases in the recursion.
12112 (main): Replace the non-simd loop with fib_ref call.
12113 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
12115 (fibonacci): Lower the parameter N to 30. Correct accordingly check
12116 for the last array element value. Replace the non-simd loop with
12117 fib_ref call. Remove redundant b_ref array. Remove the comparison
12118 of the last array element with according Fibonacci sequence element.
12119 (fib): Correct corner cases in the recursion.
12121 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12123 * target.c (gomp_offload_image_to_device): Rename to ...
12124 (gomp_load_image_to_device): ... here.
12125 (GOMP_offload_register): Adjust call.
12126 (gomp_init_device): Likewise.
12127 (gomp_unload_image_from_device): New. Broken out of ...
12128 (GOMP_offload_unregister): ... here. Call it.
12129 (gomp_unload_device): New.
12130 * libgomp.h (gomp_unload_device): Declare.
12131 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
12134 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
12136 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
12138 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
12140 (goacc_waits): Move !num_waits handling to ...
12141 (GOACC_wait): ... here, the only caller that might have zero waits.
12143 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
12144 (struct ptx_image_data): Move earlier, add fns field.
12145 (struct ptx_device): Add images and image_lock fields.
12146 (ptx_images, ptx_image_lock): Delete.
12147 (nvptx_open_device): Initialize images and image_lock fields.
12148 (nvptx_close_device): Destroy image_lock.
12149 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
12150 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
12153 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12155 * target.c (GOMP_offload_register): Use int for device type arg.
12156 (GOMP_offload_unregister): Likewise.
12158 * target.c (struct_offload_image_descr): Constify host_table.
12159 (gomp_offload_image_to_device): Likewise.
12160 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
12162 * libgomp.h (gomp_device_descr): Constify target data arguments.
12163 * target.c (struct offload_image_descr): Constify target_data.
12164 (gomp_offload_image_to_device): Likewise.
12165 (GOMP_offload_register): Likewise.
12166 (GOMP_offload_unregister): Likewise.
12167 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
12168 GOMP_OFFLOAD_unload_image): Constify target data.
12169 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
12170 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
12172 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12174 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
12175 Workaround driver library const error.
12176 (struct nvptx_tdata, nvptx_tdata_t): New.
12177 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
12180 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
12182 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
12183 of EPS parameter from integer to real.
12184 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
12185 type of EPS parameter from integer to real.
12187 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
12189 * team.c (get_last_team): New.
12190 (gomp_new_team): Recycle last non-nested team if possible.
12191 (gomp_team_end): Move team work share list free lock destruction
12193 (free_team): ... here.
12195 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
12197 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
12198 and ref from int to double. Replaced their comparison with
12199 an inequality of their difference and EPS.
12200 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
12201 comparison of pri and a reference number with an inequality of their
12202 difference and EPS.
12203 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
12204 the comparison of sum and sum_ref with an inequality of their
12205 difference and EPS.
12206 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
12207 the comparison of pri and a reference number with an inequality of
12208 their difference and EPS.
12210 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
12212 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
12213 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
12214 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
12215 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
12216 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
12217 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
12218 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
12219 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
12220 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
12221 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
12222 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
12223 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
12224 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
12226 (vec_mult): Likewise. Add #pragma omp taskwait.
12227 (main): Adjust caller.
12228 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
12229 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
12230 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
12231 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
12232 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
12233 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
12234 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
12235 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
12236 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
12237 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
12238 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
12239 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
12240 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
12241 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
12242 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
12243 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
12244 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
12245 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
12246 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
12247 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
12248 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
12249 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
12250 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
12251 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
12252 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
12253 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
12254 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
12255 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
12256 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
12257 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
12258 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
12259 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
12260 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
12261 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
12262 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
12263 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
12264 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
12265 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
12266 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
12267 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
12268 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
12269 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
12270 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
12271 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
12272 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
12273 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
12274 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
12275 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
12276 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
12277 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
12278 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
12279 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
12280 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
12281 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
12282 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
12283 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
12284 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
12285 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
12286 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
12287 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
12288 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
12289 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
12290 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
12291 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
12292 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
12293 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
12294 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
12295 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
12296 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
12297 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
12298 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
12299 (vec_mult): Add !$omp taskwait.
12300 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
12301 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
12302 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
12303 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
12304 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
12305 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
12306 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
12307 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
12308 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
12309 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
12310 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
12311 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
12312 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
12313 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
12314 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
12315 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
12316 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
12317 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
12318 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
12319 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
12320 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
12321 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
12322 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
12323 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
12324 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
12325 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
12326 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
12327 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
12328 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
12329 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
12330 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
12331 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
12332 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
12333 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
12334 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
12335 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
12336 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
12337 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
12338 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
12339 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
12340 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
12341 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
12342 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
12343 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
12344 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
12345 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
12346 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
12347 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
12348 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
12349 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
12350 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
12351 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
12352 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
12353 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
12354 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
12355 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
12356 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
12357 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
12358 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
12359 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
12360 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
12361 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
12362 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
12363 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
12364 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
12365 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
12366 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
12368 2015-07-10 Tom de Vries <tom@codesourcery.com>
12370 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
12371 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
12373 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
12376 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
12377 in a 64-bit configuration.
12378 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
12379 offloading testing if no such device is available.
12380 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12381 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12383 2015-07-08 Tom de Vries <tom@codesourcery.com>
12385 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
12387 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12389 2015-07-07 Tom de Vries <tom@codesourcery.com>
12391 PR tree-optimization/66642
12392 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
12393 iteration count case.
12394 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
12395 function, factor out of ...
12396 (main): ... here. Test low iteration count case.
12398 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
12400 * libgomp.h (gomp_thread_pool): Comment last_team field.
12402 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
12404 * testsuite/libgomp.c++/pr66702-1.C: Require
12405 vect_simd_clones effective target.
12406 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
12408 2015-06-30 Tom de Vries <tom@codesourcery.com>
12410 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12411 already set. Use DEFAULT_CFLAGS in dg-runtest.
12412 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
12415 2015-06-30 Tom de Vries <tom@codesourcery.com>
12417 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12418 already set. Use DEFAULT_CFLAGS in dg-runtest.
12419 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
12420 * testsuite/libgomp.c++/pr64824.C: Same.
12421 * testsuite/libgomp.c++/pr64868.C: Same.
12422 * testsuite/libgomp.c++/pr66199-1.C: Same.
12423 * testsuite/libgomp.c++/pr66199-2.C: Same.
12424 * testsuite/libgomp.c++/target-2.C: Same.
12425 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
12426 -std=<standard> option.
12427 * testsuite/libgomp.c++/udr-11.C: Same.
12428 * testsuite/libgomp.c++/udr-12.C: Same.
12429 * testsuite/libgomp.c++/udr-13.C: Same.
12430 * testsuite/libgomp.c++/udr-14.C: Same.
12431 * testsuite/libgomp.c++/udr-15.C: Same.
12432 * testsuite/libgomp.c++/udr-16.C: Same.
12433 * testsuite/libgomp.c++/udr-17.C: Same.
12434 * testsuite/libgomp.c++/udr-18.C: Same.
12435 * testsuite/libgomp.c++/udr-19.C: Same.
12436 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
12437 * testsuite/libgomp.c++/simd-1.C: Same.
12438 * testsuite/libgomp.c++/simd-2.C: Same.
12439 * testsuite/libgomp.c++/simd-3.C: Same.
12440 * testsuite/libgomp.c++/simd-4.C: Same.
12441 * testsuite/libgomp.c++/simd-5.C: Same.
12442 * testsuite/libgomp.c++/simd-6.C: Same.
12443 * testsuite/libgomp.c++/simd-7.C: Same.
12444 * testsuite/libgomp.c++/simd-8.C: Same.
12445 * testsuite/libgomp.c++/simd-9.C: Same.
12446 * testsuite/libgomp.c++/simd10.C: Same.
12447 * testsuite/libgomp.c++/simd11.C: Same.
12448 * testsuite/libgomp.c++/simd12.C: Same.
12449 * testsuite/libgomp.c++/simd13.C: Same.
12451 2015-06-30 Jakub Jelinek <jakub@redhat.com>
12453 PR middle-end/66702
12454 * testsuite/libgomp.c++/pr66702-1.C: New test.
12455 * testsuite/libgomp.c++/pr66702-2.C: New test.
12457 2015-06-30 Tom de Vries <tom@codesourcery.com>
12459 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
12460 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
12461 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
12462 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
12464 2015-06-30 Tom de Vries <tom@codesourcery.com>
12466 PR tree-optimization/66652
12467 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
12468 using restrict pointers.
12469 (main): Add arguments to calls to f.
12470 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12472 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
12474 * configure.ac: Fix check for header <sys/sysctl.h>.
12475 * configure: Regenerate.
12476 * config.h.in: Likewise.
12478 2015-06-23 Tom de Vries <tom@codesourcery.com>
12480 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
12482 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
12484 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
12486 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
12490 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
12491 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12493 2015-06-15 Tom de Vries <tom@codesourcery.com>
12495 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
12496 dg-additional-options for any remaining options.
12497 * testsuite/libgomp.c/atomic-2.c: Same.
12498 * testsuite/libgomp.c/atomic-4.c: Same.
12499 * testsuite/libgomp.c/atomic-5.c: Same.
12500 * testsuite/libgomp.c/atomic-6.c: Same.
12501 * testsuite/libgomp.c/autopar-1.c: Same.
12502 * testsuite/libgomp.c/copyin-1.c: Same.
12503 * testsuite/libgomp.c/copyin-2.c: Same.
12504 * testsuite/libgomp.c/copyin-3.c: Same.
12505 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
12506 * testsuite/libgomp.c/nestedfn-5.c: Same.
12507 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
12508 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
12509 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
12510 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12511 * testsuite/libgomp.c/pr32362-1.c: Same.
12512 * testsuite/libgomp.c/pr32362-2.c: Same.
12513 * testsuite/libgomp.c/pr32362-3.c: Same.
12514 * testsuite/libgomp.c/pr39591-1.c: Same.
12515 * testsuite/libgomp.c/pr39591-2.c: Same.
12516 * testsuite/libgomp.c/pr39591-3.c: Same.
12517 * testsuite/libgomp.c/pr58392.c: Same.
12518 * testsuite/libgomp.c/pr58756.c: Same.
12519 * testsuite/libgomp.c/simd-1.c: Same.
12520 * testsuite/libgomp.c/simd-10.c: Same.
12521 * testsuite/libgomp.c/simd-11.c: Same.
12522 * testsuite/libgomp.c/simd-12.c: Same.
12523 * testsuite/libgomp.c/simd-13.c: Same.
12524 * testsuite/libgomp.c/simd-14.c: Same.
12525 * testsuite/libgomp.c/simd-15.c: Same.
12526 * testsuite/libgomp.c/simd-2.c: Same.
12527 * testsuite/libgomp.c/simd-3.c: Same.
12528 * testsuite/libgomp.c/simd-4.c: Same.
12529 * testsuite/libgomp.c/simd-5.c: Same.
12530 * testsuite/libgomp.c/simd-6.c: Same.
12531 * testsuite/libgomp.c/simd-7.c: Same.
12532 * testsuite/libgomp.c/simd-8.c: Same.
12533 * testsuite/libgomp.c/simd-9.c: Same.
12535 2015-06-15 Tom de Vries <tom@codesourcery.com>
12537 * testsuite/libgomp.c/pr35625.c: Fix typo.
12539 2015-06-15 Tom de Vries <tom@codesourcery.com>
12541 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
12543 * testsuite/libgomp.c/atomic-3.c: Same.
12544 * testsuite/libgomp.c/debug-1.c: Same.
12545 * testsuite/libgomp.c/nqueens-1.c: Same.
12546 * testsuite/libgomp.c/pr26171.c: Same.
12547 * testsuite/libgomp.c/pr48591.c: Same.
12548 * testsuite/libgomp.c/pr64824.c: Same.
12549 * testsuite/libgomp.c/pr64868.c: Same.
12550 * testsuite/libgomp.c/pr66133.c: Same.
12551 * testsuite/libgomp.c/pr66199-1.c: Same.
12552 * testsuite/libgomp.c/pr66199-2.c: Same.
12553 * testsuite/libgomp.c/target-8.c: Same.
12555 2015-06-15 Tom de Vries <tom@codesourcery.com>
12557 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
12559 * testsuite/libgomp.c/for-1.c: Same.
12560 * testsuite/libgomp.c/for-2.c: Same.
12561 * testsuite/libgomp.c/for-3.c: Same.
12562 * testsuite/libgomp.c/pr35625.c: Same.
12563 * testsuite/libgomp.c/pr39154.c: Same.
12564 * testsuite/libgomp.c/simd-16.c: Same.
12565 * testsuite/libgomp.c/simd-17.c: Same.
12567 2015-06-13 Tom de Vries <tom@codesourcery.com>
12569 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
12571 2015-06-13 Tom de Vries <tom@codesourcery.com>
12573 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
12574 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12575 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
12577 (main): Use N instead of hardcoded constants.
12579 2015-06-05 Tom de Vries <tom@codesourcery.com>
12581 merge from gomp4 branch:
12582 2015-05-28 Tom de Vries <tom@codesourcery.com>
12584 PR tree-optimization/65443
12585 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
12586 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
12587 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
12589 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12591 * testsuite/libgomp.graphite/bounds.c: Adjust for
12592 cleanup-tree-dump removal.
12593 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
12594 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12595 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12596 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12597 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12598 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12599 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12600 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12601 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12602 * testsuite/libgomp.graphite/pr41118.c: Likewise.
12604 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
12606 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
12607 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
12608 (futex_wake) [!__x86_64__]: Ditto.
12610 2015-05-28 Julian Brown <julian@codesourcery.com>
12612 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
12613 function comment. Only call gomp_fatal if new argument is true.
12614 (acc_dev_num_out_of_range): New function.
12615 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
12616 acc_dev_num_out_of_range as appropriate.
12617 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12618 (acc_get_device_num, acc_set_device_num): Update calls to
12620 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
12623 2015-05-28 Julian Brown <julian@codesourcery.com>
12626 * oacc-init.c (plugin/plugin-host.h): Include.
12627 (acc_on_device): Check whether we're in an offloaded region for
12629 plugin. Don't use __builtin_acc_on_device.
12630 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
12631 nonshm_exec flag in thread-local data.
12632 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
12633 data for host_nonshm plugin.
12634 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
12635 for host_nonshm plugin.
12636 * plugin/plugin-host.h: New.
12638 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12640 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
12642 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12644 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
12646 (FUTEX_PRIVATE_FLAG): Remove L suffix.
12647 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
12650 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12652 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
12654 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
12656 * target.c (gomp_map_pointer): New function abstracting out
12657 GOMP_MAP_POINTER handling.
12658 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
12659 gomp_map_pointer().
12661 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12663 PR middle-end/66199
12664 * testsuite/libgomp.c/pr66199-1.c: New test.
12665 * testsuite/libgomp.c/pr66199-2.c: New test.
12666 * testsuite/libgomp.c++/pr66199-1.C: New test.
12667 * testsuite/libgomp.c++/pr66199-2.C: New test.
12668 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
12669 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
12671 2015-05-19 Julian Brown <julian@codesourcery.com>
12673 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
12676 2015-05-13 Jakub Jelinek <jakub@redhat.com>
12678 PR middle-end/66133
12679 * testsuite/libgomp.c/pr66133.c: New test.
12681 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12683 * Makefile.in: Regenerated with automake-1.11.6.
12684 * aclocal.m4: Likewise.
12685 * config.h.in: Likewise.
12686 * configure: Likewise.
12687 * testsuite/Makefile.in: Likewise.
12689 2015-05-08 Jason Merrill <jason@redhat.com>
12691 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
12694 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
12696 2015-05-06 Julian Brown <julian@codesourcery.com>
12698 * oacc-init.c (acc_device_lock): Add explanatory comment.
12699 (resolve_device): Add comment about locking requirement.
12700 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
12701 gomp_init_device and gomp_fini_device calls.
12702 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12703 (acc_get_device_num, acc_set_device_num): Add locking around
12704 resolve_device and gomp_init_device calls.
12706 2015-05-06 Julian Brown <julian@codesourcery.com>
12708 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
12709 goacc_thread_lock on error paths.
12710 * oacc-mem.c (lookup_host): Remove locking from function. Note
12711 locking requirement for caller in function comment.
12712 (lookup_dev): Likewise.
12713 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
12714 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
12715 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
12718 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
12722 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
12723 don't expect "0x" prefix for "%p" format specifier, don't expect
12724 "(nil)" for NULL pointer.
12725 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12726 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12727 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12728 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12729 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12730 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12731 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12732 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12733 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12734 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12735 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12736 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12737 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12738 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12739 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12740 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12741 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12742 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12743 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12744 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12745 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12746 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12747 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12748 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12749 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12750 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12751 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12752 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12753 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
12754 accurately specify what we're looking for.
12755 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12756 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12757 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
12758 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12759 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12761 2015-04-30 James Norris <jnorris@codesourcery.com>
12764 * testsuite/lib/libgomp.exp
12765 (check_effective_target_openacc_host_selected)
12766 (check_effective_target_openacc_host_nonshm_selected): New
12768 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
12770 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
12771 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12772 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12773 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12774 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12775 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12776 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12777 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12778 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12779 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12780 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12781 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12782 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12783 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12784 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12785 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
12786 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12787 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12788 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12789 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12790 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12791 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
12792 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12793 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12794 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12795 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12796 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12797 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12798 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12799 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12800 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12801 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12802 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12803 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
12804 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
12805 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
12806 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
12807 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
12808 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
12809 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
12810 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
12811 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
12812 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
12814 2015-04-08 Julian Brown <julian@codesourcery.com>
12816 * libgomp.h (target_mem_desc: Remove mem_map field.
12817 (acc_dispatch_t): Remove open_device_func, close_device_func,
12818 get_device_num_func, set_device_num_func, target_data members.
12819 Change create_thread_data_func argument to device number instead of
12821 * oacc-async.c (assert.h): Include.
12822 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
12823 (acc_wait_all, acc_wait_all_async): Use current host thread's
12824 active device, not base_dev.
12825 * oacc-cuda.c (acc_get_current_cuda_device)
12826 (acc_get_current_cuda_context, acc_get_cuda_stream)
12827 (acc_set_cuda_stream): Likewise.
12828 * oacc-host.c (host_dispatch): Don't set open_device_func,
12829 close_device_func, get_device_num_func or set_device_num_func.
12830 * oacc-init.c (base_dev, init_key): Remove.
12831 (cached_base_dev): New.
12832 (name_of_acc_device_t): New.
12833 (acc_init_1): Initialise default-numbered device, not zeroth.
12834 (acc_shutdown_1): Close all devices of a given type.
12835 (goacc_destroy_thread): Don't use base_dev.
12836 (lazy_open, lazy_init, lazy_init_and_open): Remove.
12837 (goacc_attach_host_thread_to_device): New.
12838 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
12839 (acc_get_num_devices): Don't use base_dev.
12840 (acc_set_device_type): Reimplement.
12841 (acc_get_device_type): Don't use base_dev.
12842 (acc_get_device_num): Tweak logic.
12843 (acc_set_device_num): Likewise.
12844 (acc_on_device): Use acc_get_device_type.
12845 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
12846 (goacc_lazy_initialize): Reimplement with acc_init and
12847 goacc_attach_host_thread_to_device.
12848 * oacc-int.h (goacc_thread): Add base_dev field.
12849 (base_dev): Remove extern declaration.
12850 (goacc_attach_host_thread_to_device): Add prototype.
12851 * oacc-mem.c (acc_malloc): Use current thread's device instead of
12853 (acc_free): Likewise.
12854 (acc_memcpy_to_device): Likewise.
12855 (acc_memcpy_from_device): Likewise.
12856 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
12857 goacc_lazy_initialize (throughout).
12858 (GOACC_parallel): Use tgt_offset to locate target functions.
12859 * target.c (gomp_map_vars): Don't set tgt->mem_map.
12860 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
12861 (gomp_load_plugin_for_device): Remove open_device, close_device,
12862 get_device_num, set_device_num openacc hook initialisation. Don't set
12863 openacc.target_data.
12864 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
12865 (GOMP_OFFLOAD_openacc_close_device)
12866 (GOMP_OFFLOAD_openacc_get_device_num)
12867 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
12868 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
12870 * plugin/plugin-nvptx.c (ptx_inited): Remove.
12871 (instantiated_devices, ptx_dev_lock): New.
12872 (struct ptx_image_data): New.
12873 (ptx_devices, ptx_images, ptx_image_lock): New.
12874 (fini_streams_for_device): Reorder cuStreamDestroy call.
12875 (nvptx_get_num_devices): Remove forward declaration.
12876 (nvptx_init): Change return type to bool.
12877 (nvptx_fini): Remove.
12878 (nvptx_attach_host_thread_to_device): New.
12879 (nvptx_open_device): Return struct ptx_device* instead of void*.
12880 (nvptx_close_device): Change argument type to struct ptx_device*,
12881 return type to void.
12882 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
12883 (kernel_target_data, kernel_host_table): Remove static globals.
12884 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
12885 (GOMP_OFFLOAD_init_device): Reimplement.
12886 (GOMP_OFFLOAD_fini_device): Likewise.
12887 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
12888 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
12889 (GOMP_OFFLOAD_host2dev): Use ORD argument.
12890 (GOMP_OFFLOAD_openacc_open_device)
12891 (GOMP_OFFLOAD_openacc_close_device)
12892 (GOMP_OFFLOAD_openacc_set_device_num)
12893 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
12894 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
12898 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
12900 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
12902 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
12903 * libgomp.h (struct gomp_memory_mapping): Remove.
12904 (struct target_mem_desc): Change type of mem_map from
12905 gomp_memory_mapping * to splay_tree_s *.
12906 (struct gomp_device_descr): Remove register_image_func, get_table_func.
12907 Add load_image_func, unload_image_func.
12908 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
12909 Remove offload_regions_registered.
12910 (gomp_init_tables): Remove.
12911 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
12913 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
12914 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
12915 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
12916 offload_regions_registered.
12917 Initialize load_image_func, unload_image_func, mem_map.root.
12918 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
12919 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
12920 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
12921 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
12922 gomp_memory_mapping *. Use dev's lock and splay_tree.
12923 (lookup_dev): Use dev's lock.
12924 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
12925 (acc_is_present): Likewise.
12926 (acc_map_data): Likewise.
12927 (acc_unmap_data): Likewise. Use dev's lock.
12928 (present_create_copy): Likewise.
12929 (delete_copyout): Pass dev to lookup_host instead of mem_map.
12930 (update_dev_host): Likewise.
12931 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
12932 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
12933 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
12934 (GOMP_OFFLOAD_get_table): Remove
12935 (GOMP_OFFLOAD_load_image): New function.
12936 (GOMP_OFFLOAD_unload_image): New function.
12937 * target.c (register_lock): New mutex for offload image registration.
12938 (num_devices): Do not guard with PLUGIN_SUPPORT.
12939 (gomp_realloc_unlock): New static function.
12940 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
12942 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
12943 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
12944 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
12946 (gomp_unmap_vars): Likewise.
12947 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
12948 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
12949 (gomp_offload_image_to_device): New static function.
12950 (GOMP_offload_register): Add mutex lock.
12951 Call gomp_offload_image_to_device for all initialized devices.
12952 Replace gomp_realloc with gomp_realloc_unlock.
12953 (GOMP_offload_unregister): New function.
12954 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
12955 get_table_func from the plugin with calls to init_device_func and
12956 gomp_offload_image_to_device.
12957 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
12959 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
12960 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
12961 (GOMP_target_data): Do not call gomp_init_tables.
12962 (GOMP_target_update): Likewise. Remove argument from gomp_update.
12963 (gomp_load_plugin_for_device): Replace register_image and get_table
12964 with load_image and unload_image in DLSYM ().
12965 (gomp_register_images_for_device): Remove function.
12966 (gomp_target_init): Do not initialize current_device.mem_map.*,
12967 current_device.offload_regions_registered.
12968 Remove call to gomp_register_images_for_device.
12969 Do not free offload_images and num_offload_images.
12971 2015-03-30 Jakub Jelinek <jakub@redhat.com>
12974 * testsuite/libgomp.fortran/pr65597.f90: New test.
12976 2015-03-27 Tom de Vries <tom@codesourcery.com>
12979 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
12980 (init, check): New function.
12981 (foo): Change return type to void.
12982 (main): Call init and check.
12984 2015-03-27 Tom de Vries <tom@codesourcery.com>
12987 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
12988 (foo): Use M for non-inner loops to scale down test-case.
12990 2015-03-25 Kai Tietz <ktietz@redhat.com>
12993 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
12994 (GOACC_data_start): Likewise.
12995 * target.c (gomp_map_vars): Likewise.
12997 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
12999 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
13002 2015-03-19 Jakub Jelinek <jakub@redhat.com>
13004 * testsuite/libgomp.c/target-10.c: New test.
13005 * testsuite/libgomp.c++/target-4.C: New test.
13007 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
13009 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
13010 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
13012 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
13014 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
13015 * configure.ac (*-*-rtems*): Assume Pthread is supported.
13016 (pthread.h): Check for this header file.
13017 * configure: Regenerate.
13019 2015-02-25 Tom de Vries <tom@codesourcery.com>
13021 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
13022 (check_reduction_op, check_reduction_macro, max, min):
13024 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
13026 (main): Use new functions.
13028 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
13030 * target.c (gomp_load_plugin_for_device): Use const char * instead of
13031 char * for variables holding dlerror return values.
13032 (DLSYM_OPT): Ditto.
13034 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13036 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
13038 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13039 Cesar Philippidis <cesar@codesourcery.com>
13041 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
13042 GOACC_ctaid, and GOACC_nctaid routines.
13044 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13047 * testsuite/libgomp.c/atomic-18.c: New test.
13048 * testsuite/libgomp.c++/atomic-16.C: New test.
13050 2015-02-04 Jakub Jelinek <jakub@redhat.com>
13054 * testsuite/libgomp.c/pr64824.c: New test.
13055 * testsuite/libgomp.c/pr64868.c: New test.
13056 * testsuite/libgomp.c++/pr64824.C: New test.
13057 * testsuite/libgomp.c++/pr64868.C: New test.
13059 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
13062 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
13063 Link with -lpthread.
13064 * config/aix/plugin-suffix.h: Delete.
13066 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
13069 * configure.tgt (*-*-aix*): Use config_path "aix posix".
13070 (*-*-darwin*): Use config_path "bsd darwin posix".
13071 (*-*-hpux*): Use config_path "hpux posix".
13072 * target.c: Add include of plugin-suffix.h and use
13073 SONAME_SUFFIX macro.
13074 * config/aix/plugin-suffix.h: New file.
13075 * config/darwin/plugin-suffix.h: New file.
13076 * config/hpux/plugin-suffix.h: New file.
13077 * config/posix/plugin-suffix.h: New file.
13079 2015-01-23 Jakub Jelinek <jakub@redhat.com>
13081 PR middle-end/64734
13082 * libgomp.c/pr64734.c: New test.
13084 2015-01-23 Tom de Vries <tom@codesourcery.com>
13087 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
13089 2015-01-23 Tom de Vries <tom@codesourcery.com>
13092 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
13095 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
13098 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
13099 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
13100 formal parameter. Update all users.
13101 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
13102 Document unused formal parameter.
13104 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
13106 * oacc-parallel.c: Don't include <alloca.h>.
13107 (GOACC_parallel): Use gomp_alloca instead of alloca.
13109 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
13111 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
13113 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
13114 James Norris <jnorris@codesourcery.com>
13115 Tom de Vries <tom@codesourcery.com>
13116 Julian Brown <julian@codesourcery.com>
13117 Cesar Philippidis <cesar@codesourcery.com>
13118 Nathan Sidwell <nathan@codesourcery.com>
13119 Tobias Burnus <burnus@net-b.de>
13121 * Makefile.am (search_path): Add $(top_srcdir)/../include.
13122 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
13123 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
13124 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
13125 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
13126 Include $(top_srcdir)/plugin/Makefrag.am.
13127 (nodist_libsubinclude_HEADERS): Add openacc.h.
13128 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
13129 openacc.f90, openacc.mod, openacc_kinds.mod.
13130 (omp_lib.mod): Generalize into...
13131 (%.mod): ... this new rule.
13132 (openacc_kinds.mod, openacc.mod): New rules.
13133 * plugin/configfrag.ac: New file.
13134 * configure.ac: Move plugin/offloading support into it. Include
13135 it. Instantiate testsuite/libgomp-test-support.pt.exp.
13136 * plugin/Makefrag.am: New file.
13137 * testsuite/Makefile.am (OFFLOAD_TARGETS)
13138 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
13140 (libgomp-test-support.exp): New rule.
13141 (all-local): Depend on it.
13142 * Makefile.in: Regenerate.
13143 * testsuite/Makefile.in: Regenerate.
13144 * config.h.in: Likewise.
13145 * configure: Likewise.
13146 * configure.tgt: Harden shell syntax.
13147 * env.c: Include "oacc-int.h".
13148 (parse_acc_device_type): New function.
13149 (gomp_debug_var, goacc_device_type, goacc_device_num): New
13151 (initialize_env): Initialize those. Call
13152 goacc_runtime_initialize.
13153 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
13154 (gomp_fatal): Call gomp_vfatal.
13155 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
13156 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
13157 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
13158 (splay_tree_node, splay_tree, splay_tree_key)
13159 (struct target_mem_desc, struct splay_tree_key_s)
13160 (struct gomp_memory_mapping, struct acc_dispatch_t)
13161 (struct gomp_device_descr, gomp_acc_insert_pointer)
13162 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
13163 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
13164 (gomp_free_memmap, gomp_fini_device): New declarations.
13165 (gomp_vdebug, gomp_debug): New macros.
13166 Include "splay-tree.h".
13167 * libgomp.map (OACC_2.0): New symbol version. Use for
13168 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
13169 acc_set_device_type_h_, acc_get_device_type,
13170 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
13171 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
13172 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
13173 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
13174 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
13175 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
13176 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
13177 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
13178 acc_copyin_array_h_, acc_present_or_copyin,
13179 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
13180 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
13181 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
13182 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
13183 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
13184 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
13185 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
13186 acc_update_device, acc_update_device_32_h_,
13187 acc_update_device_64_h_, acc_update_device_array_h_,
13188 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
13189 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
13190 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
13191 acc_is_present_64_h_, acc_is_present_array_h_,
13192 acc_memcpy_to_device, acc_memcpy_from_device,
13193 acc_get_current_cuda_device, acc_get_current_cuda_context,
13194 acc_get_cuda_stream, acc_set_cuda_stream.
13195 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
13196 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
13197 GOACC_update, GOACC_wait, GOACC_get_thread_num,
13198 GOACC_get_num_threads.
13199 (GOMP_PLUGIN_1.0): New symbol version. Use for
13200 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
13201 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
13202 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
13203 GOMP_PLUGIN_acc_thread.
13204 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
13205 environment variable.
13206 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
13207 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
13208 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
13209 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
13210 (splay_tree_remove): New declarations.
13211 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
13212 (splay_tree_remove, splay_tree_lookup): Move into...
13213 * splay-tree.c: ... this new file.
13214 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
13215 (splay_tree_node, splay_tree, splay_tree_key)
13216 (struct target_mem_desc, struct splay_tree_key_s)
13217 (struct gomp_device_descr): Don't declare.
13218 (num_devices_openmp): New variable.
13219 (gomp_get_num_devices ): Use it.
13220 (gomp_init_targets_once): New function.
13221 (gomp_get_num_devices ): Use it.
13222 (get_kind, gomp_copy_from_async, gomp_free_memmap)
13223 (gomp_fini_device, gomp_register_image_for_device): New functions.
13224 (gomp_map_vars): Add devaddrs parameter.
13225 (gomp_update): Add mm parameter.
13226 (gomp_init_device): Move most of it into...
13227 (gomp_init_tables): ... this new function.
13228 (gomp_register_images_for_device): Remove function.
13229 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
13230 Make them hidden instead of static.
13231 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
13232 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
13233 (GOMP_target_end_data, GOMP_target_update)
13234 (gomp_load_plugin_for_device, gomp_target_init): Update for
13236 * oacc-async.c: New file.
13237 * oacc-cuda.c: Likewise.
13238 * oacc-host.c: Likewise.
13239 * oacc-init.c: Likewise.
13240 * oacc-int.h: Likewise.
13241 * oacc-mem.c: Likewise.
13242 * oacc-parallel.c: Likewise.
13243 * oacc-plugin.c: Likewise.
13244 * oacc-plugin.h: Likewise.
13245 * oacc-ptx.h: Likewise.
13246 * openacc.f90: Likewise.
13247 * openacc.h: Likewise.
13248 * openacc_lib.h: Likewise.
13249 * plugin/plugin-host.c: Likewise.
13250 * plugin/plugin-nvptx.c: Likewise.
13251 * libgomp-plugin.c: Likewise.
13252 * libgomp-plugin.h: Likewise.
13253 * libgomp_target.h: Remove file after merging content into the
13254 former file. Update all users.
13255 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
13256 (offload_targets_s, offload_targets_s_openacc): New variables.
13257 (check_effective_target_openacc_nvidia_accel_present)
13258 (check_effective_target_openacc_nvidia_accel_selected): New
13260 (libgomp_init): Update for OpenACC changes.
13261 * testsuite/libgomp-test-support.exp.in: New file.
13262 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
13263 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13264 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13265 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
13266 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
13267 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13268 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
13269 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13270 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13271 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
13272 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
13273 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13274 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
13275 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13276 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
13277 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13278 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
13279 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
13280 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
13281 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
13282 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
13283 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
13284 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13285 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13286 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13287 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13288 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13289 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13290 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13291 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13292 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13293 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13294 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13295 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
13296 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
13297 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13298 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13299 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13300 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
13301 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
13302 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13303 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13304 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13305 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13306 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13307 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
13308 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13309 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13310 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13311 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13312 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13313 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13314 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13315 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13316 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13317 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13318 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13319 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13320 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13321 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
13322 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
13323 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
13324 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13325 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13326 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13327 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
13328 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
13329 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13330 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13331 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13332 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
13333 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13334 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13335 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13336 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
13337 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
13338 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13339 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13340 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
13341 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
13342 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
13343 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
13344 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13345 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13346 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13347 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
13348 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
13349 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13350 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13351 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
13352 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
13353 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
13354 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
13355 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13356 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13357 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13358 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13359 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
13360 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13361 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13362 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
13363 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
13364 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
13365 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13366 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
13367 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
13368 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
13369 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
13370 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
13371 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13372 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
13373 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
13374 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13375 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
13376 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
13377 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
13378 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
13379 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
13380 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
13381 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
13382 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
13383 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
13384 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13385 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
13386 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
13387 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
13388 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
13389 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
13390 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
13391 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
13392 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
13393 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
13394 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13395 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
13396 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13397 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13398 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13399 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13400 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13401 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
13403 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
13404 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
13405 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
13406 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13407 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
13408 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13409 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
13410 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13411 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13412 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13413 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13414 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13415 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13416 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
13417 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
13418 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
13419 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
13420 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
13421 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
13422 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
13423 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
13424 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
13425 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
13426 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
13427 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
13428 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
13429 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13430 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13431 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13432 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13433 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13434 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13435 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13436 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13437 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
13438 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
13439 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
13440 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
13441 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
13442 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
13443 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
13444 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
13445 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
13446 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
13447 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
13448 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
13449 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
13450 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
13451 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
13452 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13453 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13454 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13455 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13456 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13457 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
13458 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
13459 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
13460 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
13461 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
13462 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
13464 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
13465 Julian Brown <julian@codesourcery.com>
13466 David Malcolm <dmalcolm@redhat.com>
13468 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
13469 to "GNU Offloading and Multi Processing Runtime Library". Change
13471 * configure: Regenerate.
13472 * libgomp.texi: Update.
13474 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
13476 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
13478 * configure: Regenerate.
13480 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
13481 "intelmic" in $offload_targets.
13483 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13485 Update copyright years.
13487 * libgomp.texi: Bump @copying's copyright year.
13489 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13491 * testsuite/lib/libgomp.exp: Load target-utils.exp.
13492 Move load of target-supports.exp earlier.
13494 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
13496 * testsuite/libgomp.c/target-9.c: New test.
13498 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
13500 * config.h.in: Regenerate.
13501 * configure: Regenerate.
13502 * configure.ac: Add GCC_CHECK_EMUTLS.
13503 * libgomp.h: Add check for USE_EMUTLS: this case
13504 is equal to HAVE_TLS.
13505 * team.c: Likewise.
13507 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
13509 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
13511 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
13512 Ilya Verbin <ilya.verbin@intel.com>
13514 * testsuite/libgomp.c/target-critical-1.c: New test.
13516 2014-11-26 Jakub Jelinek <jakub@redhat.com>
13518 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
13519 to dg-options unless expensive testing is on.
13520 (TESTITERS): Define to N if not defined.
13521 (main): Use TESTITERS instead of N.
13522 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
13523 dg-additional-options depending on whether expensive testing is on.
13524 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
13525 Decrease N to 100000 and CHUNKSZ to 10000.
13527 2014-11-24 Jakub Jelinek <jakub@redhat.com>
13530 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
13531 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
13533 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
13535 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
13537 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
13540 * configure: Regenerated.
13542 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
13544 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
13545 vect_simd_clones effective target.
13546 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13548 2014-11-14 Jakub Jelinek <jakub@redhat.com>
13550 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
13551 of 32 as block_size.
13552 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
13553 instead of 32 as block_size.
13555 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
13556 Ilya Verbin <ilya.verbin@intel.com>
13558 * Makefile.in: Regenerate.
13559 * configure: Regenerate.
13560 * configure.ac: Set up offload_additional_options,
13561 offload_additional_lib_paths and offload_targets.
13562 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
13563 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
13564 * testsuite/Makefile.in: Regenerate.
13565 * testsuite/lib/libgomp.exp (libgomp_init): Append
13566 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
13567 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
13568 build directory to LD_LIBRARY_PATH for intelmic offload targets.
13570 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
13571 Ilya Verbin <ilya.verbin@intel.com>
13572 Kirill Yukhin <kirill.yukhin@intel.com>
13573 Ilya Tocar <ilya.tocar@intel.com>
13575 * testsuite/lib/libgomp.exp
13576 (check_effective_target_offload_device): New.
13577 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
13578 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
13579 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
13580 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
13581 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
13582 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
13583 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
13584 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
13585 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
13586 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
13587 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
13588 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
13589 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
13590 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
13591 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
13592 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
13593 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
13594 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
13595 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
13596 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
13597 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
13598 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
13599 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
13600 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
13601 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
13602 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
13603 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
13604 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
13605 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
13606 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
13607 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
13608 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
13609 * testsuite/libgomp.c/target-7.c: Fix test.
13610 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
13611 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
13612 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
13613 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
13614 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
13615 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
13616 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
13617 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
13618 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
13619 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
13620 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
13621 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
13622 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
13623 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
13624 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
13625 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
13626 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
13627 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
13628 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13629 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
13630 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
13631 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
13632 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
13633 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
13634 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
13635 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
13636 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
13637 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
13638 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
13639 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
13640 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
13642 2014-11-13 Jakub Jelinek <jakub@redhat.com>
13643 Ilya Verbin <ilya.verbin@intel.com>
13644 Thomas Schwinge <thomas@codesourcery.com>
13645 Andrey Turetskiy <andrey.turetskiy@intel.com>
13647 * libgomp.map (GOMP_4.0.1): New symbol version.
13648 Add GOMP_offload_register.
13649 * libgomp_target.h: New file.
13650 * splay-tree.h: New file.
13651 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
13652 (gomp_target_init): New forward declaration.
13653 (gomp_is_initialized): New static variable.
13654 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
13655 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
13657 (offload_images, num_offload_images, devices, num_devices): New static
13659 (splay_compare): New static function.
13660 (struct gomp_device_descr): New structure.
13661 (gomp_get_num_devices): Call gomp_target_init.
13662 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
13663 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
13664 (GOMP_offload_register): New function.
13665 (GOMP_target): Arrange for host callback to be performed in a separate
13666 initial thread and contention group, inheriting ICVs from
13667 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
13668 Add device initialization and lookup for target function in splay tree.
13669 (GOMP_target_data): Add device initialization and call gomp_map_vars.
13670 (GOMP_target_end_data): Call gomp_unmap_vars.
13671 (GOMP_target_update): Add device initialization and call gomp_update.
13672 (gomp_load_plugin_for_device, gomp_register_images_for_device)
13673 (gomp_target_init): New static functions.
13675 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
13676 Thomas Schwinge <thomas@codesourcery.com>
13677 Ilya Verbin <ilya.verbin@intel.com>
13678 Andrey Turetskiy <andrey.turetskiy@intel.com>
13680 * config.h.in: Regenerate.
13681 * configure: Regenerate.
13682 * configure.ac: Check for libdl, required for plugin support.
13683 (PLUGIN_SUPPORT): Define if plugins are supported.
13684 (enable_offload_targets): Support Intel MIC targets.
13685 (OFFLOAD_TARGETS): List of target names suitable for offloading.
13687 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13690 * configure: Regenerate.
13692 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13694 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
13696 2014-10-06 Marek Polacek <polacek@redhat.com>
13698 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
13699 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
13700 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
13701 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13703 2014-10-06 Marek Polacek <polacek@redhat.com>
13705 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
13706 * testsuite/libgomp.c/nqueens-1.c: Likewise.
13707 * testsuite/libgomp.c/pr26943-3.c: Likewise.
13708 * testsuite/libgomp.c/pr26943-4.c: Likewise.
13709 * testsuite/libgomp.c/pr36802-2.c: Likewise.
13710 * testsuite/libgomp.c/pr36802-3.c: Likewise.
13711 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
13712 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13713 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
13714 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
13715 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
13716 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
13717 * testsuite/libgomp.c/omp-single-1.c: Likewise.
13718 * testsuite/libgomp.c/omp-single-2.c: Likewise.
13719 * testsuite/libgomp.c/omp_matvec.c: Likewise.
13720 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
13721 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
13722 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
13725 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13728 * testsuite/libgomp.c/pr61200.c: New test.
13730 2014-09-18 Jakub Jelinek <jakub@redhat.com>
13733 * testsuite/libgomp.c++/pr63248.C: New test.
13735 2014-08-04 Jakub Jelinek <jakub@redhat.com>
13737 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
13738 is not zero, but taskgroup->children is NULL and there are
13739 any task->children, schedule those instead of waiting.
13740 * testsuite/libgomp.c/depend-6.c: New test.
13741 * testsuite/libgomp.c/depend-7.c: New test.
13742 * testsuite/libgomp.c/depend-8.c: New test.
13743 * testsuite/libgomp.c/depend-9.c: New test.
13744 * testsuite/libgomp.c/depend-10.c: New test.
13746 2014-08-01 Jakub Jelinek <jakub@redhat.com>
13748 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
13749 (struct gomp_taskwait): New type.
13750 (struct gomp_task): Add taskwait and parent_depends_on, remove
13751 in_taskwait and taskwait_sem fields.
13752 (gomp_finish_task): Don't destroy taskwait_sem.
13753 * task.c (gomp_init_task): Don't init in_taskwait, instead init
13754 taskwait and parent_depends_on.
13755 (GOMP_task): For if (0) tasks with depend clause that depend on
13756 earlier tasks don't defer them, instead call
13757 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
13758 Initialize redundant_out field, for redundant out entries just
13759 move them at the end of linked list instead of removing them
13760 completely, and set redundant_out flag instead of redundant.
13761 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
13763 (gomp_task_run_post_handle_dependers): If parent is in
13764 gomp_task_maybe_wait_for_dependencies and newly runnable task
13765 is not parent_depends_on, queue it in parent->children linked
13766 list after all runnable tasks with parent_depends_on set.
13767 Adjust for addition of taskwait indirection.
13768 (gomp_task_run_post_remove_parent): If parent is in
13769 gomp_task_maybe_wait_for_dependencies and task to be removed
13770 is parent_depends_on, decrement n_depend and if needed awake
13771 parent. Adjust for addition of taskwait indirection.
13772 (GOMP_taskwait): Adjust for addition of taskwait indirection.
13773 (gomp_task_maybe_wait_for_dependencies): New function.
13774 * testsuite/libgomp.c/depend-5.c: New test.
13776 2014-07-13 Tobias Burnus <burnus@net-b.de>
13778 * testsuite/libgomp.fortran/pr34020.f90: Make compile
13779 with TS 18508/Fortran 2015.
13781 2014-07-06 Marek Polacek <polacek@redhat.com>
13784 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
13786 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13788 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
13789 matches regex $lang_source_re, add $lang_include_flags to options.
13790 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
13791 * testsuite/libgomp.c++/c++.exp: Likewise.
13792 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
13793 and lang_include_flags instead of adding -fintrinsic-modules-path= to
13795 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
13797 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
13799 * testsuite/libgomp.fortran/fortran.exp: Explain
13800 gfortran-dg-runtest usage.
13802 2014-06-25 Jakub Jelinek <jakub@redhat.com>
13804 * testsuite/libgomp.fortran/simd5.f90: New test.
13805 * testsuite/libgomp.fortran/simd6.f90: New test.
13806 * testsuite/libgomp.fortran/simd7.f90: New test.
13808 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13810 * testsuite/libgomp.c/for-2.c: Define SC to static for
13811 #pragma omp for simd testing.
13812 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
13813 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
13815 * testsuite/libgomp.c/simd-14.c: New test.
13816 * testsuite/libgomp.c/simd-15.c: New test.
13817 * testsuite/libgomp.c/simd-16.c: New test.
13818 * testsuite/libgomp.c/simd-17.c: New test.
13819 * testsuite/libgomp.c++/for-10.C: Define SC to static for
13820 #pragma omp for simd testing.
13821 * testsuite/libgomp.c++/simd10.C: New test.
13822 * testsuite/libgomp.c++/simd11.C: New test.
13823 * testsuite/libgomp.c++/simd12.C: New test.
13824 * testsuite/libgomp.c++/simd13.C: New test.
13826 * testsuite/libgomp.fortran/aligned1.f03: New test.
13827 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
13828 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
13829 tasks with !$omp parallel !$omp single.
13830 * testsuite/libgomp.fortran/target8.f90: New test.
13831 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
13832 not to use trim in the combiner, instead call elemental function.
13833 (fn): New elemental function.
13834 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
13836 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
13838 * testsuite/libgomp.fortran/udr12.f90: New test.
13839 * testsuite/libgomp.fortran/udr13.f90: New test.
13840 * testsuite/libgomp.fortran/udr14.f90: New test.
13841 * testsuite/libgomp.fortran/udr15.f90: New test.
13843 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13845 * omp_lib.f90.in (openmp_version): Set to 201307.
13846 * omp_lib.h.in (openmp_version): Likewise.
13847 * testsuite/libgomp.c/target-8.c: New test.
13848 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
13849 and inbranch clauses.
13850 * testsuite/libgomp.fortran/depend-3.f90: New test.
13851 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
13853 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13854 * testsuite/libgomp.fortran/target1.f90: New test.
13855 * testsuite/libgomp.fortran/target2.f90: New test.
13856 * testsuite/libgomp.fortran/target3.f90: New test.
13857 * testsuite/libgomp.fortran/target4.f90: New test.
13858 * testsuite/libgomp.fortran/target5.f90: New test.
13859 * testsuite/libgomp.fortran/target6.f90: New test.
13860 * testsuite/libgomp.fortran/target7.f90: New test.
13862 2014-06-10 Jakub Jelinek <jakub@redhat.com>
13865 * testsuite/libgomp.fortran/allocatable9.f90: New test.
13866 * testsuite/libgomp.fortran/allocatable10.f90: New test.
13867 * testsuite/libgomp.fortran/allocatable11.f90: New test.
13868 * testsuite/libgomp.fortran/allocatable12.f90: New test.
13869 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
13870 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
13871 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
13872 * testsuite/libgomp.fortran/associate1.f90: New test.
13873 * testsuite/libgomp.fortran/associate2.f90: New test.
13874 * testsuite/libgomp.fortran/procptr1.f90: New test.
13876 2014-06-06 Jakub Jelinek <jakub@redhat.com>
13878 * testsuite/libgomp.fortran/simd1.f90: New test.
13879 * testsuite/libgomp.fortran/udr1.f90: New test.
13880 * testsuite/libgomp.fortran/udr2.f90: New test.
13881 * testsuite/libgomp.fortran/udr3.f90: New test.
13882 * testsuite/libgomp.fortran/udr4.f90: New test.
13883 * testsuite/libgomp.fortran/udr5.f90: New test.
13884 * testsuite/libgomp.fortran/udr6.f90: New test.
13885 * testsuite/libgomp.fortran/udr7.f90: New test.
13886 * testsuite/libgomp.fortran/udr8.f90: New test.
13887 * testsuite/libgomp.fortran/udr9.f90: New test.
13888 * testsuite/libgomp.fortran/udr10.f90: New test.
13889 * testsuite/libgomp.fortran/udr11.f90: New test.
13891 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
13893 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
13894 vect_simd_clones effective target.
13895 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
13897 2014-05-21 Jakub Jelinek <jakub@redhat.com>
13899 PR middle-end/61252
13900 * testsuite/libgomp.c++/simd-9.C: New test.
13902 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
13904 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
13905 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
13906 texts according to their @menu entry positions.
13908 2014-05-11 Jakub Jelinek <jakub@redhat.com>
13910 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
13911 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
13912 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
13913 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
13914 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
13915 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
13916 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
13917 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
13918 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
13919 * testsuite/libgomp.fortran/depend-1.f90: New test.
13920 * testsuite/libgomp.fortran/depend-2.f90: New test.
13921 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
13922 * testsuite/libgomp.fortran/simd1.f90: New test.
13923 * testsuite/libgomp.fortran/simd2.f90: New test.
13924 * testsuite/libgomp.fortran/simd3.f90: New test.
13925 * testsuite/libgomp.fortran/simd4.f90: New test.
13926 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
13928 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13930 * testsuite/libgomp.c/simd-10.c: New test.
13931 * testsuite/libgomp.c/simd-11.c: New test.
13932 * testsuite/libgomp.c/simd-12.c: New test.
13933 * testsuite/libgomp.c/simd-13.c: New test.
13935 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13937 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
13938 atomic type clauses in any order and optional comma in between.
13939 * testsuite/libgomp.c++/atomic-15.C: Likewise.
13940 * testsuite/libgomp.c/atomic-17.c: Likewise.
13942 * testsuite/libgomp.c/simd-7.c: New test.
13943 * testsuite/libgomp.c/simd-8.c: New test.
13944 * testsuite/libgomp.c/simd-9.c: New test.
13945 * testsuite/libgomp.c/loop-16.c: New test.
13947 2014-04-02 Richard Henderson <rth@redhat.com>
13949 * config/linux/futex.h (futex_wait): Get error value from errno.
13950 (futex_wake): Likewise.
13952 2014-03-25 Jakub Jelinek <jakub@redhat.com>
13955 * testsuite/libgomp.c++/udr-11.C: New test.
13956 * testsuite/libgomp.c++/udr-12.C: New test.
13957 * testsuite/libgomp.c++/udr-13.C: New test.
13958 * testsuite/libgomp.c++/udr-14.C: New test.
13959 * testsuite/libgomp.c++/udr-15.C: New test.
13960 * testsuite/libgomp.c++/udr-16.C: New test.
13961 * testsuite/libgomp.c++/udr-17.C: New test.
13962 * testsuite/libgomp.c++/udr-18.C: New test.
13963 * testsuite/libgomp.c++/udr-19.C: New test.
13965 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13967 Update copyright years
13969 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13971 * hashtab.h: Use the standard form for the copyright notice.
13973 2014-01-02 Tobias Burnus <burnus@net-b.de>
13975 * libgomp.texi: Bump @copying's copyright year.
13977 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
13979 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
13980 alloca () with __builtin_alloca ().
13981 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
13982 * testsuite/libgomp.c/lock-3.c: Likewise.
13983 * testsuite/libgomp.c/pr48591.c: Likewise.
13985 2013-12-17 Jakub Jelinek <jakub@redhat.com>
13988 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
13991 2013-12-16 Jakub Jelinek <jakub@redhat.com>
13994 * testsuite/libgomp.c/pr58756.c: New test.
13996 2013-12-12 Jakub Jelinek <jakub@redhat.com>
13999 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
14002 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
14004 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
14006 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
14007 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
14008 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
14009 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
14012 * libgomp_g.h: Include <stddef.h> for size_t.
14014 * libgomp.spec.in: Update comment about libgomp's dependencies.
14015 * configure.ac: Likewise.
14016 * configure: Regenerate.
14018 2013-10-16 Tobias Burnus <burnus@net-b.de>
14020 * libgomp.texi: (Runtime Library Routines): Update references for
14021 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
14022 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
14023 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
14024 (Environment Variables): Update references for OpenMP 4.0. Add
14025 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
14026 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
14029 2013-10-14 Jakub Jelinek <jakub@redhat.com>
14031 * env.c (parse_bind_var): Initialize value to avoid
14032 (false positive) warning.
14034 2013-10-12 Jakub Jelinek <jakub@redhat.com>
14037 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
14039 (gomp_init_num_threads): Move i variable declaration into
14040 #ifdef CPU_ALLOC_SIZE block.
14041 * config/linux/affinity.c (gomp_affinity_init_level): Test
14042 gomp_places_list_len == 0 rather than gomp_places_list == 0
14043 when checking for topology reading error.
14044 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
14045 * env.c (parse_affinity): Add ignore argument, if true, don't populate
14046 gomp_places_list, only parse env var and always return false.
14047 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
14048 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
14049 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
14050 and either of these variables were parsed correctly into a places
14053 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14054 Jakub Jelinek <jakub@redhat.com>
14056 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
14057 of 5 loopfn matches.
14058 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14059 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14060 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14061 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14062 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14063 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14064 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14065 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14067 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14069 * Makefile.am (omp_lib.mod): Streamline rule.
14070 * Makefile.in: Regenerate.
14072 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
14075 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
14076 * testsuite/libgomp.fortran/lib1.f90: Likewise.
14077 * testsuite/libgomp.fortran/lib2.f: Likewise.
14078 * testsuite/libgomp.fortran/lib3.f: Likewise.
14080 * configure.ac: Typo fix.
14081 * configure: Regenerate.
14083 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
14084 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14086 * omp.h.in: Don't touch the user's namespace.
14088 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14089 Tobias Burnus <burnus@net-b.de>
14090 Richard Henderson <rth@redhat.com>
14092 * target.c: New file.
14093 * Makefile.am (libgomp_la_SOURCES): Add target.c.
14094 * Makefile.in: Regenerated.
14095 * libgomp_g.h (GOMP_task): Add depend argument.
14096 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14097 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14098 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
14099 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14100 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14101 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
14102 GOMP_taskgroup_start, GOMP_taskgroup_end,
14103 GOMP_parallel_sections): New prototypes.
14104 * fortran.c (omp_is_initial_device): Add ialias_redirect.
14105 (omp_is_initial_device_): New function.
14106 (ULP, STR1, STR2, ialias_redirect): Removed.
14107 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
14108 omp_set_default_device_8_, omp_get_default_device_,
14109 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
14111 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14112 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14113 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
14115 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
14116 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
14117 omp_set_default_device, omp_set_default_device_,
14118 omp_set_default_device_8_, omp_get_default_device,
14119 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
14120 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
14121 omp_get_team_num_): Export @@OMP_4.0.
14122 * team.c (struct gomp_thread_start_data): Add place field.
14123 (gomp_thread_start): Clear thr->thread_pool and
14124 thr->task before returning. Use gomp_team_barrier_wait_final
14125 instead of gomp_team_barrier_wait. Initialize thr->place.
14126 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
14127 team_cancelled and task_queued_count fields.
14128 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
14129 before calling pthread_exit.
14130 (gomp_free_thread): No longer static. Use
14131 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
14132 (gomp_team_start): Add flags argument. Set
14133 thr->thread_pool->threads_busy to nthreads immediately after creating
14134 new pool. Use gomp_managed_threads_lock instead of
14135 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
14136 (gomp_team_end): Use gomp_managed_threads_lock instead of
14137 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
14138 of gomp_team_barrier_wait. If team->team_cancelled, call
14139 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
14140 rather than thr->ts.work_share.
14141 (initialize_team): Don't call gomp_sem_init here.
14142 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
14144 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
14145 * env.c (gomp_global_icv): Add default_device_var, target_data and
14146 bind_var initializers.
14147 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14148 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14149 gomp_places_list_len): New variables.
14150 (parse_bind_var, parse_one_place, parse_places_var): New functions.
14151 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
14153 (gomp_cancel_var): New global variable.
14154 (parse_int): New function.
14155 (handle_omp_display_env): New function.
14156 (initialize_env): Use it. Initialize default_device_var.
14157 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
14158 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
14159 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
14160 been successfully parsed (and call gomp_init_affinity in that case).
14161 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14162 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14163 omp_get_team_num, omp_is_initial_device): New functions.
14164 * libgomp.h: Include stdlib.h.
14165 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
14167 (struct target_mem_desc): Forward declare.
14168 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
14169 and thread_limit_var fields.
14170 (gomp_get_num_devices): New prototype.
14171 (gomp_cancel_var): New extern decl.
14172 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
14173 team_cancelled and task_queued_count fields. Add comments about
14174 task_{,queued_,running_}count.
14175 (gomp_cancel_kind): New enum.
14176 (gomp_work_share_end_cancel): New prototype.
14177 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
14178 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
14180 (struct gomp_taskgroup): New type.
14181 (struct gomp_task_depend_entry,
14182 struct gomp_dependers_vec): New types.
14183 (gomp_finish_task): Free depend_hash if non-NULL.
14184 (struct gomp_team_state): Add place_partition_off
14185 and place_partition_len fields.
14186 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14187 gomp_places_list_len): New extern decls.
14188 (struct gomp_thread): Add place field.
14189 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14190 (gomp_init_thread_affinity): Add place argument.
14191 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14192 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14193 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14194 gomp_affinity_init_level, gomp_affinity_print_place): New
14196 (gomp_team_start): Add flags argument.
14197 (gomp_thread_limit_var, gomp_remaining_threads_count,
14198 gomp_remaining_threads_lock): Remove.
14199 (gomp_managed_threads_lock): New variable.
14200 (struct gomp_thread_pool): Add threads_busy field.
14201 (gomp_free_thread): New prototype.
14202 * task.c: Include hashtab.h.
14203 (hash_entry_type): New typedef.
14204 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
14205 (gomp_init_task): Clear dependers, depend_hash, depend_count,
14206 copy_ctors_done and taskgroup fields.
14207 (GOMP_task): Add depend argument, handle depend clauses. If
14208 gomp_team_barrier_cancelled or if it's taskgroup has been
14209 cancelled, don't queue or start new tasks. Set copy_ctors_done
14210 field if needed. Initialize taskgroup field. If copy_ctors_done
14211 and already cancelled, don't discard the task. If taskgroup is
14212 non-NULL, enqueue the task into taskgroup queue. Increment
14213 num_children field in taskgroup. Increment task_queued_count.
14214 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
14215 gomp_task_run_post_remove_taskgroup): New inline functions.
14216 (gomp_task_run_post_handle_depend_hash,
14217 gomp_task_run_post_handle_dependers,
14218 gomp_task_run_post_handle_depend): New functions.
14219 (GOMP_taskwait): Use them. If more than one new tasks
14220 have been queued, wake other threads if needed.
14221 (gomp_barrier_handle_tasks): Likewise. If
14222 gomp_team_barrier_cancelled, don't start any new tasks, just free
14224 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
14226 (omp_proc_bind_kind, omp_proc_bind_false,
14227 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14228 omp_proc_bind_spread): New params.
14229 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14230 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14231 omp_get_team_num, omp_is_initial_device): New interfaces.
14232 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
14233 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
14234 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
14235 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
14236 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
14237 useless use omp_lib_kinds.
14238 * omp.h.in (omp_proc_bind_t): New typedef.
14239 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14240 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14241 omp_get_team_num, omp_is_initial_device): New prototypes.
14242 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
14243 through to gomp_team_start.
14244 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
14245 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
14246 Adjust gomp_parallel_loop_start callers.
14247 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14248 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14249 GOMP_loop_end_cancel): New functions.
14250 (GOMP_parallel_end): Add ialias_redirect.
14251 * hashtab.h: New file.
14252 * libgomp.texi (Environment Variables): Minor cleanup,
14253 update section refs to OpenMP 4.0rc2.
14254 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
14255 environment variables.
14256 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
14257 team->work_shares_to_free to thr->ts.work_share before calling
14259 (gomp_work_share_end_cancel): New function.
14260 * config/linux/proc.c: Include errno.h.
14261 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
14262 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
14263 sizeof (cpu_set_t) to determine number of iterations. Fix up check
14264 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
14265 gomp_cpuset_size is sizeof (cpu_set_t).
14266 (gomp_init_num_threads): Initialize gomp_cpuset_size,
14267 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
14268 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
14269 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
14270 contain any logical CPUs.
14271 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
14272 is NULL. Use gomp_cpusetp instead of &cpuset and pass
14273 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
14274 pthread_getaffinity_np. Check gomp_places_list instead of
14275 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
14276 * config/linux/bar.c (gomp_barrier_wait_end,
14277 gomp_barrier_wait_last): Use BAR_* defines.
14278 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
14279 from state where needed. Set work_share_cancelled to 0 on last
14281 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
14282 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
14284 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
14285 Add cpusetsize argument.
14286 (gomp_cpuset_size, gomp_cpusetp): Declare.
14287 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
14288 (affinity_counter): Remove.
14289 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
14290 if CPU_ALLOC_SIZE isn't defined.
14291 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
14292 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
14293 bind current thread to the first place.
14294 (gomp_init_thread_affinity): Rewritten. Add place argument, just
14295 pthread_setaffinity_np to gomp_places_list[place].
14296 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14297 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14298 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14299 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
14300 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14301 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14302 (gomp_barrier_t): Add awaited_final field.
14303 (gomp_barrier_init): Initialize awaited_final field.
14304 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
14305 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
14307 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
14309 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
14310 gomp_team_barrier_cancelled): New inline functions.
14311 (gomp_barrier_last_thread,
14312 gomp_team_barrier_set_task_pending,
14313 gomp_team_barrier_clear_task_pending,
14314 gomp_team_barrier_set_waiting_for_tasks,
14315 gomp_team_barrier_waiting_for_tasks,
14316 gomp_team_barrier_done): Use BAR_* defines.
14317 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
14318 (gomp_barrier_wait_end): Use BAR_* defines.
14319 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
14320 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
14322 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
14323 gomp_team_barrier_cancel): New functions.
14324 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
14326 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14327 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14328 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14329 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
14330 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14331 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14332 (gomp_barrier_t): Add cancellable field.
14333 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
14334 gomp_team_barrier_cancel): New prototypes.
14335 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
14336 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
14337 gomp_team_barrier_cancelled): New inline functions.
14338 (gomp_barrier_wait_start, gomp_barrier_last_thread,
14339 gomp_team_barrier_set_task_pending,
14340 gomp_team_barrier_clear_task_pending,
14341 gomp_team_barrier_set_waiting_for_tasks,
14342 gomp_team_barrier_waiting_for_tasks,
14343 gomp_team_barrier_done): Use BAR_* defines.
14344 * barrier.c (GOMP_barrier_cancel): New function.
14345 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
14346 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14347 omp_proc_bind_spread): New params.
14348 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14349 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14350 omp_get_team_num, omp_is_initial_device): New externals.
14351 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
14353 (gomp_resolve_num_threads): Adjust for thread_limit now being in
14354 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
14355 infinity. If not nested, just return minimum of max_num_threads
14356 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
14357 to the returned value. Otherwise, don't update atomically
14358 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
14359 (GOMP_parallel_end): Adjust for thread_limit now being in
14360 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
14361 infinity. Adjust threads_busy in the pool rather than
14362 gomp_remaining_threads_count. Remember team->nthreads and call
14363 gomp_team_end before adjusting threads_busy, if not nested
14364 afterwards, just set it to 1 non-atomically. Add ialias.
14365 (GOMP_parallel_start): Adjust gomp_team_start caller.
14366 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
14367 * testsuite/libgomp.c/affinity-1.c: New test.
14368 * testsuite/libgomp.c/atomic-15.c: New test.
14369 * testsuite/libgomp.c/atomic-16.c: New test.
14370 * testsuite/libgomp.c/atomic-17.c: New test.
14371 * testsuite/libgomp.c/cancel-for-1.c: New test.
14372 * testsuite/libgomp.c/cancel-for-2.c: New test.
14373 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
14374 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
14375 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
14376 * testsuite/libgomp.c/cancel-sections-1.c: New test.
14377 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
14378 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
14379 * testsuite/libgomp.c/depend-1.c: New test.
14380 * testsuite/libgomp.c/depend-2.c: New test.
14381 * testsuite/libgomp.c/depend-3.c: New test.
14382 * testsuite/libgomp.c/depend-4.c: New test.
14383 * testsuite/libgomp.c/for-1.c: New test.
14384 * testsuite/libgomp.c/for-1.h: New file.
14385 * testsuite/libgomp.c/for-2.c: New test.
14386 * testsuite/libgomp.c/for-2.h: New file.
14387 * testsuite/libgomp.c/for-3.c: New test.
14388 * testsuite/libgomp.c/pr58392.c: New test.
14389 * testsuite/libgomp.c/simd-1.c: New test.
14390 * testsuite/libgomp.c/simd-2.c: New test.
14391 * testsuite/libgomp.c/simd-3.c: New test.
14392 * testsuite/libgomp.c/simd-4.c: New test.
14393 * testsuite/libgomp.c/simd-5.c: New test.
14394 * testsuite/libgomp.c/simd-6.c: New test.
14395 * testsuite/libgomp.c/target-1.c: New test.
14396 * testsuite/libgomp.c/target-2.c: New test.
14397 * testsuite/libgomp.c/target-3.c: New test.
14398 * testsuite/libgomp.c/target-4.c: New test.
14399 * testsuite/libgomp.c/target-5.c: New test.
14400 * testsuite/libgomp.c/target-6.c: New test.
14401 * testsuite/libgomp.c/target-7.c: New test.
14402 * testsuite/libgomp.c/taskgroup-1.c: New test.
14403 * testsuite/libgomp.c/thread-limit-1.c: New test.
14404 * testsuite/libgomp.c/thread-limit-2.c: New test.
14405 * testsuite/libgomp.c/thread-limit-3.c: New test.
14406 * testsuite/libgomp.c/udr-1.c: New test.
14407 * testsuite/libgomp.c/udr-2.c: New test.
14408 * testsuite/libgomp.c/udr-3.c: New test.
14409 * testsuite/libgomp.c++/affinity-1.C: New test.
14410 * testsuite/libgomp.c++/atomic-10.C: New test.
14411 * testsuite/libgomp.c++/atomic-11.C: New test.
14412 * testsuite/libgomp.c++/atomic-12.C: New test.
14413 * testsuite/libgomp.c++/atomic-13.C: New test.
14414 * testsuite/libgomp.c++/atomic-14.C: New test.
14415 * testsuite/libgomp.c++/atomic-15.C: New test.
14416 * testsuite/libgomp.c++/cancel-for-1.C: New test.
14417 * testsuite/libgomp.c++/cancel-for-2.C: New test.
14418 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
14419 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
14420 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
14421 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
14422 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
14423 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
14424 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
14425 * testsuite/libgomp.c++/cancel-test.h: New file.
14426 * testsuite/libgomp.c++/for-9.C: New test.
14427 * testsuite/libgomp.c++/for-10.C: New test.
14428 * testsuite/libgomp.c++/for-11.C: New test.
14429 * testsuite/libgomp.c++/simd-1.C: New test.
14430 * testsuite/libgomp.c++/simd-2.C: New test.
14431 * testsuite/libgomp.c++/simd-3.C: New test.
14432 * testsuite/libgomp.c++/simd-4.C: New test.
14433 * testsuite/libgomp.c++/simd-5.C: New test.
14434 * testsuite/libgomp.c++/simd-6.C: New test.
14435 * testsuite/libgomp.c++/simd-7.C: New test.
14436 * testsuite/libgomp.c++/simd-8.C: New test.
14437 * testsuite/libgomp.c++/target-1.C: New test.
14438 * testsuite/libgomp.c++/target-2.C: New test.
14439 * testsuite/libgomp.c++/target-2-aux.cc: New file.
14440 * testsuite/libgomp.c++/target-3.C: New test.
14441 * testsuite/libgomp.c++/taskgroup-1.C: New test.
14442 * testsuite/libgomp.c++/udr-1.C: New test.
14443 * testsuite/libgomp.c++/udr-2.C: New test.
14444 * testsuite/libgomp.c++/udr-3.C: New test.
14445 * testsuite/libgomp.c++/udr-4.C: New test.
14446 * testsuite/libgomp.c++/udr-5.C: New test.
14447 * testsuite/libgomp.c++/udr-6.C: New test.
14448 * testsuite/libgomp.c++/udr-7.C: New test.
14449 * testsuite/libgomp.c++/udr-8.C: New test.
14450 * testsuite/libgomp.c++/udr-9.C: New test.
14452 2013-09-20 Jakub Jelinek <jakub@redhat.com>
14455 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
14458 2013-09-20 Alan Modra <amodra@gmail.com>
14460 * configure: Regenerate.
14462 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14464 * testsuite/libgomp.c/sections-2.c: New test.
14466 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
14468 * testsuite/libgomp.fortran/strassen.f90:
14469 Add dg-skip-if aarch64_tiny.
14471 2013-06-20 Iain Sandoe <iain@codesourcery.com>
14472 Cesar Philippidis <cesar@codesourcery.com>
14474 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
14475 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
14476 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
14477 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14478 * testsuite/libgomp.graphite/graphite.exp: Likewise.
14479 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
14480 Use dg-runtest rather than gfortran-dg-runtest.
14482 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
14484 * testsuite/libgomp.c/icv-2.c: Extend current handling of
14485 Linux-based x86 systems to cover all GNU systems.
14486 * testsuite/libgomp.c/lock-3.c: Likewise.
14487 * testsuite/libgomp.c/pr48591.c: Likewise.
14489 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
14491 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
14492 GNU/Hurd, as done for Linux-based systems.
14494 * config/posix/ptrlock.h: Fix comment.
14496 2013-05-27 Tobias Burnus <burnus@net-b.de>
14499 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
14500 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
14501 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
14502 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
14503 omp_destroy_nest_lock): Correct arguments to match the one in
14505 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
14506 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
14507 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
14508 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
14510 2013-05-16 Jakub Jelinek <jakub@redhat.com>
14512 * testsuite/libgomp.c/loop-13.c: New test.
14513 * testsuite/libgomp.c/loop-14.c: New test.
14514 * testsuite/libgomp.c/loop-15.c: New test.
14515 * testsuite/libgomp.c++/loop-13.C: New test.
14516 * testsuite/libgomp.c++/loop-14.C: New test.
14517 * testsuite/libgomp.c++/loop-15.C: New test.
14519 2013-02-06 Jakub Jelinek <jakub@redhat.com>
14521 PR middle-end/56217
14522 * testsuite/libgomp.c++/pr56217.C: New test.
14524 2013-02-01 Alan Modra <amodra@gmail.com>
14526 * task.c (GOMP_task, GOMP_taskwait): Comment.
14528 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
14529 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
14532 * config/linux/wait.h (do_spin): Use atomic load for addr.
14533 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
14534 for intptr and ptrlock.
14535 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
14538 2013-01-22 Alan Modra <amodra@gmail.com>
14542 * task.c (GOMP_task): Revert 2011-12-09 change.
14543 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
14544 barrier to read task->children..
14545 (gomp_barrier_handle_tasks): ..and matching atomic store with
14546 release barrier here when setting parent->children to NULL.
14548 2013-01-16 Jakub Jelinek <jakub@redhat.com>
14549 Tobias Burnus <burnus@net-b.de>
14552 * testsuite/libgomp.fortran/fortran.exp: Use
14553 -fintrinsic-modules-path= instead of
14554 -fintrinsic-modules-path.
14556 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
14558 Update copyright years.
14560 2012-12-19 Tobias Burnus <burnus@net-b.de>
14562 * testsuite/libgomp.fortran/fortran.exp: Set
14563 -fintrinsic-modules-path.
14565 2012-12-19 Tobias Burnus <burnus@net-b.de>
14567 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
14568 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
14570 2012-11-21 Jakub Jelinek <jakub@redhat.com>
14573 * team.c (gomp_free_thread): Decrease gomp_managed_threads
14574 if pool had any threads_used.
14576 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
14578 * testsuite/libgomp.c++/pr24455.C: Use
14579 -Wl,-undefined,dynamic_lookup on darwin.
14581 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
14583 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
14585 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
14587 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
14589 2012-10-23 Ian Bolton <ian.bolton@arm.com>
14590 Jim MacArthur <jim.macarthur@arm.com>
14591 Marcus Shawcroft <marcus.shawcroft@arm.com>
14592 Nigel Stephens <nigel.stephens@arm.com>
14593 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14594 Richard Earnshaw <rearnsha@arm.com>
14595 Sofiane Naci <sofiane.naci@arm.com>
14596 Stephen Thomas <stephen.thomas@arm.com>
14597 Tejas Belagod <tejas.belagod@arm.com>
14598 Yufeng Zhang <yufeng.zhang@arm.com>
14600 * configure.tgt: Add AArch64.
14602 2012-10-04 Jason Merrill <jason@redhat.com>
14604 * testsuite/libgomp.c++/tls-init1.C: New.
14606 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
14608 * configure: Regenerated.
14610 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
14612 * config/linux/mips/futex.h (sys_futex0): Change to static
14613 function with noinline, nomips16 attributes under MIPS16. Adjust
14614 asm statement to place 'li v0,SYS_futex' immediately before
14617 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
14619 * libgomp.texi (Library Index): Renamed from "Index" to prevent
14620 conflict with index.html on case-insensitive file systems.
14622 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
14624 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
14625 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
14627 2012-07-02 Richard Guenther <rguenther@suse.de>
14628 Michael Matz <matz@suse.de>
14629 Tobias Grosser <tobias@grosser.es>
14630 Sebastian Pop <sebpop@gmail.com>
14632 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
14633 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14634 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14635 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14637 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
14639 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
14641 2012-06-22 Richard Guenther <rguenther@suse.de>
14643 Merge from graphite branch
14644 2012-01-13 Tobias Grosser <tobias@grosser.es>
14646 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
14647 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14649 2012-06-07 Jakub Jelinek <jakub@redhat.com>
14651 PR middle-end/53580
14652 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
14653 use GOMP_barrier () call instead.
14654 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14655 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14656 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
14657 call GOMP_barrier instead.
14658 * testsuite/libgomp.fortran/vla5.f90: Likewise.
14660 2012-06-06 Jakub Jelinek <jakub@redhat.com>
14663 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
14664 argument to memset call.
14666 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
14668 * configure: Regenerated.
14670 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14672 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
14674 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
14677 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
14679 2012-03-22 Jakub Jelinek <jakub@redhat.com>
14681 PR middle-end/52547
14682 * testsuite/libgomp.c/pr52547.c: New test.
14684 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14686 * testsuite/lib/libgomp.exp: load fortran-modules.exp
14688 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14690 * configure.tgt (mips-sgi-irix6*): Remove.
14692 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14694 * configure.tgt (alpha*-dec-osf*): Remove.
14696 * config/osf/sem.h: Remove.
14697 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
14699 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
14701 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
14703 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14706 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
14707 Remove ENABLE_SYMVERS_SOL2.
14708 * configure: Regenerate.
14709 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
14710 (PREPROCESS): New variable.
14711 (libgomp.ver): New target.
14712 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
14713 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
14714 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
14716 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
14717 * Makefile.in: Regenerate.
14719 2012-02-14 Walter Lee <walt@tilera.com>
14721 * configure.tgt: Handle tilegx and tilepro.
14722 * config/linux/tile/futex.h: New file.
14724 2012-02-08 Richard Guenther <rguenther@suse.de>
14726 PR tree-optimization/46886
14727 * testsuite/libgomp.c/pr46886.c: New testcase.
14729 2012-01-25 Matthias Klose <doko@ubuntu.com>
14731 * config/linux/arm: Remove empty directory.
14732 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
14734 2011-12-09 Alan Modra <amodra@gmail.com>
14737 * task.c (GOMP_taskwait): Don't access task->children outside of
14738 task_lock mutex region.
14739 (GOMP_task): Likewise.
14741 2011-12-06 Jakub Jelinek <jakub@redhat.com>
14744 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
14746 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14747 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14748 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14749 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14750 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14752 2011-12-02 Alan Modra <amodra@gmail.com>
14754 * config/linux/affinity.c: Use atomic rather than sync builtin.
14755 * config/linux/lock.c: Likewise.
14756 * config/linux/ptrlock.h: Likewise.
14757 * config/linux/ptrlock.c: Likewise.
14758 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
14759 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
14760 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
14761 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
14762 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
14763 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
14764 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
14765 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
14766 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
14767 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
14769 2011-11-30 Alan Modra <amodra@gmail.com>
14772 * config/linux/bar.h: Use atomic rather than sync builtins.
14773 * config/linux/bar.c: Likewise. Add missing acquire
14774 synchronisation on generation field.
14775 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
14778 2011-11-30 Alan Modra <amodra@gmail.com>
14780 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
14781 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
14782 * config/linux/mutex.h: Use atomic rather than sync builtins.
14783 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
14784 * config/linux/omp-lock.h: Comment fix.
14785 * config/linux/arm/mutex.h: Delete.
14786 * config/linux/powerpc/mutex.h: Delete.
14787 * config/linux/ia64/mutex.h: Delete.
14788 * config/linux/mips/mutex.h: Delete.
14790 2011-11-30 Alan Modra <amodra@gmail.com>
14793 * config/linux/sem.h: Rewrite.
14794 * config/linux/sem.c: Rewrite.
14796 2011-11-28 Richard Henderson <rth@redhat.com>
14798 * libgomp.h (enum memmodel): New.
14800 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
14802 * configure: Regenerate.
14804 2011-10-10 Matthias Klose <doko@ubuntu.com>
14806 * config/posix95: Remove empty directory.
14808 2011-08-26 Jakub Jelinek <jakub@redhat.com>
14810 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
14812 2011-08-19 Jakub Jelinek <jakub@redhat.com>
14815 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
14816 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
14818 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14820 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
14822 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14825 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
14827 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
14829 * config/linux/proc.h: New.
14830 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
14831 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
14832 (gomp_init_num_threads): Update call to cpuset_popcount.
14833 (get_num_procs): Ditto.
14834 * config/linux/affinity.c (gomp_init_affinity): Call
14835 gomp_cpuset_popcount.
14837 2011-08-02 Jakub Jelinek <jakub@redhat.com>
14841 * omp.h.in (omp_in_final): New prototype.
14842 * omp_lib.f90.in (omp_in_final): New interface.
14843 (omp_integer_kind, omp_logical_kind): Remove
14844 and replace all its uses in the module with 4.
14845 (openmp_version): Change to 201107.
14846 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
14847 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
14848 kind for the parameters.
14849 (omp_in_final): New external.
14850 (openmp_version): Change to 201107.
14851 * task.c (omp_in_final): New function.
14852 (gomp_init_task): Initialize final_task.
14853 (GOMP_task): Remove unused attribute from flags. Handle final
14855 (GOMP_taskyield): New function.
14856 (omp_in_final): Return true if if (false) or final (true) task
14857 or descendant of final (true).
14858 * fortran.c (omp_in_final_): New function.
14859 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
14860 (GOMP_3.0): Export GOMP_taskyield.
14861 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
14863 (parse_unsigned_long_list): New function.
14864 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
14865 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
14866 even if parse_affinity returned false.
14867 * config/linux/affinity.c (gomp_init_affinity): Handle
14868 gomp_cpu_affinity_len == 0.
14869 * libgomp_g.h (GOMP_taskyield): New prototype.
14870 * libgomp.h (struct gomp_task): Add final_task field.
14871 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
14872 * team.c (gomp_team_start): Override new task's nthreads_var icv
14873 if list form OMP_NUM_THREADS has been used and it has value for
14874 the new nesting level.
14876 * testsuite/libgomp.c/atomic-11.c: New test.
14877 * testsuite/libgomp.c/atomic-12.c: New test.
14878 * testsuite/libgomp.c/atomic-13.c: New test.
14879 * testsuite/libgomp.c/atomic-14.c: New test.
14880 * testsuite/libgomp.c/reduction-6.c: New test.
14881 * testsuite/libgomp.c/task-5.c: New test.
14882 * testsuite/libgomp.c++/atomic-2.C: New test.
14883 * testsuite/libgomp.c++/atomic-3.C: New test.
14884 * testsuite/libgomp.c++/atomic-4.C: New test.
14885 * testsuite/libgomp.c++/atomic-5.C: New test.
14886 * testsuite/libgomp.c++/atomic-6.C: New test.
14887 * testsuite/libgomp.c++/atomic-7.C: New test.
14888 * testsuite/libgomp.c++/atomic-8.C: New test.
14889 * testsuite/libgomp.c++/atomic-9.C: New test.
14890 * testsuite/libgomp.c++/task-8.C: New test.
14891 * testsuite/libgomp.c++/reduction-4.C: New test.
14892 * testsuite/libgomp.fortran/allocatable7.f90: New test.
14893 * testsuite/libgomp.fortran/allocatable8.f90: New test.
14894 * testsuite/libgomp.fortran/crayptr3.f90: New test.
14895 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
14896 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
14897 * testsuite/libgomp.fortran/pointer1.f90: New test.
14898 * testsuite/libgomp.fortran/pointer2.f90: New test.
14899 * testsuite/libgomp.fortran/task4.f90: New test.
14901 2011-08-02 Tobias Burnus <burnus@net-b.de>
14903 * libgomp.texi: Update OpenMP spec references to 3.1.
14904 (omp_in_final,OMP_PROC_BIND): New sections.
14905 (OMP_NUM_THREADS): Document that the value can be now a list.
14906 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
14908 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
14910 * config/linux/x86/futex.h: Check __x86_64__ instead of
14913 2011-07-29 Jakub Jelinek <jakub@redhat.com>
14915 PR middle-end/49897
14916 PR middle-end/49898
14917 * testsuite/libgomp.c/pr49897-1.c: New test.
14918 * testsuite/libgomp.c/pr49897-2.c: New test.
14919 * testsuite/libgomp.c/pr49898-1.c: New test.
14920 * testsuite/libgomp.c/pr49898-2.c: New test.
14922 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
14924 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
14925 for ia32 instead of ilp32.
14927 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
14928 * testsuite/libgomp.c/atomic-6.c: Likewise.
14930 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
14932 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
14933 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
14935 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14938 * config/osf/sem.h: New file.
14939 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
14941 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14944 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
14947 2011-07-15 Jakub Jelinek <jakub@redhat.com>
14949 * config/linux/wait.h (do_spin): New inline, largely copied
14950 from do_wait, just don't do futex_wait here, instead return true if
14952 (do_wait): Implement using do_spin.
14953 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
14955 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
14956 __sync_bool_compare_and_swap, pass the oldval to
14957 gomp_mutex_lock_slow.
14958 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
14959 If all mutex contenders are just spinning and not sleeping, don't
14960 change state to 2 unnecessarily. Optimize the loop when state has
14961 already become 2 to use just one atomic operation per loop instead
14963 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
14965 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
14966 __sync_bool_compare_and_swap, pass the oldval to
14967 gomp_mutex_lock_slow.
14969 2011-06-22 Jakub Jelinek <jakub@redhat.com>
14972 * iter.c (gomp_iter_static_next): For chunk size 0
14973 only use n ceil/ nthreads size for the first
14974 n % nthreads threads in the team instead of
14975 all threads except for the last few ones which
14976 get less work or none at all.
14977 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
14978 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
14979 chunk argument, set run_sched_modifier to 0 for static
14980 resp. 1 for other kinds. If chunk argument is 0
14981 and not static, set value to 1.
14983 2011-05-19 Jakub Jelinek <jakub@redhat.com>
14986 * testsuite/libgomp.c++/pr49043.C: New test.
14989 * testsuite/libgomp.c++/pr48869.C: New test.
14991 2011-05-06 Jakub Jelinek <jakub@redhat.com>
14994 * fortran.c: Include limits.h.
14996 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
14998 (omp_set_num_threads_8_, omp_set_schedule_8_,
14999 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
15000 omp_get_team_size_8_): Use TO_INT macro.
15001 * testsuite/libgomp.fortran/pr48894.f90: New test.
15003 2011-04-13 Jakub Jelinek <jakub@redhat.com>
15005 PR middle-end/48591
15006 * testsuite/libgomp.c/pr48591.c: New test.
15008 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15011 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
15012 * configure: Regenerate.
15014 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15017 * testsuite/libgomp.fortran/task3.f90: New test.
15019 2011-02-24 Tobias Burnus <burnus@net-b.de>
15021 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
15023 2011-02-23 Jakub Jelinek <jakub@redhat.com>
15026 * libgomp.texi (omp_get_wtime): Don't say time in the past
15027 must be Unix Epoch.
15029 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15032 * testsuite/libgomp.fortran/fortran.exp: Check for both
15033 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
15034 but $blddir != "", still append ${blddir}/${lang_library_path}
15035 to ld_library_path.
15037 2011-02-16 Tobias Burnus <burnus@net-b.de>
15040 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
15041 of libquadmath.a before adding its libpath to ldflags.
15043 2011-02-14 Jakub Jelinek <jakub@redhat.com>
15046 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
15047 to FUTEX_WAIT futex syscall.
15048 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
15050 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15052 * configure: Regenerate.
15054 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
15057 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
15059 2011-01-16 Gerald Pfeifer
15061 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
15063 2010-12-14 Jakub Jelinek <jakub@redhat.com>
15066 * libgomp.fortran/allocatable6.f90: New test.
15068 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15070 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
15071 * configure: Regenerate.
15073 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
15077 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
15078 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
15079 * aclocal.m4: Regenerate.
15080 * configure: Regenerate.
15081 * Makefile.in: Regenerate.
15082 * testsuite/Makefile.in: Regenerate.
15084 2010-12-02 Jakub Jelinek <jakub@redhat.com>
15087 * libgomp.fortran/pr46753.f90: New test.
15090 * env.c (initialize_env): Default to spin count 300000
15091 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
15095 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
15096 at the end if sync builtins aren't supported.
15098 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15100 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
15102 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15104 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
15106 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
15108 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
15110 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15111 Tobias Burnus <burnus@net-b.de>
15115 * configure: Regenerate.
15117 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
15119 * config/linux/futex.h: New.
15120 * config/linux/arm/mutex.h: New.
15121 * configure.tgt (arm*-*-linux*): Add config path.
15123 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
15125 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15127 2010-09-23 Tobias Burnus <burnus@net-b.de>
15129 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
15130 Change Fortran datatype to LOGICAL.
15131 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
15132 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
15134 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15136 * configure: Regenerate.
15138 2010-07-26 Jakub Jelinek <jakub@redhat.com>
15140 * libgomp.texi: Add function keyword to a couple of Fortran
15141 interfaces, use integer instead of int for Fortran.
15143 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
15145 * libgomp.texi: Fix spelling and pasto problems throughout.
15146 Adjust prototypes to match code.
15148 2010-07-24 Tobias Burnus <burnus@net-b.de>
15150 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
15151 silence -fwhole-file warning.
15153 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15155 * configure.tgt (*-*-solaris2.[56]*): Removed.
15157 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15159 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
15160 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
15161 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
15162 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
15163 targetting solaris2*.
15164 * configure: Regenerate.
15165 * config.h.in: Regenerate.
15167 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
15168 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
15169 Add libgomp_version_dep.
15170 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
15172 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
15173 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
15174 * Makefile.in: Regenerate.
15176 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
15177 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15178 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
15179 to common block, protected by
15180 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15182 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
15184 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
15186 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
15189 * configure: Regenerate.
15191 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15194 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
15195 * configure: Regenerate.
15196 * Makefile.in: Regenerate.
15197 * testsuite/Makefile.in: Regenerate.
15199 2010-04-26 Jakub Jelinek <jakub@redhat.com>
15202 * testsuite/libgomp.c/pr43893.c: New test.
15203 * testsuite/libgomp.c++/pr43893.C: New test.
15205 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15207 PR middle-end/43570
15208 * testsuite/libgomp.fortran/vla8.f90: New test.
15210 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15213 * config/linux/affinity.c (gomp_init_affinity): Decrease
15214 gomp_available_cpus if affinity mask confines the process to fewer
15216 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
15217 non-NULL, just return gomp_available_cpus.
15220 * sections.c (gomp_sections_init): Initialize ws->mode.
15222 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15224 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
15225 not unused bar variable.
15226 * configure: Regenerate.
15228 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15230 * Makefile.in: Regenerate.
15231 * aclocal.m4: Regenerate.
15232 * testsuite/Makefile.in: Regenerate.
15234 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15237 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
15238 (initialize_env): Adjust callers.
15239 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
15240 when the argument is 0.
15242 * testsuite/libgomp.c/pr42942.c: New test.
15244 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15246 PR middle-end/42644
15247 PR middle-end/42130
15248 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15249 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
15251 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15253 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
15254 * testsuite/libgomp.c++/task-6.C: Likewise.
15256 2010-01-28 Steve Ellcey <sje@cup.hp.com>
15258 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
15260 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
15262 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
15263 * configure: Regenerate.
15265 2010-01-26 Jakub Jelinek <jakub@redhat.com>
15268 * testsuite/libgomp.fortran/allocatable5.f90: New test.
15270 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
15272 * configure.ac: Test for executability of GFORTRAN.
15273 * configure: Regenerate.
15275 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15277 * configure: Regenerate.
15279 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15282 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
15284 2010-01-03 Richard Guenther <rguenther@suse.de>
15286 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
15288 2009-12-23 Sebastian Pop <sebpop@gmail.com>
15290 * testsuite/libgomp.graphite/pr4118.c: New.
15292 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15294 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
15295 for darwin, protect the test with require-effective-target tls_runtime.
15296 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
15298 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15301 * testsuite/lib/libgomp.exp: Provide -B options to allow for
15302 link spec %s substitutions for static libraries.
15304 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
15307 * libgomp.graphite/force-parallel-2.c: Reduce array size.
15309 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15311 * Makefile.in: Regenerate.
15312 * configure: Regenerate.
15313 * testsuite/Makefile.in: Regenerate.
15315 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
15317 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
15318 settings for LC_ALL and LANG.
15320 2009-11-25 Jakub Jelinek <jakub@redhat.com>
15323 * testsuite/libgomp.fortran/pr42162.f90: New test.
15325 2009-11-13 Jakub Jelinek <jakub@redhat.com>
15327 PR middle-end/42029
15328 * testsuite/libgomp.c/pr42029.c: New test.
15330 2009-10-26 Jakub Jelinek <jakub@redhat.com>
15332 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
15333 *s. Accept ld version without text in ()s.
15334 * configure: Regenerated.
15336 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
15338 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
15340 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15343 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
15344 or a hyphen (happens with fortran language disabled).
15345 * configure: Regenerate.
15347 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15349 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
15350 use sed script portable to Solaris /bin/sed for extracting ld
15352 * configure: Regenerate.
15354 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
15356 * testsuite/libgomp.graphite/bounds.c: New test.
15358 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15360 * Makefile.am (libgomp_la_LINK): New.
15361 * Makefile.in: Regenerate.
15363 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15365 * configure.ac (AC_PREREQ): Bump to 2.64.
15367 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15369 * Makefile.am (install-html, install-pdf): Remove.
15370 * Makefile.in: Regenerate.
15372 * Makefile.in: Regenerate.
15373 * aclocal.m4: Regenerate.
15374 * config.h.in: Regenerate.
15375 * configure: Regenerate.
15376 * testsuite/Makefile.in: Regenerate.
15378 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15380 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
15381 * Makefile.in: Regenerate.
15383 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
15385 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
15386 * Makefile.in: Regenerate.
15388 2009-08-19 Tobias Burnus <burnus@net-b.de>
15391 omp_lib.h.in: Fix -std=f95 errors.
15393 2009-08-14 David Edelsohn <edelsohn@gnu.org>
15395 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
15396 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
15397 * testsuite/libgomp.graphite/graphite.exp: New.
15399 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
15401 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
15404 2009-08-04 David Daney <ddaney@caviumnetworks.com>
15406 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
15407 needed memory barrier semantics.
15408 * config/linux/mips/mutex.h: New file.
15410 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15412 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
15414 2009-07-16 Joseph Myers <joseph@codesourcery.com>
15416 * configure: Regenerate.
15418 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
15423 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
15424 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
15425 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
15427 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
15429 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
15430 options when choosing a multilib.
15432 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
15434 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
15435 ld_library_path. Use add_path. Add just find_libgcc_s to
15436 ld_library_path, not every libgcc multilib directory.
15437 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
15438 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
15439 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
15441 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
15443 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
15445 * Makefile.am (LTLDFLAGS): Define.
15447 * Makefile.in: Regenerate.
15449 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
15452 * testsuite/libgomp.fortran/fortran.exp: Don't link with
15453 libgfortranbegin, check existence of libgfortran.a instead of
15454 libgfortranbegin.a.
15456 2009-05-20 Jakub Jelinek <jakub@redhat.com>
15459 * team.c (gomp_thread_start): Destroy thr->release semaphore.
15460 (gomp_free_pool_helper): Likewise.
15462 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
15463 Jakub Jelinek <jakub@redhat.com>
15466 * testsuite/libgomp.fortran/workshare2.f90: New test.
15468 2009-04-09 Nick Clifton <nickc@redhat.com>
15470 * iter.c: Change copyright header to refer to version 3 of the
15471 GNU General Public License with version 3.1 of the GCC Runtime
15472 Library Exception and to point readers at the COPYING3 and
15473 COPYING3.RUNTIME files and the FSF's license web page.
15474 * alloc.c: Likewise.
15475 * barrier.c: Likewise.
15476 * config/bsd/proc.c: Likewise.
15477 * config/linux/affinity.c: Likewise.
15478 * config/linux/alpha/futex.h: Likewise.
15479 * config/linux/bar.c: Likewise.
15480 * config/linux/bar.h: Likewise.
15481 * config/linux/ia64/futex.h: Likewise.
15482 * config/linux/ia64/mutex.h: Likewise.
15483 * config/linux/lock.c: Likewise.
15484 * config/linux/mips/futex.h: Likewise.
15485 * config/linux/mutex.c: Likewise.
15486 * config/linux/mutex.h: Likewise.
15487 * config/linux/powerpc/futex.h: Likewise.
15488 * config/linux/proc.c: Likewise.
15489 * config/linux/ptrlock.c: Likewise.
15490 * config/linux/ptrlock.h: Likewise.
15491 * config/linux/s390/futex.h: Likewise.
15492 * config/linux/sem.c: Likewise.
15493 * config/linux/sem.h: Likewise.
15494 * config/linux/sparc/futex.h: Likewise.
15495 * config/linux/wait.h: Likewise.
15496 * config/linux/x86/futex.h: Likewise.
15497 * config/mingw32/proc.c: Likewise.
15498 * config/mingw32/time.c: Likewise.
15499 * config/posix/affinity.c: Likewise.
15500 * config/posix/bar.c: Likewise.
15501 * config/posix/bar.h: Likewise.
15502 * config/posix/lock.c: Likewise.
15503 * config/posix/mutex.h: Likewise.
15504 * config/posix/proc.c: Likewise.
15505 * config/posix/ptrlock.h: Likewise.
15506 * config/posix/sem.c: Likewise.
15507 * config/posix/sem.h: Likewise.
15508 * config/posix/time.c: Likewise.
15509 * config/posix95/lock.c: Likewise.
15510 * critical.c: Likewise.
15512 * error.c: Likewise.
15513 * fortran.c: Likewise.
15514 * iter_ull.c: Likewise.
15515 * libgomp.h: Likewise.
15516 * libgomp_f.h.in: Likewise.
15517 * libgomp_g.h: Likewise.
15518 * loop.c: Likewise.
15519 * loop_ull.c: Likewise.
15520 * omp.h.in: Likewise.
15521 * omp_lib.f90.in: Likewise.
15522 * omp_lib.h.in: Likewise.
15523 * ordered.c: Likewise.
15524 * parallel.c: Likewise.
15525 * sections.c: Likewise.
15526 * single.c: Likewise.
15527 * task.c: Likewise.
15528 * team.c: Likewise.
15529 * work.c: Likewise.
15531 2009-04-09 Jakub Jelinek <jakub@redhat.com>
15533 * testsuite/config/default.exp: Change copyright header to refer to
15534 version 3 of the GNU General Public License and to point readers
15535 at the COPYING3 file and the FSF's license web page.
15537 2009-04-08 Jakub Jelinek <jakub@redhat.com>
15539 PR middle-end/39573
15540 * libgomp.c++/pr39573.C: New test.
15542 2009-04-01 Jakub Jelinek <jakub@redhat.com>
15545 * testsuite/libgomp.c/pr39591-1.c: New test.
15546 * testsuite/libgomp.c/pr39591-2.c: New test.
15547 * testsuite/libgomp.c/pr39591-3.c: New test.
15549 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
15551 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
15552 * testsuite/libgomp.c/atomic-6.c: Ditto.
15554 2009-03-23 Jakub Jelinek <jakub@redhat.com>
15557 * testsuite/libgomp.c/loop-12.c: New test.
15558 * testsuite/libgomp.c/loop-11.c: New test.
15559 * testsuite/libgomp.c++/loop-11.C: New test.
15560 * testsuite/libgomp.c++/loop-12.C: New test.
15561 * testsuite/libgomp.c++/for-8.C: New test.
15563 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15565 * configure: Regenerate.
15567 2009-02-11 Jakub Jelinek <jakub@redhat.com>
15569 PR middle-end/39154
15570 * testsuite/libgomp.c/pr39154.c: New test.
15572 2009-01-30 Ian Lance Taylor <iant@google.com>
15574 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
15575 libgomp_ld_is_gold. Get gold version number.
15576 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
15577 * configure: Rebuild.
15579 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15581 * testsuite/lib/libgomp.exp: Add -B option for targets that
15582 use libgfortran.a%s in their specs.
15584 2009-01-07 Jakub Jelinek <jakub@redhat.com>
15587 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
15588 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
15589 HAVE_AS_SYMVER_DIRECTIVE is not defined.
15590 * configure: Regenerated.
15591 * config.h.in: Likewise.
15593 2008-12-28 Jakub Jelinek <jakub@redhat.com>
15596 * testsuite/libgomp.c/pr38650.c: New test.
15597 * testsuite/libgomp.c++/pr38650.C: New test.
15599 2008-12-27 Jakub Jelinek <jakub@redhat.com>
15601 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
15603 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
15605 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
15607 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15609 * configure: Regenerate.
15611 2008-12-08 Jakub Jelinek <jakub@redhat.com>
15613 PR middle-end/36802
15614 * testsuite/libgomp.c/pr36802-1.c: New test.
15615 * testsuite/libgomp.c/pr36802-2.c: New test.
15616 * testsuite/libgomp.c/pr36802-3.c: New test.
15618 2008-12-01 Janis Johnson <janis187@us.ibm.com>
15621 * config/linux/powerpc/mutex.h: New.
15623 2008-12-01 Jakub Jelinek <jakub@redhat.com>
15626 * testsuite/libgomp.c++/for-7.C: New test.
15629 * testsuite/libgomp.c++/for-6.C: New test.
15631 2008-11-26 Janis Johnson <janis187@us.ibm.com>
15634 * testsuite/lib/libgomp.exp: Include new timeout library files.
15635 (libgomp_target_compile): Set timeout value from new proc.
15637 2008-11-13 Steve Ellcey <sje@cup.hp.com>
15640 * config/linux/ia64/mutex.h: New.
15642 2008-11-04 Tobias Burnus <burnus@net-b.de>
15645 * libgomp.texi (Runtime library routines, environment variables):
15646 Update for OpenMP version 3.0.
15648 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
15649 Steve Ellcey <sje@cup.hp.com>
15651 * configure: Regenerate for new libtool.
15652 * Makefile.in: Ditto.
15653 * testsuite/Makefile.in: Ditto.
15655 2008-09-19 Jakub Jelinek <jakub@redhat.com>
15656 Andreas Tobler <a.tobler@schweiz.org>
15658 * config/bsd/proc.c: New file.
15659 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
15660 * configure.ac: Check for header <sys/sysctl.h>
15661 * configure: Regenerate.
15662 * config.h.in: Likewise.
15664 2008-09-05 Janis Johnson <janis187@us.ibm.com>
15666 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
15668 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
15670 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
15671 * Makefile.in: Regenerated.
15672 * testsuite/Makefile.in: Regenerated.
15674 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
15676 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
15677 depend on blddir if blddir exists.
15678 (libgomp_target_compile): Likewise.
15679 * testsuite/libgomp.c++/c++.exp: Likewise.
15680 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15682 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15684 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
15685 Do not list GPL as Invariant Section.
15687 2008-07-28 Ilie Garbacea <ilie@mips.com>
15688 Chao-ying Fu <fu@mips.com>
15690 * configure.tgt: Enable futex for MIPS.
15691 * config/linux/mips/futex.h: New file.
15693 2008-07-16 Jakub Jelinek <jakub@redhat.com>
15695 * team.c (gomp_team_end): Free team immediately if it has
15698 2008-07-08 David Edelsohn <edelsohn@gnu.org>
15700 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
15701 * testsuite/libgomp.fortran/fortran.exp: Same.
15702 * testsuite/libgomp.c/c.exp: Same.
15703 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
15704 directory to library path first.
15706 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
15708 * env.c (parse_stacksize): Add cast to avoid warning.
15709 (parse_spincount): Likewise.
15711 2008-06-27 Jakub Jelinek <jakub@redhat.com>
15713 * testsuite/libgomp.c/loop-10.c: New test.
15714 * libgomp.c/loop-3.c (main): Add lastprivate clause.
15715 * libgomp.c++/loop-6.C (main): Likewise.
15718 * testsuite/libgomp.c/debug-1.c: New test.
15720 2008-06-19 Jakub Jelinek <jakub@redhat.com>
15722 * testsuite/libgomp.c/nqueens-1.c: New test.
15725 * testsuite/libgomp.c++/task-7.C: New function.
15727 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15729 * configure: Regenerate.
15731 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15733 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
15734 mutex when HAVE_SYNC_BUILTINS isn't defined.
15736 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15738 * libgomp.texi (omp_test_lock): Fix typo.
15740 2008-06-12 Tobias Burnus <burnus@net-b.de>
15742 * omp_lib.f90.in: Add "implicit none".
15744 2008-06-12 Jakub Jelinek <jakub@redhat.com>
15746 PR middle-end/36506
15747 * testsuite/libgomp.c/reduction-5.c: New test.
15749 2008-06-11 Jakub Jelinek <jakub@redhat.com>
15751 * libgomp.h (struct gomp_task): Add in_tied_task field.
15752 * task.c (gomp_init_task): Initialize it.
15753 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
15754 unconditionally. Don't call gomp_team_barrier_wake if
15755 current task is implicit or if(0) from implicit and number of
15756 running tasks is equal to nthreads - 1.
15759 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
15760 omp_get_team_size_8): Fix pastos.
15763 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
15764 * configure: Regenerated.
15765 * config.h.in: Regenerated.
15766 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
15769 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
15772 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
15773 (GOMP_loop_ull_dynamic_start): Likewise.
15774 (GOMP_loop_ull_guided_start): Likewise.
15775 (GOMP_loop_ull_ordered_static_start): Likewise.
15776 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
15777 (GOMP_loop_ull_ordered_guided_start): Likewise.
15779 2008-06-06 Jakub Jelinek <jakub@redhat.com>
15780 Richard Henderson <rth@redhat.com>
15781 Ulrich Drepper <drepper@redhat.com>
15782 Jakob Blomer <jakob.blomer@ira.uka.de>
15784 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
15785 Substitute also OMP_*LOCK_25*.
15786 * configure: Regenerated.
15787 * config.h.in: Regenerated.
15788 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
15789 ptrlock.c and task.c.
15790 * Makefile.in: Regenerated.
15791 * testsuite/Makefile.in: Regenerated.
15792 * task.c: New file.
15793 * loop_ull.c: New file.
15794 * iter_ull.c: New file.
15795 * libgomp.h: Include ptrlock.h.
15796 (enum gomp_task_kind): New type.
15797 (struct gomp_team): Add task_lock, task_queue, task_count,
15798 task_running_count, single_count fields. Add
15799 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
15800 Remove work_share_lock, generation_mask,
15801 oldest_live_gen, num_live_gen and init_work_shares fields, add
15802 work work_share_list_alloc, work_share_list_free and work_share_chunk
15803 fields. Change work_shares from pointer to pointers into an array.
15804 Change ordered_release field into gomp_sem_t ** from flexible array
15805 member. Add implicit_task and initial_work_shares fields.
15806 Move close to the end of the struct.
15807 (struct gomp_team_state): Add single_count, last_work_share,
15808 active_level and level fields, remove work_share_generation.
15809 (gomp_barrier_handle_tasks): New prototype.
15810 (gomp_finish_task): New inline function.
15811 (struct gomp_work_share): Move chunk_size, end, incr into
15812 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
15813 next_ll fields. Reshuffle fields. Add next_alloc,
15814 next_ws, next_free and inline_ordered_team_ids fields, change
15815 ordered_team_ids into pointer from flexible array member.
15816 Add mode field. Put lock and next into a different cache line
15817 from most of the write-once fields.
15818 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
15819 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
15820 gomp_iter_ull_guided_next): New prototypes.
15821 (gomp_new_icv): New prototype.
15822 (struct gomp_thread): Add thread_pool and task fields.
15823 (struct gomp_thread_pool): New type.
15824 (gomp_new_team): New prototype.
15825 (gomp_team_start): Change type of last argument.
15826 (gomp_new_work_share): Removed.
15827 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
15828 (gomp_work_share_init_done): New static inline.
15829 (gomp_throttled_spin_count_var, gomp_available_cpus,
15830 gomp_managed_threads): New extern decls.
15831 (gomp_init_task): New prototype.
15832 (gomp_spin_count_var): New extern var decl.
15833 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
15834 or no alias support, or if not PIC.
15835 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
15836 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
15837 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
15838 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
15839 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
15840 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
15841 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
15842 gomp_test_nest_lock_25): New prototypes.
15843 (omp_lock_symver, strong_alias): Define.
15844 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
15846 (gomp_end_task): New.
15847 (struct gomp_task_icv, gomp_global_icv): New.
15848 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
15849 (struct gomp_task): New.
15850 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
15851 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
15853 (gomp_schedule_type): Reorder enum to match
15855 * team.c (struct gomp_thread_start_data): Add thread_pool and task
15857 (gomp_thread_start): Add gomp_team_barrier_wait call.
15858 For non-nested case remove clearing of docked thread thr fields.
15859 Use pool fields instead of global gomp_* variables. Use
15860 gomp_barrier_wait_last when needed. Initialize ts.active_level.
15861 Create tasks for each member thread.
15862 (free_team): Only destroy team barrier, task_lock here and free it.
15863 (gomp_free_thread): Free last_team if non-NULL.
15864 (gomp_team_end): Call gomp_team_barrier_wait instead of
15865 gomp_barrier_wait. For nested case call one extra
15866 gomp_barrier_wait. Move here some destruction from free_team.
15867 Call free_team on pool->last_team if any, rather than freeing
15868 current team. Destroy work_share_list_free_lock ifndef
15869 HAVE_SYNC_BUILTINS.
15870 (gomp_new_icv): New function.
15871 (gomp_threads, gomp_threads_size, gomp_threads_used,
15872 gomp_threads_dock): Removed.
15873 (gomp_thread_destructor): New variable.
15874 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
15876 (gomp_team_start): Create new pool if current thread doesn't have
15877 one. Use pool fields instead of global gomp_* variables.
15878 Initialize thread_pool field for new threads. Clear single_count.
15879 Change last argument from ws to team, don't create
15880 new team, set ts.work_share to &team->work_shares[0] and clear
15881 ts.last_work_share. Don't clear ts.work_share_generation.
15882 If number of threads changed, adjust atomically gomp_managed_threads.
15883 Use gomp_init_task instead of gomp_new_task,
15884 set thr->task to the corresponding implicit_task array entry.
15885 Create tasks for each member thread. Initialize ts.level.
15886 (initialize_team): Call pthread_key_create on
15887 gomp_thread_destructor.
15888 (team_destructor): New function.
15889 (new_team): Removed.
15890 (gomp_new_team): New function.
15891 (free_team): Free gomp_work_share blocks chained through next_alloc,
15892 instead of freeing work_shares and destroying work_share_lock.
15893 (gomp_team_end): Call gomp_fini_work_share. If number of threads
15894 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
15895 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
15896 of gomp_barrier_wait.
15897 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
15898 instead of gomp_barrier_wait. Call gomp_work_share_init_done
15899 if gomp_work_share_start returned true. Don't unlock ws->lock.
15900 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
15901 of gomp_barrier_wait.
15902 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
15903 gomp_work_share_init_done if gomp_work_share_start returned true.
15904 Don't unlock ws->lock.
15905 * work.c: Include stddef.h.
15906 (free_work_share): Use work_share_list_free_lock instead
15907 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
15908 Call gomp_fini_work_share and then either free ws if orphaned, or
15909 put it into work_share_list_free list of the current team.
15910 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
15912 (gomp_work_share_start, gomp_work_share_end,
15913 gomp_work_share_end_nowait): Rewritten.
15914 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
15915 (openmp_version): Set to 200805.
15916 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
15917 omp_sched_guided, omp_sched_auto): New parameters.
15918 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
15919 omp_set_max_active_levels, omp_get_max_active_levels,
15920 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
15921 omp_get_active_level): New interfaces.
15922 * omp_lib.h.in (openmp_version): Set to 200805.
15923 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
15924 omp_sched_guided, omp_sched_auto): New parameters.
15925 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
15926 omp_set_max_active_levels, omp_get_max_active_levels,
15927 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
15928 omp_get_active_level): New externals.
15929 * loop.c: Include limits.h.
15930 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
15932 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
15933 Likewise. Use gomp_icv.
15934 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
15935 ts.static_trip here.
15936 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
15937 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
15938 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
15939 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
15940 don't unlock ws->lock, otherwise lock it.
15941 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
15942 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
15943 (gomp_parallel_loop_start): Call gomp_new_team instead of
15944 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
15945 Adjust gomp_team_start caller. Pass 0 as second argument to
15946 gomp_resolve_num_threads.
15947 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
15948 If adding ws->chunk_size nthreads + 1 times after end won't
15949 overflow, set ws->mode to 1.
15950 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
15951 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
15952 GOMP_loop_ull_ordered_static_start,
15953 GOMP_loop_ull_ordered_dynamic_start,
15954 GOMP_loop_ull_ordered_guided_start,
15955 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
15956 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
15957 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
15958 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
15959 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
15961 * libgomp.map: Export lock routines also @@OMP_2.0.
15962 (GOMP_loop_ordered_dynamic_first,
15963 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
15964 GOMP_loop_ordered_static_first): Remove.
15965 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
15966 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
15967 GOMP_loop_ull_ordered_dynamic_next,
15968 GOMP_loop_ull_ordered_dynamic_start,
15969 GOMP_loop_ull_ordered_guided_next,
15970 GOMP_loop_ull_ordered_guided_start,
15971 GOMP_loop_ull_ordered_runtime_next,
15972 GOMP_loop_ull_ordered_runtime_start,
15973 GOMP_loop_ull_ordered_static_next,
15974 GOMP_loop_ull_ordered_static_start,
15975 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
15976 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
15977 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
15978 (omp_set_schedule, omp_get_schedule,
15979 omp_get_thread_limit, omp_set_max_active_levels,
15980 omp_get_max_active_levels, omp_get_level,
15981 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
15982 omp_set_schedule_, omp_set_schedule_8_,
15983 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
15984 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
15985 omp_get_max_active_levels_, omp_get_level_,
15986 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
15987 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
15988 New exports @@OMP_3.0.
15989 * omp.h.in (omp_sched_t): New type.
15990 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
15991 omp_set_max_active_levels, omp_get_max_active_levels,
15992 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
15993 omp_get_active_level): New prototypes.
15994 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
15995 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
15996 gomp_thread_limit_var, gomp_remaining_threads_count,
15997 gomp_remaining_threads_lock): New variables.
15998 (parse_spincount): New function.
15999 (initialize_env): Call gomp_init_num_threads unconditionally.
16000 Initialize gomp_available_cpus. Call parse_spincount,
16001 initialize gomp_{,throttled_}spin_count_var
16002 depending on presence and value of OMP_WAIT_POLICY and
16003 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
16004 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
16005 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
16006 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
16007 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
16008 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16009 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16010 (gomp_global_icv): New.
16011 (parse_schedule): Use it. Parse "auto".
16012 (omp_set_num_threads): Use gomp_icv.
16013 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
16015 (omp_get_max_threads): Move from parallel.c.
16016 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16017 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
16019 (parse_stacksize, parse_wait_policy): New functions.
16020 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
16021 both wrappers for compatibility and new locks.
16022 (omp_set_schedule, omp_get_schedule,
16023 omp_get_thread_limit, omp_set_max_active_levels,
16024 omp_get_max_active_levels, omp_get_level,
16025 omp_get_ancestor_thread_num, omp_get_team_size,
16026 omp_get_active_level): New ialias_redirect.
16027 (omp_set_schedule_, omp_set_schedule_8_,
16028 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16029 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16030 omp_get_max_active_levels_, omp_get_level_,
16031 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16032 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16034 * parallel.c: Include limits.h.
16035 (gomp_resolve_num_threads): Add count argument. Rewritten.
16036 (GOMP_parallel_start): Call gomp_new_team and pass that as last
16037 argument to gomp_team_start. Pass 0 as second argument to
16038 gomp_resolve_num_threads.
16039 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
16040 if gomp_thread_limit_var != ULONG_MAX.
16041 (omp_in_parallel): Implement using ts.active_level.
16042 (omp_get_max_threads): Move to env.c.
16043 (omp_get_level, omp_get_ancestor_thread_num,
16044 omp_get_team_size, omp_get_active_level): New functions,
16046 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
16047 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
16048 gomp_iter_dynamic_next instead of the _locked variant and don't take
16049 lock around it, otherwise acquire it before calling
16050 gomp_iter_dynamic_next_locked.
16051 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
16052 gomp_iter_dynamic_next instead of the _locked variant and don't take
16054 (GOMP_parallel_sections_start): Call gomp_new_team instead of
16055 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
16056 Adjust gomp_team_start caller. Pass count as second argument to
16057 gomp_resolve_num_threads, don't adjust num_threads after the call.
16059 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
16060 ws->chunk_size by incr.
16061 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
16063 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
16065 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
16066 (omp_check_defines): Check even the compat defines.
16067 * config/linux/ptrlock.c: New file.
16068 * config/linux/ptrlock.h: New file.
16069 * config/linux/wait.h: New file.
16070 * config/posix/ptrlock.c: New file.
16071 * config/posix/ptrlock.h: New file.
16072 * config/linux/bar.h (gomp_team_barrier_wait,
16073 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16074 (gomp_team_barrier_set_task_pending,
16075 gomp_team_barrier_clear_task_pending,
16076 gomp_team_barrier_set_waiting_for_tasks,
16077 gomp_team_barrier_waiting_for_tasks,
16078 gomp_team_barrier_done): New inlines.
16079 (gomp_barrier_t): Rewritten.
16080 (gomp_barrier_state_t): New typedef.
16081 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
16082 gomp_barrier_wait_start): Rewritten.
16083 (gomp_barrier_wait_end): Change second argument to
16084 gomp_barrier_state_t.
16085 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16087 * config/linux/bar.c: Include wait.h instead of libgomp.h and
16089 (gomp_barrier_wait_end): Rewritten.
16090 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16091 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
16092 * config/posix/bar.h (gomp_barrier_t): Add generation field.
16093 (gomp_barrier_state_t): New typedef.
16094 (gomp_team_barrier_wait,
16095 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16096 (gomp_barrier_wait_start): Or all but low 2 bits from generation
16097 into the return value. Return gomp_barrier_state_t.
16098 (gomp_team_barrier_set_task_pending,
16099 gomp_team_barrier_clear_task_pending,
16100 gomp_team_barrier_set_waiting_for_tasks,
16101 gomp_team_barrier_waiting_for_tasks,
16102 gomp_team_barrier_done): New inlines.
16103 (gomp_barrier_wait_end): Change second argument to
16104 gomp_barrier_state_t.
16105 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16107 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
16108 (gomp_barrier_wait_end): Change second argument to
16109 gomp_barrier_state_t.
16110 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16111 gomp_team_barrier_wake): New functions.
16112 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
16114 (gomp_futex_wake, gomp_futex_wait): New variables.
16115 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
16116 * config/linux/lock.c: Rewrite to make locks task owned,
16117 for backwards compatibility provide the old entrypoints
16118 if symbol versioning. Include wait.h instead of libgomp.h and
16120 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
16121 * config/posix95/lock.c: Rewrite to make locks task owned,
16122 for backwards compatibility provide the old entrypoints
16123 if symbol versioning.
16124 * config/posix/lock.c: Rewrite to make locks task owned,
16125 for backwards compatibility provide the old entrypoints
16126 if symbol versioning.
16127 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
16128 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
16129 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
16130 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16131 (sys_futex0): Return error code.
16132 (futex_wake, futex_wait): If ENOSYS was returned, clear
16133 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16134 (cpu_relax, atomic_write_barrier): New static inlines.
16135 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16136 (futex_wake, futex_wait): If ENOSYS was returned, clear
16137 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16138 (cpu_relax, atomic_write_barrier): New static inlines.
16139 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16140 (sys_futex0): Return error code.
16141 (futex_wake, futex_wait): If ENOSYS was returned, clear
16142 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16143 (cpu_relax, atomic_write_barrier): New static inlines.
16144 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16145 (sys_futex0): Return error code.
16146 (futex_wake, futex_wait): If ENOSYS was returned, clear
16147 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16148 (cpu_relax, atomic_write_barrier): New static inlines.
16149 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16150 (sys_futex0): Return error code.
16151 (futex_wake, futex_wait): If ENOSYS was returned, clear
16152 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16153 (cpu_relax, atomic_write_barrier): New static inlines.
16154 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16155 (sys_futex0): Return error code.
16156 (futex_wake, futex_wait): If ENOSYS was returned, clear
16157 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16158 (cpu_relax, atomic_write_barrier): New static inlines.
16159 * config/linux/sem.c: Include wait.h instead of libgomp.h and
16161 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
16162 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
16163 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
16165 (omp_nest_lock_t): Change owner into void *, add lock field.
16166 * config/posix95/omp-lock.h: Include semaphore.h.
16167 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16168 (omp_lock_t): Use sem_t instead of mutex if semaphores
16170 (omp_nest_lock_t): Likewise. Change owner to void *.
16171 * config/posix/omp-lock.h: Include semaphore.h.
16172 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16173 (omp_lock_t): Use sem_t instead of mutex if semaphores
16175 (omp_nest_lock_t): Likewise. Add owner field.
16177 2008-06-06 Jakub Jelinek <jakub@redhat.com>
16179 * testsuite/libgomp.c/collapse-1.c: New test.
16180 * testsuite/libgomp.c/collapse-2.c: New test.
16181 * testsuite/libgomp.c/collapse-3.c: New test.
16182 * testsuite/libgomp.c/icv-1.c: New test.
16183 * testsuite/libgomp.c/icv-2.c: New test.
16184 * testsuite/libgomp.c/lib-2.c: New test.
16185 * testsuite/libgomp.c/lock-1.c: New test.
16186 * testsuite/libgomp.c/lock-2.c: New test.
16187 * testsuite/libgomp.c/lock-3.c: New test.
16188 * testsuite/libgomp.c/loop-4.c: New test.
16189 * testsuite/libgomp.c/loop-5.c: New test.
16190 * testsuite/libgomp.c/loop-6.c: New test.
16191 * testsuite/libgomp.c/loop-7.c: New test.
16192 * testsuite/libgomp.c/loop-8.c: New test.
16193 * testsuite/libgomp.c/loop-9.c: New test.
16194 * testsuite/libgomp.c/nested-3.c: New test.
16195 * testsuite/libgomp.c/nestedfn-6.c: New test.
16196 * testsuite/libgomp.c/sort-1.c: New test.
16197 * testsuite/libgomp.c/task-1.c: New test.
16198 * testsuite/libgomp.c/task-2.c: New test.
16199 * testsuite/libgomp.c/task-3.c: New test.
16200 * testsuite/libgomp.c/task-4.c: New test.
16201 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
16202 to C++ testsuite default compiler options.
16203 * testsuite/libgomp.c++/collapse-1.C: New test.
16204 * testsuite/libgomp.c++/collapse-2.C: New test.
16205 * testsuite/libgomp.c++/ctor-10.C: New test.
16206 * testsuite/libgomp.c++/for-1.C: New test.
16207 * testsuite/libgomp.c++/for-2.C: New test.
16208 * testsuite/libgomp.c++/for-3.C: New test.
16209 * testsuite/libgomp.c++/for-4.C: New test.
16210 * testsuite/libgomp.c++/for-5.C: New test.
16211 * testsuite/libgomp.c++/loop-8.C: New test.
16212 * testsuite/libgomp.c++/loop-9.C: New test.
16213 * testsuite/libgomp.c++/loop-10.C: New test.
16214 * testsuite/libgomp.c++/task-1.C: New test.
16215 * testsuite/libgomp.c++/task-2.C: New test.
16216 * testsuite/libgomp.c++/task-3.C: New test.
16217 * testsuite/libgomp.c++/task-4.C: New test.
16218 * testsuite/libgomp.c++/task-5.C: New test.
16219 * testsuite/libgomp.c++/task-6.C: New test.
16220 * testsuite/libgomp.fortran/allocatable1.f90: New test.
16221 * testsuite/libgomp.fortran/allocatable2.f90: New test.
16222 * testsuite/libgomp.fortran/allocatable3.f90: New test.
16223 * testsuite/libgomp.fortran/allocatable4.f90: New test.
16224 * testsuite/libgomp.fortran/collapse1.f90: New test.
16225 * testsuite/libgomp.fortran/collapse2.f90: New test.
16226 * testsuite/libgomp.fortran/collapse3.f90: New test.
16227 * testsuite/libgomp.fortran/collapse4.f90: New test.
16228 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
16229 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
16230 * testsuite/libgomp.fortran/lib4.f90: New test.
16231 * testsuite/libgomp.fortran/lock-1.f90: New test.
16232 * testsuite/libgomp.fortran/lock-2.f90: New test.
16233 * testsuite/libgomp.fortran/nested1.f90: New test.
16234 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
16235 * testsuite/libgomp.fortran/strassen.f90: New test.
16236 * testsuite/libgomp.fortran/tabs1.f90: New test.
16237 * testsuite/libgomp.fortran/tabs2.f: New test.
16238 * testsuite/libgomp.fortran/task1.f90: New test.
16239 * testsuite/libgomp.fortran/task2.f90: New test.
16240 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
16241 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16242 * testsuite/libgomp.c/pr26943-2.c: Likewise.
16243 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16244 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16246 2008-05-23 Jakub Jelinek <jakub@redhat.com>
16249 * testsuite/libgomp.c++/ctor-11.C: New test.
16250 * testsuite/libgomp.c++/ctor-12.C: New test.
16252 2008-05-15 Janis Johnson <janis187@us.ibm.com>
16254 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
16256 2008-05-07 Jakub Jelinek <jakub@redhat.com>
16258 PR middle-end/36106
16259 * testsuite/libgomp.c/atomic-5.c: New test.
16260 * testsuite/libgomp.c/atomic-6.c: New test.
16261 * testsuite/libgomp.c/autopar-1.c: New test.
16263 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16265 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
16266 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
16267 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
16268 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
16269 * configure: Regenerate.
16270 * Makefile.in, testsuite/Makefile.in: Likewise.
16272 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
16275 * aclocal.m4: Regenerate.
16276 * configure: Regenerate.
16278 2008-03-18 Jakub Jelinek <jakub@redhat.com>
16280 PR middle-end/35611
16281 * testsuite/libgomp.c/atomic-4.c: New test.
16284 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
16285 (gomp_iter_guided_next): Likewise.
16286 * testsuite/libgomp.c/pr35625.c: New test.
16288 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16290 * aclocal.m4: Regenerate.
16291 * configure: Likewise.
16292 * Makefile.in: Likewise.
16293 * testsuite/Makefile.in: Likewise.
16295 2008-03-13 Jakub Jelinek <jakub@redhat.com>
16297 PR middle-end/35185
16298 * testsuite/libgomp.c++/pr35185.C: New test.
16300 2008-03-12 Jakub Jelinek <jakub@redhat.com>
16302 PR middle-end/35549
16303 * testsuite/libgomp.c/pr35549.c: New test.
16305 2008-03-06 Jakub Jelinek <jakub@redhat.com>
16307 * testsuite/libgomp.c/atomic-3.c: New test.
16309 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16312 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
16313 .F08 file suffixes.
16315 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
16318 * configure.ac: Add ACX_HEADER_STRING.
16319 * env.c: Include strings.h.
16320 * aclocal.m4: Regenerate.
16321 * config.h.in: Regenerate.
16322 * configure: Regenerate.
16323 * Makefile.in: Regenerate.
16324 * testsuite/Makefile.in: Regenerate.
16326 2008-02-15 Jakub Jelinek <jakub@redhat.com>
16328 PR middle-end/35196
16329 * testsuite/libgomp.c/pr35196.c: New test.
16331 PR middle-end/35130
16332 * testsuite/libgomp.fortran/pr35130.f90: New test.
16333 * testsuite/libgomp.c/pr35130.c: New test.
16335 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16337 PR middle-end/33880
16338 * testsuite/libgomp.c/pr33880.c: New test.
16339 * testsuite/libgomp.fortran/pr33880.f90: New test.
16341 2008-01-24 David Edelsohn <edelsohn@gnu.org>
16343 * configure: Regenerate.
16345 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16347 * configure.ac: Move futex checking into ../config/futex.m4.
16348 * configure: Rebuilt.
16349 * aclocal.m4: Rebuilt.
16350 * Makefile.in: Rebuilt.
16352 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
16353 2007-10-15 ../config/tls.m4 change.
16355 2007-12-19 Jakub Jelinek <jakub@redhat.com>
16358 * testsuite/libgomp.c/pr34513.c: New test.
16359 * testsuite/libgomp.c++/pr34513.C: New test.
16361 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
16364 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
16366 2007-12-04 Jakub Jelinek <jakub@redhat.com>
16368 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
16370 2007-12-03 Jakub Jelinek <jakub@redhat.com>
16372 * testsuite/libgomp.c/private-1.c: New test.
16374 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
16375 Paolo Bonzini <bonzini@gnu.org>
16377 * Makefile.am: Use space as vpath separator. Use 'vpath %'
16378 instead of 'VPATH ='.
16379 * Makefile.in: Regenerate.
16381 2007-11-23 Matthias Klose <doko@ubuntu.com>
16383 * configure.ac: Adjust makeinfo version check.
16384 * configure: Regenerate.
16386 2007-11-10 Jakub Jelinek <jakub@redhat.com>
16389 * testsuite/libgomp.fortran/pr34020.f90: New test.
16391 2007-11-06 Jakub Jelinek <jakub@redhat.com>
16394 * testsuite/libgomp.c++/atomic-1.C: New test.
16396 2007-10-25 Jakub Jelinek <jakub@redhat.com>
16399 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
16400 Make x and y integers rather than (implicit) reals. Add private (j)
16401 clause to the last omp parallel.
16403 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
16405 * configure: Regenerate following changes to ../config/tls.m4.
16407 2007-09-28 Jakub Jelinek <jakub@redhat.com>
16409 * testsuite/libgomp.fortran/stack.f90: New test.
16411 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
16413 * config/mingw32/proc.c: New file.
16415 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
16417 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
16418 (main): Use __get_cpuid to get i386 target fetaures.
16419 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
16420 (main): Use __get_cpuid to get x86_64 target fetaures.
16422 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
16425 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
16426 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
16428 2007-07-12 Jakub Jelinek <jakub@redhat.com>
16431 * testsuite/libgomp.fortran/pr32550.f90: New test.
16432 * testsuite/libgomp.fortran/crayptr2.f90: New test.
16434 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
16436 * aclocal.m4: Regenerated.
16438 2007-07-05 Tobias Burnus <burnus@net-b.de>
16441 * testsuite/libgomp.fortran/pr32359.f90: New.
16443 2007-07-02 Jakub Jelinek <jakub@redhat.com>
16446 * sections.c (GOMP_parallel_sections_start): Only decrease
16447 number of threads to COUNT if dyn_var is true.
16448 * testsuite/libgomp.c/pr32468.c: New test.
16450 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16453 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
16455 2007-06-21 Jakub Jelinek <jakub@redhat.com>
16457 PR middle-end/32362
16458 * testsuite/libgomp.c/pr32362-1.c: New test.
16459 * testsuite/libgomp.c/pr32362-2.c: New test.
16460 * testsuite/libgomp.c/pr32362-3.c: New test.
16462 2007-06-07 Jakub Jelinek <jakub@redhat.com>
16464 * team.c (gomp_team_start): Fix setting up thread_attr
16467 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
16469 * configure: Regenerate.
16471 2007-05-23 Steve Ellcey <sje@cup.hp.com>
16473 * Makefile.in: Regenerate.
16474 * configure: Regenerate.
16475 * aclocal.m4: Regenerate.
16476 * testsuite/Makefile.in: Regenerate.
16478 2007-05-04 Jakub Jelinek <jakub@redhat.com>
16480 * config/linux/proc.c: New file.
16483 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
16485 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
16487 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
16489 2007-04-16 Matthias Klose <doko@debian.org>
16491 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
16492 flags if not building with -m64.
16493 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
16494 flag for i?86-*-* targets, if current target matches -m64.
16496 2007-04-14 Steve Ellcey <sje@cup.hp.com>
16498 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
16499 * Makefile.in: Regenerate.
16501 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16504 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
16506 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16508 2007-04-04 Jakub Jelinek <jakub@redhat.com>
16510 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
16512 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
16513 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
16514 (parse_affinity): New function.
16515 (initialize_env): Call it and gomp_init_affinity.
16516 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
16517 create new pthread_attr_t and call gomp_init_thread_affinity
16518 on it for each thread before passing the attribute to pthread_create.
16519 * config/linux/affinity.c: New file.
16520 * config/posix/affinity.c: New file.
16521 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
16522 * configure: Rebuilt.
16523 * config.h.in: Rebuilt.
16524 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
16525 * Makefile.in: Rebuilt.
16527 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
16529 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
16531 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
16532 and use it if found.
16534 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
16536 * testsuite/config/default.exp: New file.
16537 * testsuite/lib/libgomp.exp: New file.
16538 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
16539 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
16540 load_lib *, load_gcc_lib *): Move to libgomp.exp.
16541 (libgomp_load): Remove.
16542 * testsuite/lib/libgomp.exp (libgomp_init): Compute
16543 always_ld_library_path, not ld_library_path. Set additional_flags
16544 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
16545 (target_compile): Do not call libgomp_init. Append lang_library_path
16546 and lang_link_flags to options.
16547 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
16548 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
16550 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
16551 always_ld_library_path. Set LD_LIBRARY_PATH here.
16552 * testsuite/libgomp.fortran/fortran.exp: Ditto.
16553 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
16554 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
16556 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
16557 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
16558 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
16559 * testsuite/libgomp.c/pr29947-1.c: Ditto.
16560 * testsuite/libgomp.c/atomic-10.c: Ditto.
16562 2007-03-21 Jakub Jelinek <jakub@redhat.com>
16564 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
16565 dg-final cleanup-modules line.
16566 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
16567 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
16568 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
16569 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
16570 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
16571 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
16572 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
16574 2007-03-18 Andreas Schwab <schwab@suse.de>
16576 * acinclude.m4: Adjust regular expression for ld version
16578 * configure: Regenerate.
16580 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16582 * Makefile.am: Add install-pdf target as copied from
16583 automake v1.10 rules.
16584 * Makefile.in: Regenerate
16586 2007-02-07 Jakub Jelinek <jakub@redhat.com>
16589 * configure: Regenerate.
16592 * testsuite/libgomp.c++/pr30703.C: New test.
16594 2007-02-02 Jakub Jelinek <jakub@redhat.com>
16597 2006-07-05 Eric Christopher <echristo@apple.com>
16598 * configure.ac: Depend addition of -pthread on host OS.
16599 * configure: Regenerate.
16601 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16603 * libgomp.texi: Fix spacing after abbreviations.
16605 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
16608 * configure.ac: Add check for makeinfo
16609 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
16610 if an appropriate version of makeinfo is found.
16611 * aclocal.m4: Regenerated.
16612 * configure: Regenerated.
16613 * Makefile.in: Regenerated.
16614 * testsuite/Makefile.in: Regenerated.
16616 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
16619 * libgomp.texi: More about implementation-dependent settings.
16621 2007-01-26 Tobias Burnus <burnus@net-b.de>
16623 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
16625 2007-01-24 Jakub Jelinek <jakub@redhat.com>
16627 PR middle-end/30494
16628 * testsuite/libgomp.c/pr30494.c: New test.
16630 2007-01-15 Tom Tromey <tromey@redhat.com>
16632 * configure: Rebuilt.
16633 * configure.ac: Fixed comment.
16635 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
16637 * libgomp.texi: Document implementation specific default values of
16638 environment variables.
16640 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
16643 * libgomp.texi: New file.
16644 * configure.ac: Add --enable-generated-files-in-srcdir option.
16645 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
16647 * Makefile.in: Regenerated.
16648 * config.h.in: Regenerated.
16649 * testsuite/Makefile.in: Regenerated.
16652 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
16655 * env.c (omp_set_num_threads): Set illegal thread count to 1.
16657 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
16659 * configure: Regenerate.
16661 2006-12-04 Jakub Jelinek <jakub@redhat.com>
16664 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
16665 start if there shouldn't be any loop iterations.
16666 (gomp_loop_ordered_static_start): Remove start == end test.
16667 * testsuite/libgomp.c/pr29947-1.c: New test.
16668 * testsuite/libgomp.c/pr29947-2.c: New test.
16670 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
16672 * configure.tgt: Force initial-exec TLS model on Linux only.
16674 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
16676 * configure: Regenerated.
16678 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
16680 * env.c (parse_schedule): Reject out of range values.
16681 (parse_unsigned_long): Reject out of range, negative or zero values.
16683 2006-10-29 Jakub Jelinek <jakub@redhat.com>
16686 * testsuite/libgomp.fortran/pr29629.f90: New test.
16688 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
16691 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
16692 * config/posix95: New directory.
16693 * config/posix95/omp-lock.h: New file.
16694 * config/posix95/lock.c: Likewise.
16696 2006-10-14 Geoffrey Keating <geoffk@apple.com>
16698 * aclocal.m4: Regenerate.
16699 * configure: Regenerate.
16701 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
16703 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
16706 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
16708 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
16710 * configure: Regenerate.
16711 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
16713 2006-09-26 Jakub Jelinek <jakub@redhat.com>
16715 PR middle-end/25261
16716 PR middle-end/28790
16717 * testsuite/libgomp.c/nestedfn-4.c: New test.
16718 * testsuite/libgomp.c/nestedfn-5.c: New test.
16719 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
16722 * testsuite/libgomp.fortran/condinc1.f: New test.
16723 * testsuite/libgomp.fortran/condinc2.f: New test.
16724 * testsuite/libgomp.fortran/condinc3.f90: New test.
16725 * testsuite/libgomp.fortran/condinc4.f90: New test.
16726 * testsuite/libgomp.fortran/condinc1.inc: New file.
16728 2006-09-18 Tom Tromey <tromey@redhat.com>
16730 * configure: Rebuilt.
16732 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
16735 PR preprocessor/14634
16736 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
16738 * configure: Regenerate.
16740 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
16742 * testsuite/libgomp.fortran/reduction3.f90: Change
16743 -2147483648 to -huge(i)-1 to avoid overflow.
16744 * testsuite/libgomp.fortran/reduction4.f90: Change
16745 Z'ffffffff' to not(0) to avoid overflow.
16747 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
16750 * Makefile.am (libsubincludedir): New.
16751 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
16752 * Makefile.in: Regenerate.
16754 2006-08-17 Jakub Jelinek <jakub@redhat.com>
16757 * env.c: Include ctype.h.
16758 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
16759 leading and/or trailing whitespace and compare strings case
16762 2006-07-16 Jakub Jelinek <jakub@redhat.com>
16765 * testsuite/libgomp.fortran/pr28390.f: New test.
16767 2006-07-05 Eric Christopher <echristo@apple.com>
16769 * configure.ac: Depend addition of -pthread on host OS.
16770 * configure: Regenerate.
16772 2006-06-21 Jakub Jelinek <jakub@redhat.com>
16774 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
16775 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
16778 2006-06-20 Jakub Jelinek <jakub@redhat.com>
16782 * configure.ac: If neither --enable-linux-futex nor
16783 --disable-linux-futex is passed, determine the default by checking
16784 for compiling and/or running against NPTL. With --enable-linux-futex,
16785 check if SYS_gettid and SYS_futex are defined.
16786 * configure: Rebuilt.
16788 2006-06-14 Richard Henderson <rth@redhat.com>
16791 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
16792 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
16794 2006-06-09 Richard Henderson <rth@redhat.com>
16796 * env.c (gomp_nthreads_var): Change to unsigned long.
16797 (gomp_run_sched_chunk): Likewise.
16798 (parse_unsigned_long): Rename from parse_num_threads and generalize.
16799 (initialize_env): Initialize gomp_thread_attr.
16800 * libgomp.h (gomp_nthreads_var): Update decl.
16801 (gomp_run_sched_chunk): Likewise.
16802 (gomp_thread_attr): Declare.
16803 * team.c (gomp_thread_attr): Export.
16804 (initialize_team): Don't initialize it.
16806 2006-06-09 Jakub Jelinek <jakub@redhat.com>
16809 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
16810 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
16812 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
16814 * config/mingw32/time.c: New file.
16815 * configure.tgt: Use it.
16817 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
16819 * Makefile.am: Add install-html target. Add install-html to .PHONY
16820 * Makefile.in: Regenerate.
16822 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16825 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
16826 * testsuite/libgomp.c/critical-1.c: Likewise.
16827 * testsuite/libgomp.c/loop-1.c: Likewise.
16828 * testsuite/libgomp.c/loop-2.c: Likewise.
16829 * testsuite/libgomp.c/single-1.c: Likewise.
16830 * testsuite/libgomp.c/ordered-1.c: Likewise.
16831 * testsuite/libgomp.c/ordered-2.c: Likewise.
16833 2006-05-15 Jakub Jelinek <jakub@redhat.com>
16835 PR middle-end/27416
16836 * libgomp.fortran/pr27416-1.f90: New test.
16838 2006-05-03 Jakub Jelinek <jakub@redhat.com>
16841 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
16842 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
16844 2006-05-02 Jakub Jelinek <jakub@redhat.com>
16847 * testsuite/libgomp.c/pr26943-1.c: New test.
16848 * testsuite/libgomp.c/pr26943-2.c: New test.
16849 * testsuite/libgomp.c/pr26943-3.c: New test.
16850 * testsuite/libgomp.c/pr26943-4.c: New test.
16851 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
16852 * testsuite/libgomp.c++/pr26943.C: New test.
16854 2006-05-02 Jakub Jelinek <jakub@redhat.com>
16856 PR middle-end/27337
16857 * testsuite/libgomp.c++/pr27337.C: New test.
16859 2006-04-26 Jakub Jelinek <jakub@redhat.com>
16862 * testsuite/libgomp.c/pr26171.c: New test.
16864 2006-04-25 Richard Henderson <rth@redhat.com>
16867 * configure.ac: Use GCC_CHECK_TLS.
16868 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
16869 * Makefile.in, aclocal.m4, configure: Regenerate.
16871 2006-04-10 Matthias Klose <doko@debian.org>
16873 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
16874 directory names containing underscores.
16876 2006-03-21 Jakub Jelinek <jakub@redhat.com>
16879 * testsuite/libgomp.c++/pr26691.C: New test.
16881 2006-03-13 Jakub Jelinek <jakub@redhat.com>
16883 * testsuite/libgomp.fortran/retval2.f90: New test.
16885 2006-03-09 Diego Novillo <dnovillo@redhat.com>
16887 * testsuite/libgomp.c++: New directory.
16889 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
16891 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
16892 * config/posix/sem.c: Implement the above.
16894 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
16896 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
16897 define HAVE_BROKEN_POSIX_SEMAPHORES.
16898 * configure: Rebuilt.
16899 * config.h.in: Rebuilt.
16901 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
16904 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
16905 for the other pthread check.
16906 * configure: Regenerate.
16907 * config.h.in: Regenerate.
16909 2006-02-15 Jakub Jelinek <jakub@redhat.com>
16913 * Makefile.am (fincludedir): New variable.
16914 (nodist_include_HEADERS): Remove Fortran files.
16915 (nodist_finclude_HEADERS): New variable.
16916 * Makefile.in: Regenerated.
16918 2006-02-13 Jakub Jelinek <jakub@redhat.com>
16920 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
16921 Remove tests for returning assumed character length arrays.
16923 2006-02-12 Roger Sayle <roger@eyesopen.com>
16924 John David Anglin <dave@hiauly1.hia.nrc.ca>
16927 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
16929 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
16931 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
16933 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
16935 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
16936 part of LD_LIBRARY_PATH manually.
16938 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
16941 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
16944 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
16947 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
16948 * configure.ac (PERL): Don't set.
16949 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
16950 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
16951 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
16952 * omp.h.in: Wrap the new configure substitutions with @ characters.
16953 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
16954 * aclocal.m4, configure, Makefile.in: Regenerate.
16955 * mkomp_h.pl: Delete.
16957 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
16960 * configure.ac: Use GCC_HEADER_STDINT.
16961 * libgomp.h: Include gstdint.h.
16962 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
16963 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
16965 2006-01-24 Richard Henderson <rth@redhat.com>
16968 * configure.ac: Add AM_MAINTAINER_MODE.
16969 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
16971 2006-01-24 Diego Novillo <dnovillo@redhat.com>
16973 * Makefile.in: Regenerate.
16974 * testsuite/Makefile.in: Regenerate.
16975 * aclocal.m4: Regenerate.
16977 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
16979 * config/posix/proc.c: Conditional include of sys/loadavg.h for
16981 * configure.ac: Add check for loadavg.h.
16982 (link_gomp): Adjust comment.
16983 * configure: Regenerate.
16984 * config.h.in: Regenerate.
16986 2006-01-21 Steve Ellcey <sje@cup.hp.com>
16989 * configure.ac: Remove check for alloca.h.
16990 * configure: Regenerate.
16991 * config.h.in: Regenerate.
16992 * libgomp.h: define gomp_alloca to be __builtin_alloca.
16993 * team.c: Remove use of alloca.h.
16994 Call gomp_alloca instead of alloca.
16996 2006-01-20 Steve Ellcey <sje@cup.hp.com>
16999 * team.c: Add include of alloca.h.
17000 * configure.ac: Add check for alloca.h.
17001 * configure: Regenerate.
17002 * config.h.in: Regenerate.
17004 2006-01-17 Jakub Jelinek <jakub@redhat.com>
17007 * testsuite/libgomp.fortran/pr25219.f90: New test.
17009 2005-12-05 Uros Bizjak <uros@kss-loka.si>
17011 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
17012 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
17013 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17014 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17015 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
17016 testsuite/libgomp.fortran/threadprivate1.f90,
17017 testsuite/libgomp.fortran/threadprivate2.f90,
17018 testsuite/libgomp.fortran/threadprivate3.f90,
17019 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17020 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17021 testsuite/libgomp.fortran/omp_parse3.f90: Change required
17022 effective-target to TLS runtime.
17024 * testsuite/libgomp.fortran/pr25162.f: Require
17025 effective-target TLS runtime.
17027 2005-12-01 Jakub Jelinek <jakub@redhat.com>
17029 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
17030 * testsuite/libgomp.c/nestedfn-3.c: New test.
17032 2005-11-30 Jakub Jelinek <jakub@redhat.com>
17035 * testsuite/libgomp.fortran/pr25162.f: New test.
17037 2005-11-28 Jakub Jelinek <jakub@redhat.com>
17039 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
17040 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
17042 2005-11-25 Jakub Jelinek <jakub@redhat.com>
17044 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
17045 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
17046 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
17047 single.c, team.c, work.c, config/linux/alpha/futex.h,
17048 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
17049 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
17050 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
17051 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
17052 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
17053 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
17054 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
17057 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17059 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
17060 to nodist_noinst_HEADERS.
17061 * Makefile.in: Rebuilt.
17063 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
17064 add integer count field.
17065 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
17066 omp_nest_lock_t type change.
17067 (omp_init_nest_lock): Likewise. Initialize count to 0.
17068 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
17070 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
17072 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
17073 Increment count if successful and return the new nesting level.
17074 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
17075 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
17076 * testsuite/libgomp.c/lib-1.c: New test.
17077 * testsuite/libgomp.fortran/lib1.f90: New test.
17078 * testsuite/libgomp.fortran/lib2.f: New test.
17079 * testsuite/libgomp.fortran/lib3.f: New test.
17081 2005-11-17 Richard Henderson <rth@redhat.com>
17084 * Makefile.am (nodist_toolexeclib_HEADERS): New.
17085 * configure.ac (link_gomp): New. Substitute it.
17086 (AC_CONFIG_FILES): Add libgomp.spec.
17087 * libgomp.spec.in: New file.
17088 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
17089 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
17091 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17093 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
17094 reduction(-:var) behaving the same as reduction(+:var).
17095 * testsuite/libgomp.c/reduction-4.c: New test.
17097 2005-11-15 Uros Bizjak <uros@kss-loka.si>
17099 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
17100 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
17101 testsuite/libgomp.c/copyin-3.c,
17102 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17103 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17104 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
17105 testsuite/libgomp.c++/pr24455.C,
17106 testsuite/libgomp.fortran/threadprivate1.f90,
17107 testsuite/libgomp.fortran/threadprivate2.f90,
17108 testsuite/libgomp.fortran/threadprivate3.f90,
17109 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17110 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17111 testsuite/libgomp.fortran/omp_parse3.f90: Require
17112 effective-target TLS.
17114 2005-11-14 Diego Novillo <dnovillo@redhat.com>
17118 2005-11-13 Jakub Jelinek <jakub@redhat.com>
17121 * team.c (initialize_team): Pass NULL rather than free as
17122 pthread_key_create destructor. Initialize thread specific data
17123 pointer in initial thread to a static local variable rather than
17126 2005-11-11 Uros Bizjak <uros@kss-loka.si>
17128 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
17129 its location to ld_library_path.
17131 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17133 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
17135 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17137 * testsuite/libgomp.c: Rename from libgomp.dg.
17139 2005-11-09 Diego Novillo <dnovillo@redhat.com>
17141 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
17142 threadprivate variable 'i'.
17144 2005-11-09 Jakub Jelinek <jakub@redhat.com>
17146 * config/linux/s390/futex.h: New file.
17147 * configure.tgt: Use it.
17149 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
17150 before the parallel.
17152 2005-11-08 Jakub Jelinek <jakub@redhat.com>
17155 * testsuite/libgomp.c++/master-1.C: New test.
17157 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17159 * testsuite/libgomp.dg/copyin-3.c: New test.
17161 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17163 * testsuite/libgomp.fortran/retval1.f90: New test.
17164 * testsuite/libgomp.fortran/vla7.f90: New test.
17166 2005-11-06 Jakub Jelinek <jakub@redhat.com>
17168 * testsuite/libgomp.fortran/vla2.f90: New test.
17169 * testsuite/libgomp.fortran/vla3.f90: New test.
17170 * testsuite/libgomp.fortran/vla4.f90: New test.
17171 * testsuite/libgomp.fortran/vla5.f90: New test.
17172 * testsuite/libgomp.fortran/vla6.f90: New test.
17174 2005-11-01 Jakub Jelinek <jakub@redhat.com>
17176 * config/linux/sparc/futex.h: New file.
17177 * configure.tgt: Use it.
17178 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
17180 * critical.c: Include stdlib.h.
17181 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
17182 ignoring return value.
17183 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
17184 LIBGOMP_CHECK_SYNC_BUILTINS check.
17185 * configure: Rebuilt.
17187 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17189 * testsuite/libgomp.fortran/vla1.f90: New test.
17191 2005-10-31 Richard Henderson <rth@redhat.com>
17193 * testsuite/libgomp.fortran/character2.f90: Fix race condition
17194 setting 's' in different threads.
17196 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17198 * libgomp.h (attribute_hidden, ialias): Define.
17199 * config/posix/proc.c (omp_get_num_procs): Add ialias.
17200 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
17201 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
17202 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17203 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17204 omp_test_lock, omp_test_nest_lock): Likewise.
17205 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
17206 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17207 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17208 omp_test_lock, omp_test_nest_lock): Likewise.
17209 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
17210 omp_get_dynamic, omp_get_nested): Likewise.
17211 * parallel.c (omp_get_num_threads, omp_get_max_threads,
17212 omp_get_thread_num, omp_in_parallel): Likewise.
17213 * fortran.c (ialias_redirect): Define.
17214 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
17215 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
17216 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
17217 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
17218 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
17219 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
17220 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
17221 omp_get_wtime): Add ialias_redirect.
17223 2005-10-30 Jakub Jelinek <jakub@redhat.com>
17225 * fortran.c: Include stdlib.h.
17227 2005-10-29 Jakub Jelinek <jakub@redhat.com>
17229 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
17230 * Makefile.in: Regenerated.
17232 2005-10-28 Jakub Jelinek <jakub@redhat.com>
17234 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
17235 * libgomp_f.h.in (omp_check_defines): New function.
17236 * env.c: Include libgomp_f.h.
17237 (initialize_env): Call omp_check_defines.
17239 * testsuite/libgomp.dg/copyin-2.c: New test.
17240 * testsuite/libgomp.c++/copyin-2.C: New test.
17241 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
17243 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
17244 * testsuite/libgomp.fortran/sharing2.f90: New test.
17246 * testsuite/libgomp.dg/copyin-1.c: New test.
17247 * testsuite/libgomp.c++/copyin-1.C: New test.
17249 2005-10-26 Jakub Jelinek <jakub@redhat.com>
17251 * testsuite/libgomp.fortran/crayptr1.f90: New test.
17253 * testsuite/libgomp.fortran/workshare1.f90: New test.
17255 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
17257 * libgomp.fortran/sharing1.f90: New test.
17259 2005-10-24 Jakub Jelinek <jakub@redhat.com>
17262 * testsuite/libgomp.c++/loop-7.C: New test.
17264 * testsuite/libgomp.dg/nestedfn-2.c: New test.
17266 * testsuite/libgomp.dg/nestedfn-1.c: New test.
17267 * testsuite/libgomp.fortran/reduction6.f90: New test.
17268 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
17270 2005-10-23 Richard Henderson <rth@redhat.com>
17272 * testsuite/libgomp.c++/ctor-1.C: New.
17273 * testsuite/libgomp.c++/ctor-2.C: New.
17274 * testsuite/libgomp.c++/ctor-3.C: New.
17275 * testsuite/libgomp.c++/ctor-4.C: New.
17276 * testsuite/libgomp.c++/ctor-5.C: New.
17277 * testsuite/libgomp.c++/ctor-6.C: New.
17278 * testsuite/libgomp.c++/ctor-7.C: New.
17279 * testsuite/libgomp.c++/ctor-8.C: New.
17280 * testsuite/libgomp.c++/ctor-9.C: New.
17282 2005-10-21 Diego Novillo <dnovillo@redhat.com>
17285 * testsuite/libgomp.c++/pr24455-1.C: New test.
17286 * testsuite/libgomp.c++/pr24455.C: New test.
17287 * testsuite/libgomp.dg/pr24455-1.c: New test.
17288 * testsuite/libgomp.dg/pr24455.c: New test.
17290 2005-10-20 Richard Henderson <rth@redhat.com>
17292 * testsuite/libgomp.c++/loop-6.C: New.
17293 * testsuite/libgomp.dg/loop-3.c: New.
17295 2005-10-20 Jakub Jelinek <jakub@redhat.com>
17297 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
17298 explicitly private.
17299 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
17302 2005-10-19 Diego Novillo <dnovillo@redhat.com>
17304 * testsuite/libgomp.fortran/jacobi.f: New test.
17306 2005-10-19 Richard Henderson <rth@redhat.com>
17308 * configure.tgt (i?86-linux): Default to with_arch instead of
17309 CFLAGS. Add -mtune to match target_cpu.
17310 (x86_64-linux): Tune to i686.
17312 * fortran.c (omp_test_nest_lock_): Fix typo.
17314 2005-10-19 Jakub Jelinek <jakub@redhat.com>
17316 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
17317 gomp_ordered_sync): Do nothing if team->nthreads == 1.
17318 * testsuite/libgomp.dg/ordered-3.c: New test.
17320 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
17321 Remove volatile keyword.
17323 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
17324 in COMMON block to avoid warnings on 64-bit targets.
17326 2005-10-18 Diego Novillo <dnovillo@redhat.com>
17328 * testsuite/libgomp.dg/shared-3.c: New test.
17330 2005-10-18 Jakub Jelinek <jakub@redhat.com>
17332 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
17333 * testsuite/libgomp.fortran/reduction5.f90: New test.
17335 2005-10-18 Jakub Jelinek <jakub@redhat.com>
17337 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
17339 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
17340 flush loop now that __sync_synchronize has proper memory barrier.
17341 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
17342 Add -ffixed-form to dg-options.
17344 2005-10-17 Diego Novillo <dnovillo@redhat.com>
17346 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
17347 from subdirectories.
17348 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
17349 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
17350 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
17351 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
17352 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
17353 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
17354 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
17355 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
17356 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
17357 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
17358 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
17359 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
17360 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
17361 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
17362 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
17363 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
17364 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
17365 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
17366 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
17367 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
17368 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
17369 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
17370 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
17371 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
17372 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
17374 2005-10-17 Jakub Jelinek <jakub@redhat.com>
17376 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
17377 lang_library_path exists. Use find instead of glob to gather tests.
17378 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
17380 2005-10-17 Diego Novillo <dnovillo@redhat.com>
17382 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
17383 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
17384 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
17385 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
17386 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
17387 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
17388 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
17389 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
17390 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
17391 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
17392 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
17393 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
17394 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
17396 2005-10-15 Jakub Jelinek <jakub@redhat.com>
17398 * testsuite/libgomp.dg/vla-1.c: New test.
17400 * testsuite/libgomp.fortran/reference2.f90: New test.
17402 * testsuite/libgomp.fortran/character2.f90: Remove explicit
17403 declaration of omp_get_thread_num.
17404 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
17407 * testsuite/libgomp.fortran/reduction1.f90: New test.
17408 * testsuite/libgomp.fortran/reduction2.f90: New test.
17409 * testsuite/libgomp.fortran/reduction3.f90: New test.
17410 * testsuite/libgomp.fortran/reduction4.f90: New test.
17412 2005-10-13 Richard Henderson <rth@redhat.com>
17414 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
17415 * Makefile.in: Regenerate.
17416 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
17417 * libgomp.h: Include bar.h.
17418 (struct gomp_barrier): Remove.
17419 (struct gomp_team): Add barrier. Replace master_barrier with
17420 master_release. Replace threads with ordered_release.
17421 (struct gomp_thread): Replace barrier with release.
17422 * ordered.c (gomp_ordered_first): Update for ordered_release change.
17423 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
17424 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
17425 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
17426 (GOMP_single_copy_end): Likewise.
17427 * team.c (gomp_threads_dock): New.
17428 (gomp_barrier_init, gomp_barrier_destroy): Remove.
17429 (gomp_thread_start): Use gomp_barrier_wait.
17430 (new_team, free_team): Update for gomp_team changes.
17431 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
17432 (gomp_team_end): Use gomp_barrier_wait.
17433 (initialize_team): Update for gomp_thread changes.
17434 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
17435 (gomp_work_share_end_nowait): Use atomic ops when available.
17436 * config/linux/bar.c, config/linux/bar.h: New files.
17437 * config/posix/bar.c, config/posix/bar.h: New files.
17439 2005-10-13 Jakub Jelinek <jakub@redhat.com>
17441 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
17442 * testsuite/libgomp.dg/single-2.c: New test.
17444 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
17445 lang_link_flags): Unset, so that they aren't inherited from previously
17448 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
17450 2005-10-12 Richard Henderson <rth@redhat.com>
17452 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
17453 (libgomp_init): Use lang_test_file, lang_library_path, and
17454 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
17456 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
17457 (lang_test_file, lang_link_flags): New.
17458 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
17460 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
17461 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
17462 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
17463 testsuite/libgomp.c++/parallel-1.C,
17464 testsuite/libgomp.c++/reduction-1.C,
17465 testsuite/libgomp.c++/reduction-2.C,
17466 testsuite/libgomp.c++/reduction-3.C,
17467 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
17468 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
17469 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
17470 New files, largely cribbed from the C testsuite.
17472 2005-10-12 Jakub Jelinek <jakub@redhat.com>
17474 * testsuite/libgomp.fortran/character1.f90: New test.
17475 * testsuite/libgomp.fortran/character2.f90: New test.
17477 * testsuite/libgomp.dg/nested-1.c: New test.
17478 * testsuite/libgomp.dg/nested-2.c: New test.
17479 * testsuite/libgomp.fortran/do1.f90: New test.
17480 * testsuite/libgomp.fortran/do2.f90: New test.
17482 * testsuite/libgomp.fortran/reference1.f90: New test.
17484 2005-10-11 Jakub Jelinek <jakub@redhat.com>
17486 * testsuite/libgomp.dg/reduction-1.c: New test.
17487 * testsuite/libgomp.dg/reduction-2.c: New test.
17488 * testsuite/libgomp.dg/reduction-3.c: New test.
17490 2005-10-10 Jakub Jelinek <jakub@redhat.com>
17492 * testsuite/libgomp.dg/atomic-1.c: New test.
17493 * testsuite/libgomp.dg/atomic-2.c: New test.
17495 2005-10-09 Richard Henderson <rth@redhat.com>
17497 * critical.c (atomic_lock): New.
17498 (initialize_critical): Initialize it.
17499 (GOMP_atomic_start, GOMP_atomic_end): New.
17500 * libgomp.map: Export them.
17501 * libgomp_g.h: Declare them.
17503 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
17505 2005-10-02 Richard Henderson <rth@redhat.com>
17507 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
17508 to XCFLAGS instead of CFLAGS.
17510 2005-09-30 Richard Henderson <rth@redhat.com>
17512 * configure.ac: Determine whether -pthread or -lpthread is needed.
17513 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
17514 * Makefile.in, configure: Rebuild.
17516 2005-09-28 Richard Henderson <rth@redhat.com>
17518 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
17519 * testsuite/libgomp.dg/omp-single-3.c: New test.
17521 2005-09-28 Diego Novillo <dnovillo@redhat.com>
17523 * testsuite/libgomp.dg/omp-single-2.c: New test.
17524 * testsuite/libgomp.dg/shared-2.c: Fix return code.
17526 2005-09-27 Richard Henderson <rth@redhat.com>
17528 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
17529 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
17531 2005-09-27 Jakub Jelinek <jakub@redhat.com>
17533 * testsuite/libgomp.dg/omp-loop03.c: New test.
17535 2005-09-27 Diego Novillo <dnovillo@redhat.com>
17537 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
17539 2005-09-27 Diego Novillo <dnovillo@redhat.com>
17541 * testsuite/libgomp.dg/omp-single-1.c: New test.
17542 * testsuite/libgomp.dg/shared-1.c: Return 0.
17543 Add prototype for abort.
17544 * testsuite/libgomp.dg/shared-2.c: Likewise.
17546 2005-09-26 Jakub Jelinek <jakub@redhat.com>
17548 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
17551 2005-09-26 Diego Novillo <dnovillo@redhat.com>
17553 * testsuite/libgomp.dg/shared-1.c: New test.
17554 * testsuite/libgomp.dg/shared-2.c: New test.
17556 2005-09-24 Richard Henderson <rth@redhat.com>
17558 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
17560 2005-09-24 Richard Henderson <rth@redhat.com>
17562 * iter.c (gomp_iter_static_next): Round up when computing number
17563 of iterations. Don't bother distributing a remainder equally.
17565 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
17566 Don't call srand. Zero b before testing.
17569 2005-09-24 Jakub Jelinek <jakub@redhat.com>
17571 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
17572 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
17574 2005-09-23 Jakub Jelinek <jakub@redhat.com>
17576 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
17577 without !$omp end do, followed immediately by subroutine end.
17579 2005-09-23 Diego Novillo <dnovillo@redhat.com>
17581 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
17583 2005-09-22 Richard Henderson <rth@redhat.com>
17585 * critical.c (GOMP_critical_name_start): Change argument to void**.
17586 Reuse the pointer space if the mutex fits.
17587 (GOMP_critical_name_end): Likewise.
17588 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
17589 * libgomp_g.h (GOMP_critical_name_start): Update decl.
17590 (GOMP_critical_name_end): Likewise.
17591 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
17592 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
17594 2005-09-20 Richard Henderson <rth@redhat.com>
17596 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
17597 (create_lock_lock): New.
17598 (initialize_critical): Initialize it.
17599 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
17600 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
17602 2005-09-20 Diego Novillo <dnovillo@redhat.com>
17604 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
17606 2005-09-20 Diego Novillo <dnovillo@redhat.com>
17608 * testsuite/libgomp.dg/omp-loop01.c: New test.
17609 * testsuite/libgomp.dg/omp-loop02.c: New test.
17611 2005-09-20 Jakub Jelinek <jakub@redhat.com>
17613 * configure.ac (AC_PROG_FC): Add.
17614 (USE_FORTRAN): New automake conditional.
17615 * configure: Rebuilt.
17616 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
17617 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
17618 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
17619 Add rules to build them.
17620 * Makefile.in: Rebuilt.
17621 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
17622 OMP_NEST_LOCK_KIND.
17623 * libgomp.map: Add Fortran wrappers.
17624 * libgomp_f.h.in: New file.
17625 * omp_lib.h.in: New file.
17626 * omp_lib.f90.in: New file.
17627 * fortran.c: New file.
17628 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
17629 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
17630 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
17631 libgfortran has been built.
17632 * testsuite/libgomp.fortran/fortran.exp: New file.
17633 * testsuite/libgomp.fortran/omp_cond1.f: New test.
17634 * testsuite/libgomp.fortran/omp_cond2.f: New test.
17635 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
17636 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
17637 * testsuite/libgomp.fortran/omp_hello.f: New test.
17638 * testsuite/libgomp.fortran/omp_orphan.f: New test.
17639 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
17640 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
17641 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
17642 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
17643 * testsuite/libgomp.fortran/omp_reduction.f: New test.
17644 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
17645 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
17647 2005-08-30 Richard Henderson <rth@redhat.com>
17649 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
17650 function for when aliases are not usable.
17651 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
17652 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
17653 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
17654 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
17655 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
17656 GOMP_loop_ordered_guided_next): Likewise.
17657 * ordered.c (GOMP_ordered_start): Likewise.
17659 2005-08-01 Diego Novillo <dnovillo@redhat.com>
17661 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
17662 * testsuite/libgomp.dg/omp_hello.c: Fix return code
17663 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
17664 * testsuite/libgomp.dg/omp_orphan.c: Likewise
17665 * testsuite/libgomp.dg/omp_reduction.c: Likewise
17666 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
17667 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
17668 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
17669 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
17671 2005-07-07 Eric Christopher <echristo@redhat.com>
17672 Diego Novillo <dnovillo@redhat.com>
17674 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
17675 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
17677 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
17678 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
17679 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
17680 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
17681 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
17682 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
17683 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
17685 2005-06-13 Diego Novillo <dnovillo@redhat.com>
17687 * TOPLEVEL.patch: Remove.
17689 2005-05-16 Richard Henderson <rth@redhat.com>
17691 * configure.ac: Test for clock_gettime.
17692 * config.h.in, configure: Rebuild.
17693 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
17694 (omp_get_wtime): Use clock_gettime if available.
17695 (omp_get_wtick): Use clock_getres if available.
17697 2005-05-11 Richard Henderson <rth@redhat.com>
17699 * config/linux/ia64/futex.h: New file.
17700 * configure.tgt: Use it.
17702 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
17704 2005-05-07 Richard Henderson <rth@redhat.com>
17706 * config/linux/powerpc/futex.h: New file.
17707 * configure.tgt: Use it.
17709 * config/linux/i486/futex.h: Merge ...
17710 * config/linux/x86_64/futex.h: ... into ...
17711 * config/linux/x86/futex.h: ... here.
17712 * configure.tgt: Update to match.
17714 2005-05-06 Richard Henderson <rth@redhat.com>
17716 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
17717 * config/linux/i486/futex.h: Likewise.
17718 * config/linux/x86_64/futex.h: Likewise.
17720 * config/linux/lock.c: New file.
17721 * config/linux/omp-lock.h: New file.
17723 * critical.c, env.h: Don't include omp.h
17724 * config/posix/lock.c: Include libgomp.h instead of omp.h.
17725 * config/posix/time.c: Likewise.
17726 * config/posix/omp-lock.h: New file.
17727 * libgomp.h: Include omp-lock.h and omp.h.
17728 * Makefile.am (nodist_include_HEADERS): New.
17730 * configure.ac (PERL): New.
17731 * mkomp_h.pl: New file.
17732 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
17734 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
17736 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
17737 build directory. Re-add -march=i486 hack.
17739 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
17740 (libgomp_link_flags): Remove.
17741 (libgomp_initialized): Remove.
17742 (libgomp_init): Don't protect from reinitialization. Copy code
17743 from libstdc++ for getting the multilib set correctly.
17745 2005-05-05 Richard Henderson <rth@redhat.com>
17747 * config/linux/alpha/futex.h: New file.
17748 * configure.tgt (alpha*-*-linux*): Use it.
17750 * config/posix/mutex.c: New file.
17751 * config/posix/sem.c: Use libgomp.h.
17753 * configure.tgt (x86_64-linux): Also test CC for -m32.
17754 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
17756 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
17759 * Makefile.am (SUBDIRS): New.
17760 (libgomp_la_LDFLAGS): Add -lpthread.
17761 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
17762 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
17764 * libgomp_g.h: New file.
17765 * libgomp.h: Split out all public declarations to libgomp_g.h.
17766 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
17767 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
17768 * config/linux/sem.h: Likewise.
17769 * config/posix/sem.h: Likewise.
17771 * Makefile.am (AM_LDFLAGS): New.
17772 (libgomp_version_script): Split out from ...
17773 (libgomp_la_LDFLAGS): ... here.
17774 (libgomp_version_info): New.
17775 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
17776 (LIBGOMP_ENABLE): New.
17777 (LIBGOMP_CHECK_LINKER_FEATURES): New.
17778 (LIBGOMP_ENABLE_SYMVERS): New.
17779 * configure.ac (AC_INIT): Version 1.0.
17780 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
17781 (enable-linux-futex): Likewise. Rename from enable-futex.
17782 (libtool_VERSION): New.
17783 (LIBGOMP_ENABLE_SYMVERS): Use it.
17784 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
17785 * Makefile.in, aclocal.m4, configure: Rebuild.
17787 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
17788 (gomp_mutex_unlock_slow): Fix typo.
17789 * config/linux/sem.c: Similarly.
17790 (gomp_sem_post_slow): Fix typo.
17791 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
17792 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
17793 [__PIC__] (sys_futex0): Don't use tmp output in asm.
17795 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
17796 (libgomp_la_LDFLAGS): Add top_srcdir to path.
17797 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
17798 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
17799 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
17800 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
17801 LDFLAGS. Pull enable_futex check to top-level.
17802 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
17803 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
17805 First attempt at real configury.
17806 * Makefile, config.h: Remove file.
17807 * Makefile.am, Makefile.in: New file.
17808 * acinclude.m4 aclocal.m4: New file.
17809 * configure.ac, configure.tgt, configure: New file.
17811 * config/posix/lock.c: Rename from sys-lock.c.
17812 * config/posix/mutex.h: Rename from sys-mutex.h.
17813 * config/posix/sem.c: Rename from sys-sem.c.
17814 * config/posix/sem.h: Rename from sys-sem.h.
17815 * config/posix/proc.c: Rename from sys-proc.c.
17816 * config/posix/time.c: Rename from sys-proc.c.
17818 * config/linux/mutex.c: New file.
17819 * config/linux/mutex.h: New file.
17820 * config/linux/sem.c: New file.
17821 * config/linux/sem.h: New file.
17822 * config/linux/i486/futex.h: New file.
17823 * config/linux/x86_64/futex.h: New file.
17825 2005-05-04 Richard Henderson <rth@redhat.com>
17827 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
17828 * libgomp.h: Declare them.
17829 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
17830 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
17832 2005-05-04 Richard Henderson <rth@redhat.com>
17834 * libgomp-1 code drop
17836 2005-05-04 Richard Henderson <rth@redhat.com>
17838 * iter.c (gomp_iter_static_next): Return tri-state on 0.
17839 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
17840 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
17841 (gomp_iter_static_next): Update.
17842 (gomp_ordered_static_next): Update.
17843 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
17844 (gomp_loop_ordered_static_start): Likewise. Exit early for a
17845 totally empty range.
17846 (gomp_loop_ordered_static_next): Refine test for calling
17847 gomp_ordered_static_next.
17848 * testsuite/ordered-1.c: Add case for more threads than iterations.
17850 * iter.c (gomp_iter_runtime_next_locked): Remove.
17851 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
17852 gomp_loop_guided_start, gomp_loop_ordered_static_start,
17853 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
17854 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
17855 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
17856 gomp_loop_ordered_guided_next): Downcase name, make static, add
17857 an external alias with the old name.
17858 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
17859 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
17860 switch and call one of the above static functions.
17861 * libgomp.h: Update.
17863 * work.c (gomp_work_share_start): Lock the mutex for !first too.
17864 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
17865 GOMP_loop_guided_start, GOMP_loop_runtime_start,
17866 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
17867 GOMP_loop_ordered_guided_start): Update to match.
17868 * sections.c (GOMP_sections_start): Likewise.
17869 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
17871 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
17872 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
17873 Use bounds check instead of modulus.
17874 (gomp_ordered_sync): Split out of GOMP_ordered_start.
17875 (gomp_ordered_last): Don't sync with ordered_owner here.
17876 (gomp_ordered_next): Likewise.
17877 (gomp_ordered_static_loop_next): Likewise.
17878 * loop.c, libgomp.h: Update to match.
17880 * libgomp.h (GOMP_barrier): Declare.
17882 * testsuite/barrier-1.c: New file.
17883 * testsuite/critical-1.c: New file.
17884 * testsuite/ordered-2.c: New file.
17885 * testsuite/ordered-1.c: New file.
17886 * testsuite/sections-1.c: New file.
17887 * testsuite/single-1.c: New file.
17888 * testsuite/Makefile (TESTS): Add them.
17890 2005-05-04 Richard Henderson <rth@redhat.com>
17892 * libgomp.h (struct gomp_work_share): Add ordered_owner.
17893 * loop.c (GOMP_loop_static_start): If not the startup thread,
17894 acquire the mutex to wait for initialization complete.
17895 (GOMP_loop_ordered_static_start): Likewise.
17896 (GOMP_loop_ordered_runtime_start): Likewise.
17897 (GOMP_loop_ordered_static_first): Remove.
17898 (GOMP_loop_ordered_dynamic_first): Remove.
17899 (GOMP_loop_ordered_guided_first): Remove.
17900 (GOMP_loop_ordered_runtime_first): Remove.
17901 * ordered.c (gomp_ordered_loop_first): Post to own release when
17902 we're the first thread.
17903 (gomp_ordered_loop_last): Wait on release if not owner.
17904 (gomp_ordered_loop_next): Likewise.
17905 (gomp_ordered_static_loop_init): New.
17906 (gomp_ordered_static_loop_next): Use ordered_owner.
17907 (GOMP_ordered_start): Likewise.
17908 * work.c (gomp_new_work_share): Initialize ordered_owner.
17910 2005-05-03 Richard Henderson <rth@redhat.com>
17912 * Makefile (OPT): New.
17915 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
17916 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
17917 * libgomp.h, libgomp.map, NOTES: Update to match.
17919 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
17920 Add initialized and thr members.
17921 (gomp_thread_start): Pause when initially spawned to wait for
17922 the whole team to be created.
17923 (gomp_team_start): Release team members at the end.
17925 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
17926 (f_foo_1): Use GOMP_loop_end.
17927 (f_foo_2): Use GOMP_loop_end_nowait.
17929 * testsuite/loop-2.c: New file.
17930 * testsuite/Makefile (TESTS): Add it.
17932 2005-05-03 Richard Henderson <rth@redhat.com>
17934 * iter.c (gomp_iter_static_next): Fix overflow check typo.
17935 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
17936 * team.c (new_team): Initialize oldest_live_gen to 1 if no
17937 initial work_share.
17939 * testsuite/Makefile: New file.
17940 * testsuite/loop-1.c: New file.
17942 2005-05-03 Richard Henderson <rth@redhat.com>
17944 Initial implementation and checkin.
17946 Copyright (C) 2005-2022 Free Software Foundation, Inc.
17948 Copying and distribution of this file, with or without modification,
17949 are permitted in any medium without royalty provided the copyright
17950 notice and this notice are preserved.