]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2
3 * libgomp.texi (Offload-Target Specifics: nvptx): Document
4 that reverse offload requires >= -march=sm_35.
5 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
6 with -misa=sm_35.
7 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
8 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
9 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
10 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
11 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
12
13 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
14
15 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
16 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
17
18 2022-09-12 Jakub Jelinek <jakub@redhat.com>
19
20 PR libgomp/106894
21 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
22 (main): Avoid tests for which corresponding non-_ALL suffixed variable
23 is in the environment, or for OMP_NUM_TEAMS on the device
24 OMP_NUM_TEAMS_DEV_?.
25
26 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
27
28 * env.c (initialize_env): Include libiberty environ.h.
29
30 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
31
32 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
33 function address table '$offload_func_table' if rev_fn_table
34 is not NULL.
35
36 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
37
38 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
39 .offload_func_table to populate rev_fn_table when requested.
40
41 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
42
43 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
44 'uint64_t **rev_fn_table' argument.
45 * oacc-host.c (host_load_image): Likewise.
46 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
47 currently unused.
48 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
49 * target.c (gomp_load_image_to_device): Update call but pass
50 NULL for now.
51
52 2022-09-09 Jakub Jelinek <jakub@redhat.com>
53
54 PR libgomp/106894
55 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
56 char * for dest[1] initialization from params[1]. Formatting fixes.
57
58 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
59
60 PR fortran/106670
61 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
62
63 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
64
65 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
66 section; move OpenMP Context Selectors from ...
67 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
68 'nvptx' sections.
69
70 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
71
72 * config/gcn/icv-device.c (omp_get_default_device): Return device-
73 specific ICV.
74 (omp_get_max_teams): Added for GCN devices.
75 (omp_set_num_teams): Likewise.
76 (ialias): Likewise.
77 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
78 specific ICV.
79 (omp_get_max_teams): Added for NVPTX devices.
80 (omp_set_num_teams): Likewise.
81 (ialias): Likewise.
82 * env.c (struct gomp_icv_list): New struct to store entries of initial
83 ICV values.
84 (struct gomp_offload_icv_list): New struct to store entries of device-
85 specific ICV values that are copied to the device and back.
86 (struct gomp_default_icv_values): New struct to store default values of
87 ICVs according to the OpenMP standard.
88 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
89 (print_env_var_error): Function that prints an error for invalid values
90 for ICVs.
91 (parse_unsigned_long_1): Removed getenv. Generalized.
92 (parse_unsigned_long): Likewise.
93 (parse_int_1): Likewise.
94 (parse_int): Likewise.
95 (parse_int_secure): Likewise.
96 (parse_unsigned_long_list): Likewise.
97 (parse_target_offload): Likewise.
98 (parse_bind_var): Likewise.
99 (parse_stacksize): Likewise.
100 (parse_boolean): Likewise.
101 (parse_wait_policy): Likewise.
102 (parse_allocator): Likewise.
103 (omp_display_env): Extended to output different variants of environment
104 variables.
105 (print_schedule): New helper function for omp_display_env which prints
106 the values of run_sched_var.
107 (print_proc_bind): New helper function for omp_display_env which prints
108 the values of proc_bind_var.
109 (enum gomp_parse_type): Collection of types used for parsing environment
110 variables.
111 (ENTRY): Preprocess string lengths of environment variables.
112 (OMP_VAR_CNT): Preprocess table size.
113 (OMP_HOST_VAR_CNT): Likewise.
114 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
115 number.
116 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
117 (gomp_set_icv_flag): Sets a flag for a particular ICV.
118 (print_device_specific_icvs): New helper function for omp_display_env to
119 print device specific ICV values.
120 (get_device_num): New helper function for parse_device_specific.
121 Extracts the device number from an environment variable name.
122 (get_icv_member_addr): Gets the memory address for a particular member
123 of an ICV struct.
124 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
125 (initialize_icvs): New function to initialize a gomp_initial_icvs
126 struct.
127 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
128 (startswith): Checks if a string starts with a given prefix.
129 (initialize_env): Extended to parse the new syntax of environment
130 variables.
131 * icv-device.c (omp_get_max_teams): Added.
132 (ialias): Likewise.
133 (omp_set_num_teams): Likewise.
134 * icv.c (omp_set_num_teams): Moved to icv-device.c.
135 (omp_get_max_teams): Likewise.
136 (ialias): Likewise.
137 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
138 (GOMP_ADDITIONAL_ICVS): New target-side struct that
139 holds the designated ICVs of the target device.
140 * libgomp.h (enum gomp_icvs): Collection of ICVs.
141 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
142 no suffix.
143 (enum gomp_env_suffix): Collection of possible suffixes of environment
144 variables.
145 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
146 initial values.
147 (struct gomp_default_icv):New struct to hold ICVs for which we need
148 to store initial values.
149 (struct gomp_icv_list): Definition of a linked list that is used for
150 storing ICVs for the devices and also for _DEV, _ALL, and without
151 suffix.
152 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
153 a device.
154 (struct gomp_offload_icv_list): Definition of a linked list that holds
155 device-specific ICVs that are copied to devices.
156 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
157 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
158 * libgomp.texi: Updated.
159 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
160 further ICVs from the offload image.
161 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
162 * target.c (gomp_get_offload_icv_item): Get a list item of
163 gomp_offload_icv_list.
164 (get_gomp_offload_icvs): New. Returns the ICV values
165 depending on the device num and the variable hierarchy.
166 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
167 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
168 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
169 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
170 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
171 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
172 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
173
174 2022-09-08 Jakub Jelinek <jakub@redhat.com>
175
176 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
177 fully supported.
178 * testsuite/libgomp.c/doacross-4.c: New test.
179 * testsuite/libgomp.c/doacross-5.c: New test.
180 * testsuite/libgomp.c/doacross-6.c: New test.
181 * testsuite/libgomp.c/doacross-7.c: New test.
182
183 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
184
185 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
186
187 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
188
189 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
190 refer to 'requires'.
191 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
192 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
193 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
194 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
195
196 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
197
198 PR middle-end/106548
199 * testsuite/libgomp.c/linear-2.c: New test.
200
201 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
202
203 * splay-tree.h: Fix splay_* macro unsetting if
204 splay_tree_prefix is defined.
205
206 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
207
208 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
209
210 2022-07-29 Jakub Jelinek <jakub@redhat.com>
211
212 PR middle-end/106449
213 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
214
215 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
216
217 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
218
219 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
220
221 PR middle-end/101551
222 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
223 'offloading_enabled' diagnostics issue.
224
225 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
226
227 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
228 '_Pragma' diagnostics verification.
229
230 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
231
232 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
233 improved warning locations.
234 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
235
236 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
237
238 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
239 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
240 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
241 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
242 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
243
244 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
245
246 * target.c (GOMP_offload_register, GOMP_offload_unregister):
247 Denote as legacy entry points.
248 * testsuite/lib/libgomp.exp
249 (check_effective_target_offload_target_any): New proc.
250 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
251 'offload_target_any'.
252 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
253 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
254 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
255
256 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
257
258 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
259 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
260
261 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
262
263 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
264
265 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
266
267 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
268 'data'.
269 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
270
271 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
272 Jakub Jelinek <jakub@redhat.com>
273
274 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
275
276 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
277 Chung-Lin Tang <cltang@codesourcery.com>
278 Thomas Schwinge <thomas@codesourcery.com>
279
280 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
281 omp_requires_mask arg.
282 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
283 return -1 when device available but omp_requires_mask != 0.
284 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
285 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
286 Update call.
287 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
288 goacc_attach_host_thread_to_device, acc_get_num_devices,
289 acc_set_device_num, get_property_any): Likewise.
290 * target.c (omp_requires_mask): New global var.
291 (gomp_requires_to_name): New.
292 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
293 (gomp_target_init): Handle omp_requires_mask.
294 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
295 (OpenMP 5.1): Add a missed item.
296 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
297 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
298 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
299 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
300 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
301 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
302 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
303 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
304 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
305 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
306 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
307 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
308 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
309 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
310 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
311 * testsuite/libgomp.fortran/requires-1.f90: New test.
312
313 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
314
315 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
316 with fromto as implemented.
317
318 2022-06-28 Martin Liska <mliska@suse.cz>
319
320 * acinclude.m4: Fix typo in mold linker detection.
321 * Makefile.in: Regenerate.
322 * configure: Regenerate.
323
324 2022-06-21 Jakub Jelinek <jakub@redhat.com>
325 Paul Iannetta <piannetta@kalrayinc.com>
326
327 PR libgomp/106045
328 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
329
330 2022-06-17 Martin Liska <mliska@suse.cz>
331
332 * libgomp.texi: Add table header for new features of
333 OpenMP 5.2.
334
335 2022-06-15 Jakub Jelinek <jakub@redhat.com>
336
337 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
338 q to ddress of an automatic variable. Use -5 instead of -1 in
339 omp_get_mapped_ptr call. Add test with omp_initial_device.
340 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
341 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
342 Renumber stop arguments afterwards.
343
344 2022-06-13 Jakub Jelinek <jakub@redhat.com>
345
346 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
347 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
348 parameters.
349 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
350 * target.c (resolve_device): Add remapped argument, handle
351 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
352 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
353 if remapped, otherwise treat omp_initial_device that way. For
354 omp_invalid_device, always emit gomp_fatal, even when
355 OMP_TARGET_OFFLOAD isn't mandatory.
356 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
357 GOMP_target_update, GOMP_target_update_ext,
358 GOMP_target_enter_exit_data): Pass true as remapped argument to
359 resolve_device.
360 (omp_target_alloc, omp_target_free, omp_target_is_present,
361 omp_target_memcpy_check, omp_target_associate_ptr,
362 omp_target_disassociate_ptr, omp_get_mapped_ptr,
363 omp_target_is_accessible): Pass false as remapped argument to
364 resolve_device. Treat omp_initial_device the same as
365 gomp_get_num_devices (). Don't bypass resolve_device calls if
366 device_num is negative.
367 (omp_pause_resource): Treat omp_initial_device the same as
368 gomp_get_num_devices (). Call resolve_device.
369 * icv-device.c (omp_set_default_device): Always set to device_num
370 even when it is negative.
371 * libgomp.texi: Document that Conforming device numbers,
372 omp_initial_device and omp_invalid_device is implemented.
373 * testsuite/libgomp.c/target-41.c (main): Add test with
374 omp_initial_device.
375 * testsuite/libgomp.c/target-45.c: New test.
376 * testsuite/libgomp.c/target-46.c: New test.
377 * testsuite/libgomp.c/target-47.c: New test.
378 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
379 test with omp_initial_device. Use -5 instead of -1 for negative value
380 test.
381 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
382 Likewise. Reorder stop numbers.
383
384 2022-06-10 Jakub Jelinek <jakub@redhat.com>
385
386 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
387 rather than "libmemkind.so".
388
389 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
390
391 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
392 * plugin/configfrag.ac (--with-cuda-driver)
393 (--with-cuda-driver-include, --with-cuda-driver-lib)
394 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
395 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
396 Remove.
397 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
398 (cuda_driver_lib): Remove.
399 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
400 * Makefile.in: Regenerate.
401 * configure: Likewise.
402 * testsuite/Makefile.in: Likewise.
403
404 2022-06-09 Jakub Jelinek <jakub@redhat.com>
405
406 * config/linux/allocator.c: Fix up #include directive.
407
408 2022-06-09 Jakub Jelinek <jakub@redhat.com>
409
410 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
411 (enum gomp_memkind_kind): New type.
412 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
413 is defined.
414 (struct gomp_memkind_data): New type.
415 (memkind_data, memkind_data_once): New variables.
416 (gomp_init_memkind, gomp_get_memkind): New functions.
417 (omp_init_allocator): Initialize data.memkind, don't fail for
418 omp_high_bw_mem_space if libmemkind supports it.
419 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
420 memkind support of LIBGOMP_USE_MEMKIND is defined.
421 * config/linux/allocator.c: New file.
422
423 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
424
425 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
426 * testsuite/libgomp.fortran/scope-2.f90: New test.
427
428 2022-06-02 David Malcolm <dmalcolm@redhat.com>
429
430 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
431
432 2022-05-31 Jakub Jelinek <jakub@redhat.com>
433
434 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
435 scope construct with allocate clause.
436 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
437 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
438
439 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
440
441 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
442 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
443 explicit 'to' and 'enter' clause.
444 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
445
446 2022-05-28 Jakub Jelinek <jakub@redhat.com>
447
448 PR libgomp/105745
449 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
450 defined(HAVE__ALIGNED_MALLOC) case.
451 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
452 handling as last option before fallback instead of first.
453 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
454 _aligned_free.
455
456 2022-05-27 Jakub Jelinek <jakub@redhat.com>
457
458 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
459 clauses to enter.
460 * testsuite/libgomp.c/target-41.c: Likewise.
461
462 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
463
464 * libgomp.texi (Other new OpenMP 5.1 features): Add
465 'begin declare target'.
466 (Other new OpenMP 5.2 features): New.
467
468 2022-05-25 Jakub Jelinek <jakub@redhat.com>
469
470 * task.c (gomp_task_run_post_handle_dependers): If empty_task
471 is the last task taskwait depend depends on, wake it up.
472 Similarly if it is the last child of a taskgroup, use atomic
473 store instead of decrement and awak taskgroup wait if any.
474 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
475
476 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
477
478 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
479 EF_AMDGPU_MACH_AMDGCN_GFX90a.
480 (gcn_gfx90a_s): New.
481 (isa_hsa_name): Support gfx90a.
482 (isa_code): Likewise.
483
484 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
485
486 PR c/105378
487 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
488 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
489
490 2022-05-24 Jakub Jelinek <jakub@redhat.com>
491
492 PR c/105378
493 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
494 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
495 * task.c (empty_task): New function.
496 (gomp_task_run_post_handle_depend_hash): Declare earlier.
497 (gomp_task_run_post_handle_depend): Declare.
498 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
499 for.
500 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
501 (GOMP_taskwait_depend_nowait): New function.
502 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
503
504 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
505
506 PR fortran/104949
507 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
508 Support attach for GOMP_MAP_FIRSTPRIVATE.
509 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
510 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
511 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
512
513 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
514
515 * libgomp.map: Added omp_target_memcpy_async and
516 omp_target_memcpy_rect_async.
517 * libgomp.texi: Both functions are now supported.
518 * omp.h.in: Added omp_target_memcpy_async and
519 omp_target_memcpy_rect_async.
520 * omp_lib.f90.in: Added interfaces for both new functions.
521 * omp_lib.h.in: Likewise.
522 * target.c (ialias_redirect): Added for GOMP_task.
523 (omp_target_memcpy): Restructured into check and copy part.
524 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
525 omp_target_memcpy_async that checks requirements.
526 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
527 omp_target_memcpy_async that performs the memcpy.
528 (omp_target_memcpy_async_helper): New helper function that is used in
529 omp_target_memcpy_async for the asynchronous task.
530 (omp_target_memcpy_async): Added.
531 (omp_target_memcpy_rect): Restructured into check and copy part.
532 (omp_target_memcpy_rect_check): New helper function for
533 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
534 requirements.
535 (omp_target_memcpy_rect_copy): New helper function for
536 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
537 the memcpy.
538 (omp_target_memcpy_rect_async_helper): New helper function that is used
539 in omp_target_memcpy_rect_async for the asynchronous task.
540 (omp_target_memcpy_rect_async): Added.
541 * task.c (ialias): Added for GOMP_task.
542 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
543 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
544 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
545 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
546 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
547 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
548 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
549 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
550
551 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
552
553 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
554 (OpenMP Context Selectors): Add missing comma.
555 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
556 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
557 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
558 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
559
560 2022-05-17 Jakub Jelinek <jakub@redhat.com>
561
562 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
563 comment for omp_display_env feature.
564
565 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
566
567 * libgomp.texi (Offload-Target Specifics): New chapter; add section
568 to document OpenMP context selectors.
569
570 2022-05-17 Jakub Jelinek <jakub@redhat.com>
571
572 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
573 from bool to unsigned char.
574 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
575 Ignore dependencies where
576 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
577 rather than just task->depend[i].is_in && ent->is_in. Remember
578 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
579 conditional.
580 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
581 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
582 rather than just elem.is_in && ent->is_in.
583 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
584 inoutset depend-kind.
585 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
586 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
587 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
588
589 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
590
591 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
592
593 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
594
595 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
596 * testsuite/libgomp.fortran/depend-5.f90: New test.
597 * testsuite/libgomp.fortran/depend-6.f90: New test.
598 * testsuite/libgomp.fortran/depend-7.f90: New test.
599
600 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
601
602 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
603 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
604 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
605
606 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
607
608 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
609
610 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
611
612 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
613
614 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
615
616 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
617 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
618 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
619 append '$(PLUGIN_NVPTX_LDFLAGS)'.
620 * Makefile.in: Regenerate.
621
622 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
623
624 * Makefile.am (libgomp_la_LIBADD): Initialize.
625 * plugin/configfrag.ac (DL_LIBS): New.
626 (PLUGIN_GCN_LIBS): Remove.
627 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
628 * plugin/Makefrag.am (libgomp_la_LIBADD)
629 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
630 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
631 * Makefile.in: Regenerate.
632 * config.h.in: Likewise.
633 * configure: Likewise.
634 * testsuite/Makefile.in: Likewise.
635
636 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
637
638 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
639 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
640 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
641 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
642 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
643 'PLUGIN_NVPTX_LINK_LIBCUDA'.
644 * Makefile.in: Regenerate.
645 * config.h.in: Likewise.
646 * configure: Likewise.
647
648 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
649
650 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
651 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
652 * Makefile.in: Regenerate.
653 * config.h.in: Likewise.
654 * configure: Likewise.
655 * testsuite/Makefile.in: Likewise.
656
657 2022-05-12 Jakub Jelinek <jakub@redhat.com>
658
659 * libgomp.h (struct gomp_task): Add depend_all_memory member.
660 * task.c (gomp_init_task): Initialize depend_all_memory.
661 (gomp_task_handle_depend): Handle omp_all_memory.
662 (gomp_task_run_post_handle_depend_hash): Clear
663 parent->depend_all_memory if equal to current task.
664 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
665 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
666 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
667 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
668
669 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
670
671 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
672 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
673 * Makefile.in: Regenerate.
674 * configure: Likewise.
675 * testsuite/Makefile.in: Likewise.
676
677 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
678
679 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
680 consider 'PLUGIN_GCN_CPPFLAGS'.
681 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
682 'PLUGIN_GCN_LDFLAGS'.
683 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
684 Remove.
685 * Makefile.in: Regenerate.
686 * configure: Likewise.
687 * testsuite/Makefile.in: Likewise.
688
689 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
690
691 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
692 (HSA_RUNTIME_LDFLAGS): Remove.
693 * configure: Regenerate.
694
695 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
696
697 * testsuite/lib/libgomp.exp (libgomp_init): Don't
698 'append always_ld_library_path ":$hsa_runtime_lib"'.
699 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
700
701 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
702
703 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
704 multi-device testing.
705
706 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
707
708 * libgomp.map: Added omp_target_is_accessible.
709 * libgomp.texi: Tagged omp_target_is_accessible as supported.
710 * omp.h.in: Added omp_target_is_accessible.
711 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
712 * omp_lib.h.in: Likewise.
713 * target.c (omp_target_is_accessible): Added implementation of
714 omp_target_is_accessible.
715 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
716 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
717
718 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
719
720 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
721
722 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
723
724 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
725
726 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
727
728 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
729
730 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
731
732 * libgomp.map: Added omp_get_mapped_ptr.
733 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
734 * omp.h.in: Added omp_get_mapped_ptr.
735 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
736 * omp_lib.h.in: Likewise.
737 * target.c (omp_get_mapped_ptr): Added implementation of
738 omp_get_mapped_ptr.
739 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
740 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
741 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
742 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
743 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
744 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
745 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
746 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
747
748 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
749
750 PR fortran/104717
751 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
752 privatization scanning. For GCN offloading compilation, raise
753 '-mgang-private-size'.
754
755 2022-04-26 Jakub Jelinek <jakub@redhat.com>
756
757 PR libgomp/105358
758 * work.c (gomp_init_work_share): Don't mask of adjustment for
759 dynamic long long realignment if struct gomp_work_share has smaller
760 alignof than long long.
761 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
762 struct gomp_work_share has smaller alignof than long long or if
763 sizeof (struct gomp_work_share) is smaller than
764 INLINE_ORDERED_TEAM_IDS_OFF.
765 * loop_ull.c (GOMP_loop_ull_start): Likewise.
766 * sections.c (GOMP_sections2_start): Likewise.
767
768 2022-04-25 Jakub Jelinek <jakub@redhat.com>
769 Thomas Schwinge <thomas@codesourcery.com>
770
771 PR fortran/104717
772 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
773
774 2022-04-13 Jakub Jelinek <jakub@redhat.com>
775
776 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
777
778 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
779
780 * plugin/cuda/cuda.h: Remove file.
781 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
782 "cuda/cuda.h" instead of <cuda.h>.
783 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
784 'PLUGIN_NVPTX_CPPFLAGS'.
785 * configure: Regenerate.
786
787 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
788
789 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
790
791 2022-04-04 Tom de Vries <tdevries@suse.de>
792
793 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
794 on_device_arch_nvptx instead of offload_target_nvptx.
795 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
796
797 2022-04-01 Tom de Vries <tdevries@suse.de>
798
799 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
800 and use REC_DEPTH.
801 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
802
803 2022-04-01 Tom de Vries <tdevries@suse.de>
804
805 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
806 num_workers check.
807
808 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
809 Lulu Cheng <chenglulu@loongson.cn>
810
811 * configure.tgt: Add LoongArch triplet.
812
813 2022-03-28 Tom de Vries <tdevries@suse.de>
814
815 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
816 instead of /libexec/.
817 * configure: Regenerate.
818
819 2022-03-25 Tom de Vries <tdevries@suse.de>
820
821 PR libgomp/105042
822 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
823 execution time.
824 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
825 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
826
827 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
828
829 PR middle-end/104285
830 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
831 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
832 * testsuite/libgomp.c++/target-same-name-2.C: New test.
833 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
834 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
835 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
836
837 2022-03-22 Tom de Vries <tdevries@suse.de>
838
839 PR target/104916
840 PR target/104783
841 * testsuite/libgomp.c/pr104783-2.c: New test.
842
843 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
844
845 PR fortran/103039
846 * testsuite/libgomp.fortran/associate4.f90: New test.
847
848 2022-03-18 Tom de Vries <tdevries@suse.de>
849
850 PR target/104952
851 * testsuite/libgomp.c/pr104952-1.c: New test.
852 * testsuite/libgomp.c/pr104952-2.c: New test.
853
854 2022-03-18 Jakub Jelinek <jakub@redhat.com>
855
856 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
857 variable next to pl variable.
858
859 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
860
861 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
862 Enhance.
863 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
864 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
865
866 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
867
868 PR middle-end/90115
869 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
870 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
871
872 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
873
874 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
875 omp_set_max_active_levels.
876 * testsuite/libgomp.fortran/icv-8.f90: New test.
877
878 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
879
880 PR testsuite/102841
881 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
882
883 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
884
885 * libgomp.texi: Fix typo.
886
887 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
888
889 PR middle-end/100280
890 PR middle-end/104892
891 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
892 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
893 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
894 Likewise.
895 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
896 Likewise.
897 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
898 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
899 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
900 Likewise.
901
902 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
903
904 PR middle-end/104892
905 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
906 to PR104892.
907 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
908 enable '--param=openacc-kernels=decompose' and adjust.
909 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
910 Likewise.
911 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
912 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
913 Likewise.
914
915 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
916
917 PR middle-end/90115
918 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
919 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
920 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
921 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
922
923 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
924
925 PR middle-end/100280
926 PR middle-end/104086
927 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
928 Merge this...
929 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
930 ..., and this...
931 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
932 this, and adjust.
933 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
934 Extend.
935
936 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
937
938 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
939 trait. Test last index in w and v array. Remove redundant
940 assignment to V(1). Move alignment checks at the end of
941 parallel region.
942
943 2022-03-10 Tom de Vries <tdevries@suse.de>
944
945 * testsuite/libgomp.c/pr104783.c: New test.
946
947 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
948
949 PR middle-end/90115
950 PR middle-end/102330
951 PR middle-end/104774
952 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
953 Enhance.
954 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
955 Adjust.
956 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
957 Likewise.
958 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
959 Likewise.
960 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
961 Likewise.
962 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
963 Likewise.
964 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
965 Likewise.
966 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
967 Likewise.
968 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
969 Likewise.
970 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
971 Likewise.
972 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
973 Likewise.
974 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
975 Likewise.
976 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
977 Likewise.
978 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
979 Likewise.
980 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
981 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
982 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
983
984 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
985
986 PR middle-end/90115
987 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
988 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
989 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
990 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
991
992 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
993
994 PR testsuite/104791
995 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
996 expected diagnostics.
997
998 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
999
1000 PR middle-end/104784
1001 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1002 Test with '--param=openacc-kernels=decompose'.
1003 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1004 Likewise.
1005 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1006 Likewise.
1007 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1008 Likewise.
1009 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1010 Likewise.
1011 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1012 Likewise.
1013 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1014 Likewise.
1015 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1016 Likewise.
1017 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1018 Likewise.
1019 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1020 Likewise.
1021 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1022 Likewise.
1023 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1024 Likewise.
1025 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1026 Likewise.
1027 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1028 Likewise.
1029 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1030 Likewise.
1031 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1032 Likewise.
1033 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1034 Likewise.
1035 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1036 Likewise.
1037 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1038 Likewise.
1039 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1040 Likewise.
1041 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1042 Likewise.
1043 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1044 Likewise.
1045 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1046 Likewise.
1047 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1048 Likewise.
1049 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1050 Likewise.
1051 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1052 Likewise.
1053 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1054 Likewise.
1055 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1056 Likewise.
1057 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1058 Likewise.
1059 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1060 Likewise.
1061 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1062 Likewise.
1063 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1064 Likewise.
1065 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1066 Likewise.
1067
1068 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1069
1070 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1071 Test '-fopt-info-omp-all'.
1072 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1073 Likewise.
1074 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1075 Likewise.
1076 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1077 Likewise.
1078 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1079 Likewise.
1080 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1081 Likewise.
1082 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1083 Likewise.
1084 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1085 Likewise.
1086 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1087 Likewise.
1088 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1089 Likewise.
1090 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1091 Likewise.
1092 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1093 Likewise.
1094 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1095 Likewise.
1096 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1097 Likewise.
1098 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1099 Likewise.
1100 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1101 Likewise.
1102 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1103 Likewise.
1104 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1105 Likewise.
1106 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1107 Likewise.
1108 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1109 Likewise.
1110 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1111 Likewise.
1112 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1113 Likewise.
1114 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1115 Likewise.
1116 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1117 Likewise.
1118 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1119 Likewise.
1120 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1121 Likewise.
1122 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1123 Likewise.
1124 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1125 Likewise.
1126 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1127 Likewise.
1128 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1129 Likewise.
1130 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1131 Likewise.
1132 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1133 Likewise.
1134 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1135 Likewise.
1136
1137 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1138
1139 PR middle-end/100280
1140 PR middle-end/104132
1141 PR middle-end/104133
1142 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1143 Extend.
1144
1145 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1146
1147 PR middle-end/100280
1148 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1149 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1150 Likewise.
1151
1152 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
1153
1154 PR middle-end/100280
1155 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
1156 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1157 Likewise.
1158
1159 2022-02-28 Tom de Vries <tdevries@suse.de>
1160
1161 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
1162 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
1163 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
1164 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
1165 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
1166 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
1167
1168 2022-02-24 Tom de Vries <tdevries@suse.de>
1169
1170 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
1171 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
1172 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
1173 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
1174 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
1175 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
1176 * testsuite/libgomp.c/declare-variant-3.h: New header file.
1177
1178 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
1179
1180 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
1181 gang-redundant execution.
1182
1183 2022-02-22 Tom de Vries <tdevries@suse.de>
1184
1185 PR target/99555
1186 * config/nvptx/bar.c (generation_to_barrier): New function, copied
1187 from config/rtems/bar.c.
1188 (futex_wait, futex_wake): New function.
1189 (do_spin, do_wait): New function, copied from config/linux/wait.h.
1190 (gomp_barrier_wait_end, gomp_barrier_wait_last)
1191 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
1192 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
1193 and replace with include of config/linux/bar.c.
1194 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
1195 (gomp_barrier_init): Init new fields.
1196 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
1197 workarounds.
1198 * testsuite/libgomp.c/pr99555-1.c: Same.
1199 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
1200
1201 2022-02-22 Tom de Vries <tdevries@suse.de>
1202
1203 PR testsuite/104146
1204 * testsuite/libgomp.c++/pr96390.C: Add additional-option
1205 -foffload=-Wa,--verify for nvptx.
1206 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
1207
1208 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
1209
1210 * testsuite/libgomp.fortran/depend-4.f90: New test.
1211
1212 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
1213
1214 PR c++/102204
1215 * testsuite/libgomp.c++/target-virtual-1.C: New test.
1216
1217 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
1218
1219 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
1220 * target.c (copy_firstprivate_data): Copy only if host address is not
1221 NULL.
1222 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
1223 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
1224 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
1225 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
1226 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
1227 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
1228 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
1229 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
1230 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
1231 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
1232
1233 2022-02-08 Jakub Jelinek <jakub@redhat.com>
1234
1235 PR libgomp/104385
1236 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
1237 clear task->parent.
1238 * testsuite/libgomp.c/pr104385.c: New test.
1239
1240 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1241
1242 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
1243 STOP of previous commit.
1244
1245 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
1246
1247 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
1248 from is_64bit_aligned_.
1249 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
1250 and use it, more implicit none, remove unused argument.
1251
1252 2022-02-03 David Seifert <soap@gentoo.org>
1253 Jakub Jelinek <jakub@redhat.com>
1254
1255 * configure.ac: Support --disable-werror.
1256 * configure: Regenerate.
1257
1258 2022-02-01 Tom de Vries <tdevries@suse.de>
1259
1260 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
1261 PR83812 workaround.
1262 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
1263 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
1264
1265 2022-02-01 Tom de Vries <tdevries@suse.de>
1266
1267 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
1268 num_workers for nvidia accelerator to fix libgomp error 'insufficient
1269 resources'.
1270 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1271 Same.
1272 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
1273
1274 2022-02-01 Tom de Vries <tdevries@suse.de>
1275
1276 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1277 recursion depth.
1278 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1279
1280 2022-01-31 Martin Liska <mliska@suse.cz>
1281
1282 * acinclude.m4: Detect *_ld_is_mold and use it.
1283 * configure: Regenerate.
1284
1285 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
1286
1287 * libgomp.texi (OpenMP 5.0): Update implementation status.
1288
1289 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
1290
1291 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
1292 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1293 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1294 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1295 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1296 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1297 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1298 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1299 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1300 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1301 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1302 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
1303 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
1304 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1305 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
1306
1307 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
1308
1309 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
1310 "static") to make the device num available in the offload image.
1311
1312 2022-01-19 Martin Liska <mliska@suse.cz>
1313 Thomas Schwinge <thomas@codesourcery.com>
1314
1315 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
1316 patterns.
1317 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1318 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1319 Likewise.
1320 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1321 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1322 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1323 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1324 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
1325 Likewise.
1326 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
1327 Likewise.
1328 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
1329 Likewise.
1330 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
1331 Likewise.
1332 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
1333 Likewise.
1334 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1335 Likewise.
1336 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1337 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1338 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1339
1340 2022-01-18 Martin Liska <mliska@suse.cz>
1341
1342 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
1343 in dg-warning.
1344 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1345 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
1346 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
1347 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1348 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1349 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
1350 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
1351 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
1352 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
1353 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
1354 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
1355 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
1356 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1357 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1358 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1359
1360 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
1361
1362 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
1363 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
1364 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
1365
1366 2022-01-17 Julian Brown <julian@codesourcery.com>
1367 Thomas Schwinge <thomas@codesourcery.com>
1368
1369 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
1370 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
1371 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
1372
1373 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
1374 Andrew Stubbs <ams@codesourcery.com>
1375
1376 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
1377 the number of teams and threads if necessary.
1378 (gcn_exec): Automatically set the number of gangs and workers if
1379 necessary.
1380
1381 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
1382
1383 * testsuite/libgomp.fortran/allocate-1.c: New test.
1384 * testsuite/libgomp.fortran/allocate-1.f90: New test.
1385 * libgomp.texi: Remove string that says that allocate clause
1386 support is for C/C++ only.
1387
1388 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1389
1390 * testsuite/libgomp.c-c++-common/on_device_arch.h
1391 (any_device_arch, any_device_arch_intel_mic): New.
1392 * testsuite/lib/libgomp.exp
1393 (check_effective_target_offload_device_any_intel_mic): New.
1394 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
1395 * testsuite/libgomp.fortran/target10.f90: Likewise.
1396
1397 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1398
1399 PR tree-optimization/102192
1400 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
1401 '-Wuninitialized' diagnostics.
1402
1403 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1404
1405 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
1406 current '-Wuninitialized' diagnostics.
1407 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
1408 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
1409 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
1410 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
1411 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1412 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
1413 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
1414 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1415 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1416 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1417 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
1418 Likewise.
1419
1420 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1421
1422 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
1423 for 'offload_device_intel_mic'.
1424
1425 2022-01-13 Julian Brown <julian@codesourcery.com>
1426 Thomas Schwinge <thomas@codesourcery.com>
1427
1428 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
1429 offloading execution XFAIL.
1430
1431 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1432
1433 PR middle-end/100280
1434 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1435 Update.
1436 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1437 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1438 Likewise.
1439
1440 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
1441
1442 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1443 Enhance.
1444 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1445 Likewise.
1446 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
1447 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
1448 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
1449 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
1450 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1451 Likewise.
1452 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1453 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1454 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1455 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1456
1457 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
1458
1459 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
1460 * testsuite/libgomp.fortran/target10.f90: Likewise.
1461
1462 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
1463
1464 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
1465 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
1466 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
1467
1468 2022-01-03 Jakub Jelinek <jakub@redhat.com>
1469
1470 * libgomp.texi: Bump @copying's copyright year.
1471
1472 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
1473
1474 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
1475 * testsuite/libgomp.fortran/atomic-19.f90: New test.
1476
1477 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
1478
1479 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
1480 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
1481 table, not individual symbols.
1482
1483 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1484
1485 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
1486 "target offload_device_nonshared_as"
1487 * testsuite/libgomp.c++/target-this-3.C: Likewise.
1488 * testsuite/libgomp.c++/target-this-4.C: Likewise.
1489
1490 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1491
1492 * target.c (gomp_map_vars_existing): Make sure attached pointer is
1493 not overwritten during cross-host/device copying.
1494 (gomp_update): Likewise.
1495 (gomp_exit_data): Likewise.
1496 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
1497 * testsuite/libgomp.c++/target-12.C: Likewise.
1498 * testsuite/libgomp.c++/target-15.C: Likewise.
1499 * testsuite/libgomp.c++/target-16.C: Likewise.
1500 * testsuite/libgomp.c++/target-17.C: Likewise.
1501 * testsuite/libgomp.c++/target-21.C: Likewise.
1502 * testsuite/libgomp.c++/target-23.C: Likewise.
1503 * testsuite/libgomp.c/target-23.c: Likewise.
1504 * testsuite/libgomp.c/target-29.c: Likewise.
1505 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
1506
1507 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
1508
1509 PR middle-end/92120
1510 * libgomp.h (gomp_attach_pointer): Add bool parameter.
1511 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
1512 (goacc_enter_data_internal): Likewise.
1513 * target.c (gomp_map_vars_existing): Update assert condition to
1514 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
1515 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
1516 parameter, add support for mapping a pointer with NULL target.
1517 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
1518 parameter, add support for attaching a pointer with NULL target.
1519 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
1520 gomp_attach_pointer, add handling for
1521 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
1522 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
1523 * testsuite/libgomp.c++/target-23.C: New testcase.
1524 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
1525 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
1526 * testsuite/libgomp.c++/target-this-1.C: New testcase.
1527 * testsuite/libgomp.c++/target-this-2.C: New testcase.
1528 * testsuite/libgomp.c++/target-this-3.C: New testcase.
1529 * testsuite/libgomp.c++/target-this-4.C: New testcase.
1530 * testsuite/libgomp.c++/target-this-5.C: New testcase.
1531
1532 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
1533
1534 * libgomp.texi (OpenMP 5.1): Update status.
1535
1536 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
1537
1538 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
1539
1540 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
1541
1542 PR fortran/90030
1543 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
1544 * testsuite/libgomp.fortran/pr90030.f90: New test.
1545
1546 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1547 Thomas Schwinge <thomas@codesourcery.com>
1548
1549 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
1550 temporary skip.
1551
1552 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
1553 Thomas Schwinge <thomas@codesourcery.com>
1554
1555 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
1556 skip.
1557
1558 2021-11-29 Richard Biener <rguenther@suse.de>
1559
1560 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
1561 return.
1562
1563 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1564
1565 PR middle-end/103384
1566 * testsuite/libgomp.c/declare-variant-2.c: New test.
1567
1568 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
1569
1570 * alloc.c (gomp_aligned_alloc): Fix typo.
1571
1572 2021-11-18 Jakub Jelinek <jakub@redhat.com>
1573
1574 PR libgomp/102838
1575 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
1576 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
1577 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
1578 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1579 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
1580 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
1581 gomp_aligned_alloc instead of team_malloc.
1582
1583 2021-11-18 Jakub Jelinek <jakub@redhat.com>
1584
1585 PR libgomp/102838
1586 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
1587 memalign over posix_memalign over aligned_alloc over fallback
1588 with malloc instead of aligned_alloc over _aligned_alloc over
1589 posix_memalign over memalign over fallback with malloc. For
1590 aligned_alloc, round up size up to multiple of al.
1591
1592 2021-11-16 Jakub Jelinek <jakub@redhat.com>
1593
1594 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
1595 construct as implemented.
1596
1597 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
1598
1599 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
1600
1601 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1602
1603 * task.c (gomp_create_target_task): Copy args array as well.
1604 * target.c (gomp_target_fallback): Add args argument.
1605 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
1606 (GOMP_target): Adjust gomp_target_fallback caller.
1607 (GOMP_target_ext): Likewise.
1608 (gomp_target_task_fn): Likewise.
1609 * config/nvptx/team.c (gomp_nvptx_main): Set
1610 gomp_global_icv.thread_limit_var.
1611 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
1612
1613 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1614
1615 * config/nvptx/team.c (__gomp_team_num): Define as
1616 __attribute__((shared)) var.
1617 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
1618 * config/nvptx/target.c (__gomp_team_num): Declare as
1619 extern __attribute__((shared)) var.
1620 (GOMP_teams4): Use __gomp_team_num as the team number instead of
1621 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
1622 is bigger than num_blocks, use num_teams_lower teams and arrange for
1623 bumping of __gomp_team_num if !first and returning false once we run
1624 out of teams.
1625 * config/nvptx/teams.c (__gomp_team_num): Declare as
1626 extern __attribute__((shared)) var.
1627 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
1628
1629 2021-11-15 Jakub Jelinek <jakub@redhat.com>
1630
1631 * testsuite/libgomp.c/teams-5.c: New test.
1632
1633 2021-11-12 Jakub Jelinek <jakub@redhat.com>
1634
1635 PR target/103201
1636 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
1637 to ...
1638 * config/gcn/teams.c: ... here. New file.
1639
1640 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
1641
1642 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
1643 implicit map handling to allow a "superset" existing map as valid case.
1644 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
1645 (get_implicit): New function to extract implicit status.
1646 (gomp_map_fields_existing): Adjust arguments in calls to
1647 gomp_map_vars_existing, and add uses of get_implicit.
1648 (gomp_map_vars_internal): Likewise.
1649 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
1650
1651 2021-11-12 Jakub Jelinek <jakub@redhat.com>
1652
1653 * libgomp_g.h (GOMP_teams4): Declare.
1654 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
1655 * target.c (GOMP_teams4): New function.
1656 * config/nvptx/target.c (GOMP_teams): Remove.
1657 (GOMP_teams4): New function.
1658 * config/gcn/target.c (GOMP_teams): Remove.
1659 (GOMP_teams4): New function.
1660 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
1661 teams instead of <= 2.
1662 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
1663
1664 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
1665
1666 * testsuite/libgomp.fortran/teams-1.f90: New test.
1667
1668 2021-11-11 Jakub Jelinek <jakub@redhat.com>
1669
1670 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
1671 * team.c (struct gomp_thread_start_data): Likewise.
1672 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
1673 (gomp_team_start): Initialize start_data->num_teams and
1674 start_data->team_num. Update nthr->num_teams and nthr->team_num.
1675 * teams.c (gomp_num_teams, gomp_team_num): Remove.
1676 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
1677 instead of gomp_num_teams and gomp_team_num.
1678 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
1679 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
1680 * testsuite/libgomp.c/teams-4.c: New test.
1681
1682 2021-11-11 Jakub Jelinek <jakub@redhat.com>
1683
1684 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
1685
1686 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
1687
1688 * env.c (parse_gomp_openacc_dim): Restore parsing.
1689
1690 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
1691
1692 PR middle-end/102972
1693 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
1694 parallel construct.
1695 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
1696 * testsuite/libgomp.c/target-3.c: Likewise.
1697 * testsuite/libgomp.c/target-5.c: Likewise.
1698 * testsuite/libgomp.c/target-6.c: Likewise.
1699 * testsuite/libgomp.c/target-teams-1.c: Likewise.
1700 * testsuite/libgomp.c/teams-1.c: Likewise.
1701 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1702 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
1703 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
1704 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
1705 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
1706 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
1707 * testsuite/libgomp.fortran/teams1.f90: Likewise.
1708
1709 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
1710
1711 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
1712 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1713
1714 2021-10-27 Jakub Jelinek <jakub@redhat.com>
1715
1716 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
1717 aren't implemented for Fortran yet.
1718
1719 2021-10-27 Jakub Jelinek <jakub@redhat.com>
1720
1721 * testsuite/libgomp.c/loop-26.c: New test.
1722 * testsuite/libgomp.c/loop-27.c: New test.
1723
1724 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
1725
1726 PR testsuite/102910
1727 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
1728 instead of #include <alloca.h> + alloca.
1729
1730 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
1731
1732 * libgomp.texi (Support of strictly structured blocks in Fortran):
1733 Adjust to 'Y'.
1734 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
1735
1736 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
1737
1738 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
1739 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
1740
1741 2021-10-20 Jakub Jelinek <jakub@redhat.com>
1742
1743 PR libgomp/102838
1744 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
1745 (struct gomp_work_share): Only use aligned(64) attribute if
1746 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
1747 add padding before lock to ensure lock is at offset 64 bytes
1748 into the structure.
1749 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
1750 New poor man's static assertions.
1751 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
1752 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
1753
1754 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1755 Richard Biener <rguenther@suse.de>
1756
1757 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
1758
1759 2021-10-18 Jakub Jelinek <jakub@redhat.com>
1760
1761 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
1762 && gomp_places_list_len < count after nfirst <= nlast loop condition.
1763
1764 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
1765
1766 PR fortran/102086
1767 PR fortran/92189
1768 PR fortran/92621
1769 PR fortran/101308
1770 PR fortran/101309
1771 PR fortran/101635
1772 PR fortran/92482
1773 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
1774
1775 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1776
1777 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
1778 type from char [50] to const char *.
1779 (places_array): Add a testcase for simplified syntax place followed
1780 by length or length and stride.
1781
1782 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1783
1784 * env.c (parse_one_place): Handle non-negative-number the same
1785 as { non-negative-number }. Reject even !number:1 and
1786 !number:1:stride or !place:1 or !place:1:stride instead of just
1787 length other than 1.
1788 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
1789 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
1790 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
1791 as implemented.
1792 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
1793 simplified syntax.
1794
1795 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1796
1797 * env.c (parse_schedule): For strtoul or strtoull calls which don't
1798 clearly reject return value 0 as invalid handle the case where end
1799 pointer is the same as first argument as invalid.
1800 (parse_unsigned_long_1): Likewise.
1801 (parse_one_place): Likewise.
1802 (parse_places_var): Likewise.
1803 (parse_stacksize): Likewise.
1804 (parse_spincount): Likewise.
1805 (parse_affinity): Likewise.
1806 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
1807 Make code valid C89.
1808 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
1809 For strtoul calls which don't clearly reject return value 0 as
1810 invalid handle the case where end pointer is the same as first
1811 argument as invalid.
1812 (gomp_affinity_init_level_1): Likewise.
1813 (gomp_affinity_init_numa_domains): Likewise.
1814 * config/rtems/proc.c (parse_thread_pools): Likewise.
1815
1816 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1817
1818 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
1819 after creating count places clean up and return immediately.
1820 * testsuite/libgomp.c/places-6.c: New test.
1821 * testsuite/libgomp.c/places-7.c: New test.
1822 * testsuite/libgomp.c/places-8.c: New test.
1823 * testsuite/libgomp.c/places-9.c: New test.
1824 * testsuite/libgomp.c/places-10.c: New test.
1825
1826 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1827
1828 * env.c (parse_places_var): Handle numa_domains as level 5.
1829 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
1830 function.
1831 (gomp_affinity_init_level): Use it instead of
1832 gomp_affinity_init_level_1 for level == 5.
1833 * testsuite/libgomp.c/places-5.c: New test.
1834
1835 2021-10-15 Jakub Jelinek <jakub@redhat.com>
1836
1837 * env.c (parse_places_var): Handle ll_caches as level 4.
1838 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
1839 function.
1840 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
1841 last level cache.
1842 (gomp_affinity_init_level): Likewise.
1843 * testsuite/libgomp.c/places-1.c: New test.
1844 * testsuite/libgomp.c/places-2.c: New test.
1845 * testsuite/libgomp.c/places-3.c: New test.
1846 * testsuite/libgomp.c/places-4.c: New test.
1847
1848 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1849
1850 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
1851 directive.
1852
1853 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1854
1855 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
1856
1857 2021-10-12 Julian Brown <julian@codesourcery.com>
1858
1859 * target.c (gomp_copy_host2dev): Release device lock on cbuf
1860 error path.
1861
1862 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
1863
1864 * testsuite/libgomp.fortran/icv-3.f90: New.
1865 * testsuite/libgomp.fortran/icv-4.f90: New.
1866
1867 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1868
1869 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
1870 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
1871 OMP_TEAMS_THREAD_LIMIT): Document.
1872
1873 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1874
1875 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
1876 to avoid makeinfo warnings.
1877
1878 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1879
1880 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
1881 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
1882
1883 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1884
1885 PR libgomp/102628
1886 PR libgomp/102668
1887 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
1888 allocation sizes from 420 to 320 and from 768 to 568.
1889 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1890 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
1891 for cr from 16 to 4.
1892
1893 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1894
1895 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
1896 * testsuite/libgomp.c/scan-12.c: Likewise.
1897 * testsuite/libgomp.c/scan-13.c: Likewise.
1898 * testsuite/libgomp.c/scan-14.c: Likewise.
1899 * testsuite/libgomp.c/scan-15.c: Likewise.
1900 * testsuite/libgomp.c/scan-16.c: Likewise.
1901 * testsuite/libgomp.c/scan-17.c: Likewise.
1902 * testsuite/libgomp.c/scan-18.c: Likewise.
1903 * testsuite/libgomp.c/scan-19.c: Likewise.
1904 * testsuite/libgomp.c/scan-20.c: Likewise.
1905 * testsuite/libgomp.c/scan-21.c: Likewise.
1906 * testsuite/libgomp.c/scan-22.c: Likewise.
1907 * testsuite/libgomp.c++/scan-9.C: Likewise.
1908 * testsuite/libgomp.c++/scan-10.C: Likewise.
1909 * testsuite/libgomp.c++/scan-11.C: Likewise.
1910 * testsuite/libgomp.c++/scan-12.C: Likewise.
1911 * testsuite/libgomp.c++/scan-13.C: Likewise.
1912 * testsuite/libgomp.c++/scan-14.C: Likewise.
1913 * testsuite/libgomp.c++/scan-15.C: Likewise.
1914 * testsuite/libgomp.c++/scan-16.C: Likewise.
1915
1916 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
1917
1918 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
1919
1920 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
1921
1922 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
1923 omp_atv_serialized.
1924 * omp.h.in: Add deprecated flag for omp_atv_sequential.
1925 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
1926 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
1927 * testsuite/libgomp.fortran/alloc-12.f90: New test.
1928
1929 2021-10-11 Jakub Jelinek <jakub@redhat.com>
1930
1931 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
1932 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
1933 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
1934 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
1935 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
1936 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
1937 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
1938 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
1939 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
1940 omp_set_teams_thread_limit{,_,_8_}.
1941 * icv.c (omp_set_num_teams, omp_get_max_teams,
1942 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
1943 functions.
1944 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
1945 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
1946 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
1947 vars.
1948 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
1949 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
1950 is not specified, use gomp_nteams_var.
1951 * fortran.c (omp_set_num_teams, omp_get_max_teams,
1952 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
1953 ialias_redirect.
1954 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
1955 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
1956 omp_get_teams_thread_limit_): New functions.
1957
1958 2021-10-09 liuhongt <hongtao.liu@intel.com>
1959
1960 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
1961 * testsuite/libgomp.c++/scan-11.C: Ditto.
1962 * testsuite/libgomp.c++/scan-12.C: Ditto.
1963 * testsuite/libgomp.c++/scan-13.C: Ditto.
1964 * testsuite/libgomp.c++/scan-14.C: Ditto.
1965 * testsuite/libgomp.c++/scan-15.C: Ditto.
1966 * testsuite/libgomp.c++/scan-16.C: Ditto.
1967 * testsuite/libgomp.c++/scan-9.C: Ditto.
1968 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
1969 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
1970 * testsuite/libgomp.c/scan-11.c: Ditto.
1971 * testsuite/libgomp.c/scan-12.c: Ditto.
1972 * testsuite/libgomp.c/scan-13.c: Ditto.
1973 * testsuite/libgomp.c/scan-14.c: Ditto.
1974 * testsuite/libgomp.c/scan-15.c: Ditto.
1975 * testsuite/libgomp.c/scan-16.c: Ditto.
1976 * testsuite/libgomp.c/scan-17.c: Ditto.
1977 * testsuite/libgomp.c/scan-18.c: Ditto.
1978 * testsuite/libgomp.c/scan-19.c: Ditto.
1979 * testsuite/libgomp.c/scan-20.c: Ditto.
1980 * testsuite/libgomp.c/scan-21.c: Ditto.
1981 * testsuite/libgomp.c/scan-22.c: Ditto.
1982
1983 2021-10-09 Jakub Jelinek <jakub@redhat.com>
1984
1985 * libgomp.texi (OpenMP 5.1): Mention implemented support for
1986 structured block sequences in C/C++. Mention support for
1987 unconstrained/reproducible modifiers on order clause.
1988 Mention partial (C/C++ only) support of extentensions to atomics
1989 construct. Mention partial (C/C++ on clause only) support of
1990 align/allocator modifiers on allocate clause.
1991
1992 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
1993
1994 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
1995 based on libgomp.c-c++-common/order-reproducible-1.c.
1996 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1997 * testsuite/libgomp.fortran/my-usleep.c: New test.
1998
1999 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
2000
2001 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
2002 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
2003 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
2004 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
2005 based on libgomp.c-c++-common/alloc-9.c.
2006
2007 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2008
2009 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
2010 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
2011
2012 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2013
2014 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
2015 ialias_redirect.
2016 * env.c (handle_omp_display_env): Use ialias_call.
2017 * icv-device.c: Move ialias right below each function.
2018 (omp_get_device_num): Use ialias_call.
2019 * fortran.c (omp_fulfill_event): Add ialias_redirect.
2020 * icv.c (omp_get_active_level): Add ialias_redirect.
2021
2022 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2023
2024 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
2025 __alloc_align__ (1) attribute.
2026 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
2027
2028 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2029
2030 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
2031 for -fintrinsic-modules-path= warning of the C compiler.
2032 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
2033 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
2034
2035 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2036
2037 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
2038 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
2039 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2040 omp_realloc): Add.
2041 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
2042 omp_realloc): Add.
2043 * testsuite/libgomp.fortran/alloc-10.f90: New test.
2044 * testsuite/libgomp.fortran/alloc-6.f90: New test.
2045 * testsuite/libgomp.fortran/alloc-7.c: New test.
2046 * testsuite/libgomp.fortran/alloc-7.f90: New test.
2047 * testsuite/libgomp.fortran/alloc-8.f90: New test.
2048 * testsuite/libgomp.fortran/alloc-9.f90: New test.
2049
2050 2021-09-30 Jakub Jelinek <jakub@redhat.com>
2051
2052 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
2053 omp_realloc): New prototypes.
2054 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
2055 attribute.
2056 * allocator.c: Include string.h.
2057 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
2058 variable and use it instead of alignment so that when retrying the old
2059 alignment is used again. Don't retry if new alignment is the same
2060 as old alignment, unless allocator had pool size.
2061 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
2062 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
2063 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
2064 omp_aligned_calloc and omp_realloc.
2065 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
2066 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
2067 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
2068 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
2069 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
2070 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
2071
2072 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
2073
2074 PR libgomp/96661
2075 * configure.ac: Only check for int-type = 2*size_t support when
2076 building with Fortran support.
2077 * configure: Regenerate.
2078
2079 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
2080
2081 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
2082 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2083
2084 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2085
2086 * team.c: Initialize start_data.
2087 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2088 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
2089
2090 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2091
2092 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
2093 dg-message back to dg-note.
2094
2095 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
2096
2097 PR fortran/94070
2098 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
2099 expected dg-note output.
2100
2101 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
2102
2103 PR fortran/55534
2104 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
2105 r12-3722 by removing -Wno-missing-include-dirs.
2106 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2107
2108 2021-09-22 Jakub Jelinek <jakub@redhat.com>
2109
2110 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
2111 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
2112
2113 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
2114
2115 PR fortran/55534
2116 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
2117 to ALWAYS_CFLAGS.
2118 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2119
2120 2021-09-18 Jakub Jelinek <jakub@redhat.com>
2121
2122 * testsuite/libgomp.c++/default-1.C: New test.
2123 * testsuite/libgomp.c-c++-common/default-1.c: New test.
2124 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
2125 to default clause in C and C++" as implemented.
2126
2127 2021-09-17 Julian Brown <julian@codesourcery.com>
2128
2129 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
2130
2131 2021-09-17 Julian Brown <julian@codesourcery.com>
2132
2133 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
2134
2135 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2136
2137 * libgomp.texi (OpenMP 5.1): Spelling fix,
2138 declare variante -> declare variant.
2139
2140 2021-09-17 Jakub Jelinek <jakub@redhat.com>
2141
2142 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
2143 Use /* */ comments instead of //.
2144 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
2145 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
2146 * testsuite/libgomp.c++/atomic-16.C: New test.
2147 * testsuite/libgomp.c++/atomic-17.C: New test.
2148
2149 2021-09-10 Jakub Jelinek <jakub@redhat.com>
2150
2151 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
2152 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
2153 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
2154
2155 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2156
2157 * libgomp.texi (OpenMP Implementation Status): Extend
2158 OpenMP 5.0 section.
2159 (OpenACC Profiling Interface): Fix typo.
2160
2161 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
2162
2163 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
2164 not to 4.5; link to new section.
2165 (OpenMP Implementation Status): New.
2166
2167 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
2168
2169 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
2170
2171 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
2172
2173 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
2174 dg-output.
2175 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2176
2177 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2178 Jakub Jelinek <jakub@redhat.com>
2179
2180 * testsuite/libgomp.c/address-space-1.c: New file.
2181
2182 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
2183
2184 * testsuite/lib/libgomp.exp
2185 (check_effective_target_offload_target_intelmic): Remove 'proc'.
2186 (check_effective_target_offload_device_intel_mic): New 'proc'.
2187 * testsuite/libgomp.c-c++-common/on_device_arch.h
2188 (device_arch_intel_mic, on_device_arch_intel_mic): New.
2189 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
2190 'dg-xfail-run-if'.
2191 * testsuite/libgomp.fortran/target10.f90: Likewise.
2192
2193 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
2194
2195 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
2196 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
2197 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
2198 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
2199
2200 2021-08-23 Jakub Jelinek <jakub@redhat.com>
2201
2202 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
2203 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
2204 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
2205
2206 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
2207
2208 * config/nvptx/error.c (fwrite, exit): Override, too.
2209 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
2210 of offloading testing.
2211 * testsuite/libgomp.fortran/error-1.f90: Likewise.
2212
2213 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
2214
2215 * testsuite/libgomp.fortran/error-1.f90: New test.
2216
2217 2021-08-20 Jakub Jelinek <jakub@redhat.com>
2218
2219 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
2220 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
2221 * error.c (GOMP_warning, GOMP_error): New functions.
2222 * testsuite/libgomp.c-c++-common/error-1.c: New test.
2223
2224 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
2225
2226 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
2227 omp_target_free. omp_target_is_present, omp_target_memcpy,
2228 omp_target_memcpy_rect, omp_target_associate_ptr,
2229 omp_target_disassociate_ptr): Add interface.
2230 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
2231 omp_target_free. omp_target_is_present, omp_target_memcpy,
2232 omp_target_memcpy_rect, omp_target_associate_ptr,
2233 omp_target_disassociate_ptr): Add interface.
2234 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
2235 interface block for omp_alloc + omp_free.
2236 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
2237 * testsuite/libgomp.fortran/refcount-1.f90: New test.
2238 * testsuite/libgomp.fortran/target-12.f90: New test.
2239
2240 2021-08-18 Jakub Jelinek <jakub@redhat.com>
2241
2242 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
2243
2244 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
2245
2246 * testsuite/libgomp.fortran/scope-1.f90: New test.
2247 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
2248
2249 2021-08-17 Jakub Jelinek <jakub@redhat.com>
2250
2251 * Makefile.am (libgomp_la_SOURCES): Add scope.c
2252 * Makefile.in: Regenerated.
2253 * libgomp_g.h (GOMP_scope_start): Declare.
2254 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
2255 * scope.c: New file.
2256 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
2257 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
2258
2259 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
2260
2261 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
2262 '?:' issues.
2263
2264 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
2265
2266 * testsuite/libgomp.fortran/masked-1.f90: New test.
2267
2268 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
2269
2270 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
2271
2272 2021-08-12 Jakub Jelinek <jakub@redhat.com>
2273
2274 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
2275
2276 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
2277
2278 * env.c (parse_bind_var): Accept 'primary' as alias for
2279 'master'.
2280 (omp_display_env): Add TODO comment to
2281 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
2282 * libgomp.texi: Change 'master thread' to 'primary thread'
2283 in line with OpenMP 5.1.
2284 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
2285 omp_proc_bind_master is an alias of it.
2286 (OMP_PROC_BIND): Mention 'PRIMARY'.
2287 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
2288 (omp_proc_bind_primary): Add.
2289 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2290 * omp_lib.f90.in (omp_proc_bind_primary): Add.
2291 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
2292 * omp_lib.h.in (omp_proc_bind_primary): Add.
2293 * testsuite/libgomp.c/affinity-1.c: Check that
2294 'primary' works and is identical to 'master'.
2295
2296 2021-08-09 Julian Brown <julian@codesourcery.com>
2297 Kwok Cheung Yeung <kcy@codesourcery.com>
2298 Thomas Schwinge <thomas@codesourcery.com>
2299
2300 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
2301 16.
2302 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
2303 [acc_device_radeon]: Update.
2304 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
2305 [ACC_DEVICE_TYPE_radeon]: Likewise.
2306 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2307 [acc_device_radeon]: Likewise.
2308 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
2309 [ACC_DEVICE_TYPE_radeon]: Likewise.
2310 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
2311 'openacc_radeon_accel_selected' and '-O0'.
2312 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2313
2314 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
2315
2316 * icv-device.c (omp_get_device_num): New API function, host side.
2317 * fortran.c (omp_get_device_num_): New interface function.
2318 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
2319 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
2320 omp_get_device_num_.
2321 * libgomp.texi (omp_get_device_num): Add documentation for new API
2322 function.
2323 * omp.h.in (omp_get_device_num): Add declaration.
2324 * omp_lib.f90.in (omp_get_device_num): Likewise.
2325 * omp_lib.h.in (omp_get_device_num): Likewise.
2326 * target.c (gomp_load_image_to_device): If additional entry for device
2327 number exists at end of returned entries from 'load_image_func' hook,
2328 copy the assigned device number over to the device variable.
2329 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2330 (omp_get_device_num): New API function, device side.
2331 * plugin/plugin-gcn.c ("symcat.h"): Add include.
2332 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2333 at end of returned 'target_table' entries.
2334 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
2335 (omp_get_device_num): New API function, device side.
2336 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
2337 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
2338 at end of returned 'target_table' entries.
2339 * testsuite/lib/libgomp.exp
2340 (check_effective_target_offload_target_intelmic): New function for
2341 testing for intelmic offloading.
2342 * testsuite/libgomp.c-c++-common/target-45.c: New test.
2343 * testsuite/libgomp.fortran/target10.f90: New test.
2344
2345 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
2346 Ulrich Drepper <drepper@redhat.com>
2347
2348 * fortran.c (omp_display_env_, omp_display_env_8_): Only
2349 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
2350
2351 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
2352 Julian Brown <julian@codesourcery.com>
2353 Kwok Cheung Yeung <kcy@codesourcery.com>
2354
2355 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
2356 's%oaccdevlow%oaccloops%g'.
2357 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2358 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2359 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
2360 Likewise.
2361 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
2362 Likewise.
2363 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
2364 Likewise.
2365 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
2366 Likewise.
2367 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
2368 Likewise.
2369 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
2370 Likewise.
2371 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
2372 Likewise.
2373 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
2374 Likewise.
2375 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2376
2377 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
2378
2379 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
2380 threader.
2381 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
2382
2383 2021-07-27 Ulrich Drepper <drepper@gmail.com>
2384
2385 * env.c (wait_policy, stacksize): New static variables,
2386 move out of handle_omp_display_env.
2387 (omp_display_env): New function. The meat of the old
2388 handle_omp_display_env function.
2389 (handle_omp_display_env): Change to not take parameters
2390 and instead use the global variables. Only perform
2391 parsing, defer to omp_display_env for the implementation.
2392 (initialize_env): Remove local variables wait_policy and
2393 stacksize. Don't pass parameters to handle_omp_display_env.
2394 * fortran.c: Add ialias_redirect for omp_display_env.
2395 (omp_display_env_, omp_display_env_8_): New functions.
2396 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
2397 omp_display_env_, and omp_display_env_8_.
2398 * omp.h.in: Declare omp_display_env.
2399 * omp_lib.f90.in: Likewise.
2400 * omp_lib.h.in: Likewise.
2401
2402 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2403 Julian Brown <julian@codesourcery.com>
2404
2405 * target.c (gomp_coalesce_buf_add): Update comment.
2406 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
2407 'aq && cbuf'.
2408 (gomp_map_vars_internal): Only 'if (!aq)', do
2409 'gomp_coalesce_buf_add'.
2410 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
2411 XFAIL.
2412
2413 2021-07-27 Julian Brown <julian@codesourcery.com>
2414 Thomas Schwinge <thomas@codesourcery.com>
2415
2416 * libgomp.h (gomp_copy_host2dev): Update prototype.
2417 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
2418 argument to gomp_copy_host2dev (false).
2419 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
2420 (copy_data): Don't free src.
2421 (queue_push_copy): Remove free_src handling.
2422 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
2423 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
2424 snapshotting.
2425 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
2426 queue_push_copy.
2427 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
2428 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
2429 data when true, and set up deferred freeing of temporary buffer.
2430 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
2431 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
2432 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
2433 calls to gomp_copy_host2dev with appropriate ephemeral argument.
2434 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
2435 XFAIL.
2436
2437 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2438 Tom de Vries <tom@codesourcery.com>
2439
2440 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
2441 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
2442
2443 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2444
2445 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
2446 sequencing of 'async' data copying vs. profiling events.
2447 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2448 Likewise.
2449
2450 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
2451 Julian Brown <julian@codesourcery.com>
2452
2453 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
2454 'async'/'wait' issue.
2455 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
2456 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
2457 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
2458
2459 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
2460 Joseph Myers <joseph@codesourcery.com>
2461 Cesar Philippidis <cesar@codesourcery.com>
2462
2463 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
2464 file.
2465 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
2466 Likewise.
2467 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
2468 Likewise.
2469 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
2470
2471 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
2472
2473 PR target/101484
2474 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
2475 '-Wno-error=array-bounds'.
2476 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
2477 * libgomp.h [__AMDGCN__]: Likewise.
2478
2479 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
2480
2481 PR target/101484
2482 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
2483 * libgomp.h [__AMDGCN__]: Likewise.
2484
2485 2021-07-13 Jakub Jelinek <jakub@redhat.com>
2486 Florian Weimer <fweimer@redhat.com>
2487
2488 * config/linux/sem.h: Don't include limits.h.
2489 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
2490 * config/linux/affinity.c: Include limits.h.
2491
2492 2021-07-01 Jakub Jelinek <jakub@redhat.com>
2493
2494 PR middle-end/94366
2495 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
2496
2497 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2498
2499 PR other/67300
2500 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
2501 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
2502 avoid disabling other offload targets.
2503 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
2504 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
2505 * testsuite/libgomp.c/target-44.c: Likewise.
2506
2507 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
2508
2509 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
2510 target has shared memory and disable some scalar pointer/allocatable
2511 checks if not as firstprivate does not work.
2512
2513 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
2514
2515 PR testsuite/101114
2516 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
2517 Add "target offload_device_nonshared_as" condition for enabling test.
2518
2519 2021-06-24 Jakub Jelinek <jakub@redhat.com>
2520
2521 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
2522 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
2523 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
2524 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
2525
2526 2021-06-23 Jakub Jelinek <jakub@redhat.com>
2527
2528 PR middle-end/101167
2529 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
2530
2531 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
2532
2533 * hashtab.h (htab_clear): New function with initialization code
2534 factored out from...
2535 (htab_create): ...here, adjust to use htab_clear function.
2536 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
2537 special refcount values, add comments.
2538 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
2539 (REFCOUNT_LINK): Likewise.
2540 (REFCOUNT_STRUCTELEM): New special refcount range for structure
2541 element siblings.
2542 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
2543 sibling maps.
2544 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
2545 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
2546 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
2547 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
2548 (struct splay_tree_key_s): Add structelem_refcount and
2549 structelem_refcount_ptr fields into a union with dynamic_refcount.
2550 Add comments.
2551 (gomp_map_vars): Delete declaration.
2552 (gomp_map_vars_async): Likewise.
2553 (gomp_unmap_vars): Likewise.
2554 (gomp_unmap_vars_async): Likewise.
2555 (goacc_map_vars): New declaration.
2556 (goacc_unmap_vars): Likewise.
2557 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
2558 (goacc_enter_datum): Likewise.
2559 (goacc_enter_data_internal): Likewise.
2560 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
2561 and goacc_unmap_vars.
2562 (GOACC_data_start): Adjust to use goacc_map_vars.
2563 (GOACC_data_end): Adjust to use goacc_unmap_vars.
2564 * target.c (hash_entry_type): New typedef.
2565 (htab_alloc): New function hook for hashtab.h.
2566 (htab_free): Likewise.
2567 (htab_hash): Likewise.
2568 (htab_eq): Likewise.
2569 (hashtab.h): Add file include.
2570 (gomp_increment_refcount): New function.
2571 (gomp_decrement_refcount): Likewise.
2572 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
2573 gomp_increment_refcount.
2574 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
2575 to gomp_map_vars_existing.
2576 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
2577 variable to guard OpenMP specific paths, adjust calls to
2578 gomp_map_vars_existing, add structure element sibling splay_tree_key
2579 sequence creation code, adjust Fortran map case to avoid increment
2580 under OpenMP.
2581 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
2582 local refcount_set if caller passed in NULL, adjust call to
2583 gomp_map_vars_internal.
2584 (gomp_map_vars_async): Adjust and rename into...
2585 (goacc_map_vars): ...this new function, adjust call to
2586 gomp_map_vars_internal.
2587 (gomp_remove_splay_tree_key): New function with code factored out from
2588 gomp_remove_var_internal.
2589 (gomp_remove_var_internal): Add code to handle removing multiple
2590 splay_tree_key sequence for structure elements, adjust code to use
2591 gomp_remove_splay_tree_key for splay-tree key removal.
2592 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
2593 gomp_decrement_refcount.
2594 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
2595 local refcount_set if caller passed in NULL, adjust call to
2596 gomp_unmap_vars_internal.
2597 (gomp_unmap_vars_async): Adjust and rename into...
2598 (goacc_unmap_vars): ...this new function, adjust call to
2599 gomp_unmap_vars_internal.
2600 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
2601 gomp_unmap_vars.
2602 (GOMP_target_ext): Likewise.
2603 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
2604 (GOMP_target_data): Likewise.
2605 (GOMP_target_data_ext): Likewise.
2606 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
2607 (gomp_exit_data): Add refcount_set parameter, adjust to use
2608 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
2609 after main loop.
2610 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
2611 gomp_map_vars and gomp_exit_data.
2612 (gomp_target_task_fn): Likewise.
2613 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
2614 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
2615 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
2616 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
2617 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
2618 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
2619
2620 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
2621
2622 PR fortran/92568
2623 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
2624
2625 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
2626 Thomas Schwinge <thomas@codesourcery.com>
2627
2628 * libgomp.map (GOACC_2.0.2): New symbol version.
2629 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
2630 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
2631
2632 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
2633 Andrew Stubbs <ams@codesourcery.com>
2634
2635 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
2636 extracted from...
2637 (GOACC_enter_exit_data): ... here.
2638 (GOACC_declare): Use it.
2639
2640 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
2641
2642 * oacc-parallel.c (GOACC_declare): Move...
2643 * oacc-mem.c: ... here.
2644 * libgomp_g.h: Adjust.
2645
2646 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
2647 Thomas Schwinge <thomas@codesourcery.com>
2648
2649 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
2650 handling.
2651
2652 2021-06-10 Jakub Jelinek <jakub@redhat.com>
2653
2654 PR tree-optimization/100981
2655 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
2656 dsdotr and dsdoti to 0.
2657
2658 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
2659
2660 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
2661 if atomic compare-and-swap is supported on 'int'.
2662
2663 2021-06-09 Richard Biener <rguenther@suse.de>
2664
2665 PR tree-optimization/100981
2666 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
2667
2668 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2669
2670 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
2671 unconditionally.
2672 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2673 Update.
2674 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2675 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
2676
2677 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2678
2679 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
2680 '-DACC_MEM_SHARED=0'.
2681 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
2682 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2683 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
2684 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2685 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2686 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2687 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2688 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2689 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2690 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2691 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
2692 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
2693 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
2694 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2695 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
2696 'acc_device_radeon' testing.
2697 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
2698 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2699 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2700 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
2701 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2702 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2703 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
2704 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
2705 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2706 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2707 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
2708 for non-'openacc_nvidia_accel_selected'.
2709 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2710 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
2711 all implement this checking".
2712 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2713 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2714 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2715 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2716 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2717
2718 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2719
2720 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
2721 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
2722
2723 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2724
2725 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
2726 for 'acc_device_radeon'.
2727
2728 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2729
2730 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
2731 for non-'acc_device_nvidia'.
2732
2733 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2734
2735 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
2736 'acc_device_radeon' testing.
2737 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2738 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2739 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2740
2741 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2742
2743 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
2744 require 'openacc_nvidia_accel_selected'. Fix up for
2745 'ACC_DEVICE_TYPE_radeon'.
2746
2747 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2748
2749 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
2750 'openacc_nvidia_accel_selected'.
2751 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2752
2753 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2754
2755 * testsuite/lib/libgomp.exp
2756 (check_effective_target_openacc_radeon_accel_selected):
2757 Streamline.
2758
2759 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2760
2761 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
2762 PR80547 workaround.
2763
2764 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
2765
2766 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2767 <acc_device_nvidia>: Update comment.
2768
2769 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
2770
2771 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
2772
2773 2021-05-27 Jakub Jelinek <jakub@redhat.com>
2774
2775 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
2776 check_effective_target_openacc_cublas,
2777 check_effective_target_openacc_cudart): New.
2778 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
2779 target openacc_cublas.
2780 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2781 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2782 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
2783 target openacc_cuda.
2784 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
2785 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
2786 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
2787 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
2788 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
2789 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
2790 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
2791 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2792 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
2793 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
2794 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
2795 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2796 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
2797 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
2798 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
2799 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2800 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
2801 targets openacc_cublas and openacc_cudart.
2802 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
2803 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
2804 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
2805 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
2806 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
2807 Require effective target openacc_cudart.
2808 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
2809 for effective target openacc_cuda and add && defined USE_CUDA_H to
2810 preprocessor conditionals. Guard -lcuda also on openacc_cuda
2811 effective target.
2812
2813 2021-05-26 Jakub Jelinek <jakub@redhat.com>
2814
2815 PR libgomp/100573
2816 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
2817 GOMP_target_end_data, GOMP_target_update_ext,
2818 GOMP_target_enter_exit_data): New dummy entrypoints.
2819 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
2820 GOMP_target_end_data, GOMP_target_update_ext,
2821 GOMP_target_enter_exit_data): Likewise.
2822 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
2823 OMPFROM, OMPTO): Define.
2824 (main): Remove #pragma omp target teams around all the tests.
2825 * testsuite/libgomp.c-c++-common/target-41.c: New test.
2826 * testsuite/libgomp.c-c++-common/target-42.c: New test.
2827
2828 2021-05-25 Jakub Jelinek <jakub@redhat.com>
2829
2830 PR middle-end/99928
2831 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
2832
2833 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
2834
2835 PR fortran/86470
2836 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
2837 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
2838 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
2839
2840 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
2841
2842 PR testsuite/90115
2843 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
2844 uninteresting/varying diagnostics.
2845
2846 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
2847
2848 PR middle-end/90115
2849 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
2850 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2851
2852 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
2853
2854 PR middle-end/90115
2855 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
2856 file.
2857 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
2858 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
2859 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2860 Likewise.
2861 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2862 Likewise.
2863 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2864 Likewise.
2865 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2866 Likewise.
2867 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2868 Likewise.
2869 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2870 Likewise.
2871 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2872 Likewise.
2873 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2874 Likewise.
2875 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2876 Likewise.
2877 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2878 Likewise.
2879 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2880 Likewise.
2881 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2882 Likewise.
2883 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2884 Likewise.
2885 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2886 Likewise.
2887 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2888 Likewise.
2889 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2890 Likewise.
2891 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2892 Likewise.
2893 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2894 Likewise.
2895 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2896 Likewise.
2897 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2898 Likewise.
2899 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2900 Likewise.
2901 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
2902 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
2903 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
2904 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
2905 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
2906 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2907 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2908 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2909 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2910 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2911 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2912 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2913 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2914 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2915 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
2916 Likewise.
2917 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
2918 Likewise.
2919 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
2920 Likewise.
2921 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
2922 Likewise.
2923 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
2924 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
2925 Likewise.
2926 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2927 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2928 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2929 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2930 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2931 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2932 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2933 Likewise.
2934 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2935 Likewise.
2936 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2937 Likewise.
2938 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2939 Likewise.
2940 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2941 Likewise.
2942 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2943 Likewise.
2944 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2945 Likewise.
2946 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2947 Likewise.
2948 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2949 Likewise.
2950 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2951 Likewise.
2952 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2953 Likewise.
2954 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2955 Likewise.
2956 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2957 Likewise.
2958 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
2959 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
2960 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
2961 Likewise.
2962 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
2963 Likewise.
2964 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2965 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2966 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2967
2968 2021-05-21 Julian Brown <julian@codesourcery.com>
2969 Chung-Lin Tang <cltang@codesourcery.com>
2970 Thomas Schwinge <thomas@codesourcery.com>
2971
2972 PR middle-end/90115
2973 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
2974 test.
2975 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
2976 Likewise.
2977 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
2978 Likewise.
2979
2980 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
2981
2982 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
2983 for nvptx offloading.
2984
2985 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
2986
2987 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
2988
2989 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
2990
2991 PR target/83812
2992 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
2993
2994 2021-05-19 Julian Brown <julian@codesourcery.com>
2995
2996 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
2997
2998 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
2999
3000 * testsuite/lib/libgomp.exp
3001 (check_effective_target_offload_target_nvptx): Don't shadow global
3002 'offload_targets' variable.
3003
3004 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3005
3006 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
3007 '-latomic' to nvptx offloading compilation.
3008 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3009
3010 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
3011
3012 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
3013 offloading compilation.
3014
3015 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
3016
3017 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
3018 if new tasks generated.
3019 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
3020
3021 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
3022
3023 * testsuite/libgomp.fortran/parallel-master.f90: New test.
3024
3025 2021-05-13 Martin Liska <mliska@suse.cz>
3026
3027 PR testsuite/100569
3028 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
3029 * testsuite/libgomp.c/pr46032-2.c: Likewise.
3030 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
3031 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
3032
3033 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
3034
3035 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
3036 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
3037
3038 2021-05-11 Jakub Jelinek <jakub@redhat.com>
3039
3040 PR middle-end/100471
3041 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
3042 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
3043 reduction pointer.
3044 * testsuite/libgomp.c/task-reduction-4.c: New test.
3045
3046 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
3047 Tom de Vries <tdevries@suse.de>
3048
3049 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
3050 complex/floating-point || + && reduction with 'omp target'.
3051 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
3052
3053 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3054
3055 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
3056 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
3057 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
3058 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
3059
3060 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
3061
3062 PR testsuite/100397
3063 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
3064 declaration to scope of non-'depend'-guarded assignment to avoid races.
3065
3066 2021-05-03 Tom de Vries <tdevries@suse.de>
3067
3068 PR target/100321
3069 * testsuite/libgomp.c/target-44.c: New test.
3070
3071 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
3072
3073 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
3074
3075 2021-04-29 Tom de Vries <tdevries@suse.de>
3076
3077 * testsuite/libgomp.c/pr81778.c: New test.
3078
3079 2021-04-29 Tom de Vries <tdevries@suse.de>
3080
3081 PR target/100232
3082 * testsuite/libgomp.c/target-43.c: New file.
3083
3084 2021-04-28 Jakub Jelinek <jakub@redhat.com>
3085 Tobias Burnus <tobias@codesourcery.com>
3086
3087 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
3088 * target.c (gomp_load_plugin_for_device): If set and if a plugin
3089 can't be dlopened, silently assume it has no devices.
3090 * Makefile.in: Regenerate.
3091 * config.h.in: Regenerate.
3092 * configure: Regenerate.
3093
3094 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3095
3096 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3097 Use [Ww]arning in dg-bogus as FE diagnostic and default
3098 diagnostic differ and the result depends on ENABLE_OFFLOAD.
3099 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3100 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3101 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3102
3103 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
3104
3105 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
3106 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
3107 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3108 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3109 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3110
3111 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3112 Nathan Sidwell <nathan@codesourcery.com>
3113 Tom de Vries <vries@codesourcery.com>
3114 Julian Brown <julian@codesourcery.com>
3115 Kwok Cheung Yeung <kcy@codesourcery.com>
3116
3117 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
3118 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
3119 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3120 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3121 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3122 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3123 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
3124 Likewise.
3125 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
3126 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3127 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3128 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3129 Likewise.
3130 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
3131 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3132 Likewise.
3133 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3134 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3135 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3136 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3137 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3138 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
3139 Likewise.
3140 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3141 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3142 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3143 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3144 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3145 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3146 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3147 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3148 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3149 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3150 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3151
3152 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
3153
3154 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
3155 compile with '-w'.
3156 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3157 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
3158 Likewise.
3159 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3160 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
3161 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3162 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3163 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3164 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3165 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3166
3167 2021-04-22 Richard Biener <rguenther@suse.de>
3168
3169 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
3170 only on nvptx-none.
3171
3172 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3173
3174 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
3175 omp_depend_kind instead of defining it as 16.
3176
3177 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3178
3179 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3180 New, based on check_effective_target_offload_target_nvptx.
3181 (check_effective_target_offload_target_nvptx): Call it.
3182 (check_effective_target_offload_target_amdgcn): New.
3183 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
3184 Require target offload_target_nvptx || offload_target_amdgcn.
3185 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
3186 * testsuite/libgomp.c/pr86416-1.c: Likewise.
3187 * testsuite/libgomp.c/pr86416-2.c: Likewise.
3188
3189 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
3190
3191 * testsuite/libgomp.fortran/depobj-1.f90: New test.
3192
3193 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
3194
3195 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3196 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
3197 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3198 Likewise.
3199 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3200 Likewise.
3201 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3202
3203 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
3204
3205 PR target/99555
3206 * testsuite/lib/libgomp.exp
3207 (check_effective_target_offload_device_nvptx): New.
3208 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
3209 resolved, make sure that we exit quickly, with error status,
3210 XFAILed.
3211 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
3212 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3213
3214 2021-04-14 Jakub Jelinek <jakub@redhat.com>
3215
3216 PR testsuite/100071
3217 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
3218 cp = omp_alloc with cp, p arguments instead of cq, q and call
3219 c_f_pointer after last cq = omp_alloc with cq, q.
3220
3221 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
3222
3223 PR middle-end/98088
3224 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
3225 for loop with GT/GE condition.
3226 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
3227
3228 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
3229
3230 PR middle-end/84991
3231 PR middle-end/84992
3232 PR middle-end/90779
3233 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
3234
3235 2021-04-09 Jakub Jelinek <jakub@redhat.com>
3236
3237 PR libgomp/99984
3238 * team.c (gomp_thread_start): Call pthread_setspecific for
3239 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
3240 has been initialized to avoid false positive warning.
3241
3242 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
3243
3244 PR target/99555
3245 * testsuite/lib/on_device_arch.c: Move to ...
3246 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
3247 * testsuite/libgomp.fortran/on_device_arch.c: New file;
3248 #include on_device_arch.h.
3249 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
3250 on_device_arch.h instead of using dg-additional-source.
3251 * testsuite/libgomp.c/pr99555-1.c: Likewise.
3252 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
3253 on_device_arch.c without relative paths.
3254
3255 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3256
3257 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
3258 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
3259 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
3260 * config.h.in: Regenerate.
3261 * configure: Likewise.
3262
3263 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3264
3265 PR target/99555
3266 * testsuite/lib/on_device_arch.c: New file.
3267 * testsuite/libgomp.c/pr99555-1.c: Likewise.
3268 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
3269 skip for nvptx offloading, with error status.
3270 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
3271
3272 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
3273
3274 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3275 OpenACC 'serial' construct diagnostic for nvptx offloading.
3276
3277 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
3278
3279 PR c++/99509
3280 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
3281
3282 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
3283
3284 PR fortran/98858
3285 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
3286
3287 2021-03-04 Jakub Jelinek <jakub@redhat.com>
3288
3289 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
3290 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
3291 checking of -m32 or -mx32 options on the command line.
3292 * config.h.in: Regenerated.
3293 * configure: Regenerated.
3294
3295 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
3296
3297 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
3298 support from the target.
3299
3300 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3301 Jakub Jelinek <jakub@redhat.com>
3302
3303 PR libgomp/98738
3304 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
3305 (struct gomp_task): Replace detach and completion_sem fields with
3306 union containing completion_sem and detach_team. Add deferred_p
3307 field.
3308 (struct gomp_team): Remove task_detach_queue.
3309 * task.c: Include assert.h.
3310 (gomp_init_task): Initialize deferred_p and completion_sem fields.
3311 Rearrange initialization order of fields.
3312 (task_fulfilled_p): Delete.
3313 (GOMP_task): Use address of task as the event handle. Remove
3314 initialization of detach field. Initialize deferred_p field.
3315 Use automatic local for completion_sem. Initialize detach_team field
3316 for deferred tasks.
3317 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
3318 Set kind of suspended detach task to GOMP_TASK_DETACHED and
3319 decrement task_running_count. Move finish_cancelled block out of
3320 else branch. Relocate call to gomp_team_barrier_done.
3321 (GOMP_taskwait): Handle tasks with completion events that have not
3322 been fulfilled.
3323 (GOMP_taskgroup_end): Likewise.
3324 (omp_fulfill_event): Use address of task as event handle. Post to
3325 completion_sem for undeferred tasks. Clear detach_team if task
3326 has not finished. For finished tasks, handle post-execution tasks,
3327 call gomp_team_barrier_wake if necessary, and free task.
3328 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
3329 (free_team): Remove free of task_detach_queue.
3330 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
3331 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
3332 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
3333 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
3334 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
3335 Change data-sharing of detach events on enclosing parallel to private.
3336 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
3337 taskwait directive.
3338 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
3339 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
3340 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
3341 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
3342 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
3343 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
3344 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
3345 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
3346 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
3347 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
3348 Change data-sharing of detach events on enclosing parallel to private.
3349 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
3350 taskwait directive.
3351 * testsuite/libgomp.fortran/task-detach-7.f90: New.
3352 * testsuite/libgomp.fortran/task-detach-8.f90: New.
3353 * testsuite/libgomp.fortran/task-detach-9.f90: New.
3354 * testsuite/libgomp.fortran/task-detach-10.f90: New.
3355 * testsuite/libgomp.fortran/task-detach-11.f90: New.
3356
3357 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
3358
3359 PR fortran/99171
3360 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
3361
3362 2021-02-17 Julian Brown <julian@codesourcery.com>
3363
3364 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
3365 expected errors.
3366
3367 2021-02-17 Julian Brown <julian@codesourcery.com>
3368
3369 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
3370 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
3371
3372 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
3373
3374 * config/linux/x86/futex.h (__futex_wait):
3375 Revert output type back to long.
3376 (__futex_wake): Ditto.
3377 (futex_wait): Update for revert.
3378 (futex_wake): Ditto.
3379
3380 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
3381
3382 * config/linux/x86/futex.h (__futex_wait): New static inline
3383 wrapper function. Correct output type to int and
3384 timeout type to void *.
3385 (__futex_wake): New static inline wrapper function.
3386 Correct output type to int.
3387 (futex_wait): Use __futex_wait.
3388 (futex_wake): Use __futex_wake.
3389
3390 2021-02-10 Julian Brown <julian@codesourcery.com>
3391
3392 PR fortran/98979
3393 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
3394 errors.
3395
3396 2021-02-04 Julian Brown <julian@codesourcery.com>
3397
3398 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
3399
3400 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
3401
3402 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3403 EF_AMDGPU_MACH_AMDGCN_GFX908.
3404 (gcn_gfx908_s): New constant string.
3405 (isa_hsa_name): Add gfx908.
3406 (isa_code): Add gfx908.
3407
3408 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3409
3410 * libgomp.texi (omp_fulfill_event): New entry.
3411
3412 2021-01-20 Jakub Jelinek <jakub@redhat.com>
3413
3414 * task.c (GOMP_task): Rename priority argument to priority_arg,
3415 add priority automatic variable and modify that variable. Instead of
3416 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
3417 check flags for that bit.
3418
3419 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
3420
3421 PR fortran/98476
3422 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
3423
3424 2021-01-18 Andreas Schwab <schwab@suse.de>
3425
3426 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
3427
3428 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3429
3430 * config/rtems/sem.h (gomp_sem_getcount): New function.
3431
3432 2021-01-18 Jakub Jelinek <jakub@redhat.com>
3433
3434 * config/linux/sem.h (gomp_sem_getcount): New function.
3435 * config/posix/sem.h (gomp_sem_getcount): New function.
3436 * config/posix/sem.c (gomp_sem_getcount): New function.
3437 * config/accel/sem.h (gomp_sem_getcount): New function.
3438 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
3439 (omp_fulfill_event): Likewise.
3440
3441 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3442
3443 * fortran.c (omp_fulfill_event_): New.
3444 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
3445 (struct gomp_team): Add task_detach_queue and task_detach_count
3446 fields.
3447 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
3448 * libgomp_g.h (GOMP_task): Add extra argument.
3449 * omp.h.in (enum omp_event_handle_t): New.
3450 (omp_fulfill_event): New.
3451 * omp_lib.f90.in (omp_event_handle_kind): New.
3452 (omp_fulfill_event): New.
3453 * omp_lib.h.in (omp_event_handle_kind): New.
3454 (omp_fulfill_event): Declare.
3455 * priority_queue.c (priority_tree_find): New.
3456 (priority_list_find): New.
3457 (priority_queue_find): New.
3458 * priority_queue.h (priority_queue_predicate): New.
3459 (priority_queue_find): New.
3460 * task.c (gomp_init_task): Initialize detach field.
3461 (task_fulfilled_p): New.
3462 (GOMP_task): Add detach argument. Ignore detach argument if
3463 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
3464 field. Copy address of completion_sem into detach argument and
3465 into the start of the data record. Wait for detach event if task
3466 not deferred.
3467 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
3468 Remove completed tasks and requeue dependent tasks.
3469 (omp_fulfill_event): New.
3470 * team.c (gomp_new_team): Initialize task_detach_queue and
3471 task_detach_count fields.
3472 (free_team): Free task_detach_queue field.
3473 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
3474 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
3475 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
3476 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
3477 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
3478 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
3479 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
3480 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
3481 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
3482 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
3483 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
3484 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
3485
3486 2021-01-15 Jakub Jelinek <jakub@redhat.com>
3487
3488 PR target/70454
3489 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
3490 be added through preprocessor check on
3491 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
3492
3493 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
3494
3495 PR libgomp/65099
3496 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
3497 configurations.
3498 * configure: Regenerate.
3499 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
3500 check.
3501
3502 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3503
3504 * configure: Re-generate.
3505
3506 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3507
3508 * configure: Re-generate.
3509
3510 2021-01-05 Julian Brown <julian@codesourcery.com>
3511
3512 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
3513 (struct ptx_device): Add omp_stacks struct.
3514 (nvptx_open_device): Initialise cached-stacks housekeeping info.
3515 (nvptx_close_device): Free cached stacks block and mutex.
3516 (nvptx_stacks_free): New function.
3517 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
3518 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
3519 (nvptx_stacks_alloc): Rename to...
3520 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
3521 size or smaller is required.
3522 (nvptx_stacks_free): Remove.
3523 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
3524 during kernel execution.
3525
3526 2021-01-01 Jakub Jelinek <jakub@redhat.com>
3527
3528 * libgomp.texi: Bump @copying's copyright year.
3529
3530 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
3531
3532 * libgomp.texi (Top): Avoid bad "up" link.
3533
3534 2020-12-18 Jakub Jelinek <jakub@redhat.com>
3535
3536 * testsuite/libgomp.c/task-6.c: New test.
3537
3538 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
3539
3540 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
3541 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
3542
3543 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
3544
3545 * testsuite/libgomp.fortran/scan-1.f90: New test.
3546
3547 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
3548
3549 PR target/97865
3550 * configure: Regenerate.
3551
3552 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
3553
3554 * configure: Regenerate.
3555
3556 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
3557
3558 * testsuite/libgomp.oacc-c++/cache-1.C: New.
3559 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
3560
3561 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
3562
3563 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
3564 expected results.
3565
3566 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
3567
3568 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
3569 (reserved): Delete unused define.
3570
3571 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
3572
3573 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
3574 Tcl 8.5-specific behavior.
3575 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3576
3577 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3578
3579 * env.c (gomp_global_icv): Remove nest_var field. Add
3580 max_active_levels_var field.
3581 (gomp_max_active_levels_var): Remove.
3582 (parse_boolean): Return true on success.
3583 (handle_omp_display_env): Express OMP_NESTED in terms of
3584 max_active_levels_var. Change format specifier for
3585 max_active_levels_var.
3586 (initialize_env): Set max_active_levels_var from
3587 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
3588 OMP_PROC_BIND.
3589 * icv.c (omp_set_nested): Express in terms of
3590 max_active_levels_var.
3591 (omp_get_nested): Likewise.
3592 (omp_set_max_active_levels): Use max_active_levels_var field instead
3593 of gomp_max_active_levels_var.
3594 (omp_get_max_active_levels): Likewise.
3595 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
3596 max_active_levels_var field.
3597 (gomp_supported_active_levels): Set to UCHAR_MAX.
3598 (gomp_max_active_levels_var): Delete.
3599 * libgomp.texi (omp_get_nested): Update documentation.
3600 (omp_set_nested): Likewise.
3601 (OMP_MAX_ACTIVE_LEVELS): Likewise.
3602 (OMP_NESTED): Likewise.
3603 (OMP_NUM_THREADS): Likewise.
3604 (OMP_PROC_BIND): Likewise.
3605 * parallel.c (gomp_resolve_num_threads): Replace reference
3606 to nest_var with max_active_levels_var. Use max_active_levels_var
3607 field instead of gomp_max_active_levels_var.
3608
3609 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
3610
3611 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
3612 nvptx_usleep; use also for device={arch(gcn)}.
3613
3614 2020-11-14 Jakub Jelinek <jakub@redhat.com>
3615
3616 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
3617 (foo): Add tests for non-VLA private and firstprivate clauses on
3618 omp task.
3619 (bar): Likewise. Remove taking of address from private/firstprivate
3620 variables.
3621 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
3622 (foo): Add p, q, px and s arguments. Add tests for array reductions
3623 and for non-VLA private and firstprivate clauses on omp task.
3624 (bar): Removed.
3625 (main): Adjust foo caller. Don't call bar.
3626
3627 2020-11-13 Gergö Barany <gergo@codesourcery.com>
3628 Thomas Schwinge <thomas@codesourcery.com>
3629
3630 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3631 New.
3632 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3633 Likewise.
3634 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3635 Likewise.
3636 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3637 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3638
3639 2020-11-13 Gergö Barany <gergo@codesourcery.com>
3640 Thomas Schwinge <thomas@codesourcery.com>
3641
3642 PR fortran/94358
3643 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
3644
3645 2020-11-13 Jakub Jelinek <jakub@redhat.com>
3646
3647 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
3648 for array reductions.
3649 (main): Adjust foo callers.
3650
3651 2020-11-12 Jakub Jelinek <jakub@redhat.com>
3652
3653 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
3654 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
3655 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
3656 * allocator.c (omp_aligned_alloc): New for now static function,
3657 add alignment argument and handle it.
3658 (omp_alloc): Reimplement using omp_aligned_alloc.
3659 (GOMP_alloc, GOMP_free): New functions.
3660 (omp_free): Add ialias.
3661 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
3662 * testsuite/libgomp.c++/allocate-1.C: New test.
3663
3664 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
3665
3666 PR fortran/97782
3667 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
3668
3669 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
3670
3671 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
3672 usable.
3673 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
3674 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
3675 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
3676 (goacc_enter_data_internal): Likewise.
3677 * target.c (gomp_map_vars_internal):
3678 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
3679 of gomp_attach_pointer for OpenMP cases.
3680 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
3681 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
3682 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
3683
3684 2020-11-05 Ulrich Drepper <drepper@redhat.com>
3685 Kwok Cheung Yeung <kcy@codesourcery.com>
3686
3687 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
3688 * Makefile.in: Regenerate.
3689 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
3690 pragmas to ignore -Wdeprecated-declarations warnings.
3691 * icv.c: Likewise.
3692 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
3693 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
3694 and omp_get_nested with __GOMP_DEPRECATED_5_0.
3695 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
3696 deprecated.
3697 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
3698 to test options.
3699 * testsuite/libgomp.c/affinity-1.c: Likewise.
3700 * testsuite/libgomp.c/affinity-2.c: Likewise.
3701 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
3702 * testsuite/libgomp.c/lib-1.c: Likewise.
3703 * testsuite/libgomp.c/nested-1.c: Likewise.
3704 * testsuite/libgomp.c/nested-2.c: Likewise.
3705 * testsuite/libgomp.c/nested-3.c: Likewise.
3706 * testsuite/libgomp.c/pr32362-1.c: Likewise.
3707 * testsuite/libgomp.c/pr32362-2.c: Likewise.
3708 * testsuite/libgomp.c/pr32362-3.c: Likewise.
3709 * testsuite/libgomp.c/pr35549.c: Likewise.
3710 * testsuite/libgomp.c/pr42942.c: Likewise.
3711 * testsuite/libgomp.c/pr61200.c: Likewise.
3712 * testsuite/libgomp.c/sort-1.c: Likewise.
3713 * testsuite/libgomp.c/target-5.c: Likewise.
3714 * testsuite/libgomp.c/target-6.c: Likewise.
3715 * testsuite/libgomp.c/teams-1.c: Likewise.
3716 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3717 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3718 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3719 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
3720 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3721 * testsuite/libgomp.fortran/lib2.f: Likewise.
3722 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3723 * testsuite/libgomp.fortran/teams1.f90: Likewise.
3724
3725 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
3726
3727 PR target/85486
3728 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
3729 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
3730 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3731
3732 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
3733
3734 PR testsuite/80219
3735 PR testsuite/85303
3736 * testsuite/lib/libgomp.exp (libgomp_init): Set
3737 'gcc_warning_prefix', 'gcc_error_prefix'.
3738
3739 2020-10-30 Jakub Jelinek <jakub@redhat.com>
3740
3741 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
3742 even in field_tgt_clear initializer.
3743
3744 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3745
3746 * testsuite/libgomp.c/target-42.c: New test.
3747
3748 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3749 Tom de Vries <tdevries@suse.de>
3750
3751 PR testsuite/81690
3752 * testsuite/libgomp.c/usleep.h: New file.
3753 * testsuite/libgomp.c/target-32.c: Include usleep.h.
3754 (main): Use tgt_usleep instead of usleep.
3755 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
3756 (main): Use tgt_usleep instead of usleep.
3757
3758 2020-10-28 Jakub Jelinek <jakub@redhat.com>
3759
3760 PR lto/96680
3761 * testsuite/libgomp.c/declare-variant-1.c: New test.
3762
3763 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3764
3765 * testsuite/libgomp.c/target-41.c: New test.
3766
3767 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3768
3769 * icv.c (omp_get_initial_device): Remove including corresponding
3770 ialias.
3771 * icv-device.c (omp_get_initial_device): New function. Return
3772 gomp_get_num_devices (). Add ialias.
3773 * target.c (resolve_device): Don't fail with
3774 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
3775 gomp_get_num_devices ().
3776 (omp_target_alloc, omp_target_free, omp_target_is_present,
3777 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
3778 omp_target_disassociate_ptr, omp_pause_resource): Use
3779 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
3780 first use in the functions, in uses dominated by the
3781 gomp_get_num_devices call use num_devices_openmp instead.
3782 * libgomp.texi (omp_get_initial_device): Document.
3783 * config/gcn/icv-device.c (omp_get_initial_device): New function.
3784 Add ialias.
3785 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
3786 * testsuite/libgomp.c/target-40.c: New test.
3787
3788 2020-10-21 Jakub Jelinek <jakub@redhat.com>
3789
3790 * env.c (parse_target_offload): Change new_offload var type to int,
3791 preinitialize to -1, remove found var and test new_offload != -1
3792 instead of found.
3793
3794 2020-10-20 Jakub Jelinek <jakub@redhat.com>
3795
3796 * target.c (gomp_target_init): Inside of the function, use automatic
3797 variables corresponding to num_devices, num_devices_openmp and devices
3798 global variables and update the globals only at the end of the
3799 function.
3800
3801 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
3802
3803 * env.c (gomp_target_offload_var): New.
3804 (parse_target_offload): New.
3805 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
3806 (initialize_env): Parse OMP_TARGET_OFFLOAD.
3807 * libgomp.h (gomp_target_offload_t): New.
3808 (gomp_target_offload_var): New.
3809 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
3810 * target.c (resolve_device): Generate error if device not found and
3811 offloading is mandatory.
3812 (gomp_target_fallback): Generate error if offloading is mandatory.
3813 (GOMP_target): Add argument in call to gomp_target_fallback.
3814 (GOMP_target_ext): Likewise.
3815 (gomp_target_data_fallback): Generate error if offloading is mandatory.
3816 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
3817 (GOMP_target_data_ext): Likewise.
3818 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
3819 (gomp_target_init): Return early if offloading is disabled.
3820
3821 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3822
3823 * libgomp.texi (omp_get_max_active_levels): Modify description.
3824 (omp_get_supported_active_levels): Make descriptions consistent.
3825
3826 2020-10-14 Jakub Jelinek <jakub@redhat.com>
3827
3828 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
3829
3830 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
3831
3832 * env.c (gomp_max_active_levels_var): Initialize to
3833 gomp_supported_active_levels.
3834 (initialize_env): Limit gomp_max_active_levels_var to be at most
3835 equal to gomp_supported_active_levels.
3836 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
3837 (omp_get_supported_active_levels_): New.
3838 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
3839 to at most equal to gomp_supported_active_levels.
3840 (omp_get_supported_active_levels): New.
3841 * libgomp.h (gomp_supported_active_levels): New.
3842 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
3843 omp_get_supported_active_levels_.
3844 * libgomp.texi (omp_get_supported_active_levels): New.
3845 (omp_set_max_active_levels): Update. Add reference to
3846 omp_get_supported_active_levels.
3847 * omp.h.in (omp_get_supported_active_levels): New.
3848 * omp_lib.f90.in (omp_get_supported_active_levels): New.
3849 * omp_lib.h.in (omp_get_supported_active_levels): New.
3850 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
3851 against omp_get_supported_active_levels.
3852 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
3853
3854 2020-10-11 Clement Chigot <clement.chigot@atos.net>
3855
3856 * config/t-aix: Delete and recreate libgomp before creating
3857 FAT library.
3858
3859 2020-10-08 Tom de Vries <tdevries@suse.de>
3860
3861 PR libgomp/81802
3862 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
3863 dimensions.
3864
3865 2020-10-06 Tom de Vries <tdevries@suse.de>
3866
3867 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
3868
3869 2020-10-06 Tom de Vries <tdevries@suse.de>
3870
3871 PR middle-end/90861
3872 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
3873
3874 2020-10-05 Tom de Vries <tdevries@suse.de>
3875
3876 PR fortran/95654
3877 * testsuite/libgomp.fortran/pr95654.f90: New test.
3878
3879 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
3880
3881 * Makefile.in: Regenerate with automake 1.15.1.
3882 * aclocal.m4: Likewise.
3883 * configure: Likewise.
3884 * testsuite/Makefile.in: Likewise.
3885
3886 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
3887
3888 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
3889 and amdgcn targets.
3890
3891 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
3892
3893 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
3894
3895 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
3896
3897 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
3898 total number of threads is one.
3899 (gomp_team_barrier_wake): Likewise.
3900 (gomp_team_barrier_wait_end): Likewise.
3901 (gomp_team_barrier_wait_cancel_end): Likewise.
3902 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
3903 (gomp_team_barrier_wake): Likewise.
3904 (gomp_team_barrier_wait_end): Likewise.
3905 (gomp_team_barrier_wait_cancel_end): Likewise.
3906 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
3907
3908 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
3909
3910 PR middle-end/96390
3911 * testsuite/libgomp.c++/pr96390.C: New test.
3912 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
3913
3914 2020-09-27 Clement Chigot <clement.chigot@atos.net>
3915
3916 * config/t-aix: Use $(AR) without -X32_64.
3917
3918 2020-09-25 Jakub Jelinek <jakub@redhat.com>
3919
3920 * testsuite/libgomp.c/loop-25.c: New test.
3921
3922 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
3923
3924 PR fortran/95654
3925 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
3926
3927 2020-09-22 Tom de Vries <tdevries@suse.de>
3928
3929 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
3930 fails.
3931
3932 2020-09-16 Nathan Sidwell <nathan@acm.org>
3933
3934 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
3935
3936 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
3937
3938 PR fortran/96668
3939 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
3940
3941 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
3942
3943 PR fortran/96668
3944 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
3945 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
3946 (gomp_map_vars_existing): Update call to it.
3947 (gomp_map_fields_existing): Likewise
3948 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
3949 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
3950 remapped.
3951 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
3952 GOMP_MAP_POINTER.
3953 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
3954 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
3955
3956 2020-09-14 Tom de Vries <tdevries@suse.de>
3957
3958 * config/nvptx/atomic.c: New file. Add
3959 __sync_val_compare_and_swap_16.
3960 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
3961 target offload_target_nvptx.
3962
3963 2020-09-08 Julian Brown <julian@codesourcery.com>
3964
3965 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
3966 iteration-ordering assumptions.
3967
3968 2020-09-08 Julian Brown <julian@codesourcery.com>
3969
3970 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
3971 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3972
3973 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
3974
3975 * plugin/plugin-nvptx.c (nvptx_free):
3976 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
3977 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
3978 comments.
3979
3980 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
3981
3982 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
3983
3984 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
3985
3986 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
3987
3988 2020-08-13 Jakub Jelinek <jakub@redhat.com>
3989
3990 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
3991 * testsuite/libgomp.c/loop-23.c (main): Likewise.
3992 * testsuite/libgomp.c/loop-24.c: New test.
3993
3994 2020-08-08 Jakub Jelinek <jakub@redhat.com>
3995 Tobias Burnus <tobias@codesourcery.com>
3996
3997 PR fortran/93553
3998 * testsuite/libgomp.fortran/pr93553.f90: New test.
3999
4000 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4001
4002 * testsuite/libgomp.c/loop-22.c: New test.
4003 * testsuite/libgomp.c/loop-23.c: New test.
4004
4005 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4006
4007 PR middle-end/96459
4008 * testsuite/libgomp.c/teams-3.c: New test.
4009 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
4010 if not defined yet.
4011 (N(test)): Use it before all N(f*) calls.
4012 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
4013 (main): Don't call all test_* functions from within
4014 #pragma omp teams reduction(|:err), call them directly.
4015
4016 2020-08-04 Tom de Vries <tdevries@suse.de>
4017
4018 PR target/96428
4019 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
4020 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
4021
4022 2020-08-03 Julian Brown <julian@codesourcery.com>
4023 Thomas Schwinge <thomas@codesourcery.com>
4024
4025 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
4026 shared-memory devices. Extend with further checking.
4027
4028 2020-08-03 Martin Jambor <mjambor@suse.cz>
4029
4030 * plugin/Makefrag.am: Remove configuration of HSA plugin.
4031 * aclocal.m4: Regenerated.
4032 * Makefile.in: Regenerated.
4033 * config.h.in: Regenerated.
4034 * configure: Regenerated.
4035 * plugin/configfrag.ac: Likewise.
4036 * plugin/hsa_ext_finalize.h: Removed.
4037 * plugin/plugin-hsa.c: Likewise.
4038 * testsuite/Makefile.in: Regenerated.
4039 * testsuite/lib/libgomp.exp
4040 (offload_target_to_openacc_device_type): Remove hsa case.
4041 (check_effective_target_hsa_offloading_selected_nocache): Removed
4042 (check_effective_target_hsa_offloading_selected): Likewise.
4043 (libgomp_init): Do not add -Wno-hsa to additional_flags.
4044 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
4045 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4046 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
4047 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4048 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4049 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4050 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
4051 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4052 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4053 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4054 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4055 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4056 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4057 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4058 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4059 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4060 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
4061 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4062 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
4063 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4064 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4065 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
4066 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4067 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4068
4069 2020-07-27 Julian Brown <julian@codesourcery.com>
4070 Thomas Schwinge <thomas@codesourcery.com>
4071
4072 * libgomp.h (struct target_var_desc): Rename do_detach field to
4073 is_attach.
4074 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
4075 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
4076 (goacc_enter_data_internal): Don't affect reference counts
4077 for attach mappings.
4078 (goacc_exit_data_internal): Don't affect reference counts for detach
4079 mappings.
4080 * target.c (gomp_map_vars_existing): Don't affect reference counts for
4081 attach mappings.
4082 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
4083 mark attach mappings.
4084 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
4085 reference count for attach mappings.
4086 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
4087 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4088 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
4089 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
4090 test as shouldfail.
4091 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
4092 gracefully in no-finalize mode.
4093 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
4094
4095 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
4096
4097 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
4098 use.
4099 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4100 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4101
4102 2020-07-23 Julian Brown <julian@codesourcery.com>
4103 Thomas Schwinge <thomas@codesourcery.com>
4104
4105 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
4106 finalization for detach operation.
4107 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
4108 New test.
4109
4110 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
4111
4112 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
4113 * libgomp_f.h.in (omp_check_defines): Check whether
4114 sizeof of determined Fortran kind and C typedef match.
4115 * omp_lib.f90.in: Add omp_depened_kind.
4116 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
4117 * configure: Regenerate.
4118 * Makefile.in: Regenerate.
4119 * testsuite/Makefile.in: Regenerate.
4120
4121 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4122
4123 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
4124 gcc/testsuite/c-c++-common/gomp/.
4125 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
4126 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
4127 from gcc/testsuite/gfortran.dg/gomp/.
4128 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
4129
4130 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
4131
4132 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
4133 * omp_lib.h.in: Likewise.
4134
4135 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
4136
4137 PR target/95620
4138 * testsuite/libgomp.c/pr95620.c: New test.
4139
4140 2020-07-16 Julian Brown <julian@codesourcery.com>
4141 Thomas Schwinge <thomas@codesourcery.com>
4142
4143 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
4144 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
4145
4146 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4147
4148 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
4149 avoid conversion on 32bit systems from 32bit to 64bit due
4150 to -fdefault-integer-8.
4151
4152 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4153
4154 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
4155 variables; add character(kind=4) tests; update TODO comment.
4156
4157 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
4158
4159 * allocator.c: Add ialias for omp_init_allocator and
4160 omp_destroy_allocator.
4161 * configure.ac: Set INTPTR_T_KIND.
4162 * configure: Regenerate.
4163 * Makefile.in: Regenerate.
4164 * testsuite/Makefile.in: Regenerate.
4165 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
4166 omp_set_default_allocator_, omp_get_default_allocator_): New
4167 functions and ialias_redirect.
4168 * icv.c: Add ialias for omp_set_default_allocator and
4169 omp_get_default_allocator.
4170 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
4171 omp_destroy_allocator_, omp_set_default_allocator_ and
4172 omp_get_default_allocator_.
4173 * omp_lib.f90.in: Add allocator traits parameters, declare
4174 allocator routines and add related kind parameters.
4175 * omp_lib.h.in: Likewise.
4176 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
4177 * testsuite/libgomp.fortran/alloc-1.F90: New test.
4178 * testsuite/libgomp.fortran/alloc-2.F90: New test.
4179 * testsuite/libgomp.fortran/alloc-3.F: New test.
4180 * testsuite/libgomp.fortran/alloc-4.f90: New test.
4181 * testsuite/libgomp.fortran/alloc-5.f90: New test.
4182
4183 2020-07-14 Tom de Vries <tom@codesourcery.com>
4184 Cesar Philippidis <cesar@codesourcery.com>
4185 Thomas Schwinge <thomas@codesourcery.com>
4186 Kwok Cheung Yeung <kcy@codesourcery.com>
4187
4188 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
4189 New variable.
4190 (acc_init_1): Set acc_init_thread to pthread_self (). Set
4191 acc_init_state to initializing at the start, and to initialized at the
4192 end.
4193 (self_initializing_p): New function.
4194 (acc_get_device_type): Return acc_device_none if called by thread that
4195 is currently executing acc_init_1.
4196 * libgomp.texi (acc_get_device_type): Update documentation.
4197 (Implementation Status and Implementation-Defined Behavior): Likewise.
4198 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
4199
4200 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
4201
4202 * config/t-aix: Set BITS from compiler cpp macro.
4203
4204 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4205
4206 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
4207
4208 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
4209
4210 PR fortran/67311
4211 * testsuite/libgomp.fortran/target-map-1.f90: New test.
4212
4213 2020-07-14 Jakub Jelinek <jakub@redhat.com>
4214
4215 * testsuite/libgomp.c/loop-21.c: New test.
4216
4217 2020-07-13 Julian Brown <julian@codesourcery.com>
4218 Thomas Schwinge <thomas@codesourcery.com>
4219
4220 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
4221
4222 2020-07-10 Julian Brown <julian@codesourcery.com>
4223 Thomas Schwinge <thomas@codesourcery.com>
4224
4225 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
4226 dynamic_refcount.
4227 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
4228 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
4229 dynamic_refcount.
4230 (acc_unmap_data): Update comment.
4231 (goacc_map_var_existing, goacc_enter_datum): Adjust for
4232 dynamic_refcount semantics.
4233 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
4234 Adjust for dynamic_refcount semantics.
4235 (goacc_enter_data_internal): Implement "present" case of dynamic
4236 memory-map handling here. Update "non-present" case for
4237 dynamic_refcount semantics.
4238 (goacc_exit_data_internal): Use goacc_exit_datum_1.
4239 * target.c (gomp_map_vars_internal): Remove
4240 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
4241 handling.
4242 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
4243 (gomp_load_image_to_device): Substitute dynamic_refcount for
4244 virtual_refcount.
4245 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
4246 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
4247 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
4248 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
4249 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
4250 trace output.
4251 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
4252 trace output.
4253 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
4254 test.
4255 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4256 Remove stale comment.
4257 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
4258 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4259 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4260 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4261 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4262 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
4263
4264 2020-07-10 Julian Brown <julian@codesourcery.com>
4265 Thomas Schwinge <thomas@codesourcery.com>
4266
4267 * oacc-mem.c (goacc_map_var_existing): New function.
4268 (goacc_enter_datum): Use above function.
4269 (goacc_exit_datum_1): New function.
4270 (goacc_exit_datum): Use above function.
4271
4272 2020-07-09 Julian Brown <julian@codesourcery.com>
4273 Thomas Schwinge <thomas@codesourcery.com>
4274
4275 PR middle-end/95270
4276 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
4277 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
4278
4279 2020-07-09 Julian Brown <julian@codesourcery.com>
4280
4281 * oacc-mem.c (find_group_last): Group data-movement clauses
4282 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
4283 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
4284
4285 2020-07-09 Jakub Jelinek <jakub@redhat.com>
4286
4287 * testsuite/libgomp.c/loop-19.c: New test.
4288 * testsuite/libgomp.c/loop-20.c: New test.
4289
4290 2020-07-09 Jakub Jelinek <jakub@redhat.com>
4291
4292 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
4293 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
4294 it. Remove __omp_alloctrait_value_max__.
4295 * allocator.c (omp_init_allocator): Handle omp_atv_default for
4296 omp_atk_alignment and omp_atk_pool_size.
4297
4298 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
4299
4300 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
4301 behavior for 'GOMP_MAP_FORCE_FROM'.
4302 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
4303
4304 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
4305
4306 * oacc-mem.c (goacc_exit_data_internal): Remove
4307 'GOMP_MAP_ALWAYS_FROM' handling.
4308
4309 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
4310
4311 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
4312 'scan-assembler' with 'scan-offload-rtl'.
4313 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
4314 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4315 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
4316 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
4317
4318 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
4319
4320 * target.c (gomp_map_vars_existing): Assert 'kind !=
4321 GOMP_MAP_ATTACH'.
4322 (gomp_map_vars_internal): Clean up.
4323
4324 2020-06-27 Jakub Jelinek <jakub@redhat.com>
4325
4326 * testsuite/libgomp.c/loop-17.c: New test.
4327 * testsuite/libgomp.c/loop-18.c: New test.
4328
4329 2020-06-26 Marek Polacek <polacek@redhat.com>
4330
4331 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
4332
4333 2020-06-23 Alexandre Oliva <oliva@adacore.com>
4334
4335 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
4336 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
4337
4338 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
4339
4340 * Makefile.am: Use -include.
4341 * Makefile.in: Regenerate.
4342
4343 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
4344
4345 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
4346 * Makefile.in: Regenerate
4347 * configure.ac (tmake_file): Substitute.
4348 * configure: Regenerate.
4349 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
4350 * config/t-aix: New file.
4351
4352 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
4353
4354 PR lto/94848
4355 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
4356 'dg-do run'.
4357
4358 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
4359
4360 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
4361 variant for HSA_RUNTIME_LIB name.
4362 (find_executable_symbol_1): Delete.
4363 (find_executable_symbol): Delete.
4364 (init_kernel_properties): Add ".kd" suffix to symbol names.
4365 (find_load_offset): Delete.
4366 (create_and_finalize_hsa_program): Remove relocation handling.
4367
4368 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
4369
4370 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
4371
4372 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
4373
4374 PR lto/94848
4375 PR middle-end/95551
4376 * testsuite/libgomp.fortran/target-var.f90: New test.
4377
4378 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
4379 Julian Brown <julian@codesourcery.com>
4380
4381 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
4382 special handling.
4383
4384 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
4385 Julian Brown <julian@codesourcery.com>
4386
4387 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4388 Simplify.
4389
4390 2020-06-05 Julian Brown <julian@codesourcery.com>
4391
4392 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
4393 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
4394
4395 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4396
4397 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4398 Evaluate 'copyfrom' individually for each entry.
4399 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
4400
4401 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4402
4403 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
4404 Evaluate 'finalize' individually for each entry.
4405 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
4406 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
4407 file.
4408
4409 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4410
4411 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
4412 usage.
4413 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
4414
4415 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4416 Julian Brown <julian@codesourcery.com>
4417
4418 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
4419 checking.
4420 (acc_unmap_data, goacc_exit_data_internal): Restore
4421 'is_tgt_unmapped' checking.
4422 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
4423 file.
4424 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
4425 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4426 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4427 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4428 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4429 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4430
4431 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4432 Julian Brown <julian@codesourcery.com>
4433
4434 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
4435
4436 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4437
4438 PR libgomp/92854
4439 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
4440
4441 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4442
4443 PR libgomp/92854
4444 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
4445 more.
4446
4447 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4448 Julian Brown <julian@codesourcery.com>
4449
4450 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
4451 'gomp_map_vars'.
4452 (acc_map_data): Clean up accordingly.
4453
4454 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4455
4456 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
4457 of over-eager 'finalize' clause.
4458 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
4459 file.
4460 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
4461 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
4462 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
4463 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
4464 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
4465 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
4466 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
4467 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
4468
4469 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4470
4471 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
4472
4473 2020-06-04 Julian Brown <julian@codesourcery.com>
4474
4475 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
4476 error path.
4477 (goacc_detach_internal): Likewise.
4478
4479 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
4480
4481 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
4482 the checkpoint.
4483 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4484 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4485 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
4486 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
4487 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
4488
4489 2020-06-02 Jakub Jelinek <jakub@redhat.com>
4490
4491 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
4492 defined.
4493
4494 2020-05-30 Jakub Jelinek <jakub@redhat.com>
4495
4496 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
4497
4498 2020-05-30 Jakub Jelinek <jakub@redhat.com>
4499
4500 * allocator.c (omp_alloc): For size == 0, return NULL early.
4501
4502 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
4503
4504 PR bootstrap/95413
4505 * configure: Regenerated.
4506
4507 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
4508
4509 PR libfortran/95191
4510 * testsuite/libgomp.fortran/async_io_9.f90: New test.
4511
4512 2020-05-19 Jakub Jelinek <jakub@redhat.com>
4513
4514 * omp.h.in (omp_uintptr_t): New typedef.
4515 (__GOMP_UINTPTR_T_ENUM): Define.
4516 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
4517 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
4518 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
4519 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
4520 omp_get_default_allocator, omp_alloc, omp_free): Declare.
4521 * libgomp.h (struct gomp_team_state): Add def_allocator field.
4522 (gomp_def_allocator): Declare.
4523 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
4524 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
4525 omp_alloc and omp_free.
4526 * team.c (gomp_team_start): Copy over ts.def_allocator.
4527 * env.c (gomp_def_allocator): New variable.
4528 (parse_wait_policy): Adjust function comment.
4529 (parse_allocator): New function.
4530 (handle_omp_display_env): Print OMP_ALLOCATOR.
4531 (initialize_env): Call parse_allocator.
4532 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
4533 * allocator.c: New file.
4534 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
4535 functions.
4536 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
4537 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
4538 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
4539 * Makefile.in: Regenerated.
4540
4541 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
4542
4543 PR bootstrap/95147
4544 * configure: Regenerated.
4545
4546 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
4547
4548 PR libfortran/95119
4549 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
4550
4551 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
4552
4553 * configure: Regenerated.
4554
4555 2020-05-14 Jakub Jelinek <jakub@redhat.com>
4556
4557 * testsuite/libgomp.c-c++-common/target-40.c: New test.
4558
4559 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
4560
4561 PR fortran/94690
4562 * testsuite/libgomp.fortran/pr66199-3.f90: New.
4563 * testsuite/libgomp.fortran/pr66199-4.f90: New.
4564 * testsuite/libgomp.fortran/pr66199-5.f90: New.
4565 * testsuite/libgomp.fortran/pr66199-6.f90: New.
4566 * testsuite/libgomp.fortran/pr66199-7.f90: New.
4567 * testsuite/libgomp.fortran/pr66199-8.f90: New.
4568 * testsuite/libgomp.fortran/pr66199-9.f90: New.
4569
4570 2020-05-12 Jakub Jelinek <jakub@redhat.com>
4571
4572 * testsuite/libgomp.c/target-39.c: New test.
4573
4574 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
4575
4576 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
4577 * openacc.f90 (acc_device_current): Likewise.
4578 * openacc.h (acc_device_current): Likewise.
4579 * openacc_lib.h (acc_device_current): Likewise.
4580
4581 PR target/94282
4582 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
4583 'dg-allow-blank-lines-in-output'.
4584
4585 * oacc-init.c (get_openacc_name): Handle 'gcn'.
4586 * testsuite/lib/libgomp.exp
4587 (offload_target_to_openacc_device_type) [amdgcn*]: Return
4588 'radeon'. Adjust all users.
4589 (check_effective_target_openacc_amdgcn_accel_present): Rename
4590 to...
4591 (check_effective_target_openacc_radeon_accel_present): ... this.
4592 Adjust all users.
4593 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
4594 (check_effective_target_openacc_radeon_accel_selected): ... this.
4595 Adjust all users.
4596
4597 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
4598 'dg-do run'.
4599
4600 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
4601
4602 PR other/94629
4603
4604 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
4605 hsa_iterate_agents.
4606 (GOMP_OFFLOAD_init_device): Check return values from both calls to
4607 hsa_agent_iterate_regions.
4608
4609 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
4610
4611 PR middle-end/94635
4612 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
4613 run'.
4614
4615 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
4616
4617 PR middle-end/94120
4618 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
4619 test case.
4620
4621 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
4622
4623 PR middle-end/94635
4624 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
4625
4626 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
4627
4628 PR libgomp/92843
4629 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4630 Rename to...
4631 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
4632 ... this.
4633 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4634 Rename to...
4635 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
4636 ... this.
4637 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4638 Rename to...
4639 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
4640 ... this.
4641 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4642 Rename to...
4643 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
4644 ... this.
4645 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4646 Rename to...
4647 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
4648 ... this.
4649 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4650 Rename to...
4651 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
4652 ... this.
4653 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4654 Rename to...
4655 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
4656 ... this.
4657 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4658 Rename to...
4659 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
4660 ... this.
4661 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4662 Rename to...
4663 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
4664 ... this.
4665 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4666 Rename to...
4667 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
4668 ... this.
4669 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4670 Rename to...
4671 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
4672 ... this.
4673 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4674 Rename to...
4675 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
4676 ... this.
4677 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4678 Rename to...
4679 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
4680 ... this.
4681 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4682 Rename to...
4683 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
4684 ... this.
4685 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4686 Rename to...
4687 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
4688 ... this.
4689 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
4690 Rename to...
4691 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
4692 ... this.
4693
4694 2020-04-10 Julian Brown <julian@codesourcery.com>
4695 Thomas Schwinge <thomas@codesourcery.com>
4696
4697 PR libgomp/92843
4698 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
4699 New file.
4700 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
4701 Likewise.
4702 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
4703 Likewise.
4704 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
4705 Likewise.
4706 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
4707 Likewise.
4708 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
4709 Likewise.
4710 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
4711 Likewise.
4712 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
4713 Likewise.
4714 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
4715 Likewise.
4716 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
4717 Likewise.
4718 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
4719 Likewise.
4720 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
4721 Likewise.
4722 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
4723 Likewise.
4724 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
4725 Likewise.
4726 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
4727 Likewise.
4728 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
4729 Likewise.
4730
4731 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
4732
4733 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
4734 run'.
4735
4736 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
4737
4738 PR middle-end/94120
4739 * libgomp.oacc-c++/declare-pr94120.C: New.
4740
4741 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
4742
4743 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
4744 files.
4745 * configure: Regenerate.
4746 * testsuite/libgomp-site-extra.exp.in: New file.
4747 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
4748 variable.
4749 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
4750 variable.
4751 * testsuite/Makefile.in: Regenerate.
4752
4753 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
4754
4755 PR tree-optimization/89713
4756 PR c/94392
4757 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
4758 'bar.sync'.
4759 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
4760
4761 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
4762
4763 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
4764 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
4765
4766 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
4767
4768 PR libgomp/81689
4769 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
4770
4771 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
4772
4773 PR libgomp/94251
4774 * target.c (gomp_load_image_to_device): Fix link
4775 variable handling.
4776
4777 2020-03-19 Jakub Jelinek <jakub@redhat.com>
4778
4779 PR c++/93931
4780 * testsuite/libgomp.c++/pr93931.C: New test.
4781
4782 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
4783
4784 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
4785 dg-allow-blank-lines-in-output.
4786
4787 2020-03-18 Julian Brown <julian@codesourcery.com>
4788 Tobias Burnus <tobias@codesourcery.com>
4789
4790 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
4791 it work concurrently.
4792
4793 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
4794
4795 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
4796 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
4797 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
4798
4799 2020-03-14 Jakub Jelinek <jakub@redhat.com>
4800
4801 PR middle-end/93566
4802 * testsuite/libgomp.c/pr93566.c: New test.
4803
4804 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
4805
4806 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
4807 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
4808 integer(acc_device_property) for the type of the return value of
4809 acc_get_property.
4810
4811 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
4812
4813 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
4814 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
4815 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
4816 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
4817 (acc_set_device_num): Fix Fortran argument name, use same name for C.
4818 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
4819 corrections; add note about the previous interface and named constant.
4820 (OpenACC library and environment variables): Fix two typos.
4821 * openacc.f90: Use for all procedures the argument names from the spec
4822 as for …_h they are user visible.
4823 (openacc_kinds): Rename acc_device_property to
4824 acc_device_property_kinds and change value to int32 ; and update users.
4825 Re-add acc_device_property for for backward compatibility.
4826 (acc_get_property_string_h): Clean up as acc_device_property_kind
4827 changed.
4828 (acc_get_property_h): Likewise and return c_size_t instead of
4829 acc_device_property.
4830 (openacc): Also export acc_device_property_kinds.
4831 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
4832 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
4833 handling; check against /= 0 instead of == 1 to match C.
4834 * openacc_lib.h: Use for all procedures the argument names from the spec
4835 as for …_h they are user visible. Place !GCC$ into the first column to
4836 be active also for fixed-form souce form.
4837 (acc_device_current, acc_device_property_kind, acc_device_property,
4838 acc_property_memory, acc_property_free_memory, acc_property_name,
4839 acc_property_vendor, acc_property_driver): New named constants.
4840 (acc_get_property, acc_get_property_string): New generic interface.
4841
4842 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
4843
4844 PR libgomp/93481
4845 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
4846 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
4847 optional.
4848 (gomp_target_task_fn): Assert "devicep->async_run_func".
4849 (clear_unsupported_flags): New function to remove unsupported flags
4850 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
4851 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
4852 * testsuite/libgomp.c/target-33.c:
4853 Remove xfail for offload_target_nvptx.
4854 * testsuite/libgomp.c/target-34.c: Likewise.
4855
4856 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
4857
4858 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
4859 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
4860 * testsuite/libgomp.c/target-34.c: Likewise.
4861 * testsuite/libgomp.c/target-link-1.c: Add xfail for
4862 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
4863
4864 2020-02-09 Jakub Jelinek <jakub@redhat.com>
4865
4866 * testsuite/libgomp.c/target-38.c: New test.
4867
4868 2020-02-06 Jakub Jelinek <jakub@redhat.com>
4869
4870 PR libgomp/93515
4871 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
4872
4873 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
4874
4875 * testsuite/lib/libgomp.exp
4876 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
4877 and not as 'source' argument to libgomp_target_compile.
4878
4879 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
4880
4881 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
4882 (gcn_gfx801_s): Remove.
4883 (isa_hsa_name): Remove gfx801.
4884 (isa_gcc_name): Remove gfx801/carizzo.
4885 (isa_code): Remove gfx801.
4886
4887 2020-02-03 Julian Brown <julian@codesourcery.com>
4888 Tobias Burnus <tobias@codesourcery.com>
4889
4890 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
4891 and *_finalize variants; document acc_attach and acc_detach; update
4892 references from OpenACC 2.0 to 2.6.
4893 * openacc.f90 (openacc_version): Update to 201711.
4894 * openacc_lib.h (openacc_version): Update to 201711.
4895 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
4896 openacc_version to 201711.
4897 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4898
4899 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
4900
4901 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
4902 and vgpr_count fields.
4903 (struct kernel_info): Add a field for a hsa_kernel_description.
4904 (run_kernel): Reduce the number of threads/workers if the requested
4905 number would require too many VGPRs.
4906 (init_basic_kernel_info): Initialize description field with
4907 the hsa_kernel_description entry for the kernel.
4908
4909 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
4910
4911 PR bootstrap/93409
4912 * plugin/configfrag.ac (enable_offload_targets): Skip
4913 HSA and GCN plugin besides -m32 also for -mx32.
4914 * configure: Regenerate.
4915
4916 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
4917
4918 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
4919
4920 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
4921
4922 * plugin-gcn.c (struct agent_info): Add fields "name" and
4923 "vendor_name" ...
4924 (GOMP_OFFLOAD_init_device): ... and init from here.
4925 (struct hsa_context_info): Add field "driver_version_s" ...
4926 (init_hsa_contest): ... and init from here.
4927 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
4928 implementation.
4929 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
4930 Enable test execution for amdgcn and host offloading targets.
4931 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
4932 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
4933 (expect_device_properties): Split function into ...
4934 (expect_device_string_properties): ... this new function ...
4935 (expect_device_memory): ... and this new function.
4936 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
4937 Add test.
4938
4939 2020-01-28 Julian Brown <julian@codesourcery.com>
4940
4941 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
4942 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
4943 component/non-component variable refs in a single directive.
4944 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
4945
4946 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4947
4948 * configure.ac: Handle `--with-toolexeclibdir='.
4949 * Makefile.in: Regenerate.
4950 * aclocal.m4: Regenerate.
4951 * configure: Regenerate.
4952 * testsuite/Makefile.in: Regenerate.
4953
4954 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
4955
4956 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
4957 (expect_device_properties): Remove "expected_free_mem" argument,
4958 change "expected_total_mem" argument type to size_t;
4959 change types of acc_get_property results to size_t,
4960 adapt format strings.
4961 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
4962 Use %zu instead of %zd to print size_t values.
4963 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
4964 rename to ...
4965 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
4966 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
4967 rename to ...
4968 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
4969
4970 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
4971
4972 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
4973 the device id.
4974
4975 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
4976
4977 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
4978 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
4979 Adjust test dimensions for amdgcn.
4980 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
4981 gang/worker/vector expectations dynamically.
4982 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
4983 (main): Likewise.
4984 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
4985 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
4986 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
4987 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
4988 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
4989 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
4990 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
4991 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
4992 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4993 (acc_gang): Recognise acc_device_radeon.
4994 (acc_worker): Likewise.
4995 (acc_vector): Likewise.
4996 (main): Set expectations for amdgcn.
4997 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
4998 (main): Adjust gang/worker/vector expectations dynamically.
4999 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
5000 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
5001 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
5002 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
5003 for amdgcn.
5004
5005 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
5006
5007 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
5008 acc_device_radeon.
5009 (openacc): Likewise.
5010 * openacc.f90 (openacc_kinds): Likewise.
5011 (openacc): Likewise.
5012 * openacc.h (acc_device_t): Likewise.
5013 * openacc_lib.h: Likewise.
5014 * testsuite/lib/libgomp.exp
5015 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
5016 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
5017 (cb_compute_construct_end): Likewise.
5018 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5019 (cb_enqueue_launch_start): Likewise.
5020 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
5021 (cb_enter_data_end): Likewise.
5022 (cb_exit_data_start): Likewise.
5023 (cb_exit_data_end): Likewise.
5024 (cb_compute_construct_end): Likewise.
5025 (cb_enqueue_launch_start): Likewise.
5026 (cb_enqueue_launch_end): Likewise.
5027 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
5028 (main): Likewise.
5029
5030 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
5031
5032 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
5033 to use this instead of 'enum gomp_device_property'.
5034 (GOMP_OFFLOAD_get_property): Rename to...
5035 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
5036 * libgomp.h (struct gomp_device_descr): Move
5037 'GOMP_OFFLOAD_openacc_get_property'...
5038 (struct acc_dispatch_t): ... here. Adjust all users.
5039 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
5040
5041 * target.c (gomp_map_vars_internal)
5042 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
5043 paths.
5044
5045 2020-01-10 Jakub Jelinek <jakub@redhat.com>
5046
5047 PR libgomp/93219
5048 * libgomp.h (gomp_print_string): Change return type from void to int.
5049 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
5050 not all characters have been written.
5051
5052 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
5053
5054 * libgomp.texi: Fix typos, use https.
5055
5056 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
5057
5058 * testsuite/libgomp.fortran/optional-map.f90: Add test for
5059 unallocated/disassociated actual arguments to nonallocatable/nonpointer
5060 dummy arguments; those are/shall be regarded as absent arguments.
5061 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5062 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
5063
5064 2020-01-01 Jakub Jelinek <jakub@redhat.com>
5065
5066 Update copyright years.
5067
5068 * libgomp.texi: Bump @copying's copyright year.
5069
5070 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
5071
5072 PR libgomp/93065
5073 * oacc-init.c (goacc_runtime_deinitialize): New function.
5074
5075 2019-12-28 Jakub Jelinek <jakub@redhat.com>
5076
5077 PR bootstrap/93074
5078 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
5079 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
5080
5081 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
5082 Frederik Harwath <frederik@codesourcery.com>
5083 Thomas Schwinge <tschwinge@codesourcery.com>
5084
5085 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
5086 * libgomp-plugin.h (gomp_device_property_value): New union.
5087 (gomp_device_property_value): New prototype.
5088 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
5089 constant.
5090 (acc_device_property_t): New enum.
5091 (acc_get_property, acc_get_property_string): New prototypes.
5092 * oacc-init.c (acc_get_device_type): Also assert that result
5093 is not `acc_device_current'.
5094 (get_property_any, acc_get_property, acc_get_property_string):
5095 New functions.
5096 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
5097 `acc_property_memory', `acc_property_free_memory',
5098 `acc_property_name', `acc_property_vendor' and
5099 `acc_property_driver' constants. Add `acc_device_property' data
5100 type.
5101 (openacc_internal): Add `acc_get_property' and
5102 `acc_get_property_string' interfaces. Add `acc_get_property_h',
5103 `acc_get_property_string_h', `acc_get_property_l' and
5104 `acc_get_property_string_l'.
5105 * oacc-host.c (host_get_property): New function.
5106 (host_dispatch): Wire it.
5107 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
5108 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
5109 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
5110 * libgomp.texi (OpenACC Runtime Library Routines): Add
5111 `acc_get_property'.
5112 (acc_get_property): New node.
5113 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
5114 function (stub).
5115 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
5116 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
5117 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
5118 calls.
5119 (GOMP_OFFLOAD_get_property): New function.
5120 (struct ptx_device): Add new field "name".
5121 (cuda_driver_version_s): Add new static variable ...
5122 (nvptx_init): ... and init from here.
5123
5124 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
5125 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
5126 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
5127 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
5128 with test helper functions.
5129
5130 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
5131
5132 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
5133
5134 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
5135 variable.
5136
5137 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
5138
5139 * target.c (gomp_map_vars_internal): Restore 'omp declare target
5140 link' handling.
5141
5142 2019-12-19 Julian Brown <julian@codesourcery.com>
5143
5144 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
5145 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
5146 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
5147
5148 2019-12-19 Julian Brown <julian@codesourcery.com>
5149 Cesar Philippidis <cesar@codesourcery.com>
5150
5151 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
5152 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
5153 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
5154 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
5155 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
5156 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
5157 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
5158 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
5159 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
5160 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
5161 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
5162 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
5163 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
5164
5165 2019-12-19 Julian Brown <julian@codesourcery.com>
5166
5167 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
5168 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
5169 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
5170 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
5171 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
5172 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
5173 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
5174 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
5175 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
5176 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
5177 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
5178 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
5179
5180 2019-12-19 Julian Brown <julian@codesourcery.com>
5181
5182 * libgomp.h (struct target_var_desc): Add do_detach flag.
5183 * oacc-init.c (acc_shutdown_1): Free aux block if present.
5184 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
5185 struct components. Tidy up and add some new checks.
5186 (goacc_enter_data_internal): Update call to find_group_last.
5187 (goacc_exit_data_internal): Support detach operations and
5188 GOMP_MAP_STRUCT.
5189 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
5190 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
5191 attach/detach in enter/exit data detection code.
5192 * target.c (gomp_map_vars_existing): Initialise do_detach field of
5193 tgt_var_desc.
5194 (gomp_map_vars_internal): Support attach.
5195 (gomp_unmap_vars_internal): Support detach.
5196
5197 2019-12-19 Julian Brown <julian@codesourcery.com>
5198 Thomas Schwinge <thomas@codesourcery.com>
5199
5200 * libgomp.h (struct splay_tree_aux): Add attach_count field.
5201 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
5202 * libgomp.map (OACC_2.6): New section. Add acc_attach,
5203 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
5204 acc_detach_finalize_async.
5205 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
5206 acc_detach, acc_detach_async, acc_detach_finalize,
5207 acc_detach_finalize_async): New functions.
5208 * openacc.h (acc_attach, acc_attach_async, acc_detach,
5209 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
5210 prototypes.
5211 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
5212 (gomp_remove_var_internal): Free attachment counts if present.
5213 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
5214 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
5215
5216 2019-12-19 Julian Brown <julian@codesourcery.com>
5217 Cesar Philippidis <cesar@codesourcery.com>
5218
5219 * libgomp.h (gomp_map_val): Add prototype.
5220 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
5221 open-coding device-address calculation.
5222 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
5223 non-present case.
5224
5225 2019-12-19 Julian Brown <julian@codesourcery.com>
5226
5227 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
5228 field for virtual_refcount.
5229 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
5230 (gomp_free_memmap): Remove prototype.
5231 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
5232 instead of calling gomp_free_memmap.
5233 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
5234 dynamic_refcount.
5235 (acc_unmap_data): Open code instead of forcing target_mem_desc's
5236 to_free field to NULL then calling gomp_unmap_vars. Handle
5237 REFCOUNT_INFINITY on target blocks.
5238 (goacc_enter_data): Rename to...
5239 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
5240 handling for mapping groups. Use virtual_refcount instead of
5241 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
5242 map_map_vars_async call. Re-do lookup for target pointer return value.
5243 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
5244 renamed goacc_enter_datum function.
5245 (goacc_exit_data): Rename to...
5246 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
5247 (acc_delete, acc_delete_async, acc_delete_finalize,
5248 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
5249 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
5250 goacc_exit_datum function.
5251 (gomp_acc_remove_pointer, find_pointer): Remove functions.
5252 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
5253 New functions.
5254 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
5255 goacc_exit_data_internal helper functions.
5256 * target.c (gomp_map_vars_internal): Handle
5257 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
5258 semantics.
5259 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
5260 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
5261 virtual_refcount field instead of dynamic_refcount.
5262 (gomp_free_memmap): Remove function.
5263 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
5264 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
5265 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
5266
5267 2019-12-19 Julian Brown <julian@codesourcery.com>
5268 Thomas Schwinge <thomas@codesourcery.com>
5269
5270 * libgomp.h (struct splay_tree_aux): New.
5271 (struct splay_tree_key_s): Replace link_key field with aux pointer.
5272 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
5273 to aux struct.
5274 (gomp_remove_var_internal): Free aux block if present.
5275 (gomp_load_image_to_device): Zero-initialise aux field instead of
5276 link_key field.
5277 (omp_target_associate_pointer): Zero-initialise aux field.
5278
5279 2019-12-18 Jakub Jelinek <jakub@redhat.com>
5280
5281 PR middle-end/86416
5282 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
5283 q or none.
5284 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
5285 L or none.
5286
5287 2019-12-19 Julian Brown <julian@codesourcery.com>
5288 Maciej W. Rozycki <macro@codesourcery.com>
5289 Tobias Burnus <tobias@codesourcery.com>
5290 Thomas Schwinge <thomas@codesourcery.com>
5291
5292 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
5293 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
5294 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
5295 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
5296 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
5297 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
5298 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
5299 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
5300 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
5301
5302 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
5303
5304 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5305 called...
5306 (goacc_insert_pointer): ... from here, "present" case.
5307 (goacc_insert_pointer): Inline function into...
5308 (GOACC_enter_exit_data): ... here, and simplify.
5309
5310 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
5311 called...
5312 (goacc_insert_pointer): ... from here, "not present" case.
5313
5314 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
5315 all users.
5316
5317 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
5318 'goacc_enter_data', 'goacc_exit_data'.
5319
5320 * oacc-mem.c (delete_copyout): Refactor into...
5321 (goacc_exit_data): ... this. Adjust all users.
5322
5323 * oacc-mem.c (present_create_copy): Refactor into...
5324 (goacc_enter_data): ... this. Adjust all users.
5325
5326 * target.c (gomp_unmap_vars_internal): Add a safeguard to
5327 'gomp_remove_var'.
5328
5329 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
5330 like 'GOMP_MAP_FROM'.
5331
5332 PR libgomp/92726
5333 PR libgomp/92970
5334 PR libgomp/92984
5335 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
5336 fails.
5337 (GOACC_enter_exit_data): Simplify accordingly.
5338 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
5339 subsuming...
5340 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
5341 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
5342 file.
5343 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
5344 subsuming...
5345 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
5346 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
5347 file.
5348 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
5349 subsuming...
5350 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
5351
5352 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
5353 'finalize' handling.
5354
5355 PR libgomp/92848
5356 * oacc-mem.c (acc_map_data, present_create_copy)
5357 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
5358 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
5359 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
5360 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
5361 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
5362 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
5363 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
5364 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5365 Remove "XFAIL"s.
5366
5367 * target.c (gomp_unmap_tgt): Make it 'static'.
5368 * libgomp.h (gomp_unmap_tgt): Remove.
5369
5370 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
5371
5372 PR middle-end/86416
5373 * testsuite/libgomp.c/pr86416-1.c: New.
5374 * testsuite/libgomp.c/pr86416-2.c: New.
5375
5376 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
5377
5378 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
5379 all symbols as public except for the 'use …, only' imported symbol,
5380 which is private.
5381 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5382 all symbols from module openacc_kinds as PUBLIC
5383 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
5384 fix comment typo.
5385 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
5386
5387 2019-12-13 Julian Brown <julian@codesourcery.com>
5388
5389 PR libgomp/92881
5390
5391 * libgomp.h (gomp_remove_var_async): Add prototype.
5392 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
5393 gomp_remove_var.
5394 * target.c (gomp_unref_tgt): Change return type to bool, indicating
5395 whether target_mem_desc was unmapped.
5396 (gomp_unref_tgt_void): New.
5397 (gomp_remove_var): Reimplement in terms of...
5398 (gomp_remove_var_internal): ...this new helper function.
5399 (gomp_remove_var_async): New, implemented using above helper function.
5400 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
5401 gomp_unref_tgt.
5402
5403 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
5404
5405 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
5406 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
5407 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
5408 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
5409 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
5410 Likewise.
5411 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
5412 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
5413
5414 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
5415
5416 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
5417 as public except for the 'use …, only' imported symbol, which is
5418 private.
5419 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
5420 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
5421 attributes for acc_copyout_finalize and acc_delete_finalize.
5422
5423 2019-12-11 Jakub Jelinek <jakub@redhat.com>
5424
5425 PR fortran/92899
5426 * testsuite/libgomp.fortran/atomic1.f90: New test.
5427
5428 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
5429
5430 PR libgomp/92843
5431 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
5432 reference counting for structured 'REFCOUNT_INFINITY'. Add some
5433 assertions.
5434 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
5435 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
5436 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
5437 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5438 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5439
5440 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
5441 * oacc-mem.c: ... here.
5442 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
5443 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
5444 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
5445 Remove.
5446 * libgomp_g.h: Update.
5447
5448 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
5449 * oacc-async.c: ... here.
5450 * oacc-int.h (goacc_wait): Declare.
5451 * libgomp_g.h: Update
5452
5453 PR libgomp/92854
5454 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
5455 New file.
5456 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
5457 Likewise.
5458 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
5459 Likewise.
5460 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
5461 Likewise.
5462 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
5463 Likewise.
5464 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
5465 Likewise.
5466
5467 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
5468 Julian Brown <julian@codesourcery.com>
5469
5470 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
5471 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
5472
5473 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
5474
5475 * omp_lib.h.in: Fix spelling of function declaration
5476 omp_get_cancell(l)ation.
5477 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
5478 Fix typos.
5479 * env.c: Fix comment typos.
5480 * oacc-host.c: Likewise.
5481 * ordered.c: Likewise.
5482 * task.c: Likewise.
5483 * team.c: Likewise.
5484 * config/gcn/task.c: Likewise.
5485 * config/gcn/team.c: Likewise.
5486 * config/nvptx/task.c: Likewise.
5487 * config/nvptx/team.c: Likewise.
5488 * plugin/plugin-gcn.c: Likewise.
5489 * testsuite/libgomp.fortran/jacobi.f: Likewise.
5490 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5491 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
5492
5493 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
5494
5495 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
5496 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
5497 unnecessary 'dg-additional-options "-w"'.
5498
5499 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
5500 Julian Brown <julian@codesourcery.com>
5501
5502 PR libgomp/92116
5503 PR libgomp/92877
5504
5505 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
5506 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
5507 Adjust all users.
5508 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5509 Remove XFAIL.
5510 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5511 Likewise.
5512 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
5513
5514 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
5515
5516 PR libgomp/92503
5517 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
5518 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
5519 file.
5520 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
5521 Likewise.
5522 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
5523 Likewise.
5524 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
5525 Likewise.
5526 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
5527 Likewise.
5528 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
5529 Likewise.
5530 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5531 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5532 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5533 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5534 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5535 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5536 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5537 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5538 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
5539 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5540
5541 PR libgomp/92840
5542 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
5543 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
5544 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
5545 New file.
5546 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
5547 Likewise.
5548 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
5549 Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
5551 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
5552
5553 PR libgomp/92511
5554 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
5555 this file...
5556 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
5557 this file...
5558 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
5559 file...
5560 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
5561 file...
5562 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
5563 ... with their content moved into, and extended in this new file.
5564 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
5565 New file.
5566 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
5567 Likewise.
5568 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
5569 Likewise.
5570 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
5571 Likewise.
5572
5573 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
5574
5575 PR libgomp/92854
5576 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
5577
5578 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
5579
5580 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
5581
5582 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
5583
5584 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
5585 unique.
5586 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
5587 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
5588 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
5589 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
5590 Ditto.
5591 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
5592 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
5593
5594 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
5595
5596 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
5597
5598 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
5599 Kwok Cheung Yeung <kcy@codesourcery.com>
5600
5601 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
5602 if input it a NULL pointer.
5603 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
5604 diagnostic of NULL pointer.
5605 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
5606 * testsuite/libgomp.fortran/optional-map.f90: New.
5607 * testsuite/libgomp.fortran/use_device_addr-1.f90
5608 (test_dummy_opt_callee_1_absent): New.
5609 (test_dummy_opt_call_1): Call it.
5610 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
5611 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
5612 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
5613 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
5614 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
5615 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
5616 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
5617 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
5618 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
5619 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
5620 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
5621 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
5622 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
5623 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
5624 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
5625 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
5626
5627 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
5628
5629 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
5630 expect dg-output of 'Error termination.' for GCN.
5631 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5632 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5633
5634 2019-12-04 Jakub Jelinek <jakub@redhat.com>
5635
5636 PR fortran/92756
5637 * testsuite/libgomp.fortran/teams1.f90: New test.
5638 * testsuite/libgomp.fortran/teams2.f90: New test.
5639
5640 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
5641
5642 * oacc-init.c (acc_known_device_type): Add function.
5643 (unknown_device_type_error): Add function.
5644 (name_of_acc_device_t): Change to call unknown_device_type_error
5645 on unknown type.
5646 (resolve_device): Use acc_known_device_type.
5647 (acc_init): Fail if acc_device_t argument is not valid.
5648 (acc_shutdown): Likewise.
5649 (acc_get_num_devices): Likewise.
5650 (acc_set_device_type): Likewise.
5651 (acc_get_device_num): Likewise.
5652 (acc_set_device_num): Likewise.
5653 (acc_on_device): Add comment that argument validity is not checked.
5654
5655 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
5656
5657 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5658 Recognize amdgcn.
5659 (check_effective_target_openacc_amdgcn_accel_present): New proc.
5660 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
5661 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
5662 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5663 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5664
5665 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5666
5667 PR libgomp/91938
5668 * configure.tgt: Avoid IE tls on *-*-musl*.
5669
5670 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
5671
5672 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
5673 adding a common-block test case.
5674
5675 2019-11-29 Jakub Jelinek <jakub@redhat.com>
5676
5677 PR c++/60228
5678 * testsuite/libgomp.c++/udr-20.C: New test.
5679 * testsuite/libgomp.c++/udr-21.C: New test.
5680
5681 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
5682
5683 * testsuite/lib/libgomp.exp
5684 (check_effective_target_offload_target_nvptx): New proc.
5685 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
5686 'dg-skip-if'.
5687 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
5688 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
5689 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
5690
5691 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5692
5693 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
5694 * testsuite/libgomp.c/pr39591-2.c: Likewise.
5695 * testsuite/libgomp.c/pr39591-3.c: Likewise.
5696 * testsuite/libgomp.c/private-1.c: Likewise.
5697 * testsuite/libgomp.c/task-1.c: Likewise.
5698 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
5699
5700 2019-11-20 Julian Brown <julian@codesourcery.com>
5701
5702 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
5703 aq->mutex here.
5704 (queue_push_launch): Lock aq->mutex before calling
5705 wait_for_queue_nonfull.
5706 (queue_push_callback): Likewise.
5707 (queue_push_asyncwait): Likewise.
5708 (queue_push_placeholder): Likewise.
5709
5710 2019-11-20 Julian Brown <julian@codesourcery.com>
5711
5712 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
5713 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
5714 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
5715 return code.
5716
5717 2019-11-20 Julian Brown <julian@codesourcery.com>
5718
5719 PR libgomp/92511
5720
5721 * oacc-mem.c (present_create_copy): Fix device pointer return value in
5722 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
5723 in non-present/create case.
5724 (delete_copyout): Change error condition to fail only on copies outside
5725 of mapped block. Adjust error message accordingly.
5726 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
5727 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
5728 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
5729 message.
5730 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5731 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
5732 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5733
5734 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
5735
5736 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
5737 libatomic in build-tree testing.
5738
5739 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
5740
5741 * testsuite/Makefile.in: Regenerate.
5742
5743 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
5744
5745 * testsuite/libgomp.c/target-print-1.c: New file.
5746 * testsuite/libgomp.fortran/target-print-1.f90: New file.
5747 * testsuite/libgomp.oacc-c/print-1.c: New file.
5748 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
5749
5750 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5751 Kwok Cheung Yeung <kcy@codesourcery.com>
5752 Julian Brown <julian@codesourcery.com>
5753 Tom de Vries <tom@codesourcery.com>
5754
5755 * plugin/Makefrag.am: Add amdgcn plugin support.
5756 * plugin/configfrag.ac: Likewise.
5757 * plugin/plugin-gcn.c: New file.
5758 * configure: Regenerate.
5759 * Makefile.in: Regenerate.
5760 * testsuite/Makefile.in: Regenerate.
5761
5762 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5763
5764 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
5765 and use team_malloc variants.
5766 (gomp_gcn_exit_kernel): Use team_free.
5767 * libgomp.h (TEAM_ARENA_SIZE): Define.
5768 (TEAM_ARENA_START): Define.
5769 (TEAM_ARENA_FREE): Define.
5770 (TEAM_ARENA_END): Define.
5771 (team_malloc): New function.
5772 (team_malloc_cleared): New function.
5773 (team_free): New function.
5774 * team.c (gomp_new_team): Initialize and use team_malloc.
5775 (free_team): Use team_free.
5776 (gomp_free_thread): Use team_free.
5777 (gomp_pause_host): Use team_free.
5778 * work.c (gomp_init_work_share): Use team_malloc.
5779 (gomp_fini_work_share): Use team_free.
5780
5781 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5782 Kwok Cheung Yeung <kcy@codesourcery.com>
5783 Julian Brown <julian@codesourcery.com>
5784 Tom de Vries <tom@codesourcery.com>
5785
5786 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
5787 * Makefile.in: Regenerate.
5788 * config.h.in (PLUGIN_GCN): Add new undef.
5789 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
5790 * config/gcn/affinity-fmt.c: New file.
5791 * config/gcn/bar.c: New file.
5792 * config/gcn/bar.h: New file.
5793 * config/gcn/doacross.h: New file.
5794 * config/gcn/icv-device.c: New file.
5795 * config/gcn/oacc-target.c: New file.
5796 * config/gcn/simple-bar.h: New file.
5797 * config/gcn/target.c: New file.
5798 * config/gcn/task.c: New file.
5799 * config/gcn/team.c: New file.
5800 * config/gcn/time.c: New file.
5801 * configure.ac: Add amdgcn*-*-*.
5802 * configure: Regenerate.
5803 * configure.tgt: Add amdgcn*-*-*.
5804 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
5805 * libgomp.h (gcn_thrs): Add amdgcn variant.
5806 (set_gcn_thrs): Likewise.
5807 (gomp_thread): Likewise.
5808 * oacc-int.h (goacc_thread): Likewise.
5809 * oacc-target.c: New file.
5810 * openacc.f90 (acc_device_gcn): New parameter.
5811 * openacc.h (acc_device_t): Add acc_device_gcn.
5812 * team.c (gomp_free_pool_helper): Add amdgcn support.
5813
5814 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5815 Julian Brown <julian@codesourcery.com>
5816
5817 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
5818 parameter.
5819 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
5820 queue constructor.
5821 * oacc-host.c (host_openacc_async_construct): Add device parameter.
5822 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
5823 device parameter.
5824
5825 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
5826
5827 * configure.tgt (nvptx*-*-*): Add "accel" directory.
5828 * config/nvptx/libgomp-plugin.c: Move ...
5829 * config/accel/libgomp-plugin.c: ... to here.
5830 * config/nvptx/lock.c: Move ...
5831 * config/accel/lock.c: ... to here.
5832 * config/nvptx/mutex.c: Move ...
5833 * config/accel/mutex.c: ... to here.
5834 * config/nvptx/mutex.h: Move ...
5835 * config/accel/mutex.h: ... to here.
5836 * config/nvptx/oacc-async.c: Move ...
5837 * config/accel/oacc-async.c: ... to here.
5838 * config/nvptx/oacc-cuda.c: Move ...
5839 * config/accel/oacc-cuda.c: ... to here.
5840 * config/nvptx/oacc-host.c: Move ...
5841 * config/accel/oacc-host.c: ... to here.
5842 * config/nvptx/oacc-init.c: Move ...
5843 * config/accel/oacc-init.c: ... to here.
5844 * config/nvptx/oacc-mem.c: Move ...
5845 * config/accel/oacc-mem.c: ... to here.
5846 * config/nvptx/oacc-plugin.c: Move ...
5847 * config/accel/oacc-plugin.c: ... to here.
5848 * config/nvptx/omp-lock.h: Move ...
5849 * config/accel/omp-lock.h: ... to here.
5850 * config/nvptx/openacc.f90: Move ...
5851 * config/accel/openacc.f90: ... to here.
5852 * config/nvptx/pool.h: Move ...
5853 * config/accel/pool.h: ... to here.
5854 * config/nvptx/proc.c: Move ...
5855 * config/accel/proc.c: ... to here.
5856 * config/nvptx/ptrlock.c: Move ...
5857 * config/accel/ptrlock.c: ... to here.
5858 * config/nvptx/ptrlock.h: Move ...
5859 * config/accel/ptrlock.h: ... to here.
5860 * config/nvptx/sem.c: Move ...
5861 * config/accel/sem.c: ... to here.
5862 * config/nvptx/sem.h: Move ...
5863 * config/accel/sem.h: ... to here.
5864 * config/nvptx/thread-stacksize.h: Move ...
5865 * config/accel/thread-stacksize.h: ... to here.
5866
5867 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
5868 Tobias Burnus <tobias@codesourcery.com>
5869 Frederik Harwath <frederik@codesourcery.com>
5870 Thomas Schwinge <thomas@codesourcery.com>
5871
5872 libgomp/
5873 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
5874 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
5875 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
5876
5877 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
5878 Kwok Cheung Yeung <kcy@codesourcery.com>
5879
5880 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
5881 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
5882
5883 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
5884
5885 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
5886
5887 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
5888 run'.
5889 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
5890 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
5891
5892 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
5893
5894 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
5895 Add expected warnings about missing reduction clauses.
5896 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5897 Likewise.
5898 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
5899 Likewise.
5900 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
5901 Likewise.
5902
5903 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5904
5905 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
5906 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
5907 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
5908 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
5909 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
5910 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
5911
5912 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5913
5914 PR fortran/92305
5915 * testsuite/libgomp.fortran/allocatable2.f90: Use
5916 unique numbers with 'stop'.
5917 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
5918 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
5919 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
5920 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
5921 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
5922
5923 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5924
5925 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
5926 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
5927 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
5928 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
5929 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
5930 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
5931
5932 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5933
5934 * testsuite/libgomp.fortran/target9.f90: New.
5935
5936 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5937
5938 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
5939 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
5940 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
5941 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
5942 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
5943 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
5944 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
5945 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
5946 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
5947 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
5948 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
5949 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
5950 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
5951 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
5952 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
5953 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
5954 * testsuite/libgomp.fortran/associate1.f90: Ditto.
5955 * testsuite/libgomp.fortran/associate2.f90: Ditto.
5956 * testsuite/libgomp.fortran/associate3.f90: Ditto.
5957 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
5958 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
5959 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
5960 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
5961 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
5962 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
5963 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
5964 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
5965 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
5966 * testsuite/libgomp.fortran/character1.f90: Ditto.
5967 * testsuite/libgomp.fortran/character2.f90: Ditto.
5968 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
5969 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
5970 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
5971 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
5972 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
5973 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
5974 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
5975 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
5976 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
5977 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
5978 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
5979 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
5980 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
5981 * testsuite/libgomp.fortran/do1.f90: Ditto.
5982 * testsuite/libgomp.fortran/do2.f90: Ditto.
5983 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
5984 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
5985 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
5986 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
5987 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
5988 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
5989 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
5990 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
5991 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
5992 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
5993 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
5994 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
5995 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
5996 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
5997 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
5998 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
5999 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
6000 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
6001 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
6002 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
6003 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
6004 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
6005 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
6006 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
6007 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
6008 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
6009 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
6010 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
6011 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
6012 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
6013 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
6014 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
6015 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
6016 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
6017 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
6018 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
6019 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
6020 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
6021 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
6022 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
6023 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
6024 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
6025 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
6026 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
6027 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
6028 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
6029 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
6030 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
6031 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
6032 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6033 * testsuite/libgomp.fortran/lib1.f90: Ditto.
6034 * testsuite/libgomp.fortran/lib4.f90: Ditto.
6035 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
6036 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
6037 * testsuite/libgomp.fortran/nested1.f90: Ditto.
6038 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
6039 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
6040 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
6041 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6042 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
6043 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
6044 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6045 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
6046 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
6047 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
6048 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
6049 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
6050 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
6051 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
6052 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6053 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
6054 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6055 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
6056 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
6057 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
6058 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
6059 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
6060 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
6061 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
6062 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6063 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
6064 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
6065 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
6066 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
6067 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
6068 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6069 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
6070 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
6071 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
6072 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
6073 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6074 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
6075 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
6076 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
6077 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
6078 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
6079 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
6080 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
6081 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
6082 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
6083 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
6084 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
6085 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
6086 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
6087 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
6088 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
6089 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
6090 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
6091 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
6092 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
6093 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
6094 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6095 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
6096 * testsuite/libgomp.fortran/reference1.f90: Ditto.
6097 * testsuite/libgomp.fortran/reference2.f90: Ditto.
6098 * testsuite/libgomp.fortran/retval1.f90: Ditto.
6099 * testsuite/libgomp.fortran/retval2.f90: Ditto.
6100 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
6101 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
6102 * testsuite/libgomp.fortran/simd1.f90: Ditto.
6103 * testsuite/libgomp.fortran/simd2.f90: Ditto.
6104 * testsuite/libgomp.fortran/simd3.f90: Ditto.
6105 * testsuite/libgomp.fortran/simd4.f90: Ditto.
6106 * testsuite/libgomp.fortran/simd5.f90: Ditto.
6107 * testsuite/libgomp.fortran/simd6.f90: Ditto.
6108 * testsuite/libgomp.fortran/simd7.f90: Ditto.
6109 * testsuite/libgomp.fortran/stack.f90: Ditto.
6110 * testsuite/libgomp.fortran/strassen.f90: Ditto.
6111 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
6112 * testsuite/libgomp.fortran/tabs2.f: Ditto.
6113 * testsuite/libgomp.fortran/target1.f90: Ditto.
6114 * testsuite/libgomp.fortran/target2.f90: Ditto.
6115 * testsuite/libgomp.fortran/target3.f90: Ditto.
6116 * testsuite/libgomp.fortran/target4.f90: Ditto.
6117 * testsuite/libgomp.fortran/target5.f90: Ditto.
6118 * testsuite/libgomp.fortran/target6.f90: Ditto.
6119 * testsuite/libgomp.fortran/target7.f90: Ditto.
6120 * testsuite/libgomp.fortran/target8.f90: Ditto.
6121 * testsuite/libgomp.fortran/task1.f90: Ditto.
6122 * testsuite/libgomp.fortran/task2.f90: Ditto.
6123 * testsuite/libgomp.fortran/task3.f90: Ditto.
6124 * testsuite/libgomp.fortran/task4.f90: Ditto.
6125 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6126 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6127 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
6128 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
6129 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
6130 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
6131 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
6132 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
6133 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
6134 * testsuite/libgomp.fortran/udr1.f90: Ditto.
6135 * testsuite/libgomp.fortran/udr10.f90: Ditto.
6136 * testsuite/libgomp.fortran/udr11.f90: Ditto.
6137 * testsuite/libgomp.fortran/udr12.f90: Ditto.
6138 * testsuite/libgomp.fortran/udr13.f90: Ditto.
6139 * testsuite/libgomp.fortran/udr14.f90: Ditto.
6140 * testsuite/libgomp.fortran/udr15.f90: Ditto.
6141 * testsuite/libgomp.fortran/udr2.f90: Ditto.
6142 * testsuite/libgomp.fortran/udr3.f90: Ditto.
6143 * testsuite/libgomp.fortran/udr4.f90: Ditto.
6144 * testsuite/libgomp.fortran/udr5.f90: Ditto.
6145 * testsuite/libgomp.fortran/udr6.f90: Ditto.
6146 * testsuite/libgomp.fortran/udr7.f90: Ditto.
6147 * testsuite/libgomp.fortran/udr8.f90: Ditto.
6148 * testsuite/libgomp.fortran/udr9.f90: Ditto.
6149 * testsuite/libgomp.fortran/vla1.f90: Ditto.
6150 * testsuite/libgomp.fortran/vla2.f90: Ditto.
6151 * testsuite/libgomp.fortran/vla3.f90: Ditto.
6152 * testsuite/libgomp.fortran/vla4.f90: Ditto.
6153 * testsuite/libgomp.fortran/vla5.f90: Ditto.
6154 * testsuite/libgomp.fortran/vla6.f90: Ditto.
6155 * testsuite/libgomp.fortran/vla7.f90: Ditto.
6156 * testsuite/libgomp.fortran/vla8.f90: Ditto.
6157 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6158 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6159
6160 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6161
6162 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
6163 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
6164 Ditto; add 'dg-do run' for torture testing.
6165 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
6166 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
6167 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
6168 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
6169 * testsuite/libgomp.fortran/pr28390.f: Ditto.
6170 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
6171 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
6172 * testsuite/libgomp.fortran/task2.f90: Ditto.
6173 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
6174 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
6175 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
6176 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
6177 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
6178 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
6179
6180 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
6181
6182 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
6183 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
6184 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
6185 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
6186 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
6187 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
6188 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
6189 Use 'stop' not abort().
6190 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
6191 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
6192 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
6193 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
6194 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
6195 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
6196 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
6197 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
6198 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
6199 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
6200 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
6201 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
6202 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
6203 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
6204 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
6205 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
6206 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6207 Ditto.
6208 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6209 Ditto.
6210 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6211 Ditto.
6212 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6213 Ditto.
6214 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6215 Ditto.
6216 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
6217 Ditto.
6218 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
6219 Ditto.
6220 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
6221 Ditto.
6222 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
6223 Ditto.
6224 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
6225 Ditto.
6226 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
6227 Ditto.
6228 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
6229 Ditto.
6230 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
6231 Ditto.
6232 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
6233 Ditto.
6234 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
6235 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
6236 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
6237 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
6238 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6239 Likewise and also add 'dg-do run'.
6240 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6241 Ditto.
6242
6243 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
6244 Tobias Burnus <tobias@codesourcery.com>
6245
6246 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
6247 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
6248 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
6249
6250 2019-10-14 Jakub Jelinek <jakub@redhat.com>
6251
6252 PR libgomp/92081
6253 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
6254 than 0.
6255
6256 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
6257
6258 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
6259 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
6260
6261 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
6262
6263 PR middle-end/92036
6264 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
6265 file.
6266
6267 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
6268
6269 PR testsuite/91884
6270 * testsuite/libgomp.fortran/fortran.exp: Conditionally
6271 add -lquadmath.
6272 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
6273
6274 2019-10-09 Jakub Jelinek <jakub@redhat.com>
6275
6276 PR libgomp/92028
6277 * target.c (gomp_map_vars_internal): Readd the previous
6278 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
6279 though do that just in the !not_found_cnt case.
6280
6281 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
6282
6283 * gfortran.dg/gomp/target-simd.f90: New.
6284
6285 2019-10-02 Julian Brown <julian@codesourcery.com>
6286 Cesar Philippidis <cesar@codesourcery.com>
6287
6288 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
6289 * target.c (FIELD_TGT_EMPTY): Define.
6290 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
6291 as switch instead of list of ifs.
6292 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
6293
6294 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
6295
6296 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
6297 include. Replace alloca () with __builtin_alloca ().
6298 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
6299
6300 2019-10-01 Jakub Jelinek <jakub@redhat.com>
6301
6302 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
6303 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
6304 * oacc-parallel.c: Don't include "libgomp_g.h".
6305 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
6306 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
6307 * aclocal.m4: Regenerated.
6308 * config.h.in: Regenerated.
6309 * configure: Regenerated.
6310 * Makefile.in: Regenerated.
6311
6312 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
6313
6314 * libgomp_g.h: Include stdint.h instead of gstdint.h.
6315
6316 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
6317
6318 * configure: Regenerate.
6319
6320 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
6321
6322 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
6323 string is initialized.
6324
6325 2019-09-06 Florian Weimer <fweimer@redhat.com>
6326
6327 * configure: Regenerate.
6328
6329 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
6330
6331 PR other/79543
6332 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
6333 scanning to conform to the GNU Coding Standards.
6334 * configure: Regenerate.
6335
6336 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6337
6338 PR libgomp/91530
6339 * testsuite/libgomp.c/scan-21.c: New test.
6340 * testsuite/libgomp.c/scan-22.c: New test.
6341
6342 2019-08-27 Jakub Jelinek <jakub@redhat.com>
6343
6344 PR libgomp/91530
6345 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
6346 targets.
6347 * testsuite/libgomp.c/scan-12.c: Likewise.
6348 * testsuite/libgomp.c/scan-13.c: Likewise.
6349 * testsuite/libgomp.c/scan-14.c: Likewise.
6350 * testsuite/libgomp.c/scan-15.c: Likewise.
6351 * testsuite/libgomp.c/scan-16.c: Likewise.
6352 * testsuite/libgomp.c/scan-17.c: Likewise.
6353 * testsuite/libgomp.c/scan-18.c: Likewise.
6354 * testsuite/libgomp.c/scan-19.c: Likewise.
6355 * testsuite/libgomp.c/scan-20.c: Likewise.
6356 * testsuite/libgomp.c++/scan-9.C: Likewise.
6357 * testsuite/libgomp.c++/scan-10.C: Likewise.
6358 * testsuite/libgomp.c++/scan-11.C: Likewise.
6359 * testsuite/libgomp.c++/scan-12.C: Likewise.
6360 * testsuite/libgomp.c++/scan-14.C: Likewise.
6361 * testsuite/libgomp.c++/scan-15.C: Likewise.
6362 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
6363 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
6364 * testsuite/libgomp.c++/scan-16.C: Likewise.
6365
6366 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
6367
6368 PR fortran/91473
6369 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
6370 -std=legacy so invalid code in the test case is accepted.
6371
6372 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
6373
6374 PR fortran/91422
6375 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
6376 dimension.
6377
6378 2019-08-08 Jakub Jelinek <jakub@redhat.com>
6379
6380 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
6381 perform the lookup in the first loop only if !not_found_cnt, otherwise
6382 perform lookups for it in the second loop guarded with
6383 if (not_found_cnt || has_firstprivate).
6384 * testsuite/libgomp.c/target-37.c: New test.
6385 * testsuite/libgomp.c++/target-22.C: New test.
6386
6387 2019-08-07 Jakub Jelinek <jakub@redhat.com>
6388
6389 * testsuite/libgomp.c/target-18.c (struct S): New type.
6390 (foo): Use use_device_addr clause instead of use_device_ptr clause
6391 where required by OpenMP 5.0, add further tests for both use_device_ptr
6392 and use_device_addr clauses.
6393 * testsuite/libgomp.c++/target-9.C (struct S): New type.
6394 (foo): Use use_device_addr clause instead of use_device_ptr clause
6395 where required by OpenMP 5.0, add further tests for both use_device_ptr
6396 and use_device_addr clauses. Add t and u arguments.
6397 (main): Adjust caller.
6398
6399 2019-08-06 Jakub Jelinek <jakub@redhat.com>
6400
6401 * testsuite/libgomp.c++/loop-13.C: New test.
6402 * testsuite/libgomp.c++/loop-14.C: New test.
6403 * testsuite/libgomp.c++/loop-15.C: New test.
6404
6405 2019-07-31 Jakub Jelinek <jakub@redhat.com>
6406
6407 PR middle-end/91301
6408 * testsuite/libgomp.c++/for-27.C: New test.
6409
6410 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
6411
6412 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
6413 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
6414
6415 2019-07-20 Jakub Jelinek <jakub@redhat.com>
6416
6417 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
6418
6419 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6420
6421 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
6422 * testsuite/libgomp.c++/scan-16.C: Likewise.
6423
6424 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6425
6426 * testsuite/libgomp.c/scan-19.c: New test.
6427 * testsuite/libgomp.c/scan-20.c: New test.
6428
6429 * testsuite/libgomp.c/scan-11.c: New test.
6430 * testsuite/libgomp.c/scan-12.c: New test.
6431 * testsuite/libgomp.c/scan-13.c: New test.
6432 * testsuite/libgomp.c/scan-14.c: New test.
6433 * testsuite/libgomp.c/scan-15.c: New test.
6434 * testsuite/libgomp.c/scan-16.c: New test.
6435 * testsuite/libgomp.c/scan-17.c: New test.
6436 * testsuite/libgomp.c/scan-18.c: New test.
6437 * testsuite/libgomp.c++/scan-9.C: New test.
6438 * testsuite/libgomp.c++/scan-10.C: New test.
6439 * testsuite/libgomp.c++/scan-11.C: New test.
6440 * testsuite/libgomp.c++/scan-12.C: New test.
6441 * testsuite/libgomp.c++/scan-13.C: New test.
6442 * testsuite/libgomp.c++/scan-14.C: New test.
6443 * testsuite/libgomp.c++/scan-15.C: New test.
6444 * testsuite/libgomp.c++/scan-16.C: New test.
6445
6446 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6447
6448 * testsuite/libgomp.c/scan-9.c: New test.
6449 * testsuite/libgomp.c/scan-10.c: New test.
6450
6451 2019-07-03 Jakub Jelinek <jakub@redhat.com>
6452
6453 * testsuite/libgomp.c++/scan-1.C: New test.
6454 * testsuite/libgomp.c++/scan-2.C: New test.
6455 * testsuite/libgomp.c++/scan-3.C: New test.
6456 * testsuite/libgomp.c++/scan-4.C: New test.
6457 * testsuite/libgomp.c++/scan-5.C: New test.
6458 * testsuite/libgomp.c++/scan-6.C: New test.
6459 * testsuite/libgomp.c++/scan-7.C: New test.
6460 * testsuite/libgomp.c++/scan-8.C: New test.
6461 * testsuite/libgomp.c/scan-1.c: New test.
6462 * testsuite/libgomp.c/scan-2.c: New test.
6463 * testsuite/libgomp.c/scan-3.c: New test.
6464 * testsuite/libgomp.c/scan-4.c: New test.
6465 * testsuite/libgomp.c/scan-5.c: New test.
6466 * testsuite/libgomp.c/scan-6.c: New test.
6467 * testsuite/libgomp.c/scan-7.c: New test.
6468 * testsuite/libgomp.c/scan-8.c: New test.
6469
6470 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
6471
6472 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
6473 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
6474 Likewise.
6475
6476 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
6477 check.
6478
6479 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
6480
6481 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
6482 file.
6483
6484 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
6485
6486 PR fortran/90743
6487 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
6488 case.
6489 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
6490 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
6491 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
6492 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
6493
6494 PR testsuite/90861
6495 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
6496
6497 PR middle-end/90862
6498 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
6499
6500 2019-06-16 Tom de Vries <tdevries@suse.de>
6501
6502 PR tree-optimization/89376
6503 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
6504
6505 2019-06-15 Tom de Vries <tdevries@suse.de>
6506
6507 PR tree-optimization/89713
6508 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
6509 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
6510
6511 2019-06-15 Jakub Jelinek <jakub@redhat.com>
6512
6513 PR middle-end/90779
6514 * testsuite/libgomp.c/pr90779.c: New test.
6515 * testsuite/libgomp.fortran/pr90779.f90: New test.
6516
6517 2019-06-15 Tom de Vries <tdevries@suse.de>
6518
6519 PR tree-optimization/90009
6520 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
6521
6522 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
6523
6524 PR tree-optimization/89713
6525 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
6526
6527 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6528
6529 PR target/90811
6530 * testsuite/libgomp.c/pr90811.c: New test.
6531
6532 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6533
6534 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
6535 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
6536
6537 2019-06-04 Jakub Jelinek <jakub@redhat.com>
6538
6539 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
6540 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
6541 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
6542 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
6543
6544 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6545
6546 * configure.ac: Call AX_COUNT_CPUS.
6547 Substitute CPU_COUNT.
6548 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
6549 count fallback.
6550 * aclocal.m4: Regenerate.
6551 * configure: Regenerate.
6552 * Makefile.in, testsuite/Makefile.in: Regenerate.
6553
6554 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6555
6556 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
6557 to ...
6558 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
6559 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
6560 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
6561
6562 2019-05-27 Jakub Jelinek <jakub@redhat.com>
6563
6564 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
6565
6566 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
6567
6568 PR libgomp/90641
6569 * work.c (gomp_init_work_share): Instead of aligning final ordered
6570 value to multiples of long long alignment, align to that the
6571 first part (ordered team ids) and if inline_ordered_team_ids
6572 is not on a long long alignment boundary within the structure,
6573 use __alignof__ (long long) - 1 pad size always.
6574 * loop.c (GOMP_loop_start): Fix *mem computation if
6575 inline_ordered_team_ids is not aligned on long long alignment boundary
6576 within the structure.
6577 * loop-ull.c (GOMP_loop_ull_start): Likewise.
6578 * sections.c (GOMP_sections2_start): Likewise.
6579
6580 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6581
6582 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
6583 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
6584
6585 PR libgomp/90585
6586 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
6587 HAVE_INTTYPES_H is defined.
6588 (print_uint64_t): New typedef.
6589 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
6590 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
6591 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
6592 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
6593 before casting to void *.
6594 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
6595 * oacc-mem.c: Don't include config.h nor stdint.h.
6596 * target.c: Don't include config.h.
6597 * oacc-cuda.c: Likewise.
6598 * oacc-host.c: Don't include stdint.h.
6599
6600 2019-05-20 Jakub Jelinek <jakub@redhat.com>
6601
6602 PR libgomp/90527
6603 * alloc.c (_GNU_SOURCE): Define.
6604
6605 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
6606
6607 * acc_prof.h: New file.
6608 * oacc-profiling.c: Likewise.
6609 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
6610 Add these, respectively.
6611 * Makefile.in: Regenerate.
6612 * env.c (initialize_env): Call goacc_profiling_initialize.
6613 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
6614 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
6615 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
6616 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
6617 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
6618 acc_prof_register, acc_prof_unregister, and acc_register_library.
6619 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
6620 GOMP_PLUGIN_goacc_thread.
6621 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
6622 prof_callbacks_enabled members.
6623 (goacc_prof_enabled, goacc_profiling_initialize)
6624 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
6625 (goacc_profiling_dispatch): Declare.
6626 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
6627 (GOACC_PROFILING_SETUP_P): Define.
6628 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
6629 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
6630 OpenACC Profiling Interface.
6631 * oacc-cuda.c (acc_get_current_cuda_device)
6632 (acc_get_current_cuda_context, acc_get_cuda_stream)
6633 (acc_set_cuda_stream): Likewise.
6634 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
6635 (acc_init, acc_set_device_type, acc_get_device_type)
6636 (acc_get_device_num, goacc_lazy_initialize): Likewise.
6637 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
6638 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
6639 (acc_unmap_data, present_create_copy, delete_copyout)
6640 (update_dev_host): Likewise.
6641 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
6642 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
6643 Likewise.
6644 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
6645 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
6646 Likewise.
6647 * libgomp.texi: Update.
6648 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
6649 file.
6650 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
6651 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
6652 Likewise.
6653 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
6654 Likewise.
6655 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
6656 Likewise.
6657 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
6658 Likewise.
6659
6660 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
6661
6662 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
6663 (struct goacc_asyncqueue_list): Likewise.
6664 (goacc_aq): Likewise.
6665 (goacc_aq_list): Likewise.
6666 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6667 (GOMP_OFFLOAD_openacc_async_test): Remove.
6668 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6669 (GOMP_OFFLOAD_openacc_async_wait): Remove.
6670 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6671 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6672 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6673 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6674 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
6675 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
6676 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
6677 (GOMP_OFFLOAD_openacc_async_exec): Declare.
6678 (GOMP_OFFLOAD_openacc_async_construct): Declare.
6679 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
6680 (GOMP_OFFLOAD_openacc_async_test): Declare.
6681 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
6682 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
6683 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
6684 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
6685 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
6686
6687 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
6688 (gomp_acc_insert_pointer): Adjust declaration.
6689 (gomp_copy_host2dev): New declaration.
6690 (gomp_copy_dev2host): Likewise.
6691 (gomp_map_vars_async): Likewise.
6692 (gomp_unmap_tgt): Likewise.
6693 (gomp_unmap_vars_async): Likewise.
6694 (gomp_fini_device): Likewise.
6695
6696 * oacc-async.c (get_goacc_thread): New function.
6697 (get_goacc_thread_device): New function.
6698 (lookup_goacc_asyncqueue): New function.
6699 (get_goacc_asyncqueue): New function.
6700 (acc_async_test): Adjust code to use new async design.
6701 (acc_async_test_all): Likewise.
6702 (acc_wait): Likewise.
6703 (acc_wait_async): Likewise.
6704 (acc_wait_all): Likewise.
6705 (acc_wait_all_async): Likewise.
6706 (goacc_async_free): New function.
6707 (goacc_init_asyncqueues): Likewise.
6708 (goacc_fini_asyncqueues): Likewise.
6709 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
6710 design.
6711 (acc_set_cuda_stream): Likewise.
6712 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
6713 (host_openacc_register_async_cleanup): Remove.
6714 (host_openacc_async_exec): New function.
6715 (host_openacc_async_test): Adjust parameters.
6716 (host_openacc_async_test_all): Remove.
6717 (host_openacc_async_wait): Remove.
6718 (host_openacc_async_wait_async): Remove.
6719 (host_openacc_async_wait_all): Remove.
6720 (host_openacc_async_wait_all_async): Remove.
6721 (host_openacc_async_set_async): Remove.
6722 (host_openacc_async_synchronize): New function.
6723 (host_openacc_async_serialize): New function.
6724 (host_openacc_async_host2dev): New function.
6725 (host_openacc_async_dev2host): New function.
6726 (host_openacc_async_queue_callback): New function.
6727 (host_openacc_async_construct): New function.
6728 (host_openacc_async_destruct): New function.
6729 (struct gomp_device_descr host_dispatch): Remove initialization of old
6730 interface, add initialization of new async sub-struct.
6731 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
6732 (goacc_attach_host_thread_to_device): Remove old async code usage.
6733 * oacc-int.h (goacc_init_asyncqueues): New declaration.
6734 (goacc_fini_asyncqueues): Likewise.
6735 (goacc_async_copyout_unmap_vars): Likewise.
6736 (goacc_async_free): Likewise.
6737 (get_goacc_asyncqueue): Likewise.
6738 (lookup_goacc_asyncqueue): Likewise.
6739 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
6740 design.
6741 (present_create_copy): Adjust code to use new async design.
6742 (delete_copyout): Likewise.
6743 (update_dev_host): Likewise.
6744 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
6745 async design.
6746 (gomp_acc_remove_pointer): Adjust code to use new async design.
6747 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
6748 design.
6749 (GOACC_enter_exit_data): Likewise.
6750 (goacc_wait): Likewise.
6751 (GOACC_update): Likewise.
6752 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
6753 when called, warn as obsolete in comment.
6754 * target.c (goacc_device_copy_async): New function.
6755 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
6756 add goacc_device_copy_async case.
6757 (gomp_copy_dev2host): Likewise.
6758 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
6759 (gomp_map_pointer): Likewise.
6760 (gomp_map_fields_existing): Likewise.
6761 (gomp_map_vars_internal): New always_inline function, renamed from
6762 gomp_map_vars.
6763 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
6764 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
6765 passing goacc_asyncqueue argument.
6766 (gomp_unmap_tgt): Remove static, add attribute_hidden.
6767 (gomp_unref_tgt): New function.
6768 (gomp_unmap_vars_internal): New always_inline function, renamed from
6769 gomp_unmap_vars.
6770 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
6771 (gomp_unmap_vars_async): Implement by calling
6772 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
6773 (gomp_fini_device): New function.
6774 (gomp_exit_data): Adjust gomp_copy_dev2host call.
6775 (gomp_load_plugin_for_device): Remove old interface, adjust to load
6776 new async interface.
6777 (gomp_target_fini): Adjust code to call gomp_fini_device.
6778
6779 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
6780 (struct ptx_stream): Remove.
6781 (struct nvptx_thread): Remove current_stream field.
6782 (cuda_map_create): Remove.
6783 (cuda_map_destroy): Remove.
6784 (map_init): Remove.
6785 (map_fini): Remove.
6786 (map_pop): Remove.
6787 (map_push): Remove.
6788 (struct goacc_asyncqueue): Define.
6789 (struct nvptx_callback): Define.
6790 (struct ptx_free_block): Define.
6791 (struct ptx_device): Remove null_stream, active_streams, async_streams,
6792 stream_lock, and next fields.
6793 (enum ptx_event_type): Remove.
6794 (struct ptx_event): Remove.
6795 (ptx_event_lock): Remove.
6796 (ptx_events): Remove.
6797 (init_streams_for_device): Remove.
6798 (fini_streams_for_device): Remove.
6799 (select_stream_for_async): Remove.
6800 (nvptx_init): Remove ptx_events and ptx_event_lock references.
6801 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
6802 case.
6803 (nvptx_open_device): Add free_blocks initialization, remove
6804 init_streams_for_device call.
6805 (nvptx_close_device): Remove fini_streams_for_device call, add
6806 free_blocks destruct code.
6807 (event_gc): Remove.
6808 (event_add): Remove.
6809 (nvptx_exec): Adjust parameters and code.
6810 (nvptx_free): Likewise.
6811 (nvptx_host2dev): Remove.
6812 (nvptx_dev2host): Remove.
6813 (nvptx_set_async): Remove.
6814 (nvptx_async_test): Remove.
6815 (nvptx_async_test_all): Remove.
6816 (nvptx_wait): Remove.
6817 (nvptx_wait_async): Remove.
6818 (nvptx_wait_all): Remove.
6819 (nvptx_wait_all_async): Remove.
6820 (nvptx_get_cuda_stream): Remove.
6821 (nvptx_set_cuda_stream): Remove.
6822 (GOMP_OFFLOAD_alloc): Adjust code.
6823 (GOMP_OFFLOAD_free): Likewise.
6824 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
6825 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
6826 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
6827 (GOMP_OFFLOAD_openacc_async_wait): Remove.
6828 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
6829 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
6830 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
6831 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
6832 (cuda_free_argmem): New function.
6833 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
6834 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
6835 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
6836 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
6837 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
6838 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
6839 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
6840 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
6841 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
6842 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
6843 (cuda_callback_wrapper): New function.
6844 (cuda_memcpy_sanity_check): New function.
6845 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
6846 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
6847 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
6848 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
6849
6850 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
6851
6852 PR target/87835
6853 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
6854
6855 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
6856
6857 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
6858
6859 2019-03-27 Kevin Buettner <kevinb@redhat.com>
6860
6861 * team.c (gomp_team_start): Initialize pool->threads[0].
6862
6863 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6864
6865 * testsuite/libgomp.oacc-c++/c++.exp: Specify
6866 "-foffload=$offload_target".
6867 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6868 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6869 * testsuite/lib/libgomp.exp
6870 (check_effective_target_openacc_nvidia_accel_configured): Remove,
6871 as (conceptually) merged into
6872 check_effective_target_openacc_nvidia_accel_selected. Adjust all
6873 users.
6874
6875 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
6876 * testsuite/libgomp-test-support.exp.in: Adjust.
6877 * testsuite/lib/libgomp.exp: Likewise. Don't populate
6878 openacc_device_types_s.
6879 (offload_target_to_openacc_device_type): New proc.
6880 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
6881 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6882 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6883 * Makefile.in: Regenerate.
6884 * configure: Likewise.
6885 * testsuite/Makefile.in: Likewise.
6886
6887 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
6888 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
6889 instead of OFFLOAD_TARGETS.
6890 * target.c (gomp_target_init): Adjust.
6891 * testsuite/libgomp-test-support.exp.in: Likewise.
6892 * testsuite/lib/libgomp.exp: Likewise. Populate
6893 openacc_device_types_s instead of offload_targets_s_openacc.
6894 (check_effective_target_openacc_nvidia_accel_selected)
6895 (check_effective_target_openacc_host_selected): Adjust.
6896 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6897 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6898 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6899 * Makefile.in: Regenerate.
6900 * config.h.in: Likewise.
6901 * configure: Likewise.
6902 * testsuite/Makefile.in: Likewise.
6903
6904 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
6905 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
6906 "offloading: supported, but hardware not accessible".
6907 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6908 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6909
6910 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
6911
6912 PR c/87924
6913 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
6914 goacc_wait().
6915 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
6916 and related adjustment.
6917
6918 2019-01-30 Jakub Jelinek <jakub@redhat.com>
6919
6920 PR c++/88988
6921 * testsuite/libgomp.c++/pr88988.C: New test.
6922
6923 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6924
6925 PR middle-end/89002
6926 * testsuite/libgomp.c/pr89002.c: New test.
6927
6928 2019-01-28 Richard Biener <rguenther@suse.de>
6929
6930 PR testsuite/89064
6931 PR tree-optimization/86865
6932 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
6933
6934 2019-01-24 Tom de Vries <tdevries@suse.de>
6935
6936 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
6937 once instantiated_devices drops to 0.
6938
6939 2019-01-23 Tom de Vries <tdevries@suse.de>
6940
6941 PR target/PR88946
6942 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
6943 cuMemFree.
6944 (nvptx_exec): Don't call map_push if mapnum == 0.
6945 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
6946
6947 2019-01-23 Tom de Vries <tdevries@suse.de>
6948
6949 PR target/88941
6950 PR target/88939
6951 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
6952 (map_fini): Remove "assert (!s->map->active)".
6953 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
6954
6955 2019-01-23 Tom de Vries <tdevries@suse.de>
6956
6957 PR target/87835
6958 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
6959 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
6960
6961 2019-01-15 Tom de Vries <tdevries@suse.de>
6962
6963 PR target/80547
6964 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
6965 New test.
6966
6967 2019-01-12 Tom de Vries <tdevries@suse.de>
6968
6969 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
6970 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
6971 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
6972 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
6973
6974 2019-01-12 Tom de Vries <tdevries@suse.de>
6975
6976 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
6977
6978 2019-01-12 Tom de Vries <tdevries@suse.de>
6979
6980 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
6981 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
6982 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
6983
6984 2019-01-12 Tom de Vries <tdevries@suse.de>
6985
6986 PR target/85486
6987 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
6988 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
6989
6990 2019-01-12 Tom de Vries <tdevries@suse.de>
6991
6992 PR target/85381
6993 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
6994 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
6995
6996 2019-01-12 Tom de Vries <tdevries@suse.de>
6997
6998 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
6999 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
7000 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
7001
7002 2019-01-12 Tom de Vries <tdevries@suse.de>
7003
7004 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
7005 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
7006 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
7007
7008 2019-01-12 Tom de Vries <tdevries@suse.de>
7009
7010 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
7011 resources diagnostic.
7012
7013 2019-01-12 Tom de Vries <tdevries@suse.de>
7014
7015 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
7016 vector length to be 128.
7017 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
7018 length 2097152 to be reduced to 1024 instead of 32.
7019
7020 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
7021 James Norris <jnorris@codesourcery.com>
7022
7023 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
7024 Library Routines", and "Environment Variables".
7025
7026 2019-01-11 Tom de Vries <tdevries@suse.de>
7027
7028 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
7029 num_workers 16.
7030
7031 2019-01-11 Tom de Vries <tdevries@suse.de>
7032
7033 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
7034 -foffload=-w.
7035 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
7036 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
7037 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
7038 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
7039
7040 2019-01-11 Tom de Vries <tdevries@suse.de>
7041
7042 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
7043 test.
7044
7045 2019-01-10 Nathan Sidwell <nathan@acm.org>
7046 Julian Brown <julian@codesourcery.com>
7047
7048 PR lto/71959
7049 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
7050 * testsuite/libgomp.oacc-c++/pr71959.C: New.
7051
7052 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7053
7054 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
7055 and paste code.
7056
7057 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
7058
7059 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
7060 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7061 write.
7062
7063 2019-01-09 Tom de Vries <tdevries@suse.de>
7064
7065 PR target/88756
7066 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
7067 #define instead of "const int".
7068 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
7069 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
7070 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
7071 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
7072
7073 2019-01-09 Tom de Vries <tdevries@suse.de>
7074
7075 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
7076 one worker.
7077
7078 2019-01-07 Tom de Vries <tdevries@suse.de>
7079
7080 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
7081 GOMP_OPENACC_DIM argument.
7082
7083 2019-01-03 Tom de Vries <tdevries@suse.de>
7084
7085 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
7086 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
7087
7088 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7089
7090 Update copyright years.
7091
7092 2019-01-01 Jakub Jelinek <jakub@redhat.com>
7093
7094 * libgomp.texi: Bump @copying's copyright year.
7095
7096 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7097
7098 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
7099 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
7100 (GOACC_declare): Redefine the "device" argument to "flags".
7101
7102 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
7103 Cesar Philippidis <cesar@codesourcery.com>
7104
7105 * target.c (struct gomp_coalesce_chunk): New structure.
7106 (struct gomp_coalesce_buf): Update the chunks member to use that
7107 type. Adjust all users.
7108
7109 2018-12-19 Tom de Vries <tdevries@suse.de>
7110
7111 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
7112 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
7113 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
7114
7115 2018-12-19 Tom de Vries <tdevries@suse.de>
7116
7117 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
7118 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
7119 gcc/testsuite/gcc.dg/goacc.
7120 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
7121
7122 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7123 Chung-Lin Tang <cltang@codesourcery.com>
7124
7125 * oacc-mem.c (acc_present_or_create): Remove definition and change
7126 to alias of acc_create.
7127 (acc_present_or_copyin): Remove definition and change to alias of
7128 acc_copyin.
7129 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
7130 of acc_present_or_create.
7131 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
7132 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7133 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7134 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7135 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7136 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7137 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7138 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7139 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7140 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7141 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7142 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7143 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7144 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7145 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7146 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7147
7148 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7149
7150 PR libgomp/88495
7151 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
7152 "identical parameters".
7153 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
7154 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
7155
7156 PR libgomp/88484
7157 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
7158 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
7159
7160 PR libgomp/88407
7161 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
7162 (nvptx_wait_async): Unseen async-argument is a no-op.
7163 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
7164 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
7165 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7166 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7167 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
7168 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
7169 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
7170 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
7171 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
7172
7173 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
7174 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7175
7176 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
7177
7178 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
7179 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7180 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7181
7182 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
7183
7184 PR libgomp/88370
7185 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
7186 (acc_set_cuda_stream): Clarify.
7187 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
7188 "async_valid_p".
7189 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
7190 acc_async_sync".
7191 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
7192 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
7193 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
7194 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7195
7196 2018-12-14 Tom de Vries <tdevries@suse.de>
7197
7198 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
7199 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
7200 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
7201 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
7202 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
7203
7204 2018-12-13 Tom de Vries <tdevries@suse.de>
7205
7206 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
7207 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
7208 * fortran.c (omp_display_affinity_): ... here.
7209 * libgomp.h (gomp_print_string): Declare.
7210 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
7211 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
7212 write.
7213
7214 2018-12-13 Jakub Jelinek <jakub@redhat.com>
7215
7216 PR libgomp/88460
7217 * testsuite/libgomp.c++/for-24.C (results): Include it in
7218 omp declare target region.
7219 (main): Use map (always, tofrom: results) instead of
7220 map (tofrom: results).
7221
7222 2018-12-12 Jakub Jelinek <jakub@redhat.com>
7223
7224 PR fortran/88463
7225 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
7226 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
7227
7228 * testsuite/libgomp.c-c++-common/for-16.c: New test.
7229
7230 2018-12-12 Andreas Schwab <schwab@suse.de>
7231
7232 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
7233 clobbered.
7234
7235 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
7236
7237 PR fortran/88411
7238 * testsuite/libgomp.fortran/async_io_8.f90: New test.
7239
7240 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
7241 Jakub Jelinek <jakub@redhat.com>
7242
7243 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
7244 devicep->host2dev_func.
7245
7246 2018-12-08 Jakub Jelinek <jakub@redhat.com>
7247
7248 PR libgomp/87995
7249 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
7250 tls_runtime effective target.
7251 (t): New threadprivate variable.
7252 (main): Set t in threads which execute iterations of the worksharing
7253 loop. Propagate that to the task after the loop and don't abort
7254 if the current taskgroup hasn't been cancelled.
7255
7256 2018-12-02 Jakub Jelinek <jakub@redhat.com>
7257
7258 * testsuite/libgomp.c/task-reduction-3.c: New test.
7259
7260 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
7261
7262 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
7263
7264 PR libgomp/88288
7265 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
7266 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
7267
7268 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
7269
7270 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
7271
7272 2018-10-19 Richard Biener <rguenther@suse.de>
7273
7274 PR tree-optimization/88182
7275 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
7276
7277 2018-11-26 Jakub Jelinek <jakub@redhat.com>
7278
7279 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
7280 (RUNTEST): Don't define.
7281 (RUNTESTDEFAULTFLAGS): Add.
7282 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
7283 (distclean-am): Depend on distclean-DEJAGNU.
7284 (check-am): If -j% option is present in MFLAGS and if
7285 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
7286 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
7287 * testsuite/Makefile.in: Regenerated.
7288
7289 2018-11-26 Richard Biener <rguenther@suse.de>
7290
7291 PR tree-optimization/88182
7292 * testsuite/libgomp.c++/pr88182.C: New testcase.
7293
7294 2018-11-20 Jakub Jelinek <jakub@redhat.com>
7295
7296 PR bootstrap/88106
7297 * config/mingw32/affinity-fmt.c: New file.
7298
7299 2018-11-09 Jakub Jelinek <jakub@redhat.com>
7300
7301 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
7302 (gomp_display_affinity): Use __builtin_choose_expr to handle
7303 properly handle argument having integral, or pointer or some other
7304 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
7305 with uint64_t type instead of %llx and unsigned long long.
7306
7307 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
7308 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
7309
7310 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7311
7312 * affinity.c: Include <string.h>, <stdio.h>.
7313 (gomp_display_affinity_place): Remove cpusetp.
7314 * teams.c: Include <limits.h>.
7315
7316 2018-11-08 Jakub Jelinek <jakub@redhat.com>
7317
7318 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
7319 in_reduction clause for s[0].
7320
7321 * affinity.c (gomp_display_affinity_place): New function.
7322 * affinity-fmt.c: New file.
7323 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
7324 * config/linux/affinity.c (gomp_display_affinity_place): New function.
7325 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
7326 Move these functions to ...
7327 * config/nvptx/teams.c: ... here. New file.
7328 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
7329 New functions.
7330 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
7331 functions.
7332 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
7333 and _aligned_malloc.
7334 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
7335 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
7336 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
7337 gomp_affinity_format_len): New variables.
7338 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
7339 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
7340 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
7341 modifiers. Display (non-default) chunk sizes. Print
7342 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
7343 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
7344 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
7345 * fortran.c: Include stdio.h and string.h.
7346 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
7347 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
7348 (omp_set_affinity_format_, omp_get_affinity_format_,
7349 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
7350 omp_pause_resource_all_): New functions.
7351 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
7352 switch.
7353 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
7354 functions to ...
7355 * teams.c: ... here. New file.
7356 * libgomp_g.h: Include gstdint.h.
7357 (GOMP_loop_nonmonotonic_runtime_start,
7358 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
7359 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
7360 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
7361 GOMP_parallel_loop_nonmonotonic_runtime,
7362 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7363 GOMP_loop_ull_nonmonotonic_runtime_start,
7364 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
7365 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
7366 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7367 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
7368 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
7369 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7370 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7371 GOMP_teams_reg): Declare.
7372 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
7373 gomp_aligned_alloc uses fallback implementation.
7374 (gomp_aligned_alloc, gomp_aligned_free): Declare.
7375 (enum gomp_schedule_type): Add GFS_MONOTONIC.
7376 (struct gomp_doacross_work_share): Add extra field.
7377 (struct gomp_work_share): Add task_reductions field.
7378 (struct gomp_taskgroup): Add workshare and reductions fields.
7379 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
7380 (gomp_thread_handle): New typedef.
7381 (gomp_display_affinity_place, gomp_set_affinity_format,
7382 gomp_display_string, gomp_display_affinity,
7383 gomp_display_affinity_thread): Declare.
7384 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
7385 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
7386 gomp_workshare_task_reduction_register): Declare.
7387 (gomp_team_start): Add taskgroup argument.
7388 (gomp_pause_host): Declare.
7389 (gomp_init_work_share, gomp_work_share_start): Change bool argument
7390 to size_t.
7391 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
7392 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
7393 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
7394 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7395 GOMP_loop_ull_doacross_start,
7396 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
7397 GOMP_loop_maybe_nonmonotonic_runtime_next,
7398 GOMP_loop_maybe_nonmonotonic_runtime_start,
7399 GOMP_loop_nonmonotonic_runtime_next,
7400 GOMP_loop_nonmonotonic_runtime_start,
7401 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7402 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7403 GOMP_loop_ull_nonmonotonic_runtime_next,
7404 GOMP_loop_ull_nonmonotonic_runtime_start,
7405 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7406 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
7407 GOMP_taskgroup_reduction_register,
7408 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7409 GOMP_teams_reg and GOMP_taskwait_depend.
7410 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
7411 omp_{capture,display}_affinity{,_}, and
7412 omp_[gs]et_affinity_format{,_}.
7413 * loop.c: Include string.h.
7414 (GOMP_loop_runtime_next): Add ialias.
7415 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7416 (gomp_loop_static_start, gomp_loop_dynamic_start,
7417 gomp_loop_guided_start, gomp_loop_ordered_static_start,
7418 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7419 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
7420 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
7421 or gomp_doacross_init callers.
7422 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
7423 GOMP_loop_doacross_start): New functions.
7424 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7425 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
7426 Mask off GFS_MONOTONIC bit.
7427 (GOMP_loop_maybe_nonmonotonic_runtime_next,
7428 GOMP_loop_maybe_nonmonotonic_runtime_start,
7429 GOMP_loop_nonmonotonic_runtime_next,
7430 GOMP_loop_nonmonotonic_runtime_start,
7431 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
7432 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
7433 functions.
7434 (gomp_parallel_loop_start): Pass NULL as taskgroup to
7435 gomp_team_start.
7436 * loop_ull.c: Include string.h.
7437 (GOMP_loop_ull_runtime_next): Add ialias.
7438 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7439 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
7440 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
7441 gomp_loop_ull_ordered_dynamic_start,
7442 gomp_loop_ull_ordered_guided_start,
7443 gomp_loop_ull_doacross_static_start,
7444 gomp_loop_ull_doacross_dynamic_start,
7445 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
7446 and gomp_doacross_ull_init callers.
7447 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
7448 GOMP_loop_ull_doacross_start): New functions.
7449 (GOMP_loop_ull_runtime_start,
7450 GOMP_loop_ull_ordered_runtime_start,
7451 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
7452 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
7453 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
7454 GOMP_loop_ull_nonmonotonic_runtime_next,
7455 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
7456 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
7457 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
7458 (omp_pause_resource_t, omp_depend_t): New typedefs.
7459 (enum omp_lock_hint_t): Renamed to ...
7460 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
7461 enumerators using numbers and omp_lock_hint_* as their aliases.
7462 (omp_lock_hint_t): New typedef. Rename to ...
7463 (omp_sync_hint_t): ... this.
7464 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
7465 omp_sync_hint_t instead of omp_lock_hint_t.
7466 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7467 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7468 Declare.
7469 (omp_target_is_present, omp_target_disassociate_ptr):
7470 Change first argument from void * to const void *.
7471 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
7472 from void * to const void *.
7473 (omp_target_associate_ptr): Change first and second arguments from
7474 void * to const void *.
7475 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
7476 omp_pause_hard): New parameters.
7477 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7478 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7479 New interfaces.
7480 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
7481 omp_pause_hard): New parameters.
7482 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
7483 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
7484 New externals.
7485 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
7486 EXTRA argument. If not needed to prepare array, if extra is 0,
7487 clear ws->doacross, otherwise allocate just doacross structure and
7488 extra payload. If array is needed, allocate also extra payload.
7489 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
7490 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
7491 doacross == NULL.
7492 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
7493 gomp_team_start.
7494 (GOMP_parallel): Likewise. Formatting fix.
7495 (GOMP_parallel_reductions): New function.
7496 (GOMP_cancellation_point): If taskgroup has workshare
7497 flag set, check cancelled of prev taskgroup if any.
7498 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
7499 on prev taskgroup if any.
7500 * sections.c: Include string.h.
7501 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
7502 (GOMP_sections_start): Adjust gomp_work_share_start caller.
7503 (GOMP_sections2_start): New function.
7504 (GOMP_parallel_sections_start, GOMP_parallel_sections):
7505 Pass NULL as taskgroup to gomp_team_start.
7506 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
7507 gomp_work_share_start callers.
7508 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
7509 If taskgroup has workshare flag set, check cancelled on prev
7510 taskgroup if any. Guard all cancellation tests with
7511 gomp_cancel_var test.
7512 (omp_target_is_present, omp_target_disassociate_ptr):
7513 Change ptr argument from void * to const void *.
7514 (omp_target_memcpy): Change src argument from void * to const void *.
7515 (omp_target_memcpy_rect): Likewise.
7516 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
7517 instead of char * where needed.
7518 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
7519 from void * to const void *.
7520 (omp_pause_resource, omp_pause_resource_all): New functions.
7521 * task.c (gomp_task_handle_depend): Handle new depend array format
7522 in addition to the old. Handle mutexinoutset kinds the same as
7523 inout for now, handle unspecified kinds.
7524 (gomp_create_target_task): If taskgroup has workshare flag set, check
7525 cancelled on prev taskgroup if any. Guard all cancellation tests with
7526 gomp_cancel_var test. Handle new depend array format count in
7527 addition to the old.
7528 (GOMP_task): Likewise. Adjust function comment.
7529 (gomp_task_run_pre): If taskgroup has workshare flag set, check
7530 cancelled on prev taskgroup if any. Guard all cancellation tests with
7531 gomp_cancel_var test.
7532 (GOMP_taskwait_depend): New function.
7533 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
7534 format in addition to the old. Handle mutexinoutset kinds the same as
7535 inout for now, handle unspecified kinds. Fix a function comment typo.
7536 (gomp_taskgroup_init): New function.
7537 (GOMP_taskgroup_start): Use it.
7538 (gomp_reduction_register, gomp_create_artificial_team,
7539 GOMP_taskgroup_reduction_register,
7540 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
7541 gomp_parallel_reduction_register,
7542 gomp_workshare_task_reduction_register,
7543 gomp_workshare_taskgroup_start,
7544 GOMP_workshare_task_reduction_unregister): New functions.
7545 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
7546 check cancelled on prev taskgroup if any. Guard all cancellation
7547 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
7548 by calling GOMP_taskgroup_reduction_register.
7549 * team.c (gomp_thread_attr): Remove comment.
7550 (struct gomp_thread_start_data): Add handle field.
7551 (gomp_thread_start): Call pthread_detach.
7552 (gomp_new_team): Adjust gomp_init_work_share caller.
7553 (gomp_free_pool_helper): Call pthread_detach.
7554 (gomp_team_start): Add taskgroup argument, initialize implicit
7555 tasks' taskgroup field to that. Don't call
7556 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
7557 (gomp_team_end): Determine nesting by thr->ts.level != 0
7558 rather than thr->ts.team != NULL.
7559 (gomp_pause_pool_helper, gomp_pause_host): New functions.
7560 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
7561 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
7562 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
7563 if more than 1 allocate also extra payload at the end of array. Never
7564 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
7565 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
7566 return true instead of ws.
7567 * Makefile.in: Regenerated.
7568 * configure: Regenerated.
7569 * config.h.in: Regenerated.
7570 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
7571 in some cases.
7572 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
7573 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
7574 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
7575 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
7576 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
7577 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
7578 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
7579 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
7580 * testsuite/libgomp.c-c++-common/for-10.c: New test.
7581 * testsuite/libgomp.c-c++-common/for-11.c: New test.
7582 * testsuite/libgomp.c-c++-common/for-12.c: New test.
7583 * testsuite/libgomp.c-c++-common/for-13.c: New test.
7584 * testsuite/libgomp.c-c++-common/for-14.c: New test.
7585 * testsuite/libgomp.c-c++-common/for-15.c: New test.
7586 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
7587 define a different N(test), don't define N(f0) to N(f14), but instead
7588 define N(f20) to N(f34) using != comparisons.
7589 * testsuite/libgomp.c-c++-common/for-7.c: New test.
7590 * testsuite/libgomp.c-c++-common/for-8.c: New test.
7591 * testsuite/libgomp.c-c++-common/for-9.c: New test.
7592 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
7593 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
7594 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
7595 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
7596 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
7597 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
7598 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
7599 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
7600 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
7601 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
7602 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
7603 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
7604 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
7605 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
7606 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
7607 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
7608 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
7609 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
7610 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
7611 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
7612 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
7613 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
7614 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
7615 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
7616 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
7617 * testsuite/libgomp.c++/depend-1.C: New test.
7618 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
7619 * testsuite/libgomp.c++/depobj-1.C: New test.
7620 * testsuite/libgomp.c++/for-16.C: New test.
7621 * testsuite/libgomp.c++/for-21.C: New test.
7622 * testsuite/libgomp.c++/for-22.C: New test.
7623 * testsuite/libgomp.c++/for-23.C: New test.
7624 * testsuite/libgomp.c++/for-24.C: New test.
7625 * testsuite/libgomp.c++/for-25.C: New test.
7626 * testsuite/libgomp.c++/for-26.C: New test.
7627 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
7628 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
7629 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
7630 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
7631 * testsuite/libgomp.c++/task-reduction-10.C: New test.
7632 * testsuite/libgomp.c++/task-reduction-11.C: New test.
7633 * testsuite/libgomp.c++/task-reduction-12.C: New test.
7634 * testsuite/libgomp.c++/task-reduction-13.C: New test.
7635 * testsuite/libgomp.c++/task-reduction-14.C: New test.
7636 * testsuite/libgomp.c++/task-reduction-15.C: New test.
7637 * testsuite/libgomp.c++/task-reduction-16.C: New test.
7638 * testsuite/libgomp.c++/task-reduction-17.C: New test.
7639 * testsuite/libgomp.c++/task-reduction-18.C: New test.
7640 * testsuite/libgomp.c++/task-reduction-19.C: New test.
7641 * testsuite/libgomp.c/task-reduction-1.c: New test.
7642 * testsuite/libgomp.c++/task-reduction-1.C: New test.
7643 * testsuite/libgomp.c/task-reduction-2.c: New test.
7644 * testsuite/libgomp.c++/task-reduction-2.C: New test.
7645 * testsuite/libgomp.c++/task-reduction-3.C: New test.
7646 * testsuite/libgomp.c++/task-reduction-4.C: New test.
7647 * testsuite/libgomp.c++/task-reduction-5.C: New test.
7648 * testsuite/libgomp.c++/task-reduction-6.C: New test.
7649 * testsuite/libgomp.c++/task-reduction-7.C: New test.
7650 * testsuite/libgomp.c++/task-reduction-8.C: New test.
7651 * testsuite/libgomp.c++/task-reduction-9.C: New test.
7652 * testsuite/libgomp.c/teams-1.c: New test.
7653 * testsuite/libgomp.c/teams-2.c: New test.
7654 * testsuite/libgomp.c/thread-limit-4.c: New test.
7655 * testsuite/libgomp.c/thread-limit-5.c: New test.
7656 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
7657
7658 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
7659
7660 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
7661 acc_memcpy_to/from_device functions, now with async parameter.
7662 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
7663 (acc_memcpy_from_device): Likewise.
7664 (acc_memcpy_to_device_async): New API function.
7665 (acc_memcpy_from_device_async): Likewise.
7666 (present_create_copy): Add async parameter and async setting/unsetting.
7667 (acc_create): Adjust present_create_copy call.
7668 (acc_copyin): Likewise.
7669 (acc_present_or_create): Likewise.
7670 (acc_present_or_copyin): Likewise.
7671 (acc_create_async): New API function.
7672 (acc_copyin_async): New API function.
7673 (delete_copyout): Add async parameter and async setting/unsetting.
7674 (acc_delete): Adjust delete_copyout call.
7675 (acc_copyout): Likewise.
7676 (acc_delete_async): New API function.
7677 (acc_copyout_async): Likewise.
7678 (update_dev_host): Add async parameter and async setting/unsetting.
7679 (acc_update_device): Adjust update_dev_host call.
7680 (acc_update_self): Likewise.
7681 (acc_update_device_async): New API function.
7682 (acc_update_self_async): Likewise.
7683 * openacc.h (acc_copyin_async): Declare new API function.
7684 (acc_create_async): Likewise.
7685 (acc_copyout_async): Likewise.
7686 (acc_delete_async): Likewise.
7687 (acc_update_device_async): Likewise.
7688 (acc_update_self_async): Likewise.
7689 (acc_memcpy_to_device_async): Likewise.
7690 (acc_memcpy_from_device_async): Likewise.
7691 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
7692 (acc_copyin_async_64_h): New subroutine.
7693 (acc_copyin_async_array_h): New subroutine.
7694 (acc_create_async_32_h): New subroutine.
7695 (acc_create_async_64_h): New subroutine.
7696 (acc_create_async_array_h): New subroutine.
7697 (acc_copyout_async_32_h): New subroutine.
7698 (acc_copyout_async_64_h): New subroutine.
7699 (acc_copyout_async_array_h): New subroutine.
7700 (acc_delete_async_32_h): New subroutine.
7701 (acc_delete_async_64_h): New subroutine.
7702 (acc_delete_async_array_h): New subroutine.
7703 (acc_update_device_async_32_h): New subroutine.
7704 (acc_update_device_async_64_h): New subroutine.
7705 (acc_update_device_async_array_h): New subroutine.
7706 (acc_update_self_async_32_h): New subroutine.
7707 (acc_update_self_async_64_h): New subroutine.
7708 (acc_update_self_async_array_h): New subroutine.
7709 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
7710 (acc_copyin_async_64_h): New subroutine.
7711 (acc_copyin_async_array_h): New subroutine.
7712 (acc_create_async_32_h): New subroutine.
7713 (acc_create_async_64_h): New subroutine.
7714 (acc_create_async_array_h): New subroutine.
7715 (acc_copyout_async_32_h): New subroutine.
7716 (acc_copyout_async_64_h): New subroutine.
7717 (acc_copyout_async_array_h): New subroutine.
7718 (acc_delete_async_32_h): New subroutine.
7719 (acc_delete_async_64_h): New subroutine.
7720 (acc_delete_async_array_h): New subroutine.
7721 (acc_update_device_async_32_h): New subroutine.
7722 (acc_update_device_async_64_h): New subroutine.
7723 (acc_update_device_async_array_h): New subroutine.
7724 (acc_update_self_async_32_h): New subroutine.
7725 (acc_update_self_async_64_h): New subroutine.
7726 (acc_update_self_async_array_h): New subroutine.
7727 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
7728 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
7729 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
7730 acc_memcpy_to_device_async*, acc_update_device_async*, and
7731 acc_update_self_async* entries.
7732 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
7733 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
7734 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
7735
7736 2018-10-31 Joseph Myers <joseph@codesourcery.com>
7737
7738 PR bootstrap/82856
7739 * Makefile.am: Include multilib.am
7740 (AUTOMAKE_OPTIONS): Add info-in-builddir.
7741 (CLEANFILES): Remove libgomp.info.
7742 * configure.ac: Remove AC_PREREQ.
7743 * testsuite/Makefile.am (RUNTEST): Remove quotes.
7744 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
7745 Regenerate.
7746
7747 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7748 Julian Brown <julian@codesourcery.com>
7749
7750 * testsuite/libgomp.oacc-c++/this.C: New.
7751
7752 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
7753
7754 * plugin/plugin-nvptx.c (struct cuda_map): New.
7755 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
7756 h_tail with (cuda_map *) map.
7757 (cuda_map_create): New function.
7758 (cuda_map_destroy): New function.
7759 (map_init): Update to use a linked list of cuda_map objects.
7760 (map_fini): Likewise.
7761 (map_pop): Likewise.
7762 (map_push): Likewise. Return CUdeviceptr instead of void.
7763 (init_streams_for_device): Remove stales references to ptx_stream
7764 members.
7765 (select_stream_for_async): Likewise.
7766 (nvptx_exec): Update call to map_init.
7767
7768 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
7769 Julian Brown <julian@codesourcery.com>
7770
7771 PR middle-end/86336
7772 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
7773
7774 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
7775 Thomas Koenig <tkoenig@gcc.gnu.org>
7776
7777 PR fortran/25829
7778 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7779 * testsuite/libgomp.fortran/async_io_2.f90: New test.
7780 * testsuite/libgomp.fortran/async_io_3.f90: New test.
7781 * testsuite/libgomp.fortran/async_io_4.f90: New test.
7782 * testsuite/libgomp.fortran/async_io_5.f90: New test.
7783 * testsuite/libgomp.fortran/async_io_6.f90: New test.
7784 * testsuite/libgomp.fortran/async_io_7.f90: New test.
7785
7786 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
7787 Tom de Vries <tdevries@suse.de>
7788
7789 PR target/85590
7790 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
7791 (cuOccupancyMaxPotentialBlockSize): Declare.
7792 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
7793 CUDA_ONE_CALL_MAYBE_NULL.
7794 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
7795 CUoccupancyB2DSize and declare
7796 cuOccupancyMaxPotentialBlockSize.
7797 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
7798 default num_gangs and num_workers when the driver supports it.
7799
7800 2018-08-08 Tom de Vries <tdevries@suse.de>
7801
7802 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
7803 CUDA_ONE_CALL_MAYBE_NULL.
7804 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
7805 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
7806 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
7807 are not found.
7808
7809 2018-08-08 Tom de Vries <tdevries@suse.de>
7810
7811 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
7812 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
7813 present.
7814
7815 2018-08-08 Tom de Vries <tdevries@suse.de>
7816
7817 * plugin/plugin-nvptx.c
7818 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
7819 (nvptx_open_device): Use
7820 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
7821
7822 2018-08-08 Tom de Vries <tdevries@suse.de>
7823
7824 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
7825 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
7826
7827 2018-08-07 Tom de Vries <tdevries@suse.de>
7828
7829 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
7830 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
7831 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
7832 corresponding call in CUDA_ONE_CALL. Add def/undef of
7833 CUDA_ONE_CALL_MAYBE_NULL.
7834 (CUDA_CALL_EXISTS): Define.
7835
7836 2018-08-07 Tom de Vries <tdevries@suse.de>
7837
7838 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
7839 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
7840 corresponding undefs right after.
7841
7842 2018-08-04 Tom de Vries <tdevries@suse.de>
7843
7844 * plugin/configfrag.ac: For --without-cuda-driver, set
7845 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
7846 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
7847 * configure: Regenerate.
7848
7849 2018-08-02 Tom de Vries <tdevries@suse.de>
7850
7851 PR target/86660
7852 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
7853 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
7854 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
7855 Same.
7856 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
7857 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
7858 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
7859
7860 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
7861 Thomas Schwinge <thomas@codesourcery.com>
7862
7863 * config/nvptx/oacc-parallel.c: Truncate.
7864
7865 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
7866 James Norris <jnorris@codesourcery.com>
7867
7868 * plugin/plugin-nvptx.c (struct map): Removed.
7869 (map_init, map_pop): Remove use of struct map.
7870 (map_push): Likewise and change argument list.
7871 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
7872
7873 2018-08-01 Tom de Vries <tdevries@suse.de>
7874
7875 * plugin/cuda-lib.def: New file. Factor out of ...
7876 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
7877 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
7878 using CUDA_CALLS.
7879
7880 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
7881
7882 Revert 'AsyncI/O patch committed'.
7883 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
7884 Thomas Koenig <tkoenig@gcc.gnu.org>
7885
7886 PR fortran/25829
7887 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7888 * testsuite/libgomp.fortran/async_io_2.f90: New test.
7889 * testsuite/libgomp.fortran/async_io_3.f90: New test.
7890 * testsuite/libgomp.fortran/async_io_4.f90: New test.
7891 * testsuite/libgomp.fortran/async_io_5.f90: New test.
7892 * testsuite/libgomp.fortran/async_io_6.f90: New test.
7893 * testsuite/libgomp.fortran/async_io_7.f90: New test.
7894
7895 2018-07-30 Tom de Vries <tdevries@suse.de>
7896
7897 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
7898 (nvptx_exec): Ensure worker and vector default dims don't exceed
7899 targ_fn->max_threads_per_block.
7900
7901 2018-07-30 Tom de Vries <tdevries@suse.de>
7902
7903 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
7904 (nvptx_open_device): Init default_dims for device.
7905 (nvptx_exec): Use default_dims from device.
7906
7907 2018-07-26 Jakub Jelinek <jakub@redhat.com>
7908
7909 PR testsuite/86660
7910 * testsuite/libgomp.c++/for-15.C (results): Include it in
7911 omp declare target region.
7912 (main): Use map (always, tofrom: results) instead of
7913 map (tofrom: results).
7914
7915 PR middle-end/86660
7916 * testsuite/libgomp.c/pr86660.c: New test.
7917
7918 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
7919 Tom de Vries <tdevries@suse.de>
7920
7921 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
7922 sufficient resources to launch a kernel, and give a hint on how to fix
7923 it.
7924
7925 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
7926 Tom de Vries <tdevries@suse.de>
7927
7928 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
7929 max_threads_per_block and max_threads_per_multiprocessor fields.
7930 (nvptx_open_device): Initialize new fields.
7931 (nvptx_exec): Use num_sms, and new fields.
7932
7933 2018-07-26 Tom de Vries <tdevries@suse.de>
7934
7935 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
7936 to correct locations. Remove xfail.
7937
7938 2018-07-26 Tom de Vries <tdevries@suse.de>
7939
7940 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
7941 acc_wait. Move acc_async_test calls to correct locations. Remove
7942 xfail.
7943
7944 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
7945 Thomas Koenig <tkoenig@gcc.gnu.org>
7946
7947 PR fortran/25829
7948 * testsuite/libgomp.fortran/async_io_1.f90: New test.
7949 * testsuite/libgomp.fortran/async_io_2.f90: New test.
7950 * testsuite/libgomp.fortran/async_io_3.f90: New test.
7951 * testsuite/libgomp.fortran/async_io_4.f90: New test.
7952 * testsuite/libgomp.fortran/async_io_5.f90: New test.
7953 * testsuite/libgomp.fortran/async_io_6.f90: New test.
7954 * testsuite/libgomp.fortran/async_io_7.f90: New test.
7955
7956 2018-07-17 Jakub Jelinek <jakub@redhat.com>
7957
7958 PR middle-end/86542
7959 * testsuite/libgomp.c++/pr86542.C: New test.
7960
7961 PR middle-end/86539
7962 * testsuite/libgomp.c++/pr86539.C: New test.
7963
7964 2018-07-11 Jakub Jelinek <jakub@redhat.com>
7965
7966 PR c++/86443
7967 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
7968 (results): Make sure the variable is not inside declare target region.
7969 (qux): Remove unused function.
7970
7971 2018-07-10 Jakub Jelinek <jakub@redhat.com>
7972
7973 PR c++/86443
7974 * testsuite/libgomp.c++/for-15.C: New test.
7975
7976 2018-06-26 Jakub Jelinek <jakub@redhat.com>
7977
7978 PR c++/86291
7979 * testsuite/libgomp.c++/pr86291.C: New test.
7980
7981 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
7982
7983 * libgomp.texi (Top): Move www.openmp.org to https.
7984 (Enabling OpenMP): Ditto.
7985 (omp_get_active_level): Ditto.
7986 (omp_get_ancestor_thread_num): Ditto.
7987 (omp_get_cancellation): Ditto.
7988 (omp_get_default_device): Ditto.
7989 (omp_get_dynamic): Ditto.
7990 (omp_get_level): Ditto.
7991 (omp_get_max_active_levels): Ditto.
7992 (omp_get_max_task_priority): Ditto.
7993 (omp_get_max_threads): Ditto.
7994 (omp_get_nested): Ditto.
7995 (omp_get_num_devices): Ditto.
7996 (omp_get_num_procs): Ditto.
7997 (omp_get_num_teams): Ditto.
7998 (omp_get_num_threads): Ditto.
7999 (omp_get_proc_bind): Ditto.
8000 (omp_get_schedule): Ditto.
8001 (omp_get_team_num): Ditto.
8002 (omp_get_team_size): Ditto.
8003 (omp_get_thread_limit): Ditto.
8004 (omp_get_thread_num): Ditto.
8005 (omp_in_parallel): Ditto.
8006 (omp_in_final): Ditto.
8007 (omp_is_initial_device): Ditto.
8008 (omp_set_default_device): Ditto.
8009 (omp_set_dynamic): Ditto.
8010 (omp_set_max_active_levels): Ditto.
8011 (omp_set_nested): Ditto.
8012 (omp_set_num_threads): Ditto.
8013 (omp_set_schedule): Ditto.
8014 (omp_init_lock): Ditto.
8015 (omp_set_lock): Ditto.
8016 (omp_test_lock): Ditto.
8017 (omp_unset_lock): Ditto.
8018 (omp_destroy_lock): Ditto.
8019 (omp_init_nest_lock): Ditto.
8020 (omp_set_nest_lock): Ditto.
8021 (omp_test_nest_lock): Ditto.
8022 (omp_unset_nest_lock): Ditto.
8023 (omp_destroy_nest_lock): Ditto.
8024 (omp_get_wtick): Ditto.
8025 (omp_get_wtime): Ditto.
8026 (OMP_CANCELLATION): Ditto.
8027 (OMP_DISPLAY_ENV): Ditto.
8028 (OMP_DEFAULT_DEVICE): Ditto.
8029 (OMP_DYNAMIC): Ditto.
8030 (OMP_MAX_ACTIVE_LEVELS): Ditto.
8031 (OMP_MAX_TASK_PRIORITY): Ditto.
8032 (OMP_NESTED): Ditto.
8033 (OMP_NUM_THREADS): Ditto.
8034 (OMP_PROC_BIND): Ditto.
8035 (OMP_PLACES): Ditto.
8036 (OMP_STACKSIZE): Ditto.
8037 (OMP_SCHEDULE): Ditto.
8038 (OMP_THREAD_LIMIT): Ditto.
8039 (OMP_WAIT_POLICY): Ditto.
8040
8041 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
8042 James Norris <jnorris@codesourcery.com>
8043 Julian Brown <julian@codesourcery.com>
8044 Thomas Schwinge <thomas@codesourcery.com>
8045 Tom de Vries <tom@codesourcery.com>
8046
8047 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
8048 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
8049 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
8050 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
8051 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8052 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8053 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
8054 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
8055 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
8056 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
8057 Likewise.
8058 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
8059 Likewise.
8060 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
8061 Likewise.
8062 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
8063 Likewise.
8064 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
8065 Likewise.
8066 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
8067 Likewise.
8068 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
8069 Likewise.
8070 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
8071 Likewise.
8072 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
8073 Likewise.
8074 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
8075 Likewise.
8076 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
8077 Likewise.
8078 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
8079 Likewise.
8080 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
8081 Likewise.
8082 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
8083 Likewise.
8084 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
8085 Likewise.
8086 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
8087 Likewise.
8088 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
8089 Likewise.
8090 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
8091 Likewise.
8092 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
8093 Likewise.
8094 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
8095 Likewise.
8096 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
8097 Likewise.
8098 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
8099 Likewise.
8100 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
8101 Likewise.
8102 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
8103 Likewise.
8104 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
8105 Likewise.
8106 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
8107 Likewise.
8108 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
8109 Likewise.
8110 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
8111 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
8112 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
8113 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
8114 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
8115 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
8116 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
8117 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
8118 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8119 Likewise.
8120 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8121 Likewise.
8122 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
8123 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
8124 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
8125 Likewise.
8126 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
8127 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
8128 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8129 Likewise.
8130 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8131 Likewise.
8132 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8133 Likewise.
8134 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8135 Likewise.
8136 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8137 Likewise.
8138 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
8139 Likewise.
8140 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
8141 Likewise.
8142 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
8143 Likewise.
8144 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
8145 Likewise.
8146 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
8147 Likewise.
8148 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
8149 Likewise.
8150 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
8151 Likewise.
8152 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
8153 Likewise.
8154 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
8155 Likewise.
8156 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
8157 Likewise.
8158 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
8159 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
8160 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
8161 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
8162 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
8163 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
8164 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
8165
8166 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
8167 Thomas Schwinge <thomas@codesourcery.com>
8168 Cesar Philippidis <cesar@codesourcery.com>
8169
8170 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
8171 (gomp_acc_remove_pointer): Update declaration.
8172 (gomp_acc_declare_allocate): Declare.
8173 (gomp_remove_var): Declare.
8174 * libgomp.map (OACC_2.5): Define.
8175 * oacc-mem.c (acc_map_data): Update refcount.
8176 (acc_unmap_data): Likewise.
8177 (present_create_copy): Likewise.
8178 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
8179 (acc_copyin): Likewise.
8180 (FLAG_FINALIZE): Define.
8181 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
8182 (acc_delete_finalize): New function.
8183 (acc_delete_finalize_async): New function.
8184 (acc_copyout_finalize): New function.
8185 (acc_copyout_finalize_async): New function.
8186 (gomp_acc_insert_pointer): Update refcounts.
8187 (gomp_acc_remove_pointer): Return if data is not present on the
8188 accelerator.
8189 * oacc-parallel.c (find_pset): Rename to find_pointer.
8190 (find_pointer): Add support for GOMP_MAP_POINTER.
8191 (handle_ftn_pointers): New function.
8192 (GOACC_parallel_keyed): Update refcounts of variables.
8193 (GOACC_enter_exit_data): Add support for finalized data mappings.
8194 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
8195 of fortran arrays.
8196 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
8197 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
8198 for GOMP_MAP_FORCE_FROM.
8199 * openacc.f90 (module openacc_internal): Add
8200 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
8201 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
8202 acc_copyout_finalize and acc_delete_finalize.
8203 (acc_copyout_finalize_32_h): New subroutine.
8204 (acc_copyout_finalize_64_h): New subroutine.
8205 (acc_copyout_finalize_array_h): New subroutine.
8206 (acc_delete_finalize_32_h): New subroutine.
8207 (acc_delete_finalize_64_h): New subroutine.
8208 (acc_delete_finalize_array_h): New subroutine.
8209 * openacc.h (acc_copyout_finalize): Declare.
8210 (acc_copyout_finalize_async): Declare.
8211 (acc_delete_finalize): Declare.
8212 (acc_delete_finalize_async): Declare.
8213 * openacc_lib.h (acc_copyout_finalize): New interface.
8214 (acc_delete_finalize): New interface.
8215 * target.c (gomp_map_vars): Update dynamic_refcount.
8216 (gomp_remove_var): New function.
8217 (gomp_unmap_vars): Use it.
8218 (gomp_unload_image_from_device): Likewise.
8219 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
8220 case to utilize OpenACC 2.5 data clause semantics.
8221 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8222 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8223 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8224 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8225 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8226 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8227 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8229 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8230 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8232 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
8233 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
8234 utilize OpenACC 2.5 data clause semantics.
8235 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8236 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8237 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8238 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8239 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8240 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8241 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8242 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8243 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8244
8245 2018-05-21 Janus Weil <janus@gcc.gnu.org>
8246
8247 PR fortran/85841
8248 PR testsuite/85865
8249 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
8250 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8251 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8252 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8253 * testsuite/libgomp.fortran/task2.f90: Ditto.
8254 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8255 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8256 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8257 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8258 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8259 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8260 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8261 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
8262 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
8263
8264 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
8265
8266 PR c++/85782
8267 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
8268
8269 2018-05-09 Tom de Vries <tom@codesourcery.com>
8270
8271 PR libgomp/82901
8272 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
8273 to GOACC_enter_exit_data.
8274
8275 2018-05-09 Tom de Vries <tom@codesourcery.com>
8276
8277 PR libgomp/83792
8278 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
8279 (async_synchronous_p): New function.
8280 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
8281 async_valid_p.
8282 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
8283 async_valid_stream_id_p.
8284 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
8285 * oacc-parallel.c (GOACC_parallel_keyed): Same.
8286
8287 2018-05-07 Tom de Vries <tom@codesourcery.com>
8288
8289 PR testsuite/85677
8290 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
8291 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
8292
8293 2018-05-03 Tom de Vries <tom@codesourcery.com>
8294
8295 PR testsuite/85106
8296 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
8297 extra_tool_flags if it contains an -foffload=-fdump-* flag.
8298 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
8299 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
8300
8301 2018-05-02 Tom de Vries <tom@codesourcery.com>
8302
8303 PR libgomp/85411
8304 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
8305 GOMP_OPENACC_DIM ...
8306 * env.c (parse_gomp_openacc_dim): ... here. New function.
8307 (initialize_env): Call parse_gomp_openacc_dim.
8308 (goacc_default_dims): Define.
8309 * libgomp.h (goacc_default_dims): Declare.
8310 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
8311 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
8312 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
8313 GOMP_PLUGIN_acc_default_dim.
8314 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
8315 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
8316
8317 2018-05-02 Tom de Vries <tom@codesourcery.com>
8318
8319 PR testsuite/83791
8320 * testsuite/libgomp.c++/udr-9.C: Update.
8321 * testsuite/libgomp.c++/atomic-16.C: Remove.
8322 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
8323 * testsuite/libgomp.c++/loop-13.C: Remove.
8324 * testsuite/libgomp.c++/loop-14.C: Remove.
8325 * testsuite/libgomp.c++/loop-15.C: Remove.
8326 * testsuite/libgomp.c++/monotonic-1.C: Remove.
8327 * testsuite/libgomp.c++/monotonic-2.C: Remove.
8328 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
8329 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
8330 * testsuite/libgomp.c++/ordered-1.C: Remove.
8331 * testsuite/libgomp.c++/pr45784.C: Remove.
8332 * testsuite/libgomp.c++/pr64824.C: Remove.
8333 * testsuite/libgomp.c++/pr64868.C: Remove.
8334 * testsuite/libgomp.c++/pr66199-1.C: Remove.
8335 * testsuite/libgomp.c++/pr66199-2.C: Remove.
8336 * testsuite/libgomp.c++/pr66199-3.C: Remove.
8337 * testsuite/libgomp.c++/pr66199-4.C: Remove.
8338 * testsuite/libgomp.c++/pr66199-5.C: Remove.
8339 * testsuite/libgomp.c++/pr66199-6.C: Remove.
8340 * testsuite/libgomp.c++/pr66199-7.C: Remove.
8341 * testsuite/libgomp.c++/pr66199-8.C: Remove.
8342 * testsuite/libgomp.c++/pr66199-9.C: Remove.
8343 * testsuite/libgomp.c++/pr69389.C: Remove.
8344 * testsuite/libgomp.c++/simd10.C: Remove.
8345 * testsuite/libgomp.c++/simd11.C: Remove.
8346 * testsuite/libgomp.c++/simd12.C: Remove.
8347 * testsuite/libgomp.c++/simd13.C: Remove.
8348 * testsuite/libgomp.c++/target-1.C: Remove.
8349 * testsuite/libgomp.c++/target-3.C: Remove.
8350 * testsuite/libgomp.c++/target-4.C: Remove.
8351 * testsuite/libgomp.c++/target-5.C: Remove.
8352 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
8353 * testsuite/libgomp.c++/taskloop-1.C: Remove.
8354 * testsuite/libgomp.c++/taskloop-2.C: Remove.
8355 * testsuite/libgomp.c++/taskloop-3.C: Remove.
8356 * testsuite/libgomp.c++/taskloop-4.C: Remove.
8357 * testsuite/libgomp.c++/udr-9.C: Remove.
8358 * testsuite/libgomp.c++/for-10.C: Remove.
8359 * testsuite/libgomp.c++/for-11.C: Remove.
8360 * testsuite/libgomp.c++/for-12.C: Remove.
8361 * testsuite/libgomp.c++/for-13.C: Remove.
8362 * testsuite/libgomp.c++/for-14.C: Remove.
8363 * testsuite/libgomp.c++/for-9.C: Remove.
8364 * testsuite/libgomp.c/atomic-18.c: Move ...
8365 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
8366 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
8367 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
8368 * testsuite/libgomp.c/loop-13.c: Move ...
8369 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
8370 * testsuite/libgomp.c/loop-14.c: Move ...
8371 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
8372 * testsuite/libgomp.c/loop-15.c: Remove.
8373 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
8374 * testsuite/libgomp.c/monotonic-1.c: Move ...
8375 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
8376 * testsuite/libgomp.c/monotonic-2.c: Move ...
8377 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
8378 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
8379 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
8380 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
8381 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
8382 * testsuite/libgomp.c/ordered-4.c: Move ...
8383 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
8384 * testsuite/libgomp.c/pr45784.c: Move ...
8385 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
8386 * testsuite/libgomp.c/pr64824.c: Move ...
8387 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
8388 * testsuite/libgomp.c/pr64868.c: Move ...
8389 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
8390 * testsuite/libgomp.c/pr66199-1.c: Move ...
8391 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
8392 * testsuite/libgomp.c/pr66199-2.c: Move ...
8393 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
8394 * testsuite/libgomp.c/pr66199-3.c: Move ...
8395 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
8396 * testsuite/libgomp.c/pr66199-4.c: Move ...
8397 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
8398 * testsuite/libgomp.c/pr66199-5.c: Move ...
8399 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
8400 * testsuite/libgomp.c/pr66199-6.c: Move ...
8401 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
8402 * testsuite/libgomp.c/pr66199-7.c: Move ...
8403 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
8404 * testsuite/libgomp.c/pr66199-8.c: Move ...
8405 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
8406 * testsuite/libgomp.c/pr66199-9.c: Move ...
8407 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
8408 * testsuite/libgomp.c/pr69389.c: Move ...
8409 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
8410 * testsuite/libgomp.c/simd-14.c: Move ...
8411 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
8412 * testsuite/libgomp.c/simd-15.c: Move ...
8413 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
8414 * testsuite/libgomp.c/simd-16.c: Move ...
8415 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
8416 * testsuite/libgomp.c/simd-17.c: Move ...
8417 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
8418 * testsuite/libgomp.c/target-1.c: Move ...
8419 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
8420 * testsuite/libgomp.c/target-10.c: Move ...
8421 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
8422 * testsuite/libgomp.c/target-13.c: Move ...
8423 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
8424 * testsuite/libgomp.c/target-2.c: Move ...
8425 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
8426 * testsuite/libgomp.c/taskgroup-1.c: Move ...
8427 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
8428 * testsuite/libgomp.c/taskloop-1.c: Move ...
8429 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
8430 * testsuite/libgomp.c/taskloop-2.c: Move ...
8431 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
8432 * testsuite/libgomp.c/taskloop-3.c: Move ...
8433 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
8434 * testsuite/libgomp.c/taskloop-4.c: Move ...
8435 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
8436 * testsuite/libgomp.c/udr-1.c: Move ...
8437 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
8438 * testsuite/libgomp.c/for-1.c: Move ...
8439 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
8440 * testsuite/libgomp.c/for-1.h: Move ...
8441 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
8442 * testsuite/libgomp.c/for-2.c: Move ...
8443 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
8444 * testsuite/libgomp.c/for-2.h: Move ...
8445 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
8446 * testsuite/libgomp.c/for-3.c: Move ...
8447 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
8448 * testsuite/libgomp.c/for-4.c: Move ...
8449 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
8450 * testsuite/libgomp.c/for-5.c: Move ...
8451 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
8452 * testsuite/libgomp.c/for-6.c: Move ...
8453 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
8454
8455 2018-05-02 Tom de Vries <tom@codesourcery.com>
8456
8457 PR libgomp/82428
8458 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
8459 __builtin_goacc_parlevel_{id,size}.
8460 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
8461 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
8462 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
8463 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
8464 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
8465 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
8466 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
8467 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
8468 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
8469 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
8470 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
8471 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
8472 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
8473 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
8474 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
8475 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
8476 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
8477 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
8478 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
8479 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
8480 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
8481 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
8482 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
8483
8484 2018-05-02 Tom de Vries <tom@codesourcery.com>
8485
8486 PR testsuite/85106
8487 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
8488
8489 2018-05-02 Tom de Vries <tom@codesourcery.com>
8490
8491 PR testsuite/85106
8492 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
8493
8494 2018-04-29 Julian Brown <julian@codesourcery.com>
8495 Tom de Vries <tom@codesourcery.com>
8496
8497 PR testsuite/85527
8498 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
8499 arbitrary order for iterations of atomic subtract check.
8500
8501 2018-04-28 Tom de Vries <tom@codesourcery.com>
8502
8503 PR testsuite/85527
8504 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
8505 atomic capture results obtained in parallel loop to an array, instead of
8506 to a scalar.
8507
8508 2018-04-26 Tom de Vries <tom@codesourcery.com>
8509
8510 PR libgomp/84020
8511 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
8512 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
8513 (process_GOMP_NVPTX_JIT): New function.
8514 (link_ptx): Use process_GOMP_NVPTX_JIT.
8515
8516 2018-04-26 Richard Biener <rguenther@suse.de>
8517 Tom de Vries <tom@codesourcery.com>
8518
8519 PR lto/85422
8520 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
8521
8522 2018-04-26 Tom de Vries <tom@codesourcery.com>
8523
8524 PR target/85519
8525 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
8526 recursion depth from 25 to 23.
8527 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
8528
8529 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
8530
8531 * configure: Regenerated.
8532
8533 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
8534 Tom de Vries <tom@codesourcery.com>
8535
8536 PR target/85445
8537 * testsuite/libgomp.oacc-c++/ref-1.C: New.
8538
8539 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
8540
8541 PR libgomp/85463
8542 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
8543 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8544 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8545 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
8546 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
8547 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
8548
8549 PR libfortran/85166
8550 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
8551 abort".
8552 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8553
8554 2018-04-19 Jakub Jelinek <jakub@redhat.com>
8555
8556 * configure: Regenerated.
8557
8558 2018-04-18 David Malcolm <dmalcolm@redhat.com>
8559
8560 PR jit/85384
8561 * configure: Regenerate.
8562
8563 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
8564 Tom de Vries <tom@codesourcery.com>
8565
8566 PR middle-end/84955
8567 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8568 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8569
8570 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8571
8572 PR fortran/83064
8573 PR testsuite/85346
8574 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
8575 test from gfortran.dg to here.
8576
8577 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
8578
8579 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
8580 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
8581
8582 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
8583
8584 PR middle-end/84955
8585 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
8586 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
8587
8588 2018-04-05 Tom de Vries <tom@codesourcery.com>
8589
8590 PR target/85204
8591 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
8592
8593 2018-03-26 Tom de Vries <tom@codesourcery.com>
8594
8595 PR tree-optimization/85063
8596 * testsuite/libgomp.c/switch-conversion-2.c: New test.
8597 * testsuite/libgomp.c/switch-conversion.c: New test.
8598 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
8599 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
8600
8601 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
8602
8603 PR fortran/84381
8604 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
8605 call abort by STOP n.
8606 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
8607 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
8608 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
8609 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
8610 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
8611 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
8612 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
8613 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
8614 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
8615 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
8616 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
8617 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
8618 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
8619 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
8620 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
8621 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
8622 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
8623 * testsuite/libgomp.fortran/associate1.f90: Likewise.
8624 * testsuite/libgomp.fortran/associate2.f90: Likewise.
8625 * testsuite/libgomp.fortran/associate3.f90: Likewise.
8626 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
8627 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
8628 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
8629 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
8630 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
8631 * testsuite/libgomp.fortran/character1.f90: Likewise.
8632 * testsuite/libgomp.fortran/character2.f90: Likewise.
8633 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
8634 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
8635 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
8636 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
8637 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
8638 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
8639 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
8640 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
8641 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
8642 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
8643 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
8644 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
8645 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
8646 * testsuite/libgomp.fortran/do1.f90: Likewise.
8647 * testsuite/libgomp.fortran/do2.f90: Likewise.
8648 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
8649 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
8650 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
8651 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
8652 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
8653 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
8654 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8655 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
8656 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
8657 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
8658 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
8659 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
8660 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8661 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
8662 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
8663 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
8664 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
8665 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
8666 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
8667 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
8668 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
8669 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
8670 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
8671 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
8672 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
8673 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
8674 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
8675 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8676 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
8677 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
8678 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
8679 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
8680 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
8681 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8682 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8683 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
8684 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
8685 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
8686 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
8687 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
8688 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
8689 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
8690 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
8691 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
8692 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
8693 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
8694 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
8695 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
8696 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
8697 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8698 * testsuite/libgomp.fortran/lib2.f: Likewise.
8699 * testsuite/libgomp.fortran/lib3.f: Likewise.
8700 * testsuite/libgomp.fortran/lib4.f90: Likewise.
8701 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
8702 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
8703 * testsuite/libgomp.fortran/nested1.f90: Likewise.
8704 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
8705 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
8706 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
8707 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
8708 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
8709 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
8710 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
8711 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
8712 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
8713 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
8714 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
8715 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
8716 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
8717 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
8718 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
8719 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
8720 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
8721 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
8722 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
8723 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8724 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
8725 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
8726 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
8727 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
8728 * testsuite/libgomp.fortran/pr25162.f: Likewise.
8729 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
8730 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
8731 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
8732 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
8733 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
8734 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
8735 * testsuite/libgomp.fortran/pr28390.f: Likewise.
8736 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
8737 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
8738 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
8739 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
8740 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
8741 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
8742 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
8743 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
8744 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
8745 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
8746 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
8747 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
8748 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
8749 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
8750 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
8751 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
8752 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
8753 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
8754 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
8755 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
8756 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
8757 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
8758 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
8759 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
8760 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
8761 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
8762 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
8763 * testsuite/libgomp.fortran/reference1.f90: Likewise.
8764 * testsuite/libgomp.fortran/reference2.f90: Likewise.
8765 * testsuite/libgomp.fortran/retval1.f90: Likewise.
8766 * testsuite/libgomp.fortran/retval2.f90: Likewise.
8767 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
8768 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
8769 * testsuite/libgomp.fortran/simd1.f90: Likewise.
8770 * testsuite/libgomp.fortran/simd2.f90: Likewise.
8771 * testsuite/libgomp.fortran/simd3.f90: Likewise.
8772 * testsuite/libgomp.fortran/simd4.f90: Likewise.
8773 * testsuite/libgomp.fortran/simd5.f90: Likewise.
8774 * testsuite/libgomp.fortran/simd6.f90: Likewise.
8775 * testsuite/libgomp.fortran/simd7.f90: Likewise.
8776 * testsuite/libgomp.fortran/stack.f90: Likewise.
8777 * testsuite/libgomp.fortran/strassen.f90: Likewise.
8778 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
8779 * testsuite/libgomp.fortran/tabs2.f: Likewise.
8780 * testsuite/libgomp.fortran/target1.f90: Likewise.
8781 * testsuite/libgomp.fortran/target2.f90: Likewise.
8782 * testsuite/libgomp.fortran/target3.f90: Likewise.
8783 * testsuite/libgomp.fortran/target4.f90: Likewise.
8784 * testsuite/libgomp.fortran/target5.f90: Likewise.
8785 * testsuite/libgomp.fortran/target6.f90: Likewise.
8786 * testsuite/libgomp.fortran/target7.f90: Likewise.
8787 * testsuite/libgomp.fortran/target8.f90: Likewise.
8788 * testsuite/libgomp.fortran/task1.f90: Likewise.
8789 * testsuite/libgomp.fortran/task2.f90: Likewise.
8790 * testsuite/libgomp.fortran/task3.f90: Likewise.
8791 * testsuite/libgomp.fortran/task4.f90: Likewise.
8792 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
8793 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
8794 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
8795 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
8796 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
8797 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
8798 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
8799 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
8800 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
8801 * testsuite/libgomp.fortran/udr1.f90: Likewise.
8802 * testsuite/libgomp.fortran/udr10.f90: Likewise.
8803 * testsuite/libgomp.fortran/udr11.f90: Likewise.
8804 * testsuite/libgomp.fortran/udr12.f90: Likewise.
8805 * testsuite/libgomp.fortran/udr13.f90: Likewise.
8806 * testsuite/libgomp.fortran/udr14.f90: Likewise.
8807 * testsuite/libgomp.fortran/udr15.f90: Likewise.
8808 * testsuite/libgomp.fortran/udr2.f90: Likewise.
8809 * testsuite/libgomp.fortran/udr3.f90: Likewise.
8810 * testsuite/libgomp.fortran/udr4.f90: Likewise.
8811 * testsuite/libgomp.fortran/udr5.f90: Likewise.
8812 * testsuite/libgomp.fortran/udr6.f90: Likewise.
8813 * testsuite/libgomp.fortran/udr7.f90: Likewise.
8814 * testsuite/libgomp.fortran/udr8.f90: Likewise.
8815 * testsuite/libgomp.fortran/udr9.f90: Likewise.
8816 * testsuite/libgomp.fortran/vla1.f90: Likewise.
8817 * testsuite/libgomp.fortran/vla2.f90: Likewise.
8818 * testsuite/libgomp.fortran/vla3.f90: Likewise.
8819 * testsuite/libgomp.fortran/vla4.f90: Likewise.
8820 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8821 * testsuite/libgomp.fortran/vla6.f90: Likewise.
8822 * testsuite/libgomp.fortran/vla7.f90: Likewise.
8823 * testsuite/libgomp.fortran/vla8.f90: Likewise.
8824 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
8825 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
8826 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8827 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8828 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8829 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8830 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8831 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8832 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8833 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8834 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
8835 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
8836 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
8837 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
8838 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8839 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8840 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8841 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8842 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8843 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8844 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8845 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8846 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8847 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
8848 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
8849 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8850 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8851 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8852 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8853 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8854 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8855 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
8856 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
8857 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
8858 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
8859 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8860 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8861 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8862 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
8863 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8864 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
8865 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
8866 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
8867 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
8868 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
8869 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
8870 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8871 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8872 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8873 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8874 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8875 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8876 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
8877 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
8878 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8879 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8880 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8881 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8882 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8883 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8884 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8885 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8886 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8887 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
8888 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8889 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8890 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
8891 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
8892 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
8893 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8894 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
8895 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
8896 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
8897 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
8898 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8899 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8900 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8901 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8902 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8903 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8904 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8905 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8906 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
8907 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
8908 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8909 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8910 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8911 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8912 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
8913 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
8914 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
8915 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8916 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8917 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
8918
8919 2018-03-20 Richard Biener <rguenther@suse.de>
8920
8921 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
8922 parallelizable loop.
8923
8924 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8925
8926 PR target/84148
8927 * configure: Regenerate.
8928
8929 2018-02-16 Jakub Jelinek <jakub@redhat.com>
8930
8931 PR fortran/84418
8932 * libgomp.fortran/pr84418-1.f90: New test.
8933 * libgomp.fortran/pr84418-2.f90: New test.
8934
8935 2018-02-14 Jakub Jelinek <jakub@redhat.com>
8936
8937 PR fortran/84313
8938 * testsuite/libgomp.fortran/threadprivate4.f90: Add
8939 -std=f2003 -fall-intrinsics into dg-additional-options.
8940
8941 2018-02-08 Martin Jambor <mjambor@suse.cz>
8942
8943 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
8944 clonable.
8945
8946 2018-02-08 Martin Jambor <mjambor@suse.cz>
8947
8948 * testsuite/libgomp.hsa.c/staticvar.c: New test.
8949
8950 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8951
8952 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
8953 [__cplusplus]: Declare extern "C".
8954
8955 2018-02-07 Tom de Vries <tom@codesourcery.com>
8956
8957 PR libgomp/84217
8958 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
8959
8960 2018-01-29 Christoph Spiel <cspiel@freenet.de>
8961 Jakub Jelinek <jakub@redhat.com>
8962
8963 PR libgomp/84096
8964 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
8965 instead of omp_lock_t.
8966
8967 2018-01-25 Tom de Vries <tom@codesourcery.com>
8968
8969 PR target/84028
8970 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
8971
8972 2018-01-24 Tom de Vries <tom@codesourcery.com>
8973
8974 PR target/83589
8975 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
8976
8977 2018-01-24 Tom de Vries <tom@codesourcery.com>
8978
8979 PR target/81352
8980 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
8981
8982 2018-01-19 Tom de Vries <tom@codesourcery.com>
8983 Cesar Philippidis <cesar@codesourcery.com>
8984
8985 PR target/83920
8986 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
8987 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
8988
8989 2018-01-03 Jakub Jelinek <jakub@redhat.com>
8990
8991 Update copyright years.
8992
8993 * libgomp.texi: Bump @copying's copyright year.
8994
8995 2017-12-30 Tom de Vries <tom@codesourcery.com>
8996
8997 PR libgomp/83046
8998 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
8999 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
9000
9001 2017-12-27 Tom de Vries <tom@codesourcery.com>
9002
9003 PR c++/83046
9004 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
9005 (test_nonstatic): Fix return type to workaround PR83046.
9006
9007 2017-12-05 Jakub Jelinek <jakub@redhat.com>
9008
9009 PR testsuite/83281
9010 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
9011 j suffix instead of i.
9012 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
9013 Likewise.
9014
9015 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
9016
9017 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
9018 call to acc_wait (1).
9019
9020 2017-11-24 Jakub Jelinek <jakub@redhat.com>
9021
9022 PR fortran/81304
9023 * testsuite/libgomp.fortran/pr81304.f90: New test.
9024
9025 2017-11-23 Jakub Jelinek <jakub@redhat.com>
9026
9027 PR fortran/81841
9028 * libgomp.fortran/pr81841.f90: New test.
9029
9030 2017-11-22 Jakub Jelinek <jakub@redhat.com>
9031
9032 PR libgomp/83106
9033 * target.c (gomp_target_init): Compute lengths just once and
9034 use them in both malloc size and subsequent copying.
9035
9036 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9037
9038 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
9039 * acinclude.m4: Add cet.m4.
9040 * configure: Regenerate.
9041 * Makefile.in: Likewise.
9042 * testsuite/Makefile.in: Likewise.
9043
9044 2017-11-15 Tom de Vries <tom@codesourcery.com>
9045
9046 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
9047 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
9048 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
9049 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
9050 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
9051 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
9052
9053 2017-11-14 Tom de Vries <tom@codesourcery.com>
9054
9055 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
9056 non-nvidia devices.
9057
9058 2017-11-07 Jakub Jelinek <jakub@redhat.com>
9059
9060 PR c++/82835
9061 * testsuite/libgomp.c++/pr82835.C: New test.
9062
9063 2017-11-06 Martin Liska <mliska@suse.cz>
9064
9065 * testsuite/libgomp.c++/loop-2.C: Return a value
9066 for functions with non-void return type, or change type to void,
9067 or add -Wno-return-type for test.
9068 * testsuite/libgomp.c++/loop-4.C: Likewise.
9069 * testsuite/libgomp.c++/parallel-1.C: Likewise.
9070 * testsuite/libgomp.c++/shared-1.C: Likewise.
9071 * testsuite/libgomp.c++/single-1.C: Likewise.
9072 * testsuite/libgomp.c++/single-2.C: Likewise.
9073
9074 2017-10-31 Tom de Vries <tom@codesourcery.com>
9075
9076 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
9077 "do {} while (false)".
9078 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
9079 after HSA_DEBUG call.
9080
9081 2017-10-28 Jakub Jelinek <jakub@redhat.com>
9082
9083 * target.c (struct gomp_coalesce_buf): New type.
9084 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
9085 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
9086 (gomp_copy_host2dev): Add CBUF argument, if copying into
9087 the cached ranges, memcpy into buffer instead of copying
9088 into device.
9089 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
9090 Add CBUF argument, pass it through to other calls.
9091 (gomp_map_vars): Aggregate copies from host to device if small enough
9092 and with small enough gaps in between into memcpy into a buffer and
9093 fewer host to device copies from the buffer.
9094 (gomp_update): Adjust gomp_copy_host2dev caller.
9095
9096 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
9097
9098 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
9099 run" directive.
9100 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9101 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9102 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9103 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9104
9105 2017-10-16 Tom de Vries <tom@codesourcery.com>
9106
9107 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
9108 openacc_nvidia_accel_selected.
9109 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
9110 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
9111 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
9112 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
9113 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
9114 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
9115 openacc_nvidia_accel_selected. Skip for shared memory device.
9116 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
9117 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
9118
9119 2017-10-09 Martin Jambor <mjambor@suse.cz>
9120
9121 PR hsa/82416
9122 * testsuite/libgomp.hsa.c/pr82416.c: New test.
9123
9124 2017-10-07 Tom de Vries <tom@codesourcery.com>
9125
9126 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
9127 Remove acc_device_nvidia references.
9128 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
9129 Same.
9130
9131 2017-10-05 Tom de Vries <tom@codesourcery.com>
9132
9133 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
9134 vector_length(32) clause from acc parallel directive.
9135 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
9136
9137 2017-10-04 Tom de Vries <tom@codesourcery.com>
9138
9139 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
9140 (main): Reduce sum of arr elements. Assert that hres is exactly
9141 representable in 32-bit floating point.
9142 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
9143 (main): Reduce sum of arr elements. Assert that hres and hmres are
9144 exactly representable in 32-bit floating point.
9145 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
9146
9147 2017-09-28 Tom de Vries <tom@codesourcery.com>
9148
9149 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
9150 setting.
9151 * testsuite/libgomp.c++/pr69393.C: Same.
9152 * testsuite/libgomp.c++/taskloop-1.C: Same.
9153 * testsuite/libgomp.c++/taskloop-3.C: Same.
9154 * testsuite/libgomp.c++/taskloop-4.C: Same.
9155 * testsuite/libgomp.c/for-4.c: Same.
9156 * testsuite/libgomp.c/pr66199-3.c: Same.
9157 * testsuite/libgomp.c/pr66199-4.c: Same.
9158 * testsuite/libgomp.c/pr66199-6.c: Same.
9159 * testsuite/libgomp.c/taskloop-1.c: Same.
9160 * testsuite/libgomp.c/taskloop-3.c: Same.
9161 * testsuite/libgomp.c/taskloop-4.c: Same.
9162 * testsuite/libgomp.fortran/aligned1.f03: Same.
9163 * testsuite/libgomp.fortran/condinc1.f: Same.
9164 * testsuite/libgomp.fortran/condinc3.f90: Same.
9165 * testsuite/libgomp.fortran/crayptr1.f90: Same.
9166 * testsuite/libgomp.fortran/crayptr2.f90: Same.
9167 * testsuite/libgomp.fortran/crayptr3.f90: Same.
9168 * testsuite/libgomp.fortran/omp_cond1.f: Same.
9169 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
9170 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
9171 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
9172 * testsuite/libgomp.fortran/recursion1.f90: Same.
9173 * testsuite/libgomp.fortran/target2.f90: Same.
9174 * testsuite/libgomp.fortran/target5.f90: Same.
9175 * testsuite/libgomp.fortran/task3.f90: Same.
9176
9177 2017-09-28 Tom de Vries <tom@codesourcery.com>
9178
9179 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
9180 vector_length(32) clause from acc parallel directive.
9181 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
9182
9183 2017-09-27 Tom de Vries <tom@codesourcery.com>
9184
9185 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
9186 Remove acc_device_nvidia references.
9187
9188 2017-09-16 Tom de Vries <tom@codesourcery.com>
9189
9190 PR c/81875
9191 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
9192
9193 2017-09-14 Tom de Vries <tom@codesourcery.com>
9194
9195 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
9196 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
9197 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
9198 * testsuite/libgomp.c/c.exp: Include test-cases from
9199 libgomp.c-c++-common.
9200 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
9201 files.
9202
9203 2017-09-14 Jakub Jelinek <jakub@redhat.com>
9204
9205 PR c++/81314
9206 * testsuite/libgomp.c++/pr81314.C: New test.
9207
9208 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
9209
9210 * libgomp.texi (Top): www.openacc.org now uses https.
9211 (Enabling OpenACC): Ditto.
9212 (acc_get_num_devices): Ditto.
9213 (acc_set_device_type): Ditto.
9214 (acc_get_device_type): Ditto.
9215 (acc_set_device_num): Ditto.
9216 (acc_get_device_num): Ditto.
9217 (acc_async_test): Ditto.
9218 (acc_async_test_all): Ditto.
9219 (acc_wait): Ditto.
9220 (acc_wait_all): Ditto.
9221 (acc_wait_all_async): Ditto.
9222 (acc_wait_async): Ditto.
9223 (acc_init): Ditto.
9224 (acc_shutdown): Ditto.
9225 (acc_on_device): Ditto.
9226 (acc_malloc): Ditto.
9227 (acc_free): Ditto.
9228 (acc_copyin): Ditto.
9229 (acc_present_or_copyin): Ditto.
9230 (acc_create): Ditto.
9231 (acc_present_or_create): Ditto.
9232 (acc_copyout): Ditto.
9233 (acc_delete): Ditto.
9234 (acc_update_device): Ditto.
9235 (acc_update_self): Ditto.
9236 (acc_map_data): Ditto.
9237 (acc_unmap_data): Ditto.
9238 (acc_deviceptr): Ditto.
9239 (acc_hostptr): Ditto.
9240 (acc_is_present): Ditto.
9241 (acc_memcpy_to_device): Ditto.
9242 (acc_memcpy_from_device): Ditto.
9243 (acc_get_current_cuda_device): Ditto.
9244 (acc_get_current_cuda_context): Ditto.
9245 (acc_get_cuda_stream): Ditto.
9246 (acc_set_cuda_stream): Ditto.
9247 (ACC_DEVICE_TYPE): Ditto.
9248 (ACC_DEVICE_NUM): Ditto.
9249 (OpenACC Library Interoperability): Ditto.
9250
9251 2017-08-09 Jakub Jelinek <jakub@redhat.com>
9252
9253 PR c/81687
9254 * testsuite/libgomp.c/pr81687-1.c: New test.
9255 * testsuite/libgomp.c/pr81687-2.c: New test.
9256
9257 2017-08-07 Jakub Jelinek <jakub@redhat.com>
9258
9259 PR c/69389
9260 * testsuite/libgomp.c/pr69389.c: New test.
9261 * testsuite/libgomp.c++/pr69389.C: New test.
9262
9263 2017-08-07 Tom de Vries <tom@codesourcery.com>
9264
9265 PR middle-end/78266
9266 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
9267 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
9268
9269 2017-07-27 Jakub Jelinek <jakub@redhat.com>
9270
9271 PR c/45784
9272 * testsuite/libgomp.c/pr45784.c: New test.
9273 * testsuite/libgomp.c++/pr45784.C: New test.
9274
9275 2017-07-19 Tom de Vries <tom@codesourcery.com>
9276
9277 * testsuite/libgomp.oacc-c/vec.c: New test.
9278
9279 2017-07-03 Tom de Vries <tom@codesourcery.com>
9280
9281 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
9282
9283 2017-06-27 Tom de Vries <tom@codesourcery.com>
9284
9285 * plugin/plugin-nvptx.c (notify_var): New function.
9286 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
9287
9288 2017-06-27 Tom de Vries <tom@codesourcery.com>
9289
9290 * env.c (parse_unsigned_long_1): Factor out of ...
9291 (parse_unsigned_long): ... here.
9292 (parse_int_1): Factor out of ...
9293 (parse_int): ... here.
9294 (parse_int_secure): New function.
9295 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
9296 * secure_getenv.h: Factor out of ...
9297 * plugin/plugin-hsa.c: ... here.
9298 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
9299
9300 2017-06-21 Jakub Jelinek <jakub@redhat.com>
9301
9302 PR c++/81130
9303 * testsuite/libgomp.c++/pr81130.C: New test.
9304
9305 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9306
9307 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
9308 default args.
9309 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
9310 dg-xfail-run-if default args.
9311
9312 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9313
9314 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
9315 * testsuite/libgomp.c/pr39591-3.c: Likewise.
9316
9317 2017-05-30 Jakub Jelinek <jakub@redhat.com>
9318
9319 PR libgomp/80822
9320 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
9321 (gomp_affinity_init_level): Use it. Always analyze the core and thread
9322 sibling lists, depending on level just pick up what CPUs to put
9323 together into a place vs. whether add multiple ordered places.
9324
9325 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
9326
9327 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
9328 * libgomp.map (OACC_2.0.1): Add these.
9329 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
9330 for "acc_wait", and "acc_wait_all", respectively.
9331 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
9332 for "acc_wait", and "acc_wait_all", respectively.
9333 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
9334 * libgomp.texi (acc_wait, acc_wait_all): Update.
9335 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
9336 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
9337 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
9338
9339 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
9340 acc_present_or_copyin and acc_present_or_create procedures,
9341 respectively.
9342 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
9343 generally different variants of OpenACC Runtime Library functions.
9344 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9345
9346 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
9347 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
9348
9349 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
9350 of preprocessor definitions.
9351 * libgomp.h (strong_alias): Guard by "#ifdef
9352 HAVE_ATTRIBUTE_ALIAS".
9353 * oacc-mem.c: Provide "acc_pcreate" as alias for
9354 "acc_present_or_create", and "acc_pcopyin" as alias for
9355 "acc_present_or_copyin".
9356 * libgomp.map: New version "OACC_2.0.1".
9357 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
9358 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
9359 its content into...
9360 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
9361 Extend testing.
9362
9363 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
9364 when disabling nvptx offloading.
9365
9366 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
9367
9368 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
9369 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
9370 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
9371
9372 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
9373 * testsuite/lib/libgomp.exp
9374 (check_effective_target_openacc_nvidia_accel_configured): New
9375 proc.
9376 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
9377 (check_effective_target_c++): New procs.
9378 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
9379 (check_effective_target_c++): Likewise.
9380
9381 2017-05-22 Jakub Jelinek <jakub@redhat.com>
9382
9383 PR middle-end/80809
9384 * testsuite/libgomp.c/pr80809-2.c: New test.
9385 * testsuite/libgomp.c/pr80809-3.c: New test.
9386
9387 PR middle-end/80809
9388 * testsuite/libgomp.c/pr80809-1.c: New test.
9389
9390 PR middle-end/80853
9391 * testsuite/libgomp.c/pr80853.c: New test.
9392
9393 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
9394
9395 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
9396 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
9397 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
9398 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
9399 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
9400
9401 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
9402 Debug output for failure.
9403
9404 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9405
9406 * testsuite/lib/libgomp.exp: Load scanlang.exp.
9407
9408 2017-04-27 Jakub Jelinek <jakub@redhat.com>
9409
9410 PR bootstrap/80531
9411 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
9412 bootstrap compare failures.
9413
9414 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
9415
9416 * testsuite/libgomp.c/target-36.c: New testcase.
9417
9418 2017-04-13 Jakub Jelinek <jakub@redhat.com>
9419
9420 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
9421 instead of char.
9422
9423 2017-04-11 Jakub Jelinek <jakub@redhat.com>
9424
9425 PR libgomp/80394
9426 * testsuite/libgomp.c/pr80394.c: New test.
9427
9428 2017-04-04 Jakub Jelinek <jakub@redhat.com>
9429
9430 PR libgomp/79876
9431 * config/posix/thread-stacksize.h: New file.
9432 * config/darwin/thread-stacksize.h: New file.
9433 * config/nvptx/thread-stacksize.h: New file.
9434 * env.c: Include thread-stacksize.h.
9435 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
9436 instead of 0. Call pthread_attr_setstacksize even if
9437 GOMP_DEFAULT_STACKSIZE is non-zero.
9438
9439 2017-03-30 Jakub Jelinek <jakub@redhat.com>
9440
9441 * env.c (initialize_env): Initialize stacksize to 0.
9442
9443 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
9444
9445 PR c++/80029
9446 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
9447
9448 2017-03-08 Jakub Jelinek <jakub@redhat.com>
9449
9450 PR c/79940
9451 * testsuite/libgomp.c/pr79940.c: New test.
9452
9453 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9454
9455 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
9456 targets.
9457 Add __float128 options.
9458
9459 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
9460
9461 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
9462 hppa*-*-* dg-skip-if directive.
9463
9464 2017-02-09 Jakub Jelinek <jakub@redhat.com>
9465
9466 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
9467 dg-skip-if directive into a comment.
9468
9469 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
9470 Chung-Lin Tang <cltang@codesourcery.com>
9471
9472 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
9473 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
9474 add additional case.
9475 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
9476 "openacc_nvidia_accel_selected".
9477 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
9478 Add num_workers(8) clause.
9479
9480 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
9481
9482 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
9483 hppa*-*-*.
9484 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
9485 include complex.h on hppa*-*-hpux*.
9486 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
9487
9488 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
9489
9490 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
9491
9492 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
9493 GOMP_OFFLOAD_openacc_exec. Adjust all users.
9494 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
9495 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
9496 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
9497 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
9498 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
9499 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
9500 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
9501 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
9502
9503 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
9504
9505 * libgomp-plugin.h: #include <stdbool.h>.
9506 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
9507 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
9508 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
9509 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
9510 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
9511 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
9512 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
9513 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
9514 (GOMP_OFFLOAD_openacc_register_async_cleanup)
9515 (GOMP_OFFLOAD_openacc_async_test)
9516 (GOMP_OFFLOAD_openacc_async_test_all)
9517 (GOMP_OFFLOAD_openacc_async_wait)
9518 (GOMP_OFFLOAD_openacc_async_wait_async)
9519 (GOMP_OFFLOAD_openacc_async_wait_all)
9520 (GOMP_OFFLOAD_openacc_async_wait_all_async)
9521 (GOMP_OFFLOAD_openacc_async_set_async)
9522 (GOMP_OFFLOAD_openacc_create_thread_data)
9523 (GOMP_OFFLOAD_openacc_destroy_thread_data)
9524 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
9525 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
9526 (GOMP_OFFLOAD_openacc_get_cuda_stream)
9527 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
9528 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
9529 these.
9530 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
9531 (GOMP_OFFLOAD_unload_image): Fix argument types.
9532
9533 2017-01-26 Jakub Jelinek <jakub@redhat.com>
9534
9535 * testsuite/lib/libgomp.exp
9536 (check_effective_target_hsa_offloading_selected_nocache): Fix up
9537 check_compile invocation. Fix up removal of executable. Drop
9538 bogus "2>&1" argument.
9539
9540 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
9541 directive.
9542
9543 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
9544 Martin Jambor <mjambor@suse.cz>
9545
9546 * plugin/hsa.h: Moved to top level include.
9547 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
9548
9549 2017-01-21 Jakub Jelinek <jakub@redhat.com>
9550
9551 PR other/79046
9552 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
9553 of cat to get version from BASE-VER file.
9554 * testsuite/Makefile.in: Regenerated.
9555
9556 2017-01-19 Jakub Jelinek <jakub@redhat.com>
9557
9558 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
9559 for _WIN64.
9560
9561 2017-01-17 Jakub Jelinek <jakub@redhat.com>
9562
9563 * plugin/hsa.h: Add GCC runtime library exception.
9564 * plugin/hsa_ext_finalize.h: Likewise.
9565
9566 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
9567 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
9568 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
9569 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
9570 plugin/include/cuda as include dir and -ldl instead of -lcuda as
9571 library to link ptx plugin against.
9572 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
9573 (CUDA_CALLS): Define.
9574 (cuda_lib, cuda_lib_inited): New variables.
9575 (init_cuda_lib): New function.
9576 (CUDA_CALL_PREFIX): Define.
9577 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
9578 (CUDA_CALL): Use FN instead of (FN).
9579 (CUDA_CALL_NOCHECK): Define.
9580 (cuda_error, fini_streams_for_device, select_stream_for_async,
9581 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
9582 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
9583 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
9584 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
9585 CUDA_CALL_NOCHECK.
9586 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
9587 CUDA_CALL_NOCHECK.
9588 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
9589 Use CUDA_CALL_NOCHECK.
9590 * plugin/cuda/cuda.h: New file.
9591 * config.h.in: Regenerated.
9592 * configure: Regenerated.
9593
9594 PR other/79046
9595 * configure.ac: Add GCC_BASE_VER.
9596 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
9597 get version from BASE-VER file.
9598 * testsuite/Makefile.in: Regenerated.
9599 * configure: Regenerated.
9600 * Makefile.in: Regenerated.
9601
9602 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9603
9604 PR libgomp/60670
9605 * Makefile.am: Make fincludedir multilib-aware.
9606 * Makefile.in: Regenerate.
9607
9608 2017-01-01 Jakub Jelinek <jakub@redhat.com>
9609
9610 Update copyright years.
9611
9612 * libgomp.texi: Bump @copying's copyright year.
9613
9614 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
9615
9616 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
9617 pthread_spinlock_t instead of gomp_mutex_t lock.
9618 (gomp_get_thread_pool): Likewise.
9619 (gomp_release_thread_pool): Likewise.
9620 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
9621 Likewise.
9622
9623 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
9624
9625 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
9626 thread pool in case nthreads == 1.
9627
9628 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9629
9630 * config/nvptx/env.c: Delete.
9631 * icv.c: Move definitions of ICV variables back ...
9632 * env.c: ...here. Do not compile environment-related functionality if
9633 LIBGOMP_OFFLOADED_ONLY is set.
9634
9635 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9636
9637 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
9638 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
9639 * configure: Regenerate.
9640 * config.h.in: Likewise.
9641
9642 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
9643
9644 * Makefile.in: Regenerate with automake-1.11.6.
9645 * aclocal.m4: Likewise.
9646 * configure: Likewise.
9647 * testsuite/Makefile.in: Likewise.
9648
9649 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
9650
9651 * config/nvptx/critical.c: Delete to use generic implementation.
9652
9653 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
9654
9655 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
9656 ../../affinity.c as fallback.
9657 * config/nvptx/affinity.c: Delete to use fallback implementation.
9658
9659 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
9660 Jakub Jelinek <jakub@redhat.com>
9661 Dmitry Melnik <dm@ispras.ru>
9662
9663 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
9664 * Makefile.in. Regenerate.
9665 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
9666 (LIBGOMP_USE_PTHREADS): ...here; new define.
9667 * configure: Regenerate.
9668 * config.h.in: Likewise.
9669 * config/posix/affinity.c: Move to...
9670 * affinity.c: ...here (new file). Guard use of Pthreads-specific
9671 interface by LIBGOMP_USE_PTHREADS.
9672 * critical.c: Split out GOMP_atomic_{start,end} into...
9673 * atomic.c: ...here (new file).
9674 * env.c: Split out ICV definitions into...
9675 * icv.c: ...here (new file) and...
9676 * icv-device.c: ...here. New file.
9677 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
9678 (gomp_destroy_lock_30): Ditto.
9679 (gomp_set_lock_30): Ditto.
9680 (gomp_unset_lock_30): Ditto.
9681 (gomp_test_lock_30): Ditto.
9682 (gomp_init_nest_lock_30): Ditto.
9683 (gomp_destroy_nest_lock_30): Ditto.
9684 (gomp_set_nest_lock_30): Ditto.
9685 (gomp_unset_nest_lock_30): Ditto.
9686 (gomp_test_nest_lock_30): Ditto.
9687 * lock.c: New.
9688 * config/nvptx/lock.c: New.
9689 * config/nvptx/bar.c: New.
9690 * config/nvptx/bar.h: New.
9691 * config/nvptx/doacross.h: New.
9692 * config/nvptx/error.c: New.
9693 * config/nvptx/icv-device.c: New.
9694 * config/nvptx/mutex.h: New.
9695 * config/nvptx/pool.h: New.
9696 * config/nvptx/proc.c: New.
9697 * config/nvptx/ptrlock.h: New.
9698 * config/nvptx/sem.h: New.
9699 * config/nvptx/simple-bar.h: New.
9700 * config/nvptx/target.c: New.
9701 * config/nvptx/task.c: New.
9702 * config/nvptx/team.c: New.
9703 * config/nvptx/time.c: New.
9704 * config/posix/simple-bar.h: New.
9705 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
9706 (gomp_num_teams_var): Declare.
9707 (struct gomp_thread_pool): Change threads_dock member to
9708 gomp_simple_barrier_t.
9709 [__nvptx__] (gomp_thread): New implementation.
9710 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
9711 (gomp_thread_destructor): Ditto.
9712 (gomp_init_thread_affinity): Ditto.
9713 * team.c: Guard uses of Pthreads-specific interfaces by
9714 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
9715 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
9716 * config/nvptx/alloc.c: Delete.
9717 * config/nvptx/barrier.c: Ditto.
9718 * config/nvptx/fortran.c: Ditto.
9719 * config/nvptx/iter.c: Ditto.
9720 * config/nvptx/iter_ull.c: Ditto.
9721 * config/nvptx/loop.c: Ditto.
9722 * config/nvptx/loop_ull.c: Ditto.
9723 * config/nvptx/ordered.c: Ditto.
9724 * config/nvptx/parallel.c: Ditto.
9725 * config/nvptx/priority_queue.c: Ditto.
9726 * config/nvptx/sections.c: Ditto.
9727 * config/nvptx/single.c: Ditto.
9728 * config/nvptx/splay-tree.c: Ditto.
9729 * config/nvptx/work.c: Ditto.
9730 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
9731 -foffload=-lgfortran in addition to -lgfortran.
9732 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
9733 * plugin/plugin-nvptx.c: Include <limits.h>.
9734 (struct targ_fn_descriptor): Add new fields.
9735 (struct ptx_device): Ditto. Set them...
9736 (nvptx_open_device): ...here.
9737 (nvptx_adjust_launch_bounds): New.
9738 (nvptx_host2dev): Allow NULL 'nvthd'.
9739 (nvptx_dev2host): Ditto.
9740 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
9741 (link_ptx): Adjust log sizes.
9742 (nvptx_host2dev): Allow NULL 'nvthd'.
9743 (nvptx_dev2host): Ditto.
9744 (nvptx_set_clocktick): New. Use it...
9745 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
9746 fields.
9747 (GOMP_OFFLOAD_dev2dev): New.
9748 (nvptx_adjust_launch_bounds): New.
9749 (nvptx_stacks_size): New.
9750 (nvptx_stacks_alloc): New.
9751 (nvptx_stacks_free): New.
9752 (GOMP_OFFLOAD_run): New.
9753 (GOMP_OFFLOAD_async_run): New (stub).
9754
9755 2016-11-23 Martin Jambor <mjambor@suse.cz>
9756
9757 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
9758 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
9759 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
9760
9761 2016-11-23 Martin Liska <mliska@suse.cz>
9762 Martin Jambor <mjambor@suse.cz>
9763
9764 * plugin/hsa.h: New file.
9765 * plugin/hsa_ext_finalize.h: New file.
9766 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
9767 header file unistd.h, and functions secure_getenv, __secure_getenv,
9768 getuid, geteuid, getgid and getegid.
9769 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
9770 -D_GNU_SOURCE.
9771 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
9772 Handle various cases of secure_getenv presence, add an implementation
9773 when we can test effective UID and GID.
9774 (struct hsa_runtime_fn_info): New structure.
9775 (hsa_runtime_fn_info hsa_fns): New variable.
9776 (hsa_runtime_lib): Likewise.
9777 (support_cpu_devices): Likewise.
9778 (init_enviroment_variables): Load newly introduced ENV
9779 variables.
9780 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
9781 (hsa_fatal): Likewise.
9782 (DLSYM_FN): New macro.
9783 (init_hsa_runtime_functions): New function.
9784 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
9785 structure. Depending on environment, also allow CPU devices.
9786 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
9787 (get_kernarg_memory_region): Likewise.
9788 (GOMP_OFFLOAD_init_device): Likewise.
9789 (destroy_hsa_program): Likewise.
9790 (init_basic_kernel_info): New function.
9791 (GOMP_OFFLOAD_load_image): Use it.
9792 (create_and_finalize_hsa_program): Call hsa run-time functions via
9793 hsa_fns structure.
9794 (create_single_kernel_dispatch): Likewise.
9795 (release_kernel_dispatch): Likewise.
9796 (init_single_kernel): Likewise.
9797 (parse_target_attributes): Allow up multiple HSA grid dimensions.
9798 (get_group_size): New function.
9799 (run_kernel): Likewise.
9800 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
9801 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
9802 structure.
9803 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
9804 * testsuite/libgomp-test-support.exp.in: Likewise.
9805 * Makefile.in: Regenerated.
9806 * aclocal.m4: Likewise.
9807 * config.h.in: Likewise.
9808 * configure: Likewise.
9809 * testsuite/Makefile.in: Likewise.
9810
9811 2016-11-15 Martin Jambor <mjambor@suse.cz>
9812 Alexander Monakov <amonakov@ispras.ru>
9813
9814 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
9815 mapping clauses to target constructs.
9816 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
9817
9818 2016-11-15 Matthias Klose <doko@ubuntu.com>
9819
9820 * configure: Regenerate.
9821
9822 2016-11-10 Jakub Jelinek <jakub@redhat.com>
9823
9824 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
9825 * omp_lib.h.in (openmp_version): Likewise.
9826 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
9827 of 201307.
9828 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9829
9830 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
9831 (fib_wrapper): Add map(from: x) clause.
9832 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
9833 (e_53_2): Likewise.
9834 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
9835 (accum): Add map(tmp) clause.
9836 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
9837 (accum): Add map(tofrom: tmp) clause.
9838 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
9839 (gramSchmidt): Likewise.
9840 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
9841 map(tofrom: sum) clause.
9842 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
9843 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
9844 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
9845 only allowed on the loop iterator.
9846 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
9847 * testsuite/libgomp.fortran/taskloop2.f90: New test.
9848 * testsuite/libgomp.fortran/taskloop4.f90: New test.
9849 * testsuite/libgomp.fortran/doacross1.f90: New test.
9850 * testsuite/libgomp.fortran/doacross3.f90: New test.
9851 * testsuite/libgomp.fortran/taskloop1.f90: New test.
9852 * testsuite/libgomp.fortran/taskloop3.f90: New test.
9853 * testsuite/libgomp.fortran/doacross2.f90: New test.
9854 * testsuite/libgomp.c/doacross-1.c (main): Add missing
9855 #pragma omp atomic read.
9856 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
9857 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
9858
9859 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
9860 Nathan Sidwell <nathan@acm.org>
9861
9862 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
9863 to determine default geometry.
9864 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
9865 dimension.
9866
9867 2016-11-01 Jakub Jelinek <jakub@redhat.com>
9868
9869 * hashtab.h: Use standard GPLv3 with runtime exception
9870 boilerplate.
9871
9872 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
9873
9874 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
9875 size when allocating new thread.
9876
9877 2016-09-14 Marek Polacek <polacek@redhat.com>
9878
9879 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
9880
9881 2016-08-19 Jakub Jelinek <jakub@redhat.com>
9882
9883 PR fortran/71014
9884 * testsuite/libgomp.fortran/pr71014.f90: New test.
9885
9886 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
9887
9888 PR middle-end/70895
9889 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
9890 firstprivate clauses.
9891 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
9892 copy clauses.
9893 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
9894 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
9895 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
9896 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9897 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9898 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
9899 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9900 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9901 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9902 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9903 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9904 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
9905
9906 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
9907
9908 PR fortran/70598
9909 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
9910
9911 2016-08-08 Jakub Jelinek <jakub@redhat.com>
9912
9913 PR c++/58706
9914 * testsuite/libgomp.c++/pr58706.C: New test.
9915
9916 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
9917
9918 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
9919 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
9920 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
9921 Likewise.
9922 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
9923 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
9924 Likewise.
9925 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
9926
9927 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
9928 test, and don't hardcode -O0.
9929
9930 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
9931
9932 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
9933
9934 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
9935
9936 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
9937 test.
9938
9939 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
9940
9941 PR middle-end/71734
9942 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
9943 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
9944
9945 2016-07-01 Jakub Jelinek <jakub@redhat.com>
9946
9947 PR fortran/71717
9948 * testsuite/libgomp.fortran/associate3.f90: New test.
9949
9950 2016-06-17 Jakub Jelinek <jakub@redhat.com>
9951
9952 * testsuite/libgomp.c++/target-21.C: New test.
9953
9954 2016-06-16 Jakub Jelinek <jakub@redhat.com>
9955
9956 * testsuite/libgomp.c++/target-20.C: New test.
9957
9958 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
9959 Cesar Philippidis <cesar@codesourcery.com>
9960
9961 PR middle-end/71373
9962 * libgomp.oacc-c/nested-function-1.c: New file.
9963 * libgomp.oacc-c/nested-function-2.c: Likewise.
9964 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
9965 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
9966 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
9967
9968 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
9969
9970 PR c/71381
9971 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
9972 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
9973 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
9974
9975 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
9976
9977 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
9978 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
9979
9980 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
9981
9982 PR c/70688
9983 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
9984
9985 2016-05-26 Jakub Jelinek <jakub@redhat.com>
9986
9987 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
9988 instead of invalid schedule(static, 0).
9989 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
9990
9991 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
9992
9993 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
9994 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
9995 parameter, use to set async stream around call to gomp_unmap_vars,
9996 call gomp_unmap_vars() with 'do_copyfrom' set to true.
9997 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
9998 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
9999 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
10000 (event_add): Add int parameter, initialize 'val' field when
10001 adding new ptx_event struct.
10002 (nvptx_evec): Adjust event_add() call arguments.
10003 (nvptx_host2dev): Likewise.
10004 (nvptx_dev2host): Likewise.
10005 (nvptx_wait_async): Likewise.
10006 (nvptx_wait_all_async): Likewise.
10007 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
10008 pass to event_add() call.
10009 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
10010 parameter.
10011 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
10012 call openacc.register_async_cleanup_func() hook.
10013 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
10014 * target.c (gomp_copy_from_async): Delete function.
10015 (gomp_map_vars): Remove async_refcount.
10016 (gomp_unmap_vars): Likewise.
10017 (gomp_load_image_to_device): Likewise.
10018 (omp_target_associate_ptr): Likewise.
10019 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
10020 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
10021 (gomp_copy_from_async): Remove.
10022
10023 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
10024
10025 * target.c (gomp_device_copy): New function.
10026 (gomp_copy_host2dev): Likewise.
10027 (gomp_copy_dev2host): Likewise.
10028 (gomp_free_device_memory): Likewise.
10029 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
10030 (gomp_map_pointer): Likewise.
10031 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
10032 NULL value from alloc_func plugin hook.
10033 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
10034 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
10035 (gomp_unmap_vars): Likewise.
10036 (gomp_update): Adjust to call gomp_copy_dev2host and
10037 gomp_copy_host2dev functions.
10038 (gomp_unload_image_from_device): Handle false value from
10039 unload_image_func plugin hook.
10040 (gomp_init_device): Handle false value from init_device_func
10041 plugin hook.
10042 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
10043 (omp_target_free): Adjust to call gomp_free_device_memory.
10044 (omp_target_memcpy): Handle return values from host2dev_func,
10045 dev2host_func, and dev2dev_func plugin hooks.
10046 (omp_target_memcpy_rect_worker): Likewise.
10047 (gomp_target_fini): Handle false value from fini_device_func
10048 plugin hook.
10049 * libgomp.h (struct gomp_device_descr): Adjust return type of
10050 init_device_func, fini_device_func, unload_image_func, free_func,
10051 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
10052 * oacc-init.c (acc_shutdown_1): Handle false value from
10053 fini_device_func plugin hook.
10054 * oacc-host.c (host_init_device): Change return type to bool.
10055 (host_fini_device): Likewise.
10056 (host_unload_image): Likewise.
10057 (host_free): Likewise.
10058 (host_dev2host): Likewise.
10059 (host_host2dev): Likewise.
10060 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
10061 (acc_memcpy_to_device): Likewise.
10062 (acc_memcpy_from_device): Likewise.
10063 (delete_copyout): Add libfnname parameter, handle free_func
10064 hook fatal error case.
10065 (acc_delete): Adjust delete_copyout call.
10066 (acc_copyout): Likewise.
10067 (update_dev_host): Move gomp_mutex_unlock to after
10068 host2dev/dev2host hook calls.
10069
10070 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
10071 to 'hsa_error_msg', for clarity.
10072 (hsa_fatal): Likewise.
10073 (hsa_error): New function.
10074 (init_hsa_context): Change return type to bool, adjust to return
10075 false on error.
10076 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
10077 return value.
10078 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
10079 return false on error.
10080 (get_agent_info): Adjust to return NULL on error.
10081 (destroy_hsa_program): Change return type to bool, adjust to
10082 return false on error.
10083 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
10084 (destroy_module): Change return type to bool, adjust to
10085 return false on error.
10086 (GOMP_OFFLOAD_unload_image): Likewise.
10087 (GOMP_OFFLOAD_fini_device): Likewise.
10088 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
10089 (GOMP_OFFLOAD_free): Change to return false when called.
10090 (GOMP_OFFLOAD_dev2host): Likewise.
10091 (GOMP_OFFLOAD_host2dev): Likewise.
10092 (GOMP_OFFLOAD_dev2dev): Likewise.
10093
10094 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
10095 (CUDA_CALL): Likewise.
10096 (CUDA_CALL_ASSERT): Likewise.
10097 (map_init): Change return type to bool, use CUDA_CALL* macros.
10098 (map_fini): Likewise.
10099 (init_streams_for_device): Change return type to bool, adjust
10100 call to map_init.
10101 (fini_streams_for_device): Change return type to bool, adjust
10102 call to map_fini.
10103 (select_stream_for_async): Release stream_lock before calls to
10104 GOMP_PLUGIN_fatal, adjust call to map_init.
10105 (nvptx_init): Use CUDA_CALL* macros.
10106 (nvptx_attach_host_thread_to_device): Change return type to bool,
10107 use CUDA_CALL* macros.
10108 (nvptx_open_device): Use CUDA_CALL* macros.
10109 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
10110 macros.
10111 (nvptx_get_num_devices): Use CUDA_CALL* macros.
10112 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
10113 (nvptx_exec): Use CUDA_CALL* macros.
10114 (nvptx_alloc): Use CUDA_CALL* macros.
10115 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
10116 (nvptx_host2dev): Likewise.
10117 (nvptx_dev2host): Likewise.
10118 (nvptx_wait): Use CUDA_CALL* macros.
10119 (nvptx_wait_async): Likewise.
10120 (nvptx_wait_all): Likewise.
10121 (nvptx_wait_all_async): Likewise.
10122 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
10123 use CUDA_CALL* macros, adjust call to map_fini.
10124 (GOMP_OFFLOAD_init_device): Change return type to bool,
10125 adjust code accordingly.
10126 (GOMP_OFFLOAD_fini_device): Likewise.
10127 (GOMP_OFFLOAD_load_image): Adjust calls to
10128 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
10129 use CUDA_CALL* macros.
10130 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
10131 return code.
10132 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
10133 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
10134 handle error return.
10135 (GOMP_OFFLOAD_dev2host): Likewise.
10136 (GOMP_OFFLOAD_host2dev): Likewise.
10137 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
10138 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
10139
10140 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
10141
10142 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
10143 (acc_free): Likewise.
10144 (acc_memcpy_to_device): Likewise.
10145 (acc_memcpy_from_device): Likewise.
10146 (acc_deviceptr): Likewise.
10147 (acc_hostptr): Likewise.
10148 (acc_is_present): Likewise.
10149 (acc_map_data): Likewise.
10150 (acc_unmap_data): Likewise.
10151 (present_create_copy): Likewise.
10152 (delete_copyout): Likewise.
10153 (update_dev_host): Likewise.
10154 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
10155 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
10156 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
10157 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10158 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
10159 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
10160 it only runs on nvptx targets.
10161 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10162 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
10163 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10164 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10165 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10166 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10167 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10168 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10169 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10170 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
10171 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10172 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10173 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10174 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10175 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10176 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10177 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10178 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10179 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10180 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10181 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10182 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10183 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10184
10185 2016-05-23 Martin Jambor <mjambor@suse.cz>
10186
10187 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
10188
10189 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
10190
10191 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
10192 to gomp_init_targets_once.
10193 (acc_set_device_type): Remove !cached_base_dev condition on call to
10194 gomp_init_targets_once, move call to before acc_device_lock acquire,
10195 to avoid deadlock.
10196 (acc_get_device_num): Remove !cached_base_dev condition on call to
10197 gomp_init_targets_once.
10198 (acc_set_device_num): Likewise.
10199
10200 2016-05-16 Martin Jambor <mjambor@suse.cz>
10201
10202 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
10203
10204 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
10205
10206 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
10207 expected partitioning.
10208
10209 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
10210
10211 PR middle-end/70626
10212 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
10213 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
10214 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
10215
10216 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
10217
10218 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
10219 non-fatal.
10220
10221 2016-04-19 Jakub Jelinek <jakub@redhat.com>
10222
10223 PR middle-end/70680
10224 * testsuite/libgomp.c/pr70680-1.c: New test.
10225 * testsuite/libgomp.c/pr70680-2.c: New test.
10226
10227 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10228
10229 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
10230 pass parameter variables to subroutines.
10231
10232 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
10233
10234 PR middle-end/70643
10235 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
10236
10237 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
10238
10239 PR testsuite/68242
10240 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
10241 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10242
10243 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
10244
10245 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
10246 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
10247 GOACC_declare prototype.
10248
10249 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
10250 Merge this file, and...
10251 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
10252 ... this file, and...
10253 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
10254 ... this file, and...
10255 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
10256 ... this file, and...
10257 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
10258 ... this file, and...
10259 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
10260 ... this file, and...
10261 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
10262 ... this file, and...
10263 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
10264 ... this file, and...
10265 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
10266 ... this file, and...
10267 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
10268 ... this file, and...
10269 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
10270 ... this file, and...
10271 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
10272 ... this file, and...
10273 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
10274 ... this file into...
10275 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
10276 file.
10277
10278 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
10279 Make failure observable.
10280
10281 2016-04-12 Jakub Jelinek <jakub@redhat.com>
10282
10283 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
10284 field.
10285 * target.c (gomp_target_fallback_firstprivate,
10286 gomp_target_unshare_firstprivate): Removed.
10287 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
10288 before waiting for dependencies.
10289 (gomp_target_task_fn): Don't copy firstprivate vars here.
10290 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
10291 firstprivate_copies here.
10292 (gomp_create_target_task): Don't initialize firstprivate_copies field.
10293 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
10294 explicit/implicit firstprivate.
10295
10296 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
10297
10298 PR lto/70289
10299 PR ipa/70348
10300 PR tree-optimization/70373
10301 PR middle-end/70533
10302 PR middle-end/70534
10303 PR middle-end/70535
10304 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
10305 test.
10306 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
10307 test.
10308 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
10309 test.
10310 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
10311 test.
10312 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
10313 test.
10314 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
10315 test.
10316 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
10317 test.
10318 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
10319 test.
10320 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
10321 test.
10322 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
10323 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
10324 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
10325 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
10326 test.
10327 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
10328 test.
10329 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
10330 test.
10331 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
10332 test.
10333 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
10334 coverage.
10335 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
10336 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
10337 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
10338 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
10339 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
10340 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
10341 coverage.
10342 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10343 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
10344 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
10345 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
10346 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
10347 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
10348 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
10349 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
10350 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
10351 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10352 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10353 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10354 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10355 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10356 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
10357
10358 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
10359 James Norris <jnorris@codesourcery.com>
10360 Nathan Sidwell <nathan@codesourcery.com>
10361 Julian Brown <julian@codesourcery.com>
10362 Cesar Philippidis <cesar@codesourcery.com>
10363 Chung-Lin Tang <cltang@codesourcery.com>
10364 Tom de Vries <tom@codesourcery.com>
10365
10366 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
10367 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
10368 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
10369 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
10370 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10371 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10372 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10373 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
10374 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
10375 XFAIL.
10376 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
10377 Incorporate...
10378 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
10379 file.
10380 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
10381 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
10382 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
10383 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
10384 Likewise.
10385 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
10386 Likewise.
10387 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
10388 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
10389 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
10390 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
10391 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
10392 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
10393 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
10394 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
10395 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
10396 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
10397 Likewise.
10398 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
10399 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
10400 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
10401 file...
10402 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
10403 file into...
10404 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
10405 file. Update.
10406 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
10407 file.
10408 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
10409 Likewise.
10410 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
10411 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
10412 ... this new file. Update.
10413 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
10414 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
10415 ... this new file. Update.
10416 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
10417 file. Incorporate...
10418 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
10419 file, and...
10420 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
10421 file, and...
10422 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
10423 file.
10424 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
10425
10426 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
10427
10428 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
10429 set-torture-options.
10430
10431 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
10432
10433 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
10434 gcc-dg-runtest.
10435 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10436 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
10437 -fno-builtin-acc_on_device instead of -O0.
10438 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
10439 -O0.
10440 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
10441 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
10442 Likewise.
10443 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
10444 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
10445 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
10446 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10447 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10448 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10449 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
10450 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10451 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
10452 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
10453 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
10454 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
10455 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
10456 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
10457 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
10458 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
10459 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
10460 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
10461 Don't specify -O2.
10462 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
10463 Likewise.
10464 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
10465 Likewise.
10466
10467 2016-03-24 Martin Liska <mliska@suse.cz>
10468
10469 * plugin/plugin-hsa.c (packet_store_release): New function
10470 that is taken from the HSA runtime manual.
10471 (GOMP_OFFLOAD_run): Use the function.
10472
10473 2016-03-23 Jakub Jelinek <jakub@redhat.com>
10474
10475 PR c++/70376
10476 * testsuite/libgomp.c++/pr70376.C: New test.
10477
10478 2016-03-23 Tom de Vries <tom@codesourcery.com>
10479
10480 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
10481 initialization of lresult and lvresult.
10482 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
10483
10484 2016-03-23 James Norris <jnorris@codesourcery.com>
10485 Daichi Fukuoka <dc-fukuoka@sgi.com>
10486
10487 PR libgomp/69414
10488 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
10489 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
10490 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
10491 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
10492
10493 2016-03-23 Martin Liska <mliska@suse.cz>
10494
10495 PR hsa/70337
10496 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
10497 argument just in case a dispatched kernel uses that argument.
10498
10499 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
10500
10501 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
10502 -ftree-parallelize-loops/-fopenacc changes.
10503 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
10504 Likewise.
10505 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10506 Likewise.
10507 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
10508 Likewise.
10509 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
10510 Likewise.
10511 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
10512 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
10513
10514 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
10515
10516 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
10517 always_ld_library_path the path to libgcc_s.
10518
10519 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
10520
10521 PR testsuite/70009
10522 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
10523
10524 2016-03-09 Tom de Vries <tom@codesourcery.com>
10525
10526 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
10527 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
10528 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
10529 Same.
10530 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
10531 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
10532 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
10533 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
10534
10535 2016-03-07 Martin Jambor <mjambor@suse.cz>
10536
10537 * testsuite/lib/libgomp.exp
10538 (check_effective_target_hsa_offloading_selected_nocache): New.
10539 (check_effective_target_hsa_offloading_selected): Likewise.
10540 * testsuite/libgomp.hsa.c/c.exp: Likewise.
10541 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
10542 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
10543 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
10544 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
10545 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
10546 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
10547 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
10548 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
10549 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
10550 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
10551 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
10552 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
10553 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
10554 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
10555 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
10556 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
10557
10558 2016-03-07 Martin Jambor <mjambor@suse.cz>
10559
10560 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
10561 non-shared memory accelerators.
10562 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
10563 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
10564 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
10565 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
10566 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10567 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10568 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10569 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10570 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10571
10572 2016-03-07 Martin Jambor <mjambor@suse.cz>
10573
10574 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
10575 ALWAYS_CFLAGS.
10576
10577 2016-03-02 Jakub Jelinek <jakub@redhat.com>
10578
10579 PR libgomp/69555
10580 * testsuite/libgomp.c++/pr69555-1.C: New test.
10581 * testsuite/libgomp.c++/pr69555-2.C: New test.
10582
10583 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
10584 Martin Jambor <mjambor@suse.cz>
10585
10586 * testsuite/lib/libgomp.exp
10587 (check_effective_target_offload_device_shared_as): New proc.
10588 * testsuite/libgomp.c++/declare_target-1.C: New test.
10589
10590 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
10591
10592 PR driver/68463
10593 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
10594
10595 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
10596
10597 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
10598 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
10599 dims.
10600 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
10601 -ftree-parallelize-loops/-fopenacc changes.
10602 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
10603 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
10604 Likewise.
10605 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
10606 Likewise.
10607 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
10608 Likewise.
10609 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
10610 Likewise.
10611 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
10612 Likewise.
10613 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
10614 Likewise.
10615 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
10616 Likewise.
10617 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
10618 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
10619 Likewise.
10620 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
10621 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
10622 Likewise.
10623 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
10624 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
10625 Likewise.
10626
10627 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
10628
10629 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
10630
10631 2016-02-19 Jakub Jelinek <jakub@redhat.com>
10632
10633 PR driver/69805
10634 * testsuite/libgomp.c/pr69805.c: New test.
10635
10636 2016-02-16 Tom de Vries <tom@codesourcery.com>
10637
10638 PR lto/67709
10639 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
10640
10641 2016-02-09 Tom de Vries <tom@codesourcery.com>
10642
10643 PR tree-optimization/69599
10644 * testsuite/libgomp.c/omp-nested-3.c: New test.
10645 * testsuite/libgomp.c/pr46032-2.c: New test.
10646 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
10647 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
10648
10649 2016-02-09 Tom de Vries <tom@codesourcery.com>
10650
10651 PR lto/69707
10652 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
10653
10654 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10655
10656 * testsuite/libgomp.c/target-31.c: Fix testcase.
10657
10658 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10659
10660 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
10661 clause.
10662 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
10663 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
10664 reduction and map clauses.
10665 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10666
10667 2016-02-02 James Norris <jnorris@codesourcery.com>
10668
10669 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
10670
10671 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
10672
10673 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
10674 * oacc-parallel.c (GOACC_host_data): Remove function definition.
10675
10676 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
10677 cases.
10678
10679 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
10680 variables.
10681 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
10682 (hsa_kmt_lib): Set variables.
10683 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
10684 always_ld_library_path.
10685 * Makefile.in: Regenerate.
10686 * configure: Likewise.
10687 * testsuite/Makefile.in: Likewise.
10688
10689 * plugin/configfrag.ac (offload_additional_options)
10690 (offload_additional_lib_paths): Don't amend for hsa offloading.
10691 * configure: Regenerate.
10692
10693 * plugin/configfrag.ac: Don't configure for offloading target if
10694 we don't build the corresponding plugin.
10695 * configure: Regenerate.
10696
10697 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
10698
10699 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
10700 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
10701
10702 2016-01-26 Tom de Vries <tom@codesourcery.com>
10703
10704 PR tree-optimization/69110
10705 * testsuite/libgomp.c/pr69110.c: New test.
10706
10707 2016-01-25 Richard Biener <rguenther@suse.de>
10708
10709 PR lto/69393
10710 * testsuite/libgomp.c++/pr69393.C: New testcase.
10711
10712 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
10713
10714 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
10715 function wasn't mapped to the device with non-shared memory.
10716
10717 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
10718
10719 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
10720
10721 2016-01-19 Martin Jambor <mjambor@suse.cz>
10722 Martin Liska <mliska@suse.cz>
10723
10724 * plugin/Makefrag.am: Add HSA plugin requirements.
10725 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
10726 (HSA_RUNTIME_LIB): Likewise.
10727 (HSA_RUNTIME_CPPFLAGS): Likewise.
10728 (HSA_RUNTIME_INCLUDE): New substitution.
10729 (HSA_RUNTIME_LIB): Likewise.
10730 (HSA_RUNTIME_LDFLAGS): Likewise.
10731 (hsa-runtime): New configure option.
10732 (hsa-runtime-include): Likewise.
10733 (hsa-runtime-lib): Likewise.
10734 (PLUGIN_HSA): New substitution variable.
10735 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
10736 configure options.
10737 (PLUGIN_HSA_CPPFLAGS): Likewise.
10738 (PLUGIN_HSA_LDFLAGS): Likewise.
10739 (PLUGIN_HSA_LIBS): Likewise.
10740 Check that we have access to HSA run-time.
10741 * libgomp-plugin.h (offload_target_type): New element
10742 OFFLOAD_TARGET_TYPE_HSA.
10743 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
10744 args.
10745 (bool gomp_create_target_task): Updated.
10746 (gomp_device_descr): Extra parameter of run_func and async_run_func,
10747 new field can_run_func.
10748 * libgomp_g.h (GOMP_target_ext): Update prototype.
10749 * oacc-host.c (host_run): Added a new parameter args.
10750 * target.c (calculate_firstprivate_requirements): New function.
10751 (copy_firstprivate_data): Likewise.
10752 (gomp_target_fallback_firstprivate): Use them.
10753 (gomp_target_unshare_firstprivate): New function.
10754 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
10755 devices.
10756 (GOMP_target): Do host fallback for all shared memory devices. Do not
10757 pass any args to plugins.
10758 (GOMP_target_ext): Introduce device-specific argument parameter args.
10759 Allow host fallback if device shares memory. Do not remap data if
10760 device has shared memory.
10761 (gomp_target_task_fn): Likewise. Also treat shared memory devices
10762 like host fallback for mappings.
10763 (GOMP_target_data): Treat shared memory devices like host fallback.
10764 (GOMP_target_data_ext): Likewise.
10765 (GOMP_target_update): Likewise.
10766 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
10767 gomp_create_target_task.
10768 (GOMP_target_enter_exit_data): Likewise.
10769 (omp_target_alloc): Treat shared memory devices like host fallback.
10770 (omp_target_free): Likewise.
10771 (omp_target_is_present): Likewise.
10772 (omp_target_memcpy): Likewise.
10773 (omp_target_memcpy_rect): Likewise.
10774 (omp_target_associate_ptr): Likewise.
10775 (gomp_load_plugin_for_device): Also load can_run.
10776 * task.c (GOMP_PLUGIN_target_task_completion): Free
10777 firstprivate_copies.
10778 (gomp_create_target_task): Accept new argument args and store it to
10779 ttask.
10780 * plugin/plugin-hsa.c: New file.
10781
10782 2016-01-18 Tom de Vries <tom@codesourcery.com>
10783
10784 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
10785 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
10786 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
10787 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
10788 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
10789 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
10790 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
10791 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
10792 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
10793 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
10794 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10795 Same.
10796 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10797 Same.
10798 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
10799 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
10800 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
10801 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
10802 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
10803 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
10804 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
10805 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10806 Same.
10807 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
10808
10809 2016-01-15 Jakub Jelinek <jakub@redhat.com>
10810
10811 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
10812
10813 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
10814
10815 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
10816
10817 2016-01-12 James Norris <jnorris@codesourcery.com>
10818
10819 * libgomp.texi: Updates for OpenACC.
10820
10821 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
10822
10823 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
10824
10825 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
10826
10827 PR fortran/66680
10828 * testsuite/libgomp.fortran/pr66680.f90: New test.
10829
10830 2016-01-07 Jakub Jelinek <jakub@redhat.com>
10831
10832 PR middle-end/68960
10833 * testsuite/libgomp.c/pr68960.c: New test.
10834
10835 2016-01-06 Nathan Sidwell <nathan@acm.org>
10836
10837 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
10838 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
10839
10840 2016-01-04 Jakub Jelinek <jakub@redhat.com>
10841
10842 Update copyright years.
10843
10844 * libgomp.texi: Bump @copying's copyright year.
10845
10846 2015-12-31 Nathan Sidwell <nathan@acm.org>
10847
10848 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
10849 dg-additional-options syntax.
10850 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
10851 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
10852 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
10853 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
10854 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
10855 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
10856 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
10857 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
10858 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
10859 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
10860 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
10861 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
10862 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
10863 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
10864 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
10865 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
10866 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
10867 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
10868
10869 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
10870
10871 * libgomp.h (REFCOUNT_LINK): Define.
10872 (struct splay_tree_key_s): Add link_key.
10873 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
10874 Replace target address of the pointer with target address of newly
10875 mapped object in the splay tree. Set link pointer on target to the
10876 device address of the mapped object.
10877 (gomp_unmap_vars): Restore target address of the pointer in the splay
10878 tree for REFCOUNT_LINK objects after unmapping.
10879 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
10880 declare target link" objects.
10881 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
10882 "omp declare target link" objects, which were mapped for the image.
10883 (gomp_exit_data): Restore target address of the pointer in the splay
10884 tree for REFCOUNT_LINK objects after unmapping.
10885 * testsuite/libgomp.c/target-link-1.c: New file.
10886
10887 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
10888
10889 * libgomp.h (gomp_device_state): New enum.
10890 (struct gomp_device_descr): Replace is_initialized with state.
10891 (gomp_fini_device): Remove declaration.
10892 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
10893 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
10894 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
10895 (acc_set_device_type): Use state instead of is_initialized.
10896 (acc_set_device_num): Likewise.
10897 * target.c (resolve_device): Use state instead of is_initialized.
10898 Do not initialize finalized device.
10899 (gomp_map_vars): Do nothing if device is finalized.
10900 (gomp_unmap_vars): Likewise.
10901 (gomp_update): Likewise.
10902 (GOMP_offload_register_ver): Use state instead of is_initialized.
10903 (GOMP_offload_unregister_ver): Likewise.
10904 (gomp_init_device): Likewise.
10905 (gomp_unload_device): Likewise.
10906 (gomp_fini_device): Remove.
10907 (gomp_get_target_fn_addr): Do nothing if device is finalized.
10908 (GOMP_target): Go to host fallback if device is finalized.
10909 (GOMP_target_ext): Likewise.
10910 (gomp_exit_data): Do nothing if device is finalized.
10911 (gomp_target_task_fn): Go to host fallback if device is finalized.
10912 (gomp_target_fini): New static function.
10913 (gomp_target_init): Use state instead of is_initialized.
10914 Call gomp_target_fini at exit.
10915
10916 2015-12-09 Tom de Vries <tom@codesourcery.com>
10917
10918 PR tree-optimization/68716
10919 * testsuite/libgomp.c/omp-nested-2.c: New test.
10920
10921 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
10922
10923 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
10924 target openacc_nvidia_accel_selected.
10925 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
10926 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
10927 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
10928 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
10929
10930 2015-12-01 Julian Brown <julian@codesourcery.com>
10931 James Norris <James_Norris@mentor.com>
10932
10933 * oacc-parallel.c (GOACC_host_data): New function.
10934 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
10935 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
10936 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
10937 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
10938 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
10939 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
10940 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
10941
10942 2015-11-30 James Norris <jnorris@codesourcery.com>
10943 Cesar Philippidis <cesar@codesourcery.com>
10944
10945 libgomp/
10946 * libgomp.oacc-fortran/routine-5.f90: New test.
10947 * libgomp.oacc-fortran/routine-7.f90: New test.
10948 * libgomp.oacc-fortran/routine-9.f90: New test.
10949
10950 2015-11-30 Tom de Vries <tom@codesourcery.com>
10951
10952 PR tree-optimization/46032
10953 * testsuite/libgomp.c/pr46032.c: New test.
10954
10955 2015-11-27 Jakub Jelinek <jakub@redhat.com>
10956
10957 PR libgomp/68579
10958 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
10959 (gomp_create_target_task): Call it before freeing
10960 GOMP_TARGET_TASK_DATA tasks.
10961
10962 PR c/63326
10963 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
10964 in between case label and OpenMP standalone directives.
10965 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
10966
10967 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
10968
10969 * configure: Regenerate.
10970
10971 2015-11-26 Jakub Jelinek <jakub@redhat.com>
10972
10973 * testsuite/libgomp.c/target-35.c: New test.
10974
10975 2015-11-22 James Norris <jnorris@codesourcery.com>
10976 Cesar Philippidis <cesar@codesourcery.com>
10977
10978 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
10979 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
10980 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
10981 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
10982 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
10983
10984 2015-11-20 Jakub Jelinek <jakub@redhat.com>
10985
10986 PR middle-end/68221
10987 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
10988 * testsuite/libgomp.c/reduction-12.c: Likewise.
10989 * testsuite/libgomp.c++/reduction-11.C: Likewise.
10990 * testsuite/libgomp.c++/reduction-12.C: Likewise.
10991
10992 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
10993
10994 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
10995 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
10996 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
10997 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
10998 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
10999 and fix.
11000 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11001 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11002
11003 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
11004
11005 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
11006 worker & gang cases.
11007 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
11008
11009 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
11010
11011 * config/nvptx/priority_queue.c: New file.
11012
11013 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11014
11015 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
11016 sections.
11017
11018 2015-11-14 Jakub Jelinek <jakub@redhat.com>
11019 Aldy Hernandez <aldyh@redhat.com>
11020 Ilya Verbin <ilya.verbin@intel.com>
11021
11022 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
11023 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
11024 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
11025 iterators or IV by chunk size.
11026 * parallel.c (gomp_resolve_num_threads): Don't assume that
11027 if thr->ts.team is non-NULL, then pool must be non-NULL.
11028 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
11029 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
11030 GOMP_PLUGIN_target_task_completion.
11031 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
11032 * Makefile.in: Regenerate.
11033 * libgomp.h: Shuffle prototypes and forward definitions around so
11034 priority queues can be defined.
11035 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
11036 (enum gomp_target_task_state): New enum.
11037 (struct gomp_target_task): Add state, tgt, task and team fields.
11038 (gomp_create_target_task): Change return type to bool, add
11039 state argument.
11040 (gomp_target_task_fn): Change return type to bool.
11041 (struct gomp_device_descr): Add async_run_func.
11042 (struct gomp_task): Remove children, next_child, prev_child,
11043 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
11044 Add pnode field.
11045 (struct gomp_taskgroup): Remove children.
11046 Add taskgroup_queue.
11047 (struct gomp_team): Change task_queue type to a priority queue.
11048 (splay_compare): Define inline.
11049 (priority_queue_offset): New.
11050 (priority_node_to_task): New.
11051 (task_to_priority_node): New.
11052 * oacc-mem.c: Do not include splay-tree.h.
11053 * priority_queue.c: New file.
11054 * priority_queue.h: New file.
11055 * splay-tree.c: Do not include splay-tree.h.
11056 (splay_tree_foreach_internal): New.
11057 (splay_tree_foreach): New.
11058 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
11059 (splay_tree_callback): Define typedef.
11060 * target.c (splay_compare): Move to libgomp.h.
11061 (GOMP_target): Don't adjust *thr in any way around running offloaded
11062 task.
11063 (GOMP_target_ext): Likewise. Handle target nowait.
11064 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
11065 return value from gomp_create_target_task, if false, fallthrough
11066 as if no dependencies exist.
11067 (gomp_target_task_fn): Change return type to bool, return true
11068 if the task should have another part scheduled later. Handle
11069 target nowait.
11070 (gomp_load_plugin_for_device): Initialize async_run.
11071 * task.c (gomp_init_task): Initialize children_queue.
11072 (gomp_clear_parent_in_list): New.
11073 (gomp_clear_parent_in_tree): New.
11074 (gomp_clear_parent): Handle priorities.
11075 (GOMP_task): Likewise.
11076 (priority_queue_move_task_first,
11077 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
11078 New functions.
11079 (gomp_create_target_task): Use priority queues. Change return type
11080 to bool, add state argument, return false if for async
11081 {{enter,exit} data,update} constructs no dependencies need to be
11082 waited for, handle target nowait. Set task->fn to NULL instead of
11083 gomp_target_task_fn.
11084 (verify_children_queue): Remove.
11085 (priority_list_upgrade_task): New.
11086 (priority_queue_upgrade_task): New.
11087 (verify_task_queue): Remove.
11088 (priority_list_downgrade_task): New.
11089 (priority_queue_downgrade_task): New.
11090 (gomp_task_run_pre): Use priority queues.
11091 Abstract code out to priority_queue_downgrade_task.
11092 (gomp_task_run_post_handle_dependers): Use priority queues.
11093 (gomp_task_run_post_remove_parent): Likewise.
11094 (gomp_task_run_post_remove_taskgroup): Likewise.
11095 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
11096 tasks specially.
11097 (GOMP_taskwait): Likewise.
11098 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
11099 priority-queue_upgrade_task.
11100 (GOMP_taskgroup_start): Use priority queues.
11101 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
11102 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
11103 barrier.
11104 * taskloop.c (GOMP_taskloop): Handle priorities.
11105 * team.c (gomp_new_team): Call priority_queue_init.
11106 (free_team): Call priority_queue_free.
11107 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
11108 team created for target nowait in implicit parallel region.
11109 (gomp_team_start): For nested check, test thr->ts.level instead of
11110 thr->ts.team != NULL.
11111 * testsuite/libgomp.c/doacross-3.c: New test.
11112 * testsuite/libgomp.c/ordered-5.c: New test.
11113 * testsuite/libgomp.c/priority.c: New test.
11114 * testsuite/libgomp.c/target-31.c: New test.
11115 * testsuite/libgomp.c/target-32.c: New test.
11116 * testsuite/libgomp.c/target-33.c: New test.
11117 * testsuite/libgomp.c/target-34.c: New test.
11118
11119 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11120
11121 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
11122
11123 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
11124 loop is sequential.
11125
11126 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
11127
11128 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
11129 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
11130
11131 2015-11-12 James Norris <jnorris@codesourcery.com>
11132 Joseph Myers <joseph@codesourcery.com>
11133
11134 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
11135 * oacc-parallel.c (GOACC_declare): New function.
11136 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
11137 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
11138 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
11139 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
11140 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
11141
11142 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
11143
11144 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
11145
11146 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
11147
11148 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
11149 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
11150
11151 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11152
11153 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
11154 inadvertent commit.
11155
11156 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
11157
11158 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
11159 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
11160 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
11161 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
11162 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
11163
11164 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
11165
11166 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
11167 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
11168
11169 2015-11-05 Jakub Jelinek <jakub@redhat.com>
11170 Ilya Verbin <ilya.verbin@intel.com>
11171
11172 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
11173 GOMP_loop_nonmonotonic_dynamic_start,
11174 GOMP_loop_nonmonotonic_guided_next,
11175 GOMP_loop_nonmonotonic_guided_start,
11176 GOMP_loop_ull_nonmonotonic_dynamic_next,
11177 GOMP_loop_ull_nonmonotonic_dynamic_start,
11178 GOMP_loop_ull_nonmonotonic_guided_next,
11179 GOMP_loop_ull_nonmonotonic_guided_start,
11180 GOMP_parallel_loop_nonmonotonic_dynamic,
11181 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
11182 (GOMP_target_41): Renamed to ...
11183 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11184 arguments.
11185 (GOMP_target_data_41): Renamed to ...
11186 (GOMP_target_data_ext): ... this.
11187 (GOMP_target_update_41): Renamed to ...
11188 (GOMP_target_update_ext): ... this.
11189 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
11190 GOMP_target_data_ext and GOMP_target_update_ext instead of
11191 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
11192 Export GOMP_loop_nonmonotonic_dynamic_next,
11193 GOMP_loop_nonmonotonic_dynamic_start,
11194 GOMP_loop_nonmonotonic_guided_next,
11195 GOMP_loop_nonmonotonic_guided_start,
11196 GOMP_loop_ull_nonmonotonic_dynamic_next,
11197 GOMP_loop_ull_nonmonotonic_dynamic_start,
11198 GOMP_loop_ull_nonmonotonic_guided_next,
11199 GOMP_loop_ull_nonmonotonic_guided_start,
11200 GOMP_parallel_loop_nonmonotonic_dynamic and
11201 GOMP_parallel_loop_nonmonotonic_guided.
11202 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
11203 GOMP_parallel_loop_nonmonotonic_guided,
11204 GOMP_loop_nonmonotonic_dynamic_start,
11205 GOMP_loop_nonmonotonic_guided_start,
11206 GOMP_loop_nonmonotonic_dynamic_next,
11207 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
11208 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
11209 GOMP_loop_ull_nonmonotonic_guided_start,
11210 GOMP_loop_ull_nonmonotonic_dynamic_next,
11211 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
11212 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
11213 functions.
11214 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
11215 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
11216 Use gomp_map_val function.
11217 (gomp_target_fallback_firstprivate): New static function.
11218 (GOMP_target_41): Renamed to ...
11219 (GOMP_target_ext): ... this. Add num_teams and thread_limit
11220 arguments. Move firstprivate fallback handling into a new
11221 function.
11222 (GOMP_target_data_41): Renamed to ...
11223 (GOMP_target_data_ext): ... this.
11224 (GOMP_target_update_41): Renamed to ...
11225 (GOMP_target_update_ext): ... this.
11226 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
11227 gomp_map_0len_lookup instead of gomp_map_lookup.
11228 (omp_target_is_present): Use gomp_map_0len_lookup instead of
11229 gomp_map_lookup.
11230 * testsuite/libgomp.c/target-28.c: Likewise.
11231 * testsuite/libgomp.c/monotonic-1.c: New test.
11232 * testsuite/libgomp.c/monotonic-2.c: New test.
11233 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
11234 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
11235 * testsuite/libgomp.c/pr66199-5.c: New test.
11236 * testsuite/libgomp.c/pr66199-6.c: New test.
11237 * testsuite/libgomp.c/pr66199-7.c: New test.
11238 * testsuite/libgomp.c/pr66199-8.c: New test.
11239 * testsuite/libgomp.c/pr66199-9.c: New test.
11240 * testsuite/libgomp.c/reduction-11.c: New test.
11241 * testsuite/libgomp.c/reduction-12.c: New test.
11242 * testsuite/libgomp.c/reduction-13.c: New test.
11243 * testsuite/libgomp.c/reduction-14.c: New test.
11244 * testsuite/libgomp.c/reduction-15.c: New test.
11245 * testsuite/libgomp.c/target-12.c (main): Adjust for
11246 omp_target_is_present change for one-past-last element.
11247 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
11248 the same var is both mapped and privatized.
11249 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
11250 handling of zero-length array sections.
11251 * testsuite/libgomp.c/target-28.c: New test.
11252 * testsuite/libgomp.c/target-29.c: New test.
11253 * testsuite/libgomp.c/target-30.c: New test.
11254 * testsuite/libgomp.c/target-teams-1.c: New test.
11255 * testsuite/libgomp.c++/member-6.C: New test.
11256 * testsuite/libgomp.c++/member-7.C: New test.
11257 * testsuite/libgomp.c++/monotonic-1.C: New test.
11258 * testsuite/libgomp.c++/monotonic-2.C: New test.
11259 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
11260 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
11261 * testsuite/libgomp.c++/pr66199-3.C: New test.
11262 * testsuite/libgomp.c++/pr66199-4.C: New test.
11263 * testsuite/libgomp.c++/pr66199-5.C: New test.
11264 * testsuite/libgomp.c++/pr66199-6.C: New test.
11265 * testsuite/libgomp.c++/pr66199-7.C: New test.
11266 * testsuite/libgomp.c++/pr66199-8.C: New test.
11267 * testsuite/libgomp.c++/pr66199-9.C: New test.
11268 * testsuite/libgomp.c++/reduction-11.C: New test.
11269 * testsuite/libgomp.c++/reduction-12.C: New test.
11270 * testsuite/libgomp.c++/target-13.C: New test.
11271 * testsuite/libgomp.c++/target-14.C: New test.
11272 * testsuite/libgomp.c++/target-15.C: New test.
11273 * testsuite/libgomp.c++/target-16.C: New test.
11274 * testsuite/libgomp.c++/target-17.C: New test.
11275 * testsuite/libgomp.c++/target-18.C: New test.
11276 * testsuite/libgomp.c++/target-19.C: New test.
11277
11278 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
11279
11280 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
11281 and reduction copy.
11282 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11283 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11284 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11285 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11286 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
11287 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11288 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11289 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11290 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11291 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
11292 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11293 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11294 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11295 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
11296
11297 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
11298
11299 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
11300 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
11301 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
11302 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
11303 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
11304 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
11305 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
11306 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
11307
11308 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
11309
11310 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
11311 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
11312 (GOMP_OFFLOAD_openacc_parallel): Likewise.
11313 * oacc-host.c (host_openacc_exec): Likewise.
11314 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
11315
11316 2015-11-03 Julian Brown <julian@codesourcery.com>
11317 Thomas Schwinge <thomas@codesourcery.com>
11318
11319 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
11320 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
11321 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
11322 Likewise.
11323 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
11324 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
11325
11326 2015-11-03 James Norris <jnorris@codesourcery.com>
11327
11328 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
11329 file.
11330 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
11331 Likewise.
11332 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
11333 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
11334 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11335 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
11336 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11337
11338 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
11339
11340 * openacc.h (enum acc_device_t): Reformat. Ensure layout
11341 compatibility.
11342 (enum acc_async_t): Reformat.
11343 (acc_on_device): Declare compatible with builtin and provide C++
11344 wrapper.
11345 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
11346
11347 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
11348 Cesar Philippidis <cesar@codesourcery.com>
11349
11350 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
11351 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
11352 ... this. Add a description of the test at the top of the file.
11353 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
11354 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
11355 ... this. Add a description of the test at the top of the file.
11356
11357 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
11358
11359 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
11360 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
11361 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
11362 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
11363 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
11364 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
11365
11366 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
11367
11368 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
11369 dimensions.
11370
11371 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
11372
11373 PR testsuite/68063
11374 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
11375
11376 2015-10-27 James Norris <jnorris@codesourcery.com>
11377
11378 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
11379 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
11380
11381 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
11382
11383 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
11384 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11385
11386 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
11387 acc_device_nvidia usage.
11388 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11389 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11390 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11391
11392 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
11393 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
11394
11395 PR libgomp/66518
11396 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
11397
11398 PR libgomp/65437
11399 PR libgomp/66518
11400 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
11401 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
11402
11403 2015-10-23 Tom de Vries <tom@codesourcery.com>
11404
11405 PR testsuite/68063
11406 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
11407
11408 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
11409
11410 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
11411 vector_length.
11412 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11413
11414 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
11415 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
11416
11417 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
11418 to 0 when mapnum is 0.
11419
11420 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
11421
11422 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
11423 Cast to int from int32_t.
11424
11425 2015-10-13 Jakub Jelinek <jakub@redhat.com>
11426 Aldy Hernandez <aldyh@redhat.com>
11427 Ilya Verbin <ilya.verbin@intel.com>
11428
11429 * config/linux/affinity.c (omp_get_place_num_procs,
11430 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11431 * config/linux/doacross.h: New file.
11432 * config/posix/affinity.c (omp_get_place_num_procs,
11433 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
11434 * config/posix/doacross.h: New file.
11435 * env.c: Include gomp-constants.h.
11436 (struct gomp_task_icv): Rename run_sched_modifier to
11437 run_sched_chunk_size.
11438 (gomp_max_task_priority_var): New variable.
11439 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
11440 (handle_omp_display_env): Change _OPENMP value from 201307 to
11441 201511. Print OMP_MAX_TASK_PRIORITY.
11442 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
11443 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
11444 chunk_size and run_sched_modifier to run_sched_chunk_size.
11445 (omp_get_max_task_priority, omp_get_initial_device,
11446 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
11447 omp_get_partition_place_nums): New functions.
11448 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
11449 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
11450 to chunk_size.
11451 (omp_get_num_places_, omp_get_place_num_procs_,
11452 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
11453 omp_get_place_proc_ids_8_, omp_get_place_num_,
11454 omp_get_partition_num_places_, omp_get_partition_place_nums_,
11455 omp_get_partition_place_nums_8_, omp_get_initial_device_,
11456 omp_get_max_task_priority_): New functions.
11457 * libgomp_g.h (GOMP_loop_doacross_static_start,
11458 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
11459 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
11460 GOMP_loop_ull_doacross_dynamic_start,
11461 GOMP_loop_ull_doacross_guided_start,
11462 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
11463 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
11464 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
11465 GOMP_target_data_41, GOMP_target_update_41,
11466 GOMP_target_enter_exit_data): New prototypes.
11467 (GOMP_task): Add prototype argument.
11468 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
11469 (struct gomp_doacross_work_share): New type.
11470 (struct gomp_work_share): Add doacross field.
11471 (struct gomp_task_icv): Rename run_sched_modifier to
11472 run_sched_chunk_size.
11473 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
11474 GOMP_TASK_UNDEFERRED. Add comments.
11475 (struct gomp_task_depend_entry): Add comments.
11476 (struct gomp_task): Likewise.
11477 (struct gomp_taskgroup): Likewise.
11478 (struct gomp_target_task): New type.
11479 (struct gomp_team): Add comment.
11480 (gomp_get_place_proc_ids_8, gomp_doacross_init,
11481 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
11482 gomp_create_target_task, gomp_target_task_fn): New prototypes.
11483 (struct target_var_desc): New type.
11484 (struct target_mem_desc): Adjust comment. Use struct
11485 target_var_desc instead of splay_tree_key for list.
11486 (REFCOUNT_INFINITY): Define.
11487 (struct splay_tree_key_s): Remove copy_from field.
11488 (struct gomp_device_descr): Add dev2dev_func field.
11489 (enum gomp_map_vars_kind): New enum.
11490 (gomp_map_vars): Add one argument.
11491 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
11492 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
11493 omp_get_place_num_procs, omp_get_place_num_procs_,
11494 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
11495 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
11496 omp_get_place_num_, omp_get_partition_num_places,
11497 omp_get_partition_num_places_, omp_get_partition_place_nums,
11498 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
11499 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
11500 omp_target_free, omp_target_is_present, omp_target_memcpy,
11501 omp_target_memcpy_rect, omp_target_associate_ptr and
11502 omp_target_disassociate_ptr.
11503 (GOMP_4.0.2): Renamed to ...
11504 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
11505 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
11506 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
11507 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11508 GOMP_loop_doacross_static_start, GOMP_doacross_post,
11509 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
11510 GOMP_loop_ull_doacross_guided_start,
11511 GOMP_loop_ull_doacross_runtime_start,
11512 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
11513 GOMP_doacross_ull_wait.
11514 * libgomp.texi: Document omp_get_max_task_priority.
11515 Rename modifier argument to chunk_size for omp_set_schedule and
11516 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
11517 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
11518 to run_sched_chunk_size renaming.
11519 (GOMP_loop_ordered_runtime_start): Likewise.
11520 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
11521 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
11522 GOMP_parallel_loop_runtime_start): New functions.
11523 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
11524 to run_sched_chunk_size renaming.
11525 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
11526 GOMP_loop_doacross_guided_start): New functions or aliases.
11527 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
11528 run_sched_modifier to run_sched_chunk_size renaming.
11529 (GOMP_loop_ull_ordered_runtime_start): Likewise.
11530 (gomp_loop_ull_doacross_static_start,
11531 gomp_loop_ull_doacross_dynamic_start,
11532 gomp_loop_ull_doacross_guided_start,
11533 GOMP_loop_ull_doacross_runtime_start): New functions.
11534 (GOMP_loop_ull_doacross_static_start,
11535 GOMP_loop_ull_doacross_dynamic_start,
11536 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
11537 * oacc-mem.c (acc_map_data, present_create_copy,
11538 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
11539 to gomp_map_vars.
11540 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
11541 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
11542 instead of false to gomp_map_vars.
11543 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
11544 * omp.h.in (omp_lock_hint_t): New type.
11545 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11546 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11547 omp_get_place_num, omp_get_partition_num_places,
11548 omp_get_partition_place_nums, omp_get_initial_device,
11549 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
11550 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
11551 omp_target_associate_ptr, omp_target_disassociate_ptr): New
11552 prototypes.
11553 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
11554 (omp_lock_hint_none, omp_lock_hint_uncontended,
11555 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11556 omp_lock_hint_speculative): New parameters.
11557 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11558 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11559 omp_get_place_num, omp_get_partition_num_places,
11560 omp_get_partition_place_nums, omp_get_initial_device,
11561 omp_get_max_task_priority): New interfaces.
11562 (omp_set_schedule, omp_get_schedule): Rename modifier argument
11563 to chunk_size.
11564 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
11565 (omp_lock_hint_none, omp_lock_hint_uncontended,
11566 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
11567 omp_lock_hint_speculative): New parameters.
11568 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
11569 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
11570 omp_get_place_num, omp_get_partition_num_places,
11571 omp_get_partition_place_nums, omp_get_initial_device,
11572 omp_get_max_task_priority): New functions and subroutines.
11573 * ordered.c: Include stdarg.h and string.h.
11574 (MAX_COLLAPSED_BITS): Define.
11575 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
11576 gomp_doacross_ull_init, GOMP_doacross_ull_post,
11577 GOMP_doacross_ull_wait): New functions.
11578 * target.c: Include errno.h.
11579 (resolve_device): If device is not initialized, call
11580 gomp_init_device on it.
11581 (gomp_map_lookup): New function.
11582 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
11583 Don't bump refcount if REFCOUNT_INFINITY. Handle
11584 GOMP_MAP_ALWAYS_TO_P.
11585 (get_kind): Rename is_openacc argument to short_mapkind.
11586 (gomp_map_pointer): Use gomp_map_lookup.
11587 (gomp_map_fields_existing): New function.
11588 (gomp_map_vars): Rename is_openacc argument to short_mapkind
11589 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
11590 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
11591 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
11592 Adjust for tgt->list changed type and copy_from living in there.
11593 (gomp_copy_from_async): Adjust for tgt->list changed type and
11594 copy_from living in there.
11595 (gomp_unmap_vars): Likewise.
11596 (gomp_update): Likewise. Rename is_openacc argument to
11597 short_mapkind. Don't fail if object is not mapped.
11598 (gomp_load_image_to_device): Initialize refcount to
11599 REFCOUNT_INFINITY.
11600 (gomp_target_fallback): New function.
11601 (gomp_get_target_fn_addr): Likewise.
11602 (GOMP_target): Adjust gomp_map_vars caller, use
11603 gomp_get_target_fn_addr and gomp_target_fallback.
11604 (GOMP_target_41): New function.
11605 (gomp_target_data_fallback): New function.
11606 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
11607 (GOMP_target_data_41): New function.
11608 (GOMP_target_update): Adjust gomp_update caller.
11609 (GOMP_target_update_41): New function.
11610 (gomp_exit_data, GOMP_target_enter_exit_data,
11611 gomp_target_task_fn, omp_target_alloc, omp_target_free,
11612 omp_target_is_present, omp_target_memcpy,
11613 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
11614 omp_target_associate_ptr, omp_target_disassociate_ptr,
11615 gomp_load_plugin_for_device): New functions.
11616 * task.c: Include gomp-constants.h. Include taskloop.c
11617 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
11618 (gomp_task_handle_depend): New function.
11619 (GOMP_task): Use it. Add priority argument. Use
11620 gomp-constant.h constants instead of hardcoded numbers.
11621 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
11622 (gomp_create_target_task): New function.
11623 (verify_children_queue, verify_taskgroup_queue,
11624 verify_task_queue): New functions.
11625 (gomp_task_run_pre): Call verify_*_queue functions.
11626 If an upcoming tied task is about to leave the sibling or
11627 taskgroup queues in an invalid state, adjust appropriately.
11628 Remove taskgroup argument. Add comments.
11629 (gomp_task_run_post_handle_dependers): Add comments.
11630 (gomp_task_run_post_remove_parent): Likewise.
11631 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
11632 (GOMP_taskwait): Likewise. Add comments.
11633 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
11634 problem such that the first non parent_depends_on task does not
11635 end up at the end of the children queue.
11636 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
11637 GOMP_TASK_UNDEFERRED.
11638 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
11639 * taskloop.c: New file.
11640 * testsuite/lib/libgomp.exp
11641 (check_effective_target_offload_device_nonshared_as): New proc.
11642 * testsuite/libgomp.c/affinity-2.c: New test.
11643 * testsuite/libgomp.c/doacross-1.c: New test.
11644 * testsuite/libgomp.c/doacross-2.c: New test.
11645 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
11646 Add map clause to target.
11647 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
11648 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
11649 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
11650 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
11651 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
11652 Likewise.
11653 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
11654 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
11655 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
11656 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
11657 not defined. Use those where needed.
11658 * testsuite/libgomp.c/for-4.c: New test.
11659 * testsuite/libgomp.c/for-5.c: New test.
11660 * testsuite/libgomp.c/for-6.c: New test.
11661 * testsuite/libgomp.c/linear-1.c: New test.
11662 * testsuite/libgomp.c/ordered-4.c: New test.
11663 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
11664 only allowed on the loop iterator.
11665 * testsuite/libgomp.c/pr66199-3.c: New test.
11666 * testsuite/libgomp.c/pr66199-4.c: New test.
11667 * testsuite/libgomp.c/reduction-7.c: New test.
11668 * testsuite/libgomp.c/reduction-8.c: New test.
11669 * testsuite/libgomp.c/reduction-9.c: New test.
11670 * testsuite/libgomp.c/reduction-10.c: New test.
11671 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
11672 map(tofrom:s).
11673 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
11674 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
11675 * testsuite/libgomp.c/target-11.c: New test.
11676 * testsuite/libgomp.c/target-12.c: New test.
11677 * testsuite/libgomp.c/target-13.c: New test.
11678 * testsuite/libgomp.c/target-14.c: New test.
11679 * testsuite/libgomp.c/target-15.c: New test.
11680 * testsuite/libgomp.c/target-16.c: New test.
11681 * testsuite/libgomp.c/target-17.c: New test.
11682 * testsuite/libgomp.c/target-18.c: New test.
11683 * testsuite/libgomp.c/target-19.c: New test.
11684 * testsuite/libgomp.c/target-20.c: New test.
11685 * testsuite/libgomp.c/target-21.c: New test.
11686 * testsuite/libgomp.c/target-22.c: New test.
11687 * testsuite/libgomp.c/target-23.c: New test.
11688 * testsuite/libgomp.c/target-24.c: New test.
11689 * testsuite/libgomp.c/target-25.c: New test.
11690 * testsuite/libgomp.c/target-26.c: New test.
11691 * testsuite/libgomp.c/target-27.c: New test.
11692 * testsuite/libgomp.c/taskloop-1.c: New test.
11693 * testsuite/libgomp.c/taskloop-2.c: New test.
11694 * testsuite/libgomp.c/taskloop-3.c: New test.
11695 * testsuite/libgomp.c/taskloop-4.c: New test.
11696 * testsuite/libgomp.c++/ctor-13.C: New test.
11697 * testsuite/libgomp.c++/doacross-1.C: New test.
11698 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
11699 Replace offload_device with offload_device_nonshared_as.
11700 * testsuite/libgomp.c++/for-12.C: New test.
11701 * testsuite/libgomp.c++/for-13.C: New test.
11702 * testsuite/libgomp.c++/for-14.C: New test.
11703 * testsuite/libgomp.c++/linear-1.C: New test.
11704 * testsuite/libgomp.c++/member-1.C: New test.
11705 * testsuite/libgomp.c++/member-2.C: New test.
11706 * testsuite/libgomp.c++/member-3.C: New test.
11707 * testsuite/libgomp.c++/member-4.C: New test.
11708 * testsuite/libgomp.c++/member-5.C: New test.
11709 * testsuite/libgomp.c++/ordered-1.C: New test.
11710 * testsuite/libgomp.c++/reduction-5.C: New test.
11711 * testsuite/libgomp.c++/reduction-6.C: New test.
11712 * testsuite/libgomp.c++/reduction-7.C: New test.
11713 * testsuite/libgomp.c++/reduction-8.C: New test.
11714 * testsuite/libgomp.c++/reduction-9.C: New test.
11715 * testsuite/libgomp.c++/reduction-10.C: New test.
11716 * testsuite/libgomp.c++/reference-1.C: New test.
11717 * testsuite/libgomp.c++/simd14.C: New test.
11718 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
11719 * testsuite/libgomp.c++/target-5.C: New test.
11720 * testsuite/libgomp.c++/target-6.C: New test.
11721 * testsuite/libgomp.c++/target-7.C: New test.
11722 * testsuite/libgomp.c++/target-8.C: New test.
11723 * testsuite/libgomp.c++/target-9.C: New test.
11724 * testsuite/libgomp.c++/target-10.C: New test.
11725 * testsuite/libgomp.c++/target-11.C: New test.
11726 * testsuite/libgomp.c++/target-12.C: New test.
11727 * testsuite/libgomp.c++/taskloop-1.C: New test.
11728 * testsuite/libgomp.c++/taskloop-2.C: New test.
11729 * testsuite/libgomp.c++/taskloop-3.C: New test.
11730 * testsuite/libgomp.c++/taskloop-4.C: New test.
11731 * testsuite/libgomp.c++/taskloop-5.C: New test.
11732 * testsuite/libgomp.c++/taskloop-6.C: New test.
11733 * testsuite/libgomp.c++/taskloop-7.C: New test.
11734 * testsuite/libgomp.c++/taskloop-8.C: New test.
11735 * testsuite/libgomp.c++/taskloop-9.C: New test.
11736 * testsuite/libgomp.fortran/affinity1.f90: New test.
11737 * testsuite/libgomp.fortran/affinity2.f90: New test.
11738
11739 2015-10-13 Tom de Vries <tom@codesourcery.com>
11740
11741 PR tree-optimization/67476
11742 * testsuite/libgomp.c/autopar-3.c: New test.
11743 * testsuite/libgomp.c/autopar-4.c: New test.
11744 * testsuite/libgomp.c/autopar-5.c: New test.
11745 * testsuite/libgomp.c/autopar-6.c: New test.
11746 * testsuite/libgomp.c/autopar-7.c: New test.
11747 * testsuite/libgomp.c/autopar-8.c: New test.
11748
11749 2015-10-12 James Norris <jnorris@codesourcery.com>
11750
11751 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
11752 initializer.
11753
11754 2015-10-09 David Malcolm <dmalcolm@redhat.com>
11755
11756 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
11757 using load_gcc_lib.
11758
11759 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11760
11761 * oacc-ptx.h: Remove file, moving its content into...
11762 * config/nvptx/fortran.c: ... here...
11763 * config/nvptx/oacc-init.c: ..., here...
11764 * config/nvptx/oacc-parallel.c: ..., and here.
11765 * config/nvptx/openacc.f90: New file.
11766 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
11767 (link_ptx): Don't link in predefined bits of PTX code.
11768
11769 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11770 Bernd Schmidt <bernds@codesourcery.com>
11771
11772 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
11773 (struct targ_ptx_obj): New.
11774 (nvptx_tdata): Move earlier, change data format.
11775 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
11776 objects.
11777 (GOMP_OFFLOAD_load_image): Adjust.
11778
11779 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
11780
11781 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
11782 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11783 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11784 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11785 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11786 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11787 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11788 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11789 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11790 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11791 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11792 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11793 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11794 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11795 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11796 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11797 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11798 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11799 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11800 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11801 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11802 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11803 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11804 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11805 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11806 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11807 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11808 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11809 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11810 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11811 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11812 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11813 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11814 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11815 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11816 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11817 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11818 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11819 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11820 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11821 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11822 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11823 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11824 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11825 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11826 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11827 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11828 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11829 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11830 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11831 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11832 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11833 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11834 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11835 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11836 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11837 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11838 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11839 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11840 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11841 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11842 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11843 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11844
11845 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11846
11847 * oacc-init.c (acc_on_device): Force optimization level.
11848
11849 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
11850
11851 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
11852 (cuda_errlist): Delete.
11853 (cuda_error): Reimplement.
11854
11855 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
11856
11857 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
11858 array.
11859 * libgomp.map (GOACC_parallel_keyed): New.
11860 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
11861 all callers.
11862 (GOACC_parallel_keyed): New interface. Lose geometry arguments
11863 and take keyed varargs list. Adjust call to exec_func.
11864 (GOACC_parallel): Force host fallback.
11865 * libgomp_g.h (GOACC_parallel): Remove.
11866 (GOACC_parallel_keyed): Declare.
11867 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
11868 (struct targ_gn_descriptor): Replace name field with launch field.
11869 (nvptx_exec): Lose separate geometry args, take array. Process
11870 dynamic dimensions and adjust.
11871 (struct nvptx_tdata): Replace fn_names field with fn_descs.
11872 (GOMP_OFFLOAD_load_image): Adjust for change in function table
11873 data.
11874 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
11875 passing.
11876 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
11877 passing.
11878
11879 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11880
11881 PR libgomp/67141
11882 * oacc-int.h (goacc_host_init): Add declaration.
11883 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
11884 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
11885
11886 2015-09-08 Aditya Kumar <hiraditya@msn.com>
11887 Sebastian Pop <s.pop@samsung.com>
11888
11889 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
11890 match o/p.
11891 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
11892 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
11893 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
11894 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
11895 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
11896
11897 2015-09-03 Jakub Jelinek <jakub@redhat.com>
11898
11899 * configure.tgt: Add missing ;; in between nvptx and rtems
11900 snippets.
11901
11902 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11903
11904 * config/posix/pool.h (gomp_adjust_thread_attr): New.
11905 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
11906 (gomp_thread_pool_reservoir): Add priority member.
11907 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
11908 priority.
11909 (parse_thread_pools): Likewise.
11910 * team.c (gomp_team_start): Call configuration provided
11911 gomp_adjust_thread_attr(). Destroy thread attributes if
11912 necessary.
11913 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
11914
11915 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11916
11917 * config/posix/pool.h: New.
11918 * config/rtems/pool.h: Likewise.
11919 * config/rtems/proc.c: Likewise.
11920 * libgomp.h (gomp_thread_destructor): Declare.
11921 * team.c: Include configuration provided "pool.h".
11922 (gomp_get_thread_pool): Define in configuration.
11923 (gomp_team_end): Call configuration defined
11924 gomp_release_thread_pool().
11925
11926 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11927
11928 * config/rtems/bar.c: New.
11929 * config/rtems/bar.h: Likewise.
11930 * config/rtems/mutex.c: Likewise.
11931 * config/rtems/mutex.h: Likewise.
11932 * config/rtems/sem.c: Likewise.
11933 * config/rtems/sem.h: Likewise.
11934 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
11935 <sys/lock.h> header file.
11936 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
11937 supported by Newlib.
11938 * configure: Regenerate.
11939
11940 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
11941
11942 * team.c (gomp_new_thread_pool): Delete and move content to ...
11943 (gomp_get_thread_pool): ... new function. Allocate and
11944 initialize thread pool on demand.
11945 (get_last_team): Use gomp_get_thread_pool().
11946 (gomp_team_start): Delete thread pool initialization.
11947
11948 2015-09-03 Tom de Vries <tom@codesourcery.com>
11949
11950 PR tree-optimization/65637
11951 * testsuite/libgomp.c/autopar-2.c: New test.
11952
11953 2015-08-29 Tom de Vries <tom@codesourcery.com>
11954
11955 PR tree-optimization/46193
11956 * testsuite/libgomp.c/pr46193.c: New test.
11957
11958 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
11959
11960 libgomp/
11961 * libgomp.map: Add 4.0.2 version.
11962 * target.c (offload_image_descr): Add version field.
11963 (gomp_load_image_to_device): Add version argument. Adjust plugin
11964 call. Improve load mismatch diagnostic.
11965 (gomp_unload_image_from_device): Add version argument. Adjust plugin
11966 call.
11967 (GOMP_offload_regster): Make stub function, move bulk to ...
11968 (GOMP_offload_register_ver): ... here. Process version argument.
11969 (GOMP_offload_unregister): Make stub function, move bulk to ...
11970 (GOMP_offload_unregister_ver): ... here. Process version argument.
11971 (gomp_init_device): Process version field.
11972 (gomp_unload_device): Process version field.
11973 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
11974 macros. Check plugin version.
11975 * libgomp.h (gomp_device_descr): Add version function field. Adjust
11976 loader and unloader types.
11977 * oacc-host.c: Include gomp-constants.h.
11978 (host_version): New.
11979 (host_load_image, host_unload_image): Adjust.
11980 (host_dispatch): Add host_version.
11981 * plugin/plugin-nvptx.c: Include gomp-constants.h.
11982 (GOMP_OFFLOAD_version): New.
11983 (GOMP_OFFLOAD_load_image): Add version arg and check it.
11984 (GOMP_OFFLOAD_unload_image): Likewise.
11985 * plugin/plugin-host.c: Include gomp-constants.h.
11986 (GOMP_OFFLOAD_version): New.
11987 (GOMP_OFFLOAD_load_image): Add version arg.
11988 (GOMP_OFFLOAD_unload_image): Likewise.
11989
11990 2015-08-24 Tom de Vries <tom@codesourcery.com>
11991
11992 PR tree-optimization/65468
11993 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
11994
11995 2015-08-24 Tom de Vries <tom@codesourcery.com>
11996
11997 PR tree-optimization/65468
11998 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
11999
12000 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
12001
12002 PR libgomp/66761
12003 PR libgomp/67303
12004 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
12005 (gomp_iter_guided_next): Idem.
12006 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
12007 (gomp_iter_ull_guided_next): Idem.
12008 * config/linux/wait.h (do_spin): Idem.
12009
12010 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12011
12012 * libgomp-plugin.h (enum offload_target_type): Remove
12013 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
12014 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
12015 * openacc.h (enum acc_device_t): Likewise.
12016 * openacc_lib.h: Likewise.
12017 * oacc-init.c (name_of_acc_device_t): Don't handle it.
12018 (acc_on_device): Just use __builtin_acc_on_device.
12019 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
12020 of acc_on_device builtin.
12021 * plugin/plugin-host.h: Remove file.
12022 * plugin/plugin-host.c: Likewise, but salvage some content into...
12023 * oacc-host.c: ... this file.
12024 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
12025 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
12026 * Makefile.in: Regenerate.
12027 * configure: Likewise.
12028 * testsuite/lib/libgomp.exp
12029 (check_effective_target_openacc_host_nonshm_selected): Remove.
12030 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
12031 ACC_DEVICE_TYPE=host_nonshm.
12032 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12033 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12034 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
12035 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12036 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12037 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12038
12039 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12040 Jakub Jelinek <jakub@redhat.com>
12041
12042 * config/nvptx/affinity.c: New file.
12043 * config/nvptx/alloc.c: Likewise.
12044 * config/nvptx/bar.c: Likewise.
12045 * config/nvptx/barrier.c: Likewise.
12046 * config/nvptx/critical.c: Likewise.
12047 * config/nvptx/env.c: Likewise.
12048 * config/nvptx/error.c: Likewise.
12049 * config/nvptx/fortran.c: Likewise.
12050 * config/nvptx/iter.c: Likewise.
12051 * config/nvptx/iter_ull.c: Likewise.
12052 * config/nvptx/libgomp-plugin.c: Likewise.
12053 * config/nvptx/lock.c: Likewise.
12054 * config/nvptx/loop.c: Likewise.
12055 * config/nvptx/loop_ull.c: Likewise.
12056 * config/nvptx/mutex.c: Likewise.
12057 * config/nvptx/oacc-async.c: Likewise.
12058 * config/nvptx/oacc-cuda.c: Likewise.
12059 * config/nvptx/oacc-host.c: Likewise.
12060 * config/nvptx/oacc-init.c: Likewise.
12061 * config/nvptx/oacc-mem.c: Likewise.
12062 * config/nvptx/oacc-parallel.c: Likewise.
12063 * config/nvptx/oacc-plugin.c: Likewise.
12064 * config/nvptx/omp-lock.h: Likewise.
12065 * config/nvptx/ordered.c: Likewise.
12066 * config/nvptx/parallel.c: Likewise.
12067 * config/nvptx/proc.c: Likewise.
12068 * config/nvptx/ptrlock.c: Likewise.
12069 * config/nvptx/sections.c: Likewise.
12070 * config/nvptx/sem.c: Likewise.
12071 * config/nvptx/single.c: Likewise.
12072 * config/nvptx/splay-tree.c: Likewise.
12073 * config/nvptx/target.c: Likewise.
12074 * config/nvptx/task.c: Likewise.
12075 * config/nvptx/team.c: Likewise.
12076 * config/nvptx/time.c: Likewise.
12077 * config/nvptx/work.c: Likewise.
12078 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
12079 * configure: Regenerate.
12080 * configure.tgt (config_path): Set to "nvptx" for target
12081 nvptx*-*-*.
12082
12083 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12084
12085 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
12086
12087 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
12088
12089 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
12090 (cuda_errlist): Constify.
12091 (errmsg): Move into ...
12092 (cuda_error): ... here. Make smaller.
12093 (_XSTR, _STR): Delete.
12094 (cuda_synames): Delete.
12095 (verify_device_library): Delete.
12096 (nvptx_init): Don't call it.
12097
12098 2015-07-28 Tom de Vries <tom@codesourcery.com>
12099
12100 * testsuite/libgomp.c/uns-outer-4.c: New test.
12101
12102 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
12103
12104 * testsuite/libgomp.c/pr66714.c: New test.
12105
12106 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
12107
12108 PR libgomp/66950
12109 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
12110 (fib_ref): New function.
12111 (fib): Correct corner cases in the recursion.
12112 (main): Replace the non-simd loop with fib_ref call.
12113 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
12114 subroutine.
12115 (fibonacci): Lower the parameter N to 30. Correct accordingly check
12116 for the last array element value. Replace the non-simd loop with
12117 fib_ref call. Remove redundant b_ref array. Remove the comparison
12118 of the last array element with according Fibonacci sequence element.
12119 (fib): Correct corner cases in the recursion.
12120
12121 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
12122
12123 * target.c (gomp_offload_image_to_device): Rename to ...
12124 (gomp_load_image_to_device): ... here.
12125 (GOMP_offload_register): Adjust call.
12126 (gomp_init_device): Likewise.
12127 (gomp_unload_image_from_device): New. Broken out of ...
12128 (GOMP_offload_unregister): ... here. Call it.
12129 (gomp_unload_device): New.
12130 * libgomp.h (gomp_unload_device): Declare.
12131 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
12132 mem maps.
12133
12134 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
12135
12136 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
12137 wait=-specific if.
12138 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
12139 !=0 condition.
12140 (goacc_waits): Move !num_waits handling to ...
12141 (GOACC_wait): ... here, the only caller that might have zero waits.
12142
12143 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
12144 (struct ptx_image_data): Move earlier, add fns field.
12145 (struct ptx_device): Add images and image_lock fields.
12146 (ptx_images, ptx_image_lock): Delete.
12147 (nvptx_open_device): Initialize images and image_lock fields.
12148 (nvptx_close_device): Destroy image_lock.
12149 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
12150 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
12151 fields.
12152
12153 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
12154
12155 * target.c (GOMP_offload_register): Use int for device type arg.
12156 (GOMP_offload_unregister): Likewise.
12157
12158 * target.c (struct_offload_image_descr): Constify host_table.
12159 (gomp_offload_image_to_device): Likewise.
12160 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
12161
12162 * libgomp.h (gomp_device_descr): Constify target data arguments.
12163 * target.c (struct offload_image_descr): Constify target_data.
12164 (gomp_offload_image_to_device): Likewise.
12165 (GOMP_offload_register): Likewise.
12166 (GOMP_offload_unregister): Likewise.
12167 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
12168 GOMP_OFFLOAD_unload_image): Constify target data.
12169 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
12170 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
12171
12172 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
12173
12174 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
12175 Workaround driver library const error.
12176 (struct nvptx_tdata, nvptx_tdata_t): New.
12177 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
12178 type.
12179
12180 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
12181
12182 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
12183 of EPS parameter from integer to real.
12184 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
12185 type of EPS parameter from integer to real.
12186
12187 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
12188
12189 * team.c (get_last_team): New.
12190 (gomp_new_team): Recycle last non-nested team if possible.
12191 (gomp_team_end): Move team work share list free lock destruction
12192 to ...
12193 (free_team): ... here.
12194
12195 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
12196
12197 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
12198 and ref from int to double. Replaced their comparison with
12199 an inequality of their difference and EPS.
12200 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
12201 comparison of pri and a reference number with an inequality of their
12202 difference and EPS.
12203 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
12204 the comparison of sum and sum_ref with an inequality of their
12205 difference and EPS.
12206 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
12207 the comparison of pri and a reference number with an inequality of
12208 their difference and EPS.
12209
12210 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
12211
12212 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
12213 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
12214 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
12215 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
12216 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
12217 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
12218 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
12219 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
12220 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
12221 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
12222 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
12223 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
12224 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
12225 variables.
12226 (vec_mult): Likewise. Add #pragma omp taskwait.
12227 (main): Adjust caller.
12228 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
12229 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
12230 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
12231 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
12232 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
12233 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
12234 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
12235 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
12236 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
12237 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
12238 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
12239 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
12240 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
12241 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
12242 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
12243 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
12244 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
12245 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
12246 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
12247 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
12248 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
12249 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
12250 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
12251 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
12252 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
12253 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
12254 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
12255 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
12256 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
12257 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
12258 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
12259 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
12260 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
12261 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
12262 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
12263 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
12264 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
12265 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
12266 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
12267 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
12268 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
12269 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
12270 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
12271 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
12272 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
12273 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
12274 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
12275 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
12276 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
12277 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
12278 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
12279 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
12280 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
12281 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
12282 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
12283 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
12284 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
12285 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
12286 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
12287 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
12288 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
12289 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
12290 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
12291 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
12292 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
12293 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
12294 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
12295 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
12296 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
12297 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
12298 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
12299 (vec_mult): Add !$omp taskwait.
12300 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
12301 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
12302 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
12303 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
12304 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
12305 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
12306 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
12307 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
12308 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
12309 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
12310 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
12311 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
12312 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
12313 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
12314 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
12315 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
12316 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
12317 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
12318 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
12319 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
12320 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
12321 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
12322 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
12323 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
12324 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
12325 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
12326 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
12327 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
12328 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
12329 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
12330 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
12331 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
12332 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
12333 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
12334 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
12335 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
12336 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
12337 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
12338 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
12339 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
12340 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
12341 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
12342 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
12343 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
12344 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
12345 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
12346 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
12347 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
12348 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
12349 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
12350 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
12351 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
12352 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
12353 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
12354 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
12355 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
12356 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
12357 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
12358 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
12359 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
12360 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
12361 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
12362 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
12363 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
12364 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
12365 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
12366 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
12367
12368 2015-07-10 Tom de Vries <tom@codesourcery.com>
12369
12370 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
12371 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
12372
12373 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
12374
12375 PR libgomp/65099
12376 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
12377 in a 64-bit configuration.
12378 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
12379 offloading testing if no such device is available.
12380 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12381 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
12382
12383 2015-07-08 Tom de Vries <tom@codesourcery.com>
12384
12385 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
12386 second call to f.
12387 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12388
12389 2015-07-07 Tom de Vries <tom@codesourcery.com>
12390
12391 PR tree-optimization/66642
12392 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
12393 iteration count case.
12394 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
12395 function, factor out of ...
12396 (main): ... here. Test low iteration count case.
12397
12398 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
12399
12400 * libgomp.h (gomp_thread_pool): Comment last_team field.
12401
12402 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
12403
12404 * testsuite/libgomp.c++/pr66702-1.C: Require
12405 vect_simd_clones effective target.
12406 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
12407
12408 2015-06-30 Tom de Vries <tom@codesourcery.com>
12409
12410 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12411 already set. Use DEFAULT_CFLAGS in dg-runtest.
12412 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
12413 "-O2".
12414
12415 2015-06-30 Tom de Vries <tom@codesourcery.com>
12416
12417 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
12418 already set. Use DEFAULT_CFLAGS in dg-runtest.
12419 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
12420 * testsuite/libgomp.c++/pr64824.C: Same.
12421 * testsuite/libgomp.c++/pr64868.C: Same.
12422 * testsuite/libgomp.c++/pr66199-1.C: Same.
12423 * testsuite/libgomp.c++/pr66199-2.C: Same.
12424 * testsuite/libgomp.c++/target-2.C: Same.
12425 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
12426 -std=<standard> option.
12427 * testsuite/libgomp.c++/udr-11.C: Same.
12428 * testsuite/libgomp.c++/udr-12.C: Same.
12429 * testsuite/libgomp.c++/udr-13.C: Same.
12430 * testsuite/libgomp.c++/udr-14.C: Same.
12431 * testsuite/libgomp.c++/udr-15.C: Same.
12432 * testsuite/libgomp.c++/udr-16.C: Same.
12433 * testsuite/libgomp.c++/udr-17.C: Same.
12434 * testsuite/libgomp.c++/udr-18.C: Same.
12435 * testsuite/libgomp.c++/udr-19.C: Same.
12436 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
12437 * testsuite/libgomp.c++/simd-1.C: Same.
12438 * testsuite/libgomp.c++/simd-2.C: Same.
12439 * testsuite/libgomp.c++/simd-3.C: Same.
12440 * testsuite/libgomp.c++/simd-4.C: Same.
12441 * testsuite/libgomp.c++/simd-5.C: Same.
12442 * testsuite/libgomp.c++/simd-6.C: Same.
12443 * testsuite/libgomp.c++/simd-7.C: Same.
12444 * testsuite/libgomp.c++/simd-8.C: Same.
12445 * testsuite/libgomp.c++/simd-9.C: Same.
12446 * testsuite/libgomp.c++/simd10.C: Same.
12447 * testsuite/libgomp.c++/simd11.C: Same.
12448 * testsuite/libgomp.c++/simd12.C: Same.
12449 * testsuite/libgomp.c++/simd13.C: Same.
12450
12451 2015-06-30 Jakub Jelinek <jakub@redhat.com>
12452
12453 PR middle-end/66702
12454 * testsuite/libgomp.c++/pr66702-1.C: New test.
12455 * testsuite/libgomp.c++/pr66702-2.C: New test.
12456
12457 2015-06-30 Tom de Vries <tom@codesourcery.com>
12458
12459 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
12460 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
12461 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
12462 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
12463
12464 2015-06-30 Tom de Vries <tom@codesourcery.com>
12465
12466 PR tree-optimization/66652
12467 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
12468 using restrict pointers.
12469 (main): Add arguments to calls to f.
12470 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12471
12472 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
12473
12474 * configure.ac: Fix check for header <sys/sysctl.h>.
12475 * configure: Regenerate.
12476 * config.h.in: Likewise.
12477
12478 2015-06-23 Tom de Vries <tom@codesourcery.com>
12479
12480 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
12481 abort.
12482 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
12483
12484 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
12485
12486 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
12487 acc_device_nvidia.
12488
12489 PR libgomp/66518
12490 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
12491 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12492
12493 2015-06-15 Tom de Vries <tom@codesourcery.com>
12494
12495 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
12496 dg-additional-options for any remaining options.
12497 * testsuite/libgomp.c/atomic-2.c: Same.
12498 * testsuite/libgomp.c/atomic-4.c: Same.
12499 * testsuite/libgomp.c/atomic-5.c: Same.
12500 * testsuite/libgomp.c/atomic-6.c: Same.
12501 * testsuite/libgomp.c/autopar-1.c: Same.
12502 * testsuite/libgomp.c/copyin-1.c: Same.
12503 * testsuite/libgomp.c/copyin-2.c: Same.
12504 * testsuite/libgomp.c/copyin-3.c: Same.
12505 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
12506 * testsuite/libgomp.c/nestedfn-5.c: Same.
12507 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
12508 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
12509 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
12510 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12511 * testsuite/libgomp.c/pr32362-1.c: Same.
12512 * testsuite/libgomp.c/pr32362-2.c: Same.
12513 * testsuite/libgomp.c/pr32362-3.c: Same.
12514 * testsuite/libgomp.c/pr39591-1.c: Same.
12515 * testsuite/libgomp.c/pr39591-2.c: Same.
12516 * testsuite/libgomp.c/pr39591-3.c: Same.
12517 * testsuite/libgomp.c/pr58392.c: Same.
12518 * testsuite/libgomp.c/pr58756.c: Same.
12519 * testsuite/libgomp.c/simd-1.c: Same.
12520 * testsuite/libgomp.c/simd-10.c: Same.
12521 * testsuite/libgomp.c/simd-11.c: Same.
12522 * testsuite/libgomp.c/simd-12.c: Same.
12523 * testsuite/libgomp.c/simd-13.c: Same.
12524 * testsuite/libgomp.c/simd-14.c: Same.
12525 * testsuite/libgomp.c/simd-15.c: Same.
12526 * testsuite/libgomp.c/simd-2.c: Same.
12527 * testsuite/libgomp.c/simd-3.c: Same.
12528 * testsuite/libgomp.c/simd-4.c: Same.
12529 * testsuite/libgomp.c/simd-5.c: Same.
12530 * testsuite/libgomp.c/simd-6.c: Same.
12531 * testsuite/libgomp.c/simd-7.c: Same.
12532 * testsuite/libgomp.c/simd-8.c: Same.
12533 * testsuite/libgomp.c/simd-9.c: Same.
12534
12535 2015-06-15 Tom de Vries <tom@codesourcery.com>
12536
12537 * testsuite/libgomp.c/pr35625.c: Fix typo.
12538
12539 2015-06-15 Tom de Vries <tom@codesourcery.com>
12540
12541 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
12542 in dg-options.
12543 * testsuite/libgomp.c/atomic-3.c: Same.
12544 * testsuite/libgomp.c/debug-1.c: Same.
12545 * testsuite/libgomp.c/nqueens-1.c: Same.
12546 * testsuite/libgomp.c/pr26171.c: Same.
12547 * testsuite/libgomp.c/pr48591.c: Same.
12548 * testsuite/libgomp.c/pr64824.c: Same.
12549 * testsuite/libgomp.c/pr64868.c: Same.
12550 * testsuite/libgomp.c/pr66133.c: Same.
12551 * testsuite/libgomp.c/pr66199-1.c: Same.
12552 * testsuite/libgomp.c/pr66199-2.c: Same.
12553 * testsuite/libgomp.c/target-8.c: Same.
12554
12555 2015-06-15 Tom de Vries <tom@codesourcery.com>
12556
12557 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
12558 -std={gnu99,c99}.
12559 * testsuite/libgomp.c/for-1.c: Same.
12560 * testsuite/libgomp.c/for-2.c: Same.
12561 * testsuite/libgomp.c/for-3.c: Same.
12562 * testsuite/libgomp.c/pr35625.c: Same.
12563 * testsuite/libgomp.c/pr39154.c: Same.
12564 * testsuite/libgomp.c/simd-16.c: Same.
12565 * testsuite/libgomp.c/simd-17.c: Same.
12566
12567 2015-06-13 Tom de Vries <tom@codesourcery.com>
12568
12569 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
12570
12571 2015-06-13 Tom de Vries <tom@codesourcery.com>
12572
12573 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
12574 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
12575 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
12576 (N): Define.
12577 (main): Use N instead of hardcoded constants.
12578
12579 2015-06-05 Tom de Vries <tom@codesourcery.com>
12580
12581 merge from gomp4 branch:
12582 2015-05-28 Tom de Vries <tom@codesourcery.com>
12583
12584 PR tree-optimization/65443
12585 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
12586 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
12587 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
12588
12589 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12590
12591 * testsuite/libgomp.graphite/bounds.c: Adjust for
12592 cleanup-tree-dump removal.
12593 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
12594 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12595 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12596 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12597 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12598 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12599 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12600 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12601 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12602 * testsuite/libgomp.graphite/pr41118.c: Likewise.
12603
12604 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
12605
12606 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
12607 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
12608 (futex_wake) [!__x86_64__]: Ditto.
12609
12610 2015-05-28 Julian Brown <julian@codesourcery.com>
12611
12612 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
12613 function comment. Only call gomp_fatal if new argument is true.
12614 (acc_dev_num_out_of_range): New function.
12615 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
12616 acc_dev_num_out_of_range as appropriate.
12617 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12618 (acc_get_device_num, acc_set_device_num): Update calls to
12619 resolve_device.
12620 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
12621 output.
12622
12623 2015-05-28 Julian Brown <julian@codesourcery.com>
12624
12625 PR libgomp/65742
12626 * oacc-init.c (plugin/plugin-host.h): Include.
12627 (acc_on_device): Check whether we're in an offloaded region for
12628 host_nonshm
12629 plugin. Don't use __builtin_acc_on_device.
12630 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
12631 nonshm_exec flag in thread-local data.
12632 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
12633 data for host_nonshm plugin.
12634 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
12635 for host_nonshm plugin.
12636 * plugin/plugin-host.h: New.
12637
12638 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12639
12640 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
12641
12642 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12643
12644 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
12645 Declare as int.
12646 (FUTEX_PRIVATE_FLAG): Remove L suffix.
12647 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
12648 Declare as int.
12649
12650 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
12651
12652 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
12653
12654 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
12655
12656 * target.c (gomp_map_pointer): New function abstracting out
12657 GOMP_MAP_POINTER handling.
12658 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
12659 gomp_map_pointer().
12660
12661 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12662
12663 PR middle-end/66199
12664 * testsuite/libgomp.c/pr66199-1.c: New test.
12665 * testsuite/libgomp.c/pr66199-2.c: New test.
12666 * testsuite/libgomp.c++/pr66199-1.C: New test.
12667 * testsuite/libgomp.c++/pr66199-2.C: New test.
12668 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
12669 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
12670
12671 2015-05-19 Julian Brown <julian@codesourcery.com>
12672
12673 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
12674 on cuInit failure.
12675
12676 2015-05-13 Jakub Jelinek <jakub@redhat.com>
12677
12678 PR middle-end/66133
12679 * testsuite/libgomp.c/pr66133.c: New test.
12680
12681 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12682
12683 * Makefile.in: Regenerated with automake-1.11.6.
12684 * aclocal.m4: Likewise.
12685 * config.h.in: Likewise.
12686 * configure: Likewise.
12687 * testsuite/Makefile.in: Likewise.
12688
12689 2015-05-08 Jason Merrill <jason@redhat.com>
12690
12691 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
12692 _Complex.
12693
12694 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
12695
12696 2015-05-06 Julian Brown <julian@codesourcery.com>
12697
12698 * oacc-init.c (acc_device_lock): Add explanatory comment.
12699 (resolve_device): Add comment about locking requirement.
12700 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
12701 gomp_init_device and gomp_fini_device calls.
12702 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
12703 (acc_get_device_num, acc_set_device_num): Add locking around
12704 resolve_device and gomp_init_device calls.
12705
12706 2015-05-06 Julian Brown <julian@codesourcery.com>
12707
12708 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
12709 goacc_thread_lock on error paths.
12710 * oacc-mem.c (lookup_host): Remove locking from function. Note
12711 locking requirement for caller in function comment.
12712 (lookup_dev): Likewise.
12713 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
12714 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
12715 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
12716 Add locking.
12717
12718 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
12719
12720 PR testsuite/65205
12721 PR libgomp/65993
12722 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
12723 don't expect "0x" prefix for "%p" format specifier, don't expect
12724 "(nil)" for NULL pointer.
12725 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12726 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12727 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12728 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12729 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12730 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12731 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12732 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12733 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12734 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12735 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12736 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12737 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12738 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12739 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12740 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12741 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12742 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12743 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12744 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12745 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12746 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12747 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12748 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12749 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12750 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12751 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12752 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12753 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
12754 accurately specify what we're looking for.
12755 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
12756 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
12757 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
12758 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
12759 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
12760
12761 2015-04-30 James Norris <jnorris@codesourcery.com>
12762
12763 PR testsuite/65205
12764 * testsuite/lib/libgomp.exp
12765 (check_effective_target_openacc_host_selected)
12766 (check_effective_target_openacc_host_nonshm_selected): New
12767 procedures.
12768 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
12769 dg-shouldfail.
12770 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
12771 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12772 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12773 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12774 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12775 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
12776 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12777 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12778 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12779 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12780 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12781 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
12782 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
12783 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12784 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12785 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
12786 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12787 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12788 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
12789 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
12790 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
12791 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
12792 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
12793 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12794 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12795 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12796 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12797 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12798 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12799 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12800 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12801 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
12802 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
12803 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
12804 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
12805 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
12806 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
12807 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
12808 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
12809 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
12810 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
12811 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
12812 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
12813
12814 2015-04-08 Julian Brown <julian@codesourcery.com>
12815
12816 * libgomp.h (target_mem_desc: Remove mem_map field.
12817 (acc_dispatch_t): Remove open_device_func, close_device_func,
12818 get_device_num_func, set_device_num_func, target_data members.
12819 Change create_thread_data_func argument to device number instead of
12820 generic pointer.
12821 * oacc-async.c (assert.h): Include.
12822 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
12823 (acc_wait_all, acc_wait_all_async): Use current host thread's
12824 active device, not base_dev.
12825 * oacc-cuda.c (acc_get_current_cuda_device)
12826 (acc_get_current_cuda_context, acc_get_cuda_stream)
12827 (acc_set_cuda_stream): Likewise.
12828 * oacc-host.c (host_dispatch): Don't set open_device_func,
12829 close_device_func, get_device_num_func or set_device_num_func.
12830 * oacc-init.c (base_dev, init_key): Remove.
12831 (cached_base_dev): New.
12832 (name_of_acc_device_t): New.
12833 (acc_init_1): Initialise default-numbered device, not zeroth.
12834 (acc_shutdown_1): Close all devices of a given type.
12835 (goacc_destroy_thread): Don't use base_dev.
12836 (lazy_open, lazy_init, lazy_init_and_open): Remove.
12837 (goacc_attach_host_thread_to_device): New.
12838 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
12839 (acc_get_num_devices): Don't use base_dev.
12840 (acc_set_device_type): Reimplement.
12841 (acc_get_device_type): Don't use base_dev.
12842 (acc_get_device_num): Tweak logic.
12843 (acc_set_device_num): Likewise.
12844 (acc_on_device): Use acc_get_device_type.
12845 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
12846 (goacc_lazy_initialize): Reimplement with acc_init and
12847 goacc_attach_host_thread_to_device.
12848 * oacc-int.h (goacc_thread): Add base_dev field.
12849 (base_dev): Remove extern declaration.
12850 (goacc_attach_host_thread_to_device): Add prototype.
12851 * oacc-mem.c (acc_malloc): Use current thread's device instead of
12852 base_dev.
12853 (acc_free): Likewise.
12854 (acc_memcpy_to_device): Likewise.
12855 (acc_memcpy_from_device): Likewise.
12856 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
12857 goacc_lazy_initialize (throughout).
12858 (GOACC_parallel): Use tgt_offset to locate target functions.
12859 * target.c (gomp_map_vars): Don't set tgt->mem_map.
12860 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
12861 (gomp_load_plugin_for_device): Remove open_device, close_device,
12862 get_device_num, set_device_num openacc hook initialisation. Don't set
12863 openacc.target_data.
12864 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
12865 (GOMP_OFFLOAD_openacc_close_device)
12866 (GOMP_OFFLOAD_openacc_get_device_num)
12867 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
12868 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
12869 to int.
12870 * plugin/plugin-nvptx.c (ptx_inited): Remove.
12871 (instantiated_devices, ptx_dev_lock): New.
12872 (struct ptx_image_data): New.
12873 (ptx_devices, ptx_images, ptx_image_lock): New.
12874 (fini_streams_for_device): Reorder cuStreamDestroy call.
12875 (nvptx_get_num_devices): Remove forward declaration.
12876 (nvptx_init): Change return type to bool.
12877 (nvptx_fini): Remove.
12878 (nvptx_attach_host_thread_to_device): New.
12879 (nvptx_open_device): Return struct ptx_device* instead of void*.
12880 (nvptx_close_device): Change argument type to struct ptx_device*,
12881 return type to void.
12882 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
12883 (kernel_target_data, kernel_host_table): Remove static globals.
12884 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
12885 (GOMP_OFFLOAD_init_device): Reimplement.
12886 (GOMP_OFFLOAD_fini_device): Likewise.
12887 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
12888 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
12889 (GOMP_OFFLOAD_host2dev): Use ORD argument.
12890 (GOMP_OFFLOAD_openacc_open_device)
12891 (GOMP_OFFLOAD_openacc_close_device)
12892 (GOMP_OFFLOAD_openacc_set_device_num)
12893 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
12894 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
12895 (device number).
12896
12897 testsuite/
12898 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
12899
12900 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
12901
12902 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
12903 * libgomp.h (struct gomp_memory_mapping): Remove.
12904 (struct target_mem_desc): Change type of mem_map from
12905 gomp_memory_mapping * to splay_tree_s *.
12906 (struct gomp_device_descr): Remove register_image_func, get_table_func.
12907 Add load_image_func, unload_image_func.
12908 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
12909 Remove offload_regions_registered.
12910 (gomp_init_tables): Remove.
12911 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
12912 to splay_tree_s *.
12913 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
12914 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
12915 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
12916 offload_regions_registered.
12917 Initialize load_image_func, unload_image_func, mem_map.root.
12918 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
12919 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
12920 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
12921 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
12922 gomp_memory_mapping *. Use dev's lock and splay_tree.
12923 (lookup_dev): Use dev's lock.
12924 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
12925 (acc_is_present): Likewise.
12926 (acc_map_data): Likewise.
12927 (acc_unmap_data): Likewise. Use dev's lock.
12928 (present_create_copy): Likewise.
12929 (delete_copyout): Pass dev to lookup_host instead of mem_map.
12930 (update_dev_host): Likewise.
12931 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
12932 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
12933 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
12934 (GOMP_OFFLOAD_get_table): Remove
12935 (GOMP_OFFLOAD_load_image): New function.
12936 (GOMP_OFFLOAD_unload_image): New function.
12937 * target.c (register_lock): New mutex for offload image registration.
12938 (num_devices): Do not guard with PLUGIN_SUPPORT.
12939 (gomp_realloc_unlock): New static function.
12940 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
12941 before gomp_fatal.
12942 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
12943 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
12944 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
12945 mem_map's.
12946 (gomp_unmap_vars): Likewise.
12947 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
12948 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
12949 (gomp_offload_image_to_device): New static function.
12950 (GOMP_offload_register): Add mutex lock.
12951 Call gomp_offload_image_to_device for all initialized devices.
12952 Replace gomp_realloc with gomp_realloc_unlock.
12953 (GOMP_offload_unregister): New function.
12954 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
12955 get_table_func from the plugin with calls to init_device_func and
12956 gomp_offload_image_to_device.
12957 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
12958 to splay_tree_s *.
12959 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
12960 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
12961 (GOMP_target_data): Do not call gomp_init_tables.
12962 (GOMP_target_update): Likewise. Remove argument from gomp_update.
12963 (gomp_load_plugin_for_device): Replace register_image and get_table
12964 with load_image and unload_image in DLSYM ().
12965 (gomp_register_images_for_device): Remove function.
12966 (gomp_target_init): Do not initialize current_device.mem_map.*,
12967 current_device.offload_regions_registered.
12968 Remove call to gomp_register_images_for_device.
12969 Do not free offload_images and num_offload_images.
12970
12971 2015-03-30 Jakub Jelinek <jakub@redhat.com>
12972
12973 PR fortran/65597
12974 * testsuite/libgomp.fortran/pr65597.f90: New test.
12975
12976 2015-03-27 Tom de Vries <tom@codesourcery.com>
12977
12978 PR testsuite/65594
12979 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
12980 (init, check): New function.
12981 (foo): Change return type to void.
12982 (main): Call init and check.
12983
12984 2015-03-27 Tom de Vries <tom@codesourcery.com>
12985
12986 PR testsuite/65594
12987 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
12988 (foo): Use M for non-inner loops to scale down test-case.
12989
12990 2015-03-25 Kai Tietz <ktietz@redhat.com>
12991
12992 PR libgomp/64972
12993 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
12994 (GOACC_data_start): Likewise.
12995 * target.c (gomp_map_vars): Likewise.
12996
12997 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
12998
12999 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
13000 hppa*-*-hpux*.
13001
13002 2015-03-19 Jakub Jelinek <jakub@redhat.com>
13003
13004 * testsuite/libgomp.c/target-10.c: New test.
13005 * testsuite/libgomp.c++/target-4.C: New test.
13006
13007 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
13008
13009 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
13010 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
13011
13012 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
13013
13014 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
13015 * configure.ac (*-*-rtems*): Assume Pthread is supported.
13016 (pthread.h): Check for this header file.
13017 * configure: Regenerate.
13018
13019 2015-02-25 Tom de Vries <tom@codesourcery.com>
13020
13021 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
13022 (check_reduction_op, check_reduction_macro, max, min):
13023 Declare.
13024 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
13025 function.
13026 (main): Use new functions.
13027
13028 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
13029
13030 * target.c (gomp_load_plugin_for_device): Use const char * instead of
13031 char * for variables holding dlerror return values.
13032 (DLSYM_OPT): Ditto.
13033
13034 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13035
13036 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
13037
13038 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
13039 Cesar Philippidis <cesar@codesourcery.com>
13040
13041 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
13042 GOACC_ctaid, and GOACC_nctaid routines.
13043
13044 2015-02-11 Jakub Jelinek <jakub@redhat.com>
13045
13046 PR c/64824
13047 * testsuite/libgomp.c/atomic-18.c: New test.
13048 * testsuite/libgomp.c++/atomic-16.C: New test.
13049
13050 2015-02-04 Jakub Jelinek <jakub@redhat.com>
13051
13052 PR c/64824
13053 PR c/64868
13054 * testsuite/libgomp.c/pr64824.c: New test.
13055 * testsuite/libgomp.c/pr64868.c: New test.
13056 * testsuite/libgomp.c++/pr64824.C: New test.
13057 * testsuite/libgomp.c++/pr64868.C: New test.
13058
13059 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
13060
13061 PR libgomp/64635
13062 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
13063 Link with -lpthread.
13064 * config/aix/plugin-suffix.h: Delete.
13065
13066 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
13067
13068 PR libgomp/64635
13069 * configure.tgt (*-*-aix*): Use config_path "aix posix".
13070 (*-*-darwin*): Use config_path "bsd darwin posix".
13071 (*-*-hpux*): Use config_path "hpux posix".
13072 * target.c: Add include of plugin-suffix.h and use
13073 SONAME_SUFFIX macro.
13074 * config/aix/plugin-suffix.h: New file.
13075 * config/darwin/plugin-suffix.h: New file.
13076 * config/hpux/plugin-suffix.h: New file.
13077 * config/posix/plugin-suffix.h: New file.
13078
13079 2015-01-23 Jakub Jelinek <jakub@redhat.com>
13080
13081 PR middle-end/64734
13082 * libgomp.c/pr64734.c: New test.
13083
13084 2015-01-23 Tom de Vries <tom@codesourcery.com>
13085
13086 PR libgomp/64672
13087 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
13088
13089 2015-01-23 Tom de Vries <tom@codesourcery.com>
13090
13091 PR libgomp/64707
13092 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
13093 dg-options.
13094
13095 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
13096
13097 PR libgomp/64625
13098 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
13099 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
13100 formal parameter. Update all users.
13101 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
13102 Document unused formal parameter.
13103
13104 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
13105
13106 * oacc-parallel.c: Don't include <alloca.h>.
13107 (GOACC_parallel): Use gomp_alloca instead of alloca.
13108
13109 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
13110
13111 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
13112
13113 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
13114 James Norris <jnorris@codesourcery.com>
13115 Tom de Vries <tom@codesourcery.com>
13116 Julian Brown <julian@codesourcery.com>
13117 Cesar Philippidis <cesar@codesourcery.com>
13118 Nathan Sidwell <nathan@codesourcery.com>
13119 Tobias Burnus <burnus@net-b.de>
13120
13121 * Makefile.am (search_path): Add $(top_srcdir)/../include.
13122 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
13123 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
13124 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
13125 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
13126 Include $(top_srcdir)/plugin/Makefrag.am.
13127 (nodist_libsubinclude_HEADERS): Add openacc.h.
13128 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
13129 openacc.f90, openacc.mod, openacc_kinds.mod.
13130 (omp_lib.mod): Generalize into...
13131 (%.mod): ... this new rule.
13132 (openacc_kinds.mod, openacc.mod): New rules.
13133 * plugin/configfrag.ac: New file.
13134 * configure.ac: Move plugin/offloading support into it. Include
13135 it. Instantiate testsuite/libgomp-test-support.pt.exp.
13136 * plugin/Makefrag.am: New file.
13137 * testsuite/Makefile.am (OFFLOAD_TARGETS)
13138 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
13139 export.
13140 (libgomp-test-support.exp): New rule.
13141 (all-local): Depend on it.
13142 * Makefile.in: Regenerate.
13143 * testsuite/Makefile.in: Regenerate.
13144 * config.h.in: Likewise.
13145 * configure: Likewise.
13146 * configure.tgt: Harden shell syntax.
13147 * env.c: Include "oacc-int.h".
13148 (parse_acc_device_type): New function.
13149 (gomp_debug_var, goacc_device_type, goacc_device_num): New
13150 variables.
13151 (initialize_env): Initialize those. Call
13152 goacc_runtime_initialize.
13153 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
13154 (gomp_fatal): Call gomp_vfatal.
13155 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
13156 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
13157 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
13158 (splay_tree_node, splay_tree, splay_tree_key)
13159 (struct target_mem_desc, struct splay_tree_key_s)
13160 (struct gomp_memory_mapping, struct acc_dispatch_t)
13161 (struct gomp_device_descr, gomp_acc_insert_pointer)
13162 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
13163 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
13164 (gomp_free_memmap, gomp_fini_device): New declarations.
13165 (gomp_vdebug, gomp_debug): New macros.
13166 Include "splay-tree.h".
13167 * libgomp.map (OACC_2.0): New symbol version. Use for
13168 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
13169 acc_set_device_type_h_, acc_get_device_type,
13170 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
13171 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
13172 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
13173 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
13174 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
13175 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
13176 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
13177 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
13178 acc_copyin_array_h_, acc_present_or_copyin,
13179 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
13180 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
13181 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
13182 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
13183 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
13184 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
13185 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
13186 acc_update_device, acc_update_device_32_h_,
13187 acc_update_device_64_h_, acc_update_device_array_h_,
13188 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
13189 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
13190 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
13191 acc_is_present_64_h_, acc_is_present_array_h_,
13192 acc_memcpy_to_device, acc_memcpy_from_device,
13193 acc_get_current_cuda_device, acc_get_current_cuda_context,
13194 acc_get_cuda_stream, acc_set_cuda_stream.
13195 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
13196 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
13197 GOACC_update, GOACC_wait, GOACC_get_thread_num,
13198 GOACC_get_num_threads.
13199 (GOMP_PLUGIN_1.0): New symbol version. Use for
13200 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
13201 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
13202 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
13203 GOMP_PLUGIN_acc_thread.
13204 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
13205 environment variable.
13206 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
13207 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
13208 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
13209 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
13210 (splay_tree_remove): New declarations.
13211 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
13212 (splay_tree_remove, splay_tree_lookup): Move into...
13213 * splay-tree.c: ... this new file.
13214 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
13215 (splay_tree_node, splay_tree, splay_tree_key)
13216 (struct target_mem_desc, struct splay_tree_key_s)
13217 (struct gomp_device_descr): Don't declare.
13218 (num_devices_openmp): New variable.
13219 (gomp_get_num_devices ): Use it.
13220 (gomp_init_targets_once): New function.
13221 (gomp_get_num_devices ): Use it.
13222 (get_kind, gomp_copy_from_async, gomp_free_memmap)
13223 (gomp_fini_device, gomp_register_image_for_device): New functions.
13224 (gomp_map_vars): Add devaddrs parameter.
13225 (gomp_update): Add mm parameter.
13226 (gomp_init_device): Move most of it into...
13227 (gomp_init_tables): ... this new function.
13228 (gomp_register_images_for_device): Remove function.
13229 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
13230 Make them hidden instead of static.
13231 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
13232 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
13233 (GOMP_target_end_data, GOMP_target_update)
13234 (gomp_load_plugin_for_device, gomp_target_init): Update for
13235 OpenACC changes.
13236 * oacc-async.c: New file.
13237 * oacc-cuda.c: Likewise.
13238 * oacc-host.c: Likewise.
13239 * oacc-init.c: Likewise.
13240 * oacc-int.h: Likewise.
13241 * oacc-mem.c: Likewise.
13242 * oacc-parallel.c: Likewise.
13243 * oacc-plugin.c: Likewise.
13244 * oacc-plugin.h: Likewise.
13245 * oacc-ptx.h: Likewise.
13246 * openacc.f90: Likewise.
13247 * openacc.h: Likewise.
13248 * openacc_lib.h: Likewise.
13249 * plugin/plugin-host.c: Likewise.
13250 * plugin/plugin-nvptx.c: Likewise.
13251 * libgomp-plugin.c: Likewise.
13252 * libgomp-plugin.h: Likewise.
13253 * libgomp_target.h: Remove file after merging content into the
13254 former file. Update all users.
13255 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
13256 (offload_targets_s, offload_targets_s_openacc): New variables.
13257 (check_effective_target_openacc_nvidia_accel_present)
13258 (check_effective_target_openacc_nvidia_accel_selected): New
13259 procedures.
13260 (libgomp_init): Update for OpenACC changes.
13261 * testsuite/libgomp-test-support.exp.in: New file.
13262 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
13263 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13264 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
13265 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
13266 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
13267 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13268 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
13269 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
13270 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13271 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
13272 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
13273 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13274 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
13275 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13276 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
13277 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13278 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
13279 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
13280 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
13281 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
13282 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
13283 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
13284 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13285 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13286 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13287 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13288 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13289 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13290 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13291 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13292 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13293 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13294 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13295 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
13296 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
13297 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13298 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13299 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13300 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
13301 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
13302 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13303 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13304 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13305 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13306 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13307 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
13308 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13309 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13310 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13311 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13312 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13313 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13314 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13315 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13316 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13317 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13318 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13319 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13320 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13321 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
13322 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
13323 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
13324 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13325 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13326 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13327 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
13328 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
13329 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13330 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13331 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13332 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
13333 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13334 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13335 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13336 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
13337 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
13338 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13339 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13340 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
13341 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
13342 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
13343 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
13344 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13345 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13346 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13347 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
13348 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
13349 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13350 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13351 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
13352 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
13353 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
13354 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
13355 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13356 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13357 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13358 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13359 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
13360 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13361 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13362 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
13363 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
13364 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
13365 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13366 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
13367 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
13368 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
13369 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
13370 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
13371 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13372 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
13373 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
13374 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13375 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
13376 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
13377 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
13378 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
13379 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
13380 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
13381 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
13382 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
13383 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
13384 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13385 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
13386 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
13387 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
13388 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
13389 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
13390 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
13391 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
13392 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
13393 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
13394 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
13395 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
13396 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13397 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13398 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13399 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13400 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13401 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
13402 Likewise.
13403 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
13404 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
13405 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
13406 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13407 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
13408 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
13409 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
13410 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
13411 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
13412 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
13413 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13414 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13415 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13416 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
13417 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
13418 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
13419 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
13420 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
13421 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
13422 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
13423 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
13424 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
13425 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
13426 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
13427 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
13428 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
13429 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
13430 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
13431 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
13432 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
13433 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
13434 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
13435 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
13436 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
13437 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
13438 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
13439 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
13440 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
13441 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
13442 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
13443 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
13444 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
13445 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
13446 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
13447 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
13448 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
13449 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
13450 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
13451 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
13452 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13453 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13454 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13455 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13456 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13457 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
13458 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
13459 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
13460 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
13461 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
13462 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
13463
13464 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
13465 Julian Brown <julian@codesourcery.com>
13466 David Malcolm <dmalcolm@redhat.com>
13467
13468 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
13469 to "GNU Offloading and Multi Processing Runtime Library". Change
13470 all users.
13471 * configure: Regenerate.
13472 * libgomp.texi: Update.
13473
13474 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
13475
13476 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
13477 "$tgt_dir/lib32".
13478 * configure: Regenerate.
13479
13480 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
13481 "intelmic" in $offload_targets.
13482
13483 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13484
13485 Update copyright years.
13486
13487 * libgomp.texi: Bump @copying's copyright year.
13488
13489 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13490
13491 * testsuite/lib/libgomp.exp: Load target-utils.exp.
13492 Move load of target-supports.exp earlier.
13493
13494 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
13495
13496 * testsuite/libgomp.c/target-9.c: New test.
13497
13498 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
13499
13500 * config.h.in: Regenerate.
13501 * configure: Regenerate.
13502 * configure.ac: Add GCC_CHECK_EMUTLS.
13503 * libgomp.h: Add check for USE_EMUTLS: this case
13504 is equal to HAVE_TLS.
13505 * team.c: Likewise.
13506
13507 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
13508
13509 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
13510
13511 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
13512 Ilya Verbin <ilya.verbin@intel.com>
13513
13514 * testsuite/libgomp.c/target-critical-1.c: New test.
13515
13516 2014-11-26 Jakub Jelinek <jakub@redhat.com>
13517
13518 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
13519 to dg-options unless expensive testing is on.
13520 (TESTITERS): Define to N if not defined.
13521 (main): Use TESTITERS instead of N.
13522 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
13523 dg-additional-options depending on whether expensive testing is on.
13524 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
13525 Decrease N to 100000 and CHUNKSZ to 10000.
13526
13527 2014-11-24 Jakub Jelinek <jakub@redhat.com>
13528
13529 PR fortran/63938
13530 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
13531 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
13532
13533 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
13534
13535 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
13536
13537 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
13538
13539 PR bootstrap/63784
13540 * configure: Regenerated.
13541
13542 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
13543
13544 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
13545 vect_simd_clones effective target.
13546 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13547
13548 2014-11-14 Jakub Jelinek <jakub@redhat.com>
13549
13550 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
13551 of 32 as block_size.
13552 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
13553 instead of 32 as block_size.
13554
13555 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
13556 Ilya Verbin <ilya.verbin@intel.com>
13557
13558 * Makefile.in: Regenerate.
13559 * configure: Regenerate.
13560 * configure.ac: Set up offload_additional_options,
13561 offload_additional_lib_paths and offload_targets.
13562 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
13563 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
13564 * testsuite/Makefile.in: Regenerate.
13565 * testsuite/lib/libgomp.exp (libgomp_init): Append
13566 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
13567 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
13568 build directory to LD_LIBRARY_PATH for intelmic offload targets.
13569
13570 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
13571 Ilya Verbin <ilya.verbin@intel.com>
13572 Kirill Yukhin <kirill.yukhin@intel.com>
13573 Ilya Tocar <ilya.tocar@intel.com>
13574
13575 * testsuite/lib/libgomp.exp
13576 (check_effective_target_offload_device): New.
13577 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
13578 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
13579 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
13580 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
13581 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
13582 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
13583 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
13584 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
13585 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
13586 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
13587 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
13588 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
13589 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
13590 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
13591 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
13592 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
13593 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
13594 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
13595 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
13596 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
13597 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
13598 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
13599 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
13600 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
13601 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
13602 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
13603 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
13604 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
13605 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
13606 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
13607 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
13608 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
13609 * testsuite/libgomp.c/target-7.c: Fix test.
13610 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
13611 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
13612 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
13613 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
13614 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
13615 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
13616 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
13617 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
13618 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
13619 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
13620 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
13621 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
13622 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
13623 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
13624 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
13625 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
13626 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
13627 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
13628 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
13629 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
13630 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
13631 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
13632 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
13633 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
13634 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
13635 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
13636 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
13637 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
13638 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
13639 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
13640 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
13641
13642 2014-11-13 Jakub Jelinek <jakub@redhat.com>
13643 Ilya Verbin <ilya.verbin@intel.com>
13644 Thomas Schwinge <thomas@codesourcery.com>
13645 Andrey Turetskiy <andrey.turetskiy@intel.com>
13646
13647 * libgomp.map (GOMP_4.0.1): New symbol version.
13648 Add GOMP_offload_register.
13649 * libgomp_target.h: New file.
13650 * splay-tree.h: New file.
13651 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
13652 (gomp_target_init): New forward declaration.
13653 (gomp_is_initialized): New static variable.
13654 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
13655 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
13656 New structures.
13657 (offload_images, num_offload_images, devices, num_devices): New static
13658 variables.
13659 (splay_compare): New static function.
13660 (struct gomp_device_descr): New structure.
13661 (gomp_get_num_devices): Call gomp_target_init.
13662 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
13663 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
13664 (GOMP_offload_register): New function.
13665 (GOMP_target): Arrange for host callback to be performed in a separate
13666 initial thread and contention group, inheriting ICVs from
13667 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
13668 Add device initialization and lookup for target function in splay tree.
13669 (GOMP_target_data): Add device initialization and call gomp_map_vars.
13670 (GOMP_target_end_data): Call gomp_unmap_vars.
13671 (GOMP_target_update): Add device initialization and call gomp_update.
13672 (gomp_load_plugin_for_device, gomp_register_images_for_device)
13673 (gomp_target_init): New static functions.
13674
13675 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
13676 Thomas Schwinge <thomas@codesourcery.com>
13677 Ilya Verbin <ilya.verbin@intel.com>
13678 Andrey Turetskiy <andrey.turetskiy@intel.com>
13679
13680 * config.h.in: Regenerate.
13681 * configure: Regenerate.
13682 * configure.ac: Check for libdl, required for plugin support.
13683 (PLUGIN_SUPPORT): Define if plugins are supported.
13684 (enable_offload_targets): Support Intel MIC targets.
13685 (OFFLOAD_TARGETS): List of target names suitable for offloading.
13686
13687 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13688
13689 PR target/63610
13690 * configure: Regenerate.
13691
13692 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13693
13694 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
13695
13696 2014-10-06 Marek Polacek <polacek@redhat.com>
13697
13698 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
13699 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
13700 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
13701 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13702
13703 2014-10-06 Marek Polacek <polacek@redhat.com>
13704
13705 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
13706 * testsuite/libgomp.c/nqueens-1.c: Likewise.
13707 * testsuite/libgomp.c/pr26943-3.c: Likewise.
13708 * testsuite/libgomp.c/pr26943-4.c: Likewise.
13709 * testsuite/libgomp.c/pr36802-2.c: Likewise.
13710 * testsuite/libgomp.c/pr36802-3.c: Likewise.
13711 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
13712 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13713 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
13714 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
13715 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
13716 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
13717 * testsuite/libgomp.c/omp-single-1.c: Likewise.
13718 * testsuite/libgomp.c/omp-single-2.c: Likewise.
13719 * testsuite/libgomp.c/omp_matvec.c: Likewise.
13720 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
13721 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
13722 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
13723 declarations.
13724
13725 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13726
13727 PR libgomp/61200
13728 * testsuite/libgomp.c/pr61200.c: New test.
13729
13730 2014-09-18 Jakub Jelinek <jakub@redhat.com>
13731
13732 PR c++/63248
13733 * testsuite/libgomp.c++/pr63248.C: New test.
13734
13735 2014-08-04 Jakub Jelinek <jakub@redhat.com>
13736
13737 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
13738 is not zero, but taskgroup->children is NULL and there are
13739 any task->children, schedule those instead of waiting.
13740 * testsuite/libgomp.c/depend-6.c: New test.
13741 * testsuite/libgomp.c/depend-7.c: New test.
13742 * testsuite/libgomp.c/depend-8.c: New test.
13743 * testsuite/libgomp.c/depend-9.c: New test.
13744 * testsuite/libgomp.c/depend-10.c: New test.
13745
13746 2014-08-01 Jakub Jelinek <jakub@redhat.com>
13747
13748 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
13749 (struct gomp_taskwait): New type.
13750 (struct gomp_task): Add taskwait and parent_depends_on, remove
13751 in_taskwait and taskwait_sem fields.
13752 (gomp_finish_task): Don't destroy taskwait_sem.
13753 * task.c (gomp_init_task): Don't init in_taskwait, instead init
13754 taskwait and parent_depends_on.
13755 (GOMP_task): For if (0) tasks with depend clause that depend on
13756 earlier tasks don't defer them, instead call
13757 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
13758 Initialize redundant_out field, for redundant out entries just
13759 move them at the end of linked list instead of removing them
13760 completely, and set redundant_out flag instead of redundant.
13761 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
13762 that task.
13763 (gomp_task_run_post_handle_dependers): If parent is in
13764 gomp_task_maybe_wait_for_dependencies and newly runnable task
13765 is not parent_depends_on, queue it in parent->children linked
13766 list after all runnable tasks with parent_depends_on set.
13767 Adjust for addition of taskwait indirection.
13768 (gomp_task_run_post_remove_parent): If parent is in
13769 gomp_task_maybe_wait_for_dependencies and task to be removed
13770 is parent_depends_on, decrement n_depend and if needed awake
13771 parent. Adjust for addition of taskwait indirection.
13772 (GOMP_taskwait): Adjust for addition of taskwait indirection.
13773 (gomp_task_maybe_wait_for_dependencies): New function.
13774 * testsuite/libgomp.c/depend-5.c: New test.
13775
13776 2014-07-13 Tobias Burnus <burnus@net-b.de>
13777
13778 * testsuite/libgomp.fortran/pr34020.f90: Make compile
13779 with TS 18508/Fortran 2015.
13780
13781 2014-07-06 Marek Polacek <polacek@redhat.com>
13782
13783 PR c/6940
13784 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
13785
13786 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13787
13788 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
13789 matches regex $lang_source_re, add $lang_include_flags to options.
13790 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
13791 * testsuite/libgomp.c++/c++.exp: Likewise.
13792 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
13793 and lang_include_flags instead of adding -fintrinsic-modules-path= to
13794 ALWAYS_CFLAGS.
13795 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
13796
13797 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
13798
13799 * testsuite/libgomp.fortran/fortran.exp: Explain
13800 gfortran-dg-runtest usage.
13801
13802 2014-06-25 Jakub Jelinek <jakub@redhat.com>
13803
13804 * testsuite/libgomp.fortran/simd5.f90: New test.
13805 * testsuite/libgomp.fortran/simd6.f90: New test.
13806 * testsuite/libgomp.fortran/simd7.f90: New test.
13807
13808 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13809
13810 * testsuite/libgomp.c/for-2.c: Define SC to static for
13811 #pragma omp for simd testing.
13812 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
13813 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
13814 SC macro.
13815 * testsuite/libgomp.c/simd-14.c: New test.
13816 * testsuite/libgomp.c/simd-15.c: New test.
13817 * testsuite/libgomp.c/simd-16.c: New test.
13818 * testsuite/libgomp.c/simd-17.c: New test.
13819 * testsuite/libgomp.c++/for-10.C: Define SC to static for
13820 #pragma omp for simd testing.
13821 * testsuite/libgomp.c++/simd10.C: New test.
13822 * testsuite/libgomp.c++/simd11.C: New test.
13823 * testsuite/libgomp.c++/simd12.C: New test.
13824 * testsuite/libgomp.c++/simd13.C: New test.
13825
13826 * testsuite/libgomp.fortran/aligned1.f03: New test.
13827 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
13828 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
13829 tasks with !$omp parallel !$omp single.
13830 * testsuite/libgomp.fortran/target8.f90: New test.
13831 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
13832 not to use trim in the combiner, instead call elemental function.
13833 (fn): New elemental function.
13834 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
13835 Make elemental.
13836 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
13837 omp_in): Likewise.
13838 * testsuite/libgomp.fortran/udr12.f90: New test.
13839 * testsuite/libgomp.fortran/udr13.f90: New test.
13840 * testsuite/libgomp.fortran/udr14.f90: New test.
13841 * testsuite/libgomp.fortran/udr15.f90: New test.
13842
13843 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13844
13845 * omp_lib.f90.in (openmp_version): Set to 201307.
13846 * omp_lib.h.in (openmp_version): Likewise.
13847 * testsuite/libgomp.c/target-8.c: New test.
13848 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
13849 and inbranch clauses.
13850 * testsuite/libgomp.fortran/depend-3.f90: New test.
13851 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
13852 openmp_version.
13853 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13854 * testsuite/libgomp.fortran/target1.f90: New test.
13855 * testsuite/libgomp.fortran/target2.f90: New test.
13856 * testsuite/libgomp.fortran/target3.f90: New test.
13857 * testsuite/libgomp.fortran/target4.f90: New test.
13858 * testsuite/libgomp.fortran/target5.f90: New test.
13859 * testsuite/libgomp.fortran/target6.f90: New test.
13860 * testsuite/libgomp.fortran/target7.f90: New test.
13861
13862 2014-06-10 Jakub Jelinek <jakub@redhat.com>
13863
13864 PR fortran/60928
13865 * testsuite/libgomp.fortran/allocatable9.f90: New test.
13866 * testsuite/libgomp.fortran/allocatable10.f90: New test.
13867 * testsuite/libgomp.fortran/allocatable11.f90: New test.
13868 * testsuite/libgomp.fortran/allocatable12.f90: New test.
13869 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
13870 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
13871 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
13872 * testsuite/libgomp.fortran/associate1.f90: New test.
13873 * testsuite/libgomp.fortran/associate2.f90: New test.
13874 * testsuite/libgomp.fortran/procptr1.f90: New test.
13875
13876 2014-06-06 Jakub Jelinek <jakub@redhat.com>
13877
13878 * testsuite/libgomp.fortran/simd1.f90: New test.
13879 * testsuite/libgomp.fortran/udr1.f90: New test.
13880 * testsuite/libgomp.fortran/udr2.f90: New test.
13881 * testsuite/libgomp.fortran/udr3.f90: New test.
13882 * testsuite/libgomp.fortran/udr4.f90: New test.
13883 * testsuite/libgomp.fortran/udr5.f90: New test.
13884 * testsuite/libgomp.fortran/udr6.f90: New test.
13885 * testsuite/libgomp.fortran/udr7.f90: New test.
13886 * testsuite/libgomp.fortran/udr8.f90: New test.
13887 * testsuite/libgomp.fortran/udr9.f90: New test.
13888 * testsuite/libgomp.fortran/udr10.f90: New test.
13889 * testsuite/libgomp.fortran/udr11.f90: New test.
13890
13891 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
13892
13893 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
13894 vect_simd_clones effective target.
13895 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
13896
13897 2014-05-21 Jakub Jelinek <jakub@redhat.com>
13898
13899 PR middle-end/61252
13900 * testsuite/libgomp.c++/simd-9.C: New test.
13901
13902 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
13903
13904 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
13905 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
13906 texts according to their @menu entry positions.
13907
13908 2014-05-11 Jakub Jelinek <jakub@redhat.com>
13909
13910 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
13911 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
13912 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
13913 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
13914 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
13915 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
13916 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
13917 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
13918 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
13919 * testsuite/libgomp.fortran/depend-1.f90: New test.
13920 * testsuite/libgomp.fortran/depend-2.f90: New test.
13921 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
13922 * testsuite/libgomp.fortran/simd1.f90: New test.
13923 * testsuite/libgomp.fortran/simd2.f90: New test.
13924 * testsuite/libgomp.fortran/simd3.f90: New test.
13925 * testsuite/libgomp.fortran/simd4.f90: New test.
13926 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
13927
13928 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13929
13930 * testsuite/libgomp.c/simd-10.c: New test.
13931 * testsuite/libgomp.c/simd-11.c: New test.
13932 * testsuite/libgomp.c/simd-12.c: New test.
13933 * testsuite/libgomp.c/simd-13.c: New test.
13934
13935 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13936
13937 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
13938 atomic type clauses in any order and optional comma in between.
13939 * testsuite/libgomp.c++/atomic-15.C: Likewise.
13940 * testsuite/libgomp.c/atomic-17.c: Likewise.
13941
13942 * testsuite/libgomp.c/simd-7.c: New test.
13943 * testsuite/libgomp.c/simd-8.c: New test.
13944 * testsuite/libgomp.c/simd-9.c: New test.
13945 * testsuite/libgomp.c/loop-16.c: New test.
13946
13947 2014-04-02 Richard Henderson <rth@redhat.com>
13948
13949 * config/linux/futex.h (futex_wait): Get error value from errno.
13950 (futex_wake): Likewise.
13951
13952 2014-03-25 Jakub Jelinek <jakub@redhat.com>
13953
13954 PR c++/60331
13955 * testsuite/libgomp.c++/udr-11.C: New test.
13956 * testsuite/libgomp.c++/udr-12.C: New test.
13957 * testsuite/libgomp.c++/udr-13.C: New test.
13958 * testsuite/libgomp.c++/udr-14.C: New test.
13959 * testsuite/libgomp.c++/udr-15.C: New test.
13960 * testsuite/libgomp.c++/udr-16.C: New test.
13961 * testsuite/libgomp.c++/udr-17.C: New test.
13962 * testsuite/libgomp.c++/udr-18.C: New test.
13963 * testsuite/libgomp.c++/udr-19.C: New test.
13964
13965 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13966
13967 Update copyright years
13968
13969 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13970
13971 * hashtab.h: Use the standard form for the copyright notice.
13972
13973 2014-01-02 Tobias Burnus <burnus@net-b.de>
13974
13975 * libgomp.texi: Bump @copying's copyright year.
13976
13977 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
13978
13979 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
13980 alloca () with __builtin_alloca ().
13981 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
13982 * testsuite/libgomp.c/lock-3.c: Likewise.
13983 * testsuite/libgomp.c/pr48591.c: Likewise.
13984
13985 2013-12-17 Jakub Jelinek <jakub@redhat.com>
13986
13987 PR testsuite/59534
13988 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
13989 comparisons.
13990
13991 2013-12-16 Jakub Jelinek <jakub@redhat.com>
13992
13993 PR libgomp/58756
13994 * testsuite/libgomp.c/pr58756.c: New test.
13995
13996 2013-12-12 Jakub Jelinek <jakub@redhat.com>
13997
13998 PR libgomp/59467
13999 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
14000 !$omp parallel.
14001
14002 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
14003
14004 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
14005 ALWAYS_CFLAGS.
14006 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
14007 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
14008 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
14009 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
14010 Likewise.
14011
14012 * libgomp_g.h: Include <stddef.h> for size_t.
14013
14014 * libgomp.spec.in: Update comment about libgomp's dependencies.
14015 * configure.ac: Likewise.
14016 * configure: Regenerate.
14017
14018 2013-10-16 Tobias Burnus <burnus@net-b.de>
14019
14020 * libgomp.texi: (Runtime Library Routines): Update references for
14021 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
14022 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
14023 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
14024 (Environment Variables): Update references for OpenMP 4.0. Add
14025 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
14026 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
14027 order.
14028
14029 2013-10-14 Jakub Jelinek <jakub@redhat.com>
14030
14031 * env.c (parse_bind_var): Initialize value to avoid
14032 (false positive) warning.
14033
14034 2013-10-12 Jakub Jelinek <jakub@redhat.com>
14035
14036 PR libgomp/58691
14037 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
14038 to check variable.
14039 (gomp_init_num_threads): Move i variable declaration into
14040 #ifdef CPU_ALLOC_SIZE block.
14041 * config/linux/affinity.c (gomp_affinity_init_level): Test
14042 gomp_places_list_len == 0 rather than gomp_places_list == 0
14043 when checking for topology reading error.
14044 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
14045 * env.c (parse_affinity): Add ignore argument, if true, don't populate
14046 gomp_places_list, only parse env var and always return false.
14047 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
14048 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
14049 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
14050 and either of these variables were parsed correctly into a places
14051 list.
14052
14053 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14054 Jakub Jelinek <jakub@redhat.com>
14055
14056 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
14057 of 5 loopfn matches.
14058 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14059 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14060 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14061 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14062 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14063 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14064 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14065 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14066
14067 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14068
14069 * Makefile.am (omp_lib.mod): Streamline rule.
14070 * Makefile.in: Regenerate.
14071
14072 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
14073 exceptions.
14074
14075 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
14076 * testsuite/libgomp.fortran/lib1.f90: Likewise.
14077 * testsuite/libgomp.fortran/lib2.f: Likewise.
14078 * testsuite/libgomp.fortran/lib3.f: Likewise.
14079
14080 * configure.ac: Typo fix.
14081 * configure: Regenerate.
14082
14083 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
14084 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
14085
14086 * omp.h.in: Don't touch the user's namespace.
14087
14088 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14089 Tobias Burnus <burnus@net-b.de>
14090 Richard Henderson <rth@redhat.com>
14091
14092 * target.c: New file.
14093 * Makefile.am (libgomp_la_SOURCES): Add target.c.
14094 * Makefile.in: Regenerated.
14095 * libgomp_g.h (GOMP_task): Add depend argument.
14096 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14097 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14098 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
14099 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14100 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14101 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
14102 GOMP_taskgroup_start, GOMP_taskgroup_end,
14103 GOMP_parallel_sections): New prototypes.
14104 * fortran.c (omp_is_initial_device): Add ialias_redirect.
14105 (omp_is_initial_device_): New function.
14106 (ULP, STR1, STR2, ialias_redirect): Removed.
14107 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
14108 omp_set_default_device_8_, omp_get_default_device_,
14109 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
14110 functions.
14111 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
14112 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
14113 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
14114 @@GOMP_4.0.
14115 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
14116 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
14117 omp_set_default_device, omp_set_default_device_,
14118 omp_set_default_device_8_, omp_get_default_device,
14119 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
14120 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
14121 omp_get_team_num_): Export @@OMP_4.0.
14122 * team.c (struct gomp_thread_start_data): Add place field.
14123 (gomp_thread_start): Clear thr->thread_pool and
14124 thr->task before returning. Use gomp_team_barrier_wait_final
14125 instead of gomp_team_barrier_wait. Initialize thr->place.
14126 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
14127 team_cancelled and task_queued_count fields.
14128 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
14129 before calling pthread_exit.
14130 (gomp_free_thread): No longer static. Use
14131 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
14132 (gomp_team_start): Add flags argument. Set
14133 thr->thread_pool->threads_busy to nthreads immediately after creating
14134 new pool. Use gomp_managed_threads_lock instead of
14135 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
14136 (gomp_team_end): Use gomp_managed_threads_lock instead of
14137 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
14138 of gomp_team_barrier_wait. If team->team_cancelled, call
14139 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
14140 rather than thr->ts.work_share.
14141 (initialize_team): Don't call gomp_sem_init here.
14142 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
14143 caller.
14144 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
14145 * env.c (gomp_global_icv): Add default_device_var, target_data and
14146 bind_var initializers.
14147 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14148 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14149 gomp_places_list_len): New variables.
14150 (parse_bind_var, parse_one_place, parse_places_var): New functions.
14151 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
14152 sized places.
14153 (gomp_cancel_var): New global variable.
14154 (parse_int): New function.
14155 (handle_omp_display_env): New function.
14156 (initialize_env): Use it. Initialize default_device_var.
14157 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
14158 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
14159 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
14160 been successfully parsed (and call gomp_init_affinity in that case).
14161 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14162 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14163 omp_get_team_num, omp_is_initial_device): New functions.
14164 * libgomp.h: Include stdlib.h.
14165 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
14166 Define.
14167 (struct target_mem_desc): Forward declare.
14168 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
14169 and thread_limit_var fields.
14170 (gomp_get_num_devices): New prototype.
14171 (gomp_cancel_var): New extern decl.
14172 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
14173 team_cancelled and task_queued_count fields. Add comments about
14174 task_{,queued_,running_}count.
14175 (gomp_cancel_kind): New enum.
14176 (gomp_work_share_end_cancel): New prototype.
14177 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
14178 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
14179 and depend fields.
14180 (struct gomp_taskgroup): New type.
14181 (struct gomp_task_depend_entry,
14182 struct gomp_dependers_vec): New types.
14183 (gomp_finish_task): Free depend_hash if non-NULL.
14184 (struct gomp_team_state): Add place_partition_off
14185 and place_partition_len fields.
14186 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
14187 gomp_places_list_len): New extern decls.
14188 (struct gomp_thread): Add place field.
14189 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
14190 (gomp_init_thread_affinity): Add place argument.
14191 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14192 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14193 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14194 gomp_affinity_init_level, gomp_affinity_print_place): New
14195 prototypes.
14196 (gomp_team_start): Add flags argument.
14197 (gomp_thread_limit_var, gomp_remaining_threads_count,
14198 gomp_remaining_threads_lock): Remove.
14199 (gomp_managed_threads_lock): New variable.
14200 (struct gomp_thread_pool): Add threads_busy field.
14201 (gomp_free_thread): New prototype.
14202 * task.c: Include hashtab.h.
14203 (hash_entry_type): New typedef.
14204 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
14205 (gomp_init_task): Clear dependers, depend_hash, depend_count,
14206 copy_ctors_done and taskgroup fields.
14207 (GOMP_task): Add depend argument, handle depend clauses. If
14208 gomp_team_barrier_cancelled or if it's taskgroup has been
14209 cancelled, don't queue or start new tasks. Set copy_ctors_done
14210 field if needed. Initialize taskgroup field. If copy_ctors_done
14211 and already cancelled, don't discard the task. If taskgroup is
14212 non-NULL, enqueue the task into taskgroup queue. Increment
14213 num_children field in taskgroup. Increment task_queued_count.
14214 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
14215 gomp_task_run_post_remove_taskgroup): New inline functions.
14216 (gomp_task_run_post_handle_depend_hash,
14217 gomp_task_run_post_handle_dependers,
14218 gomp_task_run_post_handle_depend): New functions.
14219 (GOMP_taskwait): Use them. If more than one new tasks
14220 have been queued, wake other threads if needed.
14221 (gomp_barrier_handle_tasks): Likewise. If
14222 gomp_team_barrier_cancelled, don't start any new tasks, just free
14223 all tasks.
14224 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
14225 * omp_lib.f90.in
14226 (omp_proc_bind_kind, omp_proc_bind_false,
14227 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14228 omp_proc_bind_spread): New params.
14229 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14230 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14231 omp_get_team_num, omp_is_initial_device): New interfaces.
14232 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
14233 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
14234 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
14235 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
14236 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
14237 useless use omp_lib_kinds.
14238 * omp.h.in (omp_proc_bind_t): New typedef.
14239 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14240 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14241 omp_get_team_num, omp_is_initial_device): New prototypes.
14242 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
14243 through to gomp_team_start.
14244 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
14245 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
14246 Adjust gomp_parallel_loop_start callers.
14247 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
14248 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
14249 GOMP_loop_end_cancel): New functions.
14250 (GOMP_parallel_end): Add ialias_redirect.
14251 * hashtab.h: New file.
14252 * libgomp.texi (Environment Variables): Minor cleanup,
14253 update section refs to OpenMP 4.0rc2.
14254 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
14255 environment variables.
14256 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
14257 team->work_shares_to_free to thr->ts.work_share before calling
14258 free_work_share.
14259 (gomp_work_share_end_cancel): New function.
14260 * config/linux/proc.c: Include errno.h.
14261 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
14262 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
14263 sizeof (cpu_set_t) to determine number of iterations. Fix up check
14264 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
14265 gomp_cpuset_size is sizeof (cpu_set_t).
14266 (gomp_init_num_threads): Initialize gomp_cpuset_size,
14267 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
14268 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
14269 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
14270 contain any logical CPUs.
14271 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
14272 is NULL. Use gomp_cpusetp instead of &cpuset and pass
14273 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
14274 pthread_getaffinity_np. Check gomp_places_list instead of
14275 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
14276 * config/linux/bar.c (gomp_barrier_wait_end,
14277 gomp_barrier_wait_last): Use BAR_* defines.
14278 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
14279 from state where needed. Set work_share_cancelled to 0 on last
14280 thread.
14281 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
14282 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
14283 functions.
14284 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
14285 Add cpusetsize argument.
14286 (gomp_cpuset_size, gomp_cpusetp): Declare.
14287 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
14288 (affinity_counter): Remove.
14289 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
14290 if CPU_ALLOC_SIZE isn't defined.
14291 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
14292 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
14293 bind current thread to the first place.
14294 (gomp_init_thread_affinity): Rewritten. Add place argument, just
14295 pthread_setaffinity_np to gomp_places_list[place].
14296 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14297 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14298 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14299 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
14300 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14301 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14302 (gomp_barrier_t): Add awaited_final field.
14303 (gomp_barrier_init): Initialize awaited_final field.
14304 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
14305 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
14306 prototypes.
14307 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
14308 defines.
14309 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
14310 gomp_team_barrier_cancelled): New inline functions.
14311 (gomp_barrier_last_thread,
14312 gomp_team_barrier_set_task_pending,
14313 gomp_team_barrier_clear_task_pending,
14314 gomp_team_barrier_set_waiting_for_tasks,
14315 gomp_team_barrier_waiting_for_tasks,
14316 gomp_team_barrier_done): Use BAR_* defines.
14317 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
14318 (gomp_barrier_wait_end): Use BAR_* defines.
14319 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
14320 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
14321 Use BAR_* defines.
14322 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
14323 gomp_team_barrier_cancel): New functions.
14324 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
14325 argument.
14326 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
14327 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
14328 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
14329 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
14330 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
14331 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
14332 (gomp_barrier_t): Add cancellable field.
14333 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
14334 gomp_team_barrier_cancel): New prototypes.
14335 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
14336 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
14337 gomp_team_barrier_cancelled): New inline functions.
14338 (gomp_barrier_wait_start, gomp_barrier_last_thread,
14339 gomp_team_barrier_set_task_pending,
14340 gomp_team_barrier_clear_task_pending,
14341 gomp_team_barrier_set_waiting_for_tasks,
14342 gomp_team_barrier_waiting_for_tasks,
14343 gomp_team_barrier_done): Use BAR_* defines.
14344 * barrier.c (GOMP_barrier_cancel): New function.
14345 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
14346 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
14347 omp_proc_bind_spread): New params.
14348 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
14349 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
14350 omp_get_team_num, omp_is_initial_device): New externals.
14351 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
14352 New functions.
14353 (gomp_resolve_num_threads): Adjust for thread_limit now being in
14354 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
14355 infinity. If not nested, just return minimum of max_num_threads
14356 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
14357 to the returned value. Otherwise, don't update atomically
14358 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
14359 (GOMP_parallel_end): Adjust for thread_limit now being in
14360 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
14361 infinity. Adjust threads_busy in the pool rather than
14362 gomp_remaining_threads_count. Remember team->nthreads and call
14363 gomp_team_end before adjusting threads_busy, if not nested
14364 afterwards, just set it to 1 non-atomically. Add ialias.
14365 (GOMP_parallel_start): Adjust gomp_team_start caller.
14366 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
14367 * testsuite/libgomp.c/affinity-1.c: New test.
14368 * testsuite/libgomp.c/atomic-15.c: New test.
14369 * testsuite/libgomp.c/atomic-16.c: New test.
14370 * testsuite/libgomp.c/atomic-17.c: New test.
14371 * testsuite/libgomp.c/cancel-for-1.c: New test.
14372 * testsuite/libgomp.c/cancel-for-2.c: New test.
14373 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
14374 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
14375 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
14376 * testsuite/libgomp.c/cancel-sections-1.c: New test.
14377 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
14378 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
14379 * testsuite/libgomp.c/depend-1.c: New test.
14380 * testsuite/libgomp.c/depend-2.c: New test.
14381 * testsuite/libgomp.c/depend-3.c: New test.
14382 * testsuite/libgomp.c/depend-4.c: New test.
14383 * testsuite/libgomp.c/for-1.c: New test.
14384 * testsuite/libgomp.c/for-1.h: New file.
14385 * testsuite/libgomp.c/for-2.c: New test.
14386 * testsuite/libgomp.c/for-2.h: New file.
14387 * testsuite/libgomp.c/for-3.c: New test.
14388 * testsuite/libgomp.c/pr58392.c: New test.
14389 * testsuite/libgomp.c/simd-1.c: New test.
14390 * testsuite/libgomp.c/simd-2.c: New test.
14391 * testsuite/libgomp.c/simd-3.c: New test.
14392 * testsuite/libgomp.c/simd-4.c: New test.
14393 * testsuite/libgomp.c/simd-5.c: New test.
14394 * testsuite/libgomp.c/simd-6.c: New test.
14395 * testsuite/libgomp.c/target-1.c: New test.
14396 * testsuite/libgomp.c/target-2.c: New test.
14397 * testsuite/libgomp.c/target-3.c: New test.
14398 * testsuite/libgomp.c/target-4.c: New test.
14399 * testsuite/libgomp.c/target-5.c: New test.
14400 * testsuite/libgomp.c/target-6.c: New test.
14401 * testsuite/libgomp.c/target-7.c: New test.
14402 * testsuite/libgomp.c/taskgroup-1.c: New test.
14403 * testsuite/libgomp.c/thread-limit-1.c: New test.
14404 * testsuite/libgomp.c/thread-limit-2.c: New test.
14405 * testsuite/libgomp.c/thread-limit-3.c: New test.
14406 * testsuite/libgomp.c/udr-1.c: New test.
14407 * testsuite/libgomp.c/udr-2.c: New test.
14408 * testsuite/libgomp.c/udr-3.c: New test.
14409 * testsuite/libgomp.c++/affinity-1.C: New test.
14410 * testsuite/libgomp.c++/atomic-10.C: New test.
14411 * testsuite/libgomp.c++/atomic-11.C: New test.
14412 * testsuite/libgomp.c++/atomic-12.C: New test.
14413 * testsuite/libgomp.c++/atomic-13.C: New test.
14414 * testsuite/libgomp.c++/atomic-14.C: New test.
14415 * testsuite/libgomp.c++/atomic-15.C: New test.
14416 * testsuite/libgomp.c++/cancel-for-1.C: New test.
14417 * testsuite/libgomp.c++/cancel-for-2.C: New test.
14418 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
14419 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
14420 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
14421 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
14422 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
14423 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
14424 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
14425 * testsuite/libgomp.c++/cancel-test.h: New file.
14426 * testsuite/libgomp.c++/for-9.C: New test.
14427 * testsuite/libgomp.c++/for-10.C: New test.
14428 * testsuite/libgomp.c++/for-11.C: New test.
14429 * testsuite/libgomp.c++/simd-1.C: New test.
14430 * testsuite/libgomp.c++/simd-2.C: New test.
14431 * testsuite/libgomp.c++/simd-3.C: New test.
14432 * testsuite/libgomp.c++/simd-4.C: New test.
14433 * testsuite/libgomp.c++/simd-5.C: New test.
14434 * testsuite/libgomp.c++/simd-6.C: New test.
14435 * testsuite/libgomp.c++/simd-7.C: New test.
14436 * testsuite/libgomp.c++/simd-8.C: New test.
14437 * testsuite/libgomp.c++/target-1.C: New test.
14438 * testsuite/libgomp.c++/target-2.C: New test.
14439 * testsuite/libgomp.c++/target-2-aux.cc: New file.
14440 * testsuite/libgomp.c++/target-3.C: New test.
14441 * testsuite/libgomp.c++/taskgroup-1.C: New test.
14442 * testsuite/libgomp.c++/udr-1.C: New test.
14443 * testsuite/libgomp.c++/udr-2.C: New test.
14444 * testsuite/libgomp.c++/udr-3.C: New test.
14445 * testsuite/libgomp.c++/udr-4.C: New test.
14446 * testsuite/libgomp.c++/udr-5.C: New test.
14447 * testsuite/libgomp.c++/udr-6.C: New test.
14448 * testsuite/libgomp.c++/udr-7.C: New test.
14449 * testsuite/libgomp.c++/udr-8.C: New test.
14450 * testsuite/libgomp.c++/udr-9.C: New test.
14451
14452 2013-09-20 Jakub Jelinek <jakub@redhat.com>
14453
14454 PR testsuite/57605
14455 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
14456 ALWAYS_CFLAGS.
14457
14458 2013-09-20 Alan Modra <amodra@gmail.com>
14459
14460 * configure: Regenerate.
14461
14462 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14463
14464 * testsuite/libgomp.c/sections-2.c: New test.
14465
14466 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
14467
14468 * testsuite/libgomp.fortran/strassen.f90:
14469 Add dg-skip-if aarch64_tiny.
14470
14471 2013-06-20 Iain Sandoe <iain@codesourcery.com>
14472 Cesar Philippidis <cesar@codesourcery.com>
14473
14474 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
14475 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
14476 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
14477 * testsuite/libgomp.fortran/fortran.exp: Likewise.
14478 * testsuite/libgomp.graphite/graphite.exp: Likewise.
14479 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
14480 Use dg-runtest rather than gfortran-dg-runtest.
14481
14482 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
14483
14484 * testsuite/libgomp.c/icv-2.c: Extend current handling of
14485 Linux-based x86 systems to cover all GNU systems.
14486 * testsuite/libgomp.c/lock-3.c: Likewise.
14487 * testsuite/libgomp.c/pr48591.c: Likewise.
14488
14489 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
14490
14491 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
14492 GNU/Hurd, as done for Linux-based systems.
14493
14494 * config/posix/ptrlock.h: Fix comment.
14495
14496 2013-05-27 Tobias Burnus <burnus@net-b.de>
14497
14498 PR fortran/57423
14499 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
14500 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
14501 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
14502 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
14503 omp_destroy_nest_lock): Correct arguments to match the one in
14504 the OpenMP spec.
14505 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
14506 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
14507 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
14508 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
14509
14510 2013-05-16 Jakub Jelinek <jakub@redhat.com>
14511
14512 * testsuite/libgomp.c/loop-13.c: New test.
14513 * testsuite/libgomp.c/loop-14.c: New test.
14514 * testsuite/libgomp.c/loop-15.c: New test.
14515 * testsuite/libgomp.c++/loop-13.C: New test.
14516 * testsuite/libgomp.c++/loop-14.C: New test.
14517 * testsuite/libgomp.c++/loop-15.C: New test.
14518
14519 2013-02-06 Jakub Jelinek <jakub@redhat.com>
14520
14521 PR middle-end/56217
14522 * testsuite/libgomp.c++/pr56217.C: New test.
14523
14524 2013-02-01 Alan Modra <amodra@gmail.com>
14525
14526 * task.c (GOMP_task, GOMP_taskwait): Comment.
14527
14528 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
14529 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
14530
14531 PR libgomp/55561
14532 * config/linux/wait.h (do_spin): Use atomic load for addr.
14533 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
14534 for intptr and ptrlock.
14535 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
14536 for ptrlock.
14537
14538 2013-01-22 Alan Modra <amodra@gmail.com>
14539
14540 PR libgomp/51376
14541 PR libgomp/56073
14542 * task.c (GOMP_task): Revert 2011-12-09 change.
14543 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
14544 barrier to read task->children..
14545 (gomp_barrier_handle_tasks): ..and matching atomic store with
14546 release barrier here when setting parent->children to NULL.
14547
14548 2013-01-16 Jakub Jelinek <jakub@redhat.com>
14549 Tobias Burnus <burnus@net-b.de>
14550
14551 PR driver/55884
14552 * testsuite/libgomp.fortran/fortran.exp: Use
14553 -fintrinsic-modules-path= instead of
14554 -fintrinsic-modules-path.
14555
14556 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
14557
14558 Update copyright years.
14559
14560 2012-12-19 Tobias Burnus <burnus@net-b.de>
14561
14562 * testsuite/libgomp.fortran/fortran.exp: Set
14563 -fintrinsic-modules-path.
14564
14565 2012-12-19 Tobias Burnus <burnus@net-b.de>
14566
14567 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
14568 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
14569
14570 2012-11-21 Jakub Jelinek <jakub@redhat.com>
14571
14572 PR libgomp/55411
14573 * team.c (gomp_free_thread): Decrease gomp_managed_threads
14574 if pool had any threads_used.
14575
14576 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
14577
14578 * testsuite/libgomp.c++/pr24455.C: Use
14579 -Wl,-undefined,dynamic_lookup on darwin.
14580
14581 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
14582
14583 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
14584
14585 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
14586
14587 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
14588
14589 2012-10-23 Ian Bolton <ian.bolton@arm.com>
14590 Jim MacArthur <jim.macarthur@arm.com>
14591 Marcus Shawcroft <marcus.shawcroft@arm.com>
14592 Nigel Stephens <nigel.stephens@arm.com>
14593 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14594 Richard Earnshaw <rearnsha@arm.com>
14595 Sofiane Naci <sofiane.naci@arm.com>
14596 Stephen Thomas <stephen.thomas@arm.com>
14597 Tejas Belagod <tejas.belagod@arm.com>
14598 Yufeng Zhang <yufeng.zhang@arm.com>
14599
14600 * configure.tgt: Add AArch64.
14601
14602 2012-10-04 Jason Merrill <jason@redhat.com>
14603
14604 * testsuite/libgomp.c++/tls-init1.C: New.
14605
14606 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
14607
14608 * configure: Regenerated.
14609
14610 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
14611
14612 * config/linux/mips/futex.h (sys_futex0): Change to static
14613 function with noinline, nomips16 attributes under MIPS16. Adjust
14614 asm statement to place 'li v0,SYS_futex' immediately before
14615 syscall insn.
14616
14617 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
14618
14619 * libgomp.texi (Library Index): Renamed from "Index" to prevent
14620 conflict with index.html on case-insensitive file systems.
14621
14622 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
14623
14624 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
14625 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
14626
14627 2012-07-02 Richard Guenther <rguenther@suse.de>
14628 Michael Matz <matz@suse.de>
14629 Tobias Grosser <tobias@grosser.es>
14630 Sebastian Pop <sebpop@gmail.com>
14631
14632 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
14633 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14634 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14635 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14636
14637 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
14638
14639 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
14640
14641 2012-06-22 Richard Guenther <rguenther@suse.de>
14642
14643 Merge from graphite branch
14644 2012-01-13 Tobias Grosser <tobias@grosser.es>
14645
14646 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
14647 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14648
14649 2012-06-07 Jakub Jelinek <jakub@redhat.com>
14650
14651 PR middle-end/53580
14652 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
14653 use GOMP_barrier () call instead.
14654 * testsuite/libgomp.c/pr26943-3.c: Likewise.
14655 * testsuite/libgomp.c/pr26943-4.c: Likewise.
14656 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
14657 call GOMP_barrier instead.
14658 * testsuite/libgomp.fortran/vla5.f90: Likewise.
14659
14660 2012-06-06 Jakub Jelinek <jakub@redhat.com>
14661
14662 PR libgomp/52993
14663 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
14664 argument to memset call.
14665
14666 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
14667
14668 * configure: Regenerated.
14669
14670 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14671
14672 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
14673
14674 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
14675
14676 PR bootstrap/52812
14677 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
14678
14679 2012-03-22 Jakub Jelinek <jakub@redhat.com>
14680
14681 PR middle-end/52547
14682 * testsuite/libgomp.c/pr52547.c: New test.
14683
14684 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14685
14686 * testsuite/lib/libgomp.exp: load fortran-modules.exp
14687
14688 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14689
14690 * configure.tgt (mips-sgi-irix6*): Remove.
14691
14692 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14693
14694 * configure.tgt (alpha*-dec-osf*): Remove.
14695
14696 * config/osf/sem.h: Remove.
14697 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
14698
14699 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
14700
14701 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
14702
14703 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14704
14705 PR libstdc++/52188
14706 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
14707 Remove ENABLE_SYMVERS_SOL2.
14708 * configure: Regenerate.
14709 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
14710 (PREPROCESS): New variable.
14711 (libgomp.ver): New target.
14712 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
14713 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
14714 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
14715 Use libgomp.ver.
14716 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
14717 * Makefile.in: Regenerate.
14718
14719 2012-02-14 Walter Lee <walt@tilera.com>
14720
14721 * configure.tgt: Handle tilegx and tilepro.
14722 * config/linux/tile/futex.h: New file.
14723
14724 2012-02-08 Richard Guenther <rguenther@suse.de>
14725
14726 PR tree-optimization/46886
14727 * testsuite/libgomp.c/pr46886.c: New testcase.
14728
14729 2012-01-25 Matthias Klose <doko@ubuntu.com>
14730
14731 * config/linux/arm: Remove empty directory.
14732 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
14733
14734 2011-12-09 Alan Modra <amodra@gmail.com>
14735
14736 PR libgomp/51376
14737 * task.c (GOMP_taskwait): Don't access task->children outside of
14738 task_lock mutex region.
14739 (GOMP_task): Likewise.
14740
14741 2011-12-06 Jakub Jelinek <jakub@redhat.com>
14742
14743 PR libgomp/51132
14744 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
14745 to file scope.
14746 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14747 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14748 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14749 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14750 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14751
14752 2011-12-02 Alan Modra <amodra@gmail.com>
14753
14754 * config/linux/affinity.c: Use atomic rather than sync builtin.
14755 * config/linux/lock.c: Likewise.
14756 * config/linux/ptrlock.h: Likewise.
14757 * config/linux/ptrlock.c: Likewise.
14758 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
14759 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
14760 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
14761 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
14762 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
14763 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
14764 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
14765 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
14766 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
14767 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
14768
14769 2011-11-30 Alan Modra <amodra@gmail.com>
14770
14771 PR libgomp/51298
14772 * config/linux/bar.h: Use atomic rather than sync builtins.
14773 * config/linux/bar.c: Likewise. Add missing acquire
14774 synchronisation on generation field.
14775 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
14776 double unlock.
14777
14778 2011-11-30 Alan Modra <amodra@gmail.com>
14779
14780 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
14781 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
14782 * config/linux/mutex.h: Use atomic rather than sync builtins.
14783 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
14784 * config/linux/omp-lock.h: Comment fix.
14785 * config/linux/arm/mutex.h: Delete.
14786 * config/linux/powerpc/mutex.h: Delete.
14787 * config/linux/ia64/mutex.h: Delete.
14788 * config/linux/mips/mutex.h: Delete.
14789
14790 2011-11-30 Alan Modra <amodra@gmail.com>
14791
14792 PR libgomp/51249
14793 * config/linux/sem.h: Rewrite.
14794 * config/linux/sem.c: Rewrite.
14795
14796 2011-11-28 Richard Henderson <rth@redhat.com>
14797
14798 * libgomp.h (enum memmodel): New.
14799
14800 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
14801
14802 * configure: Regenerate.
14803
14804 2011-10-10 Matthias Klose <doko@ubuntu.com>
14805
14806 * config/posix95: Remove empty directory.
14807
14808 2011-08-26 Jakub Jelinek <jakub@redhat.com>
14809
14810 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
14811
14812 2011-08-19 Jakub Jelinek <jakub@redhat.com>
14813
14814 PR fortran/49792
14815 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
14816 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
14817
14818 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14819
14820 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
14821
14822 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14823
14824 PR libgomp/49965
14825 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
14826
14827 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
14828
14829 * config/linux/proc.h: New.
14830 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
14831 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
14832 (gomp_init_num_threads): Update call to cpuset_popcount.
14833 (get_num_procs): Ditto.
14834 * config/linux/affinity.c (gomp_init_affinity): Call
14835 gomp_cpuset_popcount.
14836
14837 2011-08-02 Jakub Jelinek <jakub@redhat.com>
14838
14839 PR fortran/42041
14840 PR fortran/46752
14841 * omp.h.in (omp_in_final): New prototype.
14842 * omp_lib.f90.in (omp_in_final): New interface.
14843 (omp_integer_kind, omp_logical_kind): Remove
14844 and replace all its uses in the module with 4.
14845 (openmp_version): Change to 201107.
14846 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
14847 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
14848 kind for the parameters.
14849 (omp_in_final): New external.
14850 (openmp_version): Change to 201107.
14851 * task.c (omp_in_final): New function.
14852 (gomp_init_task): Initialize final_task.
14853 (GOMP_task): Remove unused attribute from flags. Handle final
14854 tasks.
14855 (GOMP_taskyield): New function.
14856 (omp_in_final): Return true if if (false) or final (true) task
14857 or descendant of final (true).
14858 * fortran.c (omp_in_final_): New function.
14859 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
14860 (GOMP_3.0): Export GOMP_taskyield.
14861 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
14862 variables.
14863 (parse_unsigned_long_list): New function.
14864 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
14865 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
14866 even if parse_affinity returned false.
14867 * config/linux/affinity.c (gomp_init_affinity): Handle
14868 gomp_cpu_affinity_len == 0.
14869 * libgomp_g.h (GOMP_taskyield): New prototype.
14870 * libgomp.h (struct gomp_task): Add final_task field.
14871 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
14872 * team.c (gomp_team_start): Override new task's nthreads_var icv
14873 if list form OMP_NUM_THREADS has been used and it has value for
14874 the new nesting level.
14875
14876 * testsuite/libgomp.c/atomic-11.c: New test.
14877 * testsuite/libgomp.c/atomic-12.c: New test.
14878 * testsuite/libgomp.c/atomic-13.c: New test.
14879 * testsuite/libgomp.c/atomic-14.c: New test.
14880 * testsuite/libgomp.c/reduction-6.c: New test.
14881 * testsuite/libgomp.c/task-5.c: New test.
14882 * testsuite/libgomp.c++/atomic-2.C: New test.
14883 * testsuite/libgomp.c++/atomic-3.C: New test.
14884 * testsuite/libgomp.c++/atomic-4.C: New test.
14885 * testsuite/libgomp.c++/atomic-5.C: New test.
14886 * testsuite/libgomp.c++/atomic-6.C: New test.
14887 * testsuite/libgomp.c++/atomic-7.C: New test.
14888 * testsuite/libgomp.c++/atomic-8.C: New test.
14889 * testsuite/libgomp.c++/atomic-9.C: New test.
14890 * testsuite/libgomp.c++/task-8.C: New test.
14891 * testsuite/libgomp.c++/reduction-4.C: New test.
14892 * testsuite/libgomp.fortran/allocatable7.f90: New test.
14893 * testsuite/libgomp.fortran/allocatable8.f90: New test.
14894 * testsuite/libgomp.fortran/crayptr3.f90: New test.
14895 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
14896 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
14897 * testsuite/libgomp.fortran/pointer1.f90: New test.
14898 * testsuite/libgomp.fortran/pointer2.f90: New test.
14899 * testsuite/libgomp.fortran/task4.f90: New test.
14900
14901 2011-08-02 Tobias Burnus <burnus@net-b.de>
14902
14903 * libgomp.texi: Update OpenMP spec references to 3.1.
14904 (omp_in_final,OMP_PROC_BIND): New sections.
14905 (OMP_NUM_THREADS): Document that the value can be now a list.
14906 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
14907
14908 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
14909
14910 * config/linux/x86/futex.h: Check __x86_64__ instead of
14911 __LP64__.
14912
14913 2011-07-29 Jakub Jelinek <jakub@redhat.com>
14914
14915 PR middle-end/49897
14916 PR middle-end/49898
14917 * testsuite/libgomp.c/pr49897-1.c: New test.
14918 * testsuite/libgomp.c/pr49897-2.c: New test.
14919 * testsuite/libgomp.c/pr49898-1.c: New test.
14920 * testsuite/libgomp.c/pr49898-2.c: New test.
14921
14922 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
14923
14924 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
14925 for ia32 instead of ilp32.
14926
14927 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
14928 * testsuite/libgomp.c/atomic-6.c: Likewise.
14929
14930 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
14931
14932 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
14933 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
14934
14935 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14936
14937 PR libgomp/45351
14938 * config/osf/sem.h: New file.
14939 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
14940
14941 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14942
14943 PR target/49541
14944 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
14945 ldflags.
14946
14947 2011-07-15 Jakub Jelinek <jakub@redhat.com>
14948
14949 * config/linux/wait.h (do_spin): New inline, largely copied
14950 from do_wait, just don't do futex_wait here, instead return true if
14951 it should be done.
14952 (do_wait): Implement using do_spin.
14953 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
14954 to prototype.
14955 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
14956 __sync_bool_compare_and_swap, pass the oldval to
14957 gomp_mutex_lock_slow.
14958 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
14959 If all mutex contenders are just spinning and not sleeping, don't
14960 change state to 2 unnecessarily. Optimize the loop when state has
14961 already become 2 to use just one atomic operation per loop instead
14962 of two.
14963 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
14964 to prototype.
14965 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
14966 __sync_bool_compare_and_swap, pass the oldval to
14967 gomp_mutex_lock_slow.
14968
14969 2011-06-22 Jakub Jelinek <jakub@redhat.com>
14970
14971 PR libgomp/49490
14972 * iter.c (gomp_iter_static_next): For chunk size 0
14973 only use n ceil/ nthreads size for the first
14974 n % nthreads threads in the team instead of
14975 all threads except for the last few ones which
14976 get less work or none at all.
14977 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
14978 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
14979 chunk argument, set run_sched_modifier to 0 for static
14980 resp. 1 for other kinds. If chunk argument is 0
14981 and not static, set value to 1.
14982
14983 2011-05-19 Jakub Jelinek <jakub@redhat.com>
14984
14985 PR c++/49043
14986 * testsuite/libgomp.c++/pr49043.C: New test.
14987
14988 PR c++/48869
14989 * testsuite/libgomp.c++/pr48869.C: New test.
14990
14991 2011-05-06 Jakub Jelinek <jakub@redhat.com>
14992
14993 PR fortran/48894
14994 * fortran.c: Include limits.h.
14995 (TO_INT): Define.
14996 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
14997 *set.
14998 (omp_set_num_threads_8_, omp_set_schedule_8_,
14999 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
15000 omp_get_team_size_8_): Use TO_INT macro.
15001 * testsuite/libgomp.fortran/pr48894.f90: New test.
15002
15003 2011-04-13 Jakub Jelinek <jakub@redhat.com>
15004
15005 PR middle-end/48591
15006 * testsuite/libgomp.c/pr48591.c: New test.
15007
15008 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15009
15010 PR bootstrap/48135
15011 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
15012 * configure: Regenerate.
15013
15014 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15015
15016 PR fortran/47886
15017 * testsuite/libgomp.fortran/task3.f90: New test.
15018
15019 2011-02-24 Tobias Burnus <burnus@net-b.de>
15020
15021 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
15022
15023 2011-02-23 Jakub Jelinek <jakub@redhat.com>
15024
15025 PR libgomp/47854
15026 * libgomp.texi (omp_get_wtime): Don't say time in the past
15027 must be Unix Epoch.
15028
15029 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15030
15031 PR libgomp/47804
15032 * testsuite/libgomp.fortran/fortran.exp: Check for both
15033 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
15034 but $blddir != "", still append ${blddir}/${lang_library_path}
15035 to ld_library_path.
15036
15037 2011-02-16 Tobias Burnus <burnus@net-b.de>
15038
15039 PR libgomp/47758
15040 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
15041 of libquadmath.a before adding its libpath to ldflags.
15042
15043 2011-02-14 Jakub Jelinek <jakub@redhat.com>
15044
15045 PR libgomp/47731
15046 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
15047 to FUTEX_WAIT futex syscall.
15048 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
15049
15050 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15051
15052 * configure: Regenerate.
15053
15054 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
15055
15056 PR libstdc++/36104
15057 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
15058
15059 2011-01-16 Gerald Pfeifer
15060
15061 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
15062
15063 2010-12-14 Jakub Jelinek <jakub@redhat.com>
15064
15065 PR fortran/46874
15066 * libgomp.fortran/allocatable6.f90: New test.
15067
15068 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15069
15070 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
15071 * configure: Regenerate.
15072
15073 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
15074
15075 PR target/40125
15076 PR lto/46695
15077 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
15078 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
15079 * aclocal.m4: Regenerate.
15080 * configure: Regenerate.
15081 * Makefile.in: Regenerate.
15082 * testsuite/Makefile.in: Regenerate.
15083
15084 2010-12-02 Jakub Jelinek <jakub@redhat.com>
15085
15086 PR fortran/46753
15087 * libgomp.fortran/pr46753.f90: New test.
15088
15089 PR libgomp/43706
15090 * env.c (initialize_env): Default to spin count 300000
15091 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
15092 is specified.
15093
15094 PR libgomp/45240
15095 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
15096 at the end if sync builtins aren't supported.
15097
15098 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15099
15100 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
15101
15102 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15103
15104 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
15105
15106 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
15107
15108 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
15109
15110 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15111 Tobias Burnus <burnus@net-b.de>
15112
15113 PR fortran/32049
15114 * configure.ac:
15115 * configure: Regenerate.
15116
15117 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
15118
15119 * config/linux/futex.h: New.
15120 * config/linux/arm/mutex.h: New.
15121 * configure.tgt (arm*-*-linux*): Add config path.
15122
15123 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
15124
15125 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15126
15127 2010-09-23 Tobias Burnus <burnus@net-b.de>
15128
15129 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
15130 Change Fortran datatype to LOGICAL.
15131 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
15132 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
15133
15134 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15135
15136 * configure: Regenerate.
15137
15138 2010-07-26 Jakub Jelinek <jakub@redhat.com>
15139
15140 * libgomp.texi: Add function keyword to a couple of Fortran
15141 interfaces, use integer instead of int for Fortran.
15142
15143 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
15144
15145 * libgomp.texi: Fix spelling and pasto problems throughout.
15146 Adjust prototypes to match code.
15147
15148 2010-07-24 Tobias Burnus <burnus@net-b.de>
15149
15150 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
15151 silence -fwhole-file warning.
15152
15153 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15154
15155 * configure.tgt (*-*-solaris2.[56]*): Removed.
15156
15157 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15158
15159 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
15160 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
15161 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
15162 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
15163 targetting solaris2*.
15164 * configure: Regenerate.
15165 * config.h.in: Regenerate.
15166
15167 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
15168 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
15169 Add libgomp_version_dep.
15170 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
15171 versioning.
15172 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
15173 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
15174 * Makefile.in: Regenerate.
15175
15176 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
15177 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15178 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
15179 to common block, protected by
15180 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
15181
15182 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
15183
15184 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
15185
15186 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
15187
15188 PR bootstrap/43170
15189 * configure: Regenerate.
15190
15191 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15192
15193 PR other/43620
15194 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
15195 * configure: Regenerate.
15196 * Makefile.in: Regenerate.
15197 * testsuite/Makefile.in: Regenerate.
15198
15199 2010-04-26 Jakub Jelinek <jakub@redhat.com>
15200
15201 PR c/43893
15202 * testsuite/libgomp.c/pr43893.c: New test.
15203 * testsuite/libgomp.c++/pr43893.C: New test.
15204
15205 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15206
15207 PR middle-end/43570
15208 * testsuite/libgomp.fortran/vla8.f90: New test.
15209
15210 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15211
15212 PR libgomp/43706
15213 * config/linux/affinity.c (gomp_init_affinity): Decrease
15214 gomp_available_cpus if affinity mask confines the process to fewer
15215 CPUs.
15216 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
15217 non-NULL, just return gomp_available_cpus.
15218
15219 PR libgomp/43569
15220 * sections.c (gomp_sections_init): Initialize ws->mode.
15221
15222 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15223
15224 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
15225 not unused bar variable.
15226 * configure: Regenerate.
15227
15228 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15229
15230 * Makefile.in: Regenerate.
15231 * aclocal.m4: Regenerate.
15232 * testsuite/Makefile.in: Regenerate.
15233
15234 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15235
15236 PR libgomp/42942
15237 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
15238 (initialize_env): Adjust callers.
15239 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
15240 when the argument is 0.
15241
15242 * testsuite/libgomp.c/pr42942.c: New test.
15243
15244 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15245
15246 PR middle-end/42644
15247 PR middle-end/42130
15248 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
15249 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
15250
15251 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15252
15253 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
15254 * testsuite/libgomp.c++/task-6.C: Likewise.
15255
15256 2010-01-28 Steve Ellcey <sje@cup.hp.com>
15257
15258 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
15259
15260 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
15261
15262 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
15263 * configure: Regenerate.
15264
15265 2010-01-26 Jakub Jelinek <jakub@redhat.com>
15266
15267 PR fortran/42866
15268 * testsuite/libgomp.fortran/allocatable5.f90: New test.
15269
15270 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
15271
15272 * configure.ac: Test for executability of GFORTRAN.
15273 * configure: Regenerate.
15274
15275 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15276
15277 * configure: Regenerate.
15278
15279 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15280
15281 PR libgomp/42602
15282 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
15283
15284 2010-01-03 Richard Guenther <rguenther@suse.de>
15285
15286 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
15287
15288 2009-12-23 Sebastian Pop <sebpop@gmail.com>
15289
15290 * testsuite/libgomp.graphite/pr4118.c: New.
15291
15292 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15293
15294 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
15295 for darwin, protect the test with require-effective-target tls_runtime.
15296 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
15297
15298 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15299
15300 PR target/41605
15301 * testsuite/lib/libgomp.exp: Provide -B options to allow for
15302 link spec %s substitutions for static libraries.
15303
15304 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
15305
15306 PR testsuite/42135
15307 * libgomp.graphite/force-parallel-2.c: Reduce array size.
15308
15309 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15310
15311 * Makefile.in: Regenerate.
15312 * configure: Regenerate.
15313 * testsuite/Makefile.in: Regenerate.
15314
15315 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
15316
15317 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
15318 settings for LC_ALL and LANG.
15319
15320 2009-11-25 Jakub Jelinek <jakub@redhat.com>
15321
15322 PR fortran/42162
15323 * testsuite/libgomp.fortran/pr42162.f90: New test.
15324
15325 2009-11-13 Jakub Jelinek <jakub@redhat.com>
15326
15327 PR middle-end/42029
15328 * testsuite/libgomp.c/pr42029.c: New test.
15329
15330 2009-10-26 Jakub Jelinek <jakub@redhat.com>
15331
15332 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
15333 *s. Accept ld version without text in ()s.
15334 * configure: Regenerated.
15335
15336 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
15337
15338 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
15339
15340 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15341
15342 PR libgomp/41418
15343 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
15344 or a hyphen (happens with fortran language disabled).
15345 * configure: Regenerate.
15346
15347 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15348
15349 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
15350 use sed script portable to Solaris /bin/sed for extracting ld
15351 version.
15352 * configure: Regenerate.
15353
15354 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
15355
15356 * testsuite/libgomp.graphite/bounds.c: New test.
15357
15358 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15359
15360 * Makefile.am (libgomp_la_LINK): New.
15361 * Makefile.in: Regenerate.
15362
15363 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15364
15365 * configure.ac (AC_PREREQ): Bump to 2.64.
15366
15367 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15368
15369 * Makefile.am (install-html, install-pdf): Remove.
15370 * Makefile.in: Regenerate.
15371
15372 * Makefile.in: Regenerate.
15373 * aclocal.m4: Regenerate.
15374 * config.h.in: Regenerate.
15375 * configure: Regenerate.
15376 * testsuite/Makefile.in: Regenerate.
15377
15378 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15379
15380 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
15381 * Makefile.in: Regenerate.
15382
15383 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
15384
15385 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
15386 * Makefile.in: Regenerate.
15387
15388 2009-08-19 Tobias Burnus <burnus@net-b.de>
15389
15390 PR fortran/41102
15391 omp_lib.h.in: Fix -std=f95 errors.
15392
15393 2009-08-14 David Edelsohn <edelsohn@gnu.org>
15394
15395 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
15396 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
15397 * testsuite/libgomp.graphite/graphite.exp: New.
15398
15399 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
15400
15401 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
15402 only build.
15403
15404 2009-08-04 David Daney <ddaney@caviumnetworks.com>
15405
15406 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
15407 needed memory barrier semantics.
15408 * config/linux/mips/mutex.h: New file.
15409
15410 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15411
15412 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
15413
15414 2009-07-16 Joseph Myers <joseph@codesourcery.com>
15415
15416 * configure: Regenerate.
15417
15418 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
15419
15420 PR testsuite/40699
15421 PR testsuite/40707
15422 PR testsuite/40709
15423 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
15424 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
15425 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
15426
15427 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
15428
15429 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
15430 options when choosing a multilib.
15431
15432 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
15433
15434 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
15435 ld_library_path. Use add_path. Add just find_libgcc_s to
15436 ld_library_path, not every libgcc multilib directory.
15437 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
15438 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
15439 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
15440 Use add_path.
15441 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
15442
15443 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
15444
15445 * Makefile.am (LTLDFLAGS): Define.
15446 (LINK): Define.
15447 * Makefile.in: Regenerate.
15448
15449 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
15450
15451 PR fortran/39718
15452 * testsuite/libgomp.fortran/fortran.exp: Don't link with
15453 libgfortranbegin, check existence of libgfortran.a instead of
15454 libgfortranbegin.a.
15455
15456 2009-05-20 Jakub Jelinek <jakub@redhat.com>
15457
15458 PR libgomp/40174
15459 * team.c (gomp_thread_start): Destroy thr->release semaphore.
15460 (gomp_free_pool_helper): Likewise.
15461
15462 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
15463 Jakub Jelinek <jakub@redhat.com>
15464
15465 PR fortran/35423
15466 * testsuite/libgomp.fortran/workshare2.f90: New test.
15467
15468 2009-04-09 Nick Clifton <nickc@redhat.com>
15469
15470 * iter.c: Change copyright header to refer to version 3 of the
15471 GNU General Public License with version 3.1 of the GCC Runtime
15472 Library Exception and to point readers at the COPYING3 and
15473 COPYING3.RUNTIME files and the FSF's license web page.
15474 * alloc.c: Likewise.
15475 * barrier.c: Likewise.
15476 * config/bsd/proc.c: Likewise.
15477 * config/linux/affinity.c: Likewise.
15478 * config/linux/alpha/futex.h: Likewise.
15479 * config/linux/bar.c: Likewise.
15480 * config/linux/bar.h: Likewise.
15481 * config/linux/ia64/futex.h: Likewise.
15482 * config/linux/ia64/mutex.h: Likewise.
15483 * config/linux/lock.c: Likewise.
15484 * config/linux/mips/futex.h: Likewise.
15485 * config/linux/mutex.c: Likewise.
15486 * config/linux/mutex.h: Likewise.
15487 * config/linux/powerpc/futex.h: Likewise.
15488 * config/linux/proc.c: Likewise.
15489 * config/linux/ptrlock.c: Likewise.
15490 * config/linux/ptrlock.h: Likewise.
15491 * config/linux/s390/futex.h: Likewise.
15492 * config/linux/sem.c: Likewise.
15493 * config/linux/sem.h: Likewise.
15494 * config/linux/sparc/futex.h: Likewise.
15495 * config/linux/wait.h: Likewise.
15496 * config/linux/x86/futex.h: Likewise.
15497 * config/mingw32/proc.c: Likewise.
15498 * config/mingw32/time.c: Likewise.
15499 * config/posix/affinity.c: Likewise.
15500 * config/posix/bar.c: Likewise.
15501 * config/posix/bar.h: Likewise.
15502 * config/posix/lock.c: Likewise.
15503 * config/posix/mutex.h: Likewise.
15504 * config/posix/proc.c: Likewise.
15505 * config/posix/ptrlock.h: Likewise.
15506 * config/posix/sem.c: Likewise.
15507 * config/posix/sem.h: Likewise.
15508 * config/posix/time.c: Likewise.
15509 * config/posix95/lock.c: Likewise.
15510 * critical.c: Likewise.
15511 * env.c: Likewise.
15512 * error.c: Likewise.
15513 * fortran.c: Likewise.
15514 * iter_ull.c: Likewise.
15515 * libgomp.h: Likewise.
15516 * libgomp_f.h.in: Likewise.
15517 * libgomp_g.h: Likewise.
15518 * loop.c: Likewise.
15519 * loop_ull.c: Likewise.
15520 * omp.h.in: Likewise.
15521 * omp_lib.f90.in: Likewise.
15522 * omp_lib.h.in: Likewise.
15523 * ordered.c: Likewise.
15524 * parallel.c: Likewise.
15525 * sections.c: Likewise.
15526 * single.c: Likewise.
15527 * task.c: Likewise.
15528 * team.c: Likewise.
15529 * work.c: Likewise.
15530
15531 2009-04-09 Jakub Jelinek <jakub@redhat.com>
15532
15533 * testsuite/config/default.exp: Change copyright header to refer to
15534 version 3 of the GNU General Public License and to point readers
15535 at the COPYING3 file and the FSF's license web page.
15536
15537 2009-04-08 Jakub Jelinek <jakub@redhat.com>
15538
15539 PR middle-end/39573
15540 * libgomp.c++/pr39573.C: New test.
15541
15542 2009-04-01 Jakub Jelinek <jakub@redhat.com>
15543
15544 PR other/39591
15545 * testsuite/libgomp.c/pr39591-1.c: New test.
15546 * testsuite/libgomp.c/pr39591-2.c: New test.
15547 * testsuite/libgomp.c/pr39591-3.c: New test.
15548
15549 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
15550
15551 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
15552 * testsuite/libgomp.c/atomic-6.c: Ditto.
15553
15554 2009-03-23 Jakub Jelinek <jakub@redhat.com>
15555
15556 PR c/39495
15557 * testsuite/libgomp.c/loop-12.c: New test.
15558 * testsuite/libgomp.c/loop-11.c: New test.
15559 * testsuite/libgomp.c++/loop-11.C: New test.
15560 * testsuite/libgomp.c++/loop-12.C: New test.
15561 * testsuite/libgomp.c++/for-8.C: New test.
15562
15563 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15564
15565 * configure: Regenerate.
15566
15567 2009-02-11 Jakub Jelinek <jakub@redhat.com>
15568
15569 PR middle-end/39154
15570 * testsuite/libgomp.c/pr39154.c: New test.
15571
15572 2009-01-30 Ian Lance Taylor <iant@google.com>
15573
15574 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
15575 libgomp_ld_is_gold. Get gold version number.
15576 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
15577 * configure: Rebuild.
15578
15579 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15580
15581 * testsuite/lib/libgomp.exp: Add -B option for targets that
15582 use libgfortran.a%s in their specs.
15583
15584 2009-01-07 Jakub Jelinek <jakub@redhat.com>
15585
15586 PR libgomp/38086
15587 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
15588 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
15589 HAVE_AS_SYMVER_DIRECTIVE is not defined.
15590 * configure: Regenerated.
15591 * config.h.in: Likewise.
15592
15593 2008-12-28 Jakub Jelinek <jakub@redhat.com>
15594
15595 PR c++/38650
15596 * testsuite/libgomp.c/pr38650.c: New test.
15597 * testsuite/libgomp.c++/pr38650.C: New test.
15598
15599 2008-12-27 Jakub Jelinek <jakub@redhat.com>
15600
15601 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
15602
15603 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
15604
15605 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
15606
15607 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15608
15609 * configure: Regenerate.
15610
15611 2008-12-08 Jakub Jelinek <jakub@redhat.com>
15612
15613 PR middle-end/36802
15614 * testsuite/libgomp.c/pr36802-1.c: New test.
15615 * testsuite/libgomp.c/pr36802-2.c: New test.
15616 * testsuite/libgomp.c/pr36802-3.c: New test.
15617
15618 2008-12-01 Janis Johnson <janis187@us.ibm.com>
15619
15620 PR libgomp/38270
15621 * config/linux/powerpc/mutex.h: New.
15622
15623 2008-12-01 Jakub Jelinek <jakub@redhat.com>
15624
15625 PR c++/38257
15626 * testsuite/libgomp.c++/for-7.C: New test.
15627
15628 PR c++/38348
15629 * testsuite/libgomp.c++/for-6.C: New test.
15630
15631 2008-11-26 Janis Johnson <janis187@us.ibm.com>
15632
15633 PR testsuite/28870
15634 * testsuite/lib/libgomp.exp: Include new timeout library files.
15635 (libgomp_target_compile): Set timeout value from new proc.
15636
15637 2008-11-13 Steve Ellcey <sje@cup.hp.com>
15638
15639 PR libgomp/37938
15640 * config/linux/ia64/mutex.h: New.
15641
15642 2008-11-04 Tobias Burnus <burnus@net-b.de>
15643
15644 PR libgomp/37935
15645 * libgomp.texi (Runtime library routines, environment variables):
15646 Update for OpenMP version 3.0.
15647
15648 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
15649 Steve Ellcey <sje@cup.hp.com>
15650
15651 * configure: Regenerate for new libtool.
15652 * Makefile.in: Ditto.
15653 * testsuite/Makefile.in: Ditto.
15654
15655 2008-09-19 Jakub Jelinek <jakub@redhat.com>
15656 Andreas Tobler <a.tobler@schweiz.org>
15657
15658 * config/bsd/proc.c: New file.
15659 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
15660 * configure.ac: Check for header <sys/sysctl.h>
15661 * configure: Regenerate.
15662 * config.h.in: Likewise.
15663
15664 2008-09-05 Janis Johnson <janis187@us.ibm.com>
15665
15666 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
15667
15668 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
15669
15670 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
15671 * Makefile.in: Regenerated.
15672 * testsuite/Makefile.in: Regenerated.
15673
15674 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
15675
15676 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
15677 depend on blddir if blddir exists.
15678 (libgomp_target_compile): Likewise.
15679 * testsuite/libgomp.c++/c++.exp: Likewise.
15680 * testsuite/libgomp.fortran/fortran.exp: Likewise.
15681
15682 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15683
15684 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
15685 Do not list GPL as Invariant Section.
15686
15687 2008-07-28 Ilie Garbacea <ilie@mips.com>
15688 Chao-ying Fu <fu@mips.com>
15689
15690 * configure.tgt: Enable futex for MIPS.
15691 * config/linux/mips/futex.h: New file.
15692
15693 2008-07-16 Jakub Jelinek <jakub@redhat.com>
15694
15695 * team.c (gomp_team_end): Free team immediately if it has
15696 just one thread.
15697
15698 2008-07-08 David Edelsohn <edelsohn@gnu.org>
15699
15700 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
15701 * testsuite/libgomp.fortran/fortran.exp: Same.
15702 * testsuite/libgomp.c/c.exp: Same.
15703 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
15704 directory to library path first.
15705
15706 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
15707
15708 * env.c (parse_stacksize): Add cast to avoid warning.
15709 (parse_spincount): Likewise.
15710
15711 2008-06-27 Jakub Jelinek <jakub@redhat.com>
15712
15713 * testsuite/libgomp.c/loop-10.c: New test.
15714 * libgomp.c/loop-3.c (main): Add lastprivate clause.
15715 * libgomp.c++/loop-6.C (main): Likewise.
15716
15717 PR debug/36617
15718 * testsuite/libgomp.c/debug-1.c: New test.
15719
15720 2008-06-19 Jakub Jelinek <jakub@redhat.com>
15721
15722 * testsuite/libgomp.c/nqueens-1.c: New test.
15723
15724 PR c++/36523
15725 * testsuite/libgomp.c++/task-7.C: New function.
15726
15727 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15728
15729 * configure: Regenerate.
15730
15731 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15732
15733 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
15734 mutex when HAVE_SYNC_BUILTINS isn't defined.
15735
15736 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15737
15738 * libgomp.texi (omp_test_lock): Fix typo.
15739
15740 2008-06-12 Tobias Burnus <burnus@net-b.de>
15741
15742 * omp_lib.f90.in: Add "implicit none".
15743
15744 2008-06-12 Jakub Jelinek <jakub@redhat.com>
15745
15746 PR middle-end/36506
15747 * testsuite/libgomp.c/reduction-5.c: New test.
15748
15749 2008-06-11 Jakub Jelinek <jakub@redhat.com>
15750
15751 * libgomp.h (struct gomp_task): Add in_tied_task field.
15752 * task.c (gomp_init_task): Initialize it.
15753 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
15754 unconditionally. Don't call gomp_team_barrier_wake if
15755 current task is implicit or if(0) from implicit and number of
15756 running tasks is equal to nthreads - 1.
15757
15758 PR libgomp/36471
15759 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
15760 omp_get_team_size_8): Fix pastos.
15761
15762 PR libgomp/36469
15763 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
15764 * configure: Regenerated.
15765 * config.h.in: Regenerated.
15766 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
15767 defined.
15768
15769 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
15770
15771 PR bootstrap/36452
15772 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
15773 (GOMP_loop_ull_dynamic_start): Likewise.
15774 (GOMP_loop_ull_guided_start): Likewise.
15775 (GOMP_loop_ull_ordered_static_start): Likewise.
15776 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
15777 (GOMP_loop_ull_ordered_guided_start): Likewise.
15778
15779 2008-06-06 Jakub Jelinek <jakub@redhat.com>
15780 Richard Henderson <rth@redhat.com>
15781 Ulrich Drepper <drepper@redhat.com>
15782 Jakob Blomer <jakob.blomer@ira.uka.de>
15783
15784 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
15785 Substitute also OMP_*LOCK_25*.
15786 * configure: Regenerated.
15787 * config.h.in: Regenerated.
15788 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
15789 ptrlock.c and task.c.
15790 * Makefile.in: Regenerated.
15791 * testsuite/Makefile.in: Regenerated.
15792 * task.c: New file.
15793 * loop_ull.c: New file.
15794 * iter_ull.c: New file.
15795 * libgomp.h: Include ptrlock.h.
15796 (enum gomp_task_kind): New type.
15797 (struct gomp_team): Add task_lock, task_queue, task_count,
15798 task_running_count, single_count fields. Add
15799 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
15800 Remove work_share_lock, generation_mask,
15801 oldest_live_gen, num_live_gen and init_work_shares fields, add
15802 work work_share_list_alloc, work_share_list_free and work_share_chunk
15803 fields. Change work_shares from pointer to pointers into an array.
15804 Change ordered_release field into gomp_sem_t ** from flexible array
15805 member. Add implicit_task and initial_work_shares fields.
15806 Move close to the end of the struct.
15807 (struct gomp_team_state): Add single_count, last_work_share,
15808 active_level and level fields, remove work_share_generation.
15809 (gomp_barrier_handle_tasks): New prototype.
15810 (gomp_finish_task): New inline function.
15811 (struct gomp_work_share): Move chunk_size, end, incr into
15812 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
15813 next_ll fields. Reshuffle fields. Add next_alloc,
15814 next_ws, next_free and inline_ordered_team_ids fields, change
15815 ordered_team_ids into pointer from flexible array member.
15816 Add mode field. Put lock and next into a different cache line
15817 from most of the write-once fields.
15818 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
15819 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
15820 gomp_iter_ull_guided_next): New prototypes.
15821 (gomp_new_icv): New prototype.
15822 (struct gomp_thread): Add thread_pool and task fields.
15823 (struct gomp_thread_pool): New type.
15824 (gomp_new_team): New prototype.
15825 (gomp_team_start): Change type of last argument.
15826 (gomp_new_work_share): Removed.
15827 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
15828 (gomp_work_share_init_done): New static inline.
15829 (gomp_throttled_spin_count_var, gomp_available_cpus,
15830 gomp_managed_threads): New extern decls.
15831 (gomp_init_task): New prototype.
15832 (gomp_spin_count_var): New extern var decl.
15833 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
15834 or no alias support, or if not PIC.
15835 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
15836 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
15837 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
15838 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
15839 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
15840 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
15841 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
15842 gomp_test_nest_lock_25): New prototypes.
15843 (omp_lock_symver, strong_alias): Define.
15844 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
15845 decls.
15846 (gomp_end_task): New.
15847 (struct gomp_task_icv, gomp_global_icv): New.
15848 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
15849 (struct gomp_task): New.
15850 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
15851 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
15852 (gomp_icv): New.
15853 (gomp_schedule_type): Reorder enum to match
15854 omp_sched_t.
15855 * team.c (struct gomp_thread_start_data): Add thread_pool and task
15856 fields.
15857 (gomp_thread_start): Add gomp_team_barrier_wait call.
15858 For non-nested case remove clearing of docked thread thr fields.
15859 Use pool fields instead of global gomp_* variables. Use
15860 gomp_barrier_wait_last when needed. Initialize ts.active_level.
15861 Create tasks for each member thread.
15862 (free_team): Only destroy team barrier, task_lock here and free it.
15863 (gomp_free_thread): Free last_team if non-NULL.
15864 (gomp_team_end): Call gomp_team_barrier_wait instead of
15865 gomp_barrier_wait. For nested case call one extra
15866 gomp_barrier_wait. Move here some destruction from free_team.
15867 Call free_team on pool->last_team if any, rather than freeing
15868 current team. Destroy work_share_list_free_lock ifndef
15869 HAVE_SYNC_BUILTINS.
15870 (gomp_new_icv): New function.
15871 (gomp_threads, gomp_threads_size, gomp_threads_used,
15872 gomp_threads_dock): Removed.
15873 (gomp_thread_destructor): New variable.
15874 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
15875 functions.
15876 (gomp_team_start): Create new pool if current thread doesn't have
15877 one. Use pool fields instead of global gomp_* variables.
15878 Initialize thread_pool field for new threads. Clear single_count.
15879 Change last argument from ws to team, don't create
15880 new team, set ts.work_share to &team->work_shares[0] and clear
15881 ts.last_work_share. Don't clear ts.work_share_generation.
15882 If number of threads changed, adjust atomically gomp_managed_threads.
15883 Use gomp_init_task instead of gomp_new_task,
15884 set thr->task to the corresponding implicit_task array entry.
15885 Create tasks for each member thread. Initialize ts.level.
15886 (initialize_team): Call pthread_key_create on
15887 gomp_thread_destructor.
15888 (team_destructor): New function.
15889 (new_team): Removed.
15890 (gomp_new_team): New function.
15891 (free_team): Free gomp_work_share blocks chained through next_alloc,
15892 instead of freeing work_shares and destroying work_share_lock.
15893 (gomp_team_end): Call gomp_fini_work_share. If number of threads
15894 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
15895 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
15896 of gomp_barrier_wait.
15897 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
15898 instead of gomp_barrier_wait. Call gomp_work_share_init_done
15899 if gomp_work_share_start returned true. Don't unlock ws->lock.
15900 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
15901 of gomp_barrier_wait.
15902 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
15903 gomp_work_share_init_done if gomp_work_share_start returned true.
15904 Don't unlock ws->lock.
15905 * work.c: Include stddef.h.
15906 (free_work_share): Use work_share_list_free_lock instead
15907 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
15908 Call gomp_fini_work_share and then either free ws if orphaned, or
15909 put it into work_share_list_free list of the current team.
15910 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
15911 functions.
15912 (gomp_work_share_start, gomp_work_share_end,
15913 gomp_work_share_end_nowait): Rewritten.
15914 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
15915 (openmp_version): Set to 200805.
15916 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
15917 omp_sched_guided, omp_sched_auto): New parameters.
15918 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
15919 omp_set_max_active_levels, omp_get_max_active_levels,
15920 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
15921 omp_get_active_level): New interfaces.
15922 * omp_lib.h.in (openmp_version): Set to 200805.
15923 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
15924 omp_sched_guided, omp_sched_auto): New parameters.
15925 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
15926 omp_set_max_active_levels, omp_get_max_active_levels,
15927 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
15928 omp_get_active_level): New externals.
15929 * loop.c: Include limits.h.
15930 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
15931 GFS_AUTO.
15932 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
15933 Likewise. Use gomp_icv.
15934 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
15935 ts.static_trip here.
15936 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
15937 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
15938 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
15939 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
15940 don't unlock ws->lock, otherwise lock it.
15941 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
15942 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
15943 (gomp_parallel_loop_start): Call gomp_new_team instead of
15944 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
15945 Adjust gomp_team_start caller. Pass 0 as second argument to
15946 gomp_resolve_num_threads.
15947 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
15948 If adding ws->chunk_size nthreads + 1 times after end won't
15949 overflow, set ws->mode to 1.
15950 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
15951 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
15952 GOMP_loop_ull_ordered_static_start,
15953 GOMP_loop_ull_ordered_dynamic_start,
15954 GOMP_loop_ull_ordered_guided_start,
15955 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
15956 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
15957 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
15958 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
15959 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
15960 prototypes.
15961 * libgomp.map: Export lock routines also @@OMP_2.0.
15962 (GOMP_loop_ordered_dynamic_first,
15963 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
15964 GOMP_loop_ordered_static_first): Remove.
15965 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
15966 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
15967 GOMP_loop_ull_ordered_dynamic_next,
15968 GOMP_loop_ull_ordered_dynamic_start,
15969 GOMP_loop_ull_ordered_guided_next,
15970 GOMP_loop_ull_ordered_guided_start,
15971 GOMP_loop_ull_ordered_runtime_next,
15972 GOMP_loop_ull_ordered_runtime_start,
15973 GOMP_loop_ull_ordered_static_next,
15974 GOMP_loop_ull_ordered_static_start,
15975 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
15976 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
15977 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
15978 (omp_set_schedule, omp_get_schedule,
15979 omp_get_thread_limit, omp_set_max_active_levels,
15980 omp_get_max_active_levels, omp_get_level,
15981 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
15982 omp_set_schedule_, omp_set_schedule_8_,
15983 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
15984 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
15985 omp_get_max_active_levels_, omp_get_level_,
15986 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
15987 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
15988 New exports @@OMP_3.0.
15989 * omp.h.in (omp_sched_t): New type.
15990 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
15991 omp_set_max_active_levels, omp_get_max_active_levels,
15992 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
15993 omp_get_active_level): New prototypes.
15994 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
15995 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
15996 gomp_thread_limit_var, gomp_remaining_threads_count,
15997 gomp_remaining_threads_lock): New variables.
15998 (parse_spincount): New function.
15999 (initialize_env): Call gomp_init_num_threads unconditionally.
16000 Initialize gomp_available_cpus. Call parse_spincount,
16001 initialize gomp_{,throttled_}spin_count_var
16002 depending on presence and value of OMP_WAIT_POLICY and
16003 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
16004 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
16005 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
16006 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
16007 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
16008 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
16009 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
16010 (gomp_global_icv): New.
16011 (parse_schedule): Use it. Parse "auto".
16012 (omp_set_num_threads): Use gomp_icv.
16013 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
16014 Likewise.
16015 (omp_get_max_threads): Move from parallel.c.
16016 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
16017 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
16018 add ialias.
16019 (parse_stacksize, parse_wait_policy): New functions.
16020 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
16021 both wrappers for compatibility and new locks.
16022 (omp_set_schedule, omp_get_schedule,
16023 omp_get_thread_limit, omp_set_max_active_levels,
16024 omp_get_max_active_levels, omp_get_level,
16025 omp_get_ancestor_thread_num, omp_get_team_size,
16026 omp_get_active_level): New ialias_redirect.
16027 (omp_set_schedule_, omp_set_schedule_8_,
16028 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
16029 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
16030 omp_get_max_active_levels_, omp_get_level_,
16031 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
16032 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
16033 New functions.
16034 * parallel.c: Include limits.h.
16035 (gomp_resolve_num_threads): Add count argument. Rewritten.
16036 (GOMP_parallel_start): Call gomp_new_team and pass that as last
16037 argument to gomp_team_start. Pass 0 as second argument to
16038 gomp_resolve_num_threads.
16039 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
16040 if gomp_thread_limit_var != ULONG_MAX.
16041 (omp_in_parallel): Implement using ts.active_level.
16042 (omp_get_max_threads): Move to env.c.
16043 (omp_get_level, omp_get_ancestor_thread_num,
16044 omp_get_team_size, omp_get_active_level): New functions,
16045 add ialias.
16046 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
16047 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
16048 gomp_iter_dynamic_next instead of the _locked variant and don't take
16049 lock around it, otherwise acquire it before calling
16050 gomp_iter_dynamic_next_locked.
16051 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
16052 gomp_iter_dynamic_next instead of the _locked variant and don't take
16053 lock around it.
16054 (GOMP_parallel_sections_start): Call gomp_new_team instead of
16055 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
16056 Adjust gomp_team_start caller. Pass count as second argument to
16057 gomp_resolve_num_threads, don't adjust num_threads after the call.
16058 Use gomp_icv.
16059 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
16060 ws->chunk_size by incr.
16061 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
16062 code.
16063 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
16064 types.
16065 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
16066 (omp_check_defines): Check even the compat defines.
16067 * config/linux/ptrlock.c: New file.
16068 * config/linux/ptrlock.h: New file.
16069 * config/linux/wait.h: New file.
16070 * config/posix/ptrlock.c: New file.
16071 * config/posix/ptrlock.h: New file.
16072 * config/linux/bar.h (gomp_team_barrier_wait,
16073 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16074 (gomp_team_barrier_set_task_pending,
16075 gomp_team_barrier_clear_task_pending,
16076 gomp_team_barrier_set_waiting_for_tasks,
16077 gomp_team_barrier_waiting_for_tasks,
16078 gomp_team_barrier_done): New inlines.
16079 (gomp_barrier_t): Rewritten.
16080 (gomp_barrier_state_t): New typedef.
16081 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
16082 gomp_barrier_wait_start): Rewritten.
16083 (gomp_barrier_wait_end): Change second argument to
16084 gomp_barrier_state_t.
16085 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16086 inlines.
16087 * config/linux/bar.c: Include wait.h instead of libgomp.h and
16088 futex.h.
16089 (gomp_barrier_wait_end): Rewritten.
16090 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16091 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
16092 * config/posix/bar.h (gomp_barrier_t): Add generation field.
16093 (gomp_barrier_state_t): New typedef.
16094 (gomp_team_barrier_wait,
16095 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
16096 (gomp_barrier_wait_start): Or all but low 2 bits from generation
16097 into the return value. Return gomp_barrier_state_t.
16098 (gomp_team_barrier_set_task_pending,
16099 gomp_team_barrier_clear_task_pending,
16100 gomp_team_barrier_set_waiting_for_tasks,
16101 gomp_team_barrier_waiting_for_tasks,
16102 gomp_team_barrier_done): New inlines.
16103 (gomp_barrier_wait_end): Change second argument to
16104 gomp_barrier_state_t.
16105 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
16106 inlines.
16107 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
16108 (gomp_barrier_wait_end): Change second argument to
16109 gomp_barrier_state_t.
16110 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
16111 gomp_team_barrier_wake): New functions.
16112 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
16113 futex.h.
16114 (gomp_futex_wake, gomp_futex_wait): New variables.
16115 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
16116 * config/linux/lock.c: Rewrite to make locks task owned,
16117 for backwards compatibility provide the old entrypoints
16118 if symbol versioning. Include wait.h instead of libgomp.h and
16119 futex.h.
16120 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
16121 * config/posix95/lock.c: Rewrite to make locks task owned,
16122 for backwards compatibility provide the old entrypoints
16123 if symbol versioning.
16124 * config/posix/lock.c: Rewrite to make locks task owned,
16125 for backwards compatibility provide the old entrypoints
16126 if symbol versioning.
16127 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
16128 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
16129 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
16130 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16131 (sys_futex0): Return error code.
16132 (futex_wake, futex_wait): If ENOSYS was returned, clear
16133 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16134 (cpu_relax, atomic_write_barrier): New static inlines.
16135 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16136 (futex_wake, futex_wait): If ENOSYS was returned, clear
16137 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16138 (cpu_relax, atomic_write_barrier): New static inlines.
16139 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16140 (sys_futex0): Return error code.
16141 (futex_wake, futex_wait): If ENOSYS was returned, clear
16142 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16143 (cpu_relax, atomic_write_barrier): New static inlines.
16144 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16145 (sys_futex0): Return error code.
16146 (futex_wake, futex_wait): If ENOSYS was returned, clear
16147 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16148 (cpu_relax, atomic_write_barrier): New static inlines.
16149 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16150 (sys_futex0): Return error code.
16151 (futex_wake, futex_wait): If ENOSYS was returned, clear
16152 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16153 (cpu_relax, atomic_write_barrier): New static inlines.
16154 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
16155 (sys_futex0): Return error code.
16156 (futex_wake, futex_wait): If ENOSYS was returned, clear
16157 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
16158 (cpu_relax, atomic_write_barrier): New static inlines.
16159 * config/linux/sem.c: Include wait.h instead of libgomp.h and
16160 futex.h.
16161 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
16162 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
16163 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
16164 types.
16165 (omp_nest_lock_t): Change owner into void *, add lock field.
16166 * config/posix95/omp-lock.h: Include semaphore.h.
16167 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16168 (omp_lock_t): Use sem_t instead of mutex if semaphores
16169 aren't broken.
16170 (omp_nest_lock_t): Likewise. Change owner to void *.
16171 * config/posix/omp-lock.h: Include semaphore.h.
16172 (omp_lock_25_t, omp_nest_lock_25_t): New types.
16173 (omp_lock_t): Use sem_t instead of mutex if semaphores
16174 aren't broken.
16175 (omp_nest_lock_t): Likewise. Add owner field.
16176
16177 2008-06-06 Jakub Jelinek <jakub@redhat.com>
16178
16179 * testsuite/libgomp.c/collapse-1.c: New test.
16180 * testsuite/libgomp.c/collapse-2.c: New test.
16181 * testsuite/libgomp.c/collapse-3.c: New test.
16182 * testsuite/libgomp.c/icv-1.c: New test.
16183 * testsuite/libgomp.c/icv-2.c: New test.
16184 * testsuite/libgomp.c/lib-2.c: New test.
16185 * testsuite/libgomp.c/lock-1.c: New test.
16186 * testsuite/libgomp.c/lock-2.c: New test.
16187 * testsuite/libgomp.c/lock-3.c: New test.
16188 * testsuite/libgomp.c/loop-4.c: New test.
16189 * testsuite/libgomp.c/loop-5.c: New test.
16190 * testsuite/libgomp.c/loop-6.c: New test.
16191 * testsuite/libgomp.c/loop-7.c: New test.
16192 * testsuite/libgomp.c/loop-8.c: New test.
16193 * testsuite/libgomp.c/loop-9.c: New test.
16194 * testsuite/libgomp.c/nested-3.c: New test.
16195 * testsuite/libgomp.c/nestedfn-6.c: New test.
16196 * testsuite/libgomp.c/sort-1.c: New test.
16197 * testsuite/libgomp.c/task-1.c: New test.
16198 * testsuite/libgomp.c/task-2.c: New test.
16199 * testsuite/libgomp.c/task-3.c: New test.
16200 * testsuite/libgomp.c/task-4.c: New test.
16201 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
16202 to C++ testsuite default compiler options.
16203 * testsuite/libgomp.c++/collapse-1.C: New test.
16204 * testsuite/libgomp.c++/collapse-2.C: New test.
16205 * testsuite/libgomp.c++/ctor-10.C: New test.
16206 * testsuite/libgomp.c++/for-1.C: New test.
16207 * testsuite/libgomp.c++/for-2.C: New test.
16208 * testsuite/libgomp.c++/for-3.C: New test.
16209 * testsuite/libgomp.c++/for-4.C: New test.
16210 * testsuite/libgomp.c++/for-5.C: New test.
16211 * testsuite/libgomp.c++/loop-8.C: New test.
16212 * testsuite/libgomp.c++/loop-9.C: New test.
16213 * testsuite/libgomp.c++/loop-10.C: New test.
16214 * testsuite/libgomp.c++/task-1.C: New test.
16215 * testsuite/libgomp.c++/task-2.C: New test.
16216 * testsuite/libgomp.c++/task-3.C: New test.
16217 * testsuite/libgomp.c++/task-4.C: New test.
16218 * testsuite/libgomp.c++/task-5.C: New test.
16219 * testsuite/libgomp.c++/task-6.C: New test.
16220 * testsuite/libgomp.fortran/allocatable1.f90: New test.
16221 * testsuite/libgomp.fortran/allocatable2.f90: New test.
16222 * testsuite/libgomp.fortran/allocatable3.f90: New test.
16223 * testsuite/libgomp.fortran/allocatable4.f90: New test.
16224 * testsuite/libgomp.fortran/collapse1.f90: New test.
16225 * testsuite/libgomp.fortran/collapse2.f90: New test.
16226 * testsuite/libgomp.fortran/collapse3.f90: New test.
16227 * testsuite/libgomp.fortran/collapse4.f90: New test.
16228 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
16229 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
16230 * testsuite/libgomp.fortran/lib4.f90: New test.
16231 * testsuite/libgomp.fortran/lock-1.f90: New test.
16232 * testsuite/libgomp.fortran/lock-2.f90: New test.
16233 * testsuite/libgomp.fortran/nested1.f90: New test.
16234 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
16235 * testsuite/libgomp.fortran/strassen.f90: New test.
16236 * testsuite/libgomp.fortran/tabs1.f90: New test.
16237 * testsuite/libgomp.fortran/tabs2.f: New test.
16238 * testsuite/libgomp.fortran/task1.f90: New test.
16239 * testsuite/libgomp.fortran/task2.f90: New test.
16240 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
16241 * testsuite/libgomp.fortran/vla5.f90: Likewise.
16242 * testsuite/libgomp.c/pr26943-2.c: Likewise.
16243 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16244 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16245
16246 2008-05-23 Jakub Jelinek <jakub@redhat.com>
16247
16248 PR c++/36308
16249 * testsuite/libgomp.c++/ctor-11.C: New test.
16250 * testsuite/libgomp.c++/ctor-12.C: New test.
16251
16252 2008-05-15 Janis Johnson <janis187@us.ibm.com>
16253
16254 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
16255
16256 2008-05-07 Jakub Jelinek <jakub@redhat.com>
16257
16258 PR middle-end/36106
16259 * testsuite/libgomp.c/atomic-5.c: New test.
16260 * testsuite/libgomp.c/atomic-6.c: New test.
16261 * testsuite/libgomp.c/autopar-1.c: New test.
16262
16263 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16264
16265 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
16266 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
16267 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
16268 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
16269 * configure: Regenerate.
16270 * Makefile.in, testsuite/Makefile.in: Likewise.
16271
16272 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
16273
16274 PR bootstrap/35457
16275 * aclocal.m4: Regenerate.
16276 * configure: Regenerate.
16277
16278 2008-03-18 Jakub Jelinek <jakub@redhat.com>
16279
16280 PR middle-end/35611
16281 * testsuite/libgomp.c/atomic-4.c: New test.
16282
16283 PR libgomp/35625
16284 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
16285 (gomp_iter_guided_next): Likewise.
16286 * testsuite/libgomp.c/pr35625.c: New test.
16287
16288 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16289
16290 * aclocal.m4: Regenerate.
16291 * configure: Likewise.
16292 * Makefile.in: Likewise.
16293 * testsuite/Makefile.in: Likewise.
16294
16295 2008-03-13 Jakub Jelinek <jakub@redhat.com>
16296
16297 PR middle-end/35185
16298 * testsuite/libgomp.c++/pr35185.C: New test.
16299
16300 2008-03-12 Jakub Jelinek <jakub@redhat.com>
16301
16302 PR middle-end/35549
16303 * testsuite/libgomp.c/pr35549.c: New test.
16304
16305 2008-03-06 Jakub Jelinek <jakub@redhat.com>
16306
16307 * testsuite/libgomp.c/atomic-3.c: New test.
16308
16309 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16310
16311 PR fortran/33197
16312 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
16313 .F08 file suffixes.
16314
16315 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
16316
16317 PR libgomp/33131
16318 * configure.ac: Add ACX_HEADER_STRING.
16319 * env.c: Include strings.h.
16320 * aclocal.m4: Regenerate.
16321 * config.h.in: Regenerate.
16322 * configure: Regenerate.
16323 * Makefile.in: Regenerate.
16324 * testsuite/Makefile.in: Regenerate.
16325
16326 2008-02-15 Jakub Jelinek <jakub@redhat.com>
16327
16328 PR middle-end/35196
16329 * testsuite/libgomp.c/pr35196.c: New test.
16330
16331 PR middle-end/35130
16332 * testsuite/libgomp.fortran/pr35130.f90: New test.
16333 * testsuite/libgomp.c/pr35130.c: New test.
16334
16335 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16336
16337 PR middle-end/33880
16338 * testsuite/libgomp.c/pr33880.c: New test.
16339 * testsuite/libgomp.fortran/pr33880.f90: New test.
16340
16341 2008-01-24 David Edelsohn <edelsohn@gnu.org>
16342
16343 * configure: Regenerate.
16344
16345 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16346
16347 * configure.ac: Move futex checking into ../config/futex.m4.
16348 * configure: Rebuilt.
16349 * aclocal.m4: Rebuilt.
16350 * Makefile.in: Rebuilt.
16351
16352 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
16353 2007-10-15 ../config/tls.m4 change.
16354
16355 2007-12-19 Jakub Jelinek <jakub@redhat.com>
16356
16357 PR c++/34513
16358 * testsuite/libgomp.c/pr34513.c: New test.
16359 * testsuite/libgomp.c++/pr34513.C: New test.
16360
16361 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
16362
16363 PR target/32765
16364 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
16365
16366 2007-12-04 Jakub Jelinek <jakub@redhat.com>
16367
16368 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
16369
16370 2007-12-03 Jakub Jelinek <jakub@redhat.com>
16371
16372 * testsuite/libgomp.c/private-1.c: New test.
16373
16374 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
16375 Paolo Bonzini <bonzini@gnu.org>
16376
16377 * Makefile.am: Use space as vpath separator. Use 'vpath %'
16378 instead of 'VPATH ='.
16379 * Makefile.in: Regenerate.
16380
16381 2007-11-23 Matthias Klose <doko@ubuntu.com>
16382
16383 * configure.ac: Adjust makeinfo version check.
16384 * configure: Regenerate.
16385
16386 2007-11-10 Jakub Jelinek <jakub@redhat.com>
16387
16388 PR fortran/34020
16389 * testsuite/libgomp.fortran/pr34020.f90: New test.
16390
16391 2007-11-06 Jakub Jelinek <jakub@redhat.com>
16392
16393 PR c++/33894
16394 * testsuite/libgomp.c++/atomic-1.C: New test.
16395
16396 2007-10-25 Jakub Jelinek <jakub@redhat.com>
16397
16398 PR libgomp/33275
16399 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
16400 Make x and y integers rather than (implicit) reals. Add private (j)
16401 clause to the last omp parallel.
16402
16403 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
16404
16405 * configure: Regenerate following changes to ../config/tls.m4.
16406
16407 2007-09-28 Jakub Jelinek <jakub@redhat.com>
16408
16409 * testsuite/libgomp.fortran/stack.f90: New test.
16410
16411 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
16412
16413 * config/mingw32/proc.c: New file.
16414
16415 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
16416
16417 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
16418 (main): Use __get_cpuid to get i386 target fetaures.
16419 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
16420 (main): Use __get_cpuid to get x86_64 target fetaures.
16421
16422 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
16423
16424 PR target/32765
16425 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
16426 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
16427
16428 2007-07-12 Jakub Jelinek <jakub@redhat.com>
16429
16430 PR fortran/32550
16431 * testsuite/libgomp.fortran/pr32550.f90: New test.
16432 * testsuite/libgomp.fortran/crayptr2.f90: New test.
16433
16434 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
16435
16436 * aclocal.m4: Regenerated.
16437
16438 2007-07-05 Tobias Burnus <burnus@net-b.de>
16439
16440 PR fortran/32359
16441 * testsuite/libgomp.fortran/pr32359.f90: New.
16442
16443 2007-07-02 Jakub Jelinek <jakub@redhat.com>
16444
16445 PR libgomp/32468
16446 * sections.c (GOMP_parallel_sections_start): Only decrease
16447 number of threads to COUNT if dyn_var is true.
16448 * testsuite/libgomp.c/pr32468.c: New test.
16449
16450 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16451
16452 PR libgomp/26308
16453 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
16454
16455 2007-06-21 Jakub Jelinek <jakub@redhat.com>
16456
16457 PR middle-end/32362
16458 * testsuite/libgomp.c/pr32362-1.c: New test.
16459 * testsuite/libgomp.c/pr32362-2.c: New test.
16460 * testsuite/libgomp.c/pr32362-3.c: New test.
16461
16462 2007-06-07 Jakub Jelinek <jakub@redhat.com>
16463
16464 * team.c (gomp_team_start): Fix setting up thread_attr
16465 stack size.
16466
16467 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
16468
16469 * configure: Regenerate.
16470
16471 2007-05-23 Steve Ellcey <sje@cup.hp.com>
16472
16473 * Makefile.in: Regenerate.
16474 * configure: Regenerate.
16475 * aclocal.m4: Regenerate.
16476 * testsuite/Makefile.in: Regenerate.
16477
16478 2007-05-04 Jakub Jelinek <jakub@redhat.com>
16479
16480 * config/linux/proc.c: New file.
16481
16482 PR libgomp/28482
16483 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
16484
16485 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
16486
16487 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
16488
16489 2007-04-16 Matthias Klose <doko@debian.org>
16490
16491 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
16492 flags if not building with -m64.
16493 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
16494 flag for i?86-*-* targets, if current target matches -m64.
16495
16496 2007-04-14 Steve Ellcey <sje@cup.hp.com>
16497
16498 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
16499 * Makefile.in: Regenerate.
16500
16501 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16502
16503 PR testsuite/31369
16504 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
16505 ld_library_path.
16506 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16507
16508 2007-04-04 Jakub Jelinek <jakub@redhat.com>
16509
16510 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
16511 decls.
16512 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
16513 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
16514 (parse_affinity): New function.
16515 (initialize_env): Call it and gomp_init_affinity.
16516 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
16517 create new pthread_attr_t and call gomp_init_thread_affinity
16518 on it for each thread before passing the attribute to pthread_create.
16519 * config/linux/affinity.c: New file.
16520 * config/posix/affinity.c: New file.
16521 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
16522 * configure: Rebuilt.
16523 * config.h.in: Rebuilt.
16524 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
16525 * Makefile.in: Rebuilt.
16526
16527 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
16528
16529 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
16530 *-*-darwin*.
16531 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
16532 and use it if found.
16533
16534 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
16535
16536 * testsuite/config/default.exp: New file.
16537 * testsuite/lib/libgomp.exp: New file.
16538 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
16539 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
16540 load_lib *, load_gcc_lib *): Move to libgomp.exp.
16541 (libgomp_load): Remove.
16542 * testsuite/lib/libgomp.exp (libgomp_init): Compute
16543 always_ld_library_path, not ld_library_path. Set additional_flags
16544 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
16545 (target_compile): Do not call libgomp_init. Append lang_library_path
16546 and lang_link_flags to options.
16547 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
16548 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
16549 here.
16550 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
16551 always_ld_library_path. Set LD_LIBRARY_PATH here.
16552 * testsuite/libgomp.fortran/fortran.exp: Ditto.
16553 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
16554 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
16555 CX8 flag.
16556 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
16557 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
16558 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
16559 * testsuite/libgomp.c/pr29947-1.c: Ditto.
16560 * testsuite/libgomp.c/atomic-10.c: Ditto.
16561
16562 2007-03-21 Jakub Jelinek <jakub@redhat.com>
16563
16564 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
16565 dg-final cleanup-modules line.
16566 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
16567 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
16568 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
16569 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
16570 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
16571 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
16572 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
16573
16574 2007-03-18 Andreas Schwab <schwab@suse.de>
16575
16576 * acinclude.m4: Adjust regular expression for ld version
16577 extraction.
16578 * configure: Regenerate.
16579
16580 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16581
16582 * Makefile.am: Add install-pdf target as copied from
16583 automake v1.10 rules.
16584 * Makefile.in: Regenerate
16585
16586 2007-02-07 Jakub Jelinek <jakub@redhat.com>
16587
16588 PR libgomp/28486
16589 * configure: Regenerate.
16590
16591 PR c++/30703
16592 * testsuite/libgomp.c++/pr30703.C: New test.
16593
16594 2007-02-02 Jakub Jelinek <jakub@redhat.com>
16595
16596 Revert:
16597 2006-07-05 Eric Christopher <echristo@apple.com>
16598 * configure.ac: Depend addition of -pthread on host OS.
16599 * configure: Regenerate.
16600
16601 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16602
16603 * libgomp.texi: Fix spacing after abbreviations.
16604
16605 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
16606
16607 PR libgomp/30546
16608 * configure.ac: Add check for makeinfo
16609 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
16610 if an appropriate version of makeinfo is found.
16611 * aclocal.m4: Regenerated.
16612 * configure: Regenerated.
16613 * Makefile.in: Regenerated.
16614 * testsuite/Makefile.in: Regenerated.
16615
16616 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
16617
16618 PR libgomp/30540
16619 * libgomp.texi: More about implementation-dependent settings.
16620
16621 2007-01-26 Tobias Burnus <burnus@net-b.de>
16622
16623 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
16624
16625 2007-01-24 Jakub Jelinek <jakub@redhat.com>
16626
16627 PR middle-end/30494
16628 * testsuite/libgomp.c/pr30494.c: New test.
16629
16630 2007-01-15 Tom Tromey <tromey@redhat.com>
16631
16632 * configure: Rebuilt.
16633 * configure.ac: Fixed comment.
16634
16635 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
16636
16637 * libgomp.texi: Document implementation specific default values of
16638 environment variables.
16639
16640 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
16641
16642 PR libgomp/28209
16643 * libgomp.texi: New file.
16644 * configure.ac: Add --enable-generated-files-in-srcdir option.
16645 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
16646 files to srcdir.
16647 * Makefile.in: Regenerated.
16648 * config.h.in: Regenerated.
16649 * testsuite/Makefile.in: Regenerated.
16650 * NOTES: Removed.
16651
16652 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
16653
16654 PR libgomp/29949
16655 * env.c (omp_set_num_threads): Set illegal thread count to 1.
16656
16657 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
16658
16659 * configure: Regenerate.
16660
16661 2006-12-04 Jakub Jelinek <jakub@redhat.com>
16662
16663 PR libgomp/29947
16664 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
16665 start if there shouldn't be any loop iterations.
16666 (gomp_loop_ordered_static_start): Remove start == end test.
16667 * testsuite/libgomp.c/pr29947-1.c: New test.
16668 * testsuite/libgomp.c/pr29947-2.c: New test.
16669
16670 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
16671
16672 * configure.tgt: Force initial-exec TLS model on Linux only.
16673
16674 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
16675
16676 * configure: Regenerated.
16677
16678 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
16679
16680 * env.c (parse_schedule): Reject out of range values.
16681 (parse_unsigned_long): Reject out of range, negative or zero values.
16682
16683 2006-10-29 Jakub Jelinek <jakub@redhat.com>
16684
16685 PR fortran/29629
16686 * testsuite/libgomp.fortran/pr29629.f90: New test.
16687
16688 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
16689
16690 PR libgomp/29494
16691 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
16692 * config/posix95: New directory.
16693 * config/posix95/omp-lock.h: New file.
16694 * config/posix95/lock.c: Likewise.
16695
16696 2006-10-14 Geoffrey Keating <geoffk@apple.com>
16697
16698 * aclocal.m4: Regenerate.
16699 * configure: Regenerate.
16700
16701 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
16702
16703 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
16704 '<' to '<='.
16705
16706 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
16707
16708 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
16709 test.
16710 * configure: Regenerate.
16711 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
16712
16713 2006-09-26 Jakub Jelinek <jakub@redhat.com>
16714
16715 PR middle-end/25261
16716 PR middle-end/28790
16717 * testsuite/libgomp.c/nestedfn-4.c: New test.
16718 * testsuite/libgomp.c/nestedfn-5.c: New test.
16719 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
16720
16721 PR fortran/29097
16722 * testsuite/libgomp.fortran/condinc1.f: New test.
16723 * testsuite/libgomp.fortran/condinc2.f: New test.
16724 * testsuite/libgomp.fortran/condinc3.f90: New test.
16725 * testsuite/libgomp.fortran/condinc4.f90: New test.
16726 * testsuite/libgomp.fortran/condinc1.inc: New file.
16727
16728 2006-09-18 Tom Tromey <tromey@redhat.com>
16729
16730 * configure: Rebuilt.
16731
16732 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
16733
16734 PR c/28768
16735 PR preprocessor/14634
16736 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
16737 to AC_DEFINE.
16738 * configure: Regenerate.
16739
16740 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
16741
16742 * testsuite/libgomp.fortran/reduction3.f90: Change
16743 -2147483648 to -huge(i)-1 to avoid overflow.
16744 * testsuite/libgomp.fortran/reduction4.f90: Change
16745 Z'ffffffff' to not(0) to avoid overflow.
16746
16747 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
16748
16749 PR libgomp/25938
16750 * Makefile.am (libsubincludedir): New.
16751 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
16752 * Makefile.in: Regenerate.
16753
16754 2006-08-17 Jakub Jelinek <jakub@redhat.com>
16755
16756 PR libgomp/28725
16757 * env.c: Include ctype.h.
16758 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
16759 leading and/or trailing whitespace and compare strings case
16760 insensitively.
16761
16762 2006-07-16 Jakub Jelinek <jakub@redhat.com>
16763
16764 PR fortran/28390
16765 * testsuite/libgomp.fortran/pr28390.f: New test.
16766
16767 2006-07-05 Eric Christopher <echristo@apple.com>
16768
16769 * configure.ac: Depend addition of -pthread on host OS.
16770 * configure: Regenerate.
16771
16772 2006-06-21 Jakub Jelinek <jakub@redhat.com>
16773
16774 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
16775 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
16776 defined.
16777
16778 2006-06-20 Jakub Jelinek <jakub@redhat.com>
16779
16780 PR libgomp/26175
16781 PR libgomp/26477
16782 * configure.ac: If neither --enable-linux-futex nor
16783 --disable-linux-futex is passed, determine the default by checking
16784 for compiling and/or running against NPTL. With --enable-linux-futex,
16785 check if SYS_gettid and SYS_futex are defined.
16786 * configure: Rebuilt.
16787
16788 2006-06-14 Richard Henderson <rth@redhat.com>
16789
16790 PR libgomp/28008
16791 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
16792 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
16793
16794 2006-06-09 Richard Henderson <rth@redhat.com>
16795
16796 * env.c (gomp_nthreads_var): Change to unsigned long.
16797 (gomp_run_sched_chunk): Likewise.
16798 (parse_unsigned_long): Rename from parse_num_threads and generalize.
16799 (initialize_env): Initialize gomp_thread_attr.
16800 * libgomp.h (gomp_nthreads_var): Update decl.
16801 (gomp_run_sched_chunk): Likewise.
16802 (gomp_thread_attr): Declare.
16803 * team.c (gomp_thread_attr): Export.
16804 (initialize_team): Don't initialize it.
16805
16806 2006-06-09 Jakub Jelinek <jakub@redhat.com>
16807
16808 PR fortran/27916
16809 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
16810 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
16811
16812 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
16813
16814 * config/mingw32/time.c: New file.
16815 * configure.tgt: Use it.
16816
16817 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
16818
16819 * Makefile.am: Add install-html target. Add install-html to .PHONY
16820 * Makefile.in: Regenerate.
16821
16822 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16823
16824 PR libgomp/27612
16825 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
16826 * testsuite/libgomp.c/critical-1.c: Likewise.
16827 * testsuite/libgomp.c/loop-1.c: Likewise.
16828 * testsuite/libgomp.c/loop-2.c: Likewise.
16829 * testsuite/libgomp.c/single-1.c: Likewise.
16830 * testsuite/libgomp.c/ordered-1.c: Likewise.
16831 * testsuite/libgomp.c/ordered-2.c: Likewise.
16832
16833 2006-05-15 Jakub Jelinek <jakub@redhat.com>
16834
16835 PR middle-end/27416
16836 * libgomp.fortran/pr27416-1.f90: New test.
16837
16838 2006-05-03 Jakub Jelinek <jakub@redhat.com>
16839
16840 PR fortran/27395
16841 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
16842 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
16843
16844 2006-05-02 Jakub Jelinek <jakub@redhat.com>
16845
16846 PR c++/26943
16847 * testsuite/libgomp.c/pr26943-1.c: New test.
16848 * testsuite/libgomp.c/pr26943-2.c: New test.
16849 * testsuite/libgomp.c/pr26943-3.c: New test.
16850 * testsuite/libgomp.c/pr26943-4.c: New test.
16851 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
16852 * testsuite/libgomp.c++/pr26943.C: New test.
16853
16854 2006-05-02 Jakub Jelinek <jakub@redhat.com>
16855
16856 PR middle-end/27337
16857 * testsuite/libgomp.c++/pr27337.C: New test.
16858
16859 2006-04-26 Jakub Jelinek <jakub@redhat.com>
16860
16861 PR c/26171
16862 * testsuite/libgomp.c/pr26171.c: New test.
16863
16864 2006-04-25 Richard Henderson <rth@redhat.com>
16865
16866 PR libgomp/25865
16867 * configure.ac: Use GCC_CHECK_TLS.
16868 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
16869 * Makefile.in, aclocal.m4, configure: Regenerate.
16870
16871 2006-04-10 Matthias Klose <doko@debian.org>
16872
16873 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
16874 directory names containing underscores.
16875
16876 2006-03-21 Jakub Jelinek <jakub@redhat.com>
16877
16878 PR c++/26691
16879 * testsuite/libgomp.c++/pr26691.C: New test.
16880
16881 2006-03-13 Jakub Jelinek <jakub@redhat.com>
16882
16883 * testsuite/libgomp.fortran/retval2.f90: New test.
16884
16885 2006-03-09 Diego Novillo <dnovillo@redhat.com>
16886
16887 * testsuite/libgomp.c++: New directory.
16888
16889 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
16890
16891 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
16892 * config/posix/sem.c: Implement the above.
16893
16894 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
16895
16896 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
16897 define HAVE_BROKEN_POSIX_SEMAPHORES.
16898 * configure: Rebuilt.
16899 * config.h.in: Rebuilt.
16900
16901 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
16902
16903 PR bootstrap/26161
16904 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
16905 for the other pthread check.
16906 * configure: Regenerate.
16907 * config.h.in: Regenerate.
16908
16909 2006-02-15 Jakub Jelinek <jakub@redhat.com>
16910
16911 PR libgomp/25938
16912 PR libgomp/25984
16913 * Makefile.am (fincludedir): New variable.
16914 (nodist_include_HEADERS): Remove Fortran files.
16915 (nodist_finclude_HEADERS): New variable.
16916 * Makefile.in: Regenerated.
16917
16918 2006-02-13 Jakub Jelinek <jakub@redhat.com>
16919
16920 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
16921 Remove tests for returning assumed character length arrays.
16922
16923 2006-02-12 Roger Sayle <roger@eyesopen.com>
16924 John David Anglin <dave@hiauly1.hia.nrc.ca>
16925
16926 PR libgomp/25936
16927 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
16928
16929 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
16930
16931 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
16932
16933 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
16934
16935 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
16936 part of LD_LIBRARY_PATH manually.
16937
16938 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
16939
16940 PR libgomp/25852
16941 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
16942 libgomp_init.
16943
16944 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
16945
16946 PR libgomp/25884
16947 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
16948 * configure.ac (PERL): Don't set.
16949 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
16950 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
16951 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
16952 * omp.h.in: Wrap the new configure substitutions with @ characters.
16953 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
16954 * aclocal.m4, configure, Makefile.in: Regenerate.
16955 * mkomp_h.pl: Delete.
16956
16957 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
16958
16959 PR libgomp/25259
16960 * configure.ac: Use GCC_HEADER_STDINT.
16961 * libgomp.h: Include gstdint.h.
16962 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
16963 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
16964
16965 2006-01-24 Richard Henderson <rth@redhat.com>
16966
16967 PR libgomp/25942
16968 * configure.ac: Add AM_MAINTAINER_MODE.
16969 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
16970
16971 2006-01-24 Diego Novillo <dnovillo@redhat.com>
16972
16973 * Makefile.in: Regenerate.
16974 * testsuite/Makefile.in: Regenerate.
16975 * aclocal.m4: Regenerate.
16976
16977 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
16978
16979 * config/posix/proc.c: Conditional include of sys/loadavg.h for
16980 Solaris.
16981 * configure.ac: Add check for loadavg.h.
16982 (link_gomp): Adjust comment.
16983 * configure: Regenerate.
16984 * config.h.in: Regenerate.
16985
16986 2006-01-21 Steve Ellcey <sje@cup.hp.com>
16987
16988 PR libgomp/25877
16989 * configure.ac: Remove check for alloca.h.
16990 * configure: Regenerate.
16991 * config.h.in: Regenerate.
16992 * libgomp.h: define gomp_alloca to be __builtin_alloca.
16993 * team.c: Remove use of alloca.h.
16994 Call gomp_alloca instead of alloca.
16995
16996 2006-01-20 Steve Ellcey <sje@cup.hp.com>
16997
16998 PR libgomp/25877
16999 * team.c: Add include of alloca.h.
17000 * configure.ac: Add check for alloca.h.
17001 * configure: Regenerate.
17002 * config.h.in: Regenerate.
17003
17004 2006-01-17 Jakub Jelinek <jakub@redhat.com>
17005
17006 PR fortran/25219
17007 * testsuite/libgomp.fortran/pr25219.f90: New test.
17008
17009 2005-12-05 Uros Bizjak <uros@kss-loka.si>
17010
17011 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
17012 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
17013 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17014 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17015 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
17016 testsuite/libgomp.fortran/threadprivate1.f90,
17017 testsuite/libgomp.fortran/threadprivate2.f90,
17018 testsuite/libgomp.fortran/threadprivate3.f90,
17019 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17020 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17021 testsuite/libgomp.fortran/omp_parse3.f90: Change required
17022 effective-target to TLS runtime.
17023
17024 * testsuite/libgomp.fortran/pr25162.f: Require
17025 effective-target TLS runtime.
17026
17027 2005-12-01 Jakub Jelinek <jakub@redhat.com>
17028
17029 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
17030 * testsuite/libgomp.c/nestedfn-3.c: New test.
17031
17032 2005-11-30 Jakub Jelinek <jakub@redhat.com>
17033
17034 PR fortran/25162
17035 * testsuite/libgomp.fortran/pr25162.f: New test.
17036
17037 2005-11-28 Jakub Jelinek <jakub@redhat.com>
17038
17039 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
17040 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
17041
17042 2005-11-25 Jakub Jelinek <jakub@redhat.com>
17043
17044 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
17045 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
17046 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
17047 single.c, team.c, work.c, config/linux/alpha/futex.h,
17048 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
17049 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
17050 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
17051 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
17052 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
17053 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
17054 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
17055 FSF address.
17056
17057 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17058
17059 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
17060 to nodist_noinst_HEADERS.
17061 * Makefile.in: Rebuilt.
17062
17063 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
17064 add integer count field.
17065 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
17066 omp_nest_lock_t type change.
17067 (omp_init_nest_lock): Likewise. Initialize count to 0.
17068 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
17069 Increment count.
17070 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
17071 Decrement count.
17072 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
17073 Increment count if successful and return the new nesting level.
17074 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
17075 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
17076 * testsuite/libgomp.c/lib-1.c: New test.
17077 * testsuite/libgomp.fortran/lib1.f90: New test.
17078 * testsuite/libgomp.fortran/lib2.f: New test.
17079 * testsuite/libgomp.fortran/lib3.f: New test.
17080
17081 2005-11-17 Richard Henderson <rth@redhat.com>
17082
17083 PR 24845
17084 * Makefile.am (nodist_toolexeclib_HEADERS): New.
17085 * configure.ac (link_gomp): New. Substitute it.
17086 (AC_CONFIG_FILES): Add libgomp.spec.
17087 * libgomp.spec.in: New file.
17088 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
17089 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
17090
17091 2005-11-18 Jakub Jelinek <jakub@redhat.com>
17092
17093 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
17094 reduction(-:var) behaving the same as reduction(+:var).
17095 * testsuite/libgomp.c/reduction-4.c: New test.
17096
17097 2005-11-15 Uros Bizjak <uros@kss-loka.si>
17098
17099 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
17100 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
17101 testsuite/libgomp.c/copyin-3.c,
17102 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
17103 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
17104 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
17105 testsuite/libgomp.c++/pr24455.C,
17106 testsuite/libgomp.fortran/threadprivate1.f90,
17107 testsuite/libgomp.fortran/threadprivate2.f90,
17108 testsuite/libgomp.fortran/threadprivate3.f90,
17109 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
17110 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
17111 testsuite/libgomp.fortran/omp_parse3.f90: Require
17112 effective-target TLS.
17113
17114 2005-11-14 Diego Novillo <dnovillo@redhat.com>
17115
17116 * HEADER: Remove.
17117
17118 2005-11-13 Jakub Jelinek <jakub@redhat.com>
17119
17120 PR libgomp/24797
17121 * team.c (initialize_team): Pass NULL rather than free as
17122 pthread_key_create destructor. Initialize thread specific data
17123 pointer in initial thread to a static local variable rather than
17124 malloced memory.
17125
17126 2005-11-11 Uros Bizjak <uros@kss-loka.si>
17127
17128 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
17129 its location to ld_library_path.
17130
17131 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17132
17133 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
17134
17135 2005-11-10 Diego Novillo <dnovillo@redhat.com>
17136
17137 * testsuite/libgomp.c: Rename from libgomp.dg.
17138
17139 2005-11-09 Diego Novillo <dnovillo@redhat.com>
17140
17141 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
17142 threadprivate variable 'i'.
17143
17144 2005-11-09 Jakub Jelinek <jakub@redhat.com>
17145
17146 * config/linux/s390/futex.h: New file.
17147 * configure.tgt: Use it.
17148
17149 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
17150 before the parallel.
17151
17152 2005-11-08 Jakub Jelinek <jakub@redhat.com>
17153
17154 PR c++/24734
17155 * testsuite/libgomp.c++/master-1.C: New test.
17156
17157 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17158
17159 * testsuite/libgomp.dg/copyin-3.c: New test.
17160
17161 2005-11-07 Jakub Jelinek <jakub@redhat.com>
17162
17163 * testsuite/libgomp.fortran/retval1.f90: New test.
17164 * testsuite/libgomp.fortran/vla7.f90: New test.
17165
17166 2005-11-06 Jakub Jelinek <jakub@redhat.com>
17167
17168 * testsuite/libgomp.fortran/vla2.f90: New test.
17169 * testsuite/libgomp.fortran/vla3.f90: New test.
17170 * testsuite/libgomp.fortran/vla4.f90: New test.
17171 * testsuite/libgomp.fortran/vla5.f90: New test.
17172 * testsuite/libgomp.fortran/vla6.f90: New test.
17173
17174 2005-11-01 Jakub Jelinek <jakub@redhat.com>
17175
17176 * config/linux/sparc/futex.h: New file.
17177 * configure.tgt: Use it.
17178 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
17179
17180 * critical.c: Include stdlib.h.
17181 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
17182 ignoring return value.
17183 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
17184 LIBGOMP_CHECK_SYNC_BUILTINS check.
17185 * configure: Rebuilt.
17186
17187 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17188
17189 * testsuite/libgomp.fortran/vla1.f90: New test.
17190
17191 2005-10-31 Richard Henderson <rth@redhat.com>
17192
17193 * testsuite/libgomp.fortran/character2.f90: Fix race condition
17194 setting 's' in different threads.
17195
17196 2005-10-31 Jakub Jelinek <jakub@redhat.com>
17197
17198 * libgomp.h (attribute_hidden, ialias): Define.
17199 * config/posix/proc.c (omp_get_num_procs): Add ialias.
17200 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
17201 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
17202 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17203 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17204 omp_test_lock, omp_test_nest_lock): Likewise.
17205 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
17206 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
17207 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
17208 omp_test_lock, omp_test_nest_lock): Likewise.
17209 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
17210 omp_get_dynamic, omp_get_nested): Likewise.
17211 * parallel.c (omp_get_num_threads, omp_get_max_threads,
17212 omp_get_thread_num, omp_in_parallel): Likewise.
17213 * fortran.c (ialias_redirect): Define.
17214 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
17215 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
17216 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
17217 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
17218 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
17219 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
17220 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
17221 omp_get_wtime): Add ialias_redirect.
17222
17223 2005-10-30 Jakub Jelinek <jakub@redhat.com>
17224
17225 * fortran.c: Include stdlib.h.
17226
17227 2005-10-29 Jakub Jelinek <jakub@redhat.com>
17228
17229 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
17230 * Makefile.in: Regenerated.
17231
17232 2005-10-28 Jakub Jelinek <jakub@redhat.com>
17233
17234 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
17235 * libgomp_f.h.in (omp_check_defines): New function.
17236 * env.c: Include libgomp_f.h.
17237 (initialize_env): Call omp_check_defines.
17238
17239 * testsuite/libgomp.dg/copyin-2.c: New test.
17240 * testsuite/libgomp.c++/copyin-2.C: New test.
17241 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
17242
17243 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
17244 * testsuite/libgomp.fortran/sharing2.f90: New test.
17245
17246 * testsuite/libgomp.dg/copyin-1.c: New test.
17247 * testsuite/libgomp.c++/copyin-1.C: New test.
17248
17249 2005-10-26 Jakub Jelinek <jakub@redhat.com>
17250
17251 * testsuite/libgomp.fortran/crayptr1.f90: New test.
17252
17253 * testsuite/libgomp.fortran/workshare1.f90: New test.
17254
17255 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
17256 only test.
17257 * libgomp.fortran/sharing1.f90: New test.
17258
17259 2005-10-24 Jakub Jelinek <jakub@redhat.com>
17260
17261 PR c++/24502
17262 * testsuite/libgomp.c++/loop-7.C: New test.
17263
17264 * testsuite/libgomp.dg/nestedfn-2.c: New test.
17265
17266 * testsuite/libgomp.dg/nestedfn-1.c: New test.
17267 * testsuite/libgomp.fortran/reduction6.f90: New test.
17268 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
17269
17270 2005-10-23 Richard Henderson <rth@redhat.com>
17271
17272 * testsuite/libgomp.c++/ctor-1.C: New.
17273 * testsuite/libgomp.c++/ctor-2.C: New.
17274 * testsuite/libgomp.c++/ctor-3.C: New.
17275 * testsuite/libgomp.c++/ctor-4.C: New.
17276 * testsuite/libgomp.c++/ctor-5.C: New.
17277 * testsuite/libgomp.c++/ctor-6.C: New.
17278 * testsuite/libgomp.c++/ctor-7.C: New.
17279 * testsuite/libgomp.c++/ctor-8.C: New.
17280 * testsuite/libgomp.c++/ctor-9.C: New.
17281
17282 2005-10-21 Diego Novillo <dnovillo@redhat.com>
17283
17284 PR 24455
17285 * testsuite/libgomp.c++/pr24455-1.C: New test.
17286 * testsuite/libgomp.c++/pr24455.C: New test.
17287 * testsuite/libgomp.dg/pr24455-1.c: New test.
17288 * testsuite/libgomp.dg/pr24455.c: New test.
17289
17290 2005-10-20 Richard Henderson <rth@redhat.com>
17291
17292 * testsuite/libgomp.c++/loop-6.C: New.
17293 * testsuite/libgomp.dg/loop-3.c: New.
17294
17295 2005-10-20 Jakub Jelinek <jakub@redhat.com>
17296
17297 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
17298 explicitly private.
17299 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
17300 explicitly shared.
17301
17302 2005-10-19 Diego Novillo <dnovillo@redhat.com>
17303
17304 * testsuite/libgomp.fortran/jacobi.f: New test.
17305
17306 2005-10-19 Richard Henderson <rth@redhat.com>
17307
17308 * configure.tgt (i?86-linux): Default to with_arch instead of
17309 CFLAGS. Add -mtune to match target_cpu.
17310 (x86_64-linux): Tune to i686.
17311
17312 * fortran.c (omp_test_nest_lock_): Fix typo.
17313
17314 2005-10-19 Jakub Jelinek <jakub@redhat.com>
17315
17316 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
17317 gomp_ordered_sync): Do nothing if team->nthreads == 1.
17318 * testsuite/libgomp.dg/ordered-3.c: New test.
17319
17320 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
17321 Remove volatile keyword.
17322
17323 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
17324 in COMMON block to avoid warnings on 64-bit targets.
17325
17326 2005-10-18 Diego Novillo <dnovillo@redhat.com>
17327
17328 * testsuite/libgomp.dg/shared-3.c: New test.
17329
17330 2005-10-18 Jakub Jelinek <jakub@redhat.com>
17331
17332 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
17333 * testsuite/libgomp.fortran/reduction5.f90: New test.
17334
17335 2005-10-18 Jakub Jelinek <jakub@redhat.com>
17336
17337 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
17338 dg-options.
17339 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
17340 flush loop now that __sync_synchronize has proper memory barrier.
17341 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
17342 Add -ffixed-form to dg-options.
17343
17344 2005-10-17 Diego Novillo <dnovillo@redhat.com>
17345
17346 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
17347 from subdirectories.
17348 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
17349 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
17350 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
17351 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
17352 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
17353 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
17354 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
17355 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
17356 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
17357 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
17358 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
17359 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
17360 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
17361 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
17362 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
17363 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
17364 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
17365 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
17366 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
17367 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
17368 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
17369 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
17370 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
17371 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
17372 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
17373
17374 2005-10-17 Jakub Jelinek <jakub@redhat.com>
17375
17376 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
17377 lang_library_path exists. Use find instead of glob to gather tests.
17378 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
17379
17380 2005-10-17 Diego Novillo <dnovillo@redhat.com>
17381
17382 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
17383 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
17384 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
17385 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
17386 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
17387 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
17388 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
17389 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
17390 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
17391 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
17392 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
17393 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
17394 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
17395
17396 2005-10-15 Jakub Jelinek <jakub@redhat.com>
17397
17398 * testsuite/libgomp.dg/vla-1.c: New test.
17399
17400 * testsuite/libgomp.fortran/reference2.f90: New test.
17401
17402 * testsuite/libgomp.fortran/character2.f90: Remove explicit
17403 declaration of omp_get_thread_num.
17404 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
17405 use omp_lib.
17406
17407 * testsuite/libgomp.fortran/reduction1.f90: New test.
17408 * testsuite/libgomp.fortran/reduction2.f90: New test.
17409 * testsuite/libgomp.fortran/reduction3.f90: New test.
17410 * testsuite/libgomp.fortran/reduction4.f90: New test.
17411
17412 2005-10-13 Richard Henderson <rth@redhat.com>
17413
17414 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
17415 * Makefile.in: Regenerate.
17416 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
17417 * libgomp.h: Include bar.h.
17418 (struct gomp_barrier): Remove.
17419 (struct gomp_team): Add barrier. Replace master_barrier with
17420 master_release. Replace threads with ordered_release.
17421 (struct gomp_thread): Replace barrier with release.
17422 * ordered.c (gomp_ordered_first): Update for ordered_release change.
17423 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
17424 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
17425 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
17426 (GOMP_single_copy_end): Likewise.
17427 * team.c (gomp_threads_dock): New.
17428 (gomp_barrier_init, gomp_barrier_destroy): Remove.
17429 (gomp_thread_start): Use gomp_barrier_wait.
17430 (new_team, free_team): Update for gomp_team changes.
17431 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
17432 (gomp_team_end): Use gomp_barrier_wait.
17433 (initialize_team): Update for gomp_thread changes.
17434 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
17435 (gomp_work_share_end_nowait): Use atomic ops when available.
17436 * config/linux/bar.c, config/linux/bar.h: New files.
17437 * config/posix/bar.c, config/posix/bar.h: New files.
17438
17439 2005-10-13 Jakub Jelinek <jakub@redhat.com>
17440
17441 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
17442 * testsuite/libgomp.dg/single-2.c: New test.
17443
17444 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
17445 lang_link_flags): Unset, so that they aren't inherited from previously
17446 sourced *.exp.
17447
17448 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
17449
17450 2005-10-12 Richard Henderson <rth@redhat.com>
17451
17452 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
17453 (libgomp_init): Use lang_test_file, lang_library_path, and
17454 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
17455
17456 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
17457 (lang_test_file, lang_link_flags): New.
17458 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
17459
17460 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
17461 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
17462 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
17463 testsuite/libgomp.c++/parallel-1.C,
17464 testsuite/libgomp.c++/reduction-1.C,
17465 testsuite/libgomp.c++/reduction-2.C,
17466 testsuite/libgomp.c++/reduction-3.C,
17467 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
17468 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
17469 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
17470 New files, largely cribbed from the C testsuite.
17471
17472 2005-10-12 Jakub Jelinek <jakub@redhat.com>
17473
17474 * testsuite/libgomp.fortran/character1.f90: New test.
17475 * testsuite/libgomp.fortran/character2.f90: New test.
17476
17477 * testsuite/libgomp.dg/nested-1.c: New test.
17478 * testsuite/libgomp.dg/nested-2.c: New test.
17479 * testsuite/libgomp.fortran/do1.f90: New test.
17480 * testsuite/libgomp.fortran/do2.f90: New test.
17481
17482 * testsuite/libgomp.fortran/reference1.f90: New test.
17483
17484 2005-10-11 Jakub Jelinek <jakub@redhat.com>
17485
17486 * testsuite/libgomp.dg/reduction-1.c: New test.
17487 * testsuite/libgomp.dg/reduction-2.c: New test.
17488 * testsuite/libgomp.dg/reduction-3.c: New test.
17489
17490 2005-10-10 Jakub Jelinek <jakub@redhat.com>
17491
17492 * testsuite/libgomp.dg/atomic-1.c: New test.
17493 * testsuite/libgomp.dg/atomic-2.c: New test.
17494
17495 2005-10-09 Richard Henderson <rth@redhat.com>
17496
17497 * critical.c (atomic_lock): New.
17498 (initialize_critical): Initialize it.
17499 (GOMP_atomic_start, GOMP_atomic_end): New.
17500 * libgomp.map: Export them.
17501 * libgomp_g.h: Declare them.
17502
17503 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
17504
17505 2005-10-02 Richard Henderson <rth@redhat.com>
17506
17507 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
17508 to XCFLAGS instead of CFLAGS.
17509
17510 2005-09-30 Richard Henderson <rth@redhat.com>
17511
17512 * configure.ac: Determine whether -pthread or -lpthread is needed.
17513 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
17514 * Makefile.in, configure: Rebuild.
17515
17516 2005-09-28 Richard Henderson <rth@redhat.com>
17517
17518 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
17519 * testsuite/libgomp.dg/omp-single-3.c: New test.
17520
17521 2005-09-28 Diego Novillo <dnovillo@redhat.com>
17522
17523 * testsuite/libgomp.dg/omp-single-2.c: New test.
17524 * testsuite/libgomp.dg/shared-2.c: Fix return code.
17525
17526 2005-09-27 Richard Henderson <rth@redhat.com>
17527
17528 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
17529 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
17530
17531 2005-09-27 Jakub Jelinek <jakub@redhat.com>
17532
17533 * testsuite/libgomp.dg/omp-loop03.c: New test.
17534
17535 2005-09-27 Diego Novillo <dnovillo@redhat.com>
17536
17537 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
17538
17539 2005-09-27 Diego Novillo <dnovillo@redhat.com>
17540
17541 * testsuite/libgomp.dg/omp-single-1.c: New test.
17542 * testsuite/libgomp.dg/shared-1.c: Return 0.
17543 Add prototype for abort.
17544 * testsuite/libgomp.dg/shared-2.c: Likewise.
17545
17546 2005-09-26 Jakub Jelinek <jakub@redhat.com>
17547
17548 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
17549 constructs.
17550
17551 2005-09-26 Diego Novillo <dnovillo@redhat.com>
17552
17553 * testsuite/libgomp.dg/shared-1.c: New test.
17554 * testsuite/libgomp.dg/shared-2.c: New test.
17555
17556 2005-09-24 Richard Henderson <rth@redhat.com>
17557
17558 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
17559
17560 2005-09-24 Richard Henderson <rth@redhat.com>
17561
17562 * iter.c (gomp_iter_static_next): Round up when computing number
17563 of iterations. Don't bother distributing a remainder equally.
17564
17565 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
17566 Don't call srand. Zero b before testing.
17567 (main): New.
17568
17569 2005-09-24 Jakub Jelinek <jakub@redhat.com>
17570
17571 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
17572 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
17573
17574 2005-09-23 Jakub Jelinek <jakub@redhat.com>
17575
17576 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
17577 without !$omp end do, followed immediately by subroutine end.
17578
17579 2005-09-23 Diego Novillo <dnovillo@redhat.com>
17580
17581 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
17582
17583 2005-09-22 Richard Henderson <rth@redhat.com>
17584
17585 * critical.c (GOMP_critical_name_start): Change argument to void**.
17586 Reuse the pointer space if the mutex fits.
17587 (GOMP_critical_name_end): Likewise.
17588 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
17589 * libgomp_g.h (GOMP_critical_name_start): Update decl.
17590 (GOMP_critical_name_end): Likewise.
17591 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
17592 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
17593
17594 2005-09-20 Richard Henderson <rth@redhat.com>
17595
17596 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
17597 (create_lock_lock): New.
17598 (initialize_critical): Initialize it.
17599 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
17600 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
17601
17602 2005-09-20 Diego Novillo <dnovillo@redhat.com>
17603
17604 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
17605
17606 2005-09-20 Diego Novillo <dnovillo@redhat.com>
17607
17608 * testsuite/libgomp.dg/omp-loop01.c: New test.
17609 * testsuite/libgomp.dg/omp-loop02.c: New test.
17610
17611 2005-09-20 Jakub Jelinek <jakub@redhat.com>
17612
17613 * configure.ac (AC_PROG_FC): Add.
17614 (USE_FORTRAN): New automake conditional.
17615 * configure: Rebuilt.
17616 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
17617 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
17618 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
17619 Add rules to build them.
17620 * Makefile.in: Rebuilt.
17621 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
17622 OMP_NEST_LOCK_KIND.
17623 * libgomp.map: Add Fortran wrappers.
17624 * libgomp_f.h.in: New file.
17625 * omp_lib.h.in: New file.
17626 * omp_lib.f90.in: New file.
17627 * fortran.c: New file.
17628 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
17629 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
17630 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
17631 libgfortran has been built.
17632 * testsuite/libgomp.fortran/fortran.exp: New file.
17633 * testsuite/libgomp.fortran/omp_cond1.f: New test.
17634 * testsuite/libgomp.fortran/omp_cond2.f: New test.
17635 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
17636 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
17637 * testsuite/libgomp.fortran/omp_hello.f: New test.
17638 * testsuite/libgomp.fortran/omp_orphan.f: New test.
17639 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
17640 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
17641 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
17642 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
17643 * testsuite/libgomp.fortran/omp_reduction.f: New test.
17644 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
17645 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
17646
17647 2005-08-30 Richard Henderson <rth@redhat.com>
17648
17649 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
17650 function for when aliases are not usable.
17651 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
17652 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
17653 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
17654 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
17655 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
17656 GOMP_loop_ordered_guided_next): Likewise.
17657 * ordered.c (GOMP_ordered_start): Likewise.
17658
17659 2005-08-01 Diego Novillo <dnovillo@redhat.com>
17660
17661 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
17662 * testsuite/libgomp.dg/omp_hello.c: Fix return code
17663 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
17664 * testsuite/libgomp.dg/omp_orphan.c: Likewise
17665 * testsuite/libgomp.dg/omp_reduction.c: Likewise
17666 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
17667 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
17668 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
17669 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
17670
17671 2005-07-07 Eric Christopher <echristo@redhat.com>
17672 Diego Novillo <dnovillo@redhat.com>
17673
17674 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
17675 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
17676 up code.
17677 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
17678 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
17679 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
17680 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
17681 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
17682 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
17683 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
17684
17685 2005-06-13 Diego Novillo <dnovillo@redhat.com>
17686
17687 * TOPLEVEL.patch: Remove.
17688
17689 2005-05-16 Richard Henderson <rth@redhat.com>
17690
17691 * configure.ac: Test for clock_gettime.
17692 * config.h.in, configure: Rebuild.
17693 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
17694 (omp_get_wtime): Use clock_gettime if available.
17695 (omp_get_wtick): Use clock_getres if available.
17696
17697 2005-05-11 Richard Henderson <rth@redhat.com>
17698
17699 * config/linux/ia64/futex.h: New file.
17700 * configure.tgt: Use it.
17701
17702 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
17703
17704 2005-05-07 Richard Henderson <rth@redhat.com>
17705
17706 * config/linux/powerpc/futex.h: New file.
17707 * configure.tgt: Use it.
17708
17709 * config/linux/i486/futex.h: Merge ...
17710 * config/linux/x86_64/futex.h: ... into ...
17711 * config/linux/x86/futex.h: ... here.
17712 * configure.tgt: Update to match.
17713
17714 2005-05-06 Richard Henderson <rth@redhat.com>
17715
17716 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
17717 * config/linux/i486/futex.h: Likewise.
17718 * config/linux/x86_64/futex.h: Likewise.
17719
17720 * config/linux/lock.c: New file.
17721 * config/linux/omp-lock.h: New file.
17722
17723 * critical.c, env.h: Don't include omp.h
17724 * config/posix/lock.c: Include libgomp.h instead of omp.h.
17725 * config/posix/time.c: Likewise.
17726 * config/posix/omp-lock.h: New file.
17727 * libgomp.h: Include omp-lock.h and omp.h.
17728 * Makefile.am (nodist_include_HEADERS): New.
17729 (omp.h): New rule.
17730 * configure.ac (PERL): New.
17731 * mkomp_h.pl: New file.
17732 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
17733 with templates.
17734 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
17735
17736 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
17737 build directory. Re-add -march=i486 hack.
17738
17739 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
17740 (libgomp_link_flags): Remove.
17741 (libgomp_initialized): Remove.
17742 (libgomp_init): Don't protect from reinitialization. Copy code
17743 from libstdc++ for getting the multilib set correctly.
17744
17745 2005-05-05 Richard Henderson <rth@redhat.com>
17746
17747 * config/linux/alpha/futex.h: New file.
17748 * configure.tgt (alpha*-*-linux*): Use it.
17749
17750 * config/posix/mutex.c: New file.
17751 * config/posix/sem.c: Use libgomp.h.
17752
17753 * configure.tgt (x86_64-linux): Also test CC for -m32.
17754 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
17755
17756 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
17757 after $gccpath.
17758
17759 * Makefile.am (SUBDIRS): New.
17760 (libgomp_la_LDFLAGS): Add -lpthread.
17761 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
17762 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
17763
17764 * libgomp_g.h: New file.
17765 * libgomp.h: Split out all public declarations to libgomp_g.h.
17766 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
17767 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
17768 * config/linux/sem.h: Likewise.
17769 * config/posix/sem.h: Likewise.
17770
17771 * Makefile.am (AM_LDFLAGS): New.
17772 (libgomp_version_script): Split out from ...
17773 (libgomp_la_LDFLAGS): ... here.
17774 (libgomp_version_info): New.
17775 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
17776 (LIBGOMP_ENABLE): New.
17777 (LIBGOMP_CHECK_LINKER_FEATURES): New.
17778 (LIBGOMP_ENABLE_SYMVERS): New.
17779 * configure.ac (AC_INIT): Version 1.0.
17780 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
17781 (enable-linux-futex): Likewise. Rename from enable-futex.
17782 (libtool_VERSION): New.
17783 (LIBGOMP_ENABLE_SYMVERS): Use it.
17784 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
17785 * Makefile.in, aclocal.m4, configure: Rebuild.
17786
17787 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
17788 (gomp_mutex_unlock_slow): Fix typo.
17789 * config/linux/sem.c: Similarly.
17790 (gomp_sem_post_slow): Fix typo.
17791 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
17792 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
17793 [__PIC__] (sys_futex0): Don't use tmp output in asm.
17794
17795 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
17796 (libgomp_la_LDFLAGS): Add top_srcdir to path.
17797 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
17798 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
17799 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
17800 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
17801 LDFLAGS. Pull enable_futex check to top-level.
17802 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
17803 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
17804
17805 First attempt at real configury.
17806 * Makefile, config.h: Remove file.
17807 * Makefile.am, Makefile.in: New file.
17808 * acinclude.m4 aclocal.m4: New file.
17809 * configure.ac, configure.tgt, configure: New file.
17810
17811 * config/posix/lock.c: Rename from sys-lock.c.
17812 * config/posix/mutex.h: Rename from sys-mutex.h.
17813 * config/posix/sem.c: Rename from sys-sem.c.
17814 * config/posix/sem.h: Rename from sys-sem.h.
17815 * config/posix/proc.c: Rename from sys-proc.c.
17816 * config/posix/time.c: Rename from sys-proc.c.
17817
17818 * config/linux/mutex.c: New file.
17819 * config/linux/mutex.h: New file.
17820 * config/linux/sem.c: New file.
17821 * config/linux/sem.h: New file.
17822 * config/linux/i486/futex.h: New file.
17823 * config/linux/x86_64/futex.h: New file.
17824
17825 2005-05-04 Richard Henderson <rth@redhat.com>
17826
17827 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
17828 * libgomp.h: Declare them.
17829 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
17830 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
17831
17832 2005-05-04 Richard Henderson <rth@redhat.com>
17833
17834 * libgomp-1 code drop
17835
17836 2005-05-04 Richard Henderson <rth@redhat.com>
17837
17838 * iter.c (gomp_iter_static_next): Return tri-state on 0.
17839 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
17840 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
17841 (gomp_iter_static_next): Update.
17842 (gomp_ordered_static_next): Update.
17843 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
17844 (gomp_loop_ordered_static_start): Likewise. Exit early for a
17845 totally empty range.
17846 (gomp_loop_ordered_static_next): Refine test for calling
17847 gomp_ordered_static_next.
17848 * testsuite/ordered-1.c: Add case for more threads than iterations.
17849
17850 * iter.c (gomp_iter_runtime_next_locked): Remove.
17851 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
17852 gomp_loop_guided_start, gomp_loop_ordered_static_start,
17853 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
17854 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
17855 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
17856 gomp_loop_ordered_guided_next): Downcase name, make static, add
17857 an external alias with the old name.
17858 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
17859 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
17860 switch and call one of the above static functions.
17861 * libgomp.h: Update.
17862
17863 * work.c (gomp_work_share_start): Lock the mutex for !first too.
17864 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
17865 GOMP_loop_guided_start, GOMP_loop_runtime_start,
17866 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
17867 GOMP_loop_ordered_guided_start): Update to match.
17868 * sections.c (GOMP_sections_start): Likewise.
17869 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
17870
17871 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
17872 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
17873 Use bounds check instead of modulus.
17874 (gomp_ordered_sync): Split out of GOMP_ordered_start.
17875 (gomp_ordered_last): Don't sync with ordered_owner here.
17876 (gomp_ordered_next): Likewise.
17877 (gomp_ordered_static_loop_next): Likewise.
17878 * loop.c, libgomp.h: Update to match.
17879
17880 * libgomp.h (GOMP_barrier): Declare.
17881
17882 * testsuite/barrier-1.c: New file.
17883 * testsuite/critical-1.c: New file.
17884 * testsuite/ordered-2.c: New file.
17885 * testsuite/ordered-1.c: New file.
17886 * testsuite/sections-1.c: New file.
17887 * testsuite/single-1.c: New file.
17888 * testsuite/Makefile (TESTS): Add them.
17889
17890 2005-05-04 Richard Henderson <rth@redhat.com>
17891
17892 * libgomp.h (struct gomp_work_share): Add ordered_owner.
17893 * loop.c (GOMP_loop_static_start): If not the startup thread,
17894 acquire the mutex to wait for initialization complete.
17895 (GOMP_loop_ordered_static_start): Likewise.
17896 (GOMP_loop_ordered_runtime_start): Likewise.
17897 (GOMP_loop_ordered_static_first): Remove.
17898 (GOMP_loop_ordered_dynamic_first): Remove.
17899 (GOMP_loop_ordered_guided_first): Remove.
17900 (GOMP_loop_ordered_runtime_first): Remove.
17901 * ordered.c (gomp_ordered_loop_first): Post to own release when
17902 we're the first thread.
17903 (gomp_ordered_loop_last): Wait on release if not owner.
17904 (gomp_ordered_loop_next): Likewise.
17905 (gomp_ordered_static_loop_init): New.
17906 (gomp_ordered_static_loop_next): Use ordered_owner.
17907 (GOMP_ordered_start): Likewise.
17908 * work.c (gomp_new_work_share): Initialize ordered_owner.
17909
17910 2005-05-03 Richard Henderson <rth@redhat.com>
17911
17912 * Makefile (OPT): New.
17913 (CFLAGS): Use it.
17914
17915 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
17916 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
17917 * libgomp.h, libgomp.map, NOTES: Update to match.
17918
17919 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
17920 Add initialized and thr members.
17921 (gomp_thread_start): Pause when initially spawned to wait for
17922 the whole team to be created.
17923 (gomp_team_start): Release team members at the end.
17924
17925 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
17926 (f_foo_1): Use GOMP_loop_end.
17927 (f_foo_2): Use GOMP_loop_end_nowait.
17928
17929 * testsuite/loop-2.c: New file.
17930 * testsuite/Makefile (TESTS): Add it.
17931
17932 2005-05-03 Richard Henderson <rth@redhat.com>
17933
17934 * iter.c (gomp_iter_static_next): Fix overflow check typo.
17935 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
17936 * team.c (new_team): Initialize oldest_live_gen to 1 if no
17937 initial work_share.
17938
17939 * testsuite/Makefile: New file.
17940 * testsuite/loop-1.c: New file.
17941
17942 2005-05-03 Richard Henderson <rth@redhat.com>
17943
17944 Initial implementation and checkin.
17945 \f
17946 Copyright (C) 2005-2022 Free Software Foundation, Inc.
17947
17948 Copying and distribution of this file, with or without modification,
17949 are permitted in any medium without royalty provided the copyright
17950 notice and this notice are preserved.