1 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
3 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
5 2022-10-04 Jakub Jelinek <jakub@redhat.com>
7 * libgomp.texi (Support begin/end declare target syntax in C/C++):
10 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
13 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
15 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
17 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
18 for C/C++. Remove duplicated 'begin declare target' entry.
20 2022-09-24 Jakub Jelinek <jakub@redhat.com>
23 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
25 2022-09-14 Julian Brown <julian@codesourcery.com>
27 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
28 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
29 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
30 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
31 test to here, make "run" test.
33 2022-09-13 Jakub Jelinek <jakub@redhat.com>
36 * env.c (get_icv_member_addr): Cast false to void * before assigning
37 it to icv_addr[1], and comment the whole assignment out.
39 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
41 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
44 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
46 * libgomp.texi (Offload-Target Specifics: nvptx): Document
47 that reverse offload requires >= -march=sm_35.
48 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
50 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
51 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
52 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
53 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
54 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
56 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
58 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
59 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
61 2022-09-12 Jakub Jelinek <jakub@redhat.com>
64 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
65 (main): Avoid tests for which corresponding non-_ALL suffixed variable
66 is in the environment, or for OMP_NUM_TEAMS on the device
69 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
71 * env.c (initialize_env): Include libiberty environ.h.
73 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
75 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
76 function address table '$offload_func_table' if rev_fn_table
79 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
81 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
82 .offload_func_table to populate rev_fn_table when requested.
84 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
86 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
87 'uint64_t **rev_fn_table' argument.
88 * oacc-host.c (host_load_image): Likewise.
89 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
91 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
92 * target.c (gomp_load_image_to_device): Update call but pass
95 2022-09-09 Jakub Jelinek <jakub@redhat.com>
98 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
99 char * for dest[1] initialization from params[1]. Formatting fixes.
101 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
104 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
106 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
108 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
109 section; move OpenMP Context Selectors from ...
110 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
113 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
115 * config/gcn/icv-device.c (omp_get_default_device): Return device-
117 (omp_get_max_teams): Added for GCN devices.
118 (omp_set_num_teams): Likewise.
120 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
122 (omp_get_max_teams): Added for NVPTX devices.
123 (omp_set_num_teams): Likewise.
125 * env.c (struct gomp_icv_list): New struct to store entries of initial
127 (struct gomp_offload_icv_list): New struct to store entries of device-
128 specific ICV values that are copied to the device and back.
129 (struct gomp_default_icv_values): New struct to store default values of
130 ICVs according to the OpenMP standard.
131 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
132 (print_env_var_error): Function that prints an error for invalid values
134 (parse_unsigned_long_1): Removed getenv. Generalized.
135 (parse_unsigned_long): Likewise.
136 (parse_int_1): Likewise.
137 (parse_int): Likewise.
138 (parse_int_secure): Likewise.
139 (parse_unsigned_long_list): Likewise.
140 (parse_target_offload): Likewise.
141 (parse_bind_var): Likewise.
142 (parse_stacksize): Likewise.
143 (parse_boolean): Likewise.
144 (parse_wait_policy): Likewise.
145 (parse_allocator): Likewise.
146 (omp_display_env): Extended to output different variants of environment
148 (print_schedule): New helper function for omp_display_env which prints
149 the values of run_sched_var.
150 (print_proc_bind): New helper function for omp_display_env which prints
151 the values of proc_bind_var.
152 (enum gomp_parse_type): Collection of types used for parsing environment
154 (ENTRY): Preprocess string lengths of environment variables.
155 (OMP_VAR_CNT): Preprocess table size.
156 (OMP_HOST_VAR_CNT): Likewise.
157 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
159 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
160 (gomp_set_icv_flag): Sets a flag for a particular ICV.
161 (print_device_specific_icvs): New helper function for omp_display_env to
162 print device specific ICV values.
163 (get_device_num): New helper function for parse_device_specific.
164 Extracts the device number from an environment variable name.
165 (get_icv_member_addr): Gets the memory address for a particular member
167 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
168 (initialize_icvs): New function to initialize a gomp_initial_icvs
170 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
171 (startswith): Checks if a string starts with a given prefix.
172 (initialize_env): Extended to parse the new syntax of environment
174 * icv-device.c (omp_get_max_teams): Added.
176 (omp_set_num_teams): Likewise.
177 * icv.c (omp_set_num_teams): Moved to icv-device.c.
178 (omp_get_max_teams): Likewise.
180 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
181 (GOMP_ADDITIONAL_ICVS): New target-side struct that
182 holds the designated ICVs of the target device.
183 * libgomp.h (enum gomp_icvs): Collection of ICVs.
184 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
186 (enum gomp_env_suffix): Collection of possible suffixes of environment
188 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
190 (struct gomp_default_icv):New struct to hold ICVs for which we need
191 to store initial values.
192 (struct gomp_icv_list): Definition of a linked list that is used for
193 storing ICVs for the devices and also for _DEV, _ALL, and without
195 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
197 (struct gomp_offload_icv_list): Definition of a linked list that holds
198 device-specific ICVs that are copied to devices.
199 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
200 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
201 * libgomp.texi: Updated.
202 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
203 further ICVs from the offload image.
204 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
205 * target.c (gomp_get_offload_icv_item): Get a list item of
206 gomp_offload_icv_list.
207 (get_gomp_offload_icvs): New. Returns the ICV values
208 depending on the device num and the variable hierarchy.
209 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
210 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
211 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
212 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
213 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
214 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
215 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
217 2022-09-08 Jakub Jelinek <jakub@redhat.com>
219 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
221 * testsuite/libgomp.c/doacross-4.c: New test.
222 * testsuite/libgomp.c/doacross-5.c: New test.
223 * testsuite/libgomp.c/doacross-6.c: New test.
224 * testsuite/libgomp.c/doacross-7.c: New test.
226 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
228 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
230 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
232 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
234 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
235 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
236 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
237 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
239 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
242 * testsuite/libgomp.c/linear-2.c: New test.
244 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
246 * splay-tree.h: Fix splay_* macro unsetting if
247 splay_tree_prefix is defined.
249 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
251 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
253 2022-07-29 Jakub Jelinek <jakub@redhat.com>
256 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
258 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
260 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
262 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
265 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
266 'offloading_enabled' diagnostics issue.
268 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
270 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
271 '_Pragma' diagnostics verification.
273 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
275 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
276 improved warning locations.
277 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
279 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
281 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
282 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
283 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
284 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
285 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
287 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
289 * target.c (GOMP_offload_register, GOMP_offload_unregister):
290 Denote as legacy entry points.
291 * testsuite/lib/libgomp.exp
292 (check_effective_target_offload_target_any): New proc.
293 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
294 'offload_target_any'.
295 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
296 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
297 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
299 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
301 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
302 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
304 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
306 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
308 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
310 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
312 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
314 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
315 Jakub Jelinek <jakub@redhat.com>
317 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
319 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
320 Chung-Lin Tang <cltang@codesourcery.com>
321 Thomas Schwinge <thomas@codesourcery.com>
323 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
324 omp_requires_mask arg.
325 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
326 return -1 when device available but omp_requires_mask != 0.
327 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
328 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
330 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
331 goacc_attach_host_thread_to_device, acc_get_num_devices,
332 acc_set_device_num, get_property_any): Likewise.
333 * target.c (omp_requires_mask): New global var.
334 (gomp_requires_to_name): New.
335 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
336 (gomp_target_init): Handle omp_requires_mask.
337 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
338 (OpenMP 5.1): Add a missed item.
339 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
340 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
341 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
342 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
343 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
344 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
345 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
346 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
347 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
348 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
349 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
350 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
351 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
352 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
353 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
354 * testsuite/libgomp.fortran/requires-1.f90: New test.
356 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
358 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
359 with fromto as implemented.
361 2022-06-28 Martin Liska <mliska@suse.cz>
363 * acinclude.m4: Fix typo in mold linker detection.
364 * Makefile.in: Regenerate.
365 * configure: Regenerate.
367 2022-06-21 Jakub Jelinek <jakub@redhat.com>
368 Paul Iannetta <piannetta@kalrayinc.com>
371 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
373 2022-06-17 Martin Liska <mliska@suse.cz>
375 * libgomp.texi: Add table header for new features of
378 2022-06-15 Jakub Jelinek <jakub@redhat.com>
380 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
381 q to ddress of an automatic variable. Use -5 instead of -1 in
382 omp_get_mapped_ptr call. Add test with omp_initial_device.
383 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
384 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
385 Renumber stop arguments afterwards.
387 2022-06-13 Jakub Jelinek <jakub@redhat.com>
389 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
390 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
392 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
393 * target.c (resolve_device): Add remapped argument, handle
394 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
395 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
396 if remapped, otherwise treat omp_initial_device that way. For
397 omp_invalid_device, always emit gomp_fatal, even when
398 OMP_TARGET_OFFLOAD isn't mandatory.
399 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
400 GOMP_target_update, GOMP_target_update_ext,
401 GOMP_target_enter_exit_data): Pass true as remapped argument to
403 (omp_target_alloc, omp_target_free, omp_target_is_present,
404 omp_target_memcpy_check, omp_target_associate_ptr,
405 omp_target_disassociate_ptr, omp_get_mapped_ptr,
406 omp_target_is_accessible): Pass false as remapped argument to
407 resolve_device. Treat omp_initial_device the same as
408 gomp_get_num_devices (). Don't bypass resolve_device calls if
409 device_num is negative.
410 (omp_pause_resource): Treat omp_initial_device the same as
411 gomp_get_num_devices (). Call resolve_device.
412 * icv-device.c (omp_set_default_device): Always set to device_num
413 even when it is negative.
414 * libgomp.texi: Document that Conforming device numbers,
415 omp_initial_device and omp_invalid_device is implemented.
416 * testsuite/libgomp.c/target-41.c (main): Add test with
418 * testsuite/libgomp.c/target-45.c: New test.
419 * testsuite/libgomp.c/target-46.c: New test.
420 * testsuite/libgomp.c/target-47.c: New test.
421 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
422 test with omp_initial_device. Use -5 instead of -1 for negative value
424 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
425 Likewise. Reorder stop numbers.
427 2022-06-10 Jakub Jelinek <jakub@redhat.com>
429 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
430 rather than "libmemkind.so".
432 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
434 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
435 * plugin/configfrag.ac (--with-cuda-driver)
436 (--with-cuda-driver-include, --with-cuda-driver-lib)
437 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
438 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
440 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
441 (cuda_driver_lib): Remove.
442 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
443 * Makefile.in: Regenerate.
444 * configure: Likewise.
445 * testsuite/Makefile.in: Likewise.
447 2022-06-09 Jakub Jelinek <jakub@redhat.com>
449 * config/linux/allocator.c: Fix up #include directive.
451 2022-06-09 Jakub Jelinek <jakub@redhat.com>
453 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
454 (enum gomp_memkind_kind): New type.
455 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
457 (struct gomp_memkind_data): New type.
458 (memkind_data, memkind_data_once): New variables.
459 (gomp_init_memkind, gomp_get_memkind): New functions.
460 (omp_init_allocator): Initialize data.memkind, don't fail for
461 omp_high_bw_mem_space if libmemkind supports it.
462 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
463 memkind support of LIBGOMP_USE_MEMKIND is defined.
464 * config/linux/allocator.c: New file.
466 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
468 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
469 * testsuite/libgomp.fortran/scope-2.f90: New test.
471 2022-06-02 David Malcolm <dmalcolm@redhat.com>
473 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
475 2022-05-31 Jakub Jelinek <jakub@redhat.com>
477 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
478 scope construct with allocate clause.
479 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
480 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
482 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
484 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
485 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
486 explicit 'to' and 'enter' clause.
487 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
489 2022-05-28 Jakub Jelinek <jakub@redhat.com>
492 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
493 defined(HAVE__ALIGNED_MALLOC) case.
494 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
495 handling as last option before fallback instead of first.
496 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
499 2022-05-27 Jakub Jelinek <jakub@redhat.com>
501 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
503 * testsuite/libgomp.c/target-41.c: Likewise.
505 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
507 * libgomp.texi (Other new OpenMP 5.1 features): Add
508 'begin declare target'.
509 (Other new OpenMP 5.2 features): New.
511 2022-05-25 Jakub Jelinek <jakub@redhat.com>
513 * task.c (gomp_task_run_post_handle_dependers): If empty_task
514 is the last task taskwait depend depends on, wake it up.
515 Similarly if it is the last child of a taskgroup, use atomic
516 store instead of decrement and awak taskgroup wait if any.
517 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
519 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
521 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
522 EF_AMDGPU_MACH_AMDGCN_GFX90a.
524 (isa_hsa_name): Support gfx90a.
525 (isa_code): Likewise.
527 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
530 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
531 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
533 2022-05-24 Jakub Jelinek <jakub@redhat.com>
536 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
537 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
538 * task.c (empty_task): New function.
539 (gomp_task_run_post_handle_depend_hash): Declare earlier.
540 (gomp_task_run_post_handle_depend): Declare.
541 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
543 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
544 (GOMP_taskwait_depend_nowait): New function.
545 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
547 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
550 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
551 Support attach for GOMP_MAP_FIRSTPRIVATE.
552 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
553 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
554 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
556 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
558 * libgomp.map: Added omp_target_memcpy_async and
559 omp_target_memcpy_rect_async.
560 * libgomp.texi: Both functions are now supported.
561 * omp.h.in: Added omp_target_memcpy_async and
562 omp_target_memcpy_rect_async.
563 * omp_lib.f90.in: Added interfaces for both new functions.
564 * omp_lib.h.in: Likewise.
565 * target.c (ialias_redirect): Added for GOMP_task.
566 (omp_target_memcpy): Restructured into check and copy part.
567 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
568 omp_target_memcpy_async that checks requirements.
569 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
570 omp_target_memcpy_async that performs the memcpy.
571 (omp_target_memcpy_async_helper): New helper function that is used in
572 omp_target_memcpy_async for the asynchronous task.
573 (omp_target_memcpy_async): Added.
574 (omp_target_memcpy_rect): Restructured into check and copy part.
575 (omp_target_memcpy_rect_check): New helper function for
576 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
578 (omp_target_memcpy_rect_copy): New helper function for
579 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
581 (omp_target_memcpy_rect_async_helper): New helper function that is used
582 in omp_target_memcpy_rect_async for the asynchronous task.
583 (omp_target_memcpy_rect_async): Added.
584 * task.c (ialias): Added for GOMP_task.
585 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
586 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
587 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
588 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
589 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
590 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
591 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
592 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
594 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
596 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
597 (OpenMP Context Selectors): Add missing comma.
598 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
599 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
600 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
601 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
603 2022-05-17 Jakub Jelinek <jakub@redhat.com>
605 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
606 comment for omp_display_env feature.
608 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
610 * libgomp.texi (Offload-Target Specifics): New chapter; add section
611 to document OpenMP context selectors.
613 2022-05-17 Jakub Jelinek <jakub@redhat.com>
615 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
616 from bool to unsigned char.
617 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
618 Ignore dependencies where
619 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
620 rather than just task->depend[i].is_in && ent->is_in. Remember
621 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
623 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
624 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
625 rather than just elem.is_in && ent->is_in.
626 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
627 inoutset depend-kind.
628 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
629 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
630 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
632 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
634 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
636 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
638 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
639 * testsuite/libgomp.fortran/depend-5.f90: New test.
640 * testsuite/libgomp.fortran/depend-6.f90: New test.
641 * testsuite/libgomp.fortran/depend-7.f90: New test.
643 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
645 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
646 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
647 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
649 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
651 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
653 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
655 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
657 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
659 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
660 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
661 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
662 append '$(PLUGIN_NVPTX_LDFLAGS)'.
663 * Makefile.in: Regenerate.
665 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
667 * Makefile.am (libgomp_la_LIBADD): Initialize.
668 * plugin/configfrag.ac (DL_LIBS): New.
669 (PLUGIN_GCN_LIBS): Remove.
670 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
671 * plugin/Makefrag.am (libgomp_la_LIBADD)
672 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
673 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
674 * Makefile.in: Regenerate.
675 * config.h.in: Likewise.
676 * configure: Likewise.
677 * testsuite/Makefile.in: Likewise.
679 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
681 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
682 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
683 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
684 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
685 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
686 'PLUGIN_NVPTX_LINK_LIBCUDA'.
687 * Makefile.in: Regenerate.
688 * config.h.in: Likewise.
689 * configure: Likewise.
691 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
693 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
694 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
695 * Makefile.in: Regenerate.
696 * config.h.in: Likewise.
697 * configure: Likewise.
698 * testsuite/Makefile.in: Likewise.
700 2022-05-12 Jakub Jelinek <jakub@redhat.com>
702 * libgomp.h (struct gomp_task): Add depend_all_memory member.
703 * task.c (gomp_init_task): Initialize depend_all_memory.
704 (gomp_task_handle_depend): Handle omp_all_memory.
705 (gomp_task_run_post_handle_depend_hash): Clear
706 parent->depend_all_memory if equal to current task.
707 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
708 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
709 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
710 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
712 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
714 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
715 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
716 * Makefile.in: Regenerate.
717 * configure: Likewise.
718 * testsuite/Makefile.in: Likewise.
720 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
722 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
723 consider 'PLUGIN_GCN_CPPFLAGS'.
724 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
725 'PLUGIN_GCN_LDFLAGS'.
726 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
728 * Makefile.in: Regenerate.
729 * configure: Likewise.
730 * testsuite/Makefile.in: Likewise.
732 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
734 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
735 (HSA_RUNTIME_LDFLAGS): Remove.
736 * configure: Regenerate.
738 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
740 * testsuite/lib/libgomp.exp (libgomp_init): Don't
741 'append always_ld_library_path ":$hsa_runtime_lib"'.
742 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
744 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
746 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
747 multi-device testing.
749 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
751 * libgomp.map: Added omp_target_is_accessible.
752 * libgomp.texi: Tagged omp_target_is_accessible as supported.
753 * omp.h.in: Added omp_target_is_accessible.
754 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
755 * omp_lib.h.in: Likewise.
756 * target.c (omp_target_is_accessible): Added implementation of
757 omp_target_is_accessible.
758 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
759 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
761 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
763 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
765 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
767 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
769 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
771 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
773 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
775 * libgomp.map: Added omp_get_mapped_ptr.
776 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
777 * omp.h.in: Added omp_get_mapped_ptr.
778 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
779 * omp_lib.h.in: Likewise.
780 * target.c (omp_get_mapped_ptr): Added implementation of
782 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
783 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
784 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
785 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
786 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
787 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
788 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
789 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
791 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
794 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
795 privatization scanning. For GCN offloading compilation, raise
796 '-mgang-private-size'.
798 2022-04-26 Jakub Jelinek <jakub@redhat.com>
801 * work.c (gomp_init_work_share): Don't mask of adjustment for
802 dynamic long long realignment if struct gomp_work_share has smaller
803 alignof than long long.
804 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
805 struct gomp_work_share has smaller alignof than long long or if
806 sizeof (struct gomp_work_share) is smaller than
807 INLINE_ORDERED_TEAM_IDS_OFF.
808 * loop_ull.c (GOMP_loop_ull_start): Likewise.
809 * sections.c (GOMP_sections2_start): Likewise.
811 2022-04-25 Jakub Jelinek <jakub@redhat.com>
812 Thomas Schwinge <thomas@codesourcery.com>
815 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
817 2022-04-13 Jakub Jelinek <jakub@redhat.com>
819 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
821 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
823 * plugin/cuda/cuda.h: Remove file.
824 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
825 "cuda/cuda.h" instead of <cuda.h>.
826 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
827 'PLUGIN_NVPTX_CPPFLAGS'.
828 * configure: Regenerate.
830 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
832 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
834 2022-04-04 Tom de Vries <tdevries@suse.de>
836 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
837 on_device_arch_nvptx instead of offload_target_nvptx.
838 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
840 2022-04-01 Tom de Vries <tdevries@suse.de>
842 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
844 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
846 2022-04-01 Tom de Vries <tdevries@suse.de>
848 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
851 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
852 Lulu Cheng <chenglulu@loongson.cn>
854 * configure.tgt: Add LoongArch triplet.
856 2022-03-28 Tom de Vries <tdevries@suse.de>
858 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
859 instead of /libexec/.
860 * configure: Regenerate.
862 2022-03-25 Tom de Vries <tdevries@suse.de>
865 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
867 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
868 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
870 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
873 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
874 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
875 * testsuite/libgomp.c++/target-same-name-2.C: New test.
876 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
877 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
878 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
880 2022-03-22 Tom de Vries <tdevries@suse.de>
884 * testsuite/libgomp.c/pr104783-2.c: New test.
886 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
889 * testsuite/libgomp.fortran/associate4.f90: New test.
891 2022-03-18 Tom de Vries <tdevries@suse.de>
894 * testsuite/libgomp.c/pr104952-1.c: New test.
895 * testsuite/libgomp.c/pr104952-2.c: New test.
897 2022-03-18 Jakub Jelinek <jakub@redhat.com>
899 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
900 variable next to pl variable.
902 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
904 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
906 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
907 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
909 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
912 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
913 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
915 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
917 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
918 omp_set_max_active_levels.
919 * testsuite/libgomp.fortran/icv-8.f90: New test.
921 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
924 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
926 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
928 * libgomp.texi: Fix typo.
930 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
934 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
935 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
936 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
938 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
940 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
941 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
942 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
945 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
948 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
950 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
951 enable '--param=openacc-kernels=decompose' and adjust.
952 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
954 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
955 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
958 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
961 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
962 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
963 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
964 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
966 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
970 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
972 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
974 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
976 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
979 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
981 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
982 trait. Test last index in w and v array. Remove redundant
983 assignment to V(1). Move alignment checks at the end of
986 2022-03-10 Tom de Vries <tdevries@suse.de>
988 * testsuite/libgomp.c/pr104783.c: New test.
990 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
995 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
997 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
999 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1001 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1003 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1005 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1007 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1009 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1011 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1013 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1015 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1017 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1019 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1021 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1023 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1024 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1025 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1027 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
1030 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
1031 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1032 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1033 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
1035 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1038 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
1039 expected diagnostics.
1041 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1043 PR middle-end/104784
1044 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1045 Test with '--param=openacc-kernels=decompose'.
1046 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1048 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1050 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1052 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1054 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1056 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1058 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1060 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1062 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1064 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1066 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1068 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1070 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1072 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1074 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1076 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1078 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1080 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1082 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1084 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1086 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1088 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1090 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1092 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1094 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1096 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1098 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1100 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1102 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1104 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1106 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1108 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1111 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1113 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1114 Test '-fopt-info-omp-all'.
1115 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1117 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1119 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1121 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1123 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1125 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1127 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1129 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1131 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1133 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1135 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1137 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1139 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1141 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1143 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1145 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1147 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1149 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1151 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1153 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1155 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1157 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1159 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1161 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1163 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1165 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1167 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1169 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1171 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1173 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1175 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1177 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1180 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1182 PR middle-end/100280
1183 PR middle-end/104132
1184 PR middle-end/104133
1185 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1188 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1190 PR middle-end/100280
1191 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1192 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1195 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1197 PR middle-end/100280
1198 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1199 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1202 2022-02-28 Tom de Vries <tdevries@suse.de>
1204 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
1205 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
1206 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
1207 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
1208 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
1209 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
1211 2022-02-24 Tom de Vries <tdevries@suse.de>
1213 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
1214 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
1215 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
1216 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
1217 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
1218 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
1219 * testsuite/libgomp.c/declare-variant-3.h: New header file.
1221 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
1223 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
1224 gang-redundant execution.
1226 2022-02-22 Tom de Vries <tdevries@suse.de>
1229 * config/nvptx/bar.c (generation_to_barrier): New function, copied
1230 from config/rtems/bar.c.
1231 (futex_wait, futex_wake): New function.
1232 (do_spin, do_wait): New function, copied from config/linux/wait.h.
1233 (gomp_barrier_wait_end, gomp_barrier_wait_last)
1234 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
1235 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
1236 and replace with include of config/linux/bar.c.
1237 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
1238 (gomp_barrier_init): Init new fields.
1239 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
1241 * testsuite/libgomp.c/pr99555-1.c: Same.
1242 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
1244 2022-02-22 Tom de Vries <tdevries@suse.de>
1247 * testsuite/libgomp.c++/pr96390.C: Add additional-option
1248 -foffload=-Wa,--verify for nvptx.
1249 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
1251 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
1253 * testsuite/libgomp.fortran/depend-4.f90: New test.
1255 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
1258 * testsuite/libgomp.c++/target-virtual-1.C: New test.
1260 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
1262 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
1263 * target.c (copy_firstprivate_data): Copy only if host address is not
1265 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
1266 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
1267 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
1268 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
1269 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
1270 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
1271 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
1272 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
1273 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
1274 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
1276 2022-02-08 Jakub Jelinek <jakub@redhat.com>
1279 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
1281 * testsuite/libgomp.c/pr104385.c: New test.
1283 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1285 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
1286 STOP of previous commit.
1288 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1290 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
1291 from is_64bit_aligned_.
1292 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
1293 and use it, more implicit none, remove unused argument.
1295 2022-02-03 David Seifert <soap@gentoo.org>
1296 Jakub Jelinek <jakub@redhat.com>
1298 * configure.ac: Support --disable-werror.
1299 * configure: Regenerate.
1301 2022-02-01 Tom de Vries <tdevries@suse.de>
1303 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
1305 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
1306 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
1308 2022-02-01 Tom de Vries <tdevries@suse.de>
1310 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
1311 num_workers for nvidia accelerator to fix libgomp error 'insufficient
1313 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1315 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
1317 2022-02-01 Tom de Vries <tdevries@suse.de>
1319 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1321 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1323 2022-01-31 Martin Liska <mliska@suse.cz>
1325 * acinclude.m4: Detect *_ld_is_mold and use it.
1326 * configure: Regenerate.
1328 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
1330 * libgomp.texi (OpenMP 5.0): Update implementation status.
1332 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
1334 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
1335 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1336 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1337 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1338 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1339 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1340 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1341 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1342 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1343 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1344 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1345 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
1346 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
1347 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1348 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
1350 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
1352 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
1353 "static") to make the device num available in the offload image.
1355 2022-01-19 Martin Liska <mliska@suse.cz>
1356 Thomas Schwinge <thomas@codesourcery.com>
1358 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
1360 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1361 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1363 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1364 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1365 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1366 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1367 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
1369 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
1371 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
1373 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
1375 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
1377 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1379 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1380 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1381 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1383 2022-01-18 Martin Liska <mliska@suse.cz>
1385 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
1387 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1388 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1389 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1390 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1391 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1392 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1393 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
1394 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
1395 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
1396 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
1397 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
1398 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
1399 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1400 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1401 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1403 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
1405 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
1406 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1407 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1409 2022-01-17 Julian Brown <julian@codesourcery.com>
1410 Thomas Schwinge <thomas@codesourcery.com>
1412 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
1413 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
1414 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
1416 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1417 Andrew Stubbs <ams@codesourcery.com>
1419 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
1420 the number of teams and threads if necessary.
1421 (gcn_exec): Automatically set the number of gangs and workers if
1424 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
1426 * testsuite/libgomp.fortran/allocate-1.c: New test.
1427 * testsuite/libgomp.fortran/allocate-1.f90: New test.
1428 * libgomp.texi: Remove string that says that allocate clause
1429 support is for C/C++ only.
1431 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1433 * testsuite/libgomp.c-c++-common/on_device_arch.h
1434 (any_device_arch, any_device_arch_intel_mic): New.
1435 * testsuite/lib/libgomp.exp
1436 (check_effective_target_offload_device_any_intel_mic): New.
1437 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
1438 * testsuite/libgomp.fortran/target10.f90: Likewise.
1440 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1442 PR tree-optimization/102192
1443 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
1444 '-Wuninitialized' diagnostics.
1446 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1448 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
1449 current '-Wuninitialized' diagnostics.
1450 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
1451 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
1452 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
1453 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
1454 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1455 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
1456 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
1457 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1458 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1459 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1460 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
1463 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1465 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
1466 for 'offload_device_intel_mic'.
1468 2022-01-13 Julian Brown <julian@codesourcery.com>
1469 Thomas Schwinge <thomas@codesourcery.com>
1471 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
1472 offloading execution XFAIL.
1474 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1476 PR middle-end/100280
1477 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1479 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1480 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1483 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1485 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1487 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1489 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
1490 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1491 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
1492 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
1493 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1495 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1496 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1497 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1498 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1500 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
1502 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
1503 * testsuite/libgomp.fortran/target10.f90: Likewise.
1505 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
1507 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
1508 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
1509 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1511 2022-01-03 Jakub Jelinek <jakub@redhat.com>
1513 * libgomp.texi: Bump @copying's copyright year.
1515 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
1517 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
1518 * testsuite/libgomp.fortran/atomic-19.f90: New test.
1520 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
1522 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
1523 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
1524 table, not individual symbols.
1526 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1528 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
1529 "target offload_device_nonshared_as"
1530 * testsuite/libgomp.c++/target-this-3.C: Likewise.
1531 * testsuite/libgomp.c++/target-this-4.C: Likewise.
1533 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1535 * target.c (gomp_map_vars_existing): Make sure attached pointer is
1536 not overwritten during cross-host/device copying.
1537 (gomp_update): Likewise.
1538 (gomp_exit_data): Likewise.
1539 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
1540 * testsuite/libgomp.c++/target-12.C: Likewise.
1541 * testsuite/libgomp.c++/target-15.C: Likewise.
1542 * testsuite/libgomp.c++/target-16.C: Likewise.
1543 * testsuite/libgomp.c++/target-17.C: Likewise.
1544 * testsuite/libgomp.c++/target-21.C: Likewise.
1545 * testsuite/libgomp.c++/target-23.C: Likewise.
1546 * testsuite/libgomp.c/target-23.c: Likewise.
1547 * testsuite/libgomp.c/target-29.c: Likewise.
1548 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
1550 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1553 * libgomp.h (gomp_attach_pointer): Add bool parameter.
1554 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
1555 (goacc_enter_data_internal): Likewise.
1556 * target.c (gomp_map_vars_existing): Update assert condition to
1557 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
1558 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
1559 parameter, add support for mapping a pointer with NULL target.
1560 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
1561 parameter, add support for attaching a pointer with NULL target.
1562 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
1563 gomp_attach_pointer, add handling for
1564 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
1565 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
1566 * testsuite/libgomp.c++/target-23.C: New testcase.
1567 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
1568 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
1569 * testsuite/libgomp.c++/target-this-1.C: New testcase.
1570 * testsuite/libgomp.c++/target-this-2.C: New testcase.
1571 * testsuite/libgomp.c++/target-this-3.C: New testcase.
1572 * testsuite/libgomp.c++/target-this-4.C: New testcase.
1573 * testsuite/libgomp.c++/target-this-5.C: New testcase.
1575 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
1577 * libgomp.texi (OpenMP 5.1): Update status.
1579 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
1581 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
1583 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
1586 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
1587 * testsuite/libgomp.fortran/pr90030.f90: New test.
1589 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1590 Thomas Schwinge <thomas@codesourcery.com>
1592 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
1595 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
1596 Thomas Schwinge <thomas@codesourcery.com>
1598 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
1601 2021-11-29 Richard Biener <rguenther@suse.de>
1603 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
1606 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1608 PR middle-end/103384
1609 * testsuite/libgomp.c/declare-variant-2.c: New test.
1611 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
1613 * alloc.c (gomp_aligned_alloc): Fix typo.
1615 2021-11-18 Jakub Jelinek <jakub@redhat.com>
1618 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
1619 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
1620 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
1621 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1622 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
1623 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
1624 gomp_aligned_alloc instead of team_malloc.
1626 2021-11-18 Jakub Jelinek <jakub@redhat.com>
1629 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
1630 memalign over posix_memalign over aligned_alloc over fallback
1631 with malloc instead of aligned_alloc over _aligned_alloc over
1632 posix_memalign over memalign over fallback with malloc. For
1633 aligned_alloc, round up size up to multiple of al.
1635 2021-11-16 Jakub Jelinek <jakub@redhat.com>
1637 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
1638 construct as implemented.
1640 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
1642 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
1644 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1646 * task.c (gomp_create_target_task): Copy args array as well.
1647 * target.c (gomp_target_fallback): Add args argument.
1648 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
1649 (GOMP_target): Adjust gomp_target_fallback caller.
1650 (GOMP_target_ext): Likewise.
1651 (gomp_target_task_fn): Likewise.
1652 * config/nvptx/team.c (gomp_nvptx_main): Set
1653 gomp_global_icv.thread_limit_var.
1654 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
1656 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1658 * config/nvptx/team.c (__gomp_team_num): Define as
1659 __attribute__((shared)) var.
1660 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
1661 * config/nvptx/target.c (__gomp_team_num): Declare as
1662 extern __attribute__((shared)) var.
1663 (GOMP_teams4): Use __gomp_team_num as the team number instead of
1664 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
1665 is bigger than num_blocks, use num_teams_lower teams and arrange for
1666 bumping of __gomp_team_num if !first and returning false once we run
1668 * config/nvptx/teams.c (__gomp_team_num): Declare as
1669 extern __attribute__((shared)) var.
1670 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
1672 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1674 * testsuite/libgomp.c/teams-5.c: New test.
1676 2021-11-12 Jakub Jelinek <jakub@redhat.com>
1679 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
1681 * config/gcn/teams.c: ... here. New file.
1683 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
1685 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
1686 implicit map handling to allow a "superset" existing map as valid case.
1687 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
1688 (get_implicit): New function to extract implicit status.
1689 (gomp_map_fields_existing): Adjust arguments in calls to
1690 gomp_map_vars_existing, and add uses of get_implicit.
1691 (gomp_map_vars_internal): Likewise.
1692 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
1694 2021-11-12 Jakub Jelinek <jakub@redhat.com>
1696 * libgomp_g.h (GOMP_teams4): Declare.
1697 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
1698 * target.c (GOMP_teams4): New function.
1699 * config/nvptx/target.c (GOMP_teams): Remove.
1700 (GOMP_teams4): New function.
1701 * config/gcn/target.c (GOMP_teams): Remove.
1702 (GOMP_teams4): New function.
1703 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
1704 teams instead of <= 2.
1705 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
1707 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
1709 * testsuite/libgomp.fortran/teams-1.f90: New test.
1711 2021-11-11 Jakub Jelinek <jakub@redhat.com>
1713 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
1714 * team.c (struct gomp_thread_start_data): Likewise.
1715 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
1716 (gomp_team_start): Initialize start_data->num_teams and
1717 start_data->team_num. Update nthr->num_teams and nthr->team_num.
1718 * teams.c (gomp_num_teams, gomp_team_num): Remove.
1719 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
1720 instead of gomp_num_teams and gomp_team_num.
1721 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
1722 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
1723 * testsuite/libgomp.c/teams-4.c: New test.
1725 2021-11-11 Jakub Jelinek <jakub@redhat.com>
1727 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
1729 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
1731 * env.c (parse_gomp_openacc_dim): Restore parsing.
1733 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
1735 PR middle-end/102972
1736 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
1738 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
1739 * testsuite/libgomp.c/target-3.c: Likewise.
1740 * testsuite/libgomp.c/target-5.c: Likewise.
1741 * testsuite/libgomp.c/target-6.c: Likewise.
1742 * testsuite/libgomp.c/target-teams-1.c: Likewise.
1743 * testsuite/libgomp.c/teams-1.c: Likewise.
1744 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1745 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
1746 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
1747 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
1748 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
1749 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
1750 * testsuite/libgomp.fortran/teams1.f90: Likewise.
1752 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
1754 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
1755 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1757 2021-10-27 Jakub Jelinek <jakub@redhat.com>
1759 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
1760 aren't implemented for Fortran yet.
1762 2021-10-27 Jakub Jelinek <jakub@redhat.com>
1764 * testsuite/libgomp.c/loop-26.c: New test.
1765 * testsuite/libgomp.c/loop-27.c: New test.
1767 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
1770 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
1771 instead of #include <alloca.h> + alloca.
1773 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
1775 * libgomp.texi (Support of strictly structured blocks in Fortran):
1777 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
1779 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
1781 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
1782 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
1784 2021-10-20 Jakub Jelinek <jakub@redhat.com>
1787 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
1788 (struct gomp_work_share): Only use aligned(64) attribute if
1789 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
1790 add padding before lock to ensure lock is at offset 64 bytes
1792 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
1793 New poor man's static assertions.
1794 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
1795 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1797 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1798 Richard Biener <rguenther@suse.de>
1800 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
1802 2021-10-18 Jakub Jelinek <jakub@redhat.com>
1804 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
1805 && gomp_places_list_len < count after nfirst <= nlast loop condition.
1807 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
1816 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
1818 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1820 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
1821 type from char [50] to const char *.
1822 (places_array): Add a testcase for simplified syntax place followed
1823 by length or length and stride.
1825 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1827 * env.c (parse_one_place): Handle non-negative-number the same
1828 as { non-negative-number }. Reject even !number:1 and
1829 !number:1:stride or !place:1 or !place:1:stride instead of just
1830 length other than 1.
1831 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
1832 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
1833 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
1835 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
1838 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1840 * env.c (parse_schedule): For strtoul or strtoull calls which don't
1841 clearly reject return value 0 as invalid handle the case where end
1842 pointer is the same as first argument as invalid.
1843 (parse_unsigned_long_1): Likewise.
1844 (parse_one_place): Likewise.
1845 (parse_places_var): Likewise.
1846 (parse_stacksize): Likewise.
1847 (parse_spincount): Likewise.
1848 (parse_affinity): Likewise.
1849 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
1850 Make code valid C89.
1851 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
1852 For strtoul calls which don't clearly reject return value 0 as
1853 invalid handle the case where end pointer is the same as first
1854 argument as invalid.
1855 (gomp_affinity_init_level_1): Likewise.
1856 (gomp_affinity_init_numa_domains): Likewise.
1857 * config/rtems/proc.c (parse_thread_pools): Likewise.
1859 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1861 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
1862 after creating count places clean up and return immediately.
1863 * testsuite/libgomp.c/places-6.c: New test.
1864 * testsuite/libgomp.c/places-7.c: New test.
1865 * testsuite/libgomp.c/places-8.c: New test.
1866 * testsuite/libgomp.c/places-9.c: New test.
1867 * testsuite/libgomp.c/places-10.c: New test.
1869 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1871 * env.c (parse_places_var): Handle numa_domains as level 5.
1872 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
1874 (gomp_affinity_init_level): Use it instead of
1875 gomp_affinity_init_level_1 for level == 5.
1876 * testsuite/libgomp.c/places-5.c: New test.
1878 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1880 * env.c (parse_places_var): Handle ll_caches as level 4.
1881 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
1883 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
1885 (gomp_affinity_init_level): Likewise.
1886 * testsuite/libgomp.c/places-1.c: New test.
1887 * testsuite/libgomp.c/places-2.c: New test.
1888 * testsuite/libgomp.c/places-3.c: New test.
1889 * testsuite/libgomp.c/places-4.c: New test.
1891 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1893 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
1896 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1898 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
1900 2021-10-12 Julian Brown <julian@codesourcery.com>
1902 * target.c (gomp_copy_host2dev): Release device lock on cbuf
1905 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
1907 * testsuite/libgomp.fortran/icv-3.f90: New.
1908 * testsuite/libgomp.fortran/icv-4.f90: New.
1910 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1912 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
1913 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
1914 OMP_TEAMS_THREAD_LIMIT): Document.
1916 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1918 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
1919 to avoid makeinfo warnings.
1921 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1923 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
1924 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
1926 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1930 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
1931 allocation sizes from 420 to 320 and from 768 to 568.
1932 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1933 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
1934 for cr from 16 to 4.
1936 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1938 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
1939 * testsuite/libgomp.c/scan-12.c: Likewise.
1940 * testsuite/libgomp.c/scan-13.c: Likewise.
1941 * testsuite/libgomp.c/scan-14.c: Likewise.
1942 * testsuite/libgomp.c/scan-15.c: Likewise.
1943 * testsuite/libgomp.c/scan-16.c: Likewise.
1944 * testsuite/libgomp.c/scan-17.c: Likewise.
1945 * testsuite/libgomp.c/scan-18.c: Likewise.
1946 * testsuite/libgomp.c/scan-19.c: Likewise.
1947 * testsuite/libgomp.c/scan-20.c: Likewise.
1948 * testsuite/libgomp.c/scan-21.c: Likewise.
1949 * testsuite/libgomp.c/scan-22.c: Likewise.
1950 * testsuite/libgomp.c++/scan-9.C: Likewise.
1951 * testsuite/libgomp.c++/scan-10.C: Likewise.
1952 * testsuite/libgomp.c++/scan-11.C: Likewise.
1953 * testsuite/libgomp.c++/scan-12.C: Likewise.
1954 * testsuite/libgomp.c++/scan-13.C: Likewise.
1955 * testsuite/libgomp.c++/scan-14.C: Likewise.
1956 * testsuite/libgomp.c++/scan-15.C: Likewise.
1957 * testsuite/libgomp.c++/scan-16.C: Likewise.
1959 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
1961 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
1963 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
1965 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
1967 * omp.h.in: Add deprecated flag for omp_atv_sequential.
1968 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
1969 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
1970 * testsuite/libgomp.fortran/alloc-12.f90: New test.
1972 2021-10-11 Jakub Jelinek <jakub@redhat.com>
1974 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
1975 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
1976 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
1977 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
1978 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
1979 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
1980 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
1981 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
1982 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
1983 omp_set_teams_thread_limit{,_,_8_}.
1984 * icv.c (omp_set_num_teams, omp_get_max_teams,
1985 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
1987 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
1988 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
1989 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
1991 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
1992 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
1993 is not specified, use gomp_nteams_var.
1994 * fortran.c (omp_set_num_teams, omp_get_max_teams,
1995 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
1997 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
1998 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
1999 omp_get_teams_thread_limit_): New functions.
2001 2021-10-09 liuhongt <hongtao.liu@intel.com>
2003 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
2004 * testsuite/libgomp.c++/scan-11.C: Ditto.
2005 * testsuite/libgomp.c++/scan-12.C: Ditto.
2006 * testsuite/libgomp.c++/scan-13.C: Ditto.
2007 * testsuite/libgomp.c++/scan-14.C: Ditto.
2008 * testsuite/libgomp.c++/scan-15.C: Ditto.
2009 * testsuite/libgomp.c++/scan-16.C: Ditto.
2010 * testsuite/libgomp.c++/scan-9.C: Ditto.
2011 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
2012 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
2013 * testsuite/libgomp.c/scan-11.c: Ditto.
2014 * testsuite/libgomp.c/scan-12.c: Ditto.
2015 * testsuite/libgomp.c/scan-13.c: Ditto.
2016 * testsuite/libgomp.c/scan-14.c: Ditto.
2017 * testsuite/libgomp.c/scan-15.c: Ditto.
2018 * testsuite/libgomp.c/scan-16.c: Ditto.
2019 * testsuite/libgomp.c/scan-17.c: Ditto.
2020 * testsuite/libgomp.c/scan-18.c: Ditto.
2021 * testsuite/libgomp.c/scan-19.c: Ditto.
2022 * testsuite/libgomp.c/scan-20.c: Ditto.
2023 * testsuite/libgomp.c/scan-21.c: Ditto.
2024 * testsuite/libgomp.c/scan-22.c: Ditto.
2026 2021-10-09 Jakub Jelinek <jakub@redhat.com>
2028 * libgomp.texi (OpenMP 5.1): Mention implemented support for
2029 structured block sequences in C/C++. Mention support for
2030 unconstrained/reproducible modifiers on order clause.
2031 Mention partial (C/C++ only) support of extentensions to atomics
2032 construct. Mention partial (C/C++ on clause only) support of
2033 align/allocator modifiers on allocate clause.
2035 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
2037 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
2038 based on libgomp.c-c++-common/order-reproducible-1.c.
2039 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
2040 * testsuite/libgomp.fortran/my-usleep.c: New test.
2042 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
2044 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
2045 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
2046 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
2047 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
2048 based on libgomp.c-c++-common/alloc-9.c.
2050 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2052 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
2053 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
2055 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2057 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
2059 * env.c (handle_omp_display_env): Use ialias_call.
2060 * icv-device.c: Move ialias right below each function.
2061 (omp_get_device_num): Use ialias_call.
2062 * fortran.c (omp_fulfill_event): Add ialias_redirect.
2063 * icv.c (omp_get_active_level): Add ialias_redirect.
2065 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2067 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
2068 __alloc_align__ (1) attribute.
2069 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
2071 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2073 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
2074 for -fintrinsic-modules-path= warning of the C compiler.
2075 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
2076 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
2078 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2080 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
2081 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
2082 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2084 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2086 * testsuite/libgomp.fortran/alloc-10.f90: New test.
2087 * testsuite/libgomp.fortran/alloc-6.f90: New test.
2088 * testsuite/libgomp.fortran/alloc-7.c: New test.
2089 * testsuite/libgomp.fortran/alloc-7.f90: New test.
2090 * testsuite/libgomp.fortran/alloc-8.f90: New test.
2091 * testsuite/libgomp.fortran/alloc-9.f90: New test.
2093 2021-09-30 Jakub Jelinek <jakub@redhat.com>
2095 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
2096 omp_realloc): New prototypes.
2097 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
2099 * allocator.c: Include string.h.
2100 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
2101 variable and use it instead of alignment so that when retrying the old
2102 alignment is used again. Don't retry if new alignment is the same
2103 as old alignment, unless allocator had pool size.
2104 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
2105 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
2106 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
2107 omp_aligned_calloc and omp_realloc.
2108 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
2109 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
2110 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
2111 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
2112 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
2113 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
2115 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
2118 * configure.ac: Only check for int-type = 2*size_t support when
2119 building with Fortran support.
2120 * configure: Regenerate.
2122 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
2124 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
2125 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2127 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2129 * team.c: Initialize start_data.
2130 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2131 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
2133 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2135 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
2136 dg-message back to dg-note.
2138 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2141 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
2142 expected dg-note output.
2144 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
2147 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
2148 r12-3722 by removing -Wno-missing-include-dirs.
2149 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2151 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2153 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
2154 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
2156 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
2159 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
2161 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2163 2021-09-18 Jakub Jelinek <jakub@redhat.com>
2165 * testsuite/libgomp.c++/default-1.C: New test.
2166 * testsuite/libgomp.c-c++-common/default-1.c: New test.
2167 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
2168 to default clause in C and C++" as implemented.
2170 2021-09-17 Julian Brown <julian@codesourcery.com>
2172 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
2174 2021-09-17 Julian Brown <julian@codesourcery.com>
2176 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
2178 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2180 * libgomp.texi (OpenMP 5.1): Spelling fix,
2181 declare variante -> declare variant.
2183 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2185 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
2186 Use /* */ comments instead of //.
2187 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
2188 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
2189 * testsuite/libgomp.c++/atomic-16.C: New test.
2190 * testsuite/libgomp.c++/atomic-17.C: New test.
2192 2021-09-10 Jakub Jelinek <jakub@redhat.com>
2194 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
2195 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
2196 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
2198 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2200 * libgomp.texi (OpenMP Implementation Status): Extend
2202 (OpenACC Profiling Interface): Fix typo.
2204 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2206 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
2207 not to 4.5; link to new section.
2208 (OpenMP Implementation Status): New.
2210 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
2212 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
2214 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
2216 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
2218 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2220 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2221 Jakub Jelinek <jakub@redhat.com>
2223 * testsuite/libgomp.c/address-space-1.c: New file.
2225 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2227 * testsuite/lib/libgomp.exp
2228 (check_effective_target_offload_target_intelmic): Remove 'proc'.
2229 (check_effective_target_offload_device_intel_mic): New 'proc'.
2230 * testsuite/libgomp.c-c++-common/on_device_arch.h
2231 (device_arch_intel_mic, on_device_arch_intel_mic): New.
2232 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
2234 * testsuite/libgomp.fortran/target10.f90: Likewise.
2236 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
2238 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
2239 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
2240 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
2241 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
2243 2021-08-23 Jakub Jelinek <jakub@redhat.com>
2245 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
2246 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
2247 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
2249 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
2251 * config/nvptx/error.c (fwrite, exit): Override, too.
2252 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
2253 of offloading testing.
2254 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2256 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
2258 * testsuite/libgomp.fortran/error-1.f90: New test.
2260 2021-08-20 Jakub Jelinek <jakub@redhat.com>
2262 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
2263 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
2264 * error.c (GOMP_warning, GOMP_error): New functions.
2265 * testsuite/libgomp.c-c++-common/error-1.c: New test.
2267 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
2269 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
2270 omp_target_free. omp_target_is_present, omp_target_memcpy,
2271 omp_target_memcpy_rect, omp_target_associate_ptr,
2272 omp_target_disassociate_ptr): Add interface.
2273 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
2274 omp_target_free. omp_target_is_present, omp_target_memcpy,
2275 omp_target_memcpy_rect, omp_target_associate_ptr,
2276 omp_target_disassociate_ptr): Add interface.
2277 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
2278 interface block for omp_alloc + omp_free.
2279 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
2280 * testsuite/libgomp.fortran/refcount-1.f90: New test.
2281 * testsuite/libgomp.fortran/target-12.f90: New test.
2283 2021-08-18 Jakub Jelinek <jakub@redhat.com>
2285 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
2287 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
2289 * testsuite/libgomp.fortran/scope-1.f90: New test.
2290 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
2292 2021-08-17 Jakub Jelinek <jakub@redhat.com>
2294 * Makefile.am (libgomp_la_SOURCES): Add scope.c
2295 * Makefile.in: Regenerated.
2296 * libgomp_g.h (GOMP_scope_start): Declare.
2297 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
2298 * scope.c: New file.
2299 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
2300 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
2302 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
2304 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
2307 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
2309 * testsuite/libgomp.fortran/masked-1.f90: New test.
2311 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
2313 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
2315 2021-08-12 Jakub Jelinek <jakub@redhat.com>
2317 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
2319 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
2321 * env.c (parse_bind_var): Accept 'primary' as alias for
2323 (omp_display_env): Add TODO comment to
2324 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
2325 * libgomp.texi: Change 'master thread' to 'primary thread'
2326 in line with OpenMP 5.1.
2327 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
2328 omp_proc_bind_master is an alias of it.
2329 (OMP_PROC_BIND): Mention 'PRIMARY'.
2330 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
2331 (omp_proc_bind_primary): Add.
2332 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2333 * omp_lib.f90.in (omp_proc_bind_primary): Add.
2334 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2335 * omp_lib.h.in (omp_proc_bind_primary): Add.
2336 * testsuite/libgomp.c/affinity-1.c: Check that
2337 'primary' works and is identical to 'master'.
2339 2021-08-09 Julian Brown <julian@codesourcery.com>
2340 Kwok Cheung Yeung <kcy@codesourcery.com>
2341 Thomas Schwinge <thomas@codesourcery.com>
2343 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
2345 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
2346 [acc_device_radeon]: Update.
2347 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
2348 [ACC_DEVICE_TYPE_radeon]: Likewise.
2349 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2350 [acc_device_radeon]: Likewise.
2351 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
2352 [ACC_DEVICE_TYPE_radeon]: Likewise.
2353 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
2354 'openacc_radeon_accel_selected' and '-O0'.
2355 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2357 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
2359 * icv-device.c (omp_get_device_num): New API function, host side.
2360 * fortran.c (omp_get_device_num_): New interface function.
2361 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
2362 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
2363 omp_get_device_num_.
2364 * libgomp.texi (omp_get_device_num): Add documentation for new API
2366 * omp.h.in (omp_get_device_num): Add declaration.
2367 * omp_lib.f90.in (omp_get_device_num): Likewise.
2368 * omp_lib.h.in (omp_get_device_num): Likewise.
2369 * target.c (gomp_load_image_to_device): If additional entry for device
2370 number exists at end of returned entries from 'load_image_func' hook,
2371 copy the assigned device number over to the device variable.
2372 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2373 (omp_get_device_num): New API function, device side.
2374 * plugin/plugin-gcn.c ("symcat.h"): Add include.
2375 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2376 at end of returned 'target_table' entries.
2377 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2378 (omp_get_device_num): New API function, device side.
2379 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
2380 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2381 at end of returned 'target_table' entries.
2382 * testsuite/lib/libgomp.exp
2383 (check_effective_target_offload_target_intelmic): New function for
2384 testing for intelmic offloading.
2385 * testsuite/libgomp.c-c++-common/target-45.c: New test.
2386 * testsuite/libgomp.fortran/target10.f90: New test.
2388 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
2389 Ulrich Drepper <drepper@redhat.com>
2391 * fortran.c (omp_display_env_, omp_display_env_8_): Only
2392 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
2394 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
2395 Julian Brown <julian@codesourcery.com>
2396 Kwok Cheung Yeung <kcy@codesourcery.com>
2398 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
2399 's%oaccdevlow%oaccloops%g'.
2400 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2401 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2402 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
2404 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
2406 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
2408 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
2410 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
2412 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
2414 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
2416 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
2418 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2420 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
2422 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
2424 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
2426 2021-07-27 Ulrich Drepper <drepper@gmail.com>
2428 * env.c (wait_policy, stacksize): New static variables,
2429 move out of handle_omp_display_env.
2430 (omp_display_env): New function. The meat of the old
2431 handle_omp_display_env function.
2432 (handle_omp_display_env): Change to not take parameters
2433 and instead use the global variables. Only perform
2434 parsing, defer to omp_display_env for the implementation.
2435 (initialize_env): Remove local variables wait_policy and
2436 stacksize. Don't pass parameters to handle_omp_display_env.
2437 * fortran.c: Add ialias_redirect for omp_display_env.
2438 (omp_display_env_, omp_display_env_8_): New functions.
2439 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
2440 omp_display_env_, and omp_display_env_8_.
2441 * omp.h.in: Declare omp_display_env.
2442 * omp_lib.f90.in: Likewise.
2443 * omp_lib.h.in: Likewise.
2445 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2446 Julian Brown <julian@codesourcery.com>
2448 * target.c (gomp_coalesce_buf_add): Update comment.
2449 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
2451 (gomp_map_vars_internal): Only 'if (!aq)', do
2452 'gomp_coalesce_buf_add'.
2453 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
2456 2021-07-27 Julian Brown <julian@codesourcery.com>
2457 Thomas Schwinge <thomas@codesourcery.com>
2459 * libgomp.h (gomp_copy_host2dev): Update prototype.
2460 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
2461 argument to gomp_copy_host2dev (false).
2462 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
2463 (copy_data): Don't free src.
2464 (queue_push_copy): Remove free_src handling.
2465 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
2466 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
2468 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
2470 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
2471 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
2472 data when true, and set up deferred freeing of temporary buffer.
2473 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
2474 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
2475 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
2476 calls to gomp_copy_host2dev with appropriate ephemeral argument.
2477 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
2480 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2481 Tom de Vries <tom@codesourcery.com>
2483 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
2484 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
2486 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2488 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
2489 sequencing of 'async' data copying vs. profiling events.
2490 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2493 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2494 Julian Brown <julian@codesourcery.com>
2496 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
2497 'async'/'wait' issue.
2498 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
2499 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
2500 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
2502 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
2503 Joseph Myers <joseph@codesourcery.com>
2504 Cesar Philippidis <cesar@codesourcery.com>
2506 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
2508 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2510 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
2512 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2514 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
2517 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
2518 '-Wno-error=array-bounds'.
2519 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
2520 * libgomp.h [__AMDGCN__]: Likewise.
2522 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
2525 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
2526 * libgomp.h [__AMDGCN__]: Likewise.
2528 2021-07-13 Jakub Jelinek <jakub@redhat.com>
2529 Florian Weimer <fweimer@redhat.com>
2531 * config/linux/sem.h: Don't include limits.h.
2532 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
2533 * config/linux/affinity.c: Include limits.h.
2535 2021-07-01 Jakub Jelinek <jakub@redhat.com>
2538 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
2540 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2543 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
2544 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
2545 avoid disabling other offload targets.
2546 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
2547 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
2548 * testsuite/libgomp.c/target-44.c: Likewise.
2550 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2552 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
2553 target has shared memory and disable some scalar pointer/allocatable
2554 checks if not as firstprivate does not work.
2556 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
2559 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
2560 Add "target offload_device_nonshared_as" condition for enabling test.
2562 2021-06-24 Jakub Jelinek <jakub@redhat.com>
2564 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
2565 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
2566 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
2567 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
2569 2021-06-23 Jakub Jelinek <jakub@redhat.com>
2571 PR middle-end/101167
2572 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
2574 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
2576 * hashtab.h (htab_clear): New function with initialization code
2577 factored out from...
2578 (htab_create): ...here, adjust to use htab_clear function.
2579 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
2580 special refcount values, add comments.
2581 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
2582 (REFCOUNT_LINK): Likewise.
2583 (REFCOUNT_STRUCTELEM): New special refcount range for structure
2585 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
2587 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
2588 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
2589 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
2590 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
2591 (struct splay_tree_key_s): Add structelem_refcount and
2592 structelem_refcount_ptr fields into a union with dynamic_refcount.
2594 (gomp_map_vars): Delete declaration.
2595 (gomp_map_vars_async): Likewise.
2596 (gomp_unmap_vars): Likewise.
2597 (gomp_unmap_vars_async): Likewise.
2598 (goacc_map_vars): New declaration.
2599 (goacc_unmap_vars): Likewise.
2600 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
2601 (goacc_enter_datum): Likewise.
2602 (goacc_enter_data_internal): Likewise.
2603 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
2604 and goacc_unmap_vars.
2605 (GOACC_data_start): Adjust to use goacc_map_vars.
2606 (GOACC_data_end): Adjust to use goacc_unmap_vars.
2607 * target.c (hash_entry_type): New typedef.
2608 (htab_alloc): New function hook for hashtab.h.
2609 (htab_free): Likewise.
2610 (htab_hash): Likewise.
2611 (htab_eq): Likewise.
2612 (hashtab.h): Add file include.
2613 (gomp_increment_refcount): New function.
2614 (gomp_decrement_refcount): Likewise.
2615 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
2616 gomp_increment_refcount.
2617 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
2618 to gomp_map_vars_existing.
2619 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
2620 variable to guard OpenMP specific paths, adjust calls to
2621 gomp_map_vars_existing, add structure element sibling splay_tree_key
2622 sequence creation code, adjust Fortran map case to avoid increment
2624 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
2625 local refcount_set if caller passed in NULL, adjust call to
2626 gomp_map_vars_internal.
2627 (gomp_map_vars_async): Adjust and rename into...
2628 (goacc_map_vars): ...this new function, adjust call to
2629 gomp_map_vars_internal.
2630 (gomp_remove_splay_tree_key): New function with code factored out from
2631 gomp_remove_var_internal.
2632 (gomp_remove_var_internal): Add code to handle removing multiple
2633 splay_tree_key sequence for structure elements, adjust code to use
2634 gomp_remove_splay_tree_key for splay-tree key removal.
2635 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
2636 gomp_decrement_refcount.
2637 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
2638 local refcount_set if caller passed in NULL, adjust call to
2639 gomp_unmap_vars_internal.
2640 (gomp_unmap_vars_async): Adjust and rename into...
2641 (goacc_unmap_vars): ...this new function, adjust call to
2642 gomp_unmap_vars_internal.
2643 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
2645 (GOMP_target_ext): Likewise.
2646 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
2647 (GOMP_target_data): Likewise.
2648 (GOMP_target_data_ext): Likewise.
2649 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
2650 (gomp_exit_data): Add refcount_set parameter, adjust to use
2651 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
2653 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
2654 gomp_map_vars and gomp_exit_data.
2655 (gomp_target_task_fn): Likewise.
2656 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
2657 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
2658 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
2659 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
2660 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
2661 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
2663 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
2666 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
2668 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
2669 Thomas Schwinge <thomas@codesourcery.com>
2671 * libgomp.map (GOACC_2.0.2): New symbol version.
2672 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
2673 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
2675 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
2676 Andrew Stubbs <ams@codesourcery.com>
2678 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
2680 (GOACC_enter_exit_data): ... here.
2681 (GOACC_declare): Use it.
2683 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
2685 * oacc-parallel.c (GOACC_declare): Move...
2686 * oacc-mem.c: ... here.
2687 * libgomp_g.h: Adjust.
2689 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
2690 Thomas Schwinge <thomas@codesourcery.com>
2692 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
2695 2021-06-10 Jakub Jelinek <jakub@redhat.com>
2697 PR tree-optimization/100981
2698 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
2699 dsdotr and dsdoti to 0.
2701 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
2703 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
2704 if atomic compare-and-swap is supported on 'int'.
2706 2021-06-09 Richard Biener <rguenther@suse.de>
2708 PR tree-optimization/100981
2709 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
2711 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2713 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
2715 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2717 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2718 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
2720 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2722 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
2723 '-DACC_MEM_SHARED=0'.
2724 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
2725 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2726 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
2727 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2728 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2729 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2730 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2731 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2732 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2733 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2734 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
2735 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
2736 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
2737 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2738 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
2739 'acc_device_radeon' testing.
2740 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
2741 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2742 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2743 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
2744 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2745 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2746 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
2747 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
2748 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2749 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2750 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
2751 for non-'openacc_nvidia_accel_selected'.
2752 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2753 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
2754 all implement this checking".
2755 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2756 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2757 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2758 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2759 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2761 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2763 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
2764 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
2766 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2768 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
2769 for 'acc_device_radeon'.
2771 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2773 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
2774 for non-'acc_device_nvidia'.
2776 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2778 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
2779 'acc_device_radeon' testing.
2780 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2781 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2782 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2784 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2786 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
2787 require 'openacc_nvidia_accel_selected'. Fix up for
2788 'ACC_DEVICE_TYPE_radeon'.
2790 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2792 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
2793 'openacc_nvidia_accel_selected'.
2794 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2796 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2798 * testsuite/lib/libgomp.exp
2799 (check_effective_target_openacc_radeon_accel_selected):
2802 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2804 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
2807 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2809 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2810 <acc_device_nvidia>: Update comment.
2812 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
2814 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
2816 2021-05-27 Jakub Jelinek <jakub@redhat.com>
2818 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
2819 check_effective_target_openacc_cublas,
2820 check_effective_target_openacc_cudart): New.
2821 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
2822 target openacc_cublas.
2823 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2824 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2825 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
2826 target openacc_cuda.
2827 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
2828 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
2829 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
2830 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
2831 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
2832 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
2833 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
2834 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2835 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
2836 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
2837 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
2838 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2839 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
2840 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
2841 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
2842 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2843 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
2844 targets openacc_cublas and openacc_cudart.
2845 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
2846 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
2847 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
2848 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
2849 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
2850 Require effective target openacc_cudart.
2851 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
2852 for effective target openacc_cuda and add && defined USE_CUDA_H to
2853 preprocessor conditionals. Guard -lcuda also on openacc_cuda
2856 2021-05-26 Jakub Jelinek <jakub@redhat.com>
2859 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
2860 GOMP_target_end_data, GOMP_target_update_ext,
2861 GOMP_target_enter_exit_data): New dummy entrypoints.
2862 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
2863 GOMP_target_end_data, GOMP_target_update_ext,
2864 GOMP_target_enter_exit_data): Likewise.
2865 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
2866 OMPFROM, OMPTO): Define.
2867 (main): Remove #pragma omp target teams around all the tests.
2868 * testsuite/libgomp.c-c++-common/target-41.c: New test.
2869 * testsuite/libgomp.c-c++-common/target-42.c: New test.
2871 2021-05-25 Jakub Jelinek <jakub@redhat.com>
2874 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
2876 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
2879 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
2880 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
2881 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
2883 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
2886 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
2887 uninteresting/varying diagnostics.
2889 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
2892 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
2893 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2895 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
2898 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
2900 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
2901 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
2902 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2904 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2906 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2908 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2910 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2912 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2914 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2916 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2918 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2920 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2922 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2924 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2926 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2928 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2930 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2932 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2934 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2936 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2938 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2940 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2942 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2944 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
2945 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
2946 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
2947 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2948 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
2949 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2950 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2951 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2952 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2953 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2954 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2955 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2956 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2957 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2958 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
2960 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
2962 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
2964 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
2966 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
2967 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
2969 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2970 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2971 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2972 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2973 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2974 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2975 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2977 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2979 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2981 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2983 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2985 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2987 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2989 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2991 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2993 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2995 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2997 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2999 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3001 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3002 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3003 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3005 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3007 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3008 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3009 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3011 2021-05-21 Julian Brown <julian@codesourcery.com>
3012 Chung-Lin Tang <cltang@codesourcery.com>
3013 Thomas Schwinge <thomas@codesourcery.com>
3016 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
3018 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
3020 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
3023 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
3025 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
3026 for nvptx offloading.
3028 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
3030 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
3032 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
3035 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
3037 2021-05-19 Julian Brown <julian@codesourcery.com>
3039 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
3041 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3043 * testsuite/lib/libgomp.exp
3044 (check_effective_target_offload_target_nvptx): Don't shadow global
3045 'offload_targets' variable.
3047 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3049 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
3050 '-latomic' to nvptx offloading compilation.
3051 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3053 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3055 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
3056 offloading compilation.
3058 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
3060 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
3061 if new tasks generated.
3062 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
3064 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
3066 * testsuite/libgomp.fortran/parallel-master.f90: New test.
3068 2021-05-13 Martin Liska <mliska@suse.cz>
3071 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
3072 * testsuite/libgomp.c/pr46032-2.c: Likewise.
3073 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
3074 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
3076 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
3078 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
3079 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
3081 2021-05-11 Jakub Jelinek <jakub@redhat.com>
3083 PR middle-end/100471
3084 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
3085 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
3087 * testsuite/libgomp.c/task-reduction-4.c: New test.
3089 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
3090 Tom de Vries <tdevries@suse.de>
3092 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
3093 complex/floating-point || + && reduction with 'omp target'.
3094 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3096 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3098 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
3099 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
3100 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
3101 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
3103 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3106 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
3107 declaration to scope of non-'depend'-guarded assignment to avoid races.
3109 2021-05-03 Tom de Vries <tdevries@suse.de>
3112 * testsuite/libgomp.c/target-44.c: New test.
3114 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
3116 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
3118 2021-04-29 Tom de Vries <tdevries@suse.de>
3120 * testsuite/libgomp.c/pr81778.c: New test.
3122 2021-04-29 Tom de Vries <tdevries@suse.de>
3125 * testsuite/libgomp.c/target-43.c: New file.
3127 2021-04-28 Jakub Jelinek <jakub@redhat.com>
3128 Tobias Burnus <tobias@codesourcery.com>
3130 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
3131 * target.c (gomp_load_plugin_for_device): If set and if a plugin
3132 can't be dlopened, silently assume it has no devices.
3133 * Makefile.in: Regenerate.
3134 * config.h.in: Regenerate.
3135 * configure: Regenerate.
3137 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3139 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3140 Use [Ww]arning in dg-bogus as FE diagnostic and default
3141 diagnostic differ and the result depends on ENABLE_OFFLOAD.
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.
3146 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3148 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3149 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
3150 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3151 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3152 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3154 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3155 Nathan Sidwell <nathan@codesourcery.com>
3156 Tom de Vries <vries@codesourcery.com>
3157 Julian Brown <julian@codesourcery.com>
3158 Kwok Cheung Yeung <kcy@codesourcery.com>
3160 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
3161 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
3162 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3163 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3164 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3165 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3166 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
3168 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
3169 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3170 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3171 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3173 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
3174 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3176 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3177 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3178 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3179 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3180 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3181 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3183 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3184 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3185 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3186 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3187 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3188 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3189 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3190 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3191 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3192 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3193 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3195 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3197 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
3199 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3200 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3202 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3203 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
3204 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3205 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3206 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3207 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3208 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3210 2021-04-22 Richard Biener <rguenther@suse.de>
3212 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
3215 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3217 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
3218 omp_depend_kind instead of defining it as 16.
3220 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3222 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3223 New, based on check_effective_target_offload_target_nvptx.
3224 (check_effective_target_offload_target_nvptx): Call it.
3225 (check_effective_target_offload_target_amdgcn): New.
3226 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
3227 Require target offload_target_nvptx || offload_target_amdgcn.
3228 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
3229 * testsuite/libgomp.c/pr86416-1.c: Likewise.
3230 * testsuite/libgomp.c/pr86416-2.c: Likewise.
3232 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3234 * testsuite/libgomp.fortran/depobj-1.f90: New test.
3236 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
3238 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3239 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
3240 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3242 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3244 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3246 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
3249 * testsuite/lib/libgomp.exp
3250 (check_effective_target_offload_device_nvptx): New.
3251 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
3252 resolved, make sure that we exit quickly, with error status,
3254 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
3255 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3257 2021-04-14 Jakub Jelinek <jakub@redhat.com>
3260 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
3261 cp = omp_alloc with cp, p arguments instead of cq, q and call
3262 c_f_pointer after last cq = omp_alloc with cq, q.
3264 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
3267 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
3268 for loop with GT/GE condition.
3269 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3271 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
3276 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
3278 2021-04-09 Jakub Jelinek <jakub@redhat.com>
3281 * team.c (gomp_thread_start): Call pthread_setspecific for
3282 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
3283 has been initialized to avoid false positive warning.
3285 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
3288 * testsuite/lib/on_device_arch.c: Move to ...
3289 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
3290 * testsuite/libgomp.fortran/on_device_arch.c: New file;
3291 #include on_device_arch.h.
3292 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
3293 on_device_arch.h instead of using dg-additional-source.
3294 * testsuite/libgomp.c/pr99555-1.c: Likewise.
3295 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
3296 on_device_arch.c without relative paths.
3298 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3300 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
3301 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
3302 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
3303 * config.h.in: Regenerate.
3304 * configure: Likewise.
3306 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3309 * testsuite/lib/on_device_arch.c: New file.
3310 * testsuite/libgomp.c/pr99555-1.c: Likewise.
3311 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
3312 skip for nvptx offloading, with error status.
3313 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3315 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3317 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3318 OpenACC 'serial' construct diagnostic for nvptx offloading.
3320 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
3323 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
3325 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
3328 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
3330 2021-03-04 Jakub Jelinek <jakub@redhat.com>
3332 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
3333 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
3334 checking of -m32 or -mx32 options on the command line.
3335 * config.h.in: Regenerated.
3336 * configure: Regenerated.
3338 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
3340 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
3341 support from the target.
3343 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3344 Jakub Jelinek <jakub@redhat.com>
3347 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
3348 (struct gomp_task): Replace detach and completion_sem fields with
3349 union containing completion_sem and detach_team. Add deferred_p
3351 (struct gomp_team): Remove task_detach_queue.
3352 * task.c: Include assert.h.
3353 (gomp_init_task): Initialize deferred_p and completion_sem fields.
3354 Rearrange initialization order of fields.
3355 (task_fulfilled_p): Delete.
3356 (GOMP_task): Use address of task as the event handle. Remove
3357 initialization of detach field. Initialize deferred_p field.
3358 Use automatic local for completion_sem. Initialize detach_team field
3360 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
3361 Set kind of suspended detach task to GOMP_TASK_DETACHED and
3362 decrement task_running_count. Move finish_cancelled block out of
3363 else branch. Relocate call to gomp_team_barrier_done.
3364 (GOMP_taskwait): Handle tasks with completion events that have not
3366 (GOMP_taskgroup_end): Likewise.
3367 (omp_fulfill_event): Use address of task as event handle. Post to
3368 completion_sem for undeferred tasks. Clear detach_team if task
3369 has not finished. For finished tasks, handle post-execution tasks,
3370 call gomp_team_barrier_wake if necessary, and free task.
3371 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
3372 (free_team): Remove free of task_detach_queue.
3373 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
3374 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
3375 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
3376 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
3377 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
3378 Change data-sharing of detach events on enclosing parallel to private.
3379 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
3381 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
3382 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
3383 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
3384 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
3385 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
3386 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
3387 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
3388 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
3389 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
3390 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
3391 Change data-sharing of detach events on enclosing parallel to private.
3392 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
3394 * testsuite/libgomp.fortran/task-detach-7.f90: New.
3395 * testsuite/libgomp.fortran/task-detach-8.f90: New.
3396 * testsuite/libgomp.fortran/task-detach-9.f90: New.
3397 * testsuite/libgomp.fortran/task-detach-10.f90: New.
3398 * testsuite/libgomp.fortran/task-detach-11.f90: New.
3400 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
3403 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
3405 2021-02-17 Julian Brown <julian@codesourcery.com>
3407 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
3410 2021-02-17 Julian Brown <julian@codesourcery.com>
3412 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
3413 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
3415 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
3417 * config/linux/x86/futex.h (__futex_wait):
3418 Revert output type back to long.
3419 (__futex_wake): Ditto.
3420 (futex_wait): Update for revert.
3421 (futex_wake): Ditto.
3423 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
3425 * config/linux/x86/futex.h (__futex_wait): New static inline
3426 wrapper function. Correct output type to int and
3427 timeout type to void *.
3428 (__futex_wake): New static inline wrapper function.
3429 Correct output type to int.
3430 (futex_wait): Use __futex_wait.
3431 (futex_wake): Use __futex_wake.
3433 2021-02-10 Julian Brown <julian@codesourcery.com>
3436 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
3439 2021-02-04 Julian Brown <julian@codesourcery.com>
3441 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
3443 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
3445 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3446 EF_AMDGPU_MACH_AMDGCN_GFX908.
3447 (gcn_gfx908_s): New constant string.
3448 (isa_hsa_name): Add gfx908.
3449 (isa_code): Add gfx908.
3451 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3453 * libgomp.texi (omp_fulfill_event): New entry.
3455 2021-01-20 Jakub Jelinek <jakub@redhat.com>
3457 * task.c (GOMP_task): Rename priority argument to priority_arg,
3458 add priority automatic variable and modify that variable. Instead of
3459 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
3460 check flags for that bit.
3462 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
3465 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
3467 2021-01-18 Andreas Schwab <schwab@suse.de>
3469 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
3471 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3473 * config/rtems/sem.h (gomp_sem_getcount): New function.
3475 2021-01-18 Jakub Jelinek <jakub@redhat.com>
3477 * config/linux/sem.h (gomp_sem_getcount): New function.
3478 * config/posix/sem.h (gomp_sem_getcount): New function.
3479 * config/posix/sem.c (gomp_sem_getcount): New function.
3480 * config/accel/sem.h (gomp_sem_getcount): New function.
3481 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
3482 (omp_fulfill_event): Likewise.
3484 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3486 * fortran.c (omp_fulfill_event_): New.
3487 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
3488 (struct gomp_team): Add task_detach_queue and task_detach_count
3490 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
3491 * libgomp_g.h (GOMP_task): Add extra argument.
3492 * omp.h.in (enum omp_event_handle_t): New.
3493 (omp_fulfill_event): New.
3494 * omp_lib.f90.in (omp_event_handle_kind): New.
3495 (omp_fulfill_event): New.
3496 * omp_lib.h.in (omp_event_handle_kind): New.
3497 (omp_fulfill_event): Declare.
3498 * priority_queue.c (priority_tree_find): New.
3499 (priority_list_find): New.
3500 (priority_queue_find): New.
3501 * priority_queue.h (priority_queue_predicate): New.
3502 (priority_queue_find): New.
3503 * task.c (gomp_init_task): Initialize detach field.
3504 (task_fulfilled_p): New.
3505 (GOMP_task): Add detach argument. Ignore detach argument if
3506 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
3507 field. Copy address of completion_sem into detach argument and
3508 into the start of the data record. Wait for detach event if task
3510 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
3511 Remove completed tasks and requeue dependent tasks.
3512 (omp_fulfill_event): New.
3513 * team.c (gomp_new_team): Initialize task_detach_queue and
3514 task_detach_count fields.
3515 (free_team): Free task_detach_queue field.
3516 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
3517 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
3518 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
3519 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
3520 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
3521 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
3522 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
3523 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
3524 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
3525 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
3526 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
3527 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
3529 2021-01-15 Jakub Jelinek <jakub@redhat.com>
3532 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
3533 be added through preprocessor check on
3534 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
3536 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
3539 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
3541 * configure: Regenerate.
3542 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
3545 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3547 * configure: Re-generate.
3549 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3551 * configure: Re-generate.
3553 2021-01-05 Julian Brown <julian@codesourcery.com>
3555 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
3556 (struct ptx_device): Add omp_stacks struct.
3557 (nvptx_open_device): Initialise cached-stacks housekeeping info.
3558 (nvptx_close_device): Free cached stacks block and mutex.
3559 (nvptx_stacks_free): New function.
3560 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
3561 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
3562 (nvptx_stacks_alloc): Rename to...
3563 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
3564 size or smaller is required.
3565 (nvptx_stacks_free): Remove.
3566 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
3567 during kernel execution.
3569 2021-01-01 Jakub Jelinek <jakub@redhat.com>
3571 * libgomp.texi: Bump @copying's copyright year.
3573 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
3575 * libgomp.texi (Top): Avoid bad "up" link.
3577 2020-12-18 Jakub Jelinek <jakub@redhat.com>
3579 * testsuite/libgomp.c/task-6.c: New test.
3581 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
3583 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
3584 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
3586 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
3588 * testsuite/libgomp.fortran/scan-1.f90: New test.
3590 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
3593 * configure: Regenerate.
3595 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
3597 * configure: Regenerate.
3599 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
3601 * testsuite/libgomp.oacc-c++/cache-1.C: New.
3602 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
3604 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
3606 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
3609 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
3611 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
3612 (reserved): Delete unused define.
3614 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
3616 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
3617 Tcl 8.5-specific behavior.
3618 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3620 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3622 * env.c (gomp_global_icv): Remove nest_var field. Add
3623 max_active_levels_var field.
3624 (gomp_max_active_levels_var): Remove.
3625 (parse_boolean): Return true on success.
3626 (handle_omp_display_env): Express OMP_NESTED in terms of
3627 max_active_levels_var. Change format specifier for
3628 max_active_levels_var.
3629 (initialize_env): Set max_active_levels_var from
3630 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
3632 * icv.c (omp_set_nested): Express in terms of
3633 max_active_levels_var.
3634 (omp_get_nested): Likewise.
3635 (omp_set_max_active_levels): Use max_active_levels_var field instead
3636 of gomp_max_active_levels_var.
3637 (omp_get_max_active_levels): Likewise.
3638 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
3639 max_active_levels_var field.
3640 (gomp_supported_active_levels): Set to UCHAR_MAX.
3641 (gomp_max_active_levels_var): Delete.
3642 * libgomp.texi (omp_get_nested): Update documentation.
3643 (omp_set_nested): Likewise.
3644 (OMP_MAX_ACTIVE_LEVELS): Likewise.
3645 (OMP_NESTED): Likewise.
3646 (OMP_NUM_THREADS): Likewise.
3647 (OMP_PROC_BIND): Likewise.
3648 * parallel.c (gomp_resolve_num_threads): Replace reference
3649 to nest_var with max_active_levels_var. Use max_active_levels_var
3650 field instead of gomp_max_active_levels_var.
3652 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
3654 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
3655 nvptx_usleep; use also for device={arch(gcn)}.
3657 2020-11-14 Jakub Jelinek <jakub@redhat.com>
3659 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
3660 (foo): Add tests for non-VLA private and firstprivate clauses on
3662 (bar): Likewise. Remove taking of address from private/firstprivate
3664 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
3665 (foo): Add p, q, px and s arguments. Add tests for array reductions
3666 and for non-VLA private and firstprivate clauses on omp task.
3668 (main): Adjust foo caller. Don't call bar.
3670 2020-11-13 Gergö Barany <gergo@codesourcery.com>
3671 Thomas Schwinge <thomas@codesourcery.com>
3673 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3675 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3677 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3679 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3680 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3682 2020-11-13 Gergö Barany <gergo@codesourcery.com>
3683 Thomas Schwinge <thomas@codesourcery.com>
3686 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
3688 2020-11-13 Jakub Jelinek <jakub@redhat.com>
3690 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
3691 for array reductions.
3692 (main): Adjust foo callers.
3694 2020-11-12 Jakub Jelinek <jakub@redhat.com>
3696 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
3697 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
3698 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
3699 * allocator.c (omp_aligned_alloc): New for now static function,
3700 add alignment argument and handle it.
3701 (omp_alloc): Reimplement using omp_aligned_alloc.
3702 (GOMP_alloc, GOMP_free): New functions.
3703 (omp_free): Add ialias.
3704 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
3705 * testsuite/libgomp.c++/allocate-1.C: New test.
3707 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
3710 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
3712 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
3714 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
3716 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
3717 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
3718 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
3719 (goacc_enter_data_internal): Likewise.
3720 * target.c (gomp_map_vars_internal):
3721 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
3722 of gomp_attach_pointer for OpenMP cases.
3723 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
3724 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
3725 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
3727 2020-11-05 Ulrich Drepper <drepper@redhat.com>
3728 Kwok Cheung Yeung <kcy@codesourcery.com>
3730 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
3731 * Makefile.in: Regenerate.
3732 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
3733 pragmas to ignore -Wdeprecated-declarations warnings.
3735 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
3736 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
3737 and omp_get_nested with __GOMP_DEPRECATED_5_0.
3738 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
3740 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
3742 * testsuite/libgomp.c/affinity-1.c: Likewise.
3743 * testsuite/libgomp.c/affinity-2.c: Likewise.
3744 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
3745 * testsuite/libgomp.c/lib-1.c: Likewise.
3746 * testsuite/libgomp.c/nested-1.c: Likewise.
3747 * testsuite/libgomp.c/nested-2.c: Likewise.
3748 * testsuite/libgomp.c/nested-3.c: Likewise.
3749 * testsuite/libgomp.c/pr32362-1.c: Likewise.
3750 * testsuite/libgomp.c/pr32362-2.c: Likewise.
3751 * testsuite/libgomp.c/pr32362-3.c: Likewise.
3752 * testsuite/libgomp.c/pr35549.c: Likewise.
3753 * testsuite/libgomp.c/pr42942.c: Likewise.
3754 * testsuite/libgomp.c/pr61200.c: Likewise.
3755 * testsuite/libgomp.c/sort-1.c: Likewise.
3756 * testsuite/libgomp.c/target-5.c: Likewise.
3757 * testsuite/libgomp.c/target-6.c: Likewise.
3758 * testsuite/libgomp.c/teams-1.c: Likewise.
3759 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3760 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3761 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3762 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
3763 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3764 * testsuite/libgomp.fortran/lib2.f: Likewise.
3765 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3766 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3768 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
3771 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
3772 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3773 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3775 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
3779 * testsuite/lib/libgomp.exp (libgomp_init): Set
3780 'gcc_warning_prefix', 'gcc_error_prefix'.
3782 2020-10-30 Jakub Jelinek <jakub@redhat.com>
3784 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
3785 even in field_tgt_clear initializer.
3787 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3789 * testsuite/libgomp.c/target-42.c: New test.
3791 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3792 Tom de Vries <tdevries@suse.de>
3795 * testsuite/libgomp.c/usleep.h: New file.
3796 * testsuite/libgomp.c/target-32.c: Include usleep.h.
3797 (main): Use tgt_usleep instead of usleep.
3798 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
3799 (main): Use tgt_usleep instead of usleep.
3801 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3804 * testsuite/libgomp.c/declare-variant-1.c: New test.
3806 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3808 * testsuite/libgomp.c/target-41.c: New test.
3810 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3812 * icv.c (omp_get_initial_device): Remove including corresponding
3814 * icv-device.c (omp_get_initial_device): New function. Return
3815 gomp_get_num_devices (). Add ialias.
3816 * target.c (resolve_device): Don't fail with
3817 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
3818 gomp_get_num_devices ().
3819 (omp_target_alloc, omp_target_free, omp_target_is_present,
3820 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
3821 omp_target_disassociate_ptr, omp_pause_resource): Use
3822 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
3823 first use in the functions, in uses dominated by the
3824 gomp_get_num_devices call use num_devices_openmp instead.
3825 * libgomp.texi (omp_get_initial_device): Document.
3826 * config/gcn/icv-device.c (omp_get_initial_device): New function.
3828 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
3829 * testsuite/libgomp.c/target-40.c: New test.
3831 2020-10-21 Jakub Jelinek <jakub@redhat.com>
3833 * env.c (parse_target_offload): Change new_offload var type to int,
3834 preinitialize to -1, remove found var and test new_offload != -1
3837 2020-10-20 Jakub Jelinek <jakub@redhat.com>
3839 * target.c (gomp_target_init): Inside of the function, use automatic
3840 variables corresponding to num_devices, num_devices_openmp and devices
3841 global variables and update the globals only at the end of the
3844 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
3846 * env.c (gomp_target_offload_var): New.
3847 (parse_target_offload): New.
3848 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
3849 (initialize_env): Parse OMP_TARGET_OFFLOAD.
3850 * libgomp.h (gomp_target_offload_t): New.
3851 (gomp_target_offload_var): New.
3852 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
3853 * target.c (resolve_device): Generate error if device not found and
3854 offloading is mandatory.
3855 (gomp_target_fallback): Generate error if offloading is mandatory.
3856 (GOMP_target): Add argument in call to gomp_target_fallback.
3857 (GOMP_target_ext): Likewise.
3858 (gomp_target_data_fallback): Generate error if offloading is mandatory.
3859 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
3860 (GOMP_target_data_ext): Likewise.
3861 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
3862 (gomp_target_init): Return early if offloading is disabled.
3864 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3866 * libgomp.texi (omp_get_max_active_levels): Modify description.
3867 (omp_get_supported_active_levels): Make descriptions consistent.
3869 2020-10-14 Jakub Jelinek <jakub@redhat.com>
3871 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
3873 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
3875 * env.c (gomp_max_active_levels_var): Initialize to
3876 gomp_supported_active_levels.
3877 (initialize_env): Limit gomp_max_active_levels_var to be at most
3878 equal to gomp_supported_active_levels.
3879 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
3880 (omp_get_supported_active_levels_): New.
3881 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
3882 to at most equal to gomp_supported_active_levels.
3883 (omp_get_supported_active_levels): New.
3884 * libgomp.h (gomp_supported_active_levels): New.
3885 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
3886 omp_get_supported_active_levels_.
3887 * libgomp.texi (omp_get_supported_active_levels): New.
3888 (omp_set_max_active_levels): Update. Add reference to
3889 omp_get_supported_active_levels.
3890 * omp.h.in (omp_get_supported_active_levels): New.
3891 * omp_lib.f90.in (omp_get_supported_active_levels): New.
3892 * omp_lib.h.in (omp_get_supported_active_levels): New.
3893 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
3894 against omp_get_supported_active_levels.
3895 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
3897 2020-10-11 Clement Chigot <clement.chigot@atos.net>
3899 * config/t-aix: Delete and recreate libgomp before creating
3902 2020-10-08 Tom de Vries <tdevries@suse.de>
3905 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
3908 2020-10-06 Tom de Vries <tdevries@suse.de>
3910 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
3912 2020-10-06 Tom de Vries <tdevries@suse.de>
3915 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
3917 2020-10-05 Tom de Vries <tdevries@suse.de>
3920 * testsuite/libgomp.fortran/pr95654.f90: New test.
3922 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
3924 * Makefile.in: Regenerate with automake 1.15.1.
3925 * aclocal.m4: Likewise.
3926 * configure: Likewise.
3927 * testsuite/Makefile.in: Likewise.
3929 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
3931 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
3934 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
3936 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
3938 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
3940 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
3941 total number of threads is one.
3942 (gomp_team_barrier_wake): Likewise.
3943 (gomp_team_barrier_wait_end): Likewise.
3944 (gomp_team_barrier_wait_cancel_end): Likewise.
3945 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
3946 (gomp_team_barrier_wake): Likewise.
3947 (gomp_team_barrier_wait_end): Likewise.
3948 (gomp_team_barrier_wait_cancel_end): Likewise.
3949 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
3951 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
3954 * testsuite/libgomp.c++/pr96390.C: New test.
3955 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
3957 2020-09-27 Clement Chigot <clement.chigot@atos.net>
3959 * config/t-aix: Use $(AR) without -X32_64.
3961 2020-09-25 Jakub Jelinek <jakub@redhat.com>
3963 * testsuite/libgomp.c/loop-25.c: New test.
3965 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
3968 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
3970 2020-09-22 Tom de Vries <tdevries@suse.de>
3972 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
3975 2020-09-16 Nathan Sidwell <nathan@acm.org>
3977 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
3979 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
3982 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
3984 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
3987 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
3988 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
3989 (gomp_map_vars_existing): Update call to it.
3990 (gomp_map_fields_existing): Likewise
3991 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
3992 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
3994 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
3996 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
3997 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
3999 2020-09-14 Tom de Vries <tdevries@suse.de>
4001 * config/nvptx/atomic.c: New file. Add
4002 __sync_val_compare_and_swap_16.
4003 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
4004 target offload_target_nvptx.
4006 2020-09-08 Julian Brown <julian@codesourcery.com>
4008 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
4009 iteration-ordering assumptions.
4011 2020-09-08 Julian Brown <julian@codesourcery.com>
4013 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
4014 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4016 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
4018 * plugin/plugin-nvptx.c (nvptx_free):
4019 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
4020 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
4023 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
4025 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
4027 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
4029 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
4031 2020-08-13 Jakub Jelinek <jakub@redhat.com>
4033 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
4034 * testsuite/libgomp.c/loop-23.c (main): Likewise.
4035 * testsuite/libgomp.c/loop-24.c: New test.
4037 2020-08-08 Jakub Jelinek <jakub@redhat.com>
4038 Tobias Burnus <tobias@codesourcery.com>
4041 * testsuite/libgomp.fortran/pr93553.f90: New test.
4043 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4045 * testsuite/libgomp.c/loop-22.c: New test.
4046 * testsuite/libgomp.c/loop-23.c: New test.
4048 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4051 * testsuite/libgomp.c/teams-3.c: New test.
4052 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
4054 (N(test)): Use it before all N(f*) calls.
4055 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
4056 (main): Don't call all test_* functions from within
4057 #pragma omp teams reduction(|:err), call them directly.
4059 2020-08-04 Tom de Vries <tdevries@suse.de>
4062 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
4063 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
4065 2020-08-03 Julian Brown <julian@codesourcery.com>
4066 Thomas Schwinge <thomas@codesourcery.com>
4068 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
4069 shared-memory devices. Extend with further checking.
4071 2020-08-03 Martin Jambor <mjambor@suse.cz>
4073 * plugin/Makefrag.am: Remove configuration of HSA plugin.
4074 * aclocal.m4: Regenerated.
4075 * Makefile.in: Regenerated.
4076 * config.h.in: Regenerated.
4077 * configure: Regenerated.
4078 * plugin/configfrag.ac: Likewise.
4079 * plugin/hsa_ext_finalize.h: Removed.
4080 * plugin/plugin-hsa.c: Likewise.
4081 * testsuite/Makefile.in: Regenerated.
4082 * testsuite/lib/libgomp.exp
4083 (offload_target_to_openacc_device_type): Remove hsa case.
4084 (check_effective_target_hsa_offloading_selected_nocache): Removed
4085 (check_effective_target_hsa_offloading_selected): Likewise.
4086 (libgomp_init): Do not add -Wno-hsa to additional_flags.
4087 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
4088 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4089 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
4090 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4091 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4092 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4093 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
4094 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4095 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4096 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4097 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4098 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4099 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4100 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4101 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4102 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4103 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
4104 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4105 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
4106 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4107 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4108 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
4109 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4110 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4112 2020-07-27 Julian Brown <julian@codesourcery.com>
4113 Thomas Schwinge <thomas@codesourcery.com>
4115 * libgomp.h (struct target_var_desc): Rename do_detach field to
4117 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
4118 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
4119 (goacc_enter_data_internal): Don't affect reference counts
4120 for attach mappings.
4121 (goacc_exit_data_internal): Don't affect reference counts for detach
4123 * target.c (gomp_map_vars_existing): Don't affect reference counts for
4125 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
4126 mark attach mappings.
4127 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
4128 reference count for attach mappings.
4129 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
4130 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4131 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4132 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
4134 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
4135 gracefully in no-finalize mode.
4136 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
4138 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
4140 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
4142 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4143 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4145 2020-07-23 Julian Brown <julian@codesourcery.com>
4146 Thomas Schwinge <thomas@codesourcery.com>
4148 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
4149 finalization for detach operation.
4150 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
4153 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
4155 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
4156 * libgomp_f.h.in (omp_check_defines): Check whether
4157 sizeof of determined Fortran kind and C typedef match.
4158 * omp_lib.f90.in: Add omp_depened_kind.
4159 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
4160 * configure: Regenerate.
4161 * Makefile.in: Regenerate.
4162 * testsuite/Makefile.in: Regenerate.
4164 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4166 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
4167 gcc/testsuite/c-c++-common/gomp/.
4168 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
4169 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
4170 from gcc/testsuite/gfortran.dg/gomp/.
4171 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
4173 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4175 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
4176 * omp_lib.h.in: Likewise.
4178 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
4181 * testsuite/libgomp.c/pr95620.c: New test.
4183 2020-07-16 Julian Brown <julian@codesourcery.com>
4184 Thomas Schwinge <thomas@codesourcery.com>
4186 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
4187 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
4189 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4191 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
4192 avoid conversion on 32bit systems from 32bit to 64bit due
4193 to -fdefault-integer-8.
4195 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4197 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
4198 variables; add character(kind=4) tests; update TODO comment.
4200 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4202 * allocator.c: Add ialias for omp_init_allocator and
4203 omp_destroy_allocator.
4204 * configure.ac: Set INTPTR_T_KIND.
4205 * configure: Regenerate.
4206 * Makefile.in: Regenerate.
4207 * testsuite/Makefile.in: Regenerate.
4208 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
4209 omp_set_default_allocator_, omp_get_default_allocator_): New
4210 functions and ialias_redirect.
4211 * icv.c: Add ialias for omp_set_default_allocator and
4212 omp_get_default_allocator.
4213 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
4214 omp_destroy_allocator_, omp_set_default_allocator_ and
4215 omp_get_default_allocator_.
4216 * omp_lib.f90.in: Add allocator traits parameters, declare
4217 allocator routines and add related kind parameters.
4218 * omp_lib.h.in: Likewise.
4219 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
4220 * testsuite/libgomp.fortran/alloc-1.F90: New test.
4221 * testsuite/libgomp.fortran/alloc-2.F90: New test.
4222 * testsuite/libgomp.fortran/alloc-3.F: New test.
4223 * testsuite/libgomp.fortran/alloc-4.f90: New test.
4224 * testsuite/libgomp.fortran/alloc-5.f90: New test.
4226 2020-07-14 Tom de Vries <tom@codesourcery.com>
4227 Cesar Philippidis <cesar@codesourcery.com>
4228 Thomas Schwinge <thomas@codesourcery.com>
4229 Kwok Cheung Yeung <kcy@codesourcery.com>
4231 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
4233 (acc_init_1): Set acc_init_thread to pthread_self (). Set
4234 acc_init_state to initializing at the start, and to initialized at the
4236 (self_initializing_p): New function.
4237 (acc_get_device_type): Return acc_device_none if called by thread that
4238 is currently executing acc_init_1.
4239 * libgomp.texi (acc_get_device_type): Update documentation.
4240 (Implementation Status and Implementation-Defined Behavior): Likewise.
4241 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
4243 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
4245 * config/t-aix: Set BITS from compiler cpp macro.
4247 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4249 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
4251 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4254 * testsuite/libgomp.fortran/target-map-1.f90: New test.
4256 2020-07-14 Jakub Jelinek <jakub@redhat.com>
4258 * testsuite/libgomp.c/loop-21.c: New test.
4260 2020-07-13 Julian Brown <julian@codesourcery.com>
4261 Thomas Schwinge <thomas@codesourcery.com>
4263 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
4265 2020-07-10 Julian Brown <julian@codesourcery.com>
4266 Thomas Schwinge <thomas@codesourcery.com>
4268 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
4270 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
4271 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
4273 (acc_unmap_data): Update comment.
4274 (goacc_map_var_existing, goacc_enter_datum): Adjust for
4275 dynamic_refcount semantics.
4276 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
4277 Adjust for dynamic_refcount semantics.
4278 (goacc_enter_data_internal): Implement "present" case of dynamic
4279 memory-map handling here. Update "non-present" case for
4280 dynamic_refcount semantics.
4281 (goacc_exit_data_internal): Use goacc_exit_datum_1.
4282 * target.c (gomp_map_vars_internal): Remove
4283 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
4285 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
4286 (gomp_load_image_to_device): Substitute dynamic_refcount for
4288 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
4289 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
4290 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
4291 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
4292 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
4294 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
4296 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
4298 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4299 Remove stale comment.
4300 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
4301 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4302 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4303 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4304 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4305 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
4307 2020-07-10 Julian Brown <julian@codesourcery.com>
4308 Thomas Schwinge <thomas@codesourcery.com>
4310 * oacc-mem.c (goacc_map_var_existing): New function.
4311 (goacc_enter_datum): Use above function.
4312 (goacc_exit_datum_1): New function.
4313 (goacc_exit_datum): Use above function.
4315 2020-07-09 Julian Brown <julian@codesourcery.com>
4316 Thomas Schwinge <thomas@codesourcery.com>
4319 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
4320 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
4322 2020-07-09 Julian Brown <julian@codesourcery.com>
4324 * oacc-mem.c (find_group_last): Group data-movement clauses
4325 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
4326 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
4328 2020-07-09 Jakub Jelinek <jakub@redhat.com>
4330 * testsuite/libgomp.c/loop-19.c: New test.
4331 * testsuite/libgomp.c/loop-20.c: New test.
4333 2020-07-09 Jakub Jelinek <jakub@redhat.com>
4335 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
4336 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
4337 it. Remove __omp_alloctrait_value_max__.
4338 * allocator.c (omp_init_allocator): Handle omp_atv_default for
4339 omp_atk_alignment and omp_atk_pool_size.
4341 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
4343 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
4344 behavior for 'GOMP_MAP_FORCE_FROM'.
4345 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
4347 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
4349 * oacc-mem.c (goacc_exit_data_internal): Remove
4350 'GOMP_MAP_ALWAYS_FROM' handling.
4352 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
4354 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
4355 'scan-assembler' with 'scan-offload-rtl'.
4356 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4357 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4358 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
4359 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
4361 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
4363 * target.c (gomp_map_vars_existing): Assert 'kind !=
4365 (gomp_map_vars_internal): Clean up.
4367 2020-06-27 Jakub Jelinek <jakub@redhat.com>
4369 * testsuite/libgomp.c/loop-17.c: New test.
4370 * testsuite/libgomp.c/loop-18.c: New test.
4372 2020-06-26 Marek Polacek <polacek@redhat.com>
4374 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
4376 2020-06-23 Alexandre Oliva <oliva@adacore.com>
4378 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
4379 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
4381 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
4383 * Makefile.am: Use -include.
4384 * Makefile.in: Regenerate.
4386 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
4388 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
4389 * Makefile.in: Regenerate
4390 * configure.ac (tmake_file): Substitute.
4391 * configure: Regenerate.
4392 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
4393 * config/t-aix: New file.
4395 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
4398 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
4401 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
4403 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
4404 variant for HSA_RUNTIME_LIB name.
4405 (find_executable_symbol_1): Delete.
4406 (find_executable_symbol): Delete.
4407 (init_kernel_properties): Add ".kd" suffix to symbol names.
4408 (find_load_offset): Delete.
4409 (create_and_finalize_hsa_program): Remove relocation handling.
4411 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
4413 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
4415 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
4419 * testsuite/libgomp.fortran/target-var.f90: New test.
4421 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
4422 Julian Brown <julian@codesourcery.com>
4424 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
4427 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
4428 Julian Brown <julian@codesourcery.com>
4430 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4433 2020-06-05 Julian Brown <julian@codesourcery.com>
4435 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
4436 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
4438 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4440 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4441 Evaluate 'copyfrom' individually for each entry.
4442 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
4444 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4446 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4447 Evaluate 'finalize' individually for each entry.
4448 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
4449 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
4452 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4454 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
4456 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
4458 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4459 Julian Brown <julian@codesourcery.com>
4461 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
4463 (acc_unmap_data, goacc_exit_data_internal): Restore
4464 'is_tgt_unmapped' checking.
4465 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
4467 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
4468 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4469 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4470 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4471 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4472 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4474 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4475 Julian Brown <julian@codesourcery.com>
4477 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
4479 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4482 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
4484 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4487 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
4490 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4491 Julian Brown <julian@codesourcery.com>
4493 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
4495 (acc_map_data): Clean up accordingly.
4497 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4499 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
4500 of over-eager 'finalize' clause.
4501 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
4503 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4504 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4505 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4506 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4507 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4508 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
4509 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4510 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
4512 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4514 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
4516 2020-06-04 Julian Brown <julian@codesourcery.com>
4518 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
4520 (goacc_detach_internal): Likewise.
4522 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4524 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
4526 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4527 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4528 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4529 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4530 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4532 2020-06-02 Jakub Jelinek <jakub@redhat.com>
4534 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
4537 2020-05-30 Jakub Jelinek <jakub@redhat.com>
4539 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
4541 2020-05-30 Jakub Jelinek <jakub@redhat.com>
4543 * allocator.c (omp_alloc): For size == 0, return NULL early.
4545 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
4548 * configure: Regenerated.
4550 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
4553 * testsuite/libgomp.fortran/async_io_9.f90: New test.
4555 2020-05-19 Jakub Jelinek <jakub@redhat.com>
4557 * omp.h.in (omp_uintptr_t): New typedef.
4558 (__GOMP_UINTPTR_T_ENUM): Define.
4559 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
4560 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
4561 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
4562 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
4563 omp_get_default_allocator, omp_alloc, omp_free): Declare.
4564 * libgomp.h (struct gomp_team_state): Add def_allocator field.
4565 (gomp_def_allocator): Declare.
4566 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
4567 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
4568 omp_alloc and omp_free.
4569 * team.c (gomp_team_start): Copy over ts.def_allocator.
4570 * env.c (gomp_def_allocator): New variable.
4571 (parse_wait_policy): Adjust function comment.
4572 (parse_allocator): New function.
4573 (handle_omp_display_env): Print OMP_ALLOCATOR.
4574 (initialize_env): Call parse_allocator.
4575 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
4576 * allocator.c: New file.
4577 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
4579 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
4580 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
4581 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
4582 * Makefile.in: Regenerated.
4584 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
4587 * configure: Regenerated.
4589 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
4592 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
4594 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
4596 * configure: Regenerated.
4598 2020-05-14 Jakub Jelinek <jakub@redhat.com>
4600 * testsuite/libgomp.c-c++-common/target-40.c: New test.
4602 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
4605 * testsuite/libgomp.fortran/pr66199-3.f90: New.
4606 * testsuite/libgomp.fortran/pr66199-4.f90: New.
4607 * testsuite/libgomp.fortran/pr66199-5.f90: New.
4608 * testsuite/libgomp.fortran/pr66199-6.f90: New.
4609 * testsuite/libgomp.fortran/pr66199-7.f90: New.
4610 * testsuite/libgomp.fortran/pr66199-8.f90: New.
4611 * testsuite/libgomp.fortran/pr66199-9.f90: New.
4613 2020-05-12 Jakub Jelinek <jakub@redhat.com>
4615 * testsuite/libgomp.c/target-39.c: New test.
4617 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
4619 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
4620 * openacc.f90 (acc_device_current): Likewise.
4621 * openacc.h (acc_device_current): Likewise.
4622 * openacc_lib.h (acc_device_current): Likewise.
4625 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
4626 'dg-allow-blank-lines-in-output'.
4628 * oacc-init.c (get_openacc_name): Handle 'gcn'.
4629 * testsuite/lib/libgomp.exp
4630 (offload_target_to_openacc_device_type) [amdgcn*]: Return
4631 'radeon'. Adjust all users.
4632 (check_effective_target_openacc_amdgcn_accel_present): Rename
4634 (check_effective_target_openacc_radeon_accel_present): ... this.
4636 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
4637 (check_effective_target_openacc_radeon_accel_selected): ... this.
4640 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
4643 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
4647 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
4649 (GOMP_OFFLOAD_init_device): Check return values from both calls to
4650 hsa_agent_iterate_regions.
4652 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
4655 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
4658 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
4661 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
4664 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
4667 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
4669 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
4672 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4674 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
4676 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4678 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
4680 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4682 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
4684 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4686 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
4688 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4690 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
4692 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4694 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
4696 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4698 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
4700 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4702 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4704 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4706 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
4708 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4710 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
4712 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4714 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
4716 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4718 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
4720 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4722 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
4724 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4726 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
4728 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4730 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
4732 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
4734 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
4737 2020-04-10 Julian Brown <julian@codesourcery.com>
4738 Thomas Schwinge <thomas@codesourcery.com>
4741 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4743 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4745 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4747 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4749 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4751 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4753 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4755 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4757 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4759 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4761 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4763 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4765 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4767 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4769 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4771 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
4774 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
4776 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
4779 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
4782 * libgomp.oacc-c++/declare-pr94120.C: New.
4784 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
4786 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
4788 * configure: Regenerate.
4789 * testsuite/libgomp-site-extra.exp.in: New file.
4790 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
4792 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
4794 * testsuite/Makefile.in: Regenerate.
4796 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
4798 PR tree-optimization/89713
4800 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
4802 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4804 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
4806 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
4807 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
4809 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
4812 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
4814 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
4817 * target.c (gomp_load_image_to_device): Fix link
4820 2020-03-19 Jakub Jelinek <jakub@redhat.com>
4823 * testsuite/libgomp.c++/pr93931.C: New test.
4825 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
4827 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
4828 dg-allow-blank-lines-in-output.
4830 2020-03-18 Julian Brown <julian@codesourcery.com>
4831 Tobias Burnus <tobias@codesourcery.com>
4833 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
4834 it work concurrently.
4836 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
4838 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
4839 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
4840 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
4842 2020-03-14 Jakub Jelinek <jakub@redhat.com>
4845 * testsuite/libgomp.c/pr93566.c: New test.
4847 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
4849 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
4850 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
4851 integer(acc_device_property) for the type of the return value of
4854 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
4856 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
4857 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
4858 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
4859 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
4860 (acc_set_device_num): Fix Fortran argument name, use same name for C.
4861 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
4862 corrections; add note about the previous interface and named constant.
4863 (OpenACC library and environment variables): Fix two typos.
4864 * openacc.f90: Use for all procedures the argument names from the spec
4865 as for …_h they are user visible.
4866 (openacc_kinds): Rename acc_device_property to
4867 acc_device_property_kinds and change value to int32 ; and update users.
4868 Re-add acc_device_property for for backward compatibility.
4869 (acc_get_property_string_h): Clean up as acc_device_property_kind
4871 (acc_get_property_h): Likewise and return c_size_t instead of
4872 acc_device_property.
4873 (openacc): Also export acc_device_property_kinds.
4874 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
4875 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
4876 handling; check against /= 0 instead of == 1 to match C.
4877 * openacc_lib.h: Use for all procedures the argument names from the spec
4878 as for …_h they are user visible. Place !GCC$ into the first column to
4879 be active also for fixed-form souce form.
4880 (acc_device_current, acc_device_property_kind, acc_device_property,
4881 acc_property_memory, acc_property_free_memory, acc_property_name,
4882 acc_property_vendor, acc_property_driver): New named constants.
4883 (acc_get_property, acc_get_property_string): New generic interface.
4885 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
4888 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
4889 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
4891 (gomp_target_task_fn): Assert "devicep->async_run_func".
4892 (clear_unsupported_flags): New function to remove unsupported flags
4893 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
4894 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
4895 * testsuite/libgomp.c/target-33.c:
4896 Remove xfail for offload_target_nvptx.
4897 * testsuite/libgomp.c/target-34.c: Likewise.
4899 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
4901 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
4902 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
4903 * testsuite/libgomp.c/target-34.c: Likewise.
4904 * testsuite/libgomp.c/target-link-1.c: Add xfail for
4905 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
4907 2020-02-09 Jakub Jelinek <jakub@redhat.com>
4909 * testsuite/libgomp.c/target-38.c: New test.
4911 2020-02-06 Jakub Jelinek <jakub@redhat.com>
4914 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
4916 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
4918 * testsuite/lib/libgomp.exp
4919 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
4920 and not as 'source' argument to libgomp_target_compile.
4922 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
4924 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
4925 (gcn_gfx801_s): Remove.
4926 (isa_hsa_name): Remove gfx801.
4927 (isa_gcc_name): Remove gfx801/carizzo.
4928 (isa_code): Remove gfx801.
4930 2020-02-03 Julian Brown <julian@codesourcery.com>
4931 Tobias Burnus <tobias@codesourcery.com>
4933 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
4934 and *_finalize variants; document acc_attach and acc_detach; update
4935 references from OpenACC 2.0 to 2.6.
4936 * openacc.f90 (openacc_version): Update to 201711.
4937 * openacc_lib.h (openacc_version): Update to 201711.
4938 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
4939 openacc_version to 201711.
4940 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4942 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
4944 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
4945 and vgpr_count fields.
4946 (struct kernel_info): Add a field for a hsa_kernel_description.
4947 (run_kernel): Reduce the number of threads/workers if the requested
4948 number would require too many VGPRs.
4949 (init_basic_kernel_info): Initialize description field with
4950 the hsa_kernel_description entry for the kernel.
4952 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
4955 * plugin/configfrag.ac (enable_offload_targets): Skip
4956 HSA and GCN plugin besides -m32 also for -mx32.
4957 * configure: Regenerate.
4959 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
4961 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
4963 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
4965 * plugin-gcn.c (struct agent_info): Add fields "name" and
4967 (GOMP_OFFLOAD_init_device): ... and init from here.
4968 (struct hsa_context_info): Add field "driver_version_s" ...
4969 (init_hsa_contest): ... and init from here.
4970 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
4972 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
4973 Enable test execution for amdgcn and host offloading targets.
4974 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
4975 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
4976 (expect_device_properties): Split function into ...
4977 (expect_device_string_properties): ... this new function ...
4978 (expect_device_memory): ... and this new function.
4979 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
4982 2020-01-28 Julian Brown <julian@codesourcery.com>
4984 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
4985 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
4986 component/non-component variable refs in a single directive.
4987 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
4989 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4991 * configure.ac: Handle `--with-toolexeclibdir='.
4992 * Makefile.in: Regenerate.
4993 * aclocal.m4: Regenerate.
4994 * configure: Regenerate.
4995 * testsuite/Makefile.in: Regenerate.
4997 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
4999 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
5000 (expect_device_properties): Remove "expected_free_mem" argument,
5001 change "expected_total_mem" argument type to size_t;
5002 change types of acc_get_property results to size_t,
5003 adapt format strings.
5004 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
5005 Use %zu instead of %zd to print size_t values.
5006 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
5008 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
5009 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
5011 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
5013 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
5015 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
5018 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
5020 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
5021 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
5022 Adjust test dimensions for amdgcn.
5023 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
5024 gang/worker/vector expectations dynamically.
5025 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
5027 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
5028 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
5029 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
5030 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
5031 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
5032 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
5033 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
5034 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
5035 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5036 (acc_gang): Recognise acc_device_radeon.
5037 (acc_worker): Likewise.
5038 (acc_vector): Likewise.
5039 (main): Set expectations for amdgcn.
5040 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
5041 (main): Adjust gang/worker/vector expectations dynamically.
5042 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
5043 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
5044 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
5045 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
5048 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
5050 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
5052 (openacc): Likewise.
5053 * openacc.f90 (openacc_kinds): Likewise.
5054 (openacc): Likewise.
5055 * openacc.h (acc_device_t): Likewise.
5056 * openacc_lib.h: Likewise.
5057 * testsuite/lib/libgomp.exp
5058 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
5059 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
5060 (cb_compute_construct_end): Likewise.
5061 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5062 (cb_enqueue_launch_start): Likewise.
5063 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
5064 (cb_enter_data_end): Likewise.
5065 (cb_exit_data_start): Likewise.
5066 (cb_exit_data_end): Likewise.
5067 (cb_compute_construct_end): Likewise.
5068 (cb_enqueue_launch_start): Likewise.
5069 (cb_enqueue_launch_end): Likewise.
5070 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
5073 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
5075 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
5076 to use this instead of 'enum gomp_device_property'.
5077 (GOMP_OFFLOAD_get_property): Rename to...
5078 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
5079 * libgomp.h (struct gomp_device_descr): Move
5080 'GOMP_OFFLOAD_openacc_get_property'...
5081 (struct acc_dispatch_t): ... here. Adjust all users.
5082 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
5084 * target.c (gomp_map_vars_internal)
5085 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
5088 2020-01-10 Jakub Jelinek <jakub@redhat.com>
5091 * libgomp.h (gomp_print_string): Change return type from void to int.
5092 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
5093 not all characters have been written.
5095 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
5097 * libgomp.texi: Fix typos, use https.
5099 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
5101 * testsuite/libgomp.fortran/optional-map.f90: Add test for
5102 unallocated/disassociated actual arguments to nonallocatable/nonpointer
5103 dummy arguments; those are/shall be regarded as absent arguments.
5104 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5105 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
5107 2020-01-01 Jakub Jelinek <jakub@redhat.com>
5109 Update copyright years.
5111 * libgomp.texi: Bump @copying's copyright year.
5113 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
5116 * oacc-init.c (goacc_runtime_deinitialize): New function.
5118 2019-12-28 Jakub Jelinek <jakub@redhat.com>
5121 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
5122 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
5124 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
5125 Frederik Harwath <frederik@codesourcery.com>
5126 Thomas Schwinge <tschwinge@codesourcery.com>
5128 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
5129 * libgomp-plugin.h (gomp_device_property_value): New union.
5130 (gomp_device_property_value): New prototype.
5131 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
5133 (acc_device_property_t): New enum.
5134 (acc_get_property, acc_get_property_string): New prototypes.
5135 * oacc-init.c (acc_get_device_type): Also assert that result
5136 is not `acc_device_current'.
5137 (get_property_any, acc_get_property, acc_get_property_string):
5139 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
5140 `acc_property_memory', `acc_property_free_memory',
5141 `acc_property_name', `acc_property_vendor' and
5142 `acc_property_driver' constants. Add `acc_device_property' data
5144 (openacc_internal): Add `acc_get_property' and
5145 `acc_get_property_string' interfaces. Add `acc_get_property_h',
5146 `acc_get_property_string_h', `acc_get_property_l' and
5147 `acc_get_property_string_l'.
5148 * oacc-host.c (host_get_property): New function.
5149 (host_dispatch): Wire it.
5150 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
5151 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
5152 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
5153 * libgomp.texi (OpenACC Runtime Library Routines): Add
5155 (acc_get_property): New node.
5156 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
5158 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
5159 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
5160 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
5162 (GOMP_OFFLOAD_get_property): New function.
5163 (struct ptx_device): Add new field "name".
5164 (cuda_driver_version_s): Add new static variable ...
5165 (nvptx_init): ... and init from here.
5167 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
5168 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
5169 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
5170 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
5171 with test helper functions.
5173 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
5175 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
5177 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
5180 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
5182 * target.c (gomp_map_vars_internal): Restore 'omp declare target
5185 2019-12-19 Julian Brown <julian@codesourcery.com>
5187 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
5188 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
5189 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
5191 2019-12-19 Julian Brown <julian@codesourcery.com>
5192 Cesar Philippidis <cesar@codesourcery.com>
5194 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
5195 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
5196 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
5197 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
5198 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
5199 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
5200 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
5201 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
5202 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
5203 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
5204 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
5205 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
5206 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
5208 2019-12-19 Julian Brown <julian@codesourcery.com>
5210 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
5211 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
5212 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
5213 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
5214 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
5215 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
5216 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
5217 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
5218 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
5219 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
5220 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
5221 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
5223 2019-12-19 Julian Brown <julian@codesourcery.com>
5225 * libgomp.h (struct target_var_desc): Add do_detach flag.
5226 * oacc-init.c (acc_shutdown_1): Free aux block if present.
5227 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
5228 struct components. Tidy up and add some new checks.
5229 (goacc_enter_data_internal): Update call to find_group_last.
5230 (goacc_exit_data_internal): Support detach operations and
5232 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
5233 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
5234 attach/detach in enter/exit data detection code.
5235 * target.c (gomp_map_vars_existing): Initialise do_detach field of
5237 (gomp_map_vars_internal): Support attach.
5238 (gomp_unmap_vars_internal): Support detach.
5240 2019-12-19 Julian Brown <julian@codesourcery.com>
5241 Thomas Schwinge <thomas@codesourcery.com>
5243 * libgomp.h (struct splay_tree_aux): Add attach_count field.
5244 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
5245 * libgomp.map (OACC_2.6): New section. Add acc_attach,
5246 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
5247 acc_detach_finalize_async.
5248 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
5249 acc_detach, acc_detach_async, acc_detach_finalize,
5250 acc_detach_finalize_async): New functions.
5251 * openacc.h (acc_attach, acc_attach_async, acc_detach,
5252 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
5254 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
5255 (gomp_remove_var_internal): Free attachment counts if present.
5256 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
5257 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
5259 2019-12-19 Julian Brown <julian@codesourcery.com>
5260 Cesar Philippidis <cesar@codesourcery.com>
5262 * libgomp.h (gomp_map_val): Add prototype.
5263 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
5264 open-coding device-address calculation.
5265 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
5268 2019-12-19 Julian Brown <julian@codesourcery.com>
5270 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
5271 field for virtual_refcount.
5272 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5273 (gomp_free_memmap): Remove prototype.
5274 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
5275 instead of calling gomp_free_memmap.
5276 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
5278 (acc_unmap_data): Open code instead of forcing target_mem_desc's
5279 to_free field to NULL then calling gomp_unmap_vars. Handle
5280 REFCOUNT_INFINITY on target blocks.
5281 (goacc_enter_data): Rename to...
5282 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
5283 handling for mapping groups. Use virtual_refcount instead of
5284 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
5285 map_map_vars_async call. Re-do lookup for target pointer return value.
5286 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
5287 renamed goacc_enter_datum function.
5288 (goacc_exit_data): Rename to...
5289 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
5290 (acc_delete, acc_delete_async, acc_delete_finalize,
5291 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
5292 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
5293 goacc_exit_datum function.
5294 (gomp_acc_remove_pointer, find_pointer): Remove functions.
5295 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
5297 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
5298 goacc_exit_data_internal helper functions.
5299 * target.c (gomp_map_vars_internal): Handle
5300 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
5302 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
5303 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
5304 virtual_refcount field instead of dynamic_refcount.
5305 (gomp_free_memmap): Remove function.
5306 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
5307 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
5308 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
5310 2019-12-19 Julian Brown <julian@codesourcery.com>
5311 Thomas Schwinge <thomas@codesourcery.com>
5313 * libgomp.h (struct splay_tree_aux): New.
5314 (struct splay_tree_key_s): Replace link_key field with aux pointer.
5315 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
5317 (gomp_remove_var_internal): Free aux block if present.
5318 (gomp_load_image_to_device): Zero-initialise aux field instead of
5320 (omp_target_associate_pointer): Zero-initialise aux field.
5322 2019-12-18 Jakub Jelinek <jakub@redhat.com>
5325 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
5327 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
5330 2019-12-19 Julian Brown <julian@codesourcery.com>
5331 Maciej W. Rozycki <macro@codesourcery.com>
5332 Tobias Burnus <tobias@codesourcery.com>
5333 Thomas Schwinge <thomas@codesourcery.com>
5335 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
5336 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
5337 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
5338 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
5339 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
5340 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
5341 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
5342 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
5343 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
5345 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
5347 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5349 (goacc_insert_pointer): ... from here, "present" case.
5350 (goacc_insert_pointer): Inline function into...
5351 (GOACC_enter_exit_data): ... here, and simplify.
5353 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5355 (goacc_insert_pointer): ... from here, "not present" case.
5357 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
5360 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
5361 'goacc_enter_data', 'goacc_exit_data'.
5363 * oacc-mem.c (delete_copyout): Refactor into...
5364 (goacc_exit_data): ... this. Adjust all users.
5366 * oacc-mem.c (present_create_copy): Refactor into...
5367 (goacc_enter_data): ... this. Adjust all users.
5369 * target.c (gomp_unmap_vars_internal): Add a safeguard to
5372 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
5373 like 'GOMP_MAP_FROM'.
5378 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
5380 (GOACC_enter_exit_data): Simplify accordingly.
5381 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
5383 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
5384 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
5386 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
5388 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
5389 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
5391 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
5393 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
5395 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
5396 'finalize' handling.
5399 * oacc-mem.c (acc_map_data, present_create_copy)
5400 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
5401 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
5402 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
5403 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
5404 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
5405 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
5406 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
5407 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5410 * target.c (gomp_unmap_tgt): Make it 'static'.
5411 * libgomp.h (gomp_unmap_tgt): Remove.
5413 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
5416 * testsuite/libgomp.c/pr86416-1.c: New.
5417 * testsuite/libgomp.c/pr86416-2.c: New.
5419 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
5421 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
5422 all symbols as public except for the 'use …, only' imported symbol,
5424 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5425 all symbols from module openacc_kinds as PUBLIC
5426 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
5428 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
5430 2019-12-13 Julian Brown <julian@codesourcery.com>
5434 * libgomp.h (gomp_remove_var_async): Add prototype.
5435 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
5437 * target.c (gomp_unref_tgt): Change return type to bool, indicating
5438 whether target_mem_desc was unmapped.
5439 (gomp_unref_tgt_void): New.
5440 (gomp_remove_var): Reimplement in terms of...
5441 (gomp_remove_var_internal): ...this new helper function.
5442 (gomp_remove_var_async): New, implemented using above helper function.
5443 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
5446 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
5448 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
5449 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
5450 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
5451 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
5452 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
5454 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
5455 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
5457 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
5459 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
5460 as public except for the 'use …, only' imported symbol, which is
5462 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5463 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
5464 attributes for acc_copyout_finalize and acc_delete_finalize.
5466 2019-12-11 Jakub Jelinek <jakub@redhat.com>
5469 * testsuite/libgomp.fortran/atomic1.f90: New test.
5471 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
5474 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
5475 reference counting for structured 'REFCOUNT_INFINITY'. Add some
5477 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
5478 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
5479 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
5480 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5481 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5483 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
5484 * oacc-mem.c: ... here.
5485 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
5486 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
5487 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
5489 * libgomp_g.h: Update.
5491 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
5492 * oacc-async.c: ... here.
5493 * oacc-int.h (goacc_wait): Declare.
5494 * libgomp_g.h: Update
5497 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
5499 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
5501 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
5503 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
5505 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
5507 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
5510 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
5511 Julian Brown <julian@codesourcery.com>
5513 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
5514 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
5516 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
5518 * omp_lib.h.in: Fix spelling of function declaration
5519 omp_get_cancell(l)ation.
5520 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
5522 * env.c: Fix comment typos.
5523 * oacc-host.c: Likewise.
5524 * ordered.c: Likewise.
5527 * config/gcn/task.c: Likewise.
5528 * config/gcn/team.c: Likewise.
5529 * config/nvptx/task.c: Likewise.
5530 * config/nvptx/team.c: Likewise.
5531 * plugin/plugin-gcn.c: Likewise.
5532 * testsuite/libgomp.fortran/jacobi.f: Likewise.
5533 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5534 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
5536 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
5538 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
5539 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
5540 unnecessary 'dg-additional-options "-w"'.
5542 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
5543 Julian Brown <julian@codesourcery.com>
5548 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
5549 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
5551 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5553 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5555 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
5557 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
5560 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
5561 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
5563 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
5565 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
5567 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
5569 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5571 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5573 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5574 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5575 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5576 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5577 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5578 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5579 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5580 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5581 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
5582 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5585 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
5586 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
5587 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
5589 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
5591 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
5593 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5594 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
5597 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
5599 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
5601 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
5603 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
5605 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5606 ... with their content moved into, and extended in this new file.
5607 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
5609 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
5611 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
5613 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
5616 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
5619 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
5621 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
5623 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
5625 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
5627 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
5629 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
5630 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5631 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
5632 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
5634 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
5635 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
5637 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
5639 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
5641 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
5642 Kwok Cheung Yeung <kcy@codesourcery.com>
5644 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
5645 if input it a NULL pointer.
5646 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
5647 diagnostic of NULL pointer.
5648 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
5649 * testsuite/libgomp.fortran/optional-map.f90: New.
5650 * testsuite/libgomp.fortran/use_device_addr-1.f90
5651 (test_dummy_opt_callee_1_absent): New.
5652 (test_dummy_opt_call_1): Call it.
5653 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
5654 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
5655 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
5656 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
5657 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
5658 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
5659 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
5660 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
5661 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
5662 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
5663 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
5664 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
5665 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
5666 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
5667 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
5668 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
5670 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
5672 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
5673 expect dg-output of 'Error termination.' for GCN.
5674 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5675 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5677 2019-12-04 Jakub Jelinek <jakub@redhat.com>
5680 * testsuite/libgomp.fortran/teams1.f90: New test.
5681 * testsuite/libgomp.fortran/teams2.f90: New test.
5683 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
5685 * oacc-init.c (acc_known_device_type): Add function.
5686 (unknown_device_type_error): Add function.
5687 (name_of_acc_device_t): Change to call unknown_device_type_error
5689 (resolve_device): Use acc_known_device_type.
5690 (acc_init): Fail if acc_device_t argument is not valid.
5691 (acc_shutdown): Likewise.
5692 (acc_get_num_devices): Likewise.
5693 (acc_set_device_type): Likewise.
5694 (acc_get_device_num): Likewise.
5695 (acc_set_device_num): Likewise.
5696 (acc_on_device): Add comment that argument validity is not checked.
5698 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
5700 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5702 (check_effective_target_openacc_amdgcn_accel_present): New proc.
5703 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
5704 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
5705 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5706 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5708 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5711 * configure.tgt: Avoid IE tls on *-*-musl*.
5713 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
5715 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
5716 adding a common-block test case.
5718 2019-11-29 Jakub Jelinek <jakub@redhat.com>
5721 * testsuite/libgomp.c++/udr-20.C: New test.
5722 * testsuite/libgomp.c++/udr-21.C: New test.
5724 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
5726 * testsuite/lib/libgomp.exp
5727 (check_effective_target_offload_target_nvptx): New proc.
5728 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
5730 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
5731 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
5732 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
5734 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5736 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
5737 * testsuite/libgomp.c/pr39591-2.c: Likewise.
5738 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5739 * testsuite/libgomp.c/private-1.c: Likewise.
5740 * testsuite/libgomp.c/task-1.c: Likewise.
5741 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
5743 2019-11-20 Julian Brown <julian@codesourcery.com>
5745 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
5747 (queue_push_launch): Lock aq->mutex before calling
5748 wait_for_queue_nonfull.
5749 (queue_push_callback): Likewise.
5750 (queue_push_asyncwait): Likewise.
5751 (queue_push_placeholder): Likewise.
5753 2019-11-20 Julian Brown <julian@codesourcery.com>
5755 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
5756 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
5757 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
5760 2019-11-20 Julian Brown <julian@codesourcery.com>
5764 * oacc-mem.c (present_create_copy): Fix device pointer return value in
5765 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
5766 in non-present/create case.
5767 (delete_copyout): Change error condition to fail only on copies outside
5768 of mapped block. Adjust error message accordingly.
5769 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
5770 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
5771 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
5773 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5774 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
5775 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5777 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
5779 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
5780 libatomic in build-tree testing.
5782 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
5784 * testsuite/Makefile.in: Regenerate.
5786 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
5788 * testsuite/libgomp.c/target-print-1.c: New file.
5789 * testsuite/libgomp.fortran/target-print-1.f90: New file.
5790 * testsuite/libgomp.oacc-c/print-1.c: New file.
5791 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
5793 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5794 Kwok Cheung Yeung <kcy@codesourcery.com>
5795 Julian Brown <julian@codesourcery.com>
5796 Tom de Vries <tom@codesourcery.com>
5798 * plugin/Makefrag.am: Add amdgcn plugin support.
5799 * plugin/configfrag.ac: Likewise.
5800 * plugin/plugin-gcn.c: New file.
5801 * configure: Regenerate.
5802 * Makefile.in: Regenerate.
5803 * testsuite/Makefile.in: Regenerate.
5805 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5807 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
5808 and use team_malloc variants.
5809 (gomp_gcn_exit_kernel): Use team_free.
5810 * libgomp.h (TEAM_ARENA_SIZE): Define.
5811 (TEAM_ARENA_START): Define.
5812 (TEAM_ARENA_FREE): Define.
5813 (TEAM_ARENA_END): Define.
5814 (team_malloc): New function.
5815 (team_malloc_cleared): New function.
5816 (team_free): New function.
5817 * team.c (gomp_new_team): Initialize and use team_malloc.
5818 (free_team): Use team_free.
5819 (gomp_free_thread): Use team_free.
5820 (gomp_pause_host): Use team_free.
5821 * work.c (gomp_init_work_share): Use team_malloc.
5822 (gomp_fini_work_share): Use team_free.
5824 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5825 Kwok Cheung Yeung <kcy@codesourcery.com>
5826 Julian Brown <julian@codesourcery.com>
5827 Tom de Vries <tom@codesourcery.com>
5829 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
5830 * Makefile.in: Regenerate.
5831 * config.h.in (PLUGIN_GCN): Add new undef.
5832 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
5833 * config/gcn/affinity-fmt.c: New file.
5834 * config/gcn/bar.c: New file.
5835 * config/gcn/bar.h: New file.
5836 * config/gcn/doacross.h: New file.
5837 * config/gcn/icv-device.c: New file.
5838 * config/gcn/oacc-target.c: New file.
5839 * config/gcn/simple-bar.h: New file.
5840 * config/gcn/target.c: New file.
5841 * config/gcn/task.c: New file.
5842 * config/gcn/team.c: New file.
5843 * config/gcn/time.c: New file.
5844 * configure.ac: Add amdgcn*-*-*.
5845 * configure: Regenerate.
5846 * configure.tgt: Add amdgcn*-*-*.
5847 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
5848 * libgomp.h (gcn_thrs): Add amdgcn variant.
5849 (set_gcn_thrs): Likewise.
5850 (gomp_thread): Likewise.
5851 * oacc-int.h (goacc_thread): Likewise.
5852 * oacc-target.c: New file.
5853 * openacc.f90 (acc_device_gcn): New parameter.
5854 * openacc.h (acc_device_t): Add acc_device_gcn.
5855 * team.c (gomp_free_pool_helper): Add amdgcn support.
5857 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5858 Julian Brown <julian@codesourcery.com>
5860 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
5862 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
5864 * oacc-host.c (host_openacc_async_construct): Add device parameter.
5865 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
5868 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5870 * configure.tgt (nvptx*-*-*): Add "accel" directory.
5871 * config/nvptx/libgomp-plugin.c: Move ...
5872 * config/accel/libgomp-plugin.c: ... to here.
5873 * config/nvptx/lock.c: Move ...
5874 * config/accel/lock.c: ... to here.
5875 * config/nvptx/mutex.c: Move ...
5876 * config/accel/mutex.c: ... to here.
5877 * config/nvptx/mutex.h: Move ...
5878 * config/accel/mutex.h: ... to here.
5879 * config/nvptx/oacc-async.c: Move ...
5880 * config/accel/oacc-async.c: ... to here.
5881 * config/nvptx/oacc-cuda.c: Move ...
5882 * config/accel/oacc-cuda.c: ... to here.
5883 * config/nvptx/oacc-host.c: Move ...
5884 * config/accel/oacc-host.c: ... to here.
5885 * config/nvptx/oacc-init.c: Move ...
5886 * config/accel/oacc-init.c: ... to here.
5887 * config/nvptx/oacc-mem.c: Move ...
5888 * config/accel/oacc-mem.c: ... to here.
5889 * config/nvptx/oacc-plugin.c: Move ...
5890 * config/accel/oacc-plugin.c: ... to here.
5891 * config/nvptx/omp-lock.h: Move ...
5892 * config/accel/omp-lock.h: ... to here.
5893 * config/nvptx/openacc.f90: Move ...
5894 * config/accel/openacc.f90: ... to here.
5895 * config/nvptx/pool.h: Move ...
5896 * config/accel/pool.h: ... to here.
5897 * config/nvptx/proc.c: Move ...
5898 * config/accel/proc.c: ... to here.
5899 * config/nvptx/ptrlock.c: Move ...
5900 * config/accel/ptrlock.c: ... to here.
5901 * config/nvptx/ptrlock.h: Move ...
5902 * config/accel/ptrlock.h: ... to here.
5903 * config/nvptx/sem.c: Move ...
5904 * config/accel/sem.c: ... to here.
5905 * config/nvptx/sem.h: Move ...
5906 * config/accel/sem.h: ... to here.
5907 * config/nvptx/thread-stacksize.h: Move ...
5908 * config/accel/thread-stacksize.h: ... to here.
5910 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
5911 Tobias Burnus <tobias@codesourcery.com>
5912 Frederik Harwath <frederik@codesourcery.com>
5913 Thomas Schwinge <thomas@codesourcery.com>
5916 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
5917 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
5918 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
5920 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
5921 Kwok Cheung Yeung <kcy@codesourcery.com>
5923 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
5924 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
5926 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
5928 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
5930 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
5932 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
5933 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
5935 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
5937 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
5938 Add expected warnings about missing reduction clauses.
5939 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5941 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
5943 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
5946 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5948 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
5949 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
5950 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
5951 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
5952 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
5953 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
5955 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5958 * testsuite/libgomp.fortran/allocatable2.f90: Use
5959 unique numbers with 'stop'.
5960 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
5961 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
5962 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
5963 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
5964 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
5966 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5968 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
5969 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
5970 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
5971 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
5972 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
5973 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
5975 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5977 * testsuite/libgomp.fortran/target9.f90: New.
5979 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5981 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
5982 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
5983 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
5984 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
5985 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
5986 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
5987 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
5988 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
5989 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
5990 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
5991 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
5992 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
5993 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
5994 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
5995 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
5996 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
5997 * testsuite/libgomp.fortran/associate1.f90: Ditto.
5998 * testsuite/libgomp.fortran/associate2.f90: Ditto.
5999 * testsuite/libgomp.fortran/associate3.f90: Ditto.
6000 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
6001 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
6002 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
6003 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
6004 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
6005 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
6006 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
6007 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
6008 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
6009 * testsuite/libgomp.fortran/character1.f90: Ditto.
6010 * testsuite/libgomp.fortran/character2.f90: Ditto.
6011 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
6012 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
6013 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
6014 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
6015 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
6016 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
6017 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
6018 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
6019 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
6020 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
6021 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
6022 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
6023 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
6024 * testsuite/libgomp.fortran/do1.f90: Ditto.
6025 * testsuite/libgomp.fortran/do2.f90: Ditto.
6026 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
6027 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
6028 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
6029 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
6030 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
6031 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
6032 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
6033 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
6034 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
6035 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
6036 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
6037 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
6038 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
6039 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
6040 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
6041 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
6042 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
6043 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
6044 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
6045 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
6046 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
6047 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
6048 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
6049 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
6050 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
6051 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
6052 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
6053 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
6054 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
6055 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
6056 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
6057 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
6058 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
6059 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
6060 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
6061 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
6062 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
6063 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
6064 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
6065 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
6066 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
6067 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
6068 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
6069 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
6070 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
6071 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
6072 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
6073 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
6074 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
6075 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6076 * testsuite/libgomp.fortran/lib1.f90: Ditto.
6077 * testsuite/libgomp.fortran/lib4.f90: Ditto.
6078 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
6079 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
6080 * testsuite/libgomp.fortran/nested1.f90: Ditto.
6081 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
6082 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
6083 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
6084 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6085 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
6086 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
6087 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6088 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
6089 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
6090 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
6091 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
6092 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
6093 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
6094 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
6095 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6096 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
6097 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6098 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
6099 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
6100 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
6101 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
6102 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
6103 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
6104 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
6105 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6106 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
6107 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
6108 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
6109 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
6110 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
6111 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6112 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
6113 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
6114 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
6115 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
6116 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6117 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
6118 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
6119 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
6120 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
6121 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
6122 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
6123 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
6124 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
6125 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
6126 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
6127 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
6128 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
6129 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
6130 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
6131 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
6132 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
6133 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
6134 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
6135 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
6136 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
6137 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6138 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
6139 * testsuite/libgomp.fortran/reference1.f90: Ditto.
6140 * testsuite/libgomp.fortran/reference2.f90: Ditto.
6141 * testsuite/libgomp.fortran/retval1.f90: Ditto.
6142 * testsuite/libgomp.fortran/retval2.f90: Ditto.
6143 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
6144 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
6145 * testsuite/libgomp.fortran/simd1.f90: Ditto.
6146 * testsuite/libgomp.fortran/simd2.f90: Ditto.
6147 * testsuite/libgomp.fortran/simd3.f90: Ditto.
6148 * testsuite/libgomp.fortran/simd4.f90: Ditto.
6149 * testsuite/libgomp.fortran/simd5.f90: Ditto.
6150 * testsuite/libgomp.fortran/simd6.f90: Ditto.
6151 * testsuite/libgomp.fortran/simd7.f90: Ditto.
6152 * testsuite/libgomp.fortran/stack.f90: Ditto.
6153 * testsuite/libgomp.fortran/strassen.f90: Ditto.
6154 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
6155 * testsuite/libgomp.fortran/tabs2.f: Ditto.
6156 * testsuite/libgomp.fortran/target1.f90: Ditto.
6157 * testsuite/libgomp.fortran/target2.f90: Ditto.
6158 * testsuite/libgomp.fortran/target3.f90: Ditto.
6159 * testsuite/libgomp.fortran/target4.f90: Ditto.
6160 * testsuite/libgomp.fortran/target5.f90: Ditto.
6161 * testsuite/libgomp.fortran/target6.f90: Ditto.
6162 * testsuite/libgomp.fortran/target7.f90: Ditto.
6163 * testsuite/libgomp.fortran/target8.f90: Ditto.
6164 * testsuite/libgomp.fortran/task1.f90: Ditto.
6165 * testsuite/libgomp.fortran/task2.f90: Ditto.
6166 * testsuite/libgomp.fortran/task3.f90: Ditto.
6167 * testsuite/libgomp.fortran/task4.f90: Ditto.
6168 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6169 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6170 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6171 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6172 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6173 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
6174 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
6175 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
6176 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
6177 * testsuite/libgomp.fortran/udr1.f90: Ditto.
6178 * testsuite/libgomp.fortran/udr10.f90: Ditto.
6179 * testsuite/libgomp.fortran/udr11.f90: Ditto.
6180 * testsuite/libgomp.fortran/udr12.f90: Ditto.
6181 * testsuite/libgomp.fortran/udr13.f90: Ditto.
6182 * testsuite/libgomp.fortran/udr14.f90: Ditto.
6183 * testsuite/libgomp.fortran/udr15.f90: Ditto.
6184 * testsuite/libgomp.fortran/udr2.f90: Ditto.
6185 * testsuite/libgomp.fortran/udr3.f90: Ditto.
6186 * testsuite/libgomp.fortran/udr4.f90: Ditto.
6187 * testsuite/libgomp.fortran/udr5.f90: Ditto.
6188 * testsuite/libgomp.fortran/udr6.f90: Ditto.
6189 * testsuite/libgomp.fortran/udr7.f90: Ditto.
6190 * testsuite/libgomp.fortran/udr8.f90: Ditto.
6191 * testsuite/libgomp.fortran/udr9.f90: Ditto.
6192 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6193 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6194 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6195 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6196 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6197 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6198 * testsuite/libgomp.fortran/vla7.f90: Ditto.
6199 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6200 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6201 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6203 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6205 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
6206 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
6207 Ditto; add 'dg-do run' for torture testing.
6208 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
6209 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6210 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6211 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6212 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6213 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6214 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
6215 * testsuite/libgomp.fortran/task2.f90: Ditto.
6216 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6217 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6218 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6219 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6220 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6221 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6223 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
6225 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
6226 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
6227 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
6228 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
6229 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
6230 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
6231 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
6232 Use 'stop' not abort().
6233 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
6234 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
6235 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
6236 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
6237 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
6238 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
6239 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
6240 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
6241 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
6242 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
6243 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
6244 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
6245 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
6246 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
6247 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
6248 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
6249 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6251 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6253 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6255 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6257 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6259 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
6261 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
6263 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
6265 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
6267 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
6269 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
6271 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
6273 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
6275 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
6277 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
6278 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
6279 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
6280 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
6281 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6282 Likewise and also add 'dg-do run'.
6283 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6286 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6287 Tobias Burnus <tobias@codesourcery.com>
6289 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
6290 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
6291 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
6293 2019-10-14 Jakub Jelinek <jakub@redhat.com>
6296 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
6299 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
6301 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
6302 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
6304 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
6307 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
6310 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
6313 * testsuite/libgomp.fortran/fortran.exp: Conditionally
6315 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
6317 2019-10-09 Jakub Jelinek <jakub@redhat.com>
6320 * target.c (gomp_map_vars_internal): Readd the previous
6321 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
6322 though do that just in the !not_found_cnt case.
6324 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
6326 * gfortran.dg/gomp/target-simd.f90: New.
6328 2019-10-02 Julian Brown <julian@codesourcery.com>
6329 Cesar Philippidis <cesar@codesourcery.com>
6331 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
6332 * target.c (FIELD_TGT_EMPTY): Define.
6333 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
6334 as switch instead of list of ifs.
6335 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
6337 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
6339 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
6340 include. Replace alloca () with __builtin_alloca ().
6341 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
6343 2019-10-01 Jakub Jelinek <jakub@redhat.com>
6345 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
6346 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
6347 * oacc-parallel.c: Don't include "libgomp_g.h".
6348 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
6349 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
6350 * aclocal.m4: Regenerated.
6351 * config.h.in: Regenerated.
6352 * configure: Regenerated.
6353 * Makefile.in: Regenerated.
6355 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
6357 * libgomp_g.h: Include stdint.h instead of gstdint.h.
6359 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
6361 * configure: Regenerate.
6363 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
6365 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
6366 string is initialized.
6368 2019-09-06 Florian Weimer <fweimer@redhat.com>
6370 * configure: Regenerate.
6372 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
6375 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
6376 scanning to conform to the GNU Coding Standards.
6377 * configure: Regenerate.
6379 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6382 * testsuite/libgomp.c/scan-21.c: New test.
6383 * testsuite/libgomp.c/scan-22.c: New test.
6385 2019-08-27 Jakub Jelinek <jakub@redhat.com>
6388 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
6390 * testsuite/libgomp.c/scan-12.c: Likewise.
6391 * testsuite/libgomp.c/scan-13.c: Likewise.
6392 * testsuite/libgomp.c/scan-14.c: Likewise.
6393 * testsuite/libgomp.c/scan-15.c: Likewise.
6394 * testsuite/libgomp.c/scan-16.c: Likewise.
6395 * testsuite/libgomp.c/scan-17.c: Likewise.
6396 * testsuite/libgomp.c/scan-18.c: Likewise.
6397 * testsuite/libgomp.c/scan-19.c: Likewise.
6398 * testsuite/libgomp.c/scan-20.c: Likewise.
6399 * testsuite/libgomp.c++/scan-9.C: Likewise.
6400 * testsuite/libgomp.c++/scan-10.C: Likewise.
6401 * testsuite/libgomp.c++/scan-11.C: Likewise.
6402 * testsuite/libgomp.c++/scan-12.C: Likewise.
6403 * testsuite/libgomp.c++/scan-14.C: Likewise.
6404 * testsuite/libgomp.c++/scan-15.C: Likewise.
6405 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
6406 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
6407 * testsuite/libgomp.c++/scan-16.C: Likewise.
6409 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
6412 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
6413 -std=legacy so invalid code in the test case is accepted.
6415 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
6418 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
6421 2019-08-08 Jakub Jelinek <jakub@redhat.com>
6423 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
6424 perform the lookup in the first loop only if !not_found_cnt, otherwise
6425 perform lookups for it in the second loop guarded with
6426 if (not_found_cnt || has_firstprivate).
6427 * testsuite/libgomp.c/target-37.c: New test.
6428 * testsuite/libgomp.c++/target-22.C: New test.
6430 2019-08-07 Jakub Jelinek <jakub@redhat.com>
6432 * testsuite/libgomp.c/target-18.c (struct S): New type.
6433 (foo): Use use_device_addr clause instead of use_device_ptr clause
6434 where required by OpenMP 5.0, add further tests for both use_device_ptr
6435 and use_device_addr clauses.
6436 * testsuite/libgomp.c++/target-9.C (struct S): New type.
6437 (foo): Use use_device_addr clause instead of use_device_ptr clause
6438 where required by OpenMP 5.0, add further tests for both use_device_ptr
6439 and use_device_addr clauses. Add t and u arguments.
6440 (main): Adjust caller.
6442 2019-08-06 Jakub Jelinek <jakub@redhat.com>
6444 * testsuite/libgomp.c++/loop-13.C: New test.
6445 * testsuite/libgomp.c++/loop-14.C: New test.
6446 * testsuite/libgomp.c++/loop-15.C: New test.
6448 2019-07-31 Jakub Jelinek <jakub@redhat.com>
6451 * testsuite/libgomp.c++/for-27.C: New test.
6453 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
6455 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
6456 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6458 2019-07-20 Jakub Jelinek <jakub@redhat.com>
6460 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
6462 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6464 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
6465 * testsuite/libgomp.c++/scan-16.C: Likewise.
6467 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6469 * testsuite/libgomp.c/scan-19.c: New test.
6470 * testsuite/libgomp.c/scan-20.c: New test.
6472 * testsuite/libgomp.c/scan-11.c: New test.
6473 * testsuite/libgomp.c/scan-12.c: New test.
6474 * testsuite/libgomp.c/scan-13.c: New test.
6475 * testsuite/libgomp.c/scan-14.c: New test.
6476 * testsuite/libgomp.c/scan-15.c: New test.
6477 * testsuite/libgomp.c/scan-16.c: New test.
6478 * testsuite/libgomp.c/scan-17.c: New test.
6479 * testsuite/libgomp.c/scan-18.c: New test.
6480 * testsuite/libgomp.c++/scan-9.C: New test.
6481 * testsuite/libgomp.c++/scan-10.C: New test.
6482 * testsuite/libgomp.c++/scan-11.C: New test.
6483 * testsuite/libgomp.c++/scan-12.C: New test.
6484 * testsuite/libgomp.c++/scan-13.C: New test.
6485 * testsuite/libgomp.c++/scan-14.C: New test.
6486 * testsuite/libgomp.c++/scan-15.C: New test.
6487 * testsuite/libgomp.c++/scan-16.C: New test.
6489 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6491 * testsuite/libgomp.c/scan-9.c: New test.
6492 * testsuite/libgomp.c/scan-10.c: New test.
6494 2019-07-03 Jakub Jelinek <jakub@redhat.com>
6496 * testsuite/libgomp.c++/scan-1.C: New test.
6497 * testsuite/libgomp.c++/scan-2.C: New test.
6498 * testsuite/libgomp.c++/scan-3.C: New test.
6499 * testsuite/libgomp.c++/scan-4.C: New test.
6500 * testsuite/libgomp.c++/scan-5.C: New test.
6501 * testsuite/libgomp.c++/scan-6.C: New test.
6502 * testsuite/libgomp.c++/scan-7.C: New test.
6503 * testsuite/libgomp.c++/scan-8.C: New test.
6504 * testsuite/libgomp.c/scan-1.c: New test.
6505 * testsuite/libgomp.c/scan-2.c: New test.
6506 * testsuite/libgomp.c/scan-3.c: New test.
6507 * testsuite/libgomp.c/scan-4.c: New test.
6508 * testsuite/libgomp.c/scan-5.c: New test.
6509 * testsuite/libgomp.c/scan-6.c: New test.
6510 * testsuite/libgomp.c/scan-7.c: New test.
6511 * testsuite/libgomp.c/scan-8.c: New test.
6513 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
6515 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
6516 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
6519 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
6522 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
6524 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
6527 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
6530 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
6532 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
6533 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
6534 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
6535 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
6538 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
6541 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
6543 2019-06-16 Tom de Vries <tdevries@suse.de>
6545 PR tree-optimization/89376
6546 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
6548 2019-06-15 Tom de Vries <tdevries@suse.de>
6550 PR tree-optimization/89713
6551 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
6552 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
6554 2019-06-15 Jakub Jelinek <jakub@redhat.com>
6557 * testsuite/libgomp.c/pr90779.c: New test.
6558 * testsuite/libgomp.fortran/pr90779.f90: New test.
6560 2019-06-15 Tom de Vries <tdevries@suse.de>
6562 PR tree-optimization/90009
6563 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
6565 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
6567 PR tree-optimization/89713
6568 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
6570 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6573 * testsuite/libgomp.c/pr90811.c: New test.
6575 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6577 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
6578 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
6580 2019-06-04 Jakub Jelinek <jakub@redhat.com>
6582 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
6583 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
6584 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
6585 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
6587 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6589 * configure.ac: Call AX_COUNT_CPUS.
6590 Substitute CPU_COUNT.
6591 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
6593 * aclocal.m4: Regenerate.
6594 * configure: Regenerate.
6595 * Makefile.in, testsuite/Makefile.in: Regenerate.
6597 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6599 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
6601 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
6602 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
6603 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
6605 2019-05-27 Jakub Jelinek <jakub@redhat.com>
6607 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
6609 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
6612 * work.c (gomp_init_work_share): Instead of aligning final ordered
6613 value to multiples of long long alignment, align to that the
6614 first part (ordered team ids) and if inline_ordered_team_ids
6615 is not on a long long alignment boundary within the structure,
6616 use __alignof__ (long long) - 1 pad size always.
6617 * loop.c (GOMP_loop_start): Fix *mem computation if
6618 inline_ordered_team_ids is not aligned on long long alignment boundary
6619 within the structure.
6620 * loop-ull.c (GOMP_loop_ull_start): Likewise.
6621 * sections.c (GOMP_sections2_start): Likewise.
6623 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6625 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
6626 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
6629 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
6630 HAVE_INTTYPES_H is defined.
6631 (print_uint64_t): New typedef.
6632 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
6633 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
6634 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
6635 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
6636 before casting to void *.
6637 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
6638 * oacc-mem.c: Don't include config.h nor stdint.h.
6639 * target.c: Don't include config.h.
6640 * oacc-cuda.c: Likewise.
6641 * oacc-host.c: Don't include stdint.h.
6643 2019-05-20 Jakub Jelinek <jakub@redhat.com>
6646 * alloc.c (_GNU_SOURCE): Define.
6648 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
6650 * acc_prof.h: New file.
6651 * oacc-profiling.c: Likewise.
6652 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
6653 Add these, respectively.
6654 * Makefile.in: Regenerate.
6655 * env.c (initialize_env): Call goacc_profiling_initialize.
6656 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
6657 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
6658 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
6659 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
6660 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
6661 acc_prof_register, acc_prof_unregister, and acc_register_library.
6662 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
6663 GOMP_PLUGIN_goacc_thread.
6664 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
6665 prof_callbacks_enabled members.
6666 (goacc_prof_enabled, goacc_profiling_initialize)
6667 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
6668 (goacc_profiling_dispatch): Declare.
6669 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
6670 (GOACC_PROFILING_SETUP_P): Define.
6671 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
6672 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
6673 OpenACC Profiling Interface.
6674 * oacc-cuda.c (acc_get_current_cuda_device)
6675 (acc_get_current_cuda_context, acc_get_cuda_stream)
6676 (acc_set_cuda_stream): Likewise.
6677 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
6678 (acc_init, acc_set_device_type, acc_get_device_type)
6679 (acc_get_device_num, goacc_lazy_initialize): Likewise.
6680 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
6681 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
6682 (acc_unmap_data, present_create_copy, delete_copyout)
6683 (update_dev_host): Likewise.
6684 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
6685 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
6687 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
6688 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
6690 * libgomp.texi: Update.
6691 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
6693 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
6694 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
6696 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
6698 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
6700 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
6703 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
6705 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
6706 (struct goacc_asyncqueue_list): Likewise.
6707 (goacc_aq): Likewise.
6708 (goacc_aq_list): Likewise.
6709 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6710 (GOMP_OFFLOAD_openacc_async_test): Remove.
6711 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6712 (GOMP_OFFLOAD_openacc_async_wait): Remove.
6713 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6714 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6715 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6716 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6717 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
6718 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
6719 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
6720 (GOMP_OFFLOAD_openacc_async_exec): Declare.
6721 (GOMP_OFFLOAD_openacc_async_construct): Declare.
6722 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
6723 (GOMP_OFFLOAD_openacc_async_test): Declare.
6724 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
6725 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
6726 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
6727 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
6728 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
6730 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
6731 (gomp_acc_insert_pointer): Adjust declaration.
6732 (gomp_copy_host2dev): New declaration.
6733 (gomp_copy_dev2host): Likewise.
6734 (gomp_map_vars_async): Likewise.
6735 (gomp_unmap_tgt): Likewise.
6736 (gomp_unmap_vars_async): Likewise.
6737 (gomp_fini_device): Likewise.
6739 * oacc-async.c (get_goacc_thread): New function.
6740 (get_goacc_thread_device): New function.
6741 (lookup_goacc_asyncqueue): New function.
6742 (get_goacc_asyncqueue): New function.
6743 (acc_async_test): Adjust code to use new async design.
6744 (acc_async_test_all): Likewise.
6745 (acc_wait): Likewise.
6746 (acc_wait_async): Likewise.
6747 (acc_wait_all): Likewise.
6748 (acc_wait_all_async): Likewise.
6749 (goacc_async_free): New function.
6750 (goacc_init_asyncqueues): Likewise.
6751 (goacc_fini_asyncqueues): Likewise.
6752 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
6754 (acc_set_cuda_stream): Likewise.
6755 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
6756 (host_openacc_register_async_cleanup): Remove.
6757 (host_openacc_async_exec): New function.
6758 (host_openacc_async_test): Adjust parameters.
6759 (host_openacc_async_test_all): Remove.
6760 (host_openacc_async_wait): Remove.
6761 (host_openacc_async_wait_async): Remove.
6762 (host_openacc_async_wait_all): Remove.
6763 (host_openacc_async_wait_all_async): Remove.
6764 (host_openacc_async_set_async): Remove.
6765 (host_openacc_async_synchronize): New function.
6766 (host_openacc_async_serialize): New function.
6767 (host_openacc_async_host2dev): New function.
6768 (host_openacc_async_dev2host): New function.
6769 (host_openacc_async_queue_callback): New function.
6770 (host_openacc_async_construct): New function.
6771 (host_openacc_async_destruct): New function.
6772 (struct gomp_device_descr host_dispatch): Remove initialization of old
6773 interface, add initialization of new async sub-struct.
6774 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
6775 (goacc_attach_host_thread_to_device): Remove old async code usage.
6776 * oacc-int.h (goacc_init_asyncqueues): New declaration.
6777 (goacc_fini_asyncqueues): Likewise.
6778 (goacc_async_copyout_unmap_vars): Likewise.
6779 (goacc_async_free): Likewise.
6780 (get_goacc_asyncqueue): Likewise.
6781 (lookup_goacc_asyncqueue): Likewise.
6782 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
6784 (present_create_copy): Adjust code to use new async design.
6785 (delete_copyout): Likewise.
6786 (update_dev_host): Likewise.
6787 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
6789 (gomp_acc_remove_pointer): Adjust code to use new async design.
6790 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
6792 (GOACC_enter_exit_data): Likewise.
6793 (goacc_wait): Likewise.
6794 (GOACC_update): Likewise.
6795 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
6796 when called, warn as obsolete in comment.
6797 * target.c (goacc_device_copy_async): New function.
6798 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
6799 add goacc_device_copy_async case.
6800 (gomp_copy_dev2host): Likewise.
6801 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
6802 (gomp_map_pointer): Likewise.
6803 (gomp_map_fields_existing): Likewise.
6804 (gomp_map_vars_internal): New always_inline function, renamed from
6806 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
6807 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
6808 passing goacc_asyncqueue argument.
6809 (gomp_unmap_tgt): Remove static, add attribute_hidden.
6810 (gomp_unref_tgt): New function.
6811 (gomp_unmap_vars_internal): New always_inline function, renamed from
6813 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
6814 (gomp_unmap_vars_async): Implement by calling
6815 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
6816 (gomp_fini_device): New function.
6817 (gomp_exit_data): Adjust gomp_copy_dev2host call.
6818 (gomp_load_plugin_for_device): Remove old interface, adjust to load
6819 new async interface.
6820 (gomp_target_fini): Adjust code to call gomp_fini_device.
6822 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
6823 (struct ptx_stream): Remove.
6824 (struct nvptx_thread): Remove current_stream field.
6825 (cuda_map_create): Remove.
6826 (cuda_map_destroy): Remove.
6831 (struct goacc_asyncqueue): Define.
6832 (struct nvptx_callback): Define.
6833 (struct ptx_free_block): Define.
6834 (struct ptx_device): Remove null_stream, active_streams, async_streams,
6835 stream_lock, and next fields.
6836 (enum ptx_event_type): Remove.
6837 (struct ptx_event): Remove.
6838 (ptx_event_lock): Remove.
6839 (ptx_events): Remove.
6840 (init_streams_for_device): Remove.
6841 (fini_streams_for_device): Remove.
6842 (select_stream_for_async): Remove.
6843 (nvptx_init): Remove ptx_events and ptx_event_lock references.
6844 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
6846 (nvptx_open_device): Add free_blocks initialization, remove
6847 init_streams_for_device call.
6848 (nvptx_close_device): Remove fini_streams_for_device call, add
6849 free_blocks destruct code.
6851 (event_add): Remove.
6852 (nvptx_exec): Adjust parameters and code.
6853 (nvptx_free): Likewise.
6854 (nvptx_host2dev): Remove.
6855 (nvptx_dev2host): Remove.
6856 (nvptx_set_async): Remove.
6857 (nvptx_async_test): Remove.
6858 (nvptx_async_test_all): Remove.
6859 (nvptx_wait): Remove.
6860 (nvptx_wait_async): Remove.
6861 (nvptx_wait_all): Remove.
6862 (nvptx_wait_all_async): Remove.
6863 (nvptx_get_cuda_stream): Remove.
6864 (nvptx_set_cuda_stream): Remove.
6865 (GOMP_OFFLOAD_alloc): Adjust code.
6866 (GOMP_OFFLOAD_free): Likewise.
6867 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6868 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
6869 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6870 (GOMP_OFFLOAD_openacc_async_wait): Remove.
6871 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6872 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6873 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6874 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6875 (cuda_free_argmem): New function.
6876 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
6877 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
6878 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
6879 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
6880 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
6881 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
6882 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
6883 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
6884 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
6885 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
6886 (cuda_callback_wrapper): New function.
6887 (cuda_memcpy_sanity_check): New function.
6888 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
6889 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
6890 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
6891 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
6893 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
6896 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
6898 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
6900 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
6902 2019-03-27 Kevin Buettner <kevinb@redhat.com>
6904 * team.c (gomp_team_start): Initialize pool->threads[0].
6906 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6908 * testsuite/libgomp.oacc-c++/c++.exp: Specify
6909 "-foffload=$offload_target".
6910 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6911 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6912 * testsuite/lib/libgomp.exp
6913 (check_effective_target_openacc_nvidia_accel_configured): Remove,
6914 as (conceptually) merged into
6915 check_effective_target_openacc_nvidia_accel_selected. Adjust all
6918 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
6919 * testsuite/libgomp-test-support.exp.in: Adjust.
6920 * testsuite/lib/libgomp.exp: Likewise. Don't populate
6921 openacc_device_types_s.
6922 (offload_target_to_openacc_device_type): New proc.
6923 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
6924 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6925 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6926 * Makefile.in: Regenerate.
6927 * configure: Likewise.
6928 * testsuite/Makefile.in: Likewise.
6930 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
6931 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
6932 instead of OFFLOAD_TARGETS.
6933 * target.c (gomp_target_init): Adjust.
6934 * testsuite/libgomp-test-support.exp.in: Likewise.
6935 * testsuite/lib/libgomp.exp: Likewise. Populate
6936 openacc_device_types_s instead of offload_targets_s_openacc.
6937 (check_effective_target_openacc_nvidia_accel_selected)
6938 (check_effective_target_openacc_host_selected): Adjust.
6939 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6940 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6941 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6942 * Makefile.in: Regenerate.
6943 * config.h.in: Likewise.
6944 * configure: Likewise.
6945 * testsuite/Makefile.in: Likewise.
6947 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
6948 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
6949 "offloading: supported, but hardware not accessible".
6950 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6951 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6953 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
6956 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
6958 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
6959 and related adjustment.
6961 2019-01-30 Jakub Jelinek <jakub@redhat.com>
6964 * testsuite/libgomp.c++/pr88988.C: New test.
6966 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6969 * testsuite/libgomp.c/pr89002.c: New test.
6971 2019-01-28 Richard Biener <rguenther@suse.de>
6974 PR tree-optimization/86865
6975 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
6977 2019-01-24 Tom de Vries <tdevries@suse.de>
6979 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
6980 once instantiated_devices drops to 0.
6982 2019-01-23 Tom de Vries <tdevries@suse.de>
6985 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
6987 (nvptx_exec): Don't call map_push if mapnum == 0.
6988 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
6990 2019-01-23 Tom de Vries <tdevries@suse.de>
6994 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
6995 (map_fini): Remove "assert (!s->map->active)".
6996 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
6998 2019-01-23 Tom de Vries <tdevries@suse.de>
7001 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
7002 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
7004 2019-01-15 Tom de Vries <tdevries@suse.de>
7007 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
7010 2019-01-12 Tom de Vries <tdevries@suse.de>
7012 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
7013 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
7014 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
7015 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
7017 2019-01-12 Tom de Vries <tdevries@suse.de>
7019 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
7021 2019-01-12 Tom de Vries <tdevries@suse.de>
7023 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
7024 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
7025 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
7027 2019-01-12 Tom de Vries <tdevries@suse.de>
7030 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
7031 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
7033 2019-01-12 Tom de Vries <tdevries@suse.de>
7036 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
7037 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
7039 2019-01-12 Tom de Vries <tdevries@suse.de>
7041 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
7042 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
7043 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
7045 2019-01-12 Tom de Vries <tdevries@suse.de>
7047 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
7048 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
7049 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
7051 2019-01-12 Tom de Vries <tdevries@suse.de>
7053 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
7054 resources diagnostic.
7056 2019-01-12 Tom de Vries <tdevries@suse.de>
7058 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
7059 vector length to be 128.
7060 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
7061 length 2097152 to be reduced to 1024 instead of 32.
7063 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
7064 James Norris <jnorris@codesourcery.com>
7066 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
7067 Library Routines", and "Environment Variables".
7069 2019-01-11 Tom de Vries <tdevries@suse.de>
7071 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
7074 2019-01-11 Tom de Vries <tdevries@suse.de>
7076 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
7078 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
7079 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
7080 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
7081 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
7083 2019-01-11 Tom de Vries <tdevries@suse.de>
7085 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
7088 2019-01-10 Nathan Sidwell <nathan@acm.org>
7089 Julian Brown <julian@codesourcery.com>
7092 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
7093 * testsuite/libgomp.oacc-c++/pr71959.C: New.
7095 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7097 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
7100 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7102 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
7103 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7106 2019-01-09 Tom de Vries <tdevries@suse.de>
7109 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
7110 #define instead of "const int".
7111 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
7112 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
7113 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
7114 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
7116 2019-01-09 Tom de Vries <tdevries@suse.de>
7118 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
7121 2019-01-07 Tom de Vries <tdevries@suse.de>
7123 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
7124 GOMP_OPENACC_DIM argument.
7126 2019-01-03 Tom de Vries <tdevries@suse.de>
7128 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
7129 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
7131 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7133 Update copyright years.
7135 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7137 * libgomp.texi: Bump @copying's copyright year.
7139 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7141 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
7142 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
7143 (GOACC_declare): Redefine the "device" argument to "flags".
7145 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7146 Cesar Philippidis <cesar@codesourcery.com>
7148 * target.c (struct gomp_coalesce_chunk): New structure.
7149 (struct gomp_coalesce_buf): Update the chunks member to use that
7150 type. Adjust all users.
7152 2018-12-19 Tom de Vries <tdevries@suse.de>
7154 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
7155 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
7156 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
7158 2018-12-19 Tom de Vries <tdevries@suse.de>
7160 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
7161 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
7162 gcc/testsuite/gcc.dg/goacc.
7163 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
7165 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7166 Chung-Lin Tang <cltang@codesourcery.com>
7168 * oacc-mem.c (acc_present_or_create): Remove definition and change
7169 to alias of acc_create.
7170 (acc_present_or_copyin): Remove definition and change to alias of
7172 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
7173 of acc_present_or_create.
7174 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
7175 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7176 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7177 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7178 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7179 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7180 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7181 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7182 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7183 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7184 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7185 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7186 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7187 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7188 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7189 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7191 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7194 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
7195 "identical parameters".
7196 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
7197 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
7200 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
7201 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
7204 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
7205 (nvptx_wait_async): Unseen async-argument is a no-op.
7206 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
7207 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
7208 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7209 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7210 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
7211 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
7212 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
7213 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
7214 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
7216 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
7217 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7219 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
7221 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
7222 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7223 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7225 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7228 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
7229 (acc_set_cuda_stream): Clarify.
7230 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
7232 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
7234 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
7235 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
7236 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
7237 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7239 2018-12-14 Tom de Vries <tdevries@suse.de>
7241 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
7242 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
7243 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
7244 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
7245 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
7247 2018-12-13 Tom de Vries <tdevries@suse.de>
7249 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
7250 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
7251 * fortran.c (omp_display_affinity_): ... here.
7252 * libgomp.h (gomp_print_string): Declare.
7253 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
7254 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7257 2018-12-13 Jakub Jelinek <jakub@redhat.com>
7260 * testsuite/libgomp.c++/for-24.C (results): Include it in
7261 omp declare target region.
7262 (main): Use map (always, tofrom: results) instead of
7263 map (tofrom: results).
7265 2018-12-12 Jakub Jelinek <jakub@redhat.com>
7268 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
7269 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
7271 * testsuite/libgomp.c-c++-common/for-16.c: New test.
7273 2018-12-12 Andreas Schwab <schwab@suse.de>
7275 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
7278 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
7281 * testsuite/libgomp.fortran/async_io_8.f90: New test.
7283 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
7284 Jakub Jelinek <jakub@redhat.com>
7286 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
7287 devicep->host2dev_func.
7289 2018-12-08 Jakub Jelinek <jakub@redhat.com>
7292 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
7293 tls_runtime effective target.
7294 (t): New threadprivate variable.
7295 (main): Set t in threads which execute iterations of the worksharing
7296 loop. Propagate that to the task after the loop and don't abort
7297 if the current taskgroup hasn't been cancelled.
7299 2018-12-02 Jakub Jelinek <jakub@redhat.com>
7301 * testsuite/libgomp.c/task-reduction-3.c: New test.
7303 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
7305 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
7308 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
7309 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
7311 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
7313 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
7315 2018-10-19 Richard Biener <rguenther@suse.de>
7317 PR tree-optimization/88182
7318 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
7320 2018-11-26 Jakub Jelinek <jakub@redhat.com>
7322 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
7323 (RUNTEST): Don't define.
7324 (RUNTESTDEFAULTFLAGS): Add.
7325 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
7326 (distclean-am): Depend on distclean-DEJAGNU.
7327 (check-am): If -j% option is present in MFLAGS and if
7328 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
7329 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
7330 * testsuite/Makefile.in: Regenerated.
7332 2018-11-26 Richard Biener <rguenther@suse.de>
7334 PR tree-optimization/88182
7335 * testsuite/libgomp.c++/pr88182.C: New testcase.
7337 2018-11-20 Jakub Jelinek <jakub@redhat.com>
7340 * config/mingw32/affinity-fmt.c: New file.
7342 2018-11-09 Jakub Jelinek <jakub@redhat.com>
7344 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
7345 (gomp_display_affinity): Use __builtin_choose_expr to handle
7346 properly handle argument having integral, or pointer or some other
7347 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
7348 with uint64_t type instead of %llx and unsigned long long.
7350 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
7351 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
7353 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7355 * affinity.c: Include <string.h>, <stdio.h>.
7356 (gomp_display_affinity_place): Remove cpusetp.
7357 * teams.c: Include <limits.h>.
7359 2018-11-08 Jakub Jelinek <jakub@redhat.com>
7361 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
7362 in_reduction clause for s[0].
7364 * affinity.c (gomp_display_affinity_place): New function.
7365 * affinity-fmt.c: New file.
7366 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
7367 * config/linux/affinity.c (gomp_display_affinity_place): New function.
7368 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
7369 Move these functions to ...
7370 * config/nvptx/teams.c: ... here. New file.
7371 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
7373 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
7375 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
7376 and _aligned_malloc.
7377 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
7378 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
7379 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
7380 gomp_affinity_format_len): New variables.
7381 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
7382 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
7383 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
7384 modifiers. Display (non-default) chunk sizes. Print
7385 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
7386 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
7387 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
7388 * fortran.c: Include stdio.h and string.h.
7389 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
7390 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
7391 (omp_set_affinity_format_, omp_get_affinity_format_,
7392 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
7393 omp_pause_resource_all_): New functions.
7394 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
7396 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
7398 * teams.c: ... here. New file.
7399 * libgomp_g.h: Include gstdint.h.
7400 (GOMP_loop_nonmonotonic_runtime_start,
7401 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
7402 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
7403 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
7404 GOMP_parallel_loop_nonmonotonic_runtime,
7405 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7406 GOMP_loop_ull_nonmonotonic_runtime_start,
7407 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
7408 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
7409 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7410 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
7411 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
7412 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7413 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7414 GOMP_teams_reg): Declare.
7415 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
7416 gomp_aligned_alloc uses fallback implementation.
7417 (gomp_aligned_alloc, gomp_aligned_free): Declare.
7418 (enum gomp_schedule_type): Add GFS_MONOTONIC.
7419 (struct gomp_doacross_work_share): Add extra field.
7420 (struct gomp_work_share): Add task_reductions field.
7421 (struct gomp_taskgroup): Add workshare and reductions fields.
7422 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
7423 (gomp_thread_handle): New typedef.
7424 (gomp_display_affinity_place, gomp_set_affinity_format,
7425 gomp_display_string, gomp_display_affinity,
7426 gomp_display_affinity_thread): Declare.
7427 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
7428 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
7429 gomp_workshare_task_reduction_register): Declare.
7430 (gomp_team_start): Add taskgroup argument.
7431 (gomp_pause_host): Declare.
7432 (gomp_init_work_share, gomp_work_share_start): Change bool argument
7434 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
7435 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
7436 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
7437 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7438 GOMP_loop_ull_doacross_start,
7439 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7440 GOMP_loop_maybe_nonmonotonic_runtime_next,
7441 GOMP_loop_maybe_nonmonotonic_runtime_start,
7442 GOMP_loop_nonmonotonic_runtime_next,
7443 GOMP_loop_nonmonotonic_runtime_start,
7444 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7445 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7446 GOMP_loop_ull_nonmonotonic_runtime_next,
7447 GOMP_loop_ull_nonmonotonic_runtime_start,
7448 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7449 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
7450 GOMP_taskgroup_reduction_register,
7451 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7452 GOMP_teams_reg and GOMP_taskwait_depend.
7453 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
7454 omp_{capture,display}_affinity{,_}, and
7455 omp_[gs]et_affinity_format{,_}.
7456 * loop.c: Include string.h.
7457 (GOMP_loop_runtime_next): Add ialias.
7458 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7459 (gomp_loop_static_start, gomp_loop_dynamic_start,
7460 gomp_loop_guided_start, gomp_loop_ordered_static_start,
7461 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7462 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7463 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
7464 or gomp_doacross_init callers.
7465 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
7466 GOMP_loop_doacross_start): New functions.
7467 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7468 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
7469 Mask off GFS_MONOTONIC bit.
7470 (GOMP_loop_maybe_nonmonotonic_runtime_next,
7471 GOMP_loop_maybe_nonmonotonic_runtime_start,
7472 GOMP_loop_nonmonotonic_runtime_next,
7473 GOMP_loop_nonmonotonic_runtime_start,
7474 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7475 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
7477 (gomp_parallel_loop_start): Pass NULL as taskgroup to
7479 * loop_ull.c: Include string.h.
7480 (GOMP_loop_ull_runtime_next): Add ialias.
7481 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7482 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
7483 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
7484 gomp_loop_ull_ordered_dynamic_start,
7485 gomp_loop_ull_ordered_guided_start,
7486 gomp_loop_ull_doacross_static_start,
7487 gomp_loop_ull_doacross_dynamic_start,
7488 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
7489 and gomp_doacross_ull_init callers.
7490 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7491 GOMP_loop_ull_doacross_start): New functions.
7492 (GOMP_loop_ull_runtime_start,
7493 GOMP_loop_ull_ordered_runtime_start,
7494 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
7495 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7496 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7497 GOMP_loop_ull_nonmonotonic_runtime_next,
7498 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
7499 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
7500 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
7501 (omp_pause_resource_t, omp_depend_t): New typedefs.
7502 (enum omp_lock_hint_t): Renamed to ...
7503 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
7504 enumerators using numbers and omp_lock_hint_* as their aliases.
7505 (omp_lock_hint_t): New typedef. Rename to ...
7506 (omp_sync_hint_t): ... this.
7507 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
7508 omp_sync_hint_t instead of omp_lock_hint_t.
7509 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7510 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7512 (omp_target_is_present, omp_target_disassociate_ptr):
7513 Change first argument from void * to const void *.
7514 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
7515 from void * to const void *.
7516 (omp_target_associate_ptr): Change first and second arguments from
7517 void * to const void *.
7518 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
7519 omp_pause_hard): New parameters.
7520 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7521 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7523 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
7524 omp_pause_hard): New parameters.
7525 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7526 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7528 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
7529 EXTRA argument. If not needed to prepare array, if extra is 0,
7530 clear ws->doacross, otherwise allocate just doacross structure and
7531 extra payload. If array is needed, allocate also extra payload.
7532 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
7533 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
7535 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
7537 (GOMP_parallel): Likewise. Formatting fix.
7538 (GOMP_parallel_reductions): New function.
7539 (GOMP_cancellation_point): If taskgroup has workshare
7540 flag set, check cancelled of prev taskgroup if any.
7541 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
7542 on prev taskgroup if any.
7543 * sections.c: Include string.h.
7544 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7545 (GOMP_sections_start): Adjust gomp_work_share_start caller.
7546 (GOMP_sections2_start): New function.
7547 (GOMP_parallel_sections_start, GOMP_parallel_sections):
7548 Pass NULL as taskgroup to gomp_team_start.
7549 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
7550 gomp_work_share_start callers.
7551 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
7552 If taskgroup has workshare flag set, check cancelled on prev
7553 taskgroup if any. Guard all cancellation tests with
7554 gomp_cancel_var test.
7555 (omp_target_is_present, omp_target_disassociate_ptr):
7556 Change ptr argument from void * to const void *.
7557 (omp_target_memcpy): Change src argument from void * to const void *.
7558 (omp_target_memcpy_rect): Likewise.
7559 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
7560 instead of char * where needed.
7561 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
7562 from void * to const void *.
7563 (omp_pause_resource, omp_pause_resource_all): New functions.
7564 * task.c (gomp_task_handle_depend): Handle new depend array format
7565 in addition to the old. Handle mutexinoutset kinds the same as
7566 inout for now, handle unspecified kinds.
7567 (gomp_create_target_task): If taskgroup has workshare flag set, check
7568 cancelled on prev taskgroup if any. Guard all cancellation tests with
7569 gomp_cancel_var test. Handle new depend array format count in
7570 addition to the old.
7571 (GOMP_task): Likewise. Adjust function comment.
7572 (gomp_task_run_pre): If taskgroup has workshare flag set, check
7573 cancelled on prev taskgroup if any. Guard all cancellation tests with
7574 gomp_cancel_var test.
7575 (GOMP_taskwait_depend): New function.
7576 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
7577 format in addition to the old. Handle mutexinoutset kinds the same as
7578 inout for now, handle unspecified kinds. Fix a function comment typo.
7579 (gomp_taskgroup_init): New function.
7580 (GOMP_taskgroup_start): Use it.
7581 (gomp_reduction_register, gomp_create_artificial_team,
7582 GOMP_taskgroup_reduction_register,
7583 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7584 gomp_parallel_reduction_register,
7585 gomp_workshare_task_reduction_register,
7586 gomp_workshare_taskgroup_start,
7587 GOMP_workshare_task_reduction_unregister): New functions.
7588 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
7589 check cancelled on prev taskgroup if any. Guard all cancellation
7590 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
7591 by calling GOMP_taskgroup_reduction_register.
7592 * team.c (gomp_thread_attr): Remove comment.
7593 (struct gomp_thread_start_data): Add handle field.
7594 (gomp_thread_start): Call pthread_detach.
7595 (gomp_new_team): Adjust gomp_init_work_share caller.
7596 (gomp_free_pool_helper): Call pthread_detach.
7597 (gomp_team_start): Add taskgroup argument, initialize implicit
7598 tasks' taskgroup field to that. Don't call
7599 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
7600 (gomp_team_end): Determine nesting by thr->ts.level != 0
7601 rather than thr->ts.team != NULL.
7602 (gomp_pause_pool_helper, gomp_pause_host): New functions.
7603 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
7604 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
7605 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
7606 if more than 1 allocate also extra payload at the end of array. Never
7607 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
7608 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
7609 return true instead of ws.
7610 * Makefile.in: Regenerated.
7611 * configure: Regenerated.
7612 * config.h.in: Regenerated.
7613 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
7615 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
7616 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
7617 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
7618 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
7619 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
7620 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
7621 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
7622 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
7623 * testsuite/libgomp.c-c++-common/for-10.c: New test.
7624 * testsuite/libgomp.c-c++-common/for-11.c: New test.
7625 * testsuite/libgomp.c-c++-common/for-12.c: New test.
7626 * testsuite/libgomp.c-c++-common/for-13.c: New test.
7627 * testsuite/libgomp.c-c++-common/for-14.c: New test.
7628 * testsuite/libgomp.c-c++-common/for-15.c: New test.
7629 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
7630 define a different N(test), don't define N(f0) to N(f14), but instead
7631 define N(f20) to N(f34) using != comparisons.
7632 * testsuite/libgomp.c-c++-common/for-7.c: New test.
7633 * testsuite/libgomp.c-c++-common/for-8.c: New test.
7634 * testsuite/libgomp.c-c++-common/for-9.c: New test.
7635 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
7636 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
7637 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
7638 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
7639 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
7640 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
7641 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
7642 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
7643 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
7644 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
7645 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
7646 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
7647 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
7648 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
7649 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
7650 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
7651 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
7652 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
7653 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
7654 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
7655 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
7656 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
7657 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
7658 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
7659 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
7660 * testsuite/libgomp.c++/depend-1.C: New test.
7661 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
7662 * testsuite/libgomp.c++/depobj-1.C: New test.
7663 * testsuite/libgomp.c++/for-16.C: New test.
7664 * testsuite/libgomp.c++/for-21.C: New test.
7665 * testsuite/libgomp.c++/for-22.C: New test.
7666 * testsuite/libgomp.c++/for-23.C: New test.
7667 * testsuite/libgomp.c++/for-24.C: New test.
7668 * testsuite/libgomp.c++/for-25.C: New test.
7669 * testsuite/libgomp.c++/for-26.C: New test.
7670 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
7671 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
7672 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
7673 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
7674 * testsuite/libgomp.c++/task-reduction-10.C: New test.
7675 * testsuite/libgomp.c++/task-reduction-11.C: New test.
7676 * testsuite/libgomp.c++/task-reduction-12.C: New test.
7677 * testsuite/libgomp.c++/task-reduction-13.C: New test.
7678 * testsuite/libgomp.c++/task-reduction-14.C: New test.
7679 * testsuite/libgomp.c++/task-reduction-15.C: New test.
7680 * testsuite/libgomp.c++/task-reduction-16.C: New test.
7681 * testsuite/libgomp.c++/task-reduction-17.C: New test.
7682 * testsuite/libgomp.c++/task-reduction-18.C: New test.
7683 * testsuite/libgomp.c++/task-reduction-19.C: New test.
7684 * testsuite/libgomp.c/task-reduction-1.c: New test.
7685 * testsuite/libgomp.c++/task-reduction-1.C: New test.
7686 * testsuite/libgomp.c/task-reduction-2.c: New test.
7687 * testsuite/libgomp.c++/task-reduction-2.C: New test.
7688 * testsuite/libgomp.c++/task-reduction-3.C: New test.
7689 * testsuite/libgomp.c++/task-reduction-4.C: New test.
7690 * testsuite/libgomp.c++/task-reduction-5.C: New test.
7691 * testsuite/libgomp.c++/task-reduction-6.C: New test.
7692 * testsuite/libgomp.c++/task-reduction-7.C: New test.
7693 * testsuite/libgomp.c++/task-reduction-8.C: New test.
7694 * testsuite/libgomp.c++/task-reduction-9.C: New test.
7695 * testsuite/libgomp.c/teams-1.c: New test.
7696 * testsuite/libgomp.c/teams-2.c: New test.
7697 * testsuite/libgomp.c/thread-limit-4.c: New test.
7698 * testsuite/libgomp.c/thread-limit-5.c: New test.
7699 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
7701 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
7703 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
7704 acc_memcpy_to/from_device functions, now with async parameter.
7705 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
7706 (acc_memcpy_from_device): Likewise.
7707 (acc_memcpy_to_device_async): New API function.
7708 (acc_memcpy_from_device_async): Likewise.
7709 (present_create_copy): Add async parameter and async setting/unsetting.
7710 (acc_create): Adjust present_create_copy call.
7711 (acc_copyin): Likewise.
7712 (acc_present_or_create): Likewise.
7713 (acc_present_or_copyin): Likewise.
7714 (acc_create_async): New API function.
7715 (acc_copyin_async): New API function.
7716 (delete_copyout): Add async parameter and async setting/unsetting.
7717 (acc_delete): Adjust delete_copyout call.
7718 (acc_copyout): Likewise.
7719 (acc_delete_async): New API function.
7720 (acc_copyout_async): Likewise.
7721 (update_dev_host): Add async parameter and async setting/unsetting.
7722 (acc_update_device): Adjust update_dev_host call.
7723 (acc_update_self): Likewise.
7724 (acc_update_device_async): New API function.
7725 (acc_update_self_async): Likewise.
7726 * openacc.h (acc_copyin_async): Declare new API function.
7727 (acc_create_async): Likewise.
7728 (acc_copyout_async): Likewise.
7729 (acc_delete_async): Likewise.
7730 (acc_update_device_async): Likewise.
7731 (acc_update_self_async): Likewise.
7732 (acc_memcpy_to_device_async): Likewise.
7733 (acc_memcpy_from_device_async): Likewise.
7734 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
7735 (acc_copyin_async_64_h): New subroutine.
7736 (acc_copyin_async_array_h): New subroutine.
7737 (acc_create_async_32_h): New subroutine.
7738 (acc_create_async_64_h): New subroutine.
7739 (acc_create_async_array_h): New subroutine.
7740 (acc_copyout_async_32_h): New subroutine.
7741 (acc_copyout_async_64_h): New subroutine.
7742 (acc_copyout_async_array_h): New subroutine.
7743 (acc_delete_async_32_h): New subroutine.
7744 (acc_delete_async_64_h): New subroutine.
7745 (acc_delete_async_array_h): New subroutine.
7746 (acc_update_device_async_32_h): New subroutine.
7747 (acc_update_device_async_64_h): New subroutine.
7748 (acc_update_device_async_array_h): New subroutine.
7749 (acc_update_self_async_32_h): New subroutine.
7750 (acc_update_self_async_64_h): New subroutine.
7751 (acc_update_self_async_array_h): New subroutine.
7752 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
7753 (acc_copyin_async_64_h): New subroutine.
7754 (acc_copyin_async_array_h): New subroutine.
7755 (acc_create_async_32_h): New subroutine.
7756 (acc_create_async_64_h): New subroutine.
7757 (acc_create_async_array_h): New subroutine.
7758 (acc_copyout_async_32_h): New subroutine.
7759 (acc_copyout_async_64_h): New subroutine.
7760 (acc_copyout_async_array_h): New subroutine.
7761 (acc_delete_async_32_h): New subroutine.
7762 (acc_delete_async_64_h): New subroutine.
7763 (acc_delete_async_array_h): New subroutine.
7764 (acc_update_device_async_32_h): New subroutine.
7765 (acc_update_device_async_64_h): New subroutine.
7766 (acc_update_device_async_array_h): New subroutine.
7767 (acc_update_self_async_32_h): New subroutine.
7768 (acc_update_self_async_64_h): New subroutine.
7769 (acc_update_self_async_array_h): New subroutine.
7770 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
7771 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
7772 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
7773 acc_memcpy_to_device_async*, acc_update_device_async*, and
7774 acc_update_self_async* entries.
7775 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
7776 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
7777 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
7779 2018-10-31 Joseph Myers <joseph@codesourcery.com>
7782 * Makefile.am: Include multilib.am
7783 (AUTOMAKE_OPTIONS): Add info-in-builddir.
7784 (CLEANFILES): Remove libgomp.info.
7785 * configure.ac: Remove AC_PREREQ.
7786 * testsuite/Makefile.am (RUNTEST): Remove quotes.
7787 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
7790 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7791 Julian Brown <julian@codesourcery.com>
7793 * testsuite/libgomp.oacc-c++/this.C: New.
7795 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
7797 * plugin/plugin-nvptx.c (struct cuda_map): New.
7798 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
7799 h_tail with (cuda_map *) map.
7800 (cuda_map_create): New function.
7801 (cuda_map_destroy): New function.
7802 (map_init): Update to use a linked list of cuda_map objects.
7803 (map_fini): Likewise.
7804 (map_pop): Likewise.
7805 (map_push): Likewise. Return CUdeviceptr instead of void.
7806 (init_streams_for_device): Remove stales references to ptx_stream
7808 (select_stream_for_async): Likewise.
7809 (nvptx_exec): Update call to map_init.
7811 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
7812 Julian Brown <julian@codesourcery.com>
7815 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
7817 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
7818 Thomas Koenig <tkoenig@gcc.gnu.org>
7821 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7822 * testsuite/libgomp.fortran/async_io_2.f90: New test.
7823 * testsuite/libgomp.fortran/async_io_3.f90: New test.
7824 * testsuite/libgomp.fortran/async_io_4.f90: New test.
7825 * testsuite/libgomp.fortran/async_io_5.f90: New test.
7826 * testsuite/libgomp.fortran/async_io_6.f90: New test.
7827 * testsuite/libgomp.fortran/async_io_7.f90: New test.
7829 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
7830 Tom de Vries <tdevries@suse.de>
7833 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
7834 (cuOccupancyMaxPotentialBlockSize): Declare.
7835 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
7836 CUDA_ONE_CALL_MAYBE_NULL.
7837 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
7838 CUoccupancyB2DSize and declare
7839 cuOccupancyMaxPotentialBlockSize.
7840 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
7841 default num_gangs and num_workers when the driver supports it.
7843 2018-08-08 Tom de Vries <tdevries@suse.de>
7845 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
7846 CUDA_ONE_CALL_MAYBE_NULL.
7847 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
7848 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
7849 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
7852 2018-08-08 Tom de Vries <tdevries@suse.de>
7854 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
7855 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
7858 2018-08-08 Tom de Vries <tdevries@suse.de>
7860 * plugin/plugin-nvptx.c
7861 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
7862 (nvptx_open_device): Use
7863 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
7865 2018-08-08 Tom de Vries <tdevries@suse.de>
7867 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
7868 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
7870 2018-08-07 Tom de Vries <tdevries@suse.de>
7872 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
7873 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
7874 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
7875 corresponding call in CUDA_ONE_CALL. Add def/undef of
7876 CUDA_ONE_CALL_MAYBE_NULL.
7877 (CUDA_CALL_EXISTS): Define.
7879 2018-08-07 Tom de Vries <tdevries@suse.de>
7881 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
7882 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
7883 corresponding undefs right after.
7885 2018-08-04 Tom de Vries <tdevries@suse.de>
7887 * plugin/configfrag.ac: For --without-cuda-driver, set
7888 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
7889 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
7890 * configure: Regenerate.
7892 2018-08-02 Tom de Vries <tdevries@suse.de>
7895 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
7896 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
7897 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
7899 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
7900 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
7901 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
7903 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
7904 Thomas Schwinge <thomas@codesourcery.com>
7906 * config/nvptx/oacc-parallel.c: Truncate.
7908 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
7909 James Norris <jnorris@codesourcery.com>
7911 * plugin/plugin-nvptx.c (struct map): Removed.
7912 (map_init, map_pop): Remove use of struct map.
7913 (map_push): Likewise and change argument list.
7914 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
7916 2018-08-01 Tom de Vries <tdevries@suse.de>
7918 * plugin/cuda-lib.def: New file. Factor out of ...
7919 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
7920 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
7923 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
7925 Revert 'AsyncI/O patch committed'.
7926 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
7927 Thomas Koenig <tkoenig@gcc.gnu.org>
7930 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7931 * testsuite/libgomp.fortran/async_io_2.f90: New test.
7932 * testsuite/libgomp.fortran/async_io_3.f90: New test.
7933 * testsuite/libgomp.fortran/async_io_4.f90: New test.
7934 * testsuite/libgomp.fortran/async_io_5.f90: New test.
7935 * testsuite/libgomp.fortran/async_io_6.f90: New test.
7936 * testsuite/libgomp.fortran/async_io_7.f90: New test.
7938 2018-07-30 Tom de Vries <tdevries@suse.de>
7940 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
7941 (nvptx_exec): Ensure worker and vector default dims don't exceed
7942 targ_fn->max_threads_per_block.
7944 2018-07-30 Tom de Vries <tdevries@suse.de>
7946 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
7947 (nvptx_open_device): Init default_dims for device.
7948 (nvptx_exec): Use default_dims from device.
7950 2018-07-26 Jakub Jelinek <jakub@redhat.com>
7953 * testsuite/libgomp.c++/for-15.C (results): Include it in
7954 omp declare target region.
7955 (main): Use map (always, tofrom: results) instead of
7956 map (tofrom: results).
7959 * testsuite/libgomp.c/pr86660.c: New test.
7961 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
7962 Tom de Vries <tdevries@suse.de>
7964 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
7965 sufficient resources to launch a kernel, and give a hint on how to fix
7968 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
7969 Tom de Vries <tdevries@suse.de>
7971 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
7972 max_threads_per_block and max_threads_per_multiprocessor fields.
7973 (nvptx_open_device): Initialize new fields.
7974 (nvptx_exec): Use num_sms, and new fields.
7976 2018-07-26 Tom de Vries <tdevries@suse.de>
7978 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
7979 to correct locations. Remove xfail.
7981 2018-07-26 Tom de Vries <tdevries@suse.de>
7983 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
7984 acc_wait. Move acc_async_test calls to correct locations. Remove
7987 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
7988 Thomas Koenig <tkoenig@gcc.gnu.org>
7991 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7992 * testsuite/libgomp.fortran/async_io_2.f90: New test.
7993 * testsuite/libgomp.fortran/async_io_3.f90: New test.
7994 * testsuite/libgomp.fortran/async_io_4.f90: New test.
7995 * testsuite/libgomp.fortran/async_io_5.f90: New test.
7996 * testsuite/libgomp.fortran/async_io_6.f90: New test.
7997 * testsuite/libgomp.fortran/async_io_7.f90: New test.
7999 2018-07-17 Jakub Jelinek <jakub@redhat.com>
8002 * testsuite/libgomp.c++/pr86542.C: New test.
8005 * testsuite/libgomp.c++/pr86539.C: New test.
8007 2018-07-11 Jakub Jelinek <jakub@redhat.com>
8010 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
8011 (results): Make sure the variable is not inside declare target region.
8012 (qux): Remove unused function.
8014 2018-07-10 Jakub Jelinek <jakub@redhat.com>
8017 * testsuite/libgomp.c++/for-15.C: New test.
8019 2018-06-26 Jakub Jelinek <jakub@redhat.com>
8022 * testsuite/libgomp.c++/pr86291.C: New test.
8024 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
8026 * libgomp.texi (Top): Move www.openmp.org to https.
8027 (Enabling OpenMP): Ditto.
8028 (omp_get_active_level): Ditto.
8029 (omp_get_ancestor_thread_num): Ditto.
8030 (omp_get_cancellation): Ditto.
8031 (omp_get_default_device): Ditto.
8032 (omp_get_dynamic): Ditto.
8033 (omp_get_level): Ditto.
8034 (omp_get_max_active_levels): Ditto.
8035 (omp_get_max_task_priority): Ditto.
8036 (omp_get_max_threads): Ditto.
8037 (omp_get_nested): Ditto.
8038 (omp_get_num_devices): Ditto.
8039 (omp_get_num_procs): Ditto.
8040 (omp_get_num_teams): Ditto.
8041 (omp_get_num_threads): Ditto.
8042 (omp_get_proc_bind): Ditto.
8043 (omp_get_schedule): Ditto.
8044 (omp_get_team_num): Ditto.
8045 (omp_get_team_size): Ditto.
8046 (omp_get_thread_limit): Ditto.
8047 (omp_get_thread_num): Ditto.
8048 (omp_in_parallel): Ditto.
8049 (omp_in_final): Ditto.
8050 (omp_is_initial_device): Ditto.
8051 (omp_set_default_device): Ditto.
8052 (omp_set_dynamic): Ditto.
8053 (omp_set_max_active_levels): Ditto.
8054 (omp_set_nested): Ditto.
8055 (omp_set_num_threads): Ditto.
8056 (omp_set_schedule): Ditto.
8057 (omp_init_lock): Ditto.
8058 (omp_set_lock): Ditto.
8059 (omp_test_lock): Ditto.
8060 (omp_unset_lock): Ditto.
8061 (omp_destroy_lock): Ditto.
8062 (omp_init_nest_lock): Ditto.
8063 (omp_set_nest_lock): Ditto.
8064 (omp_test_nest_lock): Ditto.
8065 (omp_unset_nest_lock): Ditto.
8066 (omp_destroy_nest_lock): Ditto.
8067 (omp_get_wtick): Ditto.
8068 (omp_get_wtime): Ditto.
8069 (OMP_CANCELLATION): Ditto.
8070 (OMP_DISPLAY_ENV): Ditto.
8071 (OMP_DEFAULT_DEVICE): Ditto.
8072 (OMP_DYNAMIC): Ditto.
8073 (OMP_MAX_ACTIVE_LEVELS): Ditto.
8074 (OMP_MAX_TASK_PRIORITY): Ditto.
8075 (OMP_NESTED): Ditto.
8076 (OMP_NUM_THREADS): Ditto.
8077 (OMP_PROC_BIND): Ditto.
8078 (OMP_PLACES): Ditto.
8079 (OMP_STACKSIZE): Ditto.
8080 (OMP_SCHEDULE): Ditto.
8081 (OMP_THREAD_LIMIT): Ditto.
8082 (OMP_WAIT_POLICY): Ditto.
8084 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
8085 James Norris <jnorris@codesourcery.com>
8086 Julian Brown <julian@codesourcery.com>
8087 Thomas Schwinge <thomas@codesourcery.com>
8088 Tom de Vries <tom@codesourcery.com>
8090 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
8091 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
8092 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
8093 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
8094 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8095 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8096 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
8097 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
8098 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
8099 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
8101 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
8103 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
8105 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
8107 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
8109 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
8111 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
8113 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
8115 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
8117 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
8119 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
8121 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
8123 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
8125 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
8127 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
8129 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
8131 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
8133 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
8135 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
8137 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
8139 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
8141 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
8143 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
8145 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
8147 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
8149 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
8151 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
8153 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
8154 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
8155 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
8156 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
8157 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
8158 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
8159 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
8160 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
8161 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8163 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8165 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
8166 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
8167 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
8169 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
8170 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
8171 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8173 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8175 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8177 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8179 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8181 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
8183 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
8185 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
8187 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
8189 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
8191 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
8193 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
8195 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
8197 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
8199 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
8201 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8202 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
8203 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
8204 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
8205 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
8206 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
8207 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
8209 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
8210 Thomas Schwinge <thomas@codesourcery.com>
8211 Cesar Philippidis <cesar@codesourcery.com>
8213 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
8214 (gomp_acc_remove_pointer): Update declaration.
8215 (gomp_acc_declare_allocate): Declare.
8216 (gomp_remove_var): Declare.
8217 * libgomp.map (OACC_2.5): Define.
8218 * oacc-mem.c (acc_map_data): Update refcount.
8219 (acc_unmap_data): Likewise.
8220 (present_create_copy): Likewise.
8221 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
8222 (acc_copyin): Likewise.
8223 (FLAG_FINALIZE): Define.
8224 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
8225 (acc_delete_finalize): New function.
8226 (acc_delete_finalize_async): New function.
8227 (acc_copyout_finalize): New function.
8228 (acc_copyout_finalize_async): New function.
8229 (gomp_acc_insert_pointer): Update refcounts.
8230 (gomp_acc_remove_pointer): Return if data is not present on the
8232 * oacc-parallel.c (find_pset): Rename to find_pointer.
8233 (find_pointer): Add support for GOMP_MAP_POINTER.
8234 (handle_ftn_pointers): New function.
8235 (GOACC_parallel_keyed): Update refcounts of variables.
8236 (GOACC_enter_exit_data): Add support for finalized data mappings.
8237 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
8239 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
8240 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
8241 for GOMP_MAP_FORCE_FROM.
8242 * openacc.f90 (module openacc_internal): Add
8243 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
8244 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
8245 acc_copyout_finalize and acc_delete_finalize.
8246 (acc_copyout_finalize_32_h): New subroutine.
8247 (acc_copyout_finalize_64_h): New subroutine.
8248 (acc_copyout_finalize_array_h): New subroutine.
8249 (acc_delete_finalize_32_h): New subroutine.
8250 (acc_delete_finalize_64_h): New subroutine.
8251 (acc_delete_finalize_array_h): New subroutine.
8252 * openacc.h (acc_copyout_finalize): Declare.
8253 (acc_copyout_finalize_async): Declare.
8254 (acc_delete_finalize): Declare.
8255 (acc_delete_finalize_async): Declare.
8256 * openacc_lib.h (acc_copyout_finalize): New interface.
8257 (acc_delete_finalize): New interface.
8258 * target.c (gomp_map_vars): Update dynamic_refcount.
8259 (gomp_remove_var): New function.
8260 (gomp_unmap_vars): Use it.
8261 (gomp_unload_image_from_device): Likewise.
8262 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
8263 case to utilize OpenACC 2.5 data clause semantics.
8264 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8265 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8266 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8267 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8268 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8269 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8270 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8271 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8272 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8273 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8274 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8275 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
8276 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
8277 utilize OpenACC 2.5 data clause semantics.
8278 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8279 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8280 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8281 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8282 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8283 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8284 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8285 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8286 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8288 2018-05-21 Janus Weil <janus@gcc.gnu.org>
8292 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
8293 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8294 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8295 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8296 * testsuite/libgomp.fortran/task2.f90: Ditto.
8297 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8298 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8299 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8300 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8301 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8302 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8303 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8304 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
8305 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
8307 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
8310 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
8312 2018-05-09 Tom de Vries <tom@codesourcery.com>
8315 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
8316 to GOACC_enter_exit_data.
8318 2018-05-09 Tom de Vries <tom@codesourcery.com>
8321 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
8322 (async_synchronous_p): New function.
8323 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
8325 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8326 async_valid_stream_id_p.
8327 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
8328 * oacc-parallel.c (GOACC_parallel_keyed): Same.
8330 2018-05-07 Tom de Vries <tom@codesourcery.com>
8333 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
8334 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
8336 2018-05-03 Tom de Vries <tom@codesourcery.com>
8339 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
8340 extra_tool_flags if it contains an -foffload=-fdump-* flag.
8341 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
8342 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
8344 2018-05-02 Tom de Vries <tom@codesourcery.com>
8347 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
8348 GOMP_OPENACC_DIM ...
8349 * env.c (parse_gomp_openacc_dim): ... here. New function.
8350 (initialize_env): Call parse_gomp_openacc_dim.
8351 (goacc_default_dims): Define.
8352 * libgomp.h (goacc_default_dims): Declare.
8353 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
8354 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
8355 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
8356 GOMP_PLUGIN_acc_default_dim.
8357 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
8358 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
8360 2018-05-02 Tom de Vries <tom@codesourcery.com>
8363 * testsuite/libgomp.c++/udr-9.C: Update.
8364 * testsuite/libgomp.c++/atomic-16.C: Remove.
8365 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
8366 * testsuite/libgomp.c++/loop-13.C: Remove.
8367 * testsuite/libgomp.c++/loop-14.C: Remove.
8368 * testsuite/libgomp.c++/loop-15.C: Remove.
8369 * testsuite/libgomp.c++/monotonic-1.C: Remove.
8370 * testsuite/libgomp.c++/monotonic-2.C: Remove.
8371 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
8372 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
8373 * testsuite/libgomp.c++/ordered-1.C: Remove.
8374 * testsuite/libgomp.c++/pr45784.C: Remove.
8375 * testsuite/libgomp.c++/pr64824.C: Remove.
8376 * testsuite/libgomp.c++/pr64868.C: Remove.
8377 * testsuite/libgomp.c++/pr66199-1.C: Remove.
8378 * testsuite/libgomp.c++/pr66199-2.C: Remove.
8379 * testsuite/libgomp.c++/pr66199-3.C: Remove.
8380 * testsuite/libgomp.c++/pr66199-4.C: Remove.
8381 * testsuite/libgomp.c++/pr66199-5.C: Remove.
8382 * testsuite/libgomp.c++/pr66199-6.C: Remove.
8383 * testsuite/libgomp.c++/pr66199-7.C: Remove.
8384 * testsuite/libgomp.c++/pr66199-8.C: Remove.
8385 * testsuite/libgomp.c++/pr66199-9.C: Remove.
8386 * testsuite/libgomp.c++/pr69389.C: Remove.
8387 * testsuite/libgomp.c++/simd10.C: Remove.
8388 * testsuite/libgomp.c++/simd11.C: Remove.
8389 * testsuite/libgomp.c++/simd12.C: Remove.
8390 * testsuite/libgomp.c++/simd13.C: Remove.
8391 * testsuite/libgomp.c++/target-1.C: Remove.
8392 * testsuite/libgomp.c++/target-3.C: Remove.
8393 * testsuite/libgomp.c++/target-4.C: Remove.
8394 * testsuite/libgomp.c++/target-5.C: Remove.
8395 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
8396 * testsuite/libgomp.c++/taskloop-1.C: Remove.
8397 * testsuite/libgomp.c++/taskloop-2.C: Remove.
8398 * testsuite/libgomp.c++/taskloop-3.C: Remove.
8399 * testsuite/libgomp.c++/taskloop-4.C: Remove.
8400 * testsuite/libgomp.c++/udr-9.C: Remove.
8401 * testsuite/libgomp.c++/for-10.C: Remove.
8402 * testsuite/libgomp.c++/for-11.C: Remove.
8403 * testsuite/libgomp.c++/for-12.C: Remove.
8404 * testsuite/libgomp.c++/for-13.C: Remove.
8405 * testsuite/libgomp.c++/for-14.C: Remove.
8406 * testsuite/libgomp.c++/for-9.C: Remove.
8407 * testsuite/libgomp.c/atomic-18.c: Move ...
8408 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
8409 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
8410 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
8411 * testsuite/libgomp.c/loop-13.c: Move ...
8412 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
8413 * testsuite/libgomp.c/loop-14.c: Move ...
8414 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
8415 * testsuite/libgomp.c/loop-15.c: Remove.
8416 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
8417 * testsuite/libgomp.c/monotonic-1.c: Move ...
8418 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
8419 * testsuite/libgomp.c/monotonic-2.c: Move ...
8420 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
8421 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
8422 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
8423 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
8424 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
8425 * testsuite/libgomp.c/ordered-4.c: Move ...
8426 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
8427 * testsuite/libgomp.c/pr45784.c: Move ...
8428 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
8429 * testsuite/libgomp.c/pr64824.c: Move ...
8430 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
8431 * testsuite/libgomp.c/pr64868.c: Move ...
8432 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
8433 * testsuite/libgomp.c/pr66199-1.c: Move ...
8434 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
8435 * testsuite/libgomp.c/pr66199-2.c: Move ...
8436 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
8437 * testsuite/libgomp.c/pr66199-3.c: Move ...
8438 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
8439 * testsuite/libgomp.c/pr66199-4.c: Move ...
8440 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
8441 * testsuite/libgomp.c/pr66199-5.c: Move ...
8442 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
8443 * testsuite/libgomp.c/pr66199-6.c: Move ...
8444 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
8445 * testsuite/libgomp.c/pr66199-7.c: Move ...
8446 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
8447 * testsuite/libgomp.c/pr66199-8.c: Move ...
8448 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
8449 * testsuite/libgomp.c/pr66199-9.c: Move ...
8450 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
8451 * testsuite/libgomp.c/pr69389.c: Move ...
8452 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
8453 * testsuite/libgomp.c/simd-14.c: Move ...
8454 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
8455 * testsuite/libgomp.c/simd-15.c: Move ...
8456 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
8457 * testsuite/libgomp.c/simd-16.c: Move ...
8458 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
8459 * testsuite/libgomp.c/simd-17.c: Move ...
8460 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
8461 * testsuite/libgomp.c/target-1.c: Move ...
8462 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
8463 * testsuite/libgomp.c/target-10.c: Move ...
8464 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
8465 * testsuite/libgomp.c/target-13.c: Move ...
8466 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
8467 * testsuite/libgomp.c/target-2.c: Move ...
8468 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
8469 * testsuite/libgomp.c/taskgroup-1.c: Move ...
8470 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
8471 * testsuite/libgomp.c/taskloop-1.c: Move ...
8472 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
8473 * testsuite/libgomp.c/taskloop-2.c: Move ...
8474 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
8475 * testsuite/libgomp.c/taskloop-3.c: Move ...
8476 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
8477 * testsuite/libgomp.c/taskloop-4.c: Move ...
8478 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
8479 * testsuite/libgomp.c/udr-1.c: Move ...
8480 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
8481 * testsuite/libgomp.c/for-1.c: Move ...
8482 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
8483 * testsuite/libgomp.c/for-1.h: Move ...
8484 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
8485 * testsuite/libgomp.c/for-2.c: Move ...
8486 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
8487 * testsuite/libgomp.c/for-2.h: Move ...
8488 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
8489 * testsuite/libgomp.c/for-3.c: Move ...
8490 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
8491 * testsuite/libgomp.c/for-4.c: Move ...
8492 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
8493 * testsuite/libgomp.c/for-5.c: Move ...
8494 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
8495 * testsuite/libgomp.c/for-6.c: Move ...
8496 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
8498 2018-05-02 Tom de Vries <tom@codesourcery.com>
8501 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
8502 __builtin_goacc_parlevel_{id,size}.
8503 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
8504 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
8505 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
8506 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
8507 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
8508 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
8509 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
8510 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
8511 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
8512 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
8513 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
8514 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
8515 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
8516 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
8517 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
8518 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
8519 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
8520 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
8521 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
8522 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
8523 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
8524 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
8525 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
8527 2018-05-02 Tom de Vries <tom@codesourcery.com>
8530 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
8532 2018-05-02 Tom de Vries <tom@codesourcery.com>
8535 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
8537 2018-04-29 Julian Brown <julian@codesourcery.com>
8538 Tom de Vries <tom@codesourcery.com>
8541 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
8542 arbitrary order for iterations of atomic subtract check.
8544 2018-04-28 Tom de Vries <tom@codesourcery.com>
8547 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
8548 atomic capture results obtained in parallel loop to an array, instead of
8551 2018-04-26 Tom de Vries <tom@codesourcery.com>
8554 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
8555 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
8556 (process_GOMP_NVPTX_JIT): New function.
8557 (link_ptx): Use process_GOMP_NVPTX_JIT.
8559 2018-04-26 Richard Biener <rguenther@suse.de>
8560 Tom de Vries <tom@codesourcery.com>
8563 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
8565 2018-04-26 Tom de Vries <tom@codesourcery.com>
8568 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
8569 recursion depth from 25 to 23.
8570 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
8572 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
8574 * configure: Regenerated.
8576 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
8577 Tom de Vries <tom@codesourcery.com>
8580 * testsuite/libgomp.oacc-c++/ref-1.C: New.
8582 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
8585 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
8586 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8587 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8588 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
8589 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
8590 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
8593 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
8595 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8597 2018-04-19 Jakub Jelinek <jakub@redhat.com>
8599 * configure: Regenerated.
8601 2018-04-18 David Malcolm <dmalcolm@redhat.com>
8604 * configure: Regenerate.
8606 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
8607 Tom de Vries <tom@codesourcery.com>
8610 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8611 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8613 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8617 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
8618 test from gfortran.dg to here.
8620 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
8622 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
8623 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
8625 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
8628 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8629 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8631 2018-04-05 Tom de Vries <tom@codesourcery.com>
8634 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
8636 2018-03-26 Tom de Vries <tom@codesourcery.com>
8638 PR tree-optimization/85063
8639 * testsuite/libgomp.c/switch-conversion-2.c: New test.
8640 * testsuite/libgomp.c/switch-conversion.c: New test.
8641 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
8642 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
8644 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
8647 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
8648 call abort by STOP n.
8649 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
8650 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
8651 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
8652 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
8653 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
8654 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
8655 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
8656 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
8657 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
8658 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
8659 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
8660 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
8661 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
8662 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
8663 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
8664 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
8665 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
8666 * testsuite/libgomp.fortran/associate1.f90: Likewise.
8667 * testsuite/libgomp.fortran/associate2.f90: Likewise.
8668 * testsuite/libgomp.fortran/associate3.f90: Likewise.
8669 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
8670 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
8671 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
8672 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
8673 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
8674 * testsuite/libgomp.fortran/character1.f90: Likewise.
8675 * testsuite/libgomp.fortran/character2.f90: Likewise.
8676 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
8677 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
8678 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
8679 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
8680 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
8681 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
8682 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
8683 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
8684 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
8685 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
8686 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
8687 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
8688 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
8689 * testsuite/libgomp.fortran/do1.f90: Likewise.
8690 * testsuite/libgomp.fortran/do2.f90: Likewise.
8691 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
8692 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
8693 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
8694 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
8695 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
8696 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
8697 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8698 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
8699 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
8700 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
8701 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
8702 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
8703 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8704 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
8705 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
8706 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
8707 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
8708 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
8709 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
8710 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
8711 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
8712 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
8713 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
8714 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
8715 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
8716 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
8717 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
8718 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8719 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
8720 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
8721 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
8722 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
8723 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
8724 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8725 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8726 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
8727 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
8728 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
8729 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
8730 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
8731 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
8732 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
8733 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
8734 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
8735 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
8736 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
8737 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
8738 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
8739 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
8740 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8741 * testsuite/libgomp.fortran/lib2.f: Likewise.
8742 * testsuite/libgomp.fortran/lib3.f: Likewise.
8743 * testsuite/libgomp.fortran/lib4.f90: Likewise.
8744 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
8745 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
8746 * testsuite/libgomp.fortran/nested1.f90: Likewise.
8747 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
8748 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
8749 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
8750 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
8751 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
8752 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
8753 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
8754 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
8755 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
8756 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
8757 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
8758 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
8759 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
8760 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
8761 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
8762 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
8763 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
8764 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
8765 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
8766 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8767 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
8768 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
8769 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
8770 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
8771 * testsuite/libgomp.fortran/pr25162.f: Likewise.
8772 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
8773 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
8774 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
8775 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
8776 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
8777 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
8778 * testsuite/libgomp.fortran/pr28390.f: Likewise.
8779 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
8780 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
8781 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
8782 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
8783 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
8784 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
8785 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
8786 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
8787 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
8788 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
8789 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
8790 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
8791 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
8792 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
8793 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
8794 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
8795 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
8796 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
8797 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
8798 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
8799 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
8800 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
8801 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
8802 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
8803 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
8804 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
8805 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
8806 * testsuite/libgomp.fortran/reference1.f90: Likewise.
8807 * testsuite/libgomp.fortran/reference2.f90: Likewise.
8808 * testsuite/libgomp.fortran/retval1.f90: Likewise.
8809 * testsuite/libgomp.fortran/retval2.f90: Likewise.
8810 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
8811 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
8812 * testsuite/libgomp.fortran/simd1.f90: Likewise.
8813 * testsuite/libgomp.fortran/simd2.f90: Likewise.
8814 * testsuite/libgomp.fortran/simd3.f90: Likewise.
8815 * testsuite/libgomp.fortran/simd4.f90: Likewise.
8816 * testsuite/libgomp.fortran/simd5.f90: Likewise.
8817 * testsuite/libgomp.fortran/simd6.f90: Likewise.
8818 * testsuite/libgomp.fortran/simd7.f90: Likewise.
8819 * testsuite/libgomp.fortran/stack.f90: Likewise.
8820 * testsuite/libgomp.fortran/strassen.f90: Likewise.
8821 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
8822 * testsuite/libgomp.fortran/tabs2.f: Likewise.
8823 * testsuite/libgomp.fortran/target1.f90: Likewise.
8824 * testsuite/libgomp.fortran/target2.f90: Likewise.
8825 * testsuite/libgomp.fortran/target3.f90: Likewise.
8826 * testsuite/libgomp.fortran/target4.f90: Likewise.
8827 * testsuite/libgomp.fortran/target5.f90: Likewise.
8828 * testsuite/libgomp.fortran/target6.f90: Likewise.
8829 * testsuite/libgomp.fortran/target7.f90: Likewise.
8830 * testsuite/libgomp.fortran/target8.f90: Likewise.
8831 * testsuite/libgomp.fortran/task1.f90: Likewise.
8832 * testsuite/libgomp.fortran/task2.f90: Likewise.
8833 * testsuite/libgomp.fortran/task3.f90: Likewise.
8834 * testsuite/libgomp.fortran/task4.f90: Likewise.
8835 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
8836 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
8837 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
8838 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
8839 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
8840 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
8841 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
8842 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
8843 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
8844 * testsuite/libgomp.fortran/udr1.f90: Likewise.
8845 * testsuite/libgomp.fortran/udr10.f90: Likewise.
8846 * testsuite/libgomp.fortran/udr11.f90: Likewise.
8847 * testsuite/libgomp.fortran/udr12.f90: Likewise.
8848 * testsuite/libgomp.fortran/udr13.f90: Likewise.
8849 * testsuite/libgomp.fortran/udr14.f90: Likewise.
8850 * testsuite/libgomp.fortran/udr15.f90: Likewise.
8851 * testsuite/libgomp.fortran/udr2.f90: Likewise.
8852 * testsuite/libgomp.fortran/udr3.f90: Likewise.
8853 * testsuite/libgomp.fortran/udr4.f90: Likewise.
8854 * testsuite/libgomp.fortran/udr5.f90: Likewise.
8855 * testsuite/libgomp.fortran/udr6.f90: Likewise.
8856 * testsuite/libgomp.fortran/udr7.f90: Likewise.
8857 * testsuite/libgomp.fortran/udr8.f90: Likewise.
8858 * testsuite/libgomp.fortran/udr9.f90: Likewise.
8859 * testsuite/libgomp.fortran/vla1.f90: Likewise.
8860 * testsuite/libgomp.fortran/vla2.f90: Likewise.
8861 * testsuite/libgomp.fortran/vla3.f90: Likewise.
8862 * testsuite/libgomp.fortran/vla4.f90: Likewise.
8863 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8864 * testsuite/libgomp.fortran/vla6.f90: Likewise.
8865 * testsuite/libgomp.fortran/vla7.f90: Likewise.
8866 * testsuite/libgomp.fortran/vla8.f90: Likewise.
8867 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
8868 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
8869 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8870 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8871 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8872 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8873 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8874 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8875 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8876 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8877 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
8878 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
8879 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
8880 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
8881 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8882 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8883 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8884 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8885 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8886 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8887 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8888 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8889 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8890 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
8891 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
8892 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8893 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8894 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8895 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8896 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8897 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8898 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
8899 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
8900 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
8901 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
8902 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8903 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8904 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8905 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
8906 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8907 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
8908 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
8909 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
8910 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
8911 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
8912 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
8913 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8914 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8915 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8916 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8917 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8918 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8919 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8920 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8921 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8922 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8923 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8924 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8925 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8926 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8927 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8928 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8929 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8930 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
8931 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8932 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8933 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
8934 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
8935 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
8936 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8937 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
8938 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
8939 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
8940 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
8941 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8942 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8943 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8944 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8945 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8946 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8947 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8948 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8949 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
8950 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
8951 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8952 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8953 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8954 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8955 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
8956 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
8957 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
8958 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8959 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8960 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
8962 2018-03-20 Richard Biener <rguenther@suse.de>
8964 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
8965 parallelizable loop.
8967 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8970 * configure: Regenerate.
8972 2018-02-16 Jakub Jelinek <jakub@redhat.com>
8975 * libgomp.fortran/pr84418-1.f90: New test.
8976 * libgomp.fortran/pr84418-2.f90: New test.
8978 2018-02-14 Jakub Jelinek <jakub@redhat.com>
8981 * testsuite/libgomp.fortran/threadprivate4.f90: Add
8982 -std=f2003 -fall-intrinsics into dg-additional-options.
8984 2018-02-08 Martin Jambor <mjambor@suse.cz>
8986 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
8989 2018-02-08 Martin Jambor <mjambor@suse.cz>
8991 * testsuite/libgomp.hsa.c/staticvar.c: New test.
8993 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8995 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
8996 [__cplusplus]: Declare extern "C".
8998 2018-02-07 Tom de Vries <tom@codesourcery.com>
9001 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
9003 2018-01-29 Christoph Spiel <cspiel@freenet.de>
9004 Jakub Jelinek <jakub@redhat.com>
9007 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
9008 instead of omp_lock_t.
9010 2018-01-25 Tom de Vries <tom@codesourcery.com>
9013 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
9015 2018-01-24 Tom de Vries <tom@codesourcery.com>
9018 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
9020 2018-01-24 Tom de Vries <tom@codesourcery.com>
9023 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
9025 2018-01-19 Tom de Vries <tom@codesourcery.com>
9026 Cesar Philippidis <cesar@codesourcery.com>
9029 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
9030 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
9032 2018-01-03 Jakub Jelinek <jakub@redhat.com>
9034 Update copyright years.
9036 * libgomp.texi: Bump @copying's copyright year.
9038 2017-12-30 Tom de Vries <tom@codesourcery.com>
9041 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
9042 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
9044 2017-12-27 Tom de Vries <tom@codesourcery.com>
9047 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
9048 (test_nonstatic): Fix return type to workaround PR83046.
9050 2017-12-05 Jakub Jelinek <jakub@redhat.com>
9053 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
9054 j suffix instead of i.
9055 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
9058 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
9060 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
9061 call to acc_wait (1).
9063 2017-11-24 Jakub Jelinek <jakub@redhat.com>
9066 * testsuite/libgomp.fortran/pr81304.f90: New test.
9068 2017-11-23 Jakub Jelinek <jakub@redhat.com>
9071 * libgomp.fortran/pr81841.f90: New test.
9073 2017-11-22 Jakub Jelinek <jakub@redhat.com>
9076 * target.c (gomp_target_init): Compute lengths just once and
9077 use them in both malloc size and subsequent copying.
9079 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9081 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
9082 * acinclude.m4: Add cet.m4.
9083 * configure: Regenerate.
9084 * Makefile.in: Likewise.
9085 * testsuite/Makefile.in: Likewise.
9087 2017-11-15 Tom de Vries <tom@codesourcery.com>
9089 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
9090 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
9091 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
9092 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
9093 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
9094 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
9096 2017-11-14 Tom de Vries <tom@codesourcery.com>
9098 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
9101 2017-11-07 Jakub Jelinek <jakub@redhat.com>
9104 * testsuite/libgomp.c++/pr82835.C: New test.
9106 2017-11-06 Martin Liska <mliska@suse.cz>
9108 * testsuite/libgomp.c++/loop-2.C: Return a value
9109 for functions with non-void return type, or change type to void,
9110 or add -Wno-return-type for test.
9111 * testsuite/libgomp.c++/loop-4.C: Likewise.
9112 * testsuite/libgomp.c++/parallel-1.C: Likewise.
9113 * testsuite/libgomp.c++/shared-1.C: Likewise.
9114 * testsuite/libgomp.c++/single-1.C: Likewise.
9115 * testsuite/libgomp.c++/single-2.C: Likewise.
9117 2017-10-31 Tom de Vries <tom@codesourcery.com>
9119 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
9120 "do {} while (false)".
9121 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
9122 after HSA_DEBUG call.
9124 2017-10-28 Jakub Jelinek <jakub@redhat.com>
9126 * target.c (struct gomp_coalesce_buf): New type.
9127 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
9128 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
9129 (gomp_copy_host2dev): Add CBUF argument, if copying into
9130 the cached ranges, memcpy into buffer instead of copying
9132 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
9133 Add CBUF argument, pass it through to other calls.
9134 (gomp_map_vars): Aggregate copies from host to device if small enough
9135 and with small enough gaps in between into memcpy into a buffer and
9136 fewer host to device copies from the buffer.
9137 (gomp_update): Adjust gomp_copy_host2dev caller.
9139 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
9141 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
9143 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9144 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9145 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9146 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9148 2017-10-16 Tom de Vries <tom@codesourcery.com>
9150 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
9151 openacc_nvidia_accel_selected.
9152 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
9153 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
9154 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
9155 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
9156 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
9157 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
9158 openacc_nvidia_accel_selected. Skip for shared memory device.
9159 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
9160 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
9162 2017-10-09 Martin Jambor <mjambor@suse.cz>
9165 * testsuite/libgomp.hsa.c/pr82416.c: New test.
9167 2017-10-07 Tom de Vries <tom@codesourcery.com>
9169 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
9170 Remove acc_device_nvidia references.
9171 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
9174 2017-10-05 Tom de Vries <tom@codesourcery.com>
9176 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
9177 vector_length(32) clause from acc parallel directive.
9178 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
9180 2017-10-04 Tom de Vries <tom@codesourcery.com>
9182 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
9183 (main): Reduce sum of arr elements. Assert that hres is exactly
9184 representable in 32-bit floating point.
9185 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
9186 (main): Reduce sum of arr elements. Assert that hres and hmres are
9187 exactly representable in 32-bit floating point.
9188 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
9190 2017-09-28 Tom de Vries <tom@codesourcery.com>
9192 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
9194 * testsuite/libgomp.c++/pr69393.C: Same.
9195 * testsuite/libgomp.c++/taskloop-1.C: Same.
9196 * testsuite/libgomp.c++/taskloop-3.C: Same.
9197 * testsuite/libgomp.c++/taskloop-4.C: Same.
9198 * testsuite/libgomp.c/for-4.c: Same.
9199 * testsuite/libgomp.c/pr66199-3.c: Same.
9200 * testsuite/libgomp.c/pr66199-4.c: Same.
9201 * testsuite/libgomp.c/pr66199-6.c: Same.
9202 * testsuite/libgomp.c/taskloop-1.c: Same.
9203 * testsuite/libgomp.c/taskloop-3.c: Same.
9204 * testsuite/libgomp.c/taskloop-4.c: Same.
9205 * testsuite/libgomp.fortran/aligned1.f03: Same.
9206 * testsuite/libgomp.fortran/condinc1.f: Same.
9207 * testsuite/libgomp.fortran/condinc3.f90: Same.
9208 * testsuite/libgomp.fortran/crayptr1.f90: Same.
9209 * testsuite/libgomp.fortran/crayptr2.f90: Same.
9210 * testsuite/libgomp.fortran/crayptr3.f90: Same.
9211 * testsuite/libgomp.fortran/omp_cond1.f: Same.
9212 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
9213 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
9214 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
9215 * testsuite/libgomp.fortran/recursion1.f90: Same.
9216 * testsuite/libgomp.fortran/target2.f90: Same.
9217 * testsuite/libgomp.fortran/target5.f90: Same.
9218 * testsuite/libgomp.fortran/task3.f90: Same.
9220 2017-09-28 Tom de Vries <tom@codesourcery.com>
9222 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
9223 vector_length(32) clause from acc parallel directive.
9224 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
9226 2017-09-27 Tom de Vries <tom@codesourcery.com>
9228 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
9229 Remove acc_device_nvidia references.
9231 2017-09-16 Tom de Vries <tom@codesourcery.com>
9234 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
9236 2017-09-14 Tom de Vries <tom@codesourcery.com>
9238 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
9239 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
9240 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
9241 * testsuite/libgomp.c/c.exp: Include test-cases from
9242 libgomp.c-c++-common.
9243 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
9246 2017-09-14 Jakub Jelinek <jakub@redhat.com>
9249 * testsuite/libgomp.c++/pr81314.C: New test.
9251 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
9253 * libgomp.texi (Top): www.openacc.org now uses https.
9254 (Enabling OpenACC): Ditto.
9255 (acc_get_num_devices): Ditto.
9256 (acc_set_device_type): Ditto.
9257 (acc_get_device_type): Ditto.
9258 (acc_set_device_num): Ditto.
9259 (acc_get_device_num): Ditto.
9260 (acc_async_test): Ditto.
9261 (acc_async_test_all): Ditto.
9263 (acc_wait_all): Ditto.
9264 (acc_wait_all_async): Ditto.
9265 (acc_wait_async): Ditto.
9267 (acc_shutdown): Ditto.
9268 (acc_on_device): Ditto.
9269 (acc_malloc): Ditto.
9271 (acc_copyin): Ditto.
9272 (acc_present_or_copyin): Ditto.
9273 (acc_create): Ditto.
9274 (acc_present_or_create): Ditto.
9275 (acc_copyout): Ditto.
9276 (acc_delete): Ditto.
9277 (acc_update_device): Ditto.
9278 (acc_update_self): Ditto.
9279 (acc_map_data): Ditto.
9280 (acc_unmap_data): Ditto.
9281 (acc_deviceptr): Ditto.
9282 (acc_hostptr): Ditto.
9283 (acc_is_present): Ditto.
9284 (acc_memcpy_to_device): Ditto.
9285 (acc_memcpy_from_device): Ditto.
9286 (acc_get_current_cuda_device): Ditto.
9287 (acc_get_current_cuda_context): Ditto.
9288 (acc_get_cuda_stream): Ditto.
9289 (acc_set_cuda_stream): Ditto.
9290 (ACC_DEVICE_TYPE): Ditto.
9291 (ACC_DEVICE_NUM): Ditto.
9292 (OpenACC Library Interoperability): Ditto.
9294 2017-08-09 Jakub Jelinek <jakub@redhat.com>
9297 * testsuite/libgomp.c/pr81687-1.c: New test.
9298 * testsuite/libgomp.c/pr81687-2.c: New test.
9300 2017-08-07 Jakub Jelinek <jakub@redhat.com>
9303 * testsuite/libgomp.c/pr69389.c: New test.
9304 * testsuite/libgomp.c++/pr69389.C: New test.
9306 2017-08-07 Tom de Vries <tom@codesourcery.com>
9309 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
9310 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
9312 2017-07-27 Jakub Jelinek <jakub@redhat.com>
9315 * testsuite/libgomp.c/pr45784.c: New test.
9316 * testsuite/libgomp.c++/pr45784.C: New test.
9318 2017-07-19 Tom de Vries <tom@codesourcery.com>
9320 * testsuite/libgomp.oacc-c/vec.c: New test.
9322 2017-07-03 Tom de Vries <tom@codesourcery.com>
9324 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
9326 2017-06-27 Tom de Vries <tom@codesourcery.com>
9328 * plugin/plugin-nvptx.c (notify_var): New function.
9329 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
9331 2017-06-27 Tom de Vries <tom@codesourcery.com>
9333 * env.c (parse_unsigned_long_1): Factor out of ...
9334 (parse_unsigned_long): ... here.
9335 (parse_int_1): Factor out of ...
9336 (parse_int): ... here.
9337 (parse_int_secure): New function.
9338 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
9339 * secure_getenv.h: Factor out of ...
9340 * plugin/plugin-hsa.c: ... here.
9341 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
9343 2017-06-21 Jakub Jelinek <jakub@redhat.com>
9346 * testsuite/libgomp.c++/pr81130.C: New test.
9348 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9350 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
9352 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
9353 dg-xfail-run-if default args.
9355 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9357 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
9358 * testsuite/libgomp.c/pr39591-3.c: Likewise.
9360 2017-05-30 Jakub Jelinek <jakub@redhat.com>
9363 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
9364 (gomp_affinity_init_level): Use it. Always analyze the core and thread
9365 sibling lists, depending on level just pick up what CPUs to put
9366 together into a place vs. whether add multiple ordered places.
9368 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
9370 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
9371 * libgomp.map (OACC_2.0.1): Add these.
9372 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
9373 for "acc_wait", and "acc_wait_all", respectively.
9374 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
9375 for "acc_wait", and "acc_wait_all", respectively.
9376 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
9377 * libgomp.texi (acc_wait, acc_wait_all): Update.
9378 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
9379 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
9380 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9382 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
9383 acc_present_or_copyin and acc_present_or_create procedures,
9385 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
9386 generally different variants of OpenACC Runtime Library functions.
9387 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9389 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
9390 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9392 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
9393 of preprocessor definitions.
9394 * libgomp.h (strong_alias): Guard by "#ifdef
9395 HAVE_ATTRIBUTE_ALIAS".
9396 * oacc-mem.c: Provide "acc_pcreate" as alias for
9397 "acc_present_or_create", and "acc_pcopyin" as alias for
9398 "acc_present_or_copyin".
9399 * libgomp.map: New version "OACC_2.0.1".
9400 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
9401 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
9403 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
9406 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
9407 when disabling nvptx offloading.
9409 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
9411 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
9412 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
9413 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
9415 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
9416 * testsuite/lib/libgomp.exp
9417 (check_effective_target_openacc_nvidia_accel_configured): New
9419 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
9420 (check_effective_target_c++): New procs.
9421 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
9422 (check_effective_target_c++): Likewise.
9424 2017-05-22 Jakub Jelinek <jakub@redhat.com>
9427 * testsuite/libgomp.c/pr80809-2.c: New test.
9428 * testsuite/libgomp.c/pr80809-3.c: New test.
9431 * testsuite/libgomp.c/pr80809-1.c: New test.
9434 * testsuite/libgomp.c/pr80853.c: New test.
9436 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
9438 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
9439 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
9440 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9441 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9442 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
9444 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
9445 Debug output for failure.
9447 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9449 * testsuite/lib/libgomp.exp: Load scanlang.exp.
9451 2017-04-27 Jakub Jelinek <jakub@redhat.com>
9454 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
9455 bootstrap compare failures.
9457 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
9459 * testsuite/libgomp.c/target-36.c: New testcase.
9461 2017-04-13 Jakub Jelinek <jakub@redhat.com>
9463 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
9466 2017-04-11 Jakub Jelinek <jakub@redhat.com>
9469 * testsuite/libgomp.c/pr80394.c: New test.
9471 2017-04-04 Jakub Jelinek <jakub@redhat.com>
9474 * config/posix/thread-stacksize.h: New file.
9475 * config/darwin/thread-stacksize.h: New file.
9476 * config/nvptx/thread-stacksize.h: New file.
9477 * env.c: Include thread-stacksize.h.
9478 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
9479 instead of 0. Call pthread_attr_setstacksize even if
9480 GOMP_DEFAULT_STACKSIZE is non-zero.
9482 2017-03-30 Jakub Jelinek <jakub@redhat.com>
9484 * env.c (initialize_env): Initialize stacksize to 0.
9486 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
9489 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
9491 2017-03-08 Jakub Jelinek <jakub@redhat.com>
9494 * testsuite/libgomp.c/pr79940.c: New test.
9496 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9498 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
9500 Add __float128 options.
9502 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
9504 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
9505 hppa*-*-* dg-skip-if directive.
9507 2017-02-09 Jakub Jelinek <jakub@redhat.com>
9509 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
9510 dg-skip-if directive into a comment.
9512 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
9513 Chung-Lin Tang <cltang@codesourcery.com>
9515 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
9516 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
9517 add additional case.
9518 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
9519 "openacc_nvidia_accel_selected".
9520 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
9521 Add num_workers(8) clause.
9523 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
9525 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
9527 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
9528 include complex.h on hppa*-*-hpux*.
9529 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
9531 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
9533 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
9535 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
9536 GOMP_OFFLOAD_openacc_exec. Adjust all users.
9537 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
9538 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
9539 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
9540 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
9541 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
9542 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
9543 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
9544 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
9546 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
9548 * libgomp-plugin.h: #include <stdbool.h>.
9549 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
9550 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
9551 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
9552 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
9553 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
9554 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
9555 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
9556 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
9557 (GOMP_OFFLOAD_openacc_register_async_cleanup)
9558 (GOMP_OFFLOAD_openacc_async_test)
9559 (GOMP_OFFLOAD_openacc_async_test_all)
9560 (GOMP_OFFLOAD_openacc_async_wait)
9561 (GOMP_OFFLOAD_openacc_async_wait_async)
9562 (GOMP_OFFLOAD_openacc_async_wait_all)
9563 (GOMP_OFFLOAD_openacc_async_wait_all_async)
9564 (GOMP_OFFLOAD_openacc_async_set_async)
9565 (GOMP_OFFLOAD_openacc_create_thread_data)
9566 (GOMP_OFFLOAD_openacc_destroy_thread_data)
9567 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
9568 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
9569 (GOMP_OFFLOAD_openacc_get_cuda_stream)
9570 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
9571 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
9573 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
9574 (GOMP_OFFLOAD_unload_image): Fix argument types.
9576 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9578 * testsuite/lib/libgomp.exp
9579 (check_effective_target_hsa_offloading_selected_nocache): Fix up
9580 check_compile invocation. Fix up removal of executable. Drop
9581 bogus "2>&1" argument.
9583 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
9586 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
9587 Martin Jambor <mjambor@suse.cz>
9589 * plugin/hsa.h: Moved to top level include.
9590 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
9592 2017-01-21 Jakub Jelinek <jakub@redhat.com>
9595 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
9596 of cat to get version from BASE-VER file.
9597 * testsuite/Makefile.in: Regenerated.
9599 2017-01-19 Jakub Jelinek <jakub@redhat.com>
9601 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
9604 2017-01-17 Jakub Jelinek <jakub@redhat.com>
9606 * plugin/hsa.h: Add GCC runtime library exception.
9607 * plugin/hsa_ext_finalize.h: Likewise.
9609 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
9610 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
9611 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
9612 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
9613 plugin/include/cuda as include dir and -ldl instead of -lcuda as
9614 library to link ptx plugin against.
9615 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
9616 (CUDA_CALLS): Define.
9617 (cuda_lib, cuda_lib_inited): New variables.
9618 (init_cuda_lib): New function.
9619 (CUDA_CALL_PREFIX): Define.
9620 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
9621 (CUDA_CALL): Use FN instead of (FN).
9622 (CUDA_CALL_NOCHECK): Define.
9623 (cuda_error, fini_streams_for_device, select_stream_for_async,
9624 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
9625 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
9626 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
9627 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
9629 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
9631 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
9632 Use CUDA_CALL_NOCHECK.
9633 * plugin/cuda/cuda.h: New file.
9634 * config.h.in: Regenerated.
9635 * configure: Regenerated.
9638 * configure.ac: Add GCC_BASE_VER.
9639 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
9640 get version from BASE-VER file.
9641 * testsuite/Makefile.in: Regenerated.
9642 * configure: Regenerated.
9643 * Makefile.in: Regenerated.
9645 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9648 * Makefile.am: Make fincludedir multilib-aware.
9649 * Makefile.in: Regenerate.
9651 2017-01-01 Jakub Jelinek <jakub@redhat.com>
9653 Update copyright years.
9655 * libgomp.texi: Bump @copying's copyright year.
9657 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
9659 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
9660 pthread_spinlock_t instead of gomp_mutex_t lock.
9661 (gomp_get_thread_pool): Likewise.
9662 (gomp_release_thread_pool): Likewise.
9663 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
9666 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
9668 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
9669 thread pool in case nthreads == 1.
9671 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9673 * config/nvptx/env.c: Delete.
9674 * icv.c: Move definitions of ICV variables back ...
9675 * env.c: ...here. Do not compile environment-related functionality if
9676 LIBGOMP_OFFLOADED_ONLY is set.
9678 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9680 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
9681 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
9682 * configure: Regenerate.
9683 * config.h.in: Likewise.
9685 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9687 * Makefile.in: Regenerate with automake-1.11.6.
9688 * aclocal.m4: Likewise.
9689 * configure: Likewise.
9690 * testsuite/Makefile.in: Likewise.
9692 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
9694 * config/nvptx/critical.c: Delete to use generic implementation.
9696 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
9698 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
9699 ../../affinity.c as fallback.
9700 * config/nvptx/affinity.c: Delete to use fallback implementation.
9702 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
9703 Jakub Jelinek <jakub@redhat.com>
9704 Dmitry Melnik <dm@ispras.ru>
9706 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
9707 * Makefile.in. Regenerate.
9708 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
9709 (LIBGOMP_USE_PTHREADS): ...here; new define.
9710 * configure: Regenerate.
9711 * config.h.in: Likewise.
9712 * config/posix/affinity.c: Move to...
9713 * affinity.c: ...here (new file). Guard use of Pthreads-specific
9714 interface by LIBGOMP_USE_PTHREADS.
9715 * critical.c: Split out GOMP_atomic_{start,end} into...
9716 * atomic.c: ...here (new file).
9717 * env.c: Split out ICV definitions into...
9718 * icv.c: ...here (new file) and...
9719 * icv-device.c: ...here. New file.
9720 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
9721 (gomp_destroy_lock_30): Ditto.
9722 (gomp_set_lock_30): Ditto.
9723 (gomp_unset_lock_30): Ditto.
9724 (gomp_test_lock_30): Ditto.
9725 (gomp_init_nest_lock_30): Ditto.
9726 (gomp_destroy_nest_lock_30): Ditto.
9727 (gomp_set_nest_lock_30): Ditto.
9728 (gomp_unset_nest_lock_30): Ditto.
9729 (gomp_test_nest_lock_30): Ditto.
9731 * config/nvptx/lock.c: New.
9732 * config/nvptx/bar.c: New.
9733 * config/nvptx/bar.h: New.
9734 * config/nvptx/doacross.h: New.
9735 * config/nvptx/error.c: New.
9736 * config/nvptx/icv-device.c: New.
9737 * config/nvptx/mutex.h: New.
9738 * config/nvptx/pool.h: New.
9739 * config/nvptx/proc.c: New.
9740 * config/nvptx/ptrlock.h: New.
9741 * config/nvptx/sem.h: New.
9742 * config/nvptx/simple-bar.h: New.
9743 * config/nvptx/target.c: New.
9744 * config/nvptx/task.c: New.
9745 * config/nvptx/team.c: New.
9746 * config/nvptx/time.c: New.
9747 * config/posix/simple-bar.h: New.
9748 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
9749 (gomp_num_teams_var): Declare.
9750 (struct gomp_thread_pool): Change threads_dock member to
9751 gomp_simple_barrier_t.
9752 [__nvptx__] (gomp_thread): New implementation.
9753 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
9754 (gomp_thread_destructor): Ditto.
9755 (gomp_init_thread_affinity): Ditto.
9756 * team.c: Guard uses of Pthreads-specific interfaces by
9757 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
9758 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
9759 * config/nvptx/alloc.c: Delete.
9760 * config/nvptx/barrier.c: Ditto.
9761 * config/nvptx/fortran.c: Ditto.
9762 * config/nvptx/iter.c: Ditto.
9763 * config/nvptx/iter_ull.c: Ditto.
9764 * config/nvptx/loop.c: Ditto.
9765 * config/nvptx/loop_ull.c: Ditto.
9766 * config/nvptx/ordered.c: Ditto.
9767 * config/nvptx/parallel.c: Ditto.
9768 * config/nvptx/priority_queue.c: Ditto.
9769 * config/nvptx/sections.c: Ditto.
9770 * config/nvptx/single.c: Ditto.
9771 * config/nvptx/splay-tree.c: Ditto.
9772 * config/nvptx/work.c: Ditto.
9773 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
9774 -foffload=-lgfortran in addition to -lgfortran.
9775 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
9776 * plugin/plugin-nvptx.c: Include <limits.h>.
9777 (struct targ_fn_descriptor): Add new fields.
9778 (struct ptx_device): Ditto. Set them...
9779 (nvptx_open_device): ...here.
9780 (nvptx_adjust_launch_bounds): New.
9781 (nvptx_host2dev): Allow NULL 'nvthd'.
9782 (nvptx_dev2host): Ditto.
9783 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
9784 (link_ptx): Adjust log sizes.
9785 (nvptx_host2dev): Allow NULL 'nvthd'.
9786 (nvptx_dev2host): Ditto.
9787 (nvptx_set_clocktick): New. Use it...
9788 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
9790 (GOMP_OFFLOAD_dev2dev): New.
9791 (nvptx_adjust_launch_bounds): New.
9792 (nvptx_stacks_size): New.
9793 (nvptx_stacks_alloc): New.
9794 (nvptx_stacks_free): New.
9795 (GOMP_OFFLOAD_run): New.
9796 (GOMP_OFFLOAD_async_run): New (stub).
9798 2016-11-23 Martin Jambor <mjambor@suse.cz>
9800 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
9801 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
9802 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
9804 2016-11-23 Martin Liska <mliska@suse.cz>
9805 Martin Jambor <mjambor@suse.cz>
9807 * plugin/hsa.h: New file.
9808 * plugin/hsa_ext_finalize.h: New file.
9809 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
9810 header file unistd.h, and functions secure_getenv, __secure_getenv,
9811 getuid, geteuid, getgid and getegid.
9812 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
9814 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
9815 Handle various cases of secure_getenv presence, add an implementation
9816 when we can test effective UID and GID.
9817 (struct hsa_runtime_fn_info): New structure.
9818 (hsa_runtime_fn_info hsa_fns): New variable.
9819 (hsa_runtime_lib): Likewise.
9820 (support_cpu_devices): Likewise.
9821 (init_enviroment_variables): Load newly introduced ENV
9823 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
9824 (hsa_fatal): Likewise.
9825 (DLSYM_FN): New macro.
9826 (init_hsa_runtime_functions): New function.
9827 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
9828 structure. Depending on environment, also allow CPU devices.
9829 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
9830 (get_kernarg_memory_region): Likewise.
9831 (GOMP_OFFLOAD_init_device): Likewise.
9832 (destroy_hsa_program): Likewise.
9833 (init_basic_kernel_info): New function.
9834 (GOMP_OFFLOAD_load_image): Use it.
9835 (create_and_finalize_hsa_program): Call hsa run-time functions via
9837 (create_single_kernel_dispatch): Likewise.
9838 (release_kernel_dispatch): Likewise.
9839 (init_single_kernel): Likewise.
9840 (parse_target_attributes): Allow up multiple HSA grid dimensions.
9841 (get_group_size): New function.
9842 (run_kernel): Likewise.
9843 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
9844 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
9846 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
9847 * testsuite/libgomp-test-support.exp.in: Likewise.
9848 * Makefile.in: Regenerated.
9849 * aclocal.m4: Likewise.
9850 * config.h.in: Likewise.
9851 * configure: Likewise.
9852 * testsuite/Makefile.in: Likewise.
9854 2016-11-15 Martin Jambor <mjambor@suse.cz>
9855 Alexander Monakov <amonakov@ispras.ru>
9857 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
9858 mapping clauses to target constructs.
9859 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
9861 2016-11-15 Matthias Klose <doko@ubuntu.com>
9863 * configure: Regenerate.
9865 2016-11-10 Jakub Jelinek <jakub@redhat.com>
9867 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
9868 * omp_lib.h.in (openmp_version): Likewise.
9869 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
9871 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9873 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
9874 (fib_wrapper): Add map(from: x) clause.
9875 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
9877 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
9878 (accum): Add map(tmp) clause.
9879 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
9880 (accum): Add map(tofrom: tmp) clause.
9881 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
9882 (gramSchmidt): Likewise.
9883 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
9884 map(tofrom: sum) clause.
9885 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
9886 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
9887 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
9888 only allowed on the loop iterator.
9889 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
9890 * testsuite/libgomp.fortran/taskloop2.f90: New test.
9891 * testsuite/libgomp.fortran/taskloop4.f90: New test.
9892 * testsuite/libgomp.fortran/doacross1.f90: New test.
9893 * testsuite/libgomp.fortran/doacross3.f90: New test.
9894 * testsuite/libgomp.fortran/taskloop1.f90: New test.
9895 * testsuite/libgomp.fortran/taskloop3.f90: New test.
9896 * testsuite/libgomp.fortran/doacross2.f90: New test.
9897 * testsuite/libgomp.c/doacross-1.c (main): Add missing
9898 #pragma omp atomic read.
9899 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
9900 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
9902 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
9903 Nathan Sidwell <nathan@acm.org>
9905 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
9906 to determine default geometry.
9907 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
9910 2016-11-01 Jakub Jelinek <jakub@redhat.com>
9912 * hashtab.h: Use standard GPLv3 with runtime exception
9915 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
9917 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
9918 size when allocating new thread.
9920 2016-09-14 Marek Polacek <polacek@redhat.com>
9922 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
9924 2016-08-19 Jakub Jelinek <jakub@redhat.com>
9927 * testsuite/libgomp.fortran/pr71014.f90: New test.
9929 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
9932 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
9933 firstprivate clauses.
9934 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
9936 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
9937 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
9938 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
9939 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9940 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9941 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
9942 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9943 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9944 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9945 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9946 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9947 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
9949 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
9952 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
9954 2016-08-08 Jakub Jelinek <jakub@redhat.com>
9957 * testsuite/libgomp.c++/pr58706.C: New test.
9959 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
9961 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
9962 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
9963 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9965 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
9966 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
9968 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
9970 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
9971 test, and don't hardcode -O0.
9973 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
9975 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
9977 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
9979 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
9982 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
9985 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
9986 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
9988 2016-07-01 Jakub Jelinek <jakub@redhat.com>
9991 * testsuite/libgomp.fortran/associate3.f90: New test.
9993 2016-06-17 Jakub Jelinek <jakub@redhat.com>
9995 * testsuite/libgomp.c++/target-21.C: New test.
9997 2016-06-16 Jakub Jelinek <jakub@redhat.com>
9999 * testsuite/libgomp.c++/target-20.C: New test.
10001 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10002 Cesar Philippidis <cesar@codesourcery.com>
10004 PR middle-end/71373
10005 * libgomp.oacc-c/nested-function-1.c: New file.
10006 * libgomp.oacc-c/nested-function-2.c: Likewise.
10007 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
10008 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
10009 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
10011 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10014 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
10015 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
10016 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
10018 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
10020 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
10021 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
10023 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
10026 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
10028 2016-05-26 Jakub Jelinek <jakub@redhat.com>
10030 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
10031 instead of invalid schedule(static, 0).
10032 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
10034 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10036 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
10037 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
10038 parameter, use to set async stream around call to gomp_unmap_vars,
10039 call gomp_unmap_vars() with 'do_copyfrom' set to true.
10040 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
10041 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
10042 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
10043 (event_add): Add int parameter, initialize 'val' field when
10044 adding new ptx_event struct.
10045 (nvptx_evec): Adjust event_add() call arguments.
10046 (nvptx_host2dev): Likewise.
10047 (nvptx_dev2host): Likewise.
10048 (nvptx_wait_async): Likewise.
10049 (nvptx_wait_all_async): Likewise.
10050 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
10051 pass to event_add() call.
10052 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
10054 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
10055 call openacc.register_async_cleanup_func() hook.
10056 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
10057 * target.c (gomp_copy_from_async): Delete function.
10058 (gomp_map_vars): Remove async_refcount.
10059 (gomp_unmap_vars): Likewise.
10060 (gomp_load_image_to_device): Likewise.
10061 (omp_target_associate_ptr): Likewise.
10062 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
10063 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
10064 (gomp_copy_from_async): Remove.
10066 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10068 * target.c (gomp_device_copy): New function.
10069 (gomp_copy_host2dev): Likewise.
10070 (gomp_copy_dev2host): Likewise.
10071 (gomp_free_device_memory): Likewise.
10072 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
10073 (gomp_map_pointer): Likewise.
10074 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
10075 NULL value from alloc_func plugin hook.
10076 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
10077 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
10078 (gomp_unmap_vars): Likewise.
10079 (gomp_update): Adjust to call gomp_copy_dev2host and
10080 gomp_copy_host2dev functions.
10081 (gomp_unload_image_from_device): Handle false value from
10082 unload_image_func plugin hook.
10083 (gomp_init_device): Handle false value from init_device_func
10085 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
10086 (omp_target_free): Adjust to call gomp_free_device_memory.
10087 (omp_target_memcpy): Handle return values from host2dev_func,
10088 dev2host_func, and dev2dev_func plugin hooks.
10089 (omp_target_memcpy_rect_worker): Likewise.
10090 (gomp_target_fini): Handle false value from fini_device_func
10092 * libgomp.h (struct gomp_device_descr): Adjust return type of
10093 init_device_func, fini_device_func, unload_image_func, free_func,
10094 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
10095 * oacc-init.c (acc_shutdown_1): Handle false value from
10096 fini_device_func plugin hook.
10097 * oacc-host.c (host_init_device): Change return type to bool.
10098 (host_fini_device): Likewise.
10099 (host_unload_image): Likewise.
10100 (host_free): Likewise.
10101 (host_dev2host): Likewise.
10102 (host_host2dev): Likewise.
10103 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
10104 (acc_memcpy_to_device): Likewise.
10105 (acc_memcpy_from_device): Likewise.
10106 (delete_copyout): Add libfnname parameter, handle free_func
10107 hook fatal error case.
10108 (acc_delete): Adjust delete_copyout call.
10109 (acc_copyout): Likewise.
10110 (update_dev_host): Move gomp_mutex_unlock to after
10111 host2dev/dev2host hook calls.
10113 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
10114 to 'hsa_error_msg', for clarity.
10115 (hsa_fatal): Likewise.
10116 (hsa_error): New function.
10117 (init_hsa_context): Change return type to bool, adjust to return
10119 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
10121 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
10122 return false on error.
10123 (get_agent_info): Adjust to return NULL on error.
10124 (destroy_hsa_program): Change return type to bool, adjust to
10125 return false on error.
10126 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
10127 (destroy_module): Change return type to bool, adjust to
10128 return false on error.
10129 (GOMP_OFFLOAD_unload_image): Likewise.
10130 (GOMP_OFFLOAD_fini_device): Likewise.
10131 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
10132 (GOMP_OFFLOAD_free): Change to return false when called.
10133 (GOMP_OFFLOAD_dev2host): Likewise.
10134 (GOMP_OFFLOAD_host2dev): Likewise.
10135 (GOMP_OFFLOAD_dev2dev): Likewise.
10137 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
10138 (CUDA_CALL): Likewise.
10139 (CUDA_CALL_ASSERT): Likewise.
10140 (map_init): Change return type to bool, use CUDA_CALL* macros.
10141 (map_fini): Likewise.
10142 (init_streams_for_device): Change return type to bool, adjust
10144 (fini_streams_for_device): Change return type to bool, adjust
10146 (select_stream_for_async): Release stream_lock before calls to
10147 GOMP_PLUGIN_fatal, adjust call to map_init.
10148 (nvptx_init): Use CUDA_CALL* macros.
10149 (nvptx_attach_host_thread_to_device): Change return type to bool,
10150 use CUDA_CALL* macros.
10151 (nvptx_open_device): Use CUDA_CALL* macros.
10152 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
10154 (nvptx_get_num_devices): Use CUDA_CALL* macros.
10155 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
10156 (nvptx_exec): Use CUDA_CALL* macros.
10157 (nvptx_alloc): Use CUDA_CALL* macros.
10158 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
10159 (nvptx_host2dev): Likewise.
10160 (nvptx_dev2host): Likewise.
10161 (nvptx_wait): Use CUDA_CALL* macros.
10162 (nvptx_wait_async): Likewise.
10163 (nvptx_wait_all): Likewise.
10164 (nvptx_wait_all_async): Likewise.
10165 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
10166 use CUDA_CALL* macros, adjust call to map_fini.
10167 (GOMP_OFFLOAD_init_device): Change return type to bool,
10168 adjust code accordingly.
10169 (GOMP_OFFLOAD_fini_device): Likewise.
10170 (GOMP_OFFLOAD_load_image): Adjust calls to
10171 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
10172 use CUDA_CALL* macros.
10173 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
10175 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
10176 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
10177 handle error return.
10178 (GOMP_OFFLOAD_dev2host): Likewise.
10179 (GOMP_OFFLOAD_host2dev): Likewise.
10180 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
10181 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
10183 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
10185 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
10186 (acc_free): Likewise.
10187 (acc_memcpy_to_device): Likewise.
10188 (acc_memcpy_from_device): Likewise.
10189 (acc_deviceptr): Likewise.
10190 (acc_hostptr): Likewise.
10191 (acc_is_present): Likewise.
10192 (acc_map_data): Likewise.
10193 (acc_unmap_data): Likewise.
10194 (present_create_copy): Likewise.
10195 (delete_copyout): Likewise.
10196 (update_dev_host): Likewise.
10197 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
10198 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
10199 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
10200 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10201 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
10202 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
10203 it only runs on nvptx targets.
10204 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10205 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
10206 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10207 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10208 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10209 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10210 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10211 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10212 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10213 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
10214 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10215 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10216 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10217 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10218 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10219 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10220 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10221 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10222 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10223 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10224 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10225 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10226 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10228 2016-05-23 Martin Jambor <mjambor@suse.cz>
10230 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
10232 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
10234 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
10235 to gomp_init_targets_once.
10236 (acc_set_device_type): Remove !cached_base_dev condition on call to
10237 gomp_init_targets_once, move call to before acc_device_lock acquire,
10239 (acc_get_device_num): Remove !cached_base_dev condition on call to
10240 gomp_init_targets_once.
10241 (acc_set_device_num): Likewise.
10243 2016-05-16 Martin Jambor <mjambor@suse.cz>
10245 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
10247 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
10249 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
10250 expected partitioning.
10252 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
10254 PR middle-end/70626
10255 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
10256 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
10257 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
10259 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
10261 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
10264 2016-04-19 Jakub Jelinek <jakub@redhat.com>
10266 PR middle-end/70680
10267 * testsuite/libgomp.c/pr70680-1.c: New test.
10268 * testsuite/libgomp.c/pr70680-2.c: New test.
10270 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10272 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
10273 pass parameter variables to subroutines.
10275 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10277 PR middle-end/70643
10278 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
10280 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
10283 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
10284 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10286 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
10288 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
10289 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
10290 GOACC_declare prototype.
10292 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
10293 Merge this file, and...
10294 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
10295 ... this file, and...
10296 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
10297 ... this file, and...
10298 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
10299 ... this file, and...
10300 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
10301 ... this file, and...
10302 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
10303 ... this file, and...
10304 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
10305 ... this file, and...
10306 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
10307 ... this file, and...
10308 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
10309 ... this file, and...
10310 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
10311 ... this file, and...
10312 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
10313 ... this file, and...
10314 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
10315 ... this file, and...
10316 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
10317 ... this file into...
10318 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
10321 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
10322 Make failure observable.
10324 2016-04-12 Jakub Jelinek <jakub@redhat.com>
10326 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
10328 * target.c (gomp_target_fallback_firstprivate,
10329 gomp_target_unshare_firstprivate): Removed.
10330 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
10331 before waiting for dependencies.
10332 (gomp_target_task_fn): Don't copy firstprivate vars here.
10333 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
10334 firstprivate_copies here.
10335 (gomp_create_target_task): Don't initialize firstprivate_copies field.
10336 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
10337 explicit/implicit firstprivate.
10339 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
10343 PR tree-optimization/70373
10344 PR middle-end/70533
10345 PR middle-end/70534
10346 PR middle-end/70535
10347 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
10349 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
10351 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
10353 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
10355 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
10357 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
10359 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
10361 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
10363 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
10365 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
10366 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
10367 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
10368 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
10370 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
10372 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
10374 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
10376 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
10378 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
10379 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10380 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
10381 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
10382 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
10383 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
10385 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10386 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
10387 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
10388 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
10389 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
10390 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
10391 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
10392 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
10393 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
10394 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10395 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10396 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10397 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10398 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10399 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
10401 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
10402 James Norris <jnorris@codesourcery.com>
10403 Nathan Sidwell <nathan@codesourcery.com>
10404 Julian Brown <julian@codesourcery.com>
10405 Cesar Philippidis <cesar@codesourcery.com>
10406 Chung-Lin Tang <cltang@codesourcery.com>
10407 Tom de Vries <tom@codesourcery.com>
10409 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
10410 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
10411 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
10412 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
10413 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10414 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10415 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10416 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10417 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
10419 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
10421 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
10423 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
10424 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
10425 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
10426 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
10428 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
10430 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10431 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
10432 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
10433 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
10434 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10435 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10436 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10437 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10438 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10439 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
10441 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
10442 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10443 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
10445 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
10447 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
10449 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
10451 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
10453 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
10454 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
10455 ... this new file. Update.
10456 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
10457 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
10458 ... this new file. Update.
10459 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
10460 file. Incorporate...
10461 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
10463 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
10465 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
10467 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
10469 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
10471 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
10472 set-torture-options.
10474 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
10476 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
10478 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10479 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
10480 -fno-builtin-acc_on_device instead of -O0.
10481 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
10483 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
10484 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
10486 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
10487 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
10488 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
10489 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10490 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10491 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10492 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
10493 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10494 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
10495 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
10496 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
10497 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
10498 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
10499 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
10500 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
10501 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
10502 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
10503 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
10505 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
10507 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
10510 2016-03-24 Martin Liska <mliska@suse.cz>
10512 * plugin/plugin-hsa.c (packet_store_release): New function
10513 that is taken from the HSA runtime manual.
10514 (GOMP_OFFLOAD_run): Use the function.
10516 2016-03-23 Jakub Jelinek <jakub@redhat.com>
10519 * testsuite/libgomp.c++/pr70376.C: New test.
10521 2016-03-23 Tom de Vries <tom@codesourcery.com>
10523 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
10524 initialization of lresult and lvresult.
10525 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
10527 2016-03-23 James Norris <jnorris@codesourcery.com>
10528 Daichi Fukuoka <dc-fukuoka@sgi.com>
10531 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
10532 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
10533 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
10534 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
10536 2016-03-23 Martin Liska <mliska@suse.cz>
10539 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
10540 argument just in case a dispatched kernel uses that argument.
10542 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
10544 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
10545 -ftree-parallelize-loops/-fopenacc changes.
10546 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
10548 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10550 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
10552 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
10554 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10555 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10557 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
10559 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
10560 always_ld_library_path the path to libgcc_s.
10562 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
10565 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
10567 2016-03-09 Tom de Vries <tom@codesourcery.com>
10569 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
10570 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
10571 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10573 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
10574 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
10575 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
10576 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
10578 2016-03-07 Martin Jambor <mjambor@suse.cz>
10580 * testsuite/lib/libgomp.exp
10581 (check_effective_target_hsa_offloading_selected_nocache): New.
10582 (check_effective_target_hsa_offloading_selected): Likewise.
10583 * testsuite/libgomp.hsa.c/c.exp: Likewise.
10584 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
10585 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
10586 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
10587 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
10588 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
10589 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
10590 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
10591 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
10592 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
10593 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
10594 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
10595 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
10596 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
10597 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
10598 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
10599 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
10601 2016-03-07 Martin Jambor <mjambor@suse.cz>
10603 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
10604 non-shared memory accelerators.
10605 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
10606 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
10607 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
10608 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
10609 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10610 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10611 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10612 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10613 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10615 2016-03-07 Martin Jambor <mjambor@suse.cz>
10617 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
10620 2016-03-02 Jakub Jelinek <jakub@redhat.com>
10623 * testsuite/libgomp.c++/pr69555-1.C: New test.
10624 * testsuite/libgomp.c++/pr69555-2.C: New test.
10626 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
10627 Martin Jambor <mjambor@suse.cz>
10629 * testsuite/lib/libgomp.exp
10630 (check_effective_target_offload_device_shared_as): New proc.
10631 * testsuite/libgomp.c++/declare_target-1.C: New test.
10633 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
10636 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
10638 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
10640 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
10641 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
10643 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
10644 -ftree-parallelize-loops/-fopenacc changes.
10645 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
10646 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
10648 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
10650 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
10652 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
10654 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
10656 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
10658 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
10660 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
10661 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
10663 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
10664 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
10666 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
10667 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
10670 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
10672 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
10674 2016-02-19 Jakub Jelinek <jakub@redhat.com>
10677 * testsuite/libgomp.c/pr69805.c: New test.
10679 2016-02-16 Tom de Vries <tom@codesourcery.com>
10682 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
10684 2016-02-09 Tom de Vries <tom@codesourcery.com>
10686 PR tree-optimization/69599
10687 * testsuite/libgomp.c/omp-nested-3.c: New test.
10688 * testsuite/libgomp.c/pr46032-2.c: New test.
10689 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
10690 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
10692 2016-02-09 Tom de Vries <tom@codesourcery.com>
10695 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
10697 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10699 * testsuite/libgomp.c/target-31.c: Fix testcase.
10701 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10703 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
10705 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
10706 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
10707 reduction and map clauses.
10708 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10710 2016-02-02 James Norris <jnorris@codesourcery.com>
10712 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
10714 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
10716 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
10717 * oacc-parallel.c (GOACC_host_data): Remove function definition.
10719 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
10722 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
10724 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
10725 (hsa_kmt_lib): Set variables.
10726 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
10727 always_ld_library_path.
10728 * Makefile.in: Regenerate.
10729 * configure: Likewise.
10730 * testsuite/Makefile.in: Likewise.
10732 * plugin/configfrag.ac (offload_additional_options)
10733 (offload_additional_lib_paths): Don't amend for hsa offloading.
10734 * configure: Regenerate.
10736 * plugin/configfrag.ac: Don't configure for offloading target if
10737 we don't build the corresponding plugin.
10738 * configure: Regenerate.
10740 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
10742 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
10743 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
10745 2016-01-26 Tom de Vries <tom@codesourcery.com>
10747 PR tree-optimization/69110
10748 * testsuite/libgomp.c/pr69110.c: New test.
10750 2016-01-25 Richard Biener <rguenther@suse.de>
10753 * testsuite/libgomp.c++/pr69393.C: New testcase.
10755 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
10757 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
10758 function wasn't mapped to the device with non-shared memory.
10760 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
10762 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
10764 2016-01-19 Martin Jambor <mjambor@suse.cz>
10765 Martin Liska <mliska@suse.cz>
10767 * plugin/Makefrag.am: Add HSA plugin requirements.
10768 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
10769 (HSA_RUNTIME_LIB): Likewise.
10770 (HSA_RUNTIME_CPPFLAGS): Likewise.
10771 (HSA_RUNTIME_INCLUDE): New substitution.
10772 (HSA_RUNTIME_LIB): Likewise.
10773 (HSA_RUNTIME_LDFLAGS): Likewise.
10774 (hsa-runtime): New configure option.
10775 (hsa-runtime-include): Likewise.
10776 (hsa-runtime-lib): Likewise.
10777 (PLUGIN_HSA): New substitution variable.
10778 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
10780 (PLUGIN_HSA_CPPFLAGS): Likewise.
10781 (PLUGIN_HSA_LDFLAGS): Likewise.
10782 (PLUGIN_HSA_LIBS): Likewise.
10783 Check that we have access to HSA run-time.
10784 * libgomp-plugin.h (offload_target_type): New element
10785 OFFLOAD_TARGET_TYPE_HSA.
10786 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
10788 (bool gomp_create_target_task): Updated.
10789 (gomp_device_descr): Extra parameter of run_func and async_run_func,
10790 new field can_run_func.
10791 * libgomp_g.h (GOMP_target_ext): Update prototype.
10792 * oacc-host.c (host_run): Added a new parameter args.
10793 * target.c (calculate_firstprivate_requirements): New function.
10794 (copy_firstprivate_data): Likewise.
10795 (gomp_target_fallback_firstprivate): Use them.
10796 (gomp_target_unshare_firstprivate): New function.
10797 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
10799 (GOMP_target): Do host fallback for all shared memory devices. Do not
10800 pass any args to plugins.
10801 (GOMP_target_ext): Introduce device-specific argument parameter args.
10802 Allow host fallback if device shares memory. Do not remap data if
10803 device has shared memory.
10804 (gomp_target_task_fn): Likewise. Also treat shared memory devices
10805 like host fallback for mappings.
10806 (GOMP_target_data): Treat shared memory devices like host fallback.
10807 (GOMP_target_data_ext): Likewise.
10808 (GOMP_target_update): Likewise.
10809 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
10810 gomp_create_target_task.
10811 (GOMP_target_enter_exit_data): Likewise.
10812 (omp_target_alloc): Treat shared memory devices like host fallback.
10813 (omp_target_free): Likewise.
10814 (omp_target_is_present): Likewise.
10815 (omp_target_memcpy): Likewise.
10816 (omp_target_memcpy_rect): Likewise.
10817 (omp_target_associate_ptr): Likewise.
10818 (gomp_load_plugin_for_device): Also load can_run.
10819 * task.c (GOMP_PLUGIN_target_task_completion): Free
10820 firstprivate_copies.
10821 (gomp_create_target_task): Accept new argument args and store it to
10823 * plugin/plugin-hsa.c: New file.
10825 2016-01-18 Tom de Vries <tom@codesourcery.com>
10827 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
10828 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
10829 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
10830 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
10831 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
10832 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
10833 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
10834 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
10835 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
10836 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
10837 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10839 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10841 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
10842 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
10843 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
10844 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
10845 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
10846 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
10847 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
10848 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10850 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
10852 2016-01-15 Jakub Jelinek <jakub@redhat.com>
10854 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
10856 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
10858 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
10860 2016-01-12 James Norris <jnorris@codesourcery.com>
10862 * libgomp.texi: Updates for OpenACC.
10864 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
10866 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
10868 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
10871 * testsuite/libgomp.fortran/pr66680.f90: New test.
10873 2016-01-07 Jakub Jelinek <jakub@redhat.com>
10875 PR middle-end/68960
10876 * testsuite/libgomp.c/pr68960.c: New test.
10878 2016-01-06 Nathan Sidwell <nathan@acm.org>
10880 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
10881 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
10883 2016-01-04 Jakub Jelinek <jakub@redhat.com>
10885 Update copyright years.
10887 * libgomp.texi: Bump @copying's copyright year.
10889 2015-12-31 Nathan Sidwell <nathan@acm.org>
10891 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
10892 dg-additional-options syntax.
10893 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
10894 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
10895 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
10896 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10897 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
10898 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
10899 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
10900 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
10901 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
10902 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
10903 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10904 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
10905 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
10906 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
10907 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
10908 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
10909 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10910 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10912 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
10914 * libgomp.h (REFCOUNT_LINK): Define.
10915 (struct splay_tree_key_s): Add link_key.
10916 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
10917 Replace target address of the pointer with target address of newly
10918 mapped object in the splay tree. Set link pointer on target to the
10919 device address of the mapped object.
10920 (gomp_unmap_vars): Restore target address of the pointer in the splay
10921 tree for REFCOUNT_LINK objects after unmapping.
10922 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
10923 declare target link" objects.
10924 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
10925 "omp declare target link" objects, which were mapped for the image.
10926 (gomp_exit_data): Restore target address of the pointer in the splay
10927 tree for REFCOUNT_LINK objects after unmapping.
10928 * testsuite/libgomp.c/target-link-1.c: New file.
10930 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
10932 * libgomp.h (gomp_device_state): New enum.
10933 (struct gomp_device_descr): Replace is_initialized with state.
10934 (gomp_fini_device): Remove declaration.
10935 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
10936 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
10937 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
10938 (acc_set_device_type): Use state instead of is_initialized.
10939 (acc_set_device_num): Likewise.
10940 * target.c (resolve_device): Use state instead of is_initialized.
10941 Do not initialize finalized device.
10942 (gomp_map_vars): Do nothing if device is finalized.
10943 (gomp_unmap_vars): Likewise.
10944 (gomp_update): Likewise.
10945 (GOMP_offload_register_ver): Use state instead of is_initialized.
10946 (GOMP_offload_unregister_ver): Likewise.
10947 (gomp_init_device): Likewise.
10948 (gomp_unload_device): Likewise.
10949 (gomp_fini_device): Remove.
10950 (gomp_get_target_fn_addr): Do nothing if device is finalized.
10951 (GOMP_target): Go to host fallback if device is finalized.
10952 (GOMP_target_ext): Likewise.
10953 (gomp_exit_data): Do nothing if device is finalized.
10954 (gomp_target_task_fn): Go to host fallback if device is finalized.
10955 (gomp_target_fini): New static function.
10956 (gomp_target_init): Use state instead of is_initialized.
10957 Call gomp_target_fini at exit.
10959 2015-12-09 Tom de Vries <tom@codesourcery.com>
10961 PR tree-optimization/68716
10962 * testsuite/libgomp.c/omp-nested-2.c: New test.
10964 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
10966 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
10967 target openacc_nvidia_accel_selected.
10968 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
10969 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
10970 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
10971 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
10973 2015-12-01 Julian Brown <julian@codesourcery.com>
10974 James Norris <James_Norris@mentor.com>
10976 * oacc-parallel.c (GOACC_host_data): New function.
10977 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
10978 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
10979 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
10980 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
10981 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
10982 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
10983 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
10985 2015-11-30 James Norris <jnorris@codesourcery.com>
10986 Cesar Philippidis <cesar@codesourcery.com>
10989 * libgomp.oacc-fortran/routine-5.f90: New test.
10990 * libgomp.oacc-fortran/routine-7.f90: New test.
10991 * libgomp.oacc-fortran/routine-9.f90: New test.
10993 2015-11-30 Tom de Vries <tom@codesourcery.com>
10995 PR tree-optimization/46032
10996 * testsuite/libgomp.c/pr46032.c: New test.
10998 2015-11-27 Jakub Jelinek <jakub@redhat.com>
11001 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
11002 (gomp_create_target_task): Call it before freeing
11003 GOMP_TARGET_TASK_DATA tasks.
11006 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
11007 in between case label and OpenMP standalone directives.
11008 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
11010 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
11012 * configure: Regenerate.
11014 2015-11-26 Jakub Jelinek <jakub@redhat.com>
11016 * testsuite/libgomp.c/target-35.c: New test.
11018 2015-11-22 James Norris <jnorris@codesourcery.com>
11019 Cesar Philippidis <cesar@codesourcery.com>
11021 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
11022 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11023 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11024 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11025 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11027 2015-11-20 Jakub Jelinek <jakub@redhat.com>
11029 PR middle-end/68221
11030 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
11031 * testsuite/libgomp.c/reduction-12.c: Likewise.
11032 * testsuite/libgomp.c++/reduction-11.C: Likewise.
11033 * testsuite/libgomp.c++/reduction-12.C: Likewise.
11035 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
11037 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
11038 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
11039 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
11040 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
11041 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
11043 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11044 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11046 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
11048 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
11049 worker & gang cases.
11050 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11052 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
11054 * config/nvptx/priority_queue.c: New file.
11056 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11058 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
11061 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11062 Aldy Hernandez <aldyh@redhat.com>
11063 Ilya Verbin <ilya.verbin@intel.com>
11065 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
11066 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
11067 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
11068 iterators or IV by chunk size.
11069 * parallel.c (gomp_resolve_num_threads): Don't assume that
11070 if thr->ts.team is non-NULL, then pool must be non-NULL.
11071 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
11072 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
11073 GOMP_PLUGIN_target_task_completion.
11074 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
11075 * Makefile.in: Regenerate.
11076 * libgomp.h: Shuffle prototypes and forward definitions around so
11077 priority queues can be defined.
11078 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
11079 (enum gomp_target_task_state): New enum.
11080 (struct gomp_target_task): Add state, tgt, task and team fields.
11081 (gomp_create_target_task): Change return type to bool, add
11083 (gomp_target_task_fn): Change return type to bool.
11084 (struct gomp_device_descr): Add async_run_func.
11085 (struct gomp_task): Remove children, next_child, prev_child,
11086 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
11088 (struct gomp_taskgroup): Remove children.
11089 Add taskgroup_queue.
11090 (struct gomp_team): Change task_queue type to a priority queue.
11091 (splay_compare): Define inline.
11092 (priority_queue_offset): New.
11093 (priority_node_to_task): New.
11094 (task_to_priority_node): New.
11095 * oacc-mem.c: Do not include splay-tree.h.
11096 * priority_queue.c: New file.
11097 * priority_queue.h: New file.
11098 * splay-tree.c: Do not include splay-tree.h.
11099 (splay_tree_foreach_internal): New.
11100 (splay_tree_foreach): New.
11101 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
11102 (splay_tree_callback): Define typedef.
11103 * target.c (splay_compare): Move to libgomp.h.
11104 (GOMP_target): Don't adjust *thr in any way around running offloaded
11106 (GOMP_target_ext): Likewise. Handle target nowait.
11107 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
11108 return value from gomp_create_target_task, if false, fallthrough
11109 as if no dependencies exist.
11110 (gomp_target_task_fn): Change return type to bool, return true
11111 if the task should have another part scheduled later. Handle
11113 (gomp_load_plugin_for_device): Initialize async_run.
11114 * task.c (gomp_init_task): Initialize children_queue.
11115 (gomp_clear_parent_in_list): New.
11116 (gomp_clear_parent_in_tree): New.
11117 (gomp_clear_parent): Handle priorities.
11118 (GOMP_task): Likewise.
11119 (priority_queue_move_task_first,
11120 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
11122 (gomp_create_target_task): Use priority queues. Change return type
11123 to bool, add state argument, return false if for async
11124 {{enter,exit} data,update} constructs no dependencies need to be
11125 waited for, handle target nowait. Set task->fn to NULL instead of
11126 gomp_target_task_fn.
11127 (verify_children_queue): Remove.
11128 (priority_list_upgrade_task): New.
11129 (priority_queue_upgrade_task): New.
11130 (verify_task_queue): Remove.
11131 (priority_list_downgrade_task): New.
11132 (priority_queue_downgrade_task): New.
11133 (gomp_task_run_pre): Use priority queues.
11134 Abstract code out to priority_queue_downgrade_task.
11135 (gomp_task_run_post_handle_dependers): Use priority queues.
11136 (gomp_task_run_post_remove_parent): Likewise.
11137 (gomp_task_run_post_remove_taskgroup): Likewise.
11138 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
11140 (GOMP_taskwait): Likewise.
11141 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
11142 priority-queue_upgrade_task.
11143 (GOMP_taskgroup_start): Use priority queues.
11144 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
11145 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
11147 * taskloop.c (GOMP_taskloop): Handle priorities.
11148 * team.c (gomp_new_team): Call priority_queue_init.
11149 (free_team): Call priority_queue_free.
11150 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
11151 team created for target nowait in implicit parallel region.
11152 (gomp_team_start): For nested check, test thr->ts.level instead of
11153 thr->ts.team != NULL.
11154 * testsuite/libgomp.c/doacross-3.c: New test.
11155 * testsuite/libgomp.c/ordered-5.c: New test.
11156 * testsuite/libgomp.c/priority.c: New test.
11157 * testsuite/libgomp.c/target-31.c: New test.
11158 * testsuite/libgomp.c/target-32.c: New test.
11159 * testsuite/libgomp.c/target-33.c: New test.
11160 * testsuite/libgomp.c/target-34.c: New test.
11162 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11164 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
11166 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
11167 loop is sequential.
11169 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11171 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
11172 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
11174 2015-11-12 James Norris <jnorris@codesourcery.com>
11175 Joseph Myers <joseph@codesourcery.com>
11177 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
11178 * oacc-parallel.c (GOACC_declare): New function.
11179 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
11180 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
11181 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
11182 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
11183 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
11185 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
11187 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
11189 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
11191 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
11192 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
11194 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11196 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
11197 inadvertent commit.
11199 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11201 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
11202 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
11203 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
11204 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
11205 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
11207 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
11209 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
11210 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11212 2015-11-05 Jakub Jelinek <jakub@redhat.com>
11213 Ilya Verbin <ilya.verbin@intel.com>
11215 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
11216 GOMP_loop_nonmonotonic_dynamic_start,
11217 GOMP_loop_nonmonotonic_guided_next,
11218 GOMP_loop_nonmonotonic_guided_start,
11219 GOMP_loop_ull_nonmonotonic_dynamic_next,
11220 GOMP_loop_ull_nonmonotonic_dynamic_start,
11221 GOMP_loop_ull_nonmonotonic_guided_next,
11222 GOMP_loop_ull_nonmonotonic_guided_start,
11223 GOMP_parallel_loop_nonmonotonic_dynamic,
11224 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
11225 (GOMP_target_41): Renamed to ...
11226 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11228 (GOMP_target_data_41): Renamed to ...
11229 (GOMP_target_data_ext): ... this.
11230 (GOMP_target_update_41): Renamed to ...
11231 (GOMP_target_update_ext): ... this.
11232 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
11233 GOMP_target_data_ext and GOMP_target_update_ext instead of
11234 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
11235 Export GOMP_loop_nonmonotonic_dynamic_next,
11236 GOMP_loop_nonmonotonic_dynamic_start,
11237 GOMP_loop_nonmonotonic_guided_next,
11238 GOMP_loop_nonmonotonic_guided_start,
11239 GOMP_loop_ull_nonmonotonic_dynamic_next,
11240 GOMP_loop_ull_nonmonotonic_dynamic_start,
11241 GOMP_loop_ull_nonmonotonic_guided_next,
11242 GOMP_loop_ull_nonmonotonic_guided_start,
11243 GOMP_parallel_loop_nonmonotonic_dynamic and
11244 GOMP_parallel_loop_nonmonotonic_guided.
11245 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
11246 GOMP_parallel_loop_nonmonotonic_guided,
11247 GOMP_loop_nonmonotonic_dynamic_start,
11248 GOMP_loop_nonmonotonic_guided_start,
11249 GOMP_loop_nonmonotonic_dynamic_next,
11250 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
11251 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
11252 GOMP_loop_ull_nonmonotonic_guided_start,
11253 GOMP_loop_ull_nonmonotonic_dynamic_next,
11254 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
11255 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
11257 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
11258 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
11259 Use gomp_map_val function.
11260 (gomp_target_fallback_firstprivate): New static function.
11261 (GOMP_target_41): Renamed to ...
11262 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11263 arguments. Move firstprivate fallback handling into a new
11265 (GOMP_target_data_41): Renamed to ...
11266 (GOMP_target_data_ext): ... this.
11267 (GOMP_target_update_41): Renamed to ...
11268 (GOMP_target_update_ext): ... this.
11269 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
11270 gomp_map_0len_lookup instead of gomp_map_lookup.
11271 (omp_target_is_present): Use gomp_map_0len_lookup instead of
11273 * testsuite/libgomp.c/target-28.c: Likewise.
11274 * testsuite/libgomp.c/monotonic-1.c: New test.
11275 * testsuite/libgomp.c/monotonic-2.c: New test.
11276 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
11277 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
11278 * testsuite/libgomp.c/pr66199-5.c: New test.
11279 * testsuite/libgomp.c/pr66199-6.c: New test.
11280 * testsuite/libgomp.c/pr66199-7.c: New test.
11281 * testsuite/libgomp.c/pr66199-8.c: New test.
11282 * testsuite/libgomp.c/pr66199-9.c: New test.
11283 * testsuite/libgomp.c/reduction-11.c: New test.
11284 * testsuite/libgomp.c/reduction-12.c: New test.
11285 * testsuite/libgomp.c/reduction-13.c: New test.
11286 * testsuite/libgomp.c/reduction-14.c: New test.
11287 * testsuite/libgomp.c/reduction-15.c: New test.
11288 * testsuite/libgomp.c/target-12.c (main): Adjust for
11289 omp_target_is_present change for one-past-last element.
11290 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
11291 the same var is both mapped and privatized.
11292 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
11293 handling of zero-length array sections.
11294 * testsuite/libgomp.c/target-28.c: New test.
11295 * testsuite/libgomp.c/target-29.c: New test.
11296 * testsuite/libgomp.c/target-30.c: New test.
11297 * testsuite/libgomp.c/target-teams-1.c: New test.
11298 * testsuite/libgomp.c++/member-6.C: New test.
11299 * testsuite/libgomp.c++/member-7.C: New test.
11300 * testsuite/libgomp.c++/monotonic-1.C: New test.
11301 * testsuite/libgomp.c++/monotonic-2.C: New test.
11302 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
11303 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
11304 * testsuite/libgomp.c++/pr66199-3.C: New test.
11305 * testsuite/libgomp.c++/pr66199-4.C: New test.
11306 * testsuite/libgomp.c++/pr66199-5.C: New test.
11307 * testsuite/libgomp.c++/pr66199-6.C: New test.
11308 * testsuite/libgomp.c++/pr66199-7.C: New test.
11309 * testsuite/libgomp.c++/pr66199-8.C: New test.
11310 * testsuite/libgomp.c++/pr66199-9.C: New test.
11311 * testsuite/libgomp.c++/reduction-11.C: New test.
11312 * testsuite/libgomp.c++/reduction-12.C: New test.
11313 * testsuite/libgomp.c++/target-13.C: New test.
11314 * testsuite/libgomp.c++/target-14.C: New test.
11315 * testsuite/libgomp.c++/target-15.C: New test.
11316 * testsuite/libgomp.c++/target-16.C: New test.
11317 * testsuite/libgomp.c++/target-17.C: New test.
11318 * testsuite/libgomp.c++/target-18.C: New test.
11319 * testsuite/libgomp.c++/target-19.C: New test.
11321 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
11323 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
11324 and reduction copy.
11325 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11326 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11327 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11328 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11329 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
11330 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11331 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11332 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11333 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11334 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
11335 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11336 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11337 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11338 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
11340 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
11342 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
11343 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
11344 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
11345 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
11346 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
11347 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
11348 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
11349 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
11351 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
11353 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
11354 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
11355 (GOMP_OFFLOAD_openacc_parallel): Likewise.
11356 * oacc-host.c (host_openacc_exec): Likewise.
11357 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
11359 2015-11-03 Julian Brown <julian@codesourcery.com>
11360 Thomas Schwinge <thomas@codesourcery.com>
11362 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
11363 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11364 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
11366 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
11367 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
11369 2015-11-03 James Norris <jnorris@codesourcery.com>
11371 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
11373 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
11375 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
11376 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
11377 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11378 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
11379 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11381 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
11383 * openacc.h (enum acc_device_t): Reformat. Ensure layout
11385 (enum acc_async_t): Reformat.
11386 (acc_on_device): Declare compatible with builtin and provide C++
11388 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
11390 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
11391 Cesar Philippidis <cesar@codesourcery.com>
11393 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
11394 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
11395 ... this. Add a description of the test at the top of the file.
11396 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
11397 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
11398 ... this. Add a description of the test at the top of the file.
11400 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
11402 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
11403 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
11404 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
11405 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
11406 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
11407 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
11409 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
11411 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
11414 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
11417 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
11419 2015-10-27 James Norris <jnorris@codesourcery.com>
11421 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
11422 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
11424 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
11426 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
11427 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11429 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
11430 acc_device_nvidia usage.
11431 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11432 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11433 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11435 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
11436 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
11439 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
11443 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
11444 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
11446 2015-10-23 Tom de Vries <tom@codesourcery.com>
11449 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
11451 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
11453 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
11455 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11457 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
11458 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
11460 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
11461 to 0 when mapnum is 0.
11463 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
11465 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
11466 Cast to int from int32_t.
11468 2015-10-13 Jakub Jelinek <jakub@redhat.com>
11469 Aldy Hernandez <aldyh@redhat.com>
11470 Ilya Verbin <ilya.verbin@intel.com>
11472 * config/linux/affinity.c (omp_get_place_num_procs,
11473 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11474 * config/linux/doacross.h: New file.
11475 * config/posix/affinity.c (omp_get_place_num_procs,
11476 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11477 * config/posix/doacross.h: New file.
11478 * env.c: Include gomp-constants.h.
11479 (struct gomp_task_icv): Rename run_sched_modifier to
11480 run_sched_chunk_size.
11481 (gomp_max_task_priority_var): New variable.
11482 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
11483 (handle_omp_display_env): Change _OPENMP value from 201307 to
11484 201511. Print OMP_MAX_TASK_PRIORITY.
11485 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
11486 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
11487 chunk_size and run_sched_modifier to run_sched_chunk_size.
11488 (omp_get_max_task_priority, omp_get_initial_device,
11489 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
11490 omp_get_partition_place_nums): New functions.
11491 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
11492 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
11494 (omp_get_num_places_, omp_get_place_num_procs_,
11495 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
11496 omp_get_place_proc_ids_8_, omp_get_place_num_,
11497 omp_get_partition_num_places_, omp_get_partition_place_nums_,
11498 omp_get_partition_place_nums_8_, omp_get_initial_device_,
11499 omp_get_max_task_priority_): New functions.
11500 * libgomp_g.h (GOMP_loop_doacross_static_start,
11501 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
11502 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
11503 GOMP_loop_ull_doacross_dynamic_start,
11504 GOMP_loop_ull_doacross_guided_start,
11505 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
11506 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
11507 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
11508 GOMP_target_data_41, GOMP_target_update_41,
11509 GOMP_target_enter_exit_data): New prototypes.
11510 (GOMP_task): Add prototype argument.
11511 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
11512 (struct gomp_doacross_work_share): New type.
11513 (struct gomp_work_share): Add doacross field.
11514 (struct gomp_task_icv): Rename run_sched_modifier to
11515 run_sched_chunk_size.
11516 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
11517 GOMP_TASK_UNDEFERRED. Add comments.
11518 (struct gomp_task_depend_entry): Add comments.
11519 (struct gomp_task): Likewise.
11520 (struct gomp_taskgroup): Likewise.
11521 (struct gomp_target_task): New type.
11522 (struct gomp_team): Add comment.
11523 (gomp_get_place_proc_ids_8, gomp_doacross_init,
11524 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
11525 gomp_create_target_task, gomp_target_task_fn): New prototypes.
11526 (struct target_var_desc): New type.
11527 (struct target_mem_desc): Adjust comment. Use struct
11528 target_var_desc instead of splay_tree_key for list.
11529 (REFCOUNT_INFINITY): Define.
11530 (struct splay_tree_key_s): Remove copy_from field.
11531 (struct gomp_device_descr): Add dev2dev_func field.
11532 (enum gomp_map_vars_kind): New enum.
11533 (gomp_map_vars): Add one argument.
11534 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
11535 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
11536 omp_get_place_num_procs, omp_get_place_num_procs_,
11537 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
11538 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
11539 omp_get_place_num_, omp_get_partition_num_places,
11540 omp_get_partition_num_places_, omp_get_partition_place_nums,
11541 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
11542 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
11543 omp_target_free, omp_target_is_present, omp_target_memcpy,
11544 omp_target_memcpy_rect, omp_target_associate_ptr and
11545 omp_target_disassociate_ptr.
11546 (GOMP_4.0.2): Renamed to ...
11547 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
11548 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
11549 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
11550 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11551 GOMP_loop_doacross_static_start, GOMP_doacross_post,
11552 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
11553 GOMP_loop_ull_doacross_guided_start,
11554 GOMP_loop_ull_doacross_runtime_start,
11555 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
11556 GOMP_doacross_ull_wait.
11557 * libgomp.texi: Document omp_get_max_task_priority.
11558 Rename modifier argument to chunk_size for omp_set_schedule and
11559 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
11560 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
11561 to run_sched_chunk_size renaming.
11562 (GOMP_loop_ordered_runtime_start): Likewise.
11563 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
11564 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11565 GOMP_parallel_loop_runtime_start): New functions.
11566 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
11567 to run_sched_chunk_size renaming.
11568 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
11569 GOMP_loop_doacross_guided_start): New functions or aliases.
11570 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
11571 run_sched_modifier to run_sched_chunk_size renaming.
11572 (GOMP_loop_ull_ordered_runtime_start): Likewise.
11573 (gomp_loop_ull_doacross_static_start,
11574 gomp_loop_ull_doacross_dynamic_start,
11575 gomp_loop_ull_doacross_guided_start,
11576 GOMP_loop_ull_doacross_runtime_start): New functions.
11577 (GOMP_loop_ull_doacross_static_start,
11578 GOMP_loop_ull_doacross_dynamic_start,
11579 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
11580 * oacc-mem.c (acc_map_data, present_create_copy,
11581 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
11583 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
11584 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
11585 instead of false to gomp_map_vars.
11586 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
11587 * omp.h.in (omp_lock_hint_t): New type.
11588 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11589 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11590 omp_get_place_num, omp_get_partition_num_places,
11591 omp_get_partition_place_nums, omp_get_initial_device,
11592 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
11593 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
11594 omp_target_associate_ptr, omp_target_disassociate_ptr): New
11596 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
11597 (omp_lock_hint_none, omp_lock_hint_uncontended,
11598 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11599 omp_lock_hint_speculative): New parameters.
11600 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11601 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11602 omp_get_place_num, omp_get_partition_num_places,
11603 omp_get_partition_place_nums, omp_get_initial_device,
11604 omp_get_max_task_priority): New interfaces.
11605 (omp_set_schedule, omp_get_schedule): Rename modifier argument
11607 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
11608 (omp_lock_hint_none, omp_lock_hint_uncontended,
11609 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11610 omp_lock_hint_speculative): New parameters.
11611 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11612 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11613 omp_get_place_num, omp_get_partition_num_places,
11614 omp_get_partition_place_nums, omp_get_initial_device,
11615 omp_get_max_task_priority): New functions and subroutines.
11616 * ordered.c: Include stdarg.h and string.h.
11617 (MAX_COLLAPSED_BITS): Define.
11618 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
11619 gomp_doacross_ull_init, GOMP_doacross_ull_post,
11620 GOMP_doacross_ull_wait): New functions.
11621 * target.c: Include errno.h.
11622 (resolve_device): If device is not initialized, call
11623 gomp_init_device on it.
11624 (gomp_map_lookup): New function.
11625 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
11626 Don't bump refcount if REFCOUNT_INFINITY. Handle
11627 GOMP_MAP_ALWAYS_TO_P.
11628 (get_kind): Rename is_openacc argument to short_mapkind.
11629 (gomp_map_pointer): Use gomp_map_lookup.
11630 (gomp_map_fields_existing): New function.
11631 (gomp_map_vars): Rename is_openacc argument to short_mapkind
11632 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
11633 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
11634 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
11635 Adjust for tgt->list changed type and copy_from living in there.
11636 (gomp_copy_from_async): Adjust for tgt->list changed type and
11637 copy_from living in there.
11638 (gomp_unmap_vars): Likewise.
11639 (gomp_update): Likewise. Rename is_openacc argument to
11640 short_mapkind. Don't fail if object is not mapped.
11641 (gomp_load_image_to_device): Initialize refcount to
11643 (gomp_target_fallback): New function.
11644 (gomp_get_target_fn_addr): Likewise.
11645 (GOMP_target): Adjust gomp_map_vars caller, use
11646 gomp_get_target_fn_addr and gomp_target_fallback.
11647 (GOMP_target_41): New function.
11648 (gomp_target_data_fallback): New function.
11649 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
11650 (GOMP_target_data_41): New function.
11651 (GOMP_target_update): Adjust gomp_update caller.
11652 (GOMP_target_update_41): New function.
11653 (gomp_exit_data, GOMP_target_enter_exit_data,
11654 gomp_target_task_fn, omp_target_alloc, omp_target_free,
11655 omp_target_is_present, omp_target_memcpy,
11656 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
11657 omp_target_associate_ptr, omp_target_disassociate_ptr,
11658 gomp_load_plugin_for_device): New functions.
11659 * task.c: Include gomp-constants.h. Include taskloop.c
11660 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
11661 (gomp_task_handle_depend): New function.
11662 (GOMP_task): Use it. Add priority argument. Use
11663 gomp-constant.h constants instead of hardcoded numbers.
11664 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
11665 (gomp_create_target_task): New function.
11666 (verify_children_queue, verify_taskgroup_queue,
11667 verify_task_queue): New functions.
11668 (gomp_task_run_pre): Call verify_*_queue functions.
11669 If an upcoming tied task is about to leave the sibling or
11670 taskgroup queues in an invalid state, adjust appropriately.
11671 Remove taskgroup argument. Add comments.
11672 (gomp_task_run_post_handle_dependers): Add comments.
11673 (gomp_task_run_post_remove_parent): Likewise.
11674 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
11675 (GOMP_taskwait): Likewise. Add comments.
11676 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
11677 problem such that the first non parent_depends_on task does not
11678 end up at the end of the children queue.
11679 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
11680 GOMP_TASK_UNDEFERRED.
11681 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
11682 * taskloop.c: New file.
11683 * testsuite/lib/libgomp.exp
11684 (check_effective_target_offload_device_nonshared_as): New proc.
11685 * testsuite/libgomp.c/affinity-2.c: New test.
11686 * testsuite/libgomp.c/doacross-1.c: New test.
11687 * testsuite/libgomp.c/doacross-2.c: New test.
11688 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
11689 Add map clause to target.
11690 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
11691 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
11692 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
11693 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
11694 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
11696 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
11697 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
11698 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
11699 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
11700 not defined. Use those where needed.
11701 * testsuite/libgomp.c/for-4.c: New test.
11702 * testsuite/libgomp.c/for-5.c: New test.
11703 * testsuite/libgomp.c/for-6.c: New test.
11704 * testsuite/libgomp.c/linear-1.c: New test.
11705 * testsuite/libgomp.c/ordered-4.c: New test.
11706 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
11707 only allowed on the loop iterator.
11708 * testsuite/libgomp.c/pr66199-3.c: New test.
11709 * testsuite/libgomp.c/pr66199-4.c: New test.
11710 * testsuite/libgomp.c/reduction-7.c: New test.
11711 * testsuite/libgomp.c/reduction-8.c: New test.
11712 * testsuite/libgomp.c/reduction-9.c: New test.
11713 * testsuite/libgomp.c/reduction-10.c: New test.
11714 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
11716 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
11717 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
11718 * testsuite/libgomp.c/target-11.c: New test.
11719 * testsuite/libgomp.c/target-12.c: New test.
11720 * testsuite/libgomp.c/target-13.c: New test.
11721 * testsuite/libgomp.c/target-14.c: New test.
11722 * testsuite/libgomp.c/target-15.c: New test.
11723 * testsuite/libgomp.c/target-16.c: New test.
11724 * testsuite/libgomp.c/target-17.c: New test.
11725 * testsuite/libgomp.c/target-18.c: New test.
11726 * testsuite/libgomp.c/target-19.c: New test.
11727 * testsuite/libgomp.c/target-20.c: New test.
11728 * testsuite/libgomp.c/target-21.c: New test.
11729 * testsuite/libgomp.c/target-22.c: New test.
11730 * testsuite/libgomp.c/target-23.c: New test.
11731 * testsuite/libgomp.c/target-24.c: New test.
11732 * testsuite/libgomp.c/target-25.c: New test.
11733 * testsuite/libgomp.c/target-26.c: New test.
11734 * testsuite/libgomp.c/target-27.c: New test.
11735 * testsuite/libgomp.c/taskloop-1.c: New test.
11736 * testsuite/libgomp.c/taskloop-2.c: New test.
11737 * testsuite/libgomp.c/taskloop-3.c: New test.
11738 * testsuite/libgomp.c/taskloop-4.c: New test.
11739 * testsuite/libgomp.c++/ctor-13.C: New test.
11740 * testsuite/libgomp.c++/doacross-1.C: New test.
11741 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
11742 Replace offload_device with offload_device_nonshared_as.
11743 * testsuite/libgomp.c++/for-12.C: New test.
11744 * testsuite/libgomp.c++/for-13.C: New test.
11745 * testsuite/libgomp.c++/for-14.C: New test.
11746 * testsuite/libgomp.c++/linear-1.C: New test.
11747 * testsuite/libgomp.c++/member-1.C: New test.
11748 * testsuite/libgomp.c++/member-2.C: New test.
11749 * testsuite/libgomp.c++/member-3.C: New test.
11750 * testsuite/libgomp.c++/member-4.C: New test.
11751 * testsuite/libgomp.c++/member-5.C: New test.
11752 * testsuite/libgomp.c++/ordered-1.C: New test.
11753 * testsuite/libgomp.c++/reduction-5.C: New test.
11754 * testsuite/libgomp.c++/reduction-6.C: New test.
11755 * testsuite/libgomp.c++/reduction-7.C: New test.
11756 * testsuite/libgomp.c++/reduction-8.C: New test.
11757 * testsuite/libgomp.c++/reduction-9.C: New test.
11758 * testsuite/libgomp.c++/reduction-10.C: New test.
11759 * testsuite/libgomp.c++/reference-1.C: New test.
11760 * testsuite/libgomp.c++/simd14.C: New test.
11761 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
11762 * testsuite/libgomp.c++/target-5.C: New test.
11763 * testsuite/libgomp.c++/target-6.C: New test.
11764 * testsuite/libgomp.c++/target-7.C: New test.
11765 * testsuite/libgomp.c++/target-8.C: New test.
11766 * testsuite/libgomp.c++/target-9.C: New test.
11767 * testsuite/libgomp.c++/target-10.C: New test.
11768 * testsuite/libgomp.c++/target-11.C: New test.
11769 * testsuite/libgomp.c++/target-12.C: New test.
11770 * testsuite/libgomp.c++/taskloop-1.C: New test.
11771 * testsuite/libgomp.c++/taskloop-2.C: New test.
11772 * testsuite/libgomp.c++/taskloop-3.C: New test.
11773 * testsuite/libgomp.c++/taskloop-4.C: New test.
11774 * testsuite/libgomp.c++/taskloop-5.C: New test.
11775 * testsuite/libgomp.c++/taskloop-6.C: New test.
11776 * testsuite/libgomp.c++/taskloop-7.C: New test.
11777 * testsuite/libgomp.c++/taskloop-8.C: New test.
11778 * testsuite/libgomp.c++/taskloop-9.C: New test.
11779 * testsuite/libgomp.fortran/affinity1.f90: New test.
11780 * testsuite/libgomp.fortran/affinity2.f90: New test.
11782 2015-10-13 Tom de Vries <tom@codesourcery.com>
11784 PR tree-optimization/67476
11785 * testsuite/libgomp.c/autopar-3.c: New test.
11786 * testsuite/libgomp.c/autopar-4.c: New test.
11787 * testsuite/libgomp.c/autopar-5.c: New test.
11788 * testsuite/libgomp.c/autopar-6.c: New test.
11789 * testsuite/libgomp.c/autopar-7.c: New test.
11790 * testsuite/libgomp.c/autopar-8.c: New test.
11792 2015-10-12 James Norris <jnorris@codesourcery.com>
11794 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
11797 2015-10-09 David Malcolm <dmalcolm@redhat.com>
11799 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
11800 using load_gcc_lib.
11802 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11804 * oacc-ptx.h: Remove file, moving its content into...
11805 * config/nvptx/fortran.c: ... here...
11806 * config/nvptx/oacc-init.c: ..., here...
11807 * config/nvptx/oacc-parallel.c: ..., and here.
11808 * config/nvptx/openacc.f90: New file.
11809 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
11810 (link_ptx): Don't link in predefined bits of PTX code.
11812 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11813 Bernd Schmidt <bernds@codesourcery.com>
11815 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
11816 (struct targ_ptx_obj): New.
11817 (nvptx_tdata): Move earlier, change data format.
11818 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
11820 (GOMP_OFFLOAD_load_image): Adjust.
11822 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11824 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
11825 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11826 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11827 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11828 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11829 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11830 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11831 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11832 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11833 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11834 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11835 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11836 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11837 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11838 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11839 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11840 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11841 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11842 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11843 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11844 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11845 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11846 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11847 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11848 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11849 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11850 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11851 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11852 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11853 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11854 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11855 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11856 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11857 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11858 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11859 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11860 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11861 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11862 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11863 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11864 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11865 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11866 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11867 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11868 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11869 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11870 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11871 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11872 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11873 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11874 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11875 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11876 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11877 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11878 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11879 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11880 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11881 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11882 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11883 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11884 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11885 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11886 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11888 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11890 * oacc-init.c (acc_on_device): Force optimization level.
11892 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11894 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
11895 (cuda_errlist): Delete.
11896 (cuda_error): Reimplement.
11898 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11900 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
11902 * libgomp.map (GOACC_parallel_keyed): New.
11903 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
11905 (GOACC_parallel_keyed): New interface. Lose geometry arguments
11906 and take keyed varargs list. Adjust call to exec_func.
11907 (GOACC_parallel): Force host fallback.
11908 * libgomp_g.h (GOACC_parallel): Remove.
11909 (GOACC_parallel_keyed): Declare.
11910 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
11911 (struct targ_gn_descriptor): Replace name field with launch field.
11912 (nvptx_exec): Lose separate geometry args, take array. Process
11913 dynamic dimensions and adjust.
11914 (struct nvptx_tdata): Replace fn_names field with fn_descs.
11915 (GOMP_OFFLOAD_load_image): Adjust for change in function table
11917 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
11919 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
11922 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11925 * oacc-int.h (goacc_host_init): Add declaration.
11926 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
11927 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
11929 2015-09-08 Aditya Kumar <hiraditya@msn.com>
11930 Sebastian Pop <s.pop@samsung.com>
11932 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
11934 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
11935 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
11936 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
11937 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
11938 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
11940 2015-09-03 Jakub Jelinek <jakub@redhat.com>
11942 * configure.tgt: Add missing ;; in between nvptx and rtems
11945 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11947 * config/posix/pool.h (gomp_adjust_thread_attr): New.
11948 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
11949 (gomp_thread_pool_reservoir): Add priority member.
11950 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
11952 (parse_thread_pools): Likewise.
11953 * team.c (gomp_team_start): Call configuration provided
11954 gomp_adjust_thread_attr(). Destroy thread attributes if
11956 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
11958 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11960 * config/posix/pool.h: New.
11961 * config/rtems/pool.h: Likewise.
11962 * config/rtems/proc.c: Likewise.
11963 * libgomp.h (gomp_thread_destructor): Declare.
11964 * team.c: Include configuration provided "pool.h".
11965 (gomp_get_thread_pool): Define in configuration.
11966 (gomp_team_end): Call configuration defined
11967 gomp_release_thread_pool().
11969 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11971 * config/rtems/bar.c: New.
11972 * config/rtems/bar.h: Likewise.
11973 * config/rtems/mutex.c: Likewise.
11974 * config/rtems/mutex.h: Likewise.
11975 * config/rtems/sem.c: Likewise.
11976 * config/rtems/sem.h: Likewise.
11977 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
11978 <sys/lock.h> header file.
11979 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
11980 supported by Newlib.
11981 * configure: Regenerate.
11983 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11985 * team.c (gomp_new_thread_pool): Delete and move content to ...
11986 (gomp_get_thread_pool): ... new function. Allocate and
11987 initialize thread pool on demand.
11988 (get_last_team): Use gomp_get_thread_pool().
11989 (gomp_team_start): Delete thread pool initialization.
11991 2015-09-03 Tom de Vries <tom@codesourcery.com>
11993 PR tree-optimization/65637
11994 * testsuite/libgomp.c/autopar-2.c: New test.
11996 2015-08-29 Tom de Vries <tom@codesourcery.com>
11998 PR tree-optimization/46193
11999 * testsuite/libgomp.c/pr46193.c: New test.
12001 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
12004 * libgomp.map: Add 4.0.2 version.
12005 * target.c (offload_image_descr): Add version field.
12006 (gomp_load_image_to_device): Add version argument. Adjust plugin
12007 call. Improve load mismatch diagnostic.
12008 (gomp_unload_image_from_device): Add version argument. Adjust plugin
12010 (GOMP_offload_regster): Make stub function, move bulk to ...
12011 (GOMP_offload_register_ver): ... here. Process version argument.
12012 (GOMP_offload_unregister): Make stub function, move bulk to ...
12013 (GOMP_offload_unregister_ver): ... here. Process version argument.
12014 (gomp_init_device): Process version field.
12015 (gomp_unload_device): Process version field.
12016 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
12017 macros. Check plugin version.
12018 * libgomp.h (gomp_device_descr): Add version function field. Adjust
12019 loader and unloader types.
12020 * oacc-host.c: Include gomp-constants.h.
12021 (host_version): New.
12022 (host_load_image, host_unload_image): Adjust.
12023 (host_dispatch): Add host_version.
12024 * plugin/plugin-nvptx.c: Include gomp-constants.h.
12025 (GOMP_OFFLOAD_version): New.
12026 (GOMP_OFFLOAD_load_image): Add version arg and check it.
12027 (GOMP_OFFLOAD_unload_image): Likewise.
12028 * plugin/plugin-host.c: Include gomp-constants.h.
12029 (GOMP_OFFLOAD_version): New.
12030 (GOMP_OFFLOAD_load_image): Add version arg.
12031 (GOMP_OFFLOAD_unload_image): Likewise.
12033 2015-08-24 Tom de Vries <tom@codesourcery.com>
12035 PR tree-optimization/65468
12036 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
12038 2015-08-24 Tom de Vries <tom@codesourcery.com>
12040 PR tree-optimization/65468
12041 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
12043 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
12047 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
12048 (gomp_iter_guided_next): Idem.
12049 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
12050 (gomp_iter_ull_guided_next): Idem.
12051 * config/linux/wait.h (do_spin): Idem.
12053 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12055 * libgomp-plugin.h (enum offload_target_type): Remove
12056 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
12057 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
12058 * openacc.h (enum acc_device_t): Likewise.
12059 * openacc_lib.h: Likewise.
12060 * oacc-init.c (name_of_acc_device_t): Don't handle it.
12061 (acc_on_device): Just use __builtin_acc_on_device.
12062 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
12063 of acc_on_device builtin.
12064 * plugin/plugin-host.h: Remove file.
12065 * plugin/plugin-host.c: Likewise, but salvage some content into...
12066 * oacc-host.c: ... this file.
12067 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
12068 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
12069 * Makefile.in: Regenerate.
12070 * configure: Likewise.
12071 * testsuite/lib/libgomp.exp
12072 (check_effective_target_openacc_host_nonshm_selected): Remove.
12073 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
12074 ACC_DEVICE_TYPE=host_nonshm.
12075 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12076 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12077 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
12078 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12079 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12080 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12082 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12083 Jakub Jelinek <jakub@redhat.com>
12085 * config/nvptx/affinity.c: New file.
12086 * config/nvptx/alloc.c: Likewise.
12087 * config/nvptx/bar.c: Likewise.
12088 * config/nvptx/barrier.c: Likewise.
12089 * config/nvptx/critical.c: Likewise.
12090 * config/nvptx/env.c: Likewise.
12091 * config/nvptx/error.c: Likewise.
12092 * config/nvptx/fortran.c: Likewise.
12093 * config/nvptx/iter.c: Likewise.
12094 * config/nvptx/iter_ull.c: Likewise.
12095 * config/nvptx/libgomp-plugin.c: Likewise.
12096 * config/nvptx/lock.c: Likewise.
12097 * config/nvptx/loop.c: Likewise.
12098 * config/nvptx/loop_ull.c: Likewise.
12099 * config/nvptx/mutex.c: Likewise.
12100 * config/nvptx/oacc-async.c: Likewise.
12101 * config/nvptx/oacc-cuda.c: Likewise.
12102 * config/nvptx/oacc-host.c: Likewise.
12103 * config/nvptx/oacc-init.c: Likewise.
12104 * config/nvptx/oacc-mem.c: Likewise.
12105 * config/nvptx/oacc-parallel.c: Likewise.
12106 * config/nvptx/oacc-plugin.c: Likewise.
12107 * config/nvptx/omp-lock.h: Likewise.
12108 * config/nvptx/ordered.c: Likewise.
12109 * config/nvptx/parallel.c: Likewise.
12110 * config/nvptx/proc.c: Likewise.
12111 * config/nvptx/ptrlock.c: Likewise.
12112 * config/nvptx/sections.c: Likewise.
12113 * config/nvptx/sem.c: Likewise.
12114 * config/nvptx/single.c: Likewise.
12115 * config/nvptx/splay-tree.c: Likewise.
12116 * config/nvptx/target.c: Likewise.
12117 * config/nvptx/task.c: Likewise.
12118 * config/nvptx/team.c: Likewise.
12119 * config/nvptx/time.c: Likewise.
12120 * config/nvptx/work.c: Likewise.
12121 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
12122 * configure: Regenerate.
12123 * configure.tgt (config_path): Set to "nvptx" for target
12126 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12128 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
12130 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
12132 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
12133 (cuda_errlist): Constify.
12134 (errmsg): Move into ...
12135 (cuda_error): ... here. Make smaller.
12136 (_XSTR, _STR): Delete.
12137 (cuda_synames): Delete.
12138 (verify_device_library): Delete.
12139 (nvptx_init): Don't call it.
12141 2015-07-28 Tom de Vries <tom@codesourcery.com>
12143 * testsuite/libgomp.c/uns-outer-4.c: New test.
12145 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12147 * testsuite/libgomp.c/pr66714.c: New test.
12149 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
12152 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
12153 (fib_ref): New function.
12154 (fib): Correct corner cases in the recursion.
12155 (main): Replace the non-simd loop with fib_ref call.
12156 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
12158 (fibonacci): Lower the parameter N to 30. Correct accordingly check
12159 for the last array element value. Replace the non-simd loop with
12160 fib_ref call. Remove redundant b_ref array. Remove the comparison
12161 of the last array element with according Fibonacci sequence element.
12162 (fib): Correct corner cases in the recursion.
12164 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12166 * target.c (gomp_offload_image_to_device): Rename to ...
12167 (gomp_load_image_to_device): ... here.
12168 (GOMP_offload_register): Adjust call.
12169 (gomp_init_device): Likewise.
12170 (gomp_unload_image_from_device): New. Broken out of ...
12171 (GOMP_offload_unregister): ... here. Call it.
12172 (gomp_unload_device): New.
12173 * libgomp.h (gomp_unload_device): Declare.
12174 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
12177 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
12179 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
12181 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
12183 (goacc_waits): Move !num_waits handling to ...
12184 (GOACC_wait): ... here, the only caller that might have zero waits.
12186 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
12187 (struct ptx_image_data): Move earlier, add fns field.
12188 (struct ptx_device): Add images and image_lock fields.
12189 (ptx_images, ptx_image_lock): Delete.
12190 (nvptx_open_device): Initialize images and image_lock fields.
12191 (nvptx_close_device): Destroy image_lock.
12192 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
12193 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
12196 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12198 * target.c (GOMP_offload_register): Use int for device type arg.
12199 (GOMP_offload_unregister): Likewise.
12201 * target.c (struct_offload_image_descr): Constify host_table.
12202 (gomp_offload_image_to_device): Likewise.
12203 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
12205 * libgomp.h (gomp_device_descr): Constify target data arguments.
12206 * target.c (struct offload_image_descr): Constify target_data.
12207 (gomp_offload_image_to_device): Likewise.
12208 (GOMP_offload_register): Likewise.
12209 (GOMP_offload_unregister): Likewise.
12210 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
12211 GOMP_OFFLOAD_unload_image): Constify target data.
12212 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
12213 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
12215 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12217 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
12218 Workaround driver library const error.
12219 (struct nvptx_tdata, nvptx_tdata_t): New.
12220 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
12223 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
12225 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
12226 of EPS parameter from integer to real.
12227 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
12228 type of EPS parameter from integer to real.
12230 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
12232 * team.c (get_last_team): New.
12233 (gomp_new_team): Recycle last non-nested team if possible.
12234 (gomp_team_end): Move team work share list free lock destruction
12236 (free_team): ... here.
12238 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
12240 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
12241 and ref from int to double. Replaced their comparison with
12242 an inequality of their difference and EPS.
12243 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
12244 comparison of pri and a reference number with an inequality of their
12245 difference and EPS.
12246 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
12247 the comparison of sum and sum_ref with an inequality of their
12248 difference and EPS.
12249 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
12250 the comparison of pri and a reference number with an inequality of
12251 their difference and EPS.
12253 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
12255 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
12256 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
12257 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
12258 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
12259 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
12260 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
12261 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
12262 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
12263 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
12264 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
12265 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
12266 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
12267 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
12269 (vec_mult): Likewise. Add #pragma omp taskwait.
12270 (main): Adjust caller.
12271 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
12272 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
12273 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
12274 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
12275 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
12276 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
12277 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
12278 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
12279 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
12280 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
12281 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
12282 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
12283 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
12284 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
12285 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
12286 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
12287 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
12288 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
12289 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
12290 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
12291 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
12292 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
12293 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
12294 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
12295 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
12296 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
12297 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
12298 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
12299 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
12300 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
12301 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
12302 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
12303 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
12304 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
12305 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
12306 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
12307 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
12308 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
12309 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
12310 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
12311 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
12312 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
12313 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
12314 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
12315 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
12316 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
12317 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
12318 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
12319 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
12320 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
12321 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
12322 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
12323 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
12324 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
12325 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
12326 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
12327 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
12328 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
12329 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
12330 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
12331 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
12332 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
12333 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
12334 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
12335 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
12336 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
12337 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
12338 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
12339 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
12340 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
12341 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
12342 (vec_mult): Add !$omp taskwait.
12343 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
12344 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
12345 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
12346 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
12347 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
12348 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
12349 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
12350 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
12351 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
12352 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
12353 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
12354 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
12355 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
12356 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
12357 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
12358 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
12359 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
12360 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
12361 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
12362 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
12363 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
12364 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
12365 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
12366 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
12367 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
12368 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
12369 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
12370 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
12371 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
12372 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
12373 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
12374 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
12375 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
12376 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
12377 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
12378 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
12379 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
12380 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
12381 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
12382 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
12383 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
12384 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
12385 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
12386 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
12387 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
12388 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
12389 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
12390 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
12391 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
12392 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
12393 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
12394 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
12395 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
12396 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
12397 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
12398 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
12399 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
12400 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
12401 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
12402 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
12403 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
12404 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
12405 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
12406 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
12407 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
12408 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
12409 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
12411 2015-07-10 Tom de Vries <tom@codesourcery.com>
12413 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
12414 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
12416 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
12419 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
12420 in a 64-bit configuration.
12421 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
12422 offloading testing if no such device is available.
12423 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12424 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12426 2015-07-08 Tom de Vries <tom@codesourcery.com>
12428 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
12430 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12432 2015-07-07 Tom de Vries <tom@codesourcery.com>
12434 PR tree-optimization/66642
12435 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
12436 iteration count case.
12437 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
12438 function, factor out of ...
12439 (main): ... here. Test low iteration count case.
12441 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
12443 * libgomp.h (gomp_thread_pool): Comment last_team field.
12445 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
12447 * testsuite/libgomp.c++/pr66702-1.C: Require
12448 vect_simd_clones effective target.
12449 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
12451 2015-06-30 Tom de Vries <tom@codesourcery.com>
12453 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12454 already set. Use DEFAULT_CFLAGS in dg-runtest.
12455 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
12458 2015-06-30 Tom de Vries <tom@codesourcery.com>
12460 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12461 already set. Use DEFAULT_CFLAGS in dg-runtest.
12462 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
12463 * testsuite/libgomp.c++/pr64824.C: Same.
12464 * testsuite/libgomp.c++/pr64868.C: Same.
12465 * testsuite/libgomp.c++/pr66199-1.C: Same.
12466 * testsuite/libgomp.c++/pr66199-2.C: Same.
12467 * testsuite/libgomp.c++/target-2.C: Same.
12468 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
12469 -std=<standard> option.
12470 * testsuite/libgomp.c++/udr-11.C: Same.
12471 * testsuite/libgomp.c++/udr-12.C: Same.
12472 * testsuite/libgomp.c++/udr-13.C: Same.
12473 * testsuite/libgomp.c++/udr-14.C: Same.
12474 * testsuite/libgomp.c++/udr-15.C: Same.
12475 * testsuite/libgomp.c++/udr-16.C: Same.
12476 * testsuite/libgomp.c++/udr-17.C: Same.
12477 * testsuite/libgomp.c++/udr-18.C: Same.
12478 * testsuite/libgomp.c++/udr-19.C: Same.
12479 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
12480 * testsuite/libgomp.c++/simd-1.C: Same.
12481 * testsuite/libgomp.c++/simd-2.C: Same.
12482 * testsuite/libgomp.c++/simd-3.C: Same.
12483 * testsuite/libgomp.c++/simd-4.C: Same.
12484 * testsuite/libgomp.c++/simd-5.C: Same.
12485 * testsuite/libgomp.c++/simd-6.C: Same.
12486 * testsuite/libgomp.c++/simd-7.C: Same.
12487 * testsuite/libgomp.c++/simd-8.C: Same.
12488 * testsuite/libgomp.c++/simd-9.C: Same.
12489 * testsuite/libgomp.c++/simd10.C: Same.
12490 * testsuite/libgomp.c++/simd11.C: Same.
12491 * testsuite/libgomp.c++/simd12.C: Same.
12492 * testsuite/libgomp.c++/simd13.C: Same.
12494 2015-06-30 Jakub Jelinek <jakub@redhat.com>
12496 PR middle-end/66702
12497 * testsuite/libgomp.c++/pr66702-1.C: New test.
12498 * testsuite/libgomp.c++/pr66702-2.C: New test.
12500 2015-06-30 Tom de Vries <tom@codesourcery.com>
12502 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
12503 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
12504 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
12505 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
12507 2015-06-30 Tom de Vries <tom@codesourcery.com>
12509 PR tree-optimization/66652
12510 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
12511 using restrict pointers.
12512 (main): Add arguments to calls to f.
12513 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12515 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
12517 * configure.ac: Fix check for header <sys/sysctl.h>.
12518 * configure: Regenerate.
12519 * config.h.in: Likewise.
12521 2015-06-23 Tom de Vries <tom@codesourcery.com>
12523 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
12525 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
12527 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
12529 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
12533 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
12534 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12536 2015-06-15 Tom de Vries <tom@codesourcery.com>
12538 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
12539 dg-additional-options for any remaining options.
12540 * testsuite/libgomp.c/atomic-2.c: Same.
12541 * testsuite/libgomp.c/atomic-4.c: Same.
12542 * testsuite/libgomp.c/atomic-5.c: Same.
12543 * testsuite/libgomp.c/atomic-6.c: Same.
12544 * testsuite/libgomp.c/autopar-1.c: Same.
12545 * testsuite/libgomp.c/copyin-1.c: Same.
12546 * testsuite/libgomp.c/copyin-2.c: Same.
12547 * testsuite/libgomp.c/copyin-3.c: Same.
12548 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
12549 * testsuite/libgomp.c/nestedfn-5.c: Same.
12550 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
12551 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
12552 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
12553 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12554 * testsuite/libgomp.c/pr32362-1.c: Same.
12555 * testsuite/libgomp.c/pr32362-2.c: Same.
12556 * testsuite/libgomp.c/pr32362-3.c: Same.
12557 * testsuite/libgomp.c/pr39591-1.c: Same.
12558 * testsuite/libgomp.c/pr39591-2.c: Same.
12559 * testsuite/libgomp.c/pr39591-3.c: Same.
12560 * testsuite/libgomp.c/pr58392.c: Same.
12561 * testsuite/libgomp.c/pr58756.c: Same.
12562 * testsuite/libgomp.c/simd-1.c: Same.
12563 * testsuite/libgomp.c/simd-10.c: Same.
12564 * testsuite/libgomp.c/simd-11.c: Same.
12565 * testsuite/libgomp.c/simd-12.c: Same.
12566 * testsuite/libgomp.c/simd-13.c: Same.
12567 * testsuite/libgomp.c/simd-14.c: Same.
12568 * testsuite/libgomp.c/simd-15.c: Same.
12569 * testsuite/libgomp.c/simd-2.c: Same.
12570 * testsuite/libgomp.c/simd-3.c: Same.
12571 * testsuite/libgomp.c/simd-4.c: Same.
12572 * testsuite/libgomp.c/simd-5.c: Same.
12573 * testsuite/libgomp.c/simd-6.c: Same.
12574 * testsuite/libgomp.c/simd-7.c: Same.
12575 * testsuite/libgomp.c/simd-8.c: Same.
12576 * testsuite/libgomp.c/simd-9.c: Same.
12578 2015-06-15 Tom de Vries <tom@codesourcery.com>
12580 * testsuite/libgomp.c/pr35625.c: Fix typo.
12582 2015-06-15 Tom de Vries <tom@codesourcery.com>
12584 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
12586 * testsuite/libgomp.c/atomic-3.c: Same.
12587 * testsuite/libgomp.c/debug-1.c: Same.
12588 * testsuite/libgomp.c/nqueens-1.c: Same.
12589 * testsuite/libgomp.c/pr26171.c: Same.
12590 * testsuite/libgomp.c/pr48591.c: Same.
12591 * testsuite/libgomp.c/pr64824.c: Same.
12592 * testsuite/libgomp.c/pr64868.c: Same.
12593 * testsuite/libgomp.c/pr66133.c: Same.
12594 * testsuite/libgomp.c/pr66199-1.c: Same.
12595 * testsuite/libgomp.c/pr66199-2.c: Same.
12596 * testsuite/libgomp.c/target-8.c: Same.
12598 2015-06-15 Tom de Vries <tom@codesourcery.com>
12600 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
12602 * testsuite/libgomp.c/for-1.c: Same.
12603 * testsuite/libgomp.c/for-2.c: Same.
12604 * testsuite/libgomp.c/for-3.c: Same.
12605 * testsuite/libgomp.c/pr35625.c: Same.
12606 * testsuite/libgomp.c/pr39154.c: Same.
12607 * testsuite/libgomp.c/simd-16.c: Same.
12608 * testsuite/libgomp.c/simd-17.c: Same.
12610 2015-06-13 Tom de Vries <tom@codesourcery.com>
12612 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
12614 2015-06-13 Tom de Vries <tom@codesourcery.com>
12616 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
12617 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12618 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
12620 (main): Use N instead of hardcoded constants.
12622 2015-06-05 Tom de Vries <tom@codesourcery.com>
12624 merge from gomp4 branch:
12625 2015-05-28 Tom de Vries <tom@codesourcery.com>
12627 PR tree-optimization/65443
12628 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
12629 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
12630 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
12632 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12634 * testsuite/libgomp.graphite/bounds.c: Adjust for
12635 cleanup-tree-dump removal.
12636 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
12637 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12638 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12639 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12640 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12641 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12642 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12643 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12644 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12645 * testsuite/libgomp.graphite/pr41118.c: Likewise.
12647 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
12649 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
12650 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
12651 (futex_wake) [!__x86_64__]: Ditto.
12653 2015-05-28 Julian Brown <julian@codesourcery.com>
12655 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
12656 function comment. Only call gomp_fatal if new argument is true.
12657 (acc_dev_num_out_of_range): New function.
12658 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
12659 acc_dev_num_out_of_range as appropriate.
12660 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12661 (acc_get_device_num, acc_set_device_num): Update calls to
12663 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
12666 2015-05-28 Julian Brown <julian@codesourcery.com>
12669 * oacc-init.c (plugin/plugin-host.h): Include.
12670 (acc_on_device): Check whether we're in an offloaded region for
12672 plugin. Don't use __builtin_acc_on_device.
12673 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
12674 nonshm_exec flag in thread-local data.
12675 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
12676 data for host_nonshm plugin.
12677 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
12678 for host_nonshm plugin.
12679 * plugin/plugin-host.h: New.
12681 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12683 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
12685 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12687 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
12689 (FUTEX_PRIVATE_FLAG): Remove L suffix.
12690 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
12693 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12695 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
12697 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
12699 * target.c (gomp_map_pointer): New function abstracting out
12700 GOMP_MAP_POINTER handling.
12701 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
12702 gomp_map_pointer().
12704 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12706 PR middle-end/66199
12707 * testsuite/libgomp.c/pr66199-1.c: New test.
12708 * testsuite/libgomp.c/pr66199-2.c: New test.
12709 * testsuite/libgomp.c++/pr66199-1.C: New test.
12710 * testsuite/libgomp.c++/pr66199-2.C: New test.
12711 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
12712 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
12714 2015-05-19 Julian Brown <julian@codesourcery.com>
12716 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
12719 2015-05-13 Jakub Jelinek <jakub@redhat.com>
12721 PR middle-end/66133
12722 * testsuite/libgomp.c/pr66133.c: New test.
12724 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12726 * Makefile.in: Regenerated with automake-1.11.6.
12727 * aclocal.m4: Likewise.
12728 * config.h.in: Likewise.
12729 * configure: Likewise.
12730 * testsuite/Makefile.in: Likewise.
12732 2015-05-08 Jason Merrill <jason@redhat.com>
12734 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
12737 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
12739 2015-05-06 Julian Brown <julian@codesourcery.com>
12741 * oacc-init.c (acc_device_lock): Add explanatory comment.
12742 (resolve_device): Add comment about locking requirement.
12743 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
12744 gomp_init_device and gomp_fini_device calls.
12745 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12746 (acc_get_device_num, acc_set_device_num): Add locking around
12747 resolve_device and gomp_init_device calls.
12749 2015-05-06 Julian Brown <julian@codesourcery.com>
12751 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
12752 goacc_thread_lock on error paths.
12753 * oacc-mem.c (lookup_host): Remove locking from function. Note
12754 locking requirement for caller in function comment.
12755 (lookup_dev): Likewise.
12756 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
12757 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
12758 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
12761 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
12765 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
12766 don't expect "0x" prefix for "%p" format specifier, don't expect
12767 "(nil)" for NULL pointer.
12768 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12769 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12770 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12771 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12772 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12773 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12774 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12775 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12776 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12777 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12778 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12779 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12780 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12781 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12782 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12783 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12784 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12785 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12786 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12787 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12788 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12789 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12790 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12791 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12792 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12793 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12794 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12795 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12796 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
12797 accurately specify what we're looking for.
12798 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12799 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12800 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
12801 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12802 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12804 2015-04-30 James Norris <jnorris@codesourcery.com>
12807 * testsuite/lib/libgomp.exp
12808 (check_effective_target_openacc_host_selected)
12809 (check_effective_target_openacc_host_nonshm_selected): New
12811 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
12813 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
12814 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12815 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12816 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12817 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12818 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12819 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12820 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12821 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12822 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12823 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12824 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12825 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12826 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12827 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12828 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
12829 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12830 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12831 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12832 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12833 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12834 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
12835 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12836 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12837 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12838 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12839 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12840 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12841 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12842 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12843 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12844 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12845 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12846 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
12847 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
12848 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
12849 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
12850 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
12851 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
12852 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
12853 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
12854 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
12855 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
12857 2015-04-08 Julian Brown <julian@codesourcery.com>
12859 * libgomp.h (target_mem_desc: Remove mem_map field.
12860 (acc_dispatch_t): Remove open_device_func, close_device_func,
12861 get_device_num_func, set_device_num_func, target_data members.
12862 Change create_thread_data_func argument to device number instead of
12864 * oacc-async.c (assert.h): Include.
12865 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
12866 (acc_wait_all, acc_wait_all_async): Use current host thread's
12867 active device, not base_dev.
12868 * oacc-cuda.c (acc_get_current_cuda_device)
12869 (acc_get_current_cuda_context, acc_get_cuda_stream)
12870 (acc_set_cuda_stream): Likewise.
12871 * oacc-host.c (host_dispatch): Don't set open_device_func,
12872 close_device_func, get_device_num_func or set_device_num_func.
12873 * oacc-init.c (base_dev, init_key): Remove.
12874 (cached_base_dev): New.
12875 (name_of_acc_device_t): New.
12876 (acc_init_1): Initialise default-numbered device, not zeroth.
12877 (acc_shutdown_1): Close all devices of a given type.
12878 (goacc_destroy_thread): Don't use base_dev.
12879 (lazy_open, lazy_init, lazy_init_and_open): Remove.
12880 (goacc_attach_host_thread_to_device): New.
12881 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
12882 (acc_get_num_devices): Don't use base_dev.
12883 (acc_set_device_type): Reimplement.
12884 (acc_get_device_type): Don't use base_dev.
12885 (acc_get_device_num): Tweak logic.
12886 (acc_set_device_num): Likewise.
12887 (acc_on_device): Use acc_get_device_type.
12888 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
12889 (goacc_lazy_initialize): Reimplement with acc_init and
12890 goacc_attach_host_thread_to_device.
12891 * oacc-int.h (goacc_thread): Add base_dev field.
12892 (base_dev): Remove extern declaration.
12893 (goacc_attach_host_thread_to_device): Add prototype.
12894 * oacc-mem.c (acc_malloc): Use current thread's device instead of
12896 (acc_free): Likewise.
12897 (acc_memcpy_to_device): Likewise.
12898 (acc_memcpy_from_device): Likewise.
12899 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
12900 goacc_lazy_initialize (throughout).
12901 (GOACC_parallel): Use tgt_offset to locate target functions.
12902 * target.c (gomp_map_vars): Don't set tgt->mem_map.
12903 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
12904 (gomp_load_plugin_for_device): Remove open_device, close_device,
12905 get_device_num, set_device_num openacc hook initialisation. Don't set
12906 openacc.target_data.
12907 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
12908 (GOMP_OFFLOAD_openacc_close_device)
12909 (GOMP_OFFLOAD_openacc_get_device_num)
12910 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
12911 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
12913 * plugin/plugin-nvptx.c (ptx_inited): Remove.
12914 (instantiated_devices, ptx_dev_lock): New.
12915 (struct ptx_image_data): New.
12916 (ptx_devices, ptx_images, ptx_image_lock): New.
12917 (fini_streams_for_device): Reorder cuStreamDestroy call.
12918 (nvptx_get_num_devices): Remove forward declaration.
12919 (nvptx_init): Change return type to bool.
12920 (nvptx_fini): Remove.
12921 (nvptx_attach_host_thread_to_device): New.
12922 (nvptx_open_device): Return struct ptx_device* instead of void*.
12923 (nvptx_close_device): Change argument type to struct ptx_device*,
12924 return type to void.
12925 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
12926 (kernel_target_data, kernel_host_table): Remove static globals.
12927 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
12928 (GOMP_OFFLOAD_init_device): Reimplement.
12929 (GOMP_OFFLOAD_fini_device): Likewise.
12930 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
12931 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
12932 (GOMP_OFFLOAD_host2dev): Use ORD argument.
12933 (GOMP_OFFLOAD_openacc_open_device)
12934 (GOMP_OFFLOAD_openacc_close_device)
12935 (GOMP_OFFLOAD_openacc_set_device_num)
12936 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
12937 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
12941 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
12943 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
12945 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
12946 * libgomp.h (struct gomp_memory_mapping): Remove.
12947 (struct target_mem_desc): Change type of mem_map from
12948 gomp_memory_mapping * to splay_tree_s *.
12949 (struct gomp_device_descr): Remove register_image_func, get_table_func.
12950 Add load_image_func, unload_image_func.
12951 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
12952 Remove offload_regions_registered.
12953 (gomp_init_tables): Remove.
12954 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
12956 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
12957 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
12958 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
12959 offload_regions_registered.
12960 Initialize load_image_func, unload_image_func, mem_map.root.
12961 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
12962 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
12963 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
12964 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
12965 gomp_memory_mapping *. Use dev's lock and splay_tree.
12966 (lookup_dev): Use dev's lock.
12967 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
12968 (acc_is_present): Likewise.
12969 (acc_map_data): Likewise.
12970 (acc_unmap_data): Likewise. Use dev's lock.
12971 (present_create_copy): Likewise.
12972 (delete_copyout): Pass dev to lookup_host instead of mem_map.
12973 (update_dev_host): Likewise.
12974 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
12975 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
12976 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
12977 (GOMP_OFFLOAD_get_table): Remove
12978 (GOMP_OFFLOAD_load_image): New function.
12979 (GOMP_OFFLOAD_unload_image): New function.
12980 * target.c (register_lock): New mutex for offload image registration.
12981 (num_devices): Do not guard with PLUGIN_SUPPORT.
12982 (gomp_realloc_unlock): New static function.
12983 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
12985 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
12986 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
12987 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
12989 (gomp_unmap_vars): Likewise.
12990 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
12991 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
12992 (gomp_offload_image_to_device): New static function.
12993 (GOMP_offload_register): Add mutex lock.
12994 Call gomp_offload_image_to_device for all initialized devices.
12995 Replace gomp_realloc with gomp_realloc_unlock.
12996 (GOMP_offload_unregister): New function.
12997 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
12998 get_table_func from the plugin with calls to init_device_func and
12999 gomp_offload_image_to_device.
13000 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
13002 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
13003 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
13004 (GOMP_target_data): Do not call gomp_init_tables.
13005 (GOMP_target_update): Likewise. Remove argument from gomp_update.
13006 (gomp_load_plugin_for_device): Replace register_image and get_table
13007 with load_image and unload_image in DLSYM ().
13008 (gomp_register_images_for_device): Remove function.
13009 (gomp_target_init): Do not initialize current_device.mem_map.*,
13010 current_device.offload_regions_registered.
13011 Remove call to gomp_register_images_for_device.
13012 Do not free offload_images and num_offload_images.
13014 2015-03-30 Jakub Jelinek <jakub@redhat.com>
13017 * testsuite/libgomp.fortran/pr65597.f90: New test.
13019 2015-03-27 Tom de Vries <tom@codesourcery.com>
13022 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
13023 (init, check): New function.
13024 (foo): Change return type to void.
13025 (main): Call init and check.
13027 2015-03-27 Tom de Vries <tom@codesourcery.com>
13030 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
13031 (foo): Use M for non-inner loops to scale down test-case.
13033 2015-03-25 Kai Tietz <ktietz@redhat.com>
13036 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
13037 (GOACC_data_start): Likewise.
13038 * target.c (gomp_map_vars): Likewise.
13040 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
13042 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
13045 2015-03-19 Jakub Jelinek <jakub@redhat.com>
13047 * testsuite/libgomp.c/target-10.c: New test.
13048 * testsuite/libgomp.c++/target-4.C: New test.
13050 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
13052 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
13053 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
13055 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
13057 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
13058 * configure.ac (*-*-rtems*): Assume Pthread is supported.
13059 (pthread.h): Check for this header file.
13060 * configure: Regenerate.
13062 2015-02-25 Tom de Vries <tom@codesourcery.com>
13064 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
13065 (check_reduction_op, check_reduction_macro, max, min):
13067 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
13069 (main): Use new functions.
13071 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
13073 * target.c (gomp_load_plugin_for_device): Use const char * instead of
13074 char * for variables holding dlerror return values.
13075 (DLSYM_OPT): Ditto.
13077 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13079 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
13081 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13082 Cesar Philippidis <cesar@codesourcery.com>
13084 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
13085 GOACC_ctaid, and GOACC_nctaid routines.
13087 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13090 * testsuite/libgomp.c/atomic-18.c: New test.
13091 * testsuite/libgomp.c++/atomic-16.C: New test.
13093 2015-02-04 Jakub Jelinek <jakub@redhat.com>
13097 * testsuite/libgomp.c/pr64824.c: New test.
13098 * testsuite/libgomp.c/pr64868.c: New test.
13099 * testsuite/libgomp.c++/pr64824.C: New test.
13100 * testsuite/libgomp.c++/pr64868.C: New test.
13102 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
13105 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
13106 Link with -lpthread.
13107 * config/aix/plugin-suffix.h: Delete.
13109 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
13112 * configure.tgt (*-*-aix*): Use config_path "aix posix".
13113 (*-*-darwin*): Use config_path "bsd darwin posix".
13114 (*-*-hpux*): Use config_path "hpux posix".
13115 * target.c: Add include of plugin-suffix.h and use
13116 SONAME_SUFFIX macro.
13117 * config/aix/plugin-suffix.h: New file.
13118 * config/darwin/plugin-suffix.h: New file.
13119 * config/hpux/plugin-suffix.h: New file.
13120 * config/posix/plugin-suffix.h: New file.
13122 2015-01-23 Jakub Jelinek <jakub@redhat.com>
13124 PR middle-end/64734
13125 * libgomp.c/pr64734.c: New test.
13127 2015-01-23 Tom de Vries <tom@codesourcery.com>
13130 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
13132 2015-01-23 Tom de Vries <tom@codesourcery.com>
13135 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
13138 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
13141 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
13142 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
13143 formal parameter. Update all users.
13144 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
13145 Document unused formal parameter.
13147 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
13149 * oacc-parallel.c: Don't include <alloca.h>.
13150 (GOACC_parallel): Use gomp_alloca instead of alloca.
13152 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
13154 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
13156 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
13157 James Norris <jnorris@codesourcery.com>
13158 Tom de Vries <tom@codesourcery.com>
13159 Julian Brown <julian@codesourcery.com>
13160 Cesar Philippidis <cesar@codesourcery.com>
13161 Nathan Sidwell <nathan@codesourcery.com>
13162 Tobias Burnus <burnus@net-b.de>
13164 * Makefile.am (search_path): Add $(top_srcdir)/../include.
13165 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
13166 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
13167 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
13168 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
13169 Include $(top_srcdir)/plugin/Makefrag.am.
13170 (nodist_libsubinclude_HEADERS): Add openacc.h.
13171 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
13172 openacc.f90, openacc.mod, openacc_kinds.mod.
13173 (omp_lib.mod): Generalize into...
13174 (%.mod): ... this new rule.
13175 (openacc_kinds.mod, openacc.mod): New rules.
13176 * plugin/configfrag.ac: New file.
13177 * configure.ac: Move plugin/offloading support into it. Include
13178 it. Instantiate testsuite/libgomp-test-support.pt.exp.
13179 * plugin/Makefrag.am: New file.
13180 * testsuite/Makefile.am (OFFLOAD_TARGETS)
13181 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
13183 (libgomp-test-support.exp): New rule.
13184 (all-local): Depend on it.
13185 * Makefile.in: Regenerate.
13186 * testsuite/Makefile.in: Regenerate.
13187 * config.h.in: Likewise.
13188 * configure: Likewise.
13189 * configure.tgt: Harden shell syntax.
13190 * env.c: Include "oacc-int.h".
13191 (parse_acc_device_type): New function.
13192 (gomp_debug_var, goacc_device_type, goacc_device_num): New
13194 (initialize_env): Initialize those. Call
13195 goacc_runtime_initialize.
13196 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
13197 (gomp_fatal): Call gomp_vfatal.
13198 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
13199 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
13200 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
13201 (splay_tree_node, splay_tree, splay_tree_key)
13202 (struct target_mem_desc, struct splay_tree_key_s)
13203 (struct gomp_memory_mapping, struct acc_dispatch_t)
13204 (struct gomp_device_descr, gomp_acc_insert_pointer)
13205 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
13206 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
13207 (gomp_free_memmap, gomp_fini_device): New declarations.
13208 (gomp_vdebug, gomp_debug): New macros.
13209 Include "splay-tree.h".
13210 * libgomp.map (OACC_2.0): New symbol version. Use for
13211 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
13212 acc_set_device_type_h_, acc_get_device_type,
13213 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
13214 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
13215 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
13216 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
13217 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
13218 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
13219 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
13220 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
13221 acc_copyin_array_h_, acc_present_or_copyin,
13222 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
13223 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
13224 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
13225 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
13226 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
13227 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
13228 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
13229 acc_update_device, acc_update_device_32_h_,
13230 acc_update_device_64_h_, acc_update_device_array_h_,
13231 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
13232 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
13233 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
13234 acc_is_present_64_h_, acc_is_present_array_h_,
13235 acc_memcpy_to_device, acc_memcpy_from_device,
13236 acc_get_current_cuda_device, acc_get_current_cuda_context,
13237 acc_get_cuda_stream, acc_set_cuda_stream.
13238 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
13239 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
13240 GOACC_update, GOACC_wait, GOACC_get_thread_num,
13241 GOACC_get_num_threads.
13242 (GOMP_PLUGIN_1.0): New symbol version. Use for
13243 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
13244 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
13245 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
13246 GOMP_PLUGIN_acc_thread.
13247 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
13248 environment variable.
13249 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
13250 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
13251 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
13252 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
13253 (splay_tree_remove): New declarations.
13254 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
13255 (splay_tree_remove, splay_tree_lookup): Move into...
13256 * splay-tree.c: ... this new file.
13257 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
13258 (splay_tree_node, splay_tree, splay_tree_key)
13259 (struct target_mem_desc, struct splay_tree_key_s)
13260 (struct gomp_device_descr): Don't declare.
13261 (num_devices_openmp): New variable.
13262 (gomp_get_num_devices ): Use it.
13263 (gomp_init_targets_once): New function.
13264 (gomp_get_num_devices ): Use it.
13265 (get_kind, gomp_copy_from_async, gomp_free_memmap)
13266 (gomp_fini_device, gomp_register_image_for_device): New functions.
13267 (gomp_map_vars): Add devaddrs parameter.
13268 (gomp_update): Add mm parameter.
13269 (gomp_init_device): Move most of it into...
13270 (gomp_init_tables): ... this new function.
13271 (gomp_register_images_for_device): Remove function.
13272 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
13273 Make them hidden instead of static.
13274 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
13275 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
13276 (GOMP_target_end_data, GOMP_target_update)
13277 (gomp_load_plugin_for_device, gomp_target_init): Update for
13279 * oacc-async.c: New file.
13280 * oacc-cuda.c: Likewise.
13281 * oacc-host.c: Likewise.
13282 * oacc-init.c: Likewise.
13283 * oacc-int.h: Likewise.
13284 * oacc-mem.c: Likewise.
13285 * oacc-parallel.c: Likewise.
13286 * oacc-plugin.c: Likewise.
13287 * oacc-plugin.h: Likewise.
13288 * oacc-ptx.h: Likewise.
13289 * openacc.f90: Likewise.
13290 * openacc.h: Likewise.
13291 * openacc_lib.h: Likewise.
13292 * plugin/plugin-host.c: Likewise.
13293 * plugin/plugin-nvptx.c: Likewise.
13294 * libgomp-plugin.c: Likewise.
13295 * libgomp-plugin.h: Likewise.
13296 * libgomp_target.h: Remove file after merging content into the
13297 former file. Update all users.
13298 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
13299 (offload_targets_s, offload_targets_s_openacc): New variables.
13300 (check_effective_target_openacc_nvidia_accel_present)
13301 (check_effective_target_openacc_nvidia_accel_selected): New
13303 (libgomp_init): Update for OpenACC changes.
13304 * testsuite/libgomp-test-support.exp.in: New file.
13305 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
13306 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13307 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13308 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
13309 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
13310 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13311 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
13312 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13313 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13314 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
13315 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
13316 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13317 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
13318 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13319 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
13320 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13321 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
13322 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
13323 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
13324 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
13325 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
13326 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
13327 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13328 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13329 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13330 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13331 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13332 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13333 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13334 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13335 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13336 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13337 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13338 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
13339 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
13340 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13341 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13342 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13343 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
13344 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
13345 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13346 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13347 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13348 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13349 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13350 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
13351 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13352 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13353 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13354 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13355 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13356 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13357 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13358 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13359 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13360 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13361 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13362 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13363 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13364 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
13365 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
13366 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
13367 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13368 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13369 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13370 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
13371 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
13372 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13373 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13374 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13375 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
13376 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13377 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13378 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13379 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
13380 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
13381 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13382 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13383 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
13384 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
13385 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
13386 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
13387 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13388 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13389 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13390 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
13391 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
13392 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13393 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13394 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
13395 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
13396 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
13397 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
13398 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13399 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13400 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13401 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13402 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
13403 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13404 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13405 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
13406 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
13407 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
13408 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13409 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
13410 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
13411 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
13412 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
13413 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
13414 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13415 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
13416 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
13417 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13418 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
13419 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
13420 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
13421 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
13422 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
13423 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
13424 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
13425 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
13426 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
13427 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13428 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
13429 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
13430 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
13431 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
13432 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
13433 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
13434 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
13435 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
13436 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
13437 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13438 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
13439 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13440 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13441 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13442 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13443 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13444 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
13446 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
13447 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
13448 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
13449 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13450 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
13451 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13452 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
13453 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13454 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13455 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13456 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13457 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13458 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13459 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
13460 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
13461 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
13462 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
13463 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
13464 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
13465 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
13466 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
13467 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
13468 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
13469 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
13470 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
13471 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
13472 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13473 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13474 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13475 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13476 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13477 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13478 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13479 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13480 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
13481 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
13482 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
13483 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
13484 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
13485 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
13486 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
13487 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
13488 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
13489 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
13490 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
13491 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
13492 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
13493 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
13494 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
13495 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13496 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13497 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13498 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13499 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13500 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
13501 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
13502 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
13503 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
13504 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
13505 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
13507 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
13508 Julian Brown <julian@codesourcery.com>
13509 David Malcolm <dmalcolm@redhat.com>
13511 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
13512 to "GNU Offloading and Multi Processing Runtime Library". Change
13514 * configure: Regenerate.
13515 * libgomp.texi: Update.
13517 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
13519 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
13521 * configure: Regenerate.
13523 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
13524 "intelmic" in $offload_targets.
13526 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13528 Update copyright years.
13530 * libgomp.texi: Bump @copying's copyright year.
13532 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13534 * testsuite/lib/libgomp.exp: Load target-utils.exp.
13535 Move load of target-supports.exp earlier.
13537 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
13539 * testsuite/libgomp.c/target-9.c: New test.
13541 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
13543 * config.h.in: Regenerate.
13544 * configure: Regenerate.
13545 * configure.ac: Add GCC_CHECK_EMUTLS.
13546 * libgomp.h: Add check for USE_EMUTLS: this case
13547 is equal to HAVE_TLS.
13548 * team.c: Likewise.
13550 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
13552 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
13554 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
13555 Ilya Verbin <ilya.verbin@intel.com>
13557 * testsuite/libgomp.c/target-critical-1.c: New test.
13559 2014-11-26 Jakub Jelinek <jakub@redhat.com>
13561 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
13562 to dg-options unless expensive testing is on.
13563 (TESTITERS): Define to N if not defined.
13564 (main): Use TESTITERS instead of N.
13565 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
13566 dg-additional-options depending on whether expensive testing is on.
13567 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
13568 Decrease N to 100000 and CHUNKSZ to 10000.
13570 2014-11-24 Jakub Jelinek <jakub@redhat.com>
13573 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
13574 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
13576 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
13578 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
13580 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
13583 * configure: Regenerated.
13585 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
13587 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
13588 vect_simd_clones effective target.
13589 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13591 2014-11-14 Jakub Jelinek <jakub@redhat.com>
13593 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
13594 of 32 as block_size.
13595 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
13596 instead of 32 as block_size.
13598 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
13599 Ilya Verbin <ilya.verbin@intel.com>
13601 * Makefile.in: Regenerate.
13602 * configure: Regenerate.
13603 * configure.ac: Set up offload_additional_options,
13604 offload_additional_lib_paths and offload_targets.
13605 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
13606 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
13607 * testsuite/Makefile.in: Regenerate.
13608 * testsuite/lib/libgomp.exp (libgomp_init): Append
13609 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
13610 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
13611 build directory to LD_LIBRARY_PATH for intelmic offload targets.
13613 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
13614 Ilya Verbin <ilya.verbin@intel.com>
13615 Kirill Yukhin <kirill.yukhin@intel.com>
13616 Ilya Tocar <ilya.tocar@intel.com>
13618 * testsuite/lib/libgomp.exp
13619 (check_effective_target_offload_device): New.
13620 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
13621 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
13622 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
13623 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
13624 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
13625 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
13626 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
13627 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
13628 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
13629 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
13630 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
13631 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
13632 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
13633 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
13634 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
13635 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
13636 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
13637 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
13638 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
13639 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
13640 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
13641 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
13642 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
13643 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
13644 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
13645 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
13646 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
13647 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
13648 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
13649 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
13650 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
13651 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
13652 * testsuite/libgomp.c/target-7.c: Fix test.
13653 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
13654 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
13655 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
13656 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
13657 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
13658 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
13659 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
13660 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
13661 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
13662 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
13663 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
13664 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
13665 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
13666 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
13667 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
13668 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
13669 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
13670 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
13671 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13672 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
13673 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
13674 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
13675 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
13676 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
13677 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
13678 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
13679 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
13680 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
13681 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
13682 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
13683 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
13685 2014-11-13 Jakub Jelinek <jakub@redhat.com>
13686 Ilya Verbin <ilya.verbin@intel.com>
13687 Thomas Schwinge <thomas@codesourcery.com>
13688 Andrey Turetskiy <andrey.turetskiy@intel.com>
13690 * libgomp.map (GOMP_4.0.1): New symbol version.
13691 Add GOMP_offload_register.
13692 * libgomp_target.h: New file.
13693 * splay-tree.h: New file.
13694 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
13695 (gomp_target_init): New forward declaration.
13696 (gomp_is_initialized): New static variable.
13697 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
13698 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
13700 (offload_images, num_offload_images, devices, num_devices): New static
13702 (splay_compare): New static function.
13703 (struct gomp_device_descr): New structure.
13704 (gomp_get_num_devices): Call gomp_target_init.
13705 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
13706 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
13707 (GOMP_offload_register): New function.
13708 (GOMP_target): Arrange for host callback to be performed in a separate
13709 initial thread and contention group, inheriting ICVs from
13710 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
13711 Add device initialization and lookup for target function in splay tree.
13712 (GOMP_target_data): Add device initialization and call gomp_map_vars.
13713 (GOMP_target_end_data): Call gomp_unmap_vars.
13714 (GOMP_target_update): Add device initialization and call gomp_update.
13715 (gomp_load_plugin_for_device, gomp_register_images_for_device)
13716 (gomp_target_init): New static functions.
13718 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
13719 Thomas Schwinge <thomas@codesourcery.com>
13720 Ilya Verbin <ilya.verbin@intel.com>
13721 Andrey Turetskiy <andrey.turetskiy@intel.com>
13723 * config.h.in: Regenerate.
13724 * configure: Regenerate.
13725 * configure.ac: Check for libdl, required for plugin support.
13726 (PLUGIN_SUPPORT): Define if plugins are supported.
13727 (enable_offload_targets): Support Intel MIC targets.
13728 (OFFLOAD_TARGETS): List of target names suitable for offloading.
13730 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13733 * configure: Regenerate.
13735 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13737 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
13739 2014-10-06 Marek Polacek <polacek@redhat.com>
13741 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
13742 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
13743 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
13744 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13746 2014-10-06 Marek Polacek <polacek@redhat.com>
13748 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
13749 * testsuite/libgomp.c/nqueens-1.c: Likewise.
13750 * testsuite/libgomp.c/pr26943-3.c: Likewise.
13751 * testsuite/libgomp.c/pr26943-4.c: Likewise.
13752 * testsuite/libgomp.c/pr36802-2.c: Likewise.
13753 * testsuite/libgomp.c/pr36802-3.c: Likewise.
13754 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
13755 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13756 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
13757 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
13758 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
13759 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
13760 * testsuite/libgomp.c/omp-single-1.c: Likewise.
13761 * testsuite/libgomp.c/omp-single-2.c: Likewise.
13762 * testsuite/libgomp.c/omp_matvec.c: Likewise.
13763 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
13764 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
13765 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
13768 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13771 * testsuite/libgomp.c/pr61200.c: New test.
13773 2014-09-18 Jakub Jelinek <jakub@redhat.com>
13776 * testsuite/libgomp.c++/pr63248.C: New test.
13778 2014-08-04 Jakub Jelinek <jakub@redhat.com>
13780 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
13781 is not zero, but taskgroup->children is NULL and there are
13782 any task->children, schedule those instead of waiting.
13783 * testsuite/libgomp.c/depend-6.c: New test.
13784 * testsuite/libgomp.c/depend-7.c: New test.
13785 * testsuite/libgomp.c/depend-8.c: New test.
13786 * testsuite/libgomp.c/depend-9.c: New test.
13787 * testsuite/libgomp.c/depend-10.c: New test.
13789 2014-08-01 Jakub Jelinek <jakub@redhat.com>
13791 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
13792 (struct gomp_taskwait): New type.
13793 (struct gomp_task): Add taskwait and parent_depends_on, remove
13794 in_taskwait and taskwait_sem fields.
13795 (gomp_finish_task): Don't destroy taskwait_sem.
13796 * task.c (gomp_init_task): Don't init in_taskwait, instead init
13797 taskwait and parent_depends_on.
13798 (GOMP_task): For if (0) tasks with depend clause that depend on
13799 earlier tasks don't defer them, instead call
13800 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
13801 Initialize redundant_out field, for redundant out entries just
13802 move them at the end of linked list instead of removing them
13803 completely, and set redundant_out flag instead of redundant.
13804 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
13806 (gomp_task_run_post_handle_dependers): If parent is in
13807 gomp_task_maybe_wait_for_dependencies and newly runnable task
13808 is not parent_depends_on, queue it in parent->children linked
13809 list after all runnable tasks with parent_depends_on set.
13810 Adjust for addition of taskwait indirection.
13811 (gomp_task_run_post_remove_parent): If parent is in
13812 gomp_task_maybe_wait_for_dependencies and task to be removed
13813 is parent_depends_on, decrement n_depend and if needed awake
13814 parent. Adjust for addition of taskwait indirection.
13815 (GOMP_taskwait): Adjust for addition of taskwait indirection.
13816 (gomp_task_maybe_wait_for_dependencies): New function.
13817 * testsuite/libgomp.c/depend-5.c: New test.
13819 2014-07-13 Tobias Burnus <burnus@net-b.de>
13821 * testsuite/libgomp.fortran/pr34020.f90: Make compile
13822 with TS 18508/Fortran 2015.
13824 2014-07-06 Marek Polacek <polacek@redhat.com>
13827 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
13829 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13831 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
13832 matches regex $lang_source_re, add $lang_include_flags to options.
13833 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
13834 * testsuite/libgomp.c++/c++.exp: Likewise.
13835 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
13836 and lang_include_flags instead of adding -fintrinsic-modules-path= to
13838 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
13840 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
13842 * testsuite/libgomp.fortran/fortran.exp: Explain
13843 gfortran-dg-runtest usage.
13845 2014-06-25 Jakub Jelinek <jakub@redhat.com>
13847 * testsuite/libgomp.fortran/simd5.f90: New test.
13848 * testsuite/libgomp.fortran/simd6.f90: New test.
13849 * testsuite/libgomp.fortran/simd7.f90: New test.
13851 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13853 * testsuite/libgomp.c/for-2.c: Define SC to static for
13854 #pragma omp for simd testing.
13855 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
13856 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
13858 * testsuite/libgomp.c/simd-14.c: New test.
13859 * testsuite/libgomp.c/simd-15.c: New test.
13860 * testsuite/libgomp.c/simd-16.c: New test.
13861 * testsuite/libgomp.c/simd-17.c: New test.
13862 * testsuite/libgomp.c++/for-10.C: Define SC to static for
13863 #pragma omp for simd testing.
13864 * testsuite/libgomp.c++/simd10.C: New test.
13865 * testsuite/libgomp.c++/simd11.C: New test.
13866 * testsuite/libgomp.c++/simd12.C: New test.
13867 * testsuite/libgomp.c++/simd13.C: New test.
13869 * testsuite/libgomp.fortran/aligned1.f03: New test.
13870 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
13871 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
13872 tasks with !$omp parallel !$omp single.
13873 * testsuite/libgomp.fortran/target8.f90: New test.
13874 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
13875 not to use trim in the combiner, instead call elemental function.
13876 (fn): New elemental function.
13877 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
13879 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
13881 * testsuite/libgomp.fortran/udr12.f90: New test.
13882 * testsuite/libgomp.fortran/udr13.f90: New test.
13883 * testsuite/libgomp.fortran/udr14.f90: New test.
13884 * testsuite/libgomp.fortran/udr15.f90: New test.
13886 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13888 * omp_lib.f90.in (openmp_version): Set to 201307.
13889 * omp_lib.h.in (openmp_version): Likewise.
13890 * testsuite/libgomp.c/target-8.c: New test.
13891 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
13892 and inbranch clauses.
13893 * testsuite/libgomp.fortran/depend-3.f90: New test.
13894 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
13896 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13897 * testsuite/libgomp.fortran/target1.f90: New test.
13898 * testsuite/libgomp.fortran/target2.f90: New test.
13899 * testsuite/libgomp.fortran/target3.f90: New test.
13900 * testsuite/libgomp.fortran/target4.f90: New test.
13901 * testsuite/libgomp.fortran/target5.f90: New test.
13902 * testsuite/libgomp.fortran/target6.f90: New test.
13903 * testsuite/libgomp.fortran/target7.f90: New test.
13905 2014-06-10 Jakub Jelinek <jakub@redhat.com>
13908 * testsuite/libgomp.fortran/allocatable9.f90: New test.
13909 * testsuite/libgomp.fortran/allocatable10.f90: New test.
13910 * testsuite/libgomp.fortran/allocatable11.f90: New test.
13911 * testsuite/libgomp.fortran/allocatable12.f90: New test.
13912 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
13913 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
13914 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
13915 * testsuite/libgomp.fortran/associate1.f90: New test.
13916 * testsuite/libgomp.fortran/associate2.f90: New test.
13917 * testsuite/libgomp.fortran/procptr1.f90: New test.
13919 2014-06-06 Jakub Jelinek <jakub@redhat.com>
13921 * testsuite/libgomp.fortran/simd1.f90: New test.
13922 * testsuite/libgomp.fortran/udr1.f90: New test.
13923 * testsuite/libgomp.fortran/udr2.f90: New test.
13924 * testsuite/libgomp.fortran/udr3.f90: New test.
13925 * testsuite/libgomp.fortran/udr4.f90: New test.
13926 * testsuite/libgomp.fortran/udr5.f90: New test.
13927 * testsuite/libgomp.fortran/udr6.f90: New test.
13928 * testsuite/libgomp.fortran/udr7.f90: New test.
13929 * testsuite/libgomp.fortran/udr8.f90: New test.
13930 * testsuite/libgomp.fortran/udr9.f90: New test.
13931 * testsuite/libgomp.fortran/udr10.f90: New test.
13932 * testsuite/libgomp.fortran/udr11.f90: New test.
13934 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
13936 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
13937 vect_simd_clones effective target.
13938 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
13940 2014-05-21 Jakub Jelinek <jakub@redhat.com>
13942 PR middle-end/61252
13943 * testsuite/libgomp.c++/simd-9.C: New test.
13945 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
13947 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
13948 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
13949 texts according to their @menu entry positions.
13951 2014-05-11 Jakub Jelinek <jakub@redhat.com>
13953 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
13954 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
13955 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
13956 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
13957 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
13958 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
13959 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
13960 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
13961 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
13962 * testsuite/libgomp.fortran/depend-1.f90: New test.
13963 * testsuite/libgomp.fortran/depend-2.f90: New test.
13964 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
13965 * testsuite/libgomp.fortran/simd1.f90: New test.
13966 * testsuite/libgomp.fortran/simd2.f90: New test.
13967 * testsuite/libgomp.fortran/simd3.f90: New test.
13968 * testsuite/libgomp.fortran/simd4.f90: New test.
13969 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
13971 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13973 * testsuite/libgomp.c/simd-10.c: New test.
13974 * testsuite/libgomp.c/simd-11.c: New test.
13975 * testsuite/libgomp.c/simd-12.c: New test.
13976 * testsuite/libgomp.c/simd-13.c: New test.
13978 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13980 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
13981 atomic type clauses in any order and optional comma in between.
13982 * testsuite/libgomp.c++/atomic-15.C: Likewise.
13983 * testsuite/libgomp.c/atomic-17.c: Likewise.
13985 * testsuite/libgomp.c/simd-7.c: New test.
13986 * testsuite/libgomp.c/simd-8.c: New test.
13987 * testsuite/libgomp.c/simd-9.c: New test.
13988 * testsuite/libgomp.c/loop-16.c: New test.
13990 2014-04-02 Richard Henderson <rth@redhat.com>
13992 * config/linux/futex.h (futex_wait): Get error value from errno.
13993 (futex_wake): Likewise.
13995 2014-03-25 Jakub Jelinek <jakub@redhat.com>
13998 * testsuite/libgomp.c++/udr-11.C: New test.
13999 * testsuite/libgomp.c++/udr-12.C: New test.
14000 * testsuite/libgomp.c++/udr-13.C: New test.
14001 * testsuite/libgomp.c++/udr-14.C: New test.
14002 * testsuite/libgomp.c++/udr-15.C: New test.
14003 * testsuite/libgomp.c++/udr-16.C: New test.
14004 * testsuite/libgomp.c++/udr-17.C: New test.
14005 * testsuite/libgomp.c++/udr-18.C: New test.
14006 * testsuite/libgomp.c++/udr-19.C: New test.
14008 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14010 Update copyright years
14012 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14014 * hashtab.h: Use the standard form for the copyright notice.
14016 2014-01-02 Tobias Burnus <burnus@net-b.de>
14018 * libgomp.texi: Bump @copying's copyright year.
14020 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
14022 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
14023 alloca () with __builtin_alloca ().
14024 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
14025 * testsuite/libgomp.c/lock-3.c: Likewise.
14026 * testsuite/libgomp.c/pr48591.c: Likewise.
14028 2013-12-17 Jakub Jelinek <jakub@redhat.com>
14031 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
14034 2013-12-16 Jakub Jelinek <jakub@redhat.com>
14037 * testsuite/libgomp.c/pr58756.c: New test.
14039 2013-12-12 Jakub Jelinek <jakub@redhat.com>
14042 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
14045 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
14047 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
14049 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
14050 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
14051 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
14052 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
14055 * libgomp_g.h: Include <stddef.h> for size_t.
14057 * libgomp.spec.in: Update comment about libgomp's dependencies.
14058 * configure.ac: Likewise.
14059 * configure: Regenerate.
14061 2013-10-16 Tobias Burnus <burnus@net-b.de>
14063 * libgomp.texi: (Runtime Library Routines): Update references for
14064 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
14065 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
14066 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
14067 (Environment Variables): Update references for OpenMP 4.0. Add
14068 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
14069 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
14072 2013-10-14 Jakub Jelinek <jakub@redhat.com>
14074 * env.c (parse_bind_var): Initialize value to avoid
14075 (false positive) warning.
14077 2013-10-12 Jakub Jelinek <jakub@redhat.com>
14080 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
14082 (gomp_init_num_threads): Move i variable declaration into
14083 #ifdef CPU_ALLOC_SIZE block.
14084 * config/linux/affinity.c (gomp_affinity_init_level): Test
14085 gomp_places_list_len == 0 rather than gomp_places_list == 0
14086 when checking for topology reading error.
14087 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
14088 * env.c (parse_affinity): Add ignore argument, if true, don't populate
14089 gomp_places_list, only parse env var and always return false.
14090 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
14091 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
14092 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
14093 and either of these variables were parsed correctly into a places
14096 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14097 Jakub Jelinek <jakub@redhat.com>
14099 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
14100 of 5 loopfn matches.
14101 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14102 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14103 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14104 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14105 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14106 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14107 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14108 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14110 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14112 * Makefile.am (omp_lib.mod): Streamline rule.
14113 * Makefile.in: Regenerate.
14115 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
14118 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
14119 * testsuite/libgomp.fortran/lib1.f90: Likewise.
14120 * testsuite/libgomp.fortran/lib2.f: Likewise.
14121 * testsuite/libgomp.fortran/lib3.f: Likewise.
14123 * configure.ac: Typo fix.
14124 * configure: Regenerate.
14126 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
14127 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14129 * omp.h.in: Don't touch the user's namespace.
14131 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14132 Tobias Burnus <burnus@net-b.de>
14133 Richard Henderson <rth@redhat.com>
14135 * target.c: New file.
14136 * Makefile.am (libgomp_la_SOURCES): Add target.c.
14137 * Makefile.in: Regenerated.
14138 * libgomp_g.h (GOMP_task): Add depend argument.
14139 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14140 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14141 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
14142 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14143 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14144 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
14145 GOMP_taskgroup_start, GOMP_taskgroup_end,
14146 GOMP_parallel_sections): New prototypes.
14147 * fortran.c (omp_is_initial_device): Add ialias_redirect.
14148 (omp_is_initial_device_): New function.
14149 (ULP, STR1, STR2, ialias_redirect): Removed.
14150 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
14151 omp_set_default_device_8_, omp_get_default_device_,
14152 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
14154 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14155 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14156 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
14158 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
14159 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
14160 omp_set_default_device, omp_set_default_device_,
14161 omp_set_default_device_8_, omp_get_default_device,
14162 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
14163 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
14164 omp_get_team_num_): Export @@OMP_4.0.
14165 * team.c (struct gomp_thread_start_data): Add place field.
14166 (gomp_thread_start): Clear thr->thread_pool and
14167 thr->task before returning. Use gomp_team_barrier_wait_final
14168 instead of gomp_team_barrier_wait. Initialize thr->place.
14169 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
14170 team_cancelled and task_queued_count fields.
14171 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
14172 before calling pthread_exit.
14173 (gomp_free_thread): No longer static. Use
14174 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
14175 (gomp_team_start): Add flags argument. Set
14176 thr->thread_pool->threads_busy to nthreads immediately after creating
14177 new pool. Use gomp_managed_threads_lock instead of
14178 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
14179 (gomp_team_end): Use gomp_managed_threads_lock instead of
14180 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
14181 of gomp_team_barrier_wait. If team->team_cancelled, call
14182 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
14183 rather than thr->ts.work_share.
14184 (initialize_team): Don't call gomp_sem_init here.
14185 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
14187 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
14188 * env.c (gomp_global_icv): Add default_device_var, target_data and
14189 bind_var initializers.
14190 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14191 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14192 gomp_places_list_len): New variables.
14193 (parse_bind_var, parse_one_place, parse_places_var): New functions.
14194 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
14196 (gomp_cancel_var): New global variable.
14197 (parse_int): New function.
14198 (handle_omp_display_env): New function.
14199 (initialize_env): Use it. Initialize default_device_var.
14200 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
14201 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
14202 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
14203 been successfully parsed (and call gomp_init_affinity in that case).
14204 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14205 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14206 omp_get_team_num, omp_is_initial_device): New functions.
14207 * libgomp.h: Include stdlib.h.
14208 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
14210 (struct target_mem_desc): Forward declare.
14211 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
14212 and thread_limit_var fields.
14213 (gomp_get_num_devices): New prototype.
14214 (gomp_cancel_var): New extern decl.
14215 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
14216 team_cancelled and task_queued_count fields. Add comments about
14217 task_{,queued_,running_}count.
14218 (gomp_cancel_kind): New enum.
14219 (gomp_work_share_end_cancel): New prototype.
14220 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
14221 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
14223 (struct gomp_taskgroup): New type.
14224 (struct gomp_task_depend_entry,
14225 struct gomp_dependers_vec): New types.
14226 (gomp_finish_task): Free depend_hash if non-NULL.
14227 (struct gomp_team_state): Add place_partition_off
14228 and place_partition_len fields.
14229 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14230 gomp_places_list_len): New extern decls.
14231 (struct gomp_thread): Add place field.
14232 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14233 (gomp_init_thread_affinity): Add place argument.
14234 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14235 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14236 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14237 gomp_affinity_init_level, gomp_affinity_print_place): New
14239 (gomp_team_start): Add flags argument.
14240 (gomp_thread_limit_var, gomp_remaining_threads_count,
14241 gomp_remaining_threads_lock): Remove.
14242 (gomp_managed_threads_lock): New variable.
14243 (struct gomp_thread_pool): Add threads_busy field.
14244 (gomp_free_thread): New prototype.
14245 * task.c: Include hashtab.h.
14246 (hash_entry_type): New typedef.
14247 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
14248 (gomp_init_task): Clear dependers, depend_hash, depend_count,
14249 copy_ctors_done and taskgroup fields.
14250 (GOMP_task): Add depend argument, handle depend clauses. If
14251 gomp_team_barrier_cancelled or if it's taskgroup has been
14252 cancelled, don't queue or start new tasks. Set copy_ctors_done
14253 field if needed. Initialize taskgroup field. If copy_ctors_done
14254 and already cancelled, don't discard the task. If taskgroup is
14255 non-NULL, enqueue the task into taskgroup queue. Increment
14256 num_children field in taskgroup. Increment task_queued_count.
14257 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
14258 gomp_task_run_post_remove_taskgroup): New inline functions.
14259 (gomp_task_run_post_handle_depend_hash,
14260 gomp_task_run_post_handle_dependers,
14261 gomp_task_run_post_handle_depend): New functions.
14262 (GOMP_taskwait): Use them. If more than one new tasks
14263 have been queued, wake other threads if needed.
14264 (gomp_barrier_handle_tasks): Likewise. If
14265 gomp_team_barrier_cancelled, don't start any new tasks, just free
14267 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
14269 (omp_proc_bind_kind, omp_proc_bind_false,
14270 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14271 omp_proc_bind_spread): New params.
14272 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14273 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14274 omp_get_team_num, omp_is_initial_device): New interfaces.
14275 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
14276 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
14277 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
14278 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
14279 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
14280 useless use omp_lib_kinds.
14281 * omp.h.in (omp_proc_bind_t): New typedef.
14282 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14283 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14284 omp_get_team_num, omp_is_initial_device): New prototypes.
14285 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
14286 through to gomp_team_start.
14287 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
14288 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
14289 Adjust gomp_parallel_loop_start callers.
14290 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14291 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14292 GOMP_loop_end_cancel): New functions.
14293 (GOMP_parallel_end): Add ialias_redirect.
14294 * hashtab.h: New file.
14295 * libgomp.texi (Environment Variables): Minor cleanup,
14296 update section refs to OpenMP 4.0rc2.
14297 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
14298 environment variables.
14299 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
14300 team->work_shares_to_free to thr->ts.work_share before calling
14302 (gomp_work_share_end_cancel): New function.
14303 * config/linux/proc.c: Include errno.h.
14304 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
14305 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
14306 sizeof (cpu_set_t) to determine number of iterations. Fix up check
14307 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
14308 gomp_cpuset_size is sizeof (cpu_set_t).
14309 (gomp_init_num_threads): Initialize gomp_cpuset_size,
14310 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
14311 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
14312 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
14313 contain any logical CPUs.
14314 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
14315 is NULL. Use gomp_cpusetp instead of &cpuset and pass
14316 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
14317 pthread_getaffinity_np. Check gomp_places_list instead of
14318 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
14319 * config/linux/bar.c (gomp_barrier_wait_end,
14320 gomp_barrier_wait_last): Use BAR_* defines.
14321 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
14322 from state where needed. Set work_share_cancelled to 0 on last
14324 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
14325 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
14327 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
14328 Add cpusetsize argument.
14329 (gomp_cpuset_size, gomp_cpusetp): Declare.
14330 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
14331 (affinity_counter): Remove.
14332 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
14333 if CPU_ALLOC_SIZE isn't defined.
14334 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
14335 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
14336 bind current thread to the first place.
14337 (gomp_init_thread_affinity): Rewritten. Add place argument, just
14338 pthread_setaffinity_np to gomp_places_list[place].
14339 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14340 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14341 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14342 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
14343 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14344 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14345 (gomp_barrier_t): Add awaited_final field.
14346 (gomp_barrier_init): Initialize awaited_final field.
14347 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
14348 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
14350 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
14352 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
14353 gomp_team_barrier_cancelled): New inline functions.
14354 (gomp_barrier_last_thread,
14355 gomp_team_barrier_set_task_pending,
14356 gomp_team_barrier_clear_task_pending,
14357 gomp_team_barrier_set_waiting_for_tasks,
14358 gomp_team_barrier_waiting_for_tasks,
14359 gomp_team_barrier_done): Use BAR_* defines.
14360 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
14361 (gomp_barrier_wait_end): Use BAR_* defines.
14362 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
14363 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
14365 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
14366 gomp_team_barrier_cancel): New functions.
14367 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
14369 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14370 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14371 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14372 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
14373 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14374 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14375 (gomp_barrier_t): Add cancellable field.
14376 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
14377 gomp_team_barrier_cancel): New prototypes.
14378 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
14379 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
14380 gomp_team_barrier_cancelled): New inline functions.
14381 (gomp_barrier_wait_start, gomp_barrier_last_thread,
14382 gomp_team_barrier_set_task_pending,
14383 gomp_team_barrier_clear_task_pending,
14384 gomp_team_barrier_set_waiting_for_tasks,
14385 gomp_team_barrier_waiting_for_tasks,
14386 gomp_team_barrier_done): Use BAR_* defines.
14387 * barrier.c (GOMP_barrier_cancel): New function.
14388 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
14389 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14390 omp_proc_bind_spread): New params.
14391 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14392 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14393 omp_get_team_num, omp_is_initial_device): New externals.
14394 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
14396 (gomp_resolve_num_threads): Adjust for thread_limit now being in
14397 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
14398 infinity. If not nested, just return minimum of max_num_threads
14399 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
14400 to the returned value. Otherwise, don't update atomically
14401 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
14402 (GOMP_parallel_end): Adjust for thread_limit now being in
14403 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
14404 infinity. Adjust threads_busy in the pool rather than
14405 gomp_remaining_threads_count. Remember team->nthreads and call
14406 gomp_team_end before adjusting threads_busy, if not nested
14407 afterwards, just set it to 1 non-atomically. Add ialias.
14408 (GOMP_parallel_start): Adjust gomp_team_start caller.
14409 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
14410 * testsuite/libgomp.c/affinity-1.c: New test.
14411 * testsuite/libgomp.c/atomic-15.c: New test.
14412 * testsuite/libgomp.c/atomic-16.c: New test.
14413 * testsuite/libgomp.c/atomic-17.c: New test.
14414 * testsuite/libgomp.c/cancel-for-1.c: New test.
14415 * testsuite/libgomp.c/cancel-for-2.c: New test.
14416 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
14417 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
14418 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
14419 * testsuite/libgomp.c/cancel-sections-1.c: New test.
14420 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
14421 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
14422 * testsuite/libgomp.c/depend-1.c: New test.
14423 * testsuite/libgomp.c/depend-2.c: New test.
14424 * testsuite/libgomp.c/depend-3.c: New test.
14425 * testsuite/libgomp.c/depend-4.c: New test.
14426 * testsuite/libgomp.c/for-1.c: New test.
14427 * testsuite/libgomp.c/for-1.h: New file.
14428 * testsuite/libgomp.c/for-2.c: New test.
14429 * testsuite/libgomp.c/for-2.h: New file.
14430 * testsuite/libgomp.c/for-3.c: New test.
14431 * testsuite/libgomp.c/pr58392.c: New test.
14432 * testsuite/libgomp.c/simd-1.c: New test.
14433 * testsuite/libgomp.c/simd-2.c: New test.
14434 * testsuite/libgomp.c/simd-3.c: New test.
14435 * testsuite/libgomp.c/simd-4.c: New test.
14436 * testsuite/libgomp.c/simd-5.c: New test.
14437 * testsuite/libgomp.c/simd-6.c: New test.
14438 * testsuite/libgomp.c/target-1.c: New test.
14439 * testsuite/libgomp.c/target-2.c: New test.
14440 * testsuite/libgomp.c/target-3.c: New test.
14441 * testsuite/libgomp.c/target-4.c: New test.
14442 * testsuite/libgomp.c/target-5.c: New test.
14443 * testsuite/libgomp.c/target-6.c: New test.
14444 * testsuite/libgomp.c/target-7.c: New test.
14445 * testsuite/libgomp.c/taskgroup-1.c: New test.
14446 * testsuite/libgomp.c/thread-limit-1.c: New test.
14447 * testsuite/libgomp.c/thread-limit-2.c: New test.
14448 * testsuite/libgomp.c/thread-limit-3.c: New test.
14449 * testsuite/libgomp.c/udr-1.c: New test.
14450 * testsuite/libgomp.c/udr-2.c: New test.
14451 * testsuite/libgomp.c/udr-3.c: New test.
14452 * testsuite/libgomp.c++/affinity-1.C: New test.
14453 * testsuite/libgomp.c++/atomic-10.C: New test.
14454 * testsuite/libgomp.c++/atomic-11.C: New test.
14455 * testsuite/libgomp.c++/atomic-12.C: New test.
14456 * testsuite/libgomp.c++/atomic-13.C: New test.
14457 * testsuite/libgomp.c++/atomic-14.C: New test.
14458 * testsuite/libgomp.c++/atomic-15.C: New test.
14459 * testsuite/libgomp.c++/cancel-for-1.C: New test.
14460 * testsuite/libgomp.c++/cancel-for-2.C: New test.
14461 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
14462 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
14463 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
14464 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
14465 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
14466 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
14467 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
14468 * testsuite/libgomp.c++/cancel-test.h: New file.
14469 * testsuite/libgomp.c++/for-9.C: New test.
14470 * testsuite/libgomp.c++/for-10.C: New test.
14471 * testsuite/libgomp.c++/for-11.C: New test.
14472 * testsuite/libgomp.c++/simd-1.C: New test.
14473 * testsuite/libgomp.c++/simd-2.C: New test.
14474 * testsuite/libgomp.c++/simd-3.C: New test.
14475 * testsuite/libgomp.c++/simd-4.C: New test.
14476 * testsuite/libgomp.c++/simd-5.C: New test.
14477 * testsuite/libgomp.c++/simd-6.C: New test.
14478 * testsuite/libgomp.c++/simd-7.C: New test.
14479 * testsuite/libgomp.c++/simd-8.C: New test.
14480 * testsuite/libgomp.c++/target-1.C: New test.
14481 * testsuite/libgomp.c++/target-2.C: New test.
14482 * testsuite/libgomp.c++/target-2-aux.cc: New file.
14483 * testsuite/libgomp.c++/target-3.C: New test.
14484 * testsuite/libgomp.c++/taskgroup-1.C: New test.
14485 * testsuite/libgomp.c++/udr-1.C: New test.
14486 * testsuite/libgomp.c++/udr-2.C: New test.
14487 * testsuite/libgomp.c++/udr-3.C: New test.
14488 * testsuite/libgomp.c++/udr-4.C: New test.
14489 * testsuite/libgomp.c++/udr-5.C: New test.
14490 * testsuite/libgomp.c++/udr-6.C: New test.
14491 * testsuite/libgomp.c++/udr-7.C: New test.
14492 * testsuite/libgomp.c++/udr-8.C: New test.
14493 * testsuite/libgomp.c++/udr-9.C: New test.
14495 2013-09-20 Jakub Jelinek <jakub@redhat.com>
14498 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
14501 2013-09-20 Alan Modra <amodra@gmail.com>
14503 * configure: Regenerate.
14505 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14507 * testsuite/libgomp.c/sections-2.c: New test.
14509 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
14511 * testsuite/libgomp.fortran/strassen.f90:
14512 Add dg-skip-if aarch64_tiny.
14514 2013-06-20 Iain Sandoe <iain@codesourcery.com>
14515 Cesar Philippidis <cesar@codesourcery.com>
14517 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
14518 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
14519 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
14520 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14521 * testsuite/libgomp.graphite/graphite.exp: Likewise.
14522 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
14523 Use dg-runtest rather than gfortran-dg-runtest.
14525 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
14527 * testsuite/libgomp.c/icv-2.c: Extend current handling of
14528 Linux-based x86 systems to cover all GNU systems.
14529 * testsuite/libgomp.c/lock-3.c: Likewise.
14530 * testsuite/libgomp.c/pr48591.c: Likewise.
14532 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
14534 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
14535 GNU/Hurd, as done for Linux-based systems.
14537 * config/posix/ptrlock.h: Fix comment.
14539 2013-05-27 Tobias Burnus <burnus@net-b.de>
14542 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
14543 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
14544 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
14545 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
14546 omp_destroy_nest_lock): Correct arguments to match the one in
14548 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
14549 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
14550 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
14551 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
14553 2013-05-16 Jakub Jelinek <jakub@redhat.com>
14555 * testsuite/libgomp.c/loop-13.c: New test.
14556 * testsuite/libgomp.c/loop-14.c: New test.
14557 * testsuite/libgomp.c/loop-15.c: New test.
14558 * testsuite/libgomp.c++/loop-13.C: New test.
14559 * testsuite/libgomp.c++/loop-14.C: New test.
14560 * testsuite/libgomp.c++/loop-15.C: New test.
14562 2013-02-06 Jakub Jelinek <jakub@redhat.com>
14564 PR middle-end/56217
14565 * testsuite/libgomp.c++/pr56217.C: New test.
14567 2013-02-01 Alan Modra <amodra@gmail.com>
14569 * task.c (GOMP_task, GOMP_taskwait): Comment.
14571 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
14572 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
14575 * config/linux/wait.h (do_spin): Use atomic load for addr.
14576 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
14577 for intptr and ptrlock.
14578 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
14581 2013-01-22 Alan Modra <amodra@gmail.com>
14585 * task.c (GOMP_task): Revert 2011-12-09 change.
14586 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
14587 barrier to read task->children..
14588 (gomp_barrier_handle_tasks): ..and matching atomic store with
14589 release barrier here when setting parent->children to NULL.
14591 2013-01-16 Jakub Jelinek <jakub@redhat.com>
14592 Tobias Burnus <burnus@net-b.de>
14595 * testsuite/libgomp.fortran/fortran.exp: Use
14596 -fintrinsic-modules-path= instead of
14597 -fintrinsic-modules-path.
14599 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
14601 Update copyright years.
14603 2012-12-19 Tobias Burnus <burnus@net-b.de>
14605 * testsuite/libgomp.fortran/fortran.exp: Set
14606 -fintrinsic-modules-path.
14608 2012-12-19 Tobias Burnus <burnus@net-b.de>
14610 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
14611 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
14613 2012-11-21 Jakub Jelinek <jakub@redhat.com>
14616 * team.c (gomp_free_thread): Decrease gomp_managed_threads
14617 if pool had any threads_used.
14619 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
14621 * testsuite/libgomp.c++/pr24455.C: Use
14622 -Wl,-undefined,dynamic_lookup on darwin.
14624 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
14626 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
14628 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
14630 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
14632 2012-10-23 Ian Bolton <ian.bolton@arm.com>
14633 Jim MacArthur <jim.macarthur@arm.com>
14634 Marcus Shawcroft <marcus.shawcroft@arm.com>
14635 Nigel Stephens <nigel.stephens@arm.com>
14636 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14637 Richard Earnshaw <rearnsha@arm.com>
14638 Sofiane Naci <sofiane.naci@arm.com>
14639 Stephen Thomas <stephen.thomas@arm.com>
14640 Tejas Belagod <tejas.belagod@arm.com>
14641 Yufeng Zhang <yufeng.zhang@arm.com>
14643 * configure.tgt: Add AArch64.
14645 2012-10-04 Jason Merrill <jason@redhat.com>
14647 * testsuite/libgomp.c++/tls-init1.C: New.
14649 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
14651 * configure: Regenerated.
14653 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
14655 * config/linux/mips/futex.h (sys_futex0): Change to static
14656 function with noinline, nomips16 attributes under MIPS16. Adjust
14657 asm statement to place 'li v0,SYS_futex' immediately before
14660 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
14662 * libgomp.texi (Library Index): Renamed from "Index" to prevent
14663 conflict with index.html on case-insensitive file systems.
14665 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
14667 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
14668 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
14670 2012-07-02 Richard Guenther <rguenther@suse.de>
14671 Michael Matz <matz@suse.de>
14672 Tobias Grosser <tobias@grosser.es>
14673 Sebastian Pop <sebpop@gmail.com>
14675 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
14676 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14677 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14678 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14680 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
14682 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
14684 2012-06-22 Richard Guenther <rguenther@suse.de>
14686 Merge from graphite branch
14687 2012-01-13 Tobias Grosser <tobias@grosser.es>
14689 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
14690 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14692 2012-06-07 Jakub Jelinek <jakub@redhat.com>
14694 PR middle-end/53580
14695 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
14696 use GOMP_barrier () call instead.
14697 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14698 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14699 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
14700 call GOMP_barrier instead.
14701 * testsuite/libgomp.fortran/vla5.f90: Likewise.
14703 2012-06-06 Jakub Jelinek <jakub@redhat.com>
14706 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
14707 argument to memset call.
14709 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
14711 * configure: Regenerated.
14713 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14715 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
14717 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
14720 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
14722 2012-03-22 Jakub Jelinek <jakub@redhat.com>
14724 PR middle-end/52547
14725 * testsuite/libgomp.c/pr52547.c: New test.
14727 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14729 * testsuite/lib/libgomp.exp: load fortran-modules.exp
14731 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14733 * configure.tgt (mips-sgi-irix6*): Remove.
14735 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14737 * configure.tgt (alpha*-dec-osf*): Remove.
14739 * config/osf/sem.h: Remove.
14740 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
14742 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
14744 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
14746 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14749 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
14750 Remove ENABLE_SYMVERS_SOL2.
14751 * configure: Regenerate.
14752 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
14753 (PREPROCESS): New variable.
14754 (libgomp.ver): New target.
14755 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
14756 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
14757 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
14759 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
14760 * Makefile.in: Regenerate.
14762 2012-02-14 Walter Lee <walt@tilera.com>
14764 * configure.tgt: Handle tilegx and tilepro.
14765 * config/linux/tile/futex.h: New file.
14767 2012-02-08 Richard Guenther <rguenther@suse.de>
14769 PR tree-optimization/46886
14770 * testsuite/libgomp.c/pr46886.c: New testcase.
14772 2012-01-25 Matthias Klose <doko@ubuntu.com>
14774 * config/linux/arm: Remove empty directory.
14775 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
14777 2011-12-09 Alan Modra <amodra@gmail.com>
14780 * task.c (GOMP_taskwait): Don't access task->children outside of
14781 task_lock mutex region.
14782 (GOMP_task): Likewise.
14784 2011-12-06 Jakub Jelinek <jakub@redhat.com>
14787 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
14789 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14790 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14791 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14792 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14793 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14795 2011-12-02 Alan Modra <amodra@gmail.com>
14797 * config/linux/affinity.c: Use atomic rather than sync builtin.
14798 * config/linux/lock.c: Likewise.
14799 * config/linux/ptrlock.h: Likewise.
14800 * config/linux/ptrlock.c: Likewise.
14801 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
14802 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
14803 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
14804 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
14805 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
14806 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
14807 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
14808 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
14809 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
14810 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
14812 2011-11-30 Alan Modra <amodra@gmail.com>
14815 * config/linux/bar.h: Use atomic rather than sync builtins.
14816 * config/linux/bar.c: Likewise. Add missing acquire
14817 synchronisation on generation field.
14818 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
14821 2011-11-30 Alan Modra <amodra@gmail.com>
14823 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
14824 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
14825 * config/linux/mutex.h: Use atomic rather than sync builtins.
14826 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
14827 * config/linux/omp-lock.h: Comment fix.
14828 * config/linux/arm/mutex.h: Delete.
14829 * config/linux/powerpc/mutex.h: Delete.
14830 * config/linux/ia64/mutex.h: Delete.
14831 * config/linux/mips/mutex.h: Delete.
14833 2011-11-30 Alan Modra <amodra@gmail.com>
14836 * config/linux/sem.h: Rewrite.
14837 * config/linux/sem.c: Rewrite.
14839 2011-11-28 Richard Henderson <rth@redhat.com>
14841 * libgomp.h (enum memmodel): New.
14843 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
14845 * configure: Regenerate.
14847 2011-10-10 Matthias Klose <doko@ubuntu.com>
14849 * config/posix95: Remove empty directory.
14851 2011-08-26 Jakub Jelinek <jakub@redhat.com>
14853 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
14855 2011-08-19 Jakub Jelinek <jakub@redhat.com>
14858 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
14859 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
14861 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14863 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
14865 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14868 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
14870 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
14872 * config/linux/proc.h: New.
14873 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
14874 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
14875 (gomp_init_num_threads): Update call to cpuset_popcount.
14876 (get_num_procs): Ditto.
14877 * config/linux/affinity.c (gomp_init_affinity): Call
14878 gomp_cpuset_popcount.
14880 2011-08-02 Jakub Jelinek <jakub@redhat.com>
14884 * omp.h.in (omp_in_final): New prototype.
14885 * omp_lib.f90.in (omp_in_final): New interface.
14886 (omp_integer_kind, omp_logical_kind): Remove
14887 and replace all its uses in the module with 4.
14888 (openmp_version): Change to 201107.
14889 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
14890 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
14891 kind for the parameters.
14892 (omp_in_final): New external.
14893 (openmp_version): Change to 201107.
14894 * task.c (omp_in_final): New function.
14895 (gomp_init_task): Initialize final_task.
14896 (GOMP_task): Remove unused attribute from flags. Handle final
14898 (GOMP_taskyield): New function.
14899 (omp_in_final): Return true if if (false) or final (true) task
14900 or descendant of final (true).
14901 * fortran.c (omp_in_final_): New function.
14902 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
14903 (GOMP_3.0): Export GOMP_taskyield.
14904 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
14906 (parse_unsigned_long_list): New function.
14907 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
14908 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
14909 even if parse_affinity returned false.
14910 * config/linux/affinity.c (gomp_init_affinity): Handle
14911 gomp_cpu_affinity_len == 0.
14912 * libgomp_g.h (GOMP_taskyield): New prototype.
14913 * libgomp.h (struct gomp_task): Add final_task field.
14914 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
14915 * team.c (gomp_team_start): Override new task's nthreads_var icv
14916 if list form OMP_NUM_THREADS has been used and it has value for
14917 the new nesting level.
14919 * testsuite/libgomp.c/atomic-11.c: New test.
14920 * testsuite/libgomp.c/atomic-12.c: New test.
14921 * testsuite/libgomp.c/atomic-13.c: New test.
14922 * testsuite/libgomp.c/atomic-14.c: New test.
14923 * testsuite/libgomp.c/reduction-6.c: New test.
14924 * testsuite/libgomp.c/task-5.c: New test.
14925 * testsuite/libgomp.c++/atomic-2.C: New test.
14926 * testsuite/libgomp.c++/atomic-3.C: New test.
14927 * testsuite/libgomp.c++/atomic-4.C: New test.
14928 * testsuite/libgomp.c++/atomic-5.C: New test.
14929 * testsuite/libgomp.c++/atomic-6.C: New test.
14930 * testsuite/libgomp.c++/atomic-7.C: New test.
14931 * testsuite/libgomp.c++/atomic-8.C: New test.
14932 * testsuite/libgomp.c++/atomic-9.C: New test.
14933 * testsuite/libgomp.c++/task-8.C: New test.
14934 * testsuite/libgomp.c++/reduction-4.C: New test.
14935 * testsuite/libgomp.fortran/allocatable7.f90: New test.
14936 * testsuite/libgomp.fortran/allocatable8.f90: New test.
14937 * testsuite/libgomp.fortran/crayptr3.f90: New test.
14938 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
14939 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
14940 * testsuite/libgomp.fortran/pointer1.f90: New test.
14941 * testsuite/libgomp.fortran/pointer2.f90: New test.
14942 * testsuite/libgomp.fortran/task4.f90: New test.
14944 2011-08-02 Tobias Burnus <burnus@net-b.de>
14946 * libgomp.texi: Update OpenMP spec references to 3.1.
14947 (omp_in_final,OMP_PROC_BIND): New sections.
14948 (OMP_NUM_THREADS): Document that the value can be now a list.
14949 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
14951 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
14953 * config/linux/x86/futex.h: Check __x86_64__ instead of
14956 2011-07-29 Jakub Jelinek <jakub@redhat.com>
14958 PR middle-end/49897
14959 PR middle-end/49898
14960 * testsuite/libgomp.c/pr49897-1.c: New test.
14961 * testsuite/libgomp.c/pr49897-2.c: New test.
14962 * testsuite/libgomp.c/pr49898-1.c: New test.
14963 * testsuite/libgomp.c/pr49898-2.c: New test.
14965 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
14967 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
14968 for ia32 instead of ilp32.
14970 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
14971 * testsuite/libgomp.c/atomic-6.c: Likewise.
14973 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
14975 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
14976 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
14978 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14981 * config/osf/sem.h: New file.
14982 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
14984 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14987 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
14990 2011-07-15 Jakub Jelinek <jakub@redhat.com>
14992 * config/linux/wait.h (do_spin): New inline, largely copied
14993 from do_wait, just don't do futex_wait here, instead return true if
14995 (do_wait): Implement using do_spin.
14996 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
14998 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
14999 __sync_bool_compare_and_swap, pass the oldval to
15000 gomp_mutex_lock_slow.
15001 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
15002 If all mutex contenders are just spinning and not sleeping, don't
15003 change state to 2 unnecessarily. Optimize the loop when state has
15004 already become 2 to use just one atomic operation per loop instead
15006 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
15008 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
15009 __sync_bool_compare_and_swap, pass the oldval to
15010 gomp_mutex_lock_slow.
15012 2011-06-22 Jakub Jelinek <jakub@redhat.com>
15015 * iter.c (gomp_iter_static_next): For chunk size 0
15016 only use n ceil/ nthreads size for the first
15017 n % nthreads threads in the team instead of
15018 all threads except for the last few ones which
15019 get less work or none at all.
15020 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
15021 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
15022 chunk argument, set run_sched_modifier to 0 for static
15023 resp. 1 for other kinds. If chunk argument is 0
15024 and not static, set value to 1.
15026 2011-05-19 Jakub Jelinek <jakub@redhat.com>
15029 * testsuite/libgomp.c++/pr49043.C: New test.
15032 * testsuite/libgomp.c++/pr48869.C: New test.
15034 2011-05-06 Jakub Jelinek <jakub@redhat.com>
15037 * fortran.c: Include limits.h.
15039 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
15041 (omp_set_num_threads_8_, omp_set_schedule_8_,
15042 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
15043 omp_get_team_size_8_): Use TO_INT macro.
15044 * testsuite/libgomp.fortran/pr48894.f90: New test.
15046 2011-04-13 Jakub Jelinek <jakub@redhat.com>
15048 PR middle-end/48591
15049 * testsuite/libgomp.c/pr48591.c: New test.
15051 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15054 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
15055 * configure: Regenerate.
15057 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15060 * testsuite/libgomp.fortran/task3.f90: New test.
15062 2011-02-24 Tobias Burnus <burnus@net-b.de>
15064 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
15066 2011-02-23 Jakub Jelinek <jakub@redhat.com>
15069 * libgomp.texi (omp_get_wtime): Don't say time in the past
15070 must be Unix Epoch.
15072 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15075 * testsuite/libgomp.fortran/fortran.exp: Check for both
15076 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
15077 but $blddir != "", still append ${blddir}/${lang_library_path}
15078 to ld_library_path.
15080 2011-02-16 Tobias Burnus <burnus@net-b.de>
15083 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
15084 of libquadmath.a before adding its libpath to ldflags.
15086 2011-02-14 Jakub Jelinek <jakub@redhat.com>
15089 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
15090 to FUTEX_WAIT futex syscall.
15091 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
15093 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15095 * configure: Regenerate.
15097 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
15100 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
15102 2011-01-16 Gerald Pfeifer
15104 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
15106 2010-12-14 Jakub Jelinek <jakub@redhat.com>
15109 * libgomp.fortran/allocatable6.f90: New test.
15111 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15113 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
15114 * configure: Regenerate.
15116 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
15120 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
15121 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
15122 * aclocal.m4: Regenerate.
15123 * configure: Regenerate.
15124 * Makefile.in: Regenerate.
15125 * testsuite/Makefile.in: Regenerate.
15127 2010-12-02 Jakub Jelinek <jakub@redhat.com>
15130 * libgomp.fortran/pr46753.f90: New test.
15133 * env.c (initialize_env): Default to spin count 300000
15134 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
15138 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
15139 at the end if sync builtins aren't supported.
15141 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15143 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
15145 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15147 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
15149 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
15151 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
15153 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15154 Tobias Burnus <burnus@net-b.de>
15158 * configure: Regenerate.
15160 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
15162 * config/linux/futex.h: New.
15163 * config/linux/arm/mutex.h: New.
15164 * configure.tgt (arm*-*-linux*): Add config path.
15166 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
15168 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15170 2010-09-23 Tobias Burnus <burnus@net-b.de>
15172 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
15173 Change Fortran datatype to LOGICAL.
15174 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
15175 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
15177 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15179 * configure: Regenerate.
15181 2010-07-26 Jakub Jelinek <jakub@redhat.com>
15183 * libgomp.texi: Add function keyword to a couple of Fortran
15184 interfaces, use integer instead of int for Fortran.
15186 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
15188 * libgomp.texi: Fix spelling and pasto problems throughout.
15189 Adjust prototypes to match code.
15191 2010-07-24 Tobias Burnus <burnus@net-b.de>
15193 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
15194 silence -fwhole-file warning.
15196 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15198 * configure.tgt (*-*-solaris2.[56]*): Removed.
15200 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15202 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
15203 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
15204 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
15205 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
15206 targetting solaris2*.
15207 * configure: Regenerate.
15208 * config.h.in: Regenerate.
15210 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
15211 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
15212 Add libgomp_version_dep.
15213 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
15215 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
15216 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
15217 * Makefile.in: Regenerate.
15219 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
15220 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15221 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
15222 to common block, protected by
15223 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15225 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
15227 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
15229 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
15232 * configure: Regenerate.
15234 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15237 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
15238 * configure: Regenerate.
15239 * Makefile.in: Regenerate.
15240 * testsuite/Makefile.in: Regenerate.
15242 2010-04-26 Jakub Jelinek <jakub@redhat.com>
15245 * testsuite/libgomp.c/pr43893.c: New test.
15246 * testsuite/libgomp.c++/pr43893.C: New test.
15248 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15250 PR middle-end/43570
15251 * testsuite/libgomp.fortran/vla8.f90: New test.
15253 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15256 * config/linux/affinity.c (gomp_init_affinity): Decrease
15257 gomp_available_cpus if affinity mask confines the process to fewer
15259 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
15260 non-NULL, just return gomp_available_cpus.
15263 * sections.c (gomp_sections_init): Initialize ws->mode.
15265 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15267 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
15268 not unused bar variable.
15269 * configure: Regenerate.
15271 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15273 * Makefile.in: Regenerate.
15274 * aclocal.m4: Regenerate.
15275 * testsuite/Makefile.in: Regenerate.
15277 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15280 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
15281 (initialize_env): Adjust callers.
15282 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
15283 when the argument is 0.
15285 * testsuite/libgomp.c/pr42942.c: New test.
15287 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15289 PR middle-end/42644
15290 PR middle-end/42130
15291 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15292 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
15294 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15296 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
15297 * testsuite/libgomp.c++/task-6.C: Likewise.
15299 2010-01-28 Steve Ellcey <sje@cup.hp.com>
15301 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
15303 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
15305 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
15306 * configure: Regenerate.
15308 2010-01-26 Jakub Jelinek <jakub@redhat.com>
15311 * testsuite/libgomp.fortran/allocatable5.f90: New test.
15313 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
15315 * configure.ac: Test for executability of GFORTRAN.
15316 * configure: Regenerate.
15318 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15320 * configure: Regenerate.
15322 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15325 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
15327 2010-01-03 Richard Guenther <rguenther@suse.de>
15329 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
15331 2009-12-23 Sebastian Pop <sebpop@gmail.com>
15333 * testsuite/libgomp.graphite/pr4118.c: New.
15335 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15337 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
15338 for darwin, protect the test with require-effective-target tls_runtime.
15339 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
15341 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15344 * testsuite/lib/libgomp.exp: Provide -B options to allow for
15345 link spec %s substitutions for static libraries.
15347 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
15350 * libgomp.graphite/force-parallel-2.c: Reduce array size.
15352 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15354 * Makefile.in: Regenerate.
15355 * configure: Regenerate.
15356 * testsuite/Makefile.in: Regenerate.
15358 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
15360 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
15361 settings for LC_ALL and LANG.
15363 2009-11-25 Jakub Jelinek <jakub@redhat.com>
15366 * testsuite/libgomp.fortran/pr42162.f90: New test.
15368 2009-11-13 Jakub Jelinek <jakub@redhat.com>
15370 PR middle-end/42029
15371 * testsuite/libgomp.c/pr42029.c: New test.
15373 2009-10-26 Jakub Jelinek <jakub@redhat.com>
15375 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
15376 *s. Accept ld version without text in ()s.
15377 * configure: Regenerated.
15379 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
15381 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
15383 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15386 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
15387 or a hyphen (happens with fortran language disabled).
15388 * configure: Regenerate.
15390 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15392 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
15393 use sed script portable to Solaris /bin/sed for extracting ld
15395 * configure: Regenerate.
15397 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
15399 * testsuite/libgomp.graphite/bounds.c: New test.
15401 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15403 * Makefile.am (libgomp_la_LINK): New.
15404 * Makefile.in: Regenerate.
15406 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15408 * configure.ac (AC_PREREQ): Bump to 2.64.
15410 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15412 * Makefile.am (install-html, install-pdf): Remove.
15413 * Makefile.in: Regenerate.
15415 * Makefile.in: Regenerate.
15416 * aclocal.m4: Regenerate.
15417 * config.h.in: Regenerate.
15418 * configure: Regenerate.
15419 * testsuite/Makefile.in: Regenerate.
15421 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15423 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
15424 * Makefile.in: Regenerate.
15426 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
15428 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
15429 * Makefile.in: Regenerate.
15431 2009-08-19 Tobias Burnus <burnus@net-b.de>
15434 omp_lib.h.in: Fix -std=f95 errors.
15436 2009-08-14 David Edelsohn <edelsohn@gnu.org>
15438 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
15439 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
15440 * testsuite/libgomp.graphite/graphite.exp: New.
15442 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
15444 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
15447 2009-08-04 David Daney <ddaney@caviumnetworks.com>
15449 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
15450 needed memory barrier semantics.
15451 * config/linux/mips/mutex.h: New file.
15453 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15455 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
15457 2009-07-16 Joseph Myers <joseph@codesourcery.com>
15459 * configure: Regenerate.
15461 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
15466 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
15467 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
15468 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
15470 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
15472 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
15473 options when choosing a multilib.
15475 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
15477 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
15478 ld_library_path. Use add_path. Add just find_libgcc_s to
15479 ld_library_path, not every libgcc multilib directory.
15480 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
15481 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
15482 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
15484 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
15486 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
15488 * Makefile.am (LTLDFLAGS): Define.
15490 * Makefile.in: Regenerate.
15492 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
15495 * testsuite/libgomp.fortran/fortran.exp: Don't link with
15496 libgfortranbegin, check existence of libgfortran.a instead of
15497 libgfortranbegin.a.
15499 2009-05-20 Jakub Jelinek <jakub@redhat.com>
15502 * team.c (gomp_thread_start): Destroy thr->release semaphore.
15503 (gomp_free_pool_helper): Likewise.
15505 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
15506 Jakub Jelinek <jakub@redhat.com>
15509 * testsuite/libgomp.fortran/workshare2.f90: New test.
15511 2009-04-09 Nick Clifton <nickc@redhat.com>
15513 * iter.c: Change copyright header to refer to version 3 of the
15514 GNU General Public License with version 3.1 of the GCC Runtime
15515 Library Exception and to point readers at the COPYING3 and
15516 COPYING3.RUNTIME files and the FSF's license web page.
15517 * alloc.c: Likewise.
15518 * barrier.c: Likewise.
15519 * config/bsd/proc.c: Likewise.
15520 * config/linux/affinity.c: Likewise.
15521 * config/linux/alpha/futex.h: Likewise.
15522 * config/linux/bar.c: Likewise.
15523 * config/linux/bar.h: Likewise.
15524 * config/linux/ia64/futex.h: Likewise.
15525 * config/linux/ia64/mutex.h: Likewise.
15526 * config/linux/lock.c: Likewise.
15527 * config/linux/mips/futex.h: Likewise.
15528 * config/linux/mutex.c: Likewise.
15529 * config/linux/mutex.h: Likewise.
15530 * config/linux/powerpc/futex.h: Likewise.
15531 * config/linux/proc.c: Likewise.
15532 * config/linux/ptrlock.c: Likewise.
15533 * config/linux/ptrlock.h: Likewise.
15534 * config/linux/s390/futex.h: Likewise.
15535 * config/linux/sem.c: Likewise.
15536 * config/linux/sem.h: Likewise.
15537 * config/linux/sparc/futex.h: Likewise.
15538 * config/linux/wait.h: Likewise.
15539 * config/linux/x86/futex.h: Likewise.
15540 * config/mingw32/proc.c: Likewise.
15541 * config/mingw32/time.c: Likewise.
15542 * config/posix/affinity.c: Likewise.
15543 * config/posix/bar.c: Likewise.
15544 * config/posix/bar.h: Likewise.
15545 * config/posix/lock.c: Likewise.
15546 * config/posix/mutex.h: Likewise.
15547 * config/posix/proc.c: Likewise.
15548 * config/posix/ptrlock.h: Likewise.
15549 * config/posix/sem.c: Likewise.
15550 * config/posix/sem.h: Likewise.
15551 * config/posix/time.c: Likewise.
15552 * config/posix95/lock.c: Likewise.
15553 * critical.c: Likewise.
15555 * error.c: Likewise.
15556 * fortran.c: Likewise.
15557 * iter_ull.c: Likewise.
15558 * libgomp.h: Likewise.
15559 * libgomp_f.h.in: Likewise.
15560 * libgomp_g.h: Likewise.
15561 * loop.c: Likewise.
15562 * loop_ull.c: Likewise.
15563 * omp.h.in: Likewise.
15564 * omp_lib.f90.in: Likewise.
15565 * omp_lib.h.in: Likewise.
15566 * ordered.c: Likewise.
15567 * parallel.c: Likewise.
15568 * sections.c: Likewise.
15569 * single.c: Likewise.
15570 * task.c: Likewise.
15571 * team.c: Likewise.
15572 * work.c: Likewise.
15574 2009-04-09 Jakub Jelinek <jakub@redhat.com>
15576 * testsuite/config/default.exp: Change copyright header to refer to
15577 version 3 of the GNU General Public License and to point readers
15578 at the COPYING3 file and the FSF's license web page.
15580 2009-04-08 Jakub Jelinek <jakub@redhat.com>
15582 PR middle-end/39573
15583 * libgomp.c++/pr39573.C: New test.
15585 2009-04-01 Jakub Jelinek <jakub@redhat.com>
15588 * testsuite/libgomp.c/pr39591-1.c: New test.
15589 * testsuite/libgomp.c/pr39591-2.c: New test.
15590 * testsuite/libgomp.c/pr39591-3.c: New test.
15592 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
15594 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
15595 * testsuite/libgomp.c/atomic-6.c: Ditto.
15597 2009-03-23 Jakub Jelinek <jakub@redhat.com>
15600 * testsuite/libgomp.c/loop-12.c: New test.
15601 * testsuite/libgomp.c/loop-11.c: New test.
15602 * testsuite/libgomp.c++/loop-11.C: New test.
15603 * testsuite/libgomp.c++/loop-12.C: New test.
15604 * testsuite/libgomp.c++/for-8.C: New test.
15606 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15608 * configure: Regenerate.
15610 2009-02-11 Jakub Jelinek <jakub@redhat.com>
15612 PR middle-end/39154
15613 * testsuite/libgomp.c/pr39154.c: New test.
15615 2009-01-30 Ian Lance Taylor <iant@google.com>
15617 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
15618 libgomp_ld_is_gold. Get gold version number.
15619 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
15620 * configure: Rebuild.
15622 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15624 * testsuite/lib/libgomp.exp: Add -B option for targets that
15625 use libgfortran.a%s in their specs.
15627 2009-01-07 Jakub Jelinek <jakub@redhat.com>
15630 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
15631 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
15632 HAVE_AS_SYMVER_DIRECTIVE is not defined.
15633 * configure: Regenerated.
15634 * config.h.in: Likewise.
15636 2008-12-28 Jakub Jelinek <jakub@redhat.com>
15639 * testsuite/libgomp.c/pr38650.c: New test.
15640 * testsuite/libgomp.c++/pr38650.C: New test.
15642 2008-12-27 Jakub Jelinek <jakub@redhat.com>
15644 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
15646 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
15648 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
15650 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15652 * configure: Regenerate.
15654 2008-12-08 Jakub Jelinek <jakub@redhat.com>
15656 PR middle-end/36802
15657 * testsuite/libgomp.c/pr36802-1.c: New test.
15658 * testsuite/libgomp.c/pr36802-2.c: New test.
15659 * testsuite/libgomp.c/pr36802-3.c: New test.
15661 2008-12-01 Janis Johnson <janis187@us.ibm.com>
15664 * config/linux/powerpc/mutex.h: New.
15666 2008-12-01 Jakub Jelinek <jakub@redhat.com>
15669 * testsuite/libgomp.c++/for-7.C: New test.
15672 * testsuite/libgomp.c++/for-6.C: New test.
15674 2008-11-26 Janis Johnson <janis187@us.ibm.com>
15677 * testsuite/lib/libgomp.exp: Include new timeout library files.
15678 (libgomp_target_compile): Set timeout value from new proc.
15680 2008-11-13 Steve Ellcey <sje@cup.hp.com>
15683 * config/linux/ia64/mutex.h: New.
15685 2008-11-04 Tobias Burnus <burnus@net-b.de>
15688 * libgomp.texi (Runtime library routines, environment variables):
15689 Update for OpenMP version 3.0.
15691 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
15692 Steve Ellcey <sje@cup.hp.com>
15694 * configure: Regenerate for new libtool.
15695 * Makefile.in: Ditto.
15696 * testsuite/Makefile.in: Ditto.
15698 2008-09-19 Jakub Jelinek <jakub@redhat.com>
15699 Andreas Tobler <a.tobler@schweiz.org>
15701 * config/bsd/proc.c: New file.
15702 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
15703 * configure.ac: Check for header <sys/sysctl.h>
15704 * configure: Regenerate.
15705 * config.h.in: Likewise.
15707 2008-09-05 Janis Johnson <janis187@us.ibm.com>
15709 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
15711 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
15713 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
15714 * Makefile.in: Regenerated.
15715 * testsuite/Makefile.in: Regenerated.
15717 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
15719 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
15720 depend on blddir if blddir exists.
15721 (libgomp_target_compile): Likewise.
15722 * testsuite/libgomp.c++/c++.exp: Likewise.
15723 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15725 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15727 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
15728 Do not list GPL as Invariant Section.
15730 2008-07-28 Ilie Garbacea <ilie@mips.com>
15731 Chao-ying Fu <fu@mips.com>
15733 * configure.tgt: Enable futex for MIPS.
15734 * config/linux/mips/futex.h: New file.
15736 2008-07-16 Jakub Jelinek <jakub@redhat.com>
15738 * team.c (gomp_team_end): Free team immediately if it has
15741 2008-07-08 David Edelsohn <edelsohn@gnu.org>
15743 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
15744 * testsuite/libgomp.fortran/fortran.exp: Same.
15745 * testsuite/libgomp.c/c.exp: Same.
15746 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
15747 directory to library path first.
15749 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
15751 * env.c (parse_stacksize): Add cast to avoid warning.
15752 (parse_spincount): Likewise.
15754 2008-06-27 Jakub Jelinek <jakub@redhat.com>
15756 * testsuite/libgomp.c/loop-10.c: New test.
15757 * libgomp.c/loop-3.c (main): Add lastprivate clause.
15758 * libgomp.c++/loop-6.C (main): Likewise.
15761 * testsuite/libgomp.c/debug-1.c: New test.
15763 2008-06-19 Jakub Jelinek <jakub@redhat.com>
15765 * testsuite/libgomp.c/nqueens-1.c: New test.
15768 * testsuite/libgomp.c++/task-7.C: New function.
15770 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15772 * configure: Regenerate.
15774 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15776 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
15777 mutex when HAVE_SYNC_BUILTINS isn't defined.
15779 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15781 * libgomp.texi (omp_test_lock): Fix typo.
15783 2008-06-12 Tobias Burnus <burnus@net-b.de>
15785 * omp_lib.f90.in: Add "implicit none".
15787 2008-06-12 Jakub Jelinek <jakub@redhat.com>
15789 PR middle-end/36506
15790 * testsuite/libgomp.c/reduction-5.c: New test.
15792 2008-06-11 Jakub Jelinek <jakub@redhat.com>
15794 * libgomp.h (struct gomp_task): Add in_tied_task field.
15795 * task.c (gomp_init_task): Initialize it.
15796 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
15797 unconditionally. Don't call gomp_team_barrier_wake if
15798 current task is implicit or if(0) from implicit and number of
15799 running tasks is equal to nthreads - 1.
15802 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
15803 omp_get_team_size_8): Fix pastos.
15806 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
15807 * configure: Regenerated.
15808 * config.h.in: Regenerated.
15809 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
15812 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
15815 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
15816 (GOMP_loop_ull_dynamic_start): Likewise.
15817 (GOMP_loop_ull_guided_start): Likewise.
15818 (GOMP_loop_ull_ordered_static_start): Likewise.
15819 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
15820 (GOMP_loop_ull_ordered_guided_start): Likewise.
15822 2008-06-06 Jakub Jelinek <jakub@redhat.com>
15823 Richard Henderson <rth@redhat.com>
15824 Ulrich Drepper <drepper@redhat.com>
15825 Jakob Blomer <jakob.blomer@ira.uka.de>
15827 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
15828 Substitute also OMP_*LOCK_25*.
15829 * configure: Regenerated.
15830 * config.h.in: Regenerated.
15831 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
15832 ptrlock.c and task.c.
15833 * Makefile.in: Regenerated.
15834 * testsuite/Makefile.in: Regenerated.
15835 * task.c: New file.
15836 * loop_ull.c: New file.
15837 * iter_ull.c: New file.
15838 * libgomp.h: Include ptrlock.h.
15839 (enum gomp_task_kind): New type.
15840 (struct gomp_team): Add task_lock, task_queue, task_count,
15841 task_running_count, single_count fields. Add
15842 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
15843 Remove work_share_lock, generation_mask,
15844 oldest_live_gen, num_live_gen and init_work_shares fields, add
15845 work work_share_list_alloc, work_share_list_free and work_share_chunk
15846 fields. Change work_shares from pointer to pointers into an array.
15847 Change ordered_release field into gomp_sem_t ** from flexible array
15848 member. Add implicit_task and initial_work_shares fields.
15849 Move close to the end of the struct.
15850 (struct gomp_team_state): Add single_count, last_work_share,
15851 active_level and level fields, remove work_share_generation.
15852 (gomp_barrier_handle_tasks): New prototype.
15853 (gomp_finish_task): New inline function.
15854 (struct gomp_work_share): Move chunk_size, end, incr into
15855 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
15856 next_ll fields. Reshuffle fields. Add next_alloc,
15857 next_ws, next_free and inline_ordered_team_ids fields, change
15858 ordered_team_ids into pointer from flexible array member.
15859 Add mode field. Put lock and next into a different cache line
15860 from most of the write-once fields.
15861 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
15862 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
15863 gomp_iter_ull_guided_next): New prototypes.
15864 (gomp_new_icv): New prototype.
15865 (struct gomp_thread): Add thread_pool and task fields.
15866 (struct gomp_thread_pool): New type.
15867 (gomp_new_team): New prototype.
15868 (gomp_team_start): Change type of last argument.
15869 (gomp_new_work_share): Removed.
15870 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
15871 (gomp_work_share_init_done): New static inline.
15872 (gomp_throttled_spin_count_var, gomp_available_cpus,
15873 gomp_managed_threads): New extern decls.
15874 (gomp_init_task): New prototype.
15875 (gomp_spin_count_var): New extern var decl.
15876 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
15877 or no alias support, or if not PIC.
15878 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
15879 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
15880 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
15881 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
15882 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
15883 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
15884 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
15885 gomp_test_nest_lock_25): New prototypes.
15886 (omp_lock_symver, strong_alias): Define.
15887 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
15889 (gomp_end_task): New.
15890 (struct gomp_task_icv, gomp_global_icv): New.
15891 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
15892 (struct gomp_task): New.
15893 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
15894 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
15896 (gomp_schedule_type): Reorder enum to match
15898 * team.c (struct gomp_thread_start_data): Add thread_pool and task
15900 (gomp_thread_start): Add gomp_team_barrier_wait call.
15901 For non-nested case remove clearing of docked thread thr fields.
15902 Use pool fields instead of global gomp_* variables. Use
15903 gomp_barrier_wait_last when needed. Initialize ts.active_level.
15904 Create tasks for each member thread.
15905 (free_team): Only destroy team barrier, task_lock here and free it.
15906 (gomp_free_thread): Free last_team if non-NULL.
15907 (gomp_team_end): Call gomp_team_barrier_wait instead of
15908 gomp_barrier_wait. For nested case call one extra
15909 gomp_barrier_wait. Move here some destruction from free_team.
15910 Call free_team on pool->last_team if any, rather than freeing
15911 current team. Destroy work_share_list_free_lock ifndef
15912 HAVE_SYNC_BUILTINS.
15913 (gomp_new_icv): New function.
15914 (gomp_threads, gomp_threads_size, gomp_threads_used,
15915 gomp_threads_dock): Removed.
15916 (gomp_thread_destructor): New variable.
15917 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
15919 (gomp_team_start): Create new pool if current thread doesn't have
15920 one. Use pool fields instead of global gomp_* variables.
15921 Initialize thread_pool field for new threads. Clear single_count.
15922 Change last argument from ws to team, don't create
15923 new team, set ts.work_share to &team->work_shares[0] and clear
15924 ts.last_work_share. Don't clear ts.work_share_generation.
15925 If number of threads changed, adjust atomically gomp_managed_threads.
15926 Use gomp_init_task instead of gomp_new_task,
15927 set thr->task to the corresponding implicit_task array entry.
15928 Create tasks for each member thread. Initialize ts.level.
15929 (initialize_team): Call pthread_key_create on
15930 gomp_thread_destructor.
15931 (team_destructor): New function.
15932 (new_team): Removed.
15933 (gomp_new_team): New function.
15934 (free_team): Free gomp_work_share blocks chained through next_alloc,
15935 instead of freeing work_shares and destroying work_share_lock.
15936 (gomp_team_end): Call gomp_fini_work_share. If number of threads
15937 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
15938 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
15939 of gomp_barrier_wait.
15940 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
15941 instead of gomp_barrier_wait. Call gomp_work_share_init_done
15942 if gomp_work_share_start returned true. Don't unlock ws->lock.
15943 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
15944 of gomp_barrier_wait.
15945 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
15946 gomp_work_share_init_done if gomp_work_share_start returned true.
15947 Don't unlock ws->lock.
15948 * work.c: Include stddef.h.
15949 (free_work_share): Use work_share_list_free_lock instead
15950 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
15951 Call gomp_fini_work_share and then either free ws if orphaned, or
15952 put it into work_share_list_free list of the current team.
15953 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
15955 (gomp_work_share_start, gomp_work_share_end,
15956 gomp_work_share_end_nowait): Rewritten.
15957 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
15958 (openmp_version): Set to 200805.
15959 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
15960 omp_sched_guided, omp_sched_auto): New parameters.
15961 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
15962 omp_set_max_active_levels, omp_get_max_active_levels,
15963 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
15964 omp_get_active_level): New interfaces.
15965 * omp_lib.h.in (openmp_version): Set to 200805.
15966 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
15967 omp_sched_guided, omp_sched_auto): New parameters.
15968 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
15969 omp_set_max_active_levels, omp_get_max_active_levels,
15970 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
15971 omp_get_active_level): New externals.
15972 * loop.c: Include limits.h.
15973 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
15975 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
15976 Likewise. Use gomp_icv.
15977 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
15978 ts.static_trip here.
15979 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
15980 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
15981 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
15982 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
15983 don't unlock ws->lock, otherwise lock it.
15984 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
15985 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
15986 (gomp_parallel_loop_start): Call gomp_new_team instead of
15987 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
15988 Adjust gomp_team_start caller. Pass 0 as second argument to
15989 gomp_resolve_num_threads.
15990 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
15991 If adding ws->chunk_size nthreads + 1 times after end won't
15992 overflow, set ws->mode to 1.
15993 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
15994 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
15995 GOMP_loop_ull_ordered_static_start,
15996 GOMP_loop_ull_ordered_dynamic_start,
15997 GOMP_loop_ull_ordered_guided_start,
15998 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
15999 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
16000 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
16001 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
16002 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
16004 * libgomp.map: Export lock routines also @@OMP_2.0.
16005 (GOMP_loop_ordered_dynamic_first,
16006 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
16007 GOMP_loop_ordered_static_first): Remove.
16008 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
16009 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
16010 GOMP_loop_ull_ordered_dynamic_next,
16011 GOMP_loop_ull_ordered_dynamic_start,
16012 GOMP_loop_ull_ordered_guided_next,
16013 GOMP_loop_ull_ordered_guided_start,
16014 GOMP_loop_ull_ordered_runtime_next,
16015 GOMP_loop_ull_ordered_runtime_start,
16016 GOMP_loop_ull_ordered_static_next,
16017 GOMP_loop_ull_ordered_static_start,
16018 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
16019 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
16020 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
16021 (omp_set_schedule, omp_get_schedule,
16022 omp_get_thread_limit, omp_set_max_active_levels,
16023 omp_get_max_active_levels, omp_get_level,
16024 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
16025 omp_set_schedule_, omp_set_schedule_8_,
16026 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16027 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16028 omp_get_max_active_levels_, omp_get_level_,
16029 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16030 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16031 New exports @@OMP_3.0.
16032 * omp.h.in (omp_sched_t): New type.
16033 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16034 omp_set_max_active_levels, omp_get_max_active_levels,
16035 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
16036 omp_get_active_level): New prototypes.
16037 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
16038 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
16039 gomp_thread_limit_var, gomp_remaining_threads_count,
16040 gomp_remaining_threads_lock): New variables.
16041 (parse_spincount): New function.
16042 (initialize_env): Call gomp_init_num_threads unconditionally.
16043 Initialize gomp_available_cpus. Call parse_spincount,
16044 initialize gomp_{,throttled_}spin_count_var
16045 depending on presence and value of OMP_WAIT_POLICY and
16046 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
16047 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
16048 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
16049 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
16050 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
16051 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16052 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16053 (gomp_global_icv): New.
16054 (parse_schedule): Use it. Parse "auto".
16055 (omp_set_num_threads): Use gomp_icv.
16056 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
16058 (omp_get_max_threads): Move from parallel.c.
16059 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16060 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
16062 (parse_stacksize, parse_wait_policy): New functions.
16063 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
16064 both wrappers for compatibility and new locks.
16065 (omp_set_schedule, omp_get_schedule,
16066 omp_get_thread_limit, omp_set_max_active_levels,
16067 omp_get_max_active_levels, omp_get_level,
16068 omp_get_ancestor_thread_num, omp_get_team_size,
16069 omp_get_active_level): New ialias_redirect.
16070 (omp_set_schedule_, omp_set_schedule_8_,
16071 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16072 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16073 omp_get_max_active_levels_, omp_get_level_,
16074 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16075 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16077 * parallel.c: Include limits.h.
16078 (gomp_resolve_num_threads): Add count argument. Rewritten.
16079 (GOMP_parallel_start): Call gomp_new_team and pass that as last
16080 argument to gomp_team_start. Pass 0 as second argument to
16081 gomp_resolve_num_threads.
16082 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
16083 if gomp_thread_limit_var != ULONG_MAX.
16084 (omp_in_parallel): Implement using ts.active_level.
16085 (omp_get_max_threads): Move to env.c.
16086 (omp_get_level, omp_get_ancestor_thread_num,
16087 omp_get_team_size, omp_get_active_level): New functions,
16089 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
16090 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
16091 gomp_iter_dynamic_next instead of the _locked variant and don't take
16092 lock around it, otherwise acquire it before calling
16093 gomp_iter_dynamic_next_locked.
16094 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
16095 gomp_iter_dynamic_next instead of the _locked variant and don't take
16097 (GOMP_parallel_sections_start): Call gomp_new_team instead of
16098 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
16099 Adjust gomp_team_start caller. Pass count as second argument to
16100 gomp_resolve_num_threads, don't adjust num_threads after the call.
16102 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
16103 ws->chunk_size by incr.
16104 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
16106 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
16108 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
16109 (omp_check_defines): Check even the compat defines.
16110 * config/linux/ptrlock.c: New file.
16111 * config/linux/ptrlock.h: New file.
16112 * config/linux/wait.h: New file.
16113 * config/posix/ptrlock.c: New file.
16114 * config/posix/ptrlock.h: New file.
16115 * config/linux/bar.h (gomp_team_barrier_wait,
16116 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16117 (gomp_team_barrier_set_task_pending,
16118 gomp_team_barrier_clear_task_pending,
16119 gomp_team_barrier_set_waiting_for_tasks,
16120 gomp_team_barrier_waiting_for_tasks,
16121 gomp_team_barrier_done): New inlines.
16122 (gomp_barrier_t): Rewritten.
16123 (gomp_barrier_state_t): New typedef.
16124 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
16125 gomp_barrier_wait_start): Rewritten.
16126 (gomp_barrier_wait_end): Change second argument to
16127 gomp_barrier_state_t.
16128 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16130 * config/linux/bar.c: Include wait.h instead of libgomp.h and
16132 (gomp_barrier_wait_end): Rewritten.
16133 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16134 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
16135 * config/posix/bar.h (gomp_barrier_t): Add generation field.
16136 (gomp_barrier_state_t): New typedef.
16137 (gomp_team_barrier_wait,
16138 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16139 (gomp_barrier_wait_start): Or all but low 2 bits from generation
16140 into the return value. Return gomp_barrier_state_t.
16141 (gomp_team_barrier_set_task_pending,
16142 gomp_team_barrier_clear_task_pending,
16143 gomp_team_barrier_set_waiting_for_tasks,
16144 gomp_team_barrier_waiting_for_tasks,
16145 gomp_team_barrier_done): New inlines.
16146 (gomp_barrier_wait_end): Change second argument to
16147 gomp_barrier_state_t.
16148 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16150 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
16151 (gomp_barrier_wait_end): Change second argument to
16152 gomp_barrier_state_t.
16153 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16154 gomp_team_barrier_wake): New functions.
16155 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
16157 (gomp_futex_wake, gomp_futex_wait): New variables.
16158 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
16159 * config/linux/lock.c: Rewrite to make locks task owned,
16160 for backwards compatibility provide the old entrypoints
16161 if symbol versioning. Include wait.h instead of libgomp.h and
16163 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
16164 * config/posix95/lock.c: Rewrite to make locks task owned,
16165 for backwards compatibility provide the old entrypoints
16166 if symbol versioning.
16167 * config/posix/lock.c: Rewrite to make locks task owned,
16168 for backwards compatibility provide the old entrypoints
16169 if symbol versioning.
16170 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
16171 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
16172 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
16173 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16174 (sys_futex0): Return error code.
16175 (futex_wake, futex_wait): If ENOSYS was returned, clear
16176 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16177 (cpu_relax, atomic_write_barrier): New static inlines.
16178 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16179 (futex_wake, futex_wait): If ENOSYS was returned, clear
16180 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16181 (cpu_relax, atomic_write_barrier): New static inlines.
16182 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16183 (sys_futex0): Return error code.
16184 (futex_wake, futex_wait): If ENOSYS was returned, clear
16185 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16186 (cpu_relax, atomic_write_barrier): New static inlines.
16187 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16188 (sys_futex0): Return error code.
16189 (futex_wake, futex_wait): If ENOSYS was returned, clear
16190 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16191 (cpu_relax, atomic_write_barrier): New static inlines.
16192 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16193 (sys_futex0): Return error code.
16194 (futex_wake, futex_wait): If ENOSYS was returned, clear
16195 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16196 (cpu_relax, atomic_write_barrier): New static inlines.
16197 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16198 (sys_futex0): Return error code.
16199 (futex_wake, futex_wait): If ENOSYS was returned, clear
16200 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16201 (cpu_relax, atomic_write_barrier): New static inlines.
16202 * config/linux/sem.c: Include wait.h instead of libgomp.h and
16204 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
16205 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
16206 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
16208 (omp_nest_lock_t): Change owner into void *, add lock field.
16209 * config/posix95/omp-lock.h: Include semaphore.h.
16210 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16211 (omp_lock_t): Use sem_t instead of mutex if semaphores
16213 (omp_nest_lock_t): Likewise. Change owner to void *.
16214 * config/posix/omp-lock.h: Include semaphore.h.
16215 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16216 (omp_lock_t): Use sem_t instead of mutex if semaphores
16218 (omp_nest_lock_t): Likewise. Add owner field.
16220 2008-06-06 Jakub Jelinek <jakub@redhat.com>
16222 * testsuite/libgomp.c/collapse-1.c: New test.
16223 * testsuite/libgomp.c/collapse-2.c: New test.
16224 * testsuite/libgomp.c/collapse-3.c: New test.
16225 * testsuite/libgomp.c/icv-1.c: New test.
16226 * testsuite/libgomp.c/icv-2.c: New test.
16227 * testsuite/libgomp.c/lib-2.c: New test.
16228 * testsuite/libgomp.c/lock-1.c: New test.
16229 * testsuite/libgomp.c/lock-2.c: New test.
16230 * testsuite/libgomp.c/lock-3.c: New test.
16231 * testsuite/libgomp.c/loop-4.c: New test.
16232 * testsuite/libgomp.c/loop-5.c: New test.
16233 * testsuite/libgomp.c/loop-6.c: New test.
16234 * testsuite/libgomp.c/loop-7.c: New test.
16235 * testsuite/libgomp.c/loop-8.c: New test.
16236 * testsuite/libgomp.c/loop-9.c: New test.
16237 * testsuite/libgomp.c/nested-3.c: New test.
16238 * testsuite/libgomp.c/nestedfn-6.c: New test.
16239 * testsuite/libgomp.c/sort-1.c: New test.
16240 * testsuite/libgomp.c/task-1.c: New test.
16241 * testsuite/libgomp.c/task-2.c: New test.
16242 * testsuite/libgomp.c/task-3.c: New test.
16243 * testsuite/libgomp.c/task-4.c: New test.
16244 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
16245 to C++ testsuite default compiler options.
16246 * testsuite/libgomp.c++/collapse-1.C: New test.
16247 * testsuite/libgomp.c++/collapse-2.C: New test.
16248 * testsuite/libgomp.c++/ctor-10.C: New test.
16249 * testsuite/libgomp.c++/for-1.C: New test.
16250 * testsuite/libgomp.c++/for-2.C: New test.
16251 * testsuite/libgomp.c++/for-3.C: New test.
16252 * testsuite/libgomp.c++/for-4.C: New test.
16253 * testsuite/libgomp.c++/for-5.C: New test.
16254 * testsuite/libgomp.c++/loop-8.C: New test.
16255 * testsuite/libgomp.c++/loop-9.C: New test.
16256 * testsuite/libgomp.c++/loop-10.C: New test.
16257 * testsuite/libgomp.c++/task-1.C: New test.
16258 * testsuite/libgomp.c++/task-2.C: New test.
16259 * testsuite/libgomp.c++/task-3.C: New test.
16260 * testsuite/libgomp.c++/task-4.C: New test.
16261 * testsuite/libgomp.c++/task-5.C: New test.
16262 * testsuite/libgomp.c++/task-6.C: New test.
16263 * testsuite/libgomp.fortran/allocatable1.f90: New test.
16264 * testsuite/libgomp.fortran/allocatable2.f90: New test.
16265 * testsuite/libgomp.fortran/allocatable3.f90: New test.
16266 * testsuite/libgomp.fortran/allocatable4.f90: New test.
16267 * testsuite/libgomp.fortran/collapse1.f90: New test.
16268 * testsuite/libgomp.fortran/collapse2.f90: New test.
16269 * testsuite/libgomp.fortran/collapse3.f90: New test.
16270 * testsuite/libgomp.fortran/collapse4.f90: New test.
16271 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
16272 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
16273 * testsuite/libgomp.fortran/lib4.f90: New test.
16274 * testsuite/libgomp.fortran/lock-1.f90: New test.
16275 * testsuite/libgomp.fortran/lock-2.f90: New test.
16276 * testsuite/libgomp.fortran/nested1.f90: New test.
16277 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
16278 * testsuite/libgomp.fortran/strassen.f90: New test.
16279 * testsuite/libgomp.fortran/tabs1.f90: New test.
16280 * testsuite/libgomp.fortran/tabs2.f: New test.
16281 * testsuite/libgomp.fortran/task1.f90: New test.
16282 * testsuite/libgomp.fortran/task2.f90: New test.
16283 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
16284 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16285 * testsuite/libgomp.c/pr26943-2.c: Likewise.
16286 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16287 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16289 2008-05-23 Jakub Jelinek <jakub@redhat.com>
16292 * testsuite/libgomp.c++/ctor-11.C: New test.
16293 * testsuite/libgomp.c++/ctor-12.C: New test.
16295 2008-05-15 Janis Johnson <janis187@us.ibm.com>
16297 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
16299 2008-05-07 Jakub Jelinek <jakub@redhat.com>
16301 PR middle-end/36106
16302 * testsuite/libgomp.c/atomic-5.c: New test.
16303 * testsuite/libgomp.c/atomic-6.c: New test.
16304 * testsuite/libgomp.c/autopar-1.c: New test.
16306 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16308 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
16309 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
16310 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
16311 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
16312 * configure: Regenerate.
16313 * Makefile.in, testsuite/Makefile.in: Likewise.
16315 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
16318 * aclocal.m4: Regenerate.
16319 * configure: Regenerate.
16321 2008-03-18 Jakub Jelinek <jakub@redhat.com>
16323 PR middle-end/35611
16324 * testsuite/libgomp.c/atomic-4.c: New test.
16327 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
16328 (gomp_iter_guided_next): Likewise.
16329 * testsuite/libgomp.c/pr35625.c: New test.
16331 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16333 * aclocal.m4: Regenerate.
16334 * configure: Likewise.
16335 * Makefile.in: Likewise.
16336 * testsuite/Makefile.in: Likewise.
16338 2008-03-13 Jakub Jelinek <jakub@redhat.com>
16340 PR middle-end/35185
16341 * testsuite/libgomp.c++/pr35185.C: New test.
16343 2008-03-12 Jakub Jelinek <jakub@redhat.com>
16345 PR middle-end/35549
16346 * testsuite/libgomp.c/pr35549.c: New test.
16348 2008-03-06 Jakub Jelinek <jakub@redhat.com>
16350 * testsuite/libgomp.c/atomic-3.c: New test.
16352 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16355 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
16356 .F08 file suffixes.
16358 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
16361 * configure.ac: Add ACX_HEADER_STRING.
16362 * env.c: Include strings.h.
16363 * aclocal.m4: Regenerate.
16364 * config.h.in: Regenerate.
16365 * configure: Regenerate.
16366 * Makefile.in: Regenerate.
16367 * testsuite/Makefile.in: Regenerate.
16369 2008-02-15 Jakub Jelinek <jakub@redhat.com>
16371 PR middle-end/35196
16372 * testsuite/libgomp.c/pr35196.c: New test.
16374 PR middle-end/35130
16375 * testsuite/libgomp.fortran/pr35130.f90: New test.
16376 * testsuite/libgomp.c/pr35130.c: New test.
16378 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16380 PR middle-end/33880
16381 * testsuite/libgomp.c/pr33880.c: New test.
16382 * testsuite/libgomp.fortran/pr33880.f90: New test.
16384 2008-01-24 David Edelsohn <edelsohn@gnu.org>
16386 * configure: Regenerate.
16388 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16390 * configure.ac: Move futex checking into ../config/futex.m4.
16391 * configure: Rebuilt.
16392 * aclocal.m4: Rebuilt.
16393 * Makefile.in: Rebuilt.
16395 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
16396 2007-10-15 ../config/tls.m4 change.
16398 2007-12-19 Jakub Jelinek <jakub@redhat.com>
16401 * testsuite/libgomp.c/pr34513.c: New test.
16402 * testsuite/libgomp.c++/pr34513.C: New test.
16404 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
16407 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
16409 2007-12-04 Jakub Jelinek <jakub@redhat.com>
16411 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
16413 2007-12-03 Jakub Jelinek <jakub@redhat.com>
16415 * testsuite/libgomp.c/private-1.c: New test.
16417 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
16418 Paolo Bonzini <bonzini@gnu.org>
16420 * Makefile.am: Use space as vpath separator. Use 'vpath %'
16421 instead of 'VPATH ='.
16422 * Makefile.in: Regenerate.
16424 2007-11-23 Matthias Klose <doko@ubuntu.com>
16426 * configure.ac: Adjust makeinfo version check.
16427 * configure: Regenerate.
16429 2007-11-10 Jakub Jelinek <jakub@redhat.com>
16432 * testsuite/libgomp.fortran/pr34020.f90: New test.
16434 2007-11-06 Jakub Jelinek <jakub@redhat.com>
16437 * testsuite/libgomp.c++/atomic-1.C: New test.
16439 2007-10-25 Jakub Jelinek <jakub@redhat.com>
16442 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
16443 Make x and y integers rather than (implicit) reals. Add private (j)
16444 clause to the last omp parallel.
16446 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
16448 * configure: Regenerate following changes to ../config/tls.m4.
16450 2007-09-28 Jakub Jelinek <jakub@redhat.com>
16452 * testsuite/libgomp.fortran/stack.f90: New test.
16454 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
16456 * config/mingw32/proc.c: New file.
16458 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
16460 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
16461 (main): Use __get_cpuid to get i386 target fetaures.
16462 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
16463 (main): Use __get_cpuid to get x86_64 target fetaures.
16465 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
16468 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
16469 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
16471 2007-07-12 Jakub Jelinek <jakub@redhat.com>
16474 * testsuite/libgomp.fortran/pr32550.f90: New test.
16475 * testsuite/libgomp.fortran/crayptr2.f90: New test.
16477 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
16479 * aclocal.m4: Regenerated.
16481 2007-07-05 Tobias Burnus <burnus@net-b.de>
16484 * testsuite/libgomp.fortran/pr32359.f90: New.
16486 2007-07-02 Jakub Jelinek <jakub@redhat.com>
16489 * sections.c (GOMP_parallel_sections_start): Only decrease
16490 number of threads to COUNT if dyn_var is true.
16491 * testsuite/libgomp.c/pr32468.c: New test.
16493 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16496 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
16498 2007-06-21 Jakub Jelinek <jakub@redhat.com>
16500 PR middle-end/32362
16501 * testsuite/libgomp.c/pr32362-1.c: New test.
16502 * testsuite/libgomp.c/pr32362-2.c: New test.
16503 * testsuite/libgomp.c/pr32362-3.c: New test.
16505 2007-06-07 Jakub Jelinek <jakub@redhat.com>
16507 * team.c (gomp_team_start): Fix setting up thread_attr
16510 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
16512 * configure: Regenerate.
16514 2007-05-23 Steve Ellcey <sje@cup.hp.com>
16516 * Makefile.in: Regenerate.
16517 * configure: Regenerate.
16518 * aclocal.m4: Regenerate.
16519 * testsuite/Makefile.in: Regenerate.
16521 2007-05-04 Jakub Jelinek <jakub@redhat.com>
16523 * config/linux/proc.c: New file.
16526 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
16528 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
16530 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
16532 2007-04-16 Matthias Klose <doko@debian.org>
16534 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
16535 flags if not building with -m64.
16536 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
16537 flag for i?86-*-* targets, if current target matches -m64.
16539 2007-04-14 Steve Ellcey <sje@cup.hp.com>
16541 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
16542 * Makefile.in: Regenerate.
16544 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16547 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
16549 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16551 2007-04-04 Jakub Jelinek <jakub@redhat.com>
16553 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
16555 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
16556 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
16557 (parse_affinity): New function.
16558 (initialize_env): Call it and gomp_init_affinity.
16559 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
16560 create new pthread_attr_t and call gomp_init_thread_affinity
16561 on it for each thread before passing the attribute to pthread_create.
16562 * config/linux/affinity.c: New file.
16563 * config/posix/affinity.c: New file.
16564 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
16565 * configure: Rebuilt.
16566 * config.h.in: Rebuilt.
16567 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
16568 * Makefile.in: Rebuilt.
16570 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
16572 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
16574 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
16575 and use it if found.
16577 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
16579 * testsuite/config/default.exp: New file.
16580 * testsuite/lib/libgomp.exp: New file.
16581 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
16582 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
16583 load_lib *, load_gcc_lib *): Move to libgomp.exp.
16584 (libgomp_load): Remove.
16585 * testsuite/lib/libgomp.exp (libgomp_init): Compute
16586 always_ld_library_path, not ld_library_path. Set additional_flags
16587 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
16588 (target_compile): Do not call libgomp_init. Append lang_library_path
16589 and lang_link_flags to options.
16590 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
16591 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
16593 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
16594 always_ld_library_path. Set LD_LIBRARY_PATH here.
16595 * testsuite/libgomp.fortran/fortran.exp: Ditto.
16596 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
16597 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
16599 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
16600 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
16601 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
16602 * testsuite/libgomp.c/pr29947-1.c: Ditto.
16603 * testsuite/libgomp.c/atomic-10.c: Ditto.
16605 2007-03-21 Jakub Jelinek <jakub@redhat.com>
16607 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
16608 dg-final cleanup-modules line.
16609 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
16610 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
16611 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
16612 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
16613 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
16614 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
16615 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
16617 2007-03-18 Andreas Schwab <schwab@suse.de>
16619 * acinclude.m4: Adjust regular expression for ld version
16621 * configure: Regenerate.
16623 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16625 * Makefile.am: Add install-pdf target as copied from
16626 automake v1.10 rules.
16627 * Makefile.in: Regenerate
16629 2007-02-07 Jakub Jelinek <jakub@redhat.com>
16632 * configure: Regenerate.
16635 * testsuite/libgomp.c++/pr30703.C: New test.
16637 2007-02-02 Jakub Jelinek <jakub@redhat.com>
16640 2006-07-05 Eric Christopher <echristo@apple.com>
16641 * configure.ac: Depend addition of -pthread on host OS.
16642 * configure: Regenerate.
16644 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16646 * libgomp.texi: Fix spacing after abbreviations.
16648 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
16651 * configure.ac: Add check for makeinfo
16652 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
16653 if an appropriate version of makeinfo is found.
16654 * aclocal.m4: Regenerated.
16655 * configure: Regenerated.
16656 * Makefile.in: Regenerated.
16657 * testsuite/Makefile.in: Regenerated.
16659 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
16662 * libgomp.texi: More about implementation-dependent settings.
16664 2007-01-26 Tobias Burnus <burnus@net-b.de>
16666 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
16668 2007-01-24 Jakub Jelinek <jakub@redhat.com>
16670 PR middle-end/30494
16671 * testsuite/libgomp.c/pr30494.c: New test.
16673 2007-01-15 Tom Tromey <tromey@redhat.com>
16675 * configure: Rebuilt.
16676 * configure.ac: Fixed comment.
16678 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
16680 * libgomp.texi: Document implementation specific default values of
16681 environment variables.
16683 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
16686 * libgomp.texi: New file.
16687 * configure.ac: Add --enable-generated-files-in-srcdir option.
16688 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
16690 * Makefile.in: Regenerated.
16691 * config.h.in: Regenerated.
16692 * testsuite/Makefile.in: Regenerated.
16695 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
16698 * env.c (omp_set_num_threads): Set illegal thread count to 1.
16700 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
16702 * configure: Regenerate.
16704 2006-12-04 Jakub Jelinek <jakub@redhat.com>
16707 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
16708 start if there shouldn't be any loop iterations.
16709 (gomp_loop_ordered_static_start): Remove start == end test.
16710 * testsuite/libgomp.c/pr29947-1.c: New test.
16711 * testsuite/libgomp.c/pr29947-2.c: New test.
16713 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
16715 * configure.tgt: Force initial-exec TLS model on Linux only.
16717 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
16719 * configure: Regenerated.
16721 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
16723 * env.c (parse_schedule): Reject out of range values.
16724 (parse_unsigned_long): Reject out of range, negative or zero values.
16726 2006-10-29 Jakub Jelinek <jakub@redhat.com>
16729 * testsuite/libgomp.fortran/pr29629.f90: New test.
16731 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
16734 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
16735 * config/posix95: New directory.
16736 * config/posix95/omp-lock.h: New file.
16737 * config/posix95/lock.c: Likewise.
16739 2006-10-14 Geoffrey Keating <geoffk@apple.com>
16741 * aclocal.m4: Regenerate.
16742 * configure: Regenerate.
16744 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
16746 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
16749 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
16751 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
16753 * configure: Regenerate.
16754 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
16756 2006-09-26 Jakub Jelinek <jakub@redhat.com>
16758 PR middle-end/25261
16759 PR middle-end/28790
16760 * testsuite/libgomp.c/nestedfn-4.c: New test.
16761 * testsuite/libgomp.c/nestedfn-5.c: New test.
16762 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
16765 * testsuite/libgomp.fortran/condinc1.f: New test.
16766 * testsuite/libgomp.fortran/condinc2.f: New test.
16767 * testsuite/libgomp.fortran/condinc3.f90: New test.
16768 * testsuite/libgomp.fortran/condinc4.f90: New test.
16769 * testsuite/libgomp.fortran/condinc1.inc: New file.
16771 2006-09-18 Tom Tromey <tromey@redhat.com>
16773 * configure: Rebuilt.
16775 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
16778 PR preprocessor/14634
16779 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
16781 * configure: Regenerate.
16783 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
16785 * testsuite/libgomp.fortran/reduction3.f90: Change
16786 -2147483648 to -huge(i)-1 to avoid overflow.
16787 * testsuite/libgomp.fortran/reduction4.f90: Change
16788 Z'ffffffff' to not(0) to avoid overflow.
16790 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
16793 * Makefile.am (libsubincludedir): New.
16794 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
16795 * Makefile.in: Regenerate.
16797 2006-08-17 Jakub Jelinek <jakub@redhat.com>
16800 * env.c: Include ctype.h.
16801 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
16802 leading and/or trailing whitespace and compare strings case
16805 2006-07-16 Jakub Jelinek <jakub@redhat.com>
16808 * testsuite/libgomp.fortran/pr28390.f: New test.
16810 2006-07-05 Eric Christopher <echristo@apple.com>
16812 * configure.ac: Depend addition of -pthread on host OS.
16813 * configure: Regenerate.
16815 2006-06-21 Jakub Jelinek <jakub@redhat.com>
16817 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
16818 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
16821 2006-06-20 Jakub Jelinek <jakub@redhat.com>
16825 * configure.ac: If neither --enable-linux-futex nor
16826 --disable-linux-futex is passed, determine the default by checking
16827 for compiling and/or running against NPTL. With --enable-linux-futex,
16828 check if SYS_gettid and SYS_futex are defined.
16829 * configure: Rebuilt.
16831 2006-06-14 Richard Henderson <rth@redhat.com>
16834 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
16835 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
16837 2006-06-09 Richard Henderson <rth@redhat.com>
16839 * env.c (gomp_nthreads_var): Change to unsigned long.
16840 (gomp_run_sched_chunk): Likewise.
16841 (parse_unsigned_long): Rename from parse_num_threads and generalize.
16842 (initialize_env): Initialize gomp_thread_attr.
16843 * libgomp.h (gomp_nthreads_var): Update decl.
16844 (gomp_run_sched_chunk): Likewise.
16845 (gomp_thread_attr): Declare.
16846 * team.c (gomp_thread_attr): Export.
16847 (initialize_team): Don't initialize it.
16849 2006-06-09 Jakub Jelinek <jakub@redhat.com>
16852 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
16853 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
16855 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
16857 * config/mingw32/time.c: New file.
16858 * configure.tgt: Use it.
16860 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
16862 * Makefile.am: Add install-html target. Add install-html to .PHONY
16863 * Makefile.in: Regenerate.
16865 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16868 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
16869 * testsuite/libgomp.c/critical-1.c: Likewise.
16870 * testsuite/libgomp.c/loop-1.c: Likewise.
16871 * testsuite/libgomp.c/loop-2.c: Likewise.
16872 * testsuite/libgomp.c/single-1.c: Likewise.
16873 * testsuite/libgomp.c/ordered-1.c: Likewise.
16874 * testsuite/libgomp.c/ordered-2.c: Likewise.
16876 2006-05-15 Jakub Jelinek <jakub@redhat.com>
16878 PR middle-end/27416
16879 * libgomp.fortran/pr27416-1.f90: New test.
16881 2006-05-03 Jakub Jelinek <jakub@redhat.com>
16884 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
16885 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
16887 2006-05-02 Jakub Jelinek <jakub@redhat.com>
16890 * testsuite/libgomp.c/pr26943-1.c: New test.
16891 * testsuite/libgomp.c/pr26943-2.c: New test.
16892 * testsuite/libgomp.c/pr26943-3.c: New test.
16893 * testsuite/libgomp.c/pr26943-4.c: New test.
16894 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
16895 * testsuite/libgomp.c++/pr26943.C: New test.
16897 2006-05-02 Jakub Jelinek <jakub@redhat.com>
16899 PR middle-end/27337
16900 * testsuite/libgomp.c++/pr27337.C: New test.
16902 2006-04-26 Jakub Jelinek <jakub@redhat.com>
16905 * testsuite/libgomp.c/pr26171.c: New test.
16907 2006-04-25 Richard Henderson <rth@redhat.com>
16910 * configure.ac: Use GCC_CHECK_TLS.
16911 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
16912 * Makefile.in, aclocal.m4, configure: Regenerate.
16914 2006-04-10 Matthias Klose <doko@debian.org>
16916 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
16917 directory names containing underscores.
16919 2006-03-21 Jakub Jelinek <jakub@redhat.com>
16922 * testsuite/libgomp.c++/pr26691.C: New test.
16924 2006-03-13 Jakub Jelinek <jakub@redhat.com>
16926 * testsuite/libgomp.fortran/retval2.f90: New test.
16928 2006-03-09 Diego Novillo <dnovillo@redhat.com>
16930 * testsuite/libgomp.c++: New directory.
16932 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
16934 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
16935 * config/posix/sem.c: Implement the above.
16937 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
16939 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
16940 define HAVE_BROKEN_POSIX_SEMAPHORES.
16941 * configure: Rebuilt.
16942 * config.h.in: Rebuilt.
16944 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
16947 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
16948 for the other pthread check.
16949 * configure: Regenerate.
16950 * config.h.in: Regenerate.
16952 2006-02-15 Jakub Jelinek <jakub@redhat.com>
16956 * Makefile.am (fincludedir): New variable.
16957 (nodist_include_HEADERS): Remove Fortran files.
16958 (nodist_finclude_HEADERS): New variable.
16959 * Makefile.in: Regenerated.
16961 2006-02-13 Jakub Jelinek <jakub@redhat.com>
16963 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
16964 Remove tests for returning assumed character length arrays.
16966 2006-02-12 Roger Sayle <roger@eyesopen.com>
16967 John David Anglin <dave@hiauly1.hia.nrc.ca>
16970 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
16972 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
16974 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
16976 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
16978 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
16979 part of LD_LIBRARY_PATH manually.
16981 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
16984 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
16987 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
16990 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
16991 * configure.ac (PERL): Don't set.
16992 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
16993 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
16994 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
16995 * omp.h.in: Wrap the new configure substitutions with @ characters.
16996 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
16997 * aclocal.m4, configure, Makefile.in: Regenerate.
16998 * mkomp_h.pl: Delete.
17000 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
17003 * configure.ac: Use GCC_HEADER_STDINT.
17004 * libgomp.h: Include gstdint.h.
17005 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
17006 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
17008 2006-01-24 Richard Henderson <rth@redhat.com>
17011 * configure.ac: Add AM_MAINTAINER_MODE.
17012 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
17014 2006-01-24 Diego Novillo <dnovillo@redhat.com>
17016 * Makefile.in: Regenerate.
17017 * testsuite/Makefile.in: Regenerate.
17018 * aclocal.m4: Regenerate.
17020 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
17022 * config/posix/proc.c: Conditional include of sys/loadavg.h for
17024 * configure.ac: Add check for loadavg.h.
17025 (link_gomp): Adjust comment.
17026 * configure: Regenerate.
17027 * config.h.in: Regenerate.
17029 2006-01-21 Steve Ellcey <sje@cup.hp.com>
17032 * configure.ac: Remove check for alloca.h.
17033 * configure: Regenerate.
17034 * config.h.in: Regenerate.
17035 * libgomp.h: define gomp_alloca to be __builtin_alloca.
17036 * team.c: Remove use of alloca.h.
17037 Call gomp_alloca instead of alloca.
17039 2006-01-20 Steve Ellcey <sje@cup.hp.com>
17042 * team.c: Add include of alloca.h.
17043 * configure.ac: Add check for alloca.h.
17044 * configure: Regenerate.
17045 * config.h.in: Regenerate.
17047 2006-01-17 Jakub Jelinek <jakub@redhat.com>
17050 * testsuite/libgomp.fortran/pr25219.f90: New test.
17052 2005-12-05 Uros Bizjak <uros@kss-loka.si>
17054 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
17055 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
17056 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17057 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17058 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
17059 testsuite/libgomp.fortran/threadprivate1.f90,
17060 testsuite/libgomp.fortran/threadprivate2.f90,
17061 testsuite/libgomp.fortran/threadprivate3.f90,
17062 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17063 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17064 testsuite/libgomp.fortran/omp_parse3.f90: Change required
17065 effective-target to TLS runtime.
17067 * testsuite/libgomp.fortran/pr25162.f: Require
17068 effective-target TLS runtime.
17070 2005-12-01 Jakub Jelinek <jakub@redhat.com>
17072 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
17073 * testsuite/libgomp.c/nestedfn-3.c: New test.
17075 2005-11-30 Jakub Jelinek <jakub@redhat.com>
17078 * testsuite/libgomp.fortran/pr25162.f: New test.
17080 2005-11-28 Jakub Jelinek <jakub@redhat.com>
17082 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
17083 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
17085 2005-11-25 Jakub Jelinek <jakub@redhat.com>
17087 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
17088 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
17089 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
17090 single.c, team.c, work.c, config/linux/alpha/futex.h,
17091 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
17092 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
17093 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
17094 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
17095 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
17096 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
17097 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
17100 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17102 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
17103 to nodist_noinst_HEADERS.
17104 * Makefile.in: Rebuilt.
17106 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
17107 add integer count field.
17108 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
17109 omp_nest_lock_t type change.
17110 (omp_init_nest_lock): Likewise. Initialize count to 0.
17111 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
17113 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
17115 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
17116 Increment count if successful and return the new nesting level.
17117 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
17118 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
17119 * testsuite/libgomp.c/lib-1.c: New test.
17120 * testsuite/libgomp.fortran/lib1.f90: New test.
17121 * testsuite/libgomp.fortran/lib2.f: New test.
17122 * testsuite/libgomp.fortran/lib3.f: New test.
17124 2005-11-17 Richard Henderson <rth@redhat.com>
17127 * Makefile.am (nodist_toolexeclib_HEADERS): New.
17128 * configure.ac (link_gomp): New. Substitute it.
17129 (AC_CONFIG_FILES): Add libgomp.spec.
17130 * libgomp.spec.in: New file.
17131 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
17132 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
17134 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17136 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
17137 reduction(-:var) behaving the same as reduction(+:var).
17138 * testsuite/libgomp.c/reduction-4.c: New test.
17140 2005-11-15 Uros Bizjak <uros@kss-loka.si>
17142 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
17143 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
17144 testsuite/libgomp.c/copyin-3.c,
17145 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17146 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17147 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
17148 testsuite/libgomp.c++/pr24455.C,
17149 testsuite/libgomp.fortran/threadprivate1.f90,
17150 testsuite/libgomp.fortran/threadprivate2.f90,
17151 testsuite/libgomp.fortran/threadprivate3.f90,
17152 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17153 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17154 testsuite/libgomp.fortran/omp_parse3.f90: Require
17155 effective-target TLS.
17157 2005-11-14 Diego Novillo <dnovillo@redhat.com>
17161 2005-11-13 Jakub Jelinek <jakub@redhat.com>
17164 * team.c (initialize_team): Pass NULL rather than free as
17165 pthread_key_create destructor. Initialize thread specific data
17166 pointer in initial thread to a static local variable rather than
17169 2005-11-11 Uros Bizjak <uros@kss-loka.si>
17171 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
17172 its location to ld_library_path.
17174 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17176 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
17178 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17180 * testsuite/libgomp.c: Rename from libgomp.dg.
17182 2005-11-09 Diego Novillo <dnovillo@redhat.com>
17184 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
17185 threadprivate variable 'i'.
17187 2005-11-09 Jakub Jelinek <jakub@redhat.com>
17189 * config/linux/s390/futex.h: New file.
17190 * configure.tgt: Use it.
17192 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
17193 before the parallel.
17195 2005-11-08 Jakub Jelinek <jakub@redhat.com>
17198 * testsuite/libgomp.c++/master-1.C: New test.
17200 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17202 * testsuite/libgomp.dg/copyin-3.c: New test.
17204 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17206 * testsuite/libgomp.fortran/retval1.f90: New test.
17207 * testsuite/libgomp.fortran/vla7.f90: New test.
17209 2005-11-06 Jakub Jelinek <jakub@redhat.com>
17211 * testsuite/libgomp.fortran/vla2.f90: New test.
17212 * testsuite/libgomp.fortran/vla3.f90: New test.
17213 * testsuite/libgomp.fortran/vla4.f90: New test.
17214 * testsuite/libgomp.fortran/vla5.f90: New test.
17215 * testsuite/libgomp.fortran/vla6.f90: New test.
17217 2005-11-01 Jakub Jelinek <jakub@redhat.com>
17219 * config/linux/sparc/futex.h: New file.
17220 * configure.tgt: Use it.
17221 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
17223 * critical.c: Include stdlib.h.
17224 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
17225 ignoring return value.
17226 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
17227 LIBGOMP_CHECK_SYNC_BUILTINS check.
17228 * configure: Rebuilt.
17230 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17232 * testsuite/libgomp.fortran/vla1.f90: New test.
17234 2005-10-31 Richard Henderson <rth@redhat.com>
17236 * testsuite/libgomp.fortran/character2.f90: Fix race condition
17237 setting 's' in different threads.
17239 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17241 * libgomp.h (attribute_hidden, ialias): Define.
17242 * config/posix/proc.c (omp_get_num_procs): Add ialias.
17243 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
17244 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
17245 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17246 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17247 omp_test_lock, omp_test_nest_lock): Likewise.
17248 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
17249 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17250 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17251 omp_test_lock, omp_test_nest_lock): Likewise.
17252 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
17253 omp_get_dynamic, omp_get_nested): Likewise.
17254 * parallel.c (omp_get_num_threads, omp_get_max_threads,
17255 omp_get_thread_num, omp_in_parallel): Likewise.
17256 * fortran.c (ialias_redirect): Define.
17257 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
17258 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
17259 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
17260 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
17261 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
17262 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
17263 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
17264 omp_get_wtime): Add ialias_redirect.
17266 2005-10-30 Jakub Jelinek <jakub@redhat.com>
17268 * fortran.c: Include stdlib.h.
17270 2005-10-29 Jakub Jelinek <jakub@redhat.com>
17272 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
17273 * Makefile.in: Regenerated.
17275 2005-10-28 Jakub Jelinek <jakub@redhat.com>
17277 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
17278 * libgomp_f.h.in (omp_check_defines): New function.
17279 * env.c: Include libgomp_f.h.
17280 (initialize_env): Call omp_check_defines.
17282 * testsuite/libgomp.dg/copyin-2.c: New test.
17283 * testsuite/libgomp.c++/copyin-2.C: New test.
17284 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
17286 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
17287 * testsuite/libgomp.fortran/sharing2.f90: New test.
17289 * testsuite/libgomp.dg/copyin-1.c: New test.
17290 * testsuite/libgomp.c++/copyin-1.C: New test.
17292 2005-10-26 Jakub Jelinek <jakub@redhat.com>
17294 * testsuite/libgomp.fortran/crayptr1.f90: New test.
17296 * testsuite/libgomp.fortran/workshare1.f90: New test.
17298 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
17300 * libgomp.fortran/sharing1.f90: New test.
17302 2005-10-24 Jakub Jelinek <jakub@redhat.com>
17305 * testsuite/libgomp.c++/loop-7.C: New test.
17307 * testsuite/libgomp.dg/nestedfn-2.c: New test.
17309 * testsuite/libgomp.dg/nestedfn-1.c: New test.
17310 * testsuite/libgomp.fortran/reduction6.f90: New test.
17311 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
17313 2005-10-23 Richard Henderson <rth@redhat.com>
17315 * testsuite/libgomp.c++/ctor-1.C: New.
17316 * testsuite/libgomp.c++/ctor-2.C: New.
17317 * testsuite/libgomp.c++/ctor-3.C: New.
17318 * testsuite/libgomp.c++/ctor-4.C: New.
17319 * testsuite/libgomp.c++/ctor-5.C: New.
17320 * testsuite/libgomp.c++/ctor-6.C: New.
17321 * testsuite/libgomp.c++/ctor-7.C: New.
17322 * testsuite/libgomp.c++/ctor-8.C: New.
17323 * testsuite/libgomp.c++/ctor-9.C: New.
17325 2005-10-21 Diego Novillo <dnovillo@redhat.com>
17328 * testsuite/libgomp.c++/pr24455-1.C: New test.
17329 * testsuite/libgomp.c++/pr24455.C: New test.
17330 * testsuite/libgomp.dg/pr24455-1.c: New test.
17331 * testsuite/libgomp.dg/pr24455.c: New test.
17333 2005-10-20 Richard Henderson <rth@redhat.com>
17335 * testsuite/libgomp.c++/loop-6.C: New.
17336 * testsuite/libgomp.dg/loop-3.c: New.
17338 2005-10-20 Jakub Jelinek <jakub@redhat.com>
17340 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
17341 explicitly private.
17342 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
17345 2005-10-19 Diego Novillo <dnovillo@redhat.com>
17347 * testsuite/libgomp.fortran/jacobi.f: New test.
17349 2005-10-19 Richard Henderson <rth@redhat.com>
17351 * configure.tgt (i?86-linux): Default to with_arch instead of
17352 CFLAGS. Add -mtune to match target_cpu.
17353 (x86_64-linux): Tune to i686.
17355 * fortran.c (omp_test_nest_lock_): Fix typo.
17357 2005-10-19 Jakub Jelinek <jakub@redhat.com>
17359 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
17360 gomp_ordered_sync): Do nothing if team->nthreads == 1.
17361 * testsuite/libgomp.dg/ordered-3.c: New test.
17363 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
17364 Remove volatile keyword.
17366 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
17367 in COMMON block to avoid warnings on 64-bit targets.
17369 2005-10-18 Diego Novillo <dnovillo@redhat.com>
17371 * testsuite/libgomp.dg/shared-3.c: New test.
17373 2005-10-18 Jakub Jelinek <jakub@redhat.com>
17375 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
17376 * testsuite/libgomp.fortran/reduction5.f90: New test.
17378 2005-10-18 Jakub Jelinek <jakub@redhat.com>
17380 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
17382 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
17383 flush loop now that __sync_synchronize has proper memory barrier.
17384 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
17385 Add -ffixed-form to dg-options.
17387 2005-10-17 Diego Novillo <dnovillo@redhat.com>
17389 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
17390 from subdirectories.
17391 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
17392 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
17393 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
17394 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
17395 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
17396 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
17397 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
17398 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
17399 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
17400 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
17401 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
17402 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
17403 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
17404 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
17405 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
17406 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
17407 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
17408 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
17409 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
17410 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
17411 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
17412 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
17413 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
17414 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
17415 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
17417 2005-10-17 Jakub Jelinek <jakub@redhat.com>
17419 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
17420 lang_library_path exists. Use find instead of glob to gather tests.
17421 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
17423 2005-10-17 Diego Novillo <dnovillo@redhat.com>
17425 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
17426 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
17427 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
17428 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
17429 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
17430 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
17431 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
17432 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
17433 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
17434 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
17435 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
17436 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
17437 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
17439 2005-10-15 Jakub Jelinek <jakub@redhat.com>
17441 * testsuite/libgomp.dg/vla-1.c: New test.
17443 * testsuite/libgomp.fortran/reference2.f90: New test.
17445 * testsuite/libgomp.fortran/character2.f90: Remove explicit
17446 declaration of omp_get_thread_num.
17447 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
17450 * testsuite/libgomp.fortran/reduction1.f90: New test.
17451 * testsuite/libgomp.fortran/reduction2.f90: New test.
17452 * testsuite/libgomp.fortran/reduction3.f90: New test.
17453 * testsuite/libgomp.fortran/reduction4.f90: New test.
17455 2005-10-13 Richard Henderson <rth@redhat.com>
17457 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
17458 * Makefile.in: Regenerate.
17459 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
17460 * libgomp.h: Include bar.h.
17461 (struct gomp_barrier): Remove.
17462 (struct gomp_team): Add barrier. Replace master_barrier with
17463 master_release. Replace threads with ordered_release.
17464 (struct gomp_thread): Replace barrier with release.
17465 * ordered.c (gomp_ordered_first): Update for ordered_release change.
17466 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
17467 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
17468 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
17469 (GOMP_single_copy_end): Likewise.
17470 * team.c (gomp_threads_dock): New.
17471 (gomp_barrier_init, gomp_barrier_destroy): Remove.
17472 (gomp_thread_start): Use gomp_barrier_wait.
17473 (new_team, free_team): Update for gomp_team changes.
17474 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
17475 (gomp_team_end): Use gomp_barrier_wait.
17476 (initialize_team): Update for gomp_thread changes.
17477 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
17478 (gomp_work_share_end_nowait): Use atomic ops when available.
17479 * config/linux/bar.c, config/linux/bar.h: New files.
17480 * config/posix/bar.c, config/posix/bar.h: New files.
17482 2005-10-13 Jakub Jelinek <jakub@redhat.com>
17484 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
17485 * testsuite/libgomp.dg/single-2.c: New test.
17487 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
17488 lang_link_flags): Unset, so that they aren't inherited from previously
17491 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
17493 2005-10-12 Richard Henderson <rth@redhat.com>
17495 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
17496 (libgomp_init): Use lang_test_file, lang_library_path, and
17497 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
17499 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
17500 (lang_test_file, lang_link_flags): New.
17501 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
17503 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
17504 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
17505 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
17506 testsuite/libgomp.c++/parallel-1.C,
17507 testsuite/libgomp.c++/reduction-1.C,
17508 testsuite/libgomp.c++/reduction-2.C,
17509 testsuite/libgomp.c++/reduction-3.C,
17510 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
17511 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
17512 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
17513 New files, largely cribbed from the C testsuite.
17515 2005-10-12 Jakub Jelinek <jakub@redhat.com>
17517 * testsuite/libgomp.fortran/character1.f90: New test.
17518 * testsuite/libgomp.fortran/character2.f90: New test.
17520 * testsuite/libgomp.dg/nested-1.c: New test.
17521 * testsuite/libgomp.dg/nested-2.c: New test.
17522 * testsuite/libgomp.fortran/do1.f90: New test.
17523 * testsuite/libgomp.fortran/do2.f90: New test.
17525 * testsuite/libgomp.fortran/reference1.f90: New test.
17527 2005-10-11 Jakub Jelinek <jakub@redhat.com>
17529 * testsuite/libgomp.dg/reduction-1.c: New test.
17530 * testsuite/libgomp.dg/reduction-2.c: New test.
17531 * testsuite/libgomp.dg/reduction-3.c: New test.
17533 2005-10-10 Jakub Jelinek <jakub@redhat.com>
17535 * testsuite/libgomp.dg/atomic-1.c: New test.
17536 * testsuite/libgomp.dg/atomic-2.c: New test.
17538 2005-10-09 Richard Henderson <rth@redhat.com>
17540 * critical.c (atomic_lock): New.
17541 (initialize_critical): Initialize it.
17542 (GOMP_atomic_start, GOMP_atomic_end): New.
17543 * libgomp.map: Export them.
17544 * libgomp_g.h: Declare them.
17546 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
17548 2005-10-02 Richard Henderson <rth@redhat.com>
17550 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
17551 to XCFLAGS instead of CFLAGS.
17553 2005-09-30 Richard Henderson <rth@redhat.com>
17555 * configure.ac: Determine whether -pthread or -lpthread is needed.
17556 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
17557 * Makefile.in, configure: Rebuild.
17559 2005-09-28 Richard Henderson <rth@redhat.com>
17561 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
17562 * testsuite/libgomp.dg/omp-single-3.c: New test.
17564 2005-09-28 Diego Novillo <dnovillo@redhat.com>
17566 * testsuite/libgomp.dg/omp-single-2.c: New test.
17567 * testsuite/libgomp.dg/shared-2.c: Fix return code.
17569 2005-09-27 Richard Henderson <rth@redhat.com>
17571 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
17572 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
17574 2005-09-27 Jakub Jelinek <jakub@redhat.com>
17576 * testsuite/libgomp.dg/omp-loop03.c: New test.
17578 2005-09-27 Diego Novillo <dnovillo@redhat.com>
17580 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
17582 2005-09-27 Diego Novillo <dnovillo@redhat.com>
17584 * testsuite/libgomp.dg/omp-single-1.c: New test.
17585 * testsuite/libgomp.dg/shared-1.c: Return 0.
17586 Add prototype for abort.
17587 * testsuite/libgomp.dg/shared-2.c: Likewise.
17589 2005-09-26 Jakub Jelinek <jakub@redhat.com>
17591 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
17594 2005-09-26 Diego Novillo <dnovillo@redhat.com>
17596 * testsuite/libgomp.dg/shared-1.c: New test.
17597 * testsuite/libgomp.dg/shared-2.c: New test.
17599 2005-09-24 Richard Henderson <rth@redhat.com>
17601 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
17603 2005-09-24 Richard Henderson <rth@redhat.com>
17605 * iter.c (gomp_iter_static_next): Round up when computing number
17606 of iterations. Don't bother distributing a remainder equally.
17608 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
17609 Don't call srand. Zero b before testing.
17612 2005-09-24 Jakub Jelinek <jakub@redhat.com>
17614 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
17615 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
17617 2005-09-23 Jakub Jelinek <jakub@redhat.com>
17619 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
17620 without !$omp end do, followed immediately by subroutine end.
17622 2005-09-23 Diego Novillo <dnovillo@redhat.com>
17624 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
17626 2005-09-22 Richard Henderson <rth@redhat.com>
17628 * critical.c (GOMP_critical_name_start): Change argument to void**.
17629 Reuse the pointer space if the mutex fits.
17630 (GOMP_critical_name_end): Likewise.
17631 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
17632 * libgomp_g.h (GOMP_critical_name_start): Update decl.
17633 (GOMP_critical_name_end): Likewise.
17634 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
17635 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
17637 2005-09-20 Richard Henderson <rth@redhat.com>
17639 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
17640 (create_lock_lock): New.
17641 (initialize_critical): Initialize it.
17642 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
17643 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
17645 2005-09-20 Diego Novillo <dnovillo@redhat.com>
17647 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
17649 2005-09-20 Diego Novillo <dnovillo@redhat.com>
17651 * testsuite/libgomp.dg/omp-loop01.c: New test.
17652 * testsuite/libgomp.dg/omp-loop02.c: New test.
17654 2005-09-20 Jakub Jelinek <jakub@redhat.com>
17656 * configure.ac (AC_PROG_FC): Add.
17657 (USE_FORTRAN): New automake conditional.
17658 * configure: Rebuilt.
17659 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
17660 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
17661 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
17662 Add rules to build them.
17663 * Makefile.in: Rebuilt.
17664 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
17665 OMP_NEST_LOCK_KIND.
17666 * libgomp.map: Add Fortran wrappers.
17667 * libgomp_f.h.in: New file.
17668 * omp_lib.h.in: New file.
17669 * omp_lib.f90.in: New file.
17670 * fortran.c: New file.
17671 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
17672 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
17673 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
17674 libgfortran has been built.
17675 * testsuite/libgomp.fortran/fortran.exp: New file.
17676 * testsuite/libgomp.fortran/omp_cond1.f: New test.
17677 * testsuite/libgomp.fortran/omp_cond2.f: New test.
17678 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
17679 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
17680 * testsuite/libgomp.fortran/omp_hello.f: New test.
17681 * testsuite/libgomp.fortran/omp_orphan.f: New test.
17682 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
17683 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
17684 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
17685 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
17686 * testsuite/libgomp.fortran/omp_reduction.f: New test.
17687 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
17688 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
17690 2005-08-30 Richard Henderson <rth@redhat.com>
17692 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
17693 function for when aliases are not usable.
17694 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
17695 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
17696 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
17697 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
17698 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
17699 GOMP_loop_ordered_guided_next): Likewise.
17700 * ordered.c (GOMP_ordered_start): Likewise.
17702 2005-08-01 Diego Novillo <dnovillo@redhat.com>
17704 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
17705 * testsuite/libgomp.dg/omp_hello.c: Fix return code
17706 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
17707 * testsuite/libgomp.dg/omp_orphan.c: Likewise
17708 * testsuite/libgomp.dg/omp_reduction.c: Likewise
17709 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
17710 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
17711 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
17712 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
17714 2005-07-07 Eric Christopher <echristo@redhat.com>
17715 Diego Novillo <dnovillo@redhat.com>
17717 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
17718 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
17720 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
17721 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
17722 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
17723 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
17724 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
17725 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
17726 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
17728 2005-06-13 Diego Novillo <dnovillo@redhat.com>
17730 * TOPLEVEL.patch: Remove.
17732 2005-05-16 Richard Henderson <rth@redhat.com>
17734 * configure.ac: Test for clock_gettime.
17735 * config.h.in, configure: Rebuild.
17736 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
17737 (omp_get_wtime): Use clock_gettime if available.
17738 (omp_get_wtick): Use clock_getres if available.
17740 2005-05-11 Richard Henderson <rth@redhat.com>
17742 * config/linux/ia64/futex.h: New file.
17743 * configure.tgt: Use it.
17745 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
17747 2005-05-07 Richard Henderson <rth@redhat.com>
17749 * config/linux/powerpc/futex.h: New file.
17750 * configure.tgt: Use it.
17752 * config/linux/i486/futex.h: Merge ...
17753 * config/linux/x86_64/futex.h: ... into ...
17754 * config/linux/x86/futex.h: ... here.
17755 * configure.tgt: Update to match.
17757 2005-05-06 Richard Henderson <rth@redhat.com>
17759 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
17760 * config/linux/i486/futex.h: Likewise.
17761 * config/linux/x86_64/futex.h: Likewise.
17763 * config/linux/lock.c: New file.
17764 * config/linux/omp-lock.h: New file.
17766 * critical.c, env.h: Don't include omp.h
17767 * config/posix/lock.c: Include libgomp.h instead of omp.h.
17768 * config/posix/time.c: Likewise.
17769 * config/posix/omp-lock.h: New file.
17770 * libgomp.h: Include omp-lock.h and omp.h.
17771 * Makefile.am (nodist_include_HEADERS): New.
17773 * configure.ac (PERL): New.
17774 * mkomp_h.pl: New file.
17775 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
17777 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
17779 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
17780 build directory. Re-add -march=i486 hack.
17782 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
17783 (libgomp_link_flags): Remove.
17784 (libgomp_initialized): Remove.
17785 (libgomp_init): Don't protect from reinitialization. Copy code
17786 from libstdc++ for getting the multilib set correctly.
17788 2005-05-05 Richard Henderson <rth@redhat.com>
17790 * config/linux/alpha/futex.h: New file.
17791 * configure.tgt (alpha*-*-linux*): Use it.
17793 * config/posix/mutex.c: New file.
17794 * config/posix/sem.c: Use libgomp.h.
17796 * configure.tgt (x86_64-linux): Also test CC for -m32.
17797 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
17799 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
17802 * Makefile.am (SUBDIRS): New.
17803 (libgomp_la_LDFLAGS): Add -lpthread.
17804 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
17805 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
17807 * libgomp_g.h: New file.
17808 * libgomp.h: Split out all public declarations to libgomp_g.h.
17809 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
17810 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
17811 * config/linux/sem.h: Likewise.
17812 * config/posix/sem.h: Likewise.
17814 * Makefile.am (AM_LDFLAGS): New.
17815 (libgomp_version_script): Split out from ...
17816 (libgomp_la_LDFLAGS): ... here.
17817 (libgomp_version_info): New.
17818 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
17819 (LIBGOMP_ENABLE): New.
17820 (LIBGOMP_CHECK_LINKER_FEATURES): New.
17821 (LIBGOMP_ENABLE_SYMVERS): New.
17822 * configure.ac (AC_INIT): Version 1.0.
17823 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
17824 (enable-linux-futex): Likewise. Rename from enable-futex.
17825 (libtool_VERSION): New.
17826 (LIBGOMP_ENABLE_SYMVERS): Use it.
17827 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
17828 * Makefile.in, aclocal.m4, configure: Rebuild.
17830 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
17831 (gomp_mutex_unlock_slow): Fix typo.
17832 * config/linux/sem.c: Similarly.
17833 (gomp_sem_post_slow): Fix typo.
17834 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
17835 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
17836 [__PIC__] (sys_futex0): Don't use tmp output in asm.
17838 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
17839 (libgomp_la_LDFLAGS): Add top_srcdir to path.
17840 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
17841 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
17842 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
17843 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
17844 LDFLAGS. Pull enable_futex check to top-level.
17845 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
17846 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
17848 First attempt at real configury.
17849 * Makefile, config.h: Remove file.
17850 * Makefile.am, Makefile.in: New file.
17851 * acinclude.m4 aclocal.m4: New file.
17852 * configure.ac, configure.tgt, configure: New file.
17854 * config/posix/lock.c: Rename from sys-lock.c.
17855 * config/posix/mutex.h: Rename from sys-mutex.h.
17856 * config/posix/sem.c: Rename from sys-sem.c.
17857 * config/posix/sem.h: Rename from sys-sem.h.
17858 * config/posix/proc.c: Rename from sys-proc.c.
17859 * config/posix/time.c: Rename from sys-proc.c.
17861 * config/linux/mutex.c: New file.
17862 * config/linux/mutex.h: New file.
17863 * config/linux/sem.c: New file.
17864 * config/linux/sem.h: New file.
17865 * config/linux/i486/futex.h: New file.
17866 * config/linux/x86_64/futex.h: New file.
17868 2005-05-04 Richard Henderson <rth@redhat.com>
17870 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
17871 * libgomp.h: Declare them.
17872 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
17873 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
17875 2005-05-04 Richard Henderson <rth@redhat.com>
17877 * libgomp-1 code drop
17879 2005-05-04 Richard Henderson <rth@redhat.com>
17881 * iter.c (gomp_iter_static_next): Return tri-state on 0.
17882 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
17883 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
17884 (gomp_iter_static_next): Update.
17885 (gomp_ordered_static_next): Update.
17886 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
17887 (gomp_loop_ordered_static_start): Likewise. Exit early for a
17888 totally empty range.
17889 (gomp_loop_ordered_static_next): Refine test for calling
17890 gomp_ordered_static_next.
17891 * testsuite/ordered-1.c: Add case for more threads than iterations.
17893 * iter.c (gomp_iter_runtime_next_locked): Remove.
17894 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
17895 gomp_loop_guided_start, gomp_loop_ordered_static_start,
17896 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
17897 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
17898 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
17899 gomp_loop_ordered_guided_next): Downcase name, make static, add
17900 an external alias with the old name.
17901 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
17902 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
17903 switch and call one of the above static functions.
17904 * libgomp.h: Update.
17906 * work.c (gomp_work_share_start): Lock the mutex for !first too.
17907 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
17908 GOMP_loop_guided_start, GOMP_loop_runtime_start,
17909 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
17910 GOMP_loop_ordered_guided_start): Update to match.
17911 * sections.c (GOMP_sections_start): Likewise.
17912 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
17914 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
17915 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
17916 Use bounds check instead of modulus.
17917 (gomp_ordered_sync): Split out of GOMP_ordered_start.
17918 (gomp_ordered_last): Don't sync with ordered_owner here.
17919 (gomp_ordered_next): Likewise.
17920 (gomp_ordered_static_loop_next): Likewise.
17921 * loop.c, libgomp.h: Update to match.
17923 * libgomp.h (GOMP_barrier): Declare.
17925 * testsuite/barrier-1.c: New file.
17926 * testsuite/critical-1.c: New file.
17927 * testsuite/ordered-2.c: New file.
17928 * testsuite/ordered-1.c: New file.
17929 * testsuite/sections-1.c: New file.
17930 * testsuite/single-1.c: New file.
17931 * testsuite/Makefile (TESTS): Add them.
17933 2005-05-04 Richard Henderson <rth@redhat.com>
17935 * libgomp.h (struct gomp_work_share): Add ordered_owner.
17936 * loop.c (GOMP_loop_static_start): If not the startup thread,
17937 acquire the mutex to wait for initialization complete.
17938 (GOMP_loop_ordered_static_start): Likewise.
17939 (GOMP_loop_ordered_runtime_start): Likewise.
17940 (GOMP_loop_ordered_static_first): Remove.
17941 (GOMP_loop_ordered_dynamic_first): Remove.
17942 (GOMP_loop_ordered_guided_first): Remove.
17943 (GOMP_loop_ordered_runtime_first): Remove.
17944 * ordered.c (gomp_ordered_loop_first): Post to own release when
17945 we're the first thread.
17946 (gomp_ordered_loop_last): Wait on release if not owner.
17947 (gomp_ordered_loop_next): Likewise.
17948 (gomp_ordered_static_loop_init): New.
17949 (gomp_ordered_static_loop_next): Use ordered_owner.
17950 (GOMP_ordered_start): Likewise.
17951 * work.c (gomp_new_work_share): Initialize ordered_owner.
17953 2005-05-03 Richard Henderson <rth@redhat.com>
17955 * Makefile (OPT): New.
17958 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
17959 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
17960 * libgomp.h, libgomp.map, NOTES: Update to match.
17962 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
17963 Add initialized and thr members.
17964 (gomp_thread_start): Pause when initially spawned to wait for
17965 the whole team to be created.
17966 (gomp_team_start): Release team members at the end.
17968 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
17969 (f_foo_1): Use GOMP_loop_end.
17970 (f_foo_2): Use GOMP_loop_end_nowait.
17972 * testsuite/loop-2.c: New file.
17973 * testsuite/Makefile (TESTS): Add it.
17975 2005-05-03 Richard Henderson <rth@redhat.com>
17977 * iter.c (gomp_iter_static_next): Fix overflow check typo.
17978 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
17979 * team.c (new_team): Initialize oldest_live_gen to 1 if no
17980 initial work_share.
17982 * testsuite/Makefile: New file.
17983 * testsuite/loop-1.c: New file.
17985 2005-05-03 Richard Henderson <rth@redhat.com>
17987 Initial implementation and checkin.
17989 Copyright (C) 2005-2022 Free Software Foundation, Inc.
17991 Copying and distribution of this file, with or without modification,
17992 are permitted in any medium without royalty provided the copyright
17993 notice and this notice are preserved.