]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
1a0d363e4ba24227b3916c5cf0aad46df5660db7
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
2
3 PR testsuite/90861
4 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
5
6 PR middle-end/90862
7 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8
9 2019-06-16 Tom de Vries <tdevries@suse.de>
10
11 PR tree-optimization/89376
12 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
13
14 2019-06-15 Tom de Vries <tdevries@suse.de>
15
16 PR tree-optimization/89713
17 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
18 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
19
20 2019-06-15 Jakub Jelinek <jakub@redhat.com>
21
22 PR middle-end/90779
23 * testsuite/libgomp.c/pr90779.c: New test.
24 * testsuite/libgomp.fortran/pr90779.f90: New test.
25
26 2019-06-15 Tom de Vries <tdevries@suse.de>
27
28 PR tree-optimization/90009
29 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
30
31 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
32
33 PR tree-optimization/89713
34 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
35
36 2019-06-11 Jakub Jelinek <jakub@redhat.com>
37
38 PR target/90811
39 * testsuite/libgomp.c/pr90811.c: New test.
40
41 2019-06-05 Jakub Jelinek <jakub@redhat.com>
42
43 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
44 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
45
46 2019-06-04 Jakub Jelinek <jakub@redhat.com>
47
48 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
49 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
50 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
51 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
52
53 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
54
55 * configure.ac: Call AX_COUNT_CPUS.
56 Substitute CPU_COUNT.
57 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
58 count fallback.
59 * aclocal.m4: Regenerate.
60 * configure: Regenerate.
61 * Makefile.in, testsuite/Makefile.in: Regenerate.
62
63 2019-05-29 Jakub Jelinek <jakub@redhat.com>
64
65 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
66 to ...
67 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
68 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
69 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
70
71 2019-05-27 Jakub Jelinek <jakub@redhat.com>
72
73 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
74
75 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
76
77 PR libgomp/90641
78 * work.c (gomp_init_work_share): Instead of aligning final ordered
79 value to multiples of long long alignment, align to that the
80 first part (ordered team ids) and if inline_ordered_team_ids
81 is not on a long long alignment boundary within the structure,
82 use __alignof__ (long long) - 1 pad size always.
83 * loop.c (GOMP_loop_start): Fix *mem computation if
84 inline_ordered_team_ids is not aligned on long long alignment boundary
85 within the structure.
86 * loop-ull.c (GOMP_loop_ull_start): Likewise.
87 * sections.c (GOMP_sections2_start): Likewise.
88
89 2019-05-24 Jakub Jelinek <jakub@redhat.com>
90
91 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
92 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
93
94 PR libgomp/90585
95 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
96 HAVE_INTTYPES_H is defined.
97 (print_uint64_t): New typedef.
98 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
99 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
100 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
101 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
102 before casting to void *.
103 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
104 * oacc-mem.c: Don't include config.h nor stdint.h.
105 * target.c: Don't include config.h.
106 * oacc-cuda.c: Likewise.
107 * oacc-host.c: Don't include stdint.h.
108
109 2019-05-20 Jakub Jelinek <jakub@redhat.com>
110
111 PR libgomp/90527
112 * alloc.c (_GNU_SOURCE): Define.
113
114 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
115
116 * acc_prof.h: New file.
117 * oacc-profiling.c: Likewise.
118 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
119 Add these, respectively.
120 * Makefile.in: Regenerate.
121 * env.c (initialize_env): Call goacc_profiling_initialize.
122 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
123 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
124 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
125 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
126 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
127 acc_prof_register, acc_prof_unregister, and acc_register_library.
128 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
129 GOMP_PLUGIN_goacc_thread.
130 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
131 prof_callbacks_enabled members.
132 (goacc_prof_enabled, goacc_profiling_initialize)
133 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
134 (goacc_profiling_dispatch): Declare.
135 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
136 (GOACC_PROFILING_SETUP_P): Define.
137 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
138 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
139 OpenACC Profiling Interface.
140 * oacc-cuda.c (acc_get_current_cuda_device)
141 (acc_get_current_cuda_context, acc_get_cuda_stream)
142 (acc_set_cuda_stream): Likewise.
143 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
144 (acc_init, acc_set_device_type, acc_get_device_type)
145 (acc_get_device_num, goacc_lazy_initialize): Likewise.
146 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
147 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
148 (acc_unmap_data, present_create_copy, delete_copyout)
149 (update_dev_host): Likewise.
150 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
151 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
152 Likewise.
153 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
154 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
155 Likewise.
156 * libgomp.texi: Update.
157 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
158 file.
159 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
160 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
161 Likewise.
162 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
163 Likewise.
164 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
165 Likewise.
166 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
167 Likewise.
168
169 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
170
171 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
172 (struct goacc_asyncqueue_list): Likewise.
173 (goacc_aq): Likewise.
174 (goacc_aq_list): Likewise.
175 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
176 (GOMP_OFFLOAD_openacc_async_test): Remove.
177 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
178 (GOMP_OFFLOAD_openacc_async_wait): Remove.
179 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
180 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
181 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
182 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
183 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
184 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
185 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
186 (GOMP_OFFLOAD_openacc_async_exec): Declare.
187 (GOMP_OFFLOAD_openacc_async_construct): Declare.
188 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
189 (GOMP_OFFLOAD_openacc_async_test): Declare.
190 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
191 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
192 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
193 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
194 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
195
196 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
197 (gomp_acc_insert_pointer): Adjust declaration.
198 (gomp_copy_host2dev): New declaration.
199 (gomp_copy_dev2host): Likewise.
200 (gomp_map_vars_async): Likewise.
201 (gomp_unmap_tgt): Likewise.
202 (gomp_unmap_vars_async): Likewise.
203 (gomp_fini_device): Likewise.
204
205 * oacc-async.c (get_goacc_thread): New function.
206 (get_goacc_thread_device): New function.
207 (lookup_goacc_asyncqueue): New function.
208 (get_goacc_asyncqueue): New function.
209 (acc_async_test): Adjust code to use new async design.
210 (acc_async_test_all): Likewise.
211 (acc_wait): Likewise.
212 (acc_wait_async): Likewise.
213 (acc_wait_all): Likewise.
214 (acc_wait_all_async): Likewise.
215 (goacc_async_free): New function.
216 (goacc_init_asyncqueues): Likewise.
217 (goacc_fini_asyncqueues): Likewise.
218 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
219 design.
220 (acc_set_cuda_stream): Likewise.
221 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
222 (host_openacc_register_async_cleanup): Remove.
223 (host_openacc_async_exec): New function.
224 (host_openacc_async_test): Adjust parameters.
225 (host_openacc_async_test_all): Remove.
226 (host_openacc_async_wait): Remove.
227 (host_openacc_async_wait_async): Remove.
228 (host_openacc_async_wait_all): Remove.
229 (host_openacc_async_wait_all_async): Remove.
230 (host_openacc_async_set_async): Remove.
231 (host_openacc_async_synchronize): New function.
232 (host_openacc_async_serialize): New function.
233 (host_openacc_async_host2dev): New function.
234 (host_openacc_async_dev2host): New function.
235 (host_openacc_async_queue_callback): New function.
236 (host_openacc_async_construct): New function.
237 (host_openacc_async_destruct): New function.
238 (struct gomp_device_descr host_dispatch): Remove initialization of old
239 interface, add intialization of new async sub-struct.
240 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
241 (goacc_attach_host_thread_to_device): Remove old async code usage.
242 * oacc-int.h (goacc_init_asyncqueues): New declaration.
243 (goacc_fini_asyncqueues): Likewise.
244 (goacc_async_copyout_unmap_vars): Likewise.
245 (goacc_async_free): Likewise.
246 (get_goacc_asyncqueue): Likewise.
247 (lookup_goacc_asyncqueue): Likewise.
248 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
249 design.
250 (present_create_copy): Adjust code to use new async design.
251 (delete_copyout): Likewise.
252 (update_dev_host): Likewise.
253 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
254 async design.
255 (gomp_acc_remove_pointer): Adjust code to use new async design.
256 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
257 design.
258 (GOACC_enter_exit_data): Likewise.
259 (goacc_wait): Likewise.
260 (GOACC_update): Likewise.
261 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
262 when called, warn as obsolete in comment.
263 * target.c (goacc_device_copy_async): New function.
264 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
265 add goacc_device_copy_async case.
266 (gomp_copy_dev2host): Likewise.
267 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
268 (gomp_map_pointer): Likewise.
269 (gomp_map_fields_existing): Likewise.
270 (gomp_map_vars_internal): New always_inline function, renamed from
271 gomp_map_vars.
272 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
273 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
274 passing goacc_asyncqueue argument.
275 (gomp_unmap_tgt): Remove static, add attribute_hidden.
276 (gomp_unref_tgt): New function.
277 (gomp_unmap_vars_internal): New always_inline function, renamed from
278 gomp_unmap_vars.
279 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
280 (gomp_unmap_vars_async): Implement by calling
281 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
282 (gomp_fini_device): New function.
283 (gomp_exit_data): Adjust gomp_copy_dev2host call.
284 (gomp_load_plugin_for_device): Remove old interface, adjust to load
285 new async interface.
286 (gomp_target_fini): Adjust code to call gomp_fini_device.
287
288 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
289 (struct ptx_stream): Remove.
290 (struct nvptx_thread): Remove current_stream field.
291 (cuda_map_create): Remove.
292 (cuda_map_destroy): Remove.
293 (map_init): Remove.
294 (map_fini): Remove.
295 (map_pop): Remove.
296 (map_push): Remove.
297 (struct goacc_asyncqueue): Define.
298 (struct nvptx_callback): Define.
299 (struct ptx_free_block): Define.
300 (struct ptx_device): Remove null_stream, active_streams, async_streams,
301 stream_lock, and next fields.
302 (enum ptx_event_type): Remove.
303 (struct ptx_event): Remove.
304 (ptx_event_lock): Remove.
305 (ptx_events): Remove.
306 (init_streams_for_device): Remove.
307 (fini_streams_for_device): Remove.
308 (select_stream_for_async): Remove.
309 (nvptx_init): Remove ptx_events and ptx_event_lock references.
310 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
311 case.
312 (nvptx_open_device): Add free_blocks initialization, remove
313 init_streams_for_device call.
314 (nvptx_close_device): Remove fini_streams_for_device call, add
315 free_blocks destruct code.
316 (event_gc): Remove.
317 (event_add): Remove.
318 (nvptx_exec): Adjust parameters and code.
319 (nvptx_free): Likewise.
320 (nvptx_host2dev): Remove.
321 (nvptx_dev2host): Remove.
322 (nvptx_set_async): Remove.
323 (nvptx_async_test): Remove.
324 (nvptx_async_test_all): Remove.
325 (nvptx_wait): Remove.
326 (nvptx_wait_async): Remove.
327 (nvptx_wait_all): Remove.
328 (nvptx_wait_all_async): Remove.
329 (nvptx_get_cuda_stream): Remove.
330 (nvptx_set_cuda_stream): Remove.
331 (GOMP_OFFLOAD_alloc): Adjust code.
332 (GOMP_OFFLOAD_free): Likewise.
333 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
334 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
335 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
336 (GOMP_OFFLOAD_openacc_async_wait): Remove.
337 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
338 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
339 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
340 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
341 (cuda_free_argmem): New function.
342 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
343 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
344 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
345 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
346 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
347 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
348 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
349 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
350 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
351 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
352 (cuda_callback_wrapper): New function.
353 (cuda_memcpy_sanity_check): New function.
354 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
355 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
356 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
357 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
358
359 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
360
361 PR target/87835
362 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
363
364 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
365
366 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
367
368 2019-03-27 Kevin Buettner <kevinb@redhat.com>
369
370 * team.c (gomp_team_start): Initialize pool->threads[0].
371
372 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
373
374 * testsuite/libgomp.oacc-c++/c++.exp: Specify
375 "-foffload=$offload_target".
376 * testsuite/libgomp.oacc-c/c.exp: Likewise.
377 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
378 * testsuite/lib/libgomp.exp
379 (check_effective_target_openacc_nvidia_accel_configured): Remove,
380 as (conceptually) merged into
381 check_effective_target_openacc_nvidia_accel_selected. Adjust all
382 users.
383
384 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
385 * testsuite/libgomp-test-support.exp.in: Adjust.
386 * testsuite/lib/libgomp.exp: Likewise. Don't populate
387 openacc_device_types_s.
388 (offload_target_to_openacc_device_type): New proc.
389 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
390 * testsuite/libgomp.oacc-c/c.exp: Likewise.
391 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
392 * Makefile.in: Regenerate.
393 * configure: Likewise.
394 * testsuite/Makefile.in: Likewise.
395
396 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
397 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
398 instead of OFFLOAD_TARGETS.
399 * target.c (gomp_target_init): Adjust.
400 * testsuite/libgomp-test-support.exp.in: Likewise.
401 * testsuite/lib/libgomp.exp: Likewise. Populate
402 openacc_device_types_s instead of offload_targets_s_openacc.
403 (check_effective_target_openacc_nvidia_accel_selected)
404 (check_effective_target_openacc_host_selected): Adjust.
405 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
406 * testsuite/libgomp.oacc-c/c.exp: Likewise.
407 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
408 * Makefile.in: Regenerate.
409 * config.h.in: Likewise.
410 * configure: Likewise.
411 * testsuite/Makefile.in: Likewise.
412
413 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
414 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
415 "offloading: supported, but hardware not accessible".
416 * testsuite/libgomp.oacc-c/c.exp: Likewise.
417 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
418
419 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
420
421 PR c/87924
422 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
423 goacc_wait().
424 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
425 and related adjustment.
426
427 2019-01-30 Jakub Jelinek <jakub@redhat.com>
428
429 PR c++/88988
430 * testsuite/libgomp.c++/pr88988.C: New test.
431
432 2019-01-28 Jakub Jelinek <jakub@redhat.com>
433
434 PR middle-end/89002
435 * testsuite/libgomp.c/pr89002.c: New test.
436
437 2019-01-28 Richard Biener <rguenther@suse.de>
438
439 PR testsuite/89064
440 PR tree-optimization/86865
441 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
442
443 2019-01-24 Tom de Vries <tdevries@suse.de>
444
445 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
446 once instantiated_devices drops to 0.
447
448 2019-01-23 Tom de Vries <tdevries@suse.de>
449
450 PR target/PR88946
451 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
452 cuMemFree.
453 (nvptx_exec): Don't call map_push if mapnum == 0.
454 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
455
456 2019-01-23 Tom de Vries <tdevries@suse.de>
457
458 PR target/88941
459 PR target/88939
460 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
461 (map_fini): Remove "assert (!s->map->active)".
462 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
463
464 2019-01-23 Tom de Vries <tdevries@suse.de>
465
466 PR target/87835
467 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
468 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
469
470 2019-01-15 Tom de Vries <tdevries@suse.de>
471
472 PR target/80547
473 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
474 New test.
475
476 2019-01-12 Tom de Vries <tdevries@suse.de>
477
478 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
479 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
480 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
481 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
482
483 2019-01-12 Tom de Vries <tdevries@suse.de>
484
485 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
486
487 2019-01-12 Tom de Vries <tdevries@suse.de>
488
489 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
490 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
491 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
492
493 2019-01-12 Tom de Vries <tdevries@suse.de>
494
495 PR target/85486
496 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
497 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
498
499 2019-01-12 Tom de Vries <tdevries@suse.de>
500
501 PR target/85381
502 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
503 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
504
505 2019-01-12 Tom de Vries <tdevries@suse.de>
506
507 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
508 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
509 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
510
511 2019-01-12 Tom de Vries <tdevries@suse.de>
512
513 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
514 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
515 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
516
517 2019-01-12 Tom de Vries <tdevries@suse.de>
518
519 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
520 resources diagnostic.
521
522 2019-01-12 Tom de Vries <tdevries@suse.de>
523
524 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
525 vector length to be 128.
526 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
527 length 2097152 to be reduced to 1024 instead of 32.
528
529 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
530 James Norris <jnorris@codesourcery.com>
531
532 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
533 Library Routines", and "Environment Variables".
534
535 2019-01-11 Tom de Vries <tdevries@suse.de>
536
537 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
538 num_workers 16.
539
540 2019-01-11 Tom de Vries <tdevries@suse.de>
541
542 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
543 -foffload=-w.
544 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
545 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
546 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
547 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
548
549 2019-01-11 Tom de Vries <tdevries@suse.de>
550
551 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
552 test.
553
554 2019-01-10 Nathan Sidwell <nathan@acm.org>
555 Julian Brown <julian@codesourcery.com>
556
557 PR lto/71959
558 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
559 * testsuite/libgomp.oacc-c++/pr71959.C: New.
560
561 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
562
563 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
564 and paste code.
565
566 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
567
568 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
569 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
570 write.
571
572 2019-01-09 Tom de Vries <tdevries@suse.de>
573
574 PR target/88756
575 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
576 #define instead of "const int".
577 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
578 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
579 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
580 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
581
582 2019-01-09 Tom de Vries <tdevries@suse.de>
583
584 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
585 one worker.
586
587 2019-01-07 Tom de Vries <tdevries@suse.de>
588
589 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
590 GOMP_OPENACC_DIM argument.
591
592 2019-01-03 Tom de Vries <tdevries@suse.de>
593
594 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
595 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
596
597 2019-01-01 Jakub Jelinek <jakub@redhat.com>
598
599 Update copyright years.
600
601 2019-01-01 Jakub Jelinek <jakub@redhat.com>
602
603 * libgomp.texi: Bump @copying's copyright year.
604
605 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
606
607 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
608 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
609 (GOACC_declare): Redefine the "device" argument to "flags".
610
611 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
612 Cesar Philippidis <cesar@codesourcery.com>
613
614 * target.c (struct gomp_coalesce_chunk): New structure.
615 (struct gomp_coalesce_buf): Update the chunks member to use that
616 type. Adjust all users.
617
618 2018-12-19 Tom de Vries <tdevries@suse.de>
619
620 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
621 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
622 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
623
624 2018-12-19 Tom de Vries <tdevries@suse.de>
625
626 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
627 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
628 gcc/testsuite/gcc.dg/goacc.
629 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
630
631 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
632 Chung-Lin Tang <cltang@codesourcery.com>
633
634 * oacc-mem.c (acc_present_or_create): Remove definition and change
635 to alias of acc_create.
636 (acc_present_or_copyin): Remove definition and change to alias of
637 acc_copyin.
638 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
639 of acc_present_or_create.
640 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
641 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
642 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
643 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
644 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
645 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
646 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
647 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
648 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
649 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
650 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
651 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
652 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
653 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
654 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
655 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
656
657 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
658
659 PR libgomp/88495
660 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
661 "identical parameters".
662 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
663 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
664
665 PR libgomp/88484
666 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
667 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
668
669 PR libgomp/88407
670 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
671 (nvptx_wait_async): Unseen async-argument is a no-op.
672 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
673 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
674 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
675 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
676 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
677 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
678 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
679 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
680 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
681
682 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
683 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
684
685 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
686
687 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
688 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
689 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
690
691 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
692
693 PR libgomp/88370
694 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
695 (acc_set_cuda_stream): Clarify.
696 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
697 "async_valid_p".
698 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
699 acc_async_sync".
700 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
701 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
702 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
703 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
704
705 2018-12-14 Tom de Vries <tdevries@suse.de>
706
707 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
708 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
709 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
710 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
711 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
712
713 2018-12-13 Tom de Vries <tdevries@suse.de>
714
715 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
716 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
717 * fortran.c (omp_display_affinity_): ... here.
718 * libgomp.h (gomp_print_string): Declare.
719 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
720 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
721 write.
722
723 2018-12-13 Jakub Jelinek <jakub@redhat.com>
724
725 PR libgomp/88460
726 * testsuite/libgomp.c++/for-24.C (results): Include it in
727 omp declare target region.
728 (main): Use map (always, tofrom: results) instead of
729 map (tofrom: results).
730
731 2018-12-12 Jakub Jelinek <jakub@redhat.com>
732
733 PR fortran/88463
734 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
735 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
736
737 * testsuite/libgomp.c-c++-common/for-16.c: New test.
738
739 2018-12-12 Andreas Schwab <schwab@suse.de>
740
741 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
742 clobbered.
743
744 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
745
746 PR fortran/88411
747 * testsuite/libgomp.fortran/async_io_8.f90: New test.
748
749 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
750 Jakub Jelinek <jakub@redhat.com>
751
752 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
753 devicep->host2dev_func.
754
755 2018-12-08 Jakub Jelinek <jakub@redhat.com>
756
757 PR libgomp/87995
758 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
759 tls_runtime effective target.
760 (t): New threadprivate variable.
761 (main): Set t in threads which execute iterations of the worksharing
762 loop. Propagate that to the task after the loop and don't abort
763 if the current taskgroup hasn't been cancelled.
764
765 2018-12-02 Jakub Jelinek <jakub@redhat.com>
766
767 * testsuite/libgomp.c/task-reduction-3.c: New test.
768
769 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
770
771 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
772
773 PR libgomp/88288
774 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
775 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
776
777 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
778
779 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
780
781 2018-10-19 Richard Biener <rguenther@suse.de>
782
783 PR tree-optimization/88182
784 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
785
786 2018-11-26 Jakub Jelinek <jakub@redhat.com>
787
788 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
789 (RUNTEST): Don't define.
790 (RUNTESTDEFAULTFLAGS): Add.
791 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
792 (distclean-am): Depend on distclean-DEJAGNU.
793 (check-am): If -j% option is present in MFLAGS and if
794 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
795 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
796 * testsuite/Makefile.in: Regenerated.
797
798 2018-11-26 Richard Biener <rguenther@suse.de>
799
800 PR tree-optimization/88182
801 * testsuite/libgomp.c++/pr88182.C: New testcase.
802
803 2018-11-20 Jakub Jelinek <jakub@redhat.com>
804
805 PR bootstrap/88106
806 * config/mingw32/affinity-fmt.c: New file.
807
808 2018-11-09 Jakub Jelinek <jakub@redhat.com>
809
810 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
811 (gomp_display_affinity): Use __builtin_choose_expr to handle
812 properly handle argument having integral, or pointer or some other
813 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
814 with uint64_t type instead of %llx and unsigned long long.
815
816 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
817 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
818
819 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
820
821 * affinity.c: Include <string.h>, <stdio.h>.
822 (gomp_display_affinity_place): Remove cpusetp.
823 * teams.c: Include <limits.h>.
824
825 2018-11-08 Jakub Jelinek <jakub@redhat.com>
826
827 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
828 in_reduction clause for s[0].
829
830 * affinity.c (gomp_display_affinity_place): New function.
831 * affinity-fmt.c: New file.
832 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
833 * config/linux/affinity.c (gomp_display_affinity_place): New function.
834 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
835 Move these functions to ...
836 * config/nvptx/teams.c: ... here. New file.
837 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
838 New functions.
839 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
840 functions.
841 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
842 and _aligned_malloc.
843 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
844 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
845 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
846 gomp_affinity_format_len): New variables.
847 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
848 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
849 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
850 modifiers. Display (non-default) chunk sizes. Print
851 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
852 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
853 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
854 * fortran.c: Include stdio.h and string.h.
855 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
856 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
857 (omp_set_affinity_format_, omp_get_affinity_format_,
858 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
859 omp_pause_resource_all_): New functions.
860 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
861 switch.
862 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
863 functions to ...
864 * teams.c: ... here. New file.
865 * libgomp_g.h: Include gstdint.h.
866 (GOMP_loop_nonmonotonic_runtime_start,
867 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
868 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
869 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
870 GOMP_parallel_loop_nonmonotonic_runtime,
871 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
872 GOMP_loop_ull_nonmonotonic_runtime_start,
873 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
874 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
875 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
876 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
877 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
878 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
879 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
880 GOMP_teams_reg): Declare.
881 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
882 gomp_aligned_alloc uses fallback implementation.
883 (gomp_aligned_alloc, gomp_aligned_free): Declare.
884 (enum gomp_schedule_type): Add GFS_MONOTONIC.
885 (struct gomp_doacross_work_share): Add extra field.
886 (struct gomp_work_share): Add task_reductions field.
887 (struct gomp_taskgroup): Add workshare and reductions fields.
888 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
889 (gomp_thread_handle): New typedef.
890 (gomp_display_affinity_place, gomp_set_affinity_format,
891 gomp_display_string, gomp_display_affinity,
892 gomp_display_affinity_thread): Declare.
893 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
894 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
895 gomp_workshare_task_reduction_register): Declare.
896 (gomp_team_start): Add taskgroup argument.
897 (gomp_pause_host): Declare.
898 (gomp_init_work_share, gomp_work_share_start): Change bool argument
899 to size_t.
900 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
901 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
902 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
903 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
904 GOMP_loop_ull_doacross_start,
905 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
906 GOMP_loop_maybe_nonmonotonic_runtime_next,
907 GOMP_loop_maybe_nonmonotonic_runtime_start,
908 GOMP_loop_nonmonotonic_runtime_next,
909 GOMP_loop_nonmonotonic_runtime_start,
910 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
911 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
912 GOMP_loop_ull_nonmonotonic_runtime_next,
913 GOMP_loop_ull_nonmonotonic_runtime_start,
914 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
915 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
916 GOMP_taskgroup_reduction_register,
917 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
918 GOMP_teams_reg and GOMP_taskwait_depend.
919 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
920 omp_{capture,display}_affinity{,_}, and
921 omp_[gs]et_affinity_format{,_}.
922 * loop.c: Include string.h.
923 (GOMP_loop_runtime_next): Add ialias.
924 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
925 (gomp_loop_static_start, gomp_loop_dynamic_start,
926 gomp_loop_guided_start, gomp_loop_ordered_static_start,
927 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
928 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
929 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
930 or gomp_doacross_init callers.
931 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
932 GOMP_loop_doacross_start): New functions.
933 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
934 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
935 Mask off GFS_MONOTONIC bit.
936 (GOMP_loop_maybe_nonmonotonic_runtime_next,
937 GOMP_loop_maybe_nonmonotonic_runtime_start,
938 GOMP_loop_nonmonotonic_runtime_next,
939 GOMP_loop_nonmonotonic_runtime_start,
940 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
941 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
942 functions.
943 (gomp_parallel_loop_start): Pass NULL as taskgroup to
944 gomp_team_start.
945 * loop_ull.c: Include string.h.
946 (GOMP_loop_ull_runtime_next): Add ialias.
947 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
948 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
949 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
950 gomp_loop_ull_ordered_dynamic_start,
951 gomp_loop_ull_ordered_guided_start,
952 gomp_loop_ull_doacross_static_start,
953 gomp_loop_ull_doacross_dynamic_start,
954 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
955 and gomp_doacross_ull_init callers.
956 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
957 GOMP_loop_ull_doacross_start): New functions.
958 (GOMP_loop_ull_runtime_start,
959 GOMP_loop_ull_ordered_runtime_start,
960 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
961 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
962 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
963 GOMP_loop_ull_nonmonotonic_runtime_next,
964 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
965 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
966 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
967 (omp_pause_resource_t, omp_depend_t): New typedefs.
968 (enum omp_lock_hint_t): Renamed to ...
969 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
970 enumerators using numbers and omp_lock_hint_* as their aliases.
971 (omp_lock_hint_t): New typedef. Rename to ...
972 (omp_sync_hint_t): ... this.
973 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
974 omp_sync_hint_t instead of omp_lock_hint_t.
975 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
976 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
977 Declare.
978 (omp_target_is_present, omp_target_disassociate_ptr):
979 Change first argument from void * to const void *.
980 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
981 from void * to const void *.
982 (omp_target_associate_ptr): Change first and second arguments from
983 void * to const void *.
984 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
985 omp_pause_hard): New parameters.
986 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
987 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
988 New interfaces.
989 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
990 omp_pause_hard): New parameters.
991 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
992 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
993 New externals.
994 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
995 EXTRA argument. If not needed to prepare array, if extra is 0,
996 clear ws->doacross, otherwise allocate just doacross structure and
997 extra payload. If array is needed, allocate also extra payload.
998 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
999 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
1000 doacross == NULL.
1001 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
1002 gomp_team_start.
1003 (GOMP_parallel): Likewise. Formatting fix.
1004 (GOMP_parallel_reductions): New function.
1005 (GOMP_cancellation_point): If taskgroup has workshare
1006 flag set, check cancelled of prev taskgroup if any.
1007 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
1008 on prev taskgroup if any.
1009 * sections.c: Include string.h.
1010 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1011 (GOMP_sections_start): Adjust gomp_work_share_start caller.
1012 (GOMP_sections2_start): New function.
1013 (GOMP_parallel_sections_start, GOMP_parallel_sections):
1014 Pass NULL as taskgroup to gomp_team_start.
1015 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
1016 gomp_work_share_start callers.
1017 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
1018 If taskgroup has workshare flag set, check cancelled on prev
1019 taskgroup if any. Guard all cancellation tests with
1020 gomp_cancel_var test.
1021 (omp_target_is_present, omp_target_disassociate_ptr):
1022 Change ptr argument from void * to const void *.
1023 (omp_target_memcpy): Change src argument from void * to const void *.
1024 (omp_target_memcpy_rect): Likewise.
1025 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
1026 instead of char * where needed.
1027 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
1028 from void * to const void *.
1029 (omp_pause_resource, omp_pause_resource_all): New functions.
1030 * task.c (gomp_task_handle_depend): Handle new depend array format
1031 in addition to the old. Handle mutexinoutset kinds the same as
1032 inout for now, handle unspecified kinds.
1033 (gomp_create_target_task): If taskgroup has workshare flag set, check
1034 cancelled on prev taskgroup if any. Guard all cancellation tests with
1035 gomp_cancel_var test. Handle new depend array format count in
1036 addition to the old.
1037 (GOMP_task): Likewise. Adjust function comment.
1038 (gomp_task_run_pre): If taskgroup has workshare flag set, check
1039 cancelled on prev taskgroup if any. Guard all cancellation tests with
1040 gomp_cancel_var test.
1041 (GOMP_taskwait_depend): New function.
1042 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
1043 format in addition to the old. Handle mutexinoutset kinds the same as
1044 inout for now, handle unspecified kinds. Fix a function comment typo.
1045 (gomp_taskgroup_init): New function.
1046 (GOMP_taskgroup_start): Use it.
1047 (gomp_reduction_register, gomp_create_artificial_team,
1048 GOMP_taskgroup_reduction_register,
1049 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1050 gomp_parallel_reduction_register,
1051 gomp_workshare_task_reduction_register,
1052 gomp_workshare_taskgroup_start,
1053 GOMP_workshare_task_reduction_unregister): New functions.
1054 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
1055 check cancelled on prev taskgroup if any. Guard all cancellation
1056 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
1057 by calling GOMP_taskgroup_reduction_register.
1058 * team.c (gomp_thread_attr): Remove comment.
1059 (struct gomp_thread_start_data): Add handle field.
1060 (gomp_thread_start): Call pthread_detach.
1061 (gomp_new_team): Adjust gomp_init_work_share caller.
1062 (gomp_free_pool_helper): Call pthread_detach.
1063 (gomp_team_start): Add taskgroup argument, initialize implicit
1064 tasks' taskgroup field to that. Don't call
1065 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
1066 (gomp_team_end): Determine nesting by thr->ts.level != 0
1067 rather than thr->ts.team != NULL.
1068 (gomp_pause_pool_helper, gomp_pause_host): New functions.
1069 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1070 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1071 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1072 if more than 1 allocate also extra payload at the end of array. Never
1073 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1074 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1075 return true instead of ws.
1076 * Makefile.in: Regenerated.
1077 * configure: Regenerated.
1078 * config.h.in: Regenerated.
1079 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1080 in some cases.
1081 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1082 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1083 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1084 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1085 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1086 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1087 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1088 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1089 * testsuite/libgomp.c-c++-common/for-10.c: New test.
1090 * testsuite/libgomp.c-c++-common/for-11.c: New test.
1091 * testsuite/libgomp.c-c++-common/for-12.c: New test.
1092 * testsuite/libgomp.c-c++-common/for-13.c: New test.
1093 * testsuite/libgomp.c-c++-common/for-14.c: New test.
1094 * testsuite/libgomp.c-c++-common/for-15.c: New test.
1095 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1096 define a different N(test), don't define N(f0) to N(f14), but instead
1097 define N(f20) to N(f34) using != comparisons.
1098 * testsuite/libgomp.c-c++-common/for-7.c: New test.
1099 * testsuite/libgomp.c-c++-common/for-8.c: New test.
1100 * testsuite/libgomp.c-c++-common/for-9.c: New test.
1101 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1102 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1103 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1104 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1105 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1106 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1107 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1108 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1109 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1110 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1111 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1112 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1113 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1114 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1115 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1116 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1117 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1118 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1119 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1120 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1121 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1122 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1123 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1124 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1125 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1126 * testsuite/libgomp.c++/depend-1.C: New test.
1127 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1128 * testsuite/libgomp.c++/depobj-1.C: New test.
1129 * testsuite/libgomp.c++/for-16.C: New test.
1130 * testsuite/libgomp.c++/for-21.C: New test.
1131 * testsuite/libgomp.c++/for-22.C: New test.
1132 * testsuite/libgomp.c++/for-23.C: New test.
1133 * testsuite/libgomp.c++/for-24.C: New test.
1134 * testsuite/libgomp.c++/for-25.C: New test.
1135 * testsuite/libgomp.c++/for-26.C: New test.
1136 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1137 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1138 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1139 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1140 * testsuite/libgomp.c++/task-reduction-10.C: New test.
1141 * testsuite/libgomp.c++/task-reduction-11.C: New test.
1142 * testsuite/libgomp.c++/task-reduction-12.C: New test.
1143 * testsuite/libgomp.c++/task-reduction-13.C: New test.
1144 * testsuite/libgomp.c++/task-reduction-14.C: New test.
1145 * testsuite/libgomp.c++/task-reduction-15.C: New test.
1146 * testsuite/libgomp.c++/task-reduction-16.C: New test.
1147 * testsuite/libgomp.c++/task-reduction-17.C: New test.
1148 * testsuite/libgomp.c++/task-reduction-18.C: New test.
1149 * testsuite/libgomp.c++/task-reduction-19.C: New test.
1150 * testsuite/libgomp.c/task-reduction-1.c: New test.
1151 * testsuite/libgomp.c++/task-reduction-1.C: New test.
1152 * testsuite/libgomp.c/task-reduction-2.c: New test.
1153 * testsuite/libgomp.c++/task-reduction-2.C: New test.
1154 * testsuite/libgomp.c++/task-reduction-3.C: New test.
1155 * testsuite/libgomp.c++/task-reduction-4.C: New test.
1156 * testsuite/libgomp.c++/task-reduction-5.C: New test.
1157 * testsuite/libgomp.c++/task-reduction-6.C: New test.
1158 * testsuite/libgomp.c++/task-reduction-7.C: New test.
1159 * testsuite/libgomp.c++/task-reduction-8.C: New test.
1160 * testsuite/libgomp.c++/task-reduction-9.C: New test.
1161 * testsuite/libgomp.c/teams-1.c: New test.
1162 * testsuite/libgomp.c/teams-2.c: New test.
1163 * testsuite/libgomp.c/thread-limit-4.c: New test.
1164 * testsuite/libgomp.c/thread-limit-5.c: New test.
1165 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1166
1167 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
1168
1169 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1170 acc_memcpy_to/from_device functions, now with async parameter.
1171 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1172 (acc_memcpy_from_device): Likewise.
1173 (acc_memcpy_to_device_async): New API function.
1174 (acc_memcpy_from_device_async): Likewise.
1175 (present_create_copy): Add async parameter and async setting/unsetting.
1176 (acc_create): Adjust present_create_copy call.
1177 (acc_copyin): Likewise.
1178 (acc_present_or_create): Likewise.
1179 (acc_present_or_copyin): Likewise.
1180 (acc_create_async): New API function.
1181 (acc_copyin_async): New API function.
1182 (delete_copyout): Add async parameter and async setting/unsetting.
1183 (acc_delete): Adjust delete_copyout call.
1184 (acc_copyout): Likewise.
1185 (acc_delete_async): New API function.
1186 (acc_copyout_async): Likewise.
1187 (update_dev_host): Add async parameter and async setting/unsetting.
1188 (acc_update_device): Adjust update_dev_host call.
1189 (acc_update_self): Likewise.
1190 (acc_update_device_async): New API function.
1191 (acc_update_self_async): Likewise.
1192 * openacc.h (acc_copyin_async): Declare new API function.
1193 (acc_create_async): Likewise.
1194 (acc_copyout_async): Likewise.
1195 (acc_delete_async): Likewise.
1196 (acc_update_device_async): Likewise.
1197 (acc_update_self_async): Likewise.
1198 (acc_memcpy_to_device_async): Likewise.
1199 (acc_memcpy_from_device_async): Likewise.
1200 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1201 (acc_copyin_async_64_h): New subroutine.
1202 (acc_copyin_async_array_h): New subroutine.
1203 (acc_create_async_32_h): New subroutine.
1204 (acc_create_async_64_h): New subroutine.
1205 (acc_create_async_array_h): New subroutine.
1206 (acc_copyout_async_32_h): New subroutine.
1207 (acc_copyout_async_64_h): New subroutine.
1208 (acc_copyout_async_array_h): New subroutine.
1209 (acc_delete_async_32_h): New subroutine.
1210 (acc_delete_async_64_h): New subroutine.
1211 (acc_delete_async_array_h): New subroutine.
1212 (acc_update_device_async_32_h): New subroutine.
1213 (acc_update_device_async_64_h): New subroutine.
1214 (acc_update_device_async_array_h): New subroutine.
1215 (acc_update_self_async_32_h): New subroutine.
1216 (acc_update_self_async_64_h): New subroutine.
1217 (acc_update_self_async_array_h): New subroutine.
1218 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1219 (acc_copyin_async_64_h): New subroutine.
1220 (acc_copyin_async_array_h): New subroutine.
1221 (acc_create_async_32_h): New subroutine.
1222 (acc_create_async_64_h): New subroutine.
1223 (acc_create_async_array_h): New subroutine.
1224 (acc_copyout_async_32_h): New subroutine.
1225 (acc_copyout_async_64_h): New subroutine.
1226 (acc_copyout_async_array_h): New subroutine.
1227 (acc_delete_async_32_h): New subroutine.
1228 (acc_delete_async_64_h): New subroutine.
1229 (acc_delete_async_array_h): New subroutine.
1230 (acc_update_device_async_32_h): New subroutine.
1231 (acc_update_device_async_64_h): New subroutine.
1232 (acc_update_device_async_array_h): New subroutine.
1233 (acc_update_self_async_32_h): New subroutine.
1234 (acc_update_self_async_64_h): New subroutine.
1235 (acc_update_self_async_array_h): New subroutine.
1236 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1237 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1238 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1239 acc_memcpy_to_device_async*, acc_update_device_async*, and
1240 acc_update_self_async* entries.
1241 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1242 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1243 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1244
1245 2018-10-31 Joseph Myers <joseph@codesourcery.com>
1246
1247 PR bootstrap/82856
1248 * Makefile.am: Include multilib.am
1249 (AUTOMAKE_OPTIONS): Add info-in-builddir.
1250 (CLEANFILES): Remove libgomp.info.
1251 * configure.ac: Remove AC_PREREQ.
1252 * testsuite/Makefile.am (RUNTEST): Remove quotes.
1253 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
1254 Regenerate.
1255
1256 2018-10-29 Joseph Myers <joseph@codesourcery.com>
1257 Julian Brown <julian@codesourcery.com>
1258
1259 * testsuite/libgomp.oacc-c++/this.C: New.
1260
1261 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
1262
1263 * plugin/plugin-nvptx.c (struct cuda_map): New.
1264 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
1265 h_tail with (cuda_map *) map.
1266 (cuda_map_create): New function.
1267 (cuda_map_destroy): New function.
1268 (map_init): Update to use a linked list of cuda_map objects.
1269 (map_fini): Likewise.
1270 (map_pop): Likewise.
1271 (map_push): Likewise. Return CUdeviceptr instead of void.
1272 (init_streams_for_device): Remove stales references to ptx_stream
1273 members.
1274 (select_stream_for_async): Likewise.
1275 (nvptx_exec): Update call to map_init.
1276
1277 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
1278 Julian Brown <julian@codesourcery.com>
1279
1280 PR middle-end/86336
1281 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
1282
1283 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
1284 Thomas Koenig <tkoenig@gcc.gnu.org>
1285
1286 PR fortran/25829
1287 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1288 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1289 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1290 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1291 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1292 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1293 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1294
1295 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
1296 Tom de Vries <tdevries@suse.de>
1297
1298 PR target/85590
1299 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
1300 (cuOccupancyMaxPotentialBlockSize): Declare.
1301 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
1302 CUDA_ONE_CALL_MAYBE_NULL.
1303 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
1304 CUoccupancyB2DSize and declare
1305 cuOccupancyMaxPotentialBlockSize.
1306 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
1307 default num_gangs and num_workers when the driver supports it.
1308
1309 2018-08-08 Tom de Vries <tdevries@suse.de>
1310
1311 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
1312 CUDA_ONE_CALL_MAYBE_NULL.
1313 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
1314 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
1315 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
1316 are not found.
1317
1318 2018-08-08 Tom de Vries <tdevries@suse.de>
1319
1320 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
1321 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
1322 present.
1323
1324 2018-08-08 Tom de Vries <tdevries@suse.de>
1325
1326 * plugin/plugin-nvptx.c
1327 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
1328 (nvptx_open_device): Use
1329 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
1330
1331 2018-08-08 Tom de Vries <tdevries@suse.de>
1332
1333 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
1334 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
1335
1336 2018-08-07 Tom de Vries <tdevries@suse.de>
1337
1338 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
1339 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
1340 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
1341 corresponding call in CUDA_ONE_CALL. Add def/undef of
1342 CUDA_ONE_CALL_MAYBE_NULL.
1343 (CUDA_CALL_EXISTS): Define.
1344
1345 2018-08-07 Tom de Vries <tdevries@suse.de>
1346
1347 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
1348 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
1349 corresponding undefs right after.
1350
1351 2018-08-04 Tom de Vries <tdevries@suse.de>
1352
1353 * plugin/configfrag.ac: For --without-cuda-driver, set
1354 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
1355 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
1356 * configure: Regenerate.
1357
1358 2018-08-02 Tom de Vries <tdevries@suse.de>
1359
1360 PR target/86660
1361 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
1362 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
1363 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
1364 Same.
1365 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
1366 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
1367 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
1368
1369 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1370 Thomas Schwinge <thomas@codesourcery.com>
1371
1372 * config/nvptx/oacc-parallel.c: Truncate.
1373
1374 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1375 James Norris <jnorris@codesourcery.com>
1376
1377 * plugin/plugin-nvptx.c (struct map): Removed.
1378 (map_init, map_pop): Remove use of struct map.
1379 (map_push): Likewise and change argument list.
1380 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1381
1382 2018-08-01 Tom de Vries <tdevries@suse.de>
1383
1384 * plugin/cuda-lib.def: New file. Factor out of ...
1385 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1386 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1387 using CUDA_CALLS.
1388
1389 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1390
1391 Revert 'AsyncI/O patch committed'.
1392 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1393 Thomas Koenig <tkoenig@gcc.gnu.org>
1394
1395 PR fortran/25829
1396 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1397 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1398 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1399 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1400 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1401 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1402 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1403
1404 2018-07-30 Tom de Vries <tdevries@suse.de>
1405
1406 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1407 (nvptx_exec): Ensure worker and vector default dims don't exceed
1408 targ_fn->max_threads_per_block.
1409
1410 2018-07-30 Tom de Vries <tdevries@suse.de>
1411
1412 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1413 (nvptx_open_device): Init default_dims for device.
1414 (nvptx_exec): Use default_dims from device.
1415
1416 2018-07-26 Jakub Jelinek <jakub@redhat.com>
1417
1418 PR testsuite/86660
1419 * testsuite/libgomp.c++/for-15.C (results): Include it in
1420 omp declare target region.
1421 (main): Use map (always, tofrom: results) instead of
1422 map (tofrom: results).
1423
1424 PR middle-end/86660
1425 * testsuite/libgomp.c/pr86660.c: New test.
1426
1427 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1428 Tom de Vries <tdevries@suse.de>
1429
1430 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1431 sufficient resources to launch a kernel, and give a hint on how to fix
1432 it.
1433
1434 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1435 Tom de Vries <tdevries@suse.de>
1436
1437 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1438 max_threads_per_block and max_threads_per_multiprocessor fields.
1439 (nvptx_open_device): Initialize new fields.
1440 (nvptx_exec): Use num_sms, and new fields.
1441
1442 2018-07-26 Tom de Vries <tdevries@suse.de>
1443
1444 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1445 to correct locations. Remove xfail.
1446
1447 2018-07-26 Tom de Vries <tdevries@suse.de>
1448
1449 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1450 acc_wait. Move acc_async_test calls to correct locations. Remove
1451 xfail.
1452
1453 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1454 Thomas Koenig <tkoenig@gcc.gnu.org>
1455
1456 PR fortran/25829
1457 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1458 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1459 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1460 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1461 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1462 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1463 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1464
1465 2018-07-17 Jakub Jelinek <jakub@redhat.com>
1466
1467 PR middle-end/86542
1468 * testsuite/libgomp.c++/pr86542.C: New test.
1469
1470 PR middle-end/86539
1471 * testsuite/libgomp.c++/pr86539.C: New test.
1472
1473 2018-07-11 Jakub Jelinek <jakub@redhat.com>
1474
1475 PR c++/86443
1476 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1477 (results): Make sure the variable is not inside declare target region.
1478 (qux): Remove unused function.
1479
1480 2018-07-10 Jakub Jelinek <jakub@redhat.com>
1481
1482 PR c++/86443
1483 * testsuite/libgomp.c++/for-15.C: New test.
1484
1485 2018-06-26 Jakub Jelinek <jakub@redhat.com>
1486
1487 PR c++/86291
1488 * testsuite/libgomp.c++/pr86291.C: New test.
1489
1490 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
1491
1492 * libgomp.texi (Top): Move www.openmp.org to https.
1493 (Enabling OpenMP): Ditto.
1494 (omp_get_active_level): Ditto.
1495 (omp_get_ancestor_thread_num): Ditto.
1496 (omp_get_cancellation): Ditto.
1497 (omp_get_default_device): Ditto.
1498 (omp_get_dynamic): Ditto.
1499 (omp_get_level): Ditto.
1500 (omp_get_max_active_levels): Ditto.
1501 (omp_get_max_task_priority): Ditto.
1502 (omp_get_max_threads): Ditto.
1503 (omp_get_nested): Ditto.
1504 (omp_get_num_devices): Ditto.
1505 (omp_get_num_procs): Ditto.
1506 (omp_get_num_teams): Ditto.
1507 (omp_get_num_threads): Ditto.
1508 (omp_get_proc_bind): Ditto.
1509 (omp_get_schedule): Ditto.
1510 (omp_get_team_num): Ditto.
1511 (omp_get_team_size): Ditto.
1512 (omp_get_thread_limit): Ditto.
1513 (omp_get_thread_num): Ditto.
1514 (omp_in_parallel): Ditto.
1515 (omp_in_final): Ditto.
1516 (omp_is_initial_device): Ditto.
1517 (omp_set_default_device): Ditto.
1518 (omp_set_dynamic): Ditto.
1519 (omp_set_max_active_levels): Ditto.
1520 (omp_set_nested): Ditto.
1521 (omp_set_num_threads): Ditto.
1522 (omp_set_schedule): Ditto.
1523 (omp_init_lock): Ditto.
1524 (omp_set_lock): Ditto.
1525 (omp_test_lock): Ditto.
1526 (omp_unset_lock): Ditto.
1527 (omp_destroy_lock): Ditto.
1528 (omp_init_nest_lock): Ditto.
1529 (omp_set_nest_lock): Ditto.
1530 (omp_test_nest_lock): Ditto.
1531 (omp_unset_nest_lock): Ditto.
1532 (omp_destroy_nest_lock): Ditto.
1533 (omp_get_wtick): Ditto.
1534 (omp_get_wtime): Ditto.
1535 (OMP_CANCELLATION): Ditto.
1536 (OMP_DISPLAY_ENV): Ditto.
1537 (OMP_DEFAULT_DEVICE): Ditto.
1538 (OMP_DYNAMIC): Ditto.
1539 (OMP_MAX_ACTIVE_LEVELS): Ditto.
1540 (OMP_MAX_TASK_PRIORITY): Ditto.
1541 (OMP_NESTED): Ditto.
1542 (OMP_NUM_THREADS): Ditto.
1543 (OMP_PROC_BIND): Ditto.
1544 (OMP_PLACES): Ditto.
1545 (OMP_STACKSIZE): Ditto.
1546 (OMP_SCHEDULE): Ditto.
1547 (OMP_THREAD_LIMIT): Ditto.
1548 (OMP_WAIT_POLICY): Ditto.
1549
1550 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
1551 James Norris <jnorris@codesourcery.com>
1552 Julian Brown <julian@codesourcery.com>
1553 Thomas Schwinge <thomas@codesourcery.com>
1554 Tom de Vries <tom@codesourcery.com>
1555
1556 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1557 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1558 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1559 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1560 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1561 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1562 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1563 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1564 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1565 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1566 Likewise.
1567 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1568 Likewise.
1569 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1570 Likewise.
1571 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1572 Likewise.
1573 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1574 Likewise.
1575 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1576 Likewise.
1577 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1578 Likewise.
1579 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1580 Likewise.
1581 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1582 Likewise.
1583 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1584 Likewise.
1585 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1586 Likewise.
1587 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1588 Likewise.
1589 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1590 Likewise.
1591 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1592 Likewise.
1593 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1594 Likewise.
1595 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1596 Likewise.
1597 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1598 Likewise.
1599 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1600 Likewise.
1601 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1602 Likewise.
1603 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1604 Likewise.
1605 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1606 Likewise.
1607 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1608 Likewise.
1609 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1610 Likewise.
1611 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1612 Likewise.
1613 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1614 Likewise.
1615 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1616 Likewise.
1617 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1618 Likewise.
1619 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1620 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1621 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1622 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1623 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1624 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1625 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1626 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1627 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1628 Likewise.
1629 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1630 Likewise.
1631 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1632 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1633 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1634 Likewise.
1635 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1636 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1637 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1638 Likewise.
1639 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1640 Likewise.
1641 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1642 Likewise.
1643 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1644 Likewise.
1645 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1646 Likewise.
1647 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1648 Likewise.
1649 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1650 Likewise.
1651 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1652 Likewise.
1653 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1654 Likewise.
1655 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1656 Likewise.
1657 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1658 Likewise.
1659 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1660 Likewise.
1661 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1662 Likewise.
1663 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1664 Likewise.
1665 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1666 Likewise.
1667 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1668 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1669 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1670 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1671 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1672 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1673 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1674
1675 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1676 Thomas Schwinge <thomas@codesourcery.com>
1677 Cesar Philippidis <cesar@codesourcery.com>
1678
1679 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1680 (gomp_acc_remove_pointer): Update declaration.
1681 (gomp_acc_declare_allocate): Declare.
1682 (gomp_remove_var): Declare.
1683 * libgomp.map (OACC_2.5): Define.
1684 * oacc-mem.c (acc_map_data): Update refcount.
1685 (acc_unmap_data): Likewise.
1686 (present_create_copy): Likewise.
1687 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1688 (acc_copyin): Likewise.
1689 (FLAG_FINALIZE): Define.
1690 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1691 (acc_delete_finalize): New function.
1692 (acc_delete_finalize_async): New function.
1693 (acc_copyout_finalize): New function.
1694 (acc_copyout_finalize_async): New function.
1695 (gomp_acc_insert_pointer): Update refcounts.
1696 (gomp_acc_remove_pointer): Return if data is not present on the
1697 accelerator.
1698 * oacc-parallel.c (find_pset): Rename to find_pointer.
1699 (find_pointer): Add support for GOMP_MAP_POINTER.
1700 (handle_ftn_pointers): New function.
1701 (GOACC_parallel_keyed): Update refcounts of variables.
1702 (GOACC_enter_exit_data): Add support for finalized data mappings.
1703 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1704 of fortran arrays.
1705 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1706 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1707 for GOMP_MAP_FORCE_FROM.
1708 * openacc.f90 (module openacc_internal): Add
1709 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1710 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1711 acc_copyout_finalize and acc_delete_finalize.
1712 (acc_copyout_finalize_32_h): New subroutine.
1713 (acc_copyout_finalize_64_h): New subroutine.
1714 (acc_copyout_finalize_array_h): New subroutine.
1715 (acc_delete_finalize_32_h): New subroutine.
1716 (acc_delete_finalize_64_h): New subroutine.
1717 (acc_delete_finalize_array_h): New subroutine.
1718 * openacc.h (acc_copyout_finalize): Declare.
1719 (acc_copyout_finalize_async): Declare.
1720 (acc_delete_finalize): Declare.
1721 (acc_delete_finalize_async): Declare.
1722 * openacc_lib.h (acc_copyout_finalize): New interface.
1723 (acc_delete_finalize): New interface.
1724 * target.c (gomp_map_vars): Update dynamic_refcount.
1725 (gomp_remove_var): New function.
1726 (gomp_unmap_vars): Use it.
1727 (gomp_unload_image_from_device): Likewise.
1728 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1729 case to utilize OpenACC 2.5 data clause semantics.
1730 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1731 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1732 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1733 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1734 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1735 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1736 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1737 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1738 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1739 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1740 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1741 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1742 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1743 utilize OpenACC 2.5 data clause semantics.
1744 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1745 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1746 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1747 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1748 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1749 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1750 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1751 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1752 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1753
1754 2018-05-21 Janus Weil <janus@gcc.gnu.org>
1755
1756 PR fortran/85841
1757 PR testsuite/85865
1758 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1759 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1760 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1761 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1762 * testsuite/libgomp.fortran/task2.f90: Ditto.
1763 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1764 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1765 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1766 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1767 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1768 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1769 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1770 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1771 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1772
1773 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
1774
1775 PR c++/85782
1776 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1777
1778 2018-05-09 Tom de Vries <tom@codesourcery.com>
1779
1780 PR libgomp/82901
1781 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1782 to GOACC_enter_exit_data.
1783
1784 2018-05-09 Tom de Vries <tom@codesourcery.com>
1785
1786 PR libgomp/83792
1787 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1788 (async_synchronous_p): New function.
1789 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1790 async_valid_p.
1791 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1792 async_valid_stream_id_p.
1793 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1794 * oacc-parallel.c (GOACC_parallel_keyed): Same.
1795
1796 2018-05-07 Tom de Vries <tom@codesourcery.com>
1797
1798 PR testsuite/85677
1799 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1800 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1801
1802 2018-05-03 Tom de Vries <tom@codesourcery.com>
1803
1804 PR testsuite/85106
1805 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1806 extra_tool_flags if it contains an -foffload=-fdump-* flag.
1807 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1808 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1809
1810 2018-05-02 Tom de Vries <tom@codesourcery.com>
1811
1812 PR libgomp/85411
1813 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1814 GOMP_OPENACC_DIM ...
1815 * env.c (parse_gomp_openacc_dim): ... here. New function.
1816 (initialize_env): Call parse_gomp_openacc_dim.
1817 (goacc_default_dims): Define.
1818 * libgomp.h (goacc_default_dims): Declare.
1819 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1820 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1821 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1822 GOMP_PLUGIN_acc_default_dim.
1823 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1824 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1825
1826 2018-05-02 Tom de Vries <tom@codesourcery.com>
1827
1828 PR testsuite/83791
1829 * testsuite/libgomp.c++/udr-9.C: Update.
1830 * testsuite/libgomp.c++/atomic-16.C: Remove.
1831 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1832 * testsuite/libgomp.c++/loop-13.C: Remove.
1833 * testsuite/libgomp.c++/loop-14.C: Remove.
1834 * testsuite/libgomp.c++/loop-15.C: Remove.
1835 * testsuite/libgomp.c++/monotonic-1.C: Remove.
1836 * testsuite/libgomp.c++/monotonic-2.C: Remove.
1837 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1838 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1839 * testsuite/libgomp.c++/ordered-1.C: Remove.
1840 * testsuite/libgomp.c++/pr45784.C: Remove.
1841 * testsuite/libgomp.c++/pr64824.C: Remove.
1842 * testsuite/libgomp.c++/pr64868.C: Remove.
1843 * testsuite/libgomp.c++/pr66199-1.C: Remove.
1844 * testsuite/libgomp.c++/pr66199-2.C: Remove.
1845 * testsuite/libgomp.c++/pr66199-3.C: Remove.
1846 * testsuite/libgomp.c++/pr66199-4.C: Remove.
1847 * testsuite/libgomp.c++/pr66199-5.C: Remove.
1848 * testsuite/libgomp.c++/pr66199-6.C: Remove.
1849 * testsuite/libgomp.c++/pr66199-7.C: Remove.
1850 * testsuite/libgomp.c++/pr66199-8.C: Remove.
1851 * testsuite/libgomp.c++/pr66199-9.C: Remove.
1852 * testsuite/libgomp.c++/pr69389.C: Remove.
1853 * testsuite/libgomp.c++/simd10.C: Remove.
1854 * testsuite/libgomp.c++/simd11.C: Remove.
1855 * testsuite/libgomp.c++/simd12.C: Remove.
1856 * testsuite/libgomp.c++/simd13.C: Remove.
1857 * testsuite/libgomp.c++/target-1.C: Remove.
1858 * testsuite/libgomp.c++/target-3.C: Remove.
1859 * testsuite/libgomp.c++/target-4.C: Remove.
1860 * testsuite/libgomp.c++/target-5.C: Remove.
1861 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1862 * testsuite/libgomp.c++/taskloop-1.C: Remove.
1863 * testsuite/libgomp.c++/taskloop-2.C: Remove.
1864 * testsuite/libgomp.c++/taskloop-3.C: Remove.
1865 * testsuite/libgomp.c++/taskloop-4.C: Remove.
1866 * testsuite/libgomp.c++/udr-9.C: Remove.
1867 * testsuite/libgomp.c++/for-10.C: Remove.
1868 * testsuite/libgomp.c++/for-11.C: Remove.
1869 * testsuite/libgomp.c++/for-12.C: Remove.
1870 * testsuite/libgomp.c++/for-13.C: Remove.
1871 * testsuite/libgomp.c++/for-14.C: Remove.
1872 * testsuite/libgomp.c++/for-9.C: Remove.
1873 * testsuite/libgomp.c/atomic-18.c: Move ...
1874 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
1875 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
1876 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
1877 * testsuite/libgomp.c/loop-13.c: Move ...
1878 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
1879 * testsuite/libgomp.c/loop-14.c: Move ...
1880 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
1881 * testsuite/libgomp.c/loop-15.c: Remove.
1882 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
1883 * testsuite/libgomp.c/monotonic-1.c: Move ...
1884 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
1885 * testsuite/libgomp.c/monotonic-2.c: Move ...
1886 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
1887 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
1888 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
1889 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
1890 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
1891 * testsuite/libgomp.c/ordered-4.c: Move ...
1892 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
1893 * testsuite/libgomp.c/pr45784.c: Move ...
1894 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
1895 * testsuite/libgomp.c/pr64824.c: Move ...
1896 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
1897 * testsuite/libgomp.c/pr64868.c: Move ...
1898 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
1899 * testsuite/libgomp.c/pr66199-1.c: Move ...
1900 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
1901 * testsuite/libgomp.c/pr66199-2.c: Move ...
1902 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
1903 * testsuite/libgomp.c/pr66199-3.c: Move ...
1904 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
1905 * testsuite/libgomp.c/pr66199-4.c: Move ...
1906 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
1907 * testsuite/libgomp.c/pr66199-5.c: Move ...
1908 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
1909 * testsuite/libgomp.c/pr66199-6.c: Move ...
1910 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
1911 * testsuite/libgomp.c/pr66199-7.c: Move ...
1912 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
1913 * testsuite/libgomp.c/pr66199-8.c: Move ...
1914 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
1915 * testsuite/libgomp.c/pr66199-9.c: Move ...
1916 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
1917 * testsuite/libgomp.c/pr69389.c: Move ...
1918 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
1919 * testsuite/libgomp.c/simd-14.c: Move ...
1920 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
1921 * testsuite/libgomp.c/simd-15.c: Move ...
1922 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
1923 * testsuite/libgomp.c/simd-16.c: Move ...
1924 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
1925 * testsuite/libgomp.c/simd-17.c: Move ...
1926 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
1927 * testsuite/libgomp.c/target-1.c: Move ...
1928 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
1929 * testsuite/libgomp.c/target-10.c: Move ...
1930 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
1931 * testsuite/libgomp.c/target-13.c: Move ...
1932 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
1933 * testsuite/libgomp.c/target-2.c: Move ...
1934 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
1935 * testsuite/libgomp.c/taskgroup-1.c: Move ...
1936 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
1937 * testsuite/libgomp.c/taskloop-1.c: Move ...
1938 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
1939 * testsuite/libgomp.c/taskloop-2.c: Move ...
1940 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
1941 * testsuite/libgomp.c/taskloop-3.c: Move ...
1942 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
1943 * testsuite/libgomp.c/taskloop-4.c: Move ...
1944 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
1945 * testsuite/libgomp.c/udr-1.c: Move ...
1946 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
1947 * testsuite/libgomp.c/for-1.c: Move ...
1948 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
1949 * testsuite/libgomp.c/for-1.h: Move ...
1950 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
1951 * testsuite/libgomp.c/for-2.c: Move ...
1952 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
1953 * testsuite/libgomp.c/for-2.h: Move ...
1954 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
1955 * testsuite/libgomp.c/for-3.c: Move ...
1956 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
1957 * testsuite/libgomp.c/for-4.c: Move ...
1958 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
1959 * testsuite/libgomp.c/for-5.c: Move ...
1960 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
1961 * testsuite/libgomp.c/for-6.c: Move ...
1962 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
1963
1964 2018-05-02 Tom de Vries <tom@codesourcery.com>
1965
1966 PR libgomp/82428
1967 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
1968 __builtin_goacc_parlevel_{id,size}.
1969 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
1970 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
1971 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
1972 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
1973 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
1974 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
1975 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
1976 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
1977 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
1978 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
1979 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
1980 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
1981 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
1982 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
1983 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
1984 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
1985 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
1986 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
1987 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
1988 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
1989 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
1990 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
1991 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
1992
1993 2018-05-02 Tom de Vries <tom@codesourcery.com>
1994
1995 PR testsuite/85106
1996 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
1997
1998 2018-05-02 Tom de Vries <tom@codesourcery.com>
1999
2000 PR testsuite/85106
2001 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
2002
2003 2018-04-29 Julian Brown <julian@codesourcery.com>
2004 Tom de Vries <tom@codesourcery.com>
2005
2006 PR testsuite/85527
2007 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
2008 arbitrary order for iterations of atomic subtract check.
2009
2010 2018-04-28 Tom de Vries <tom@codesourcery.com>
2011
2012 PR testsuite/85527
2013 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
2014 atomic capture results obtained in parallel loop to an array, instead of
2015 to a scalar.
2016
2017 2018-04-26 Tom de Vries <tom@codesourcery.com>
2018
2019 PR libgomp/84020
2020 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
2021 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
2022 (process_GOMP_NVPTX_JIT): New function.
2023 (link_ptx): Use process_GOMP_NVPTX_JIT.
2024
2025 2018-04-26 Richard Biener <rguenther@suse.de>
2026 Tom de Vries <tom@codesourcery.com>
2027
2028 PR lto/85422
2029 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
2030
2031 2018-04-26 Tom de Vries <tom@codesourcery.com>
2032
2033 PR target/85519
2034 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2035 recursion depth from 25 to 23.
2036 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2037
2038 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
2039
2040 * configure: Regenerated.
2041
2042 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
2043 Tom de Vries <tom@codesourcery.com>
2044
2045 PR target/85445
2046 * testsuite/libgomp.oacc-c++/ref-1.C: New.
2047
2048 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
2049
2050 PR libgomp/85463
2051 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
2052 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2053 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2054 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2055 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2056 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2057
2058 PR libfortran/85166
2059 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
2060 abort".
2061 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2062
2063 2018-04-19 Jakub Jelinek <jakub@redhat.com>
2064
2065 * configure: Regenerated.
2066
2067 2018-04-18 David Malcolm <dmalcolm@redhat.com>
2068
2069 PR jit/85384
2070 * configure: Regenerate.
2071
2072 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
2073 Tom de Vries <tom@codesourcery.com>
2074
2075 PR middle-end/84955
2076 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2077 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2078
2079 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2080
2081 PR fortran/83064
2082 PR testsuite/85346
2083 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2084 test from gfortran.dg to here.
2085
2086 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2087
2088 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2089 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2090
2091 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2092
2093 PR middle-end/84955
2094 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2095 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2096
2097 2018-04-05 Tom de Vries <tom@codesourcery.com>
2098
2099 PR target/85204
2100 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2101
2102 2018-03-26 Tom de Vries <tom@codesourcery.com>
2103
2104 PR tree-optimization/85063
2105 * testsuite/libgomp.c/switch-conversion-2.c: New test.
2106 * testsuite/libgomp.c/switch-conversion.c: New test.
2107 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2108 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2109
2110 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2111
2112 PR fortran/84381
2113 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2114 call abort by STOP n.
2115 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2116 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2117 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2118 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2119 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2120 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2121 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2122 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2123 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2124 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2125 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2126 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2127 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2128 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2129 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2130 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2131 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2132 * testsuite/libgomp.fortran/associate1.f90: Likewise.
2133 * testsuite/libgomp.fortran/associate2.f90: Likewise.
2134 * testsuite/libgomp.fortran/associate3.f90: Likewise.
2135 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2136 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2137 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2138 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2139 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2140 * testsuite/libgomp.fortran/character1.f90: Likewise.
2141 * testsuite/libgomp.fortran/character2.f90: Likewise.
2142 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2143 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2144 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2145 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2146 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2147 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2148 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2149 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2150 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2151 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2152 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2153 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2154 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2155 * testsuite/libgomp.fortran/do1.f90: Likewise.
2156 * testsuite/libgomp.fortran/do2.f90: Likewise.
2157 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2158 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2159 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2160 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2161 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2162 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2163 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2164 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2165 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2166 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2167 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2168 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2169 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2170 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2171 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2172 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2173 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2174 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2175 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2176 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2177 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2178 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2179 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2180 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2181 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2182 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2183 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2184 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2185 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2186 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2187 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2188 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2189 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2190 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2191 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2192 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2193 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2194 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2195 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2196 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2197 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2198 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2199 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2200 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2201 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2202 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2203 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2204 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2205 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2206 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2207 * testsuite/libgomp.fortran/lib2.f: Likewise.
2208 * testsuite/libgomp.fortran/lib3.f: Likewise.
2209 * testsuite/libgomp.fortran/lib4.f90: Likewise.
2210 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2211 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2212 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2213 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2214 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2215 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2216 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2217 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2218 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2219 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2220 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2221 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2222 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2223 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2224 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2225 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2226 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2227 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2228 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2229 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2230 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2231 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2232 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2233 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2234 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2235 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2236 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2237 * testsuite/libgomp.fortran/pr25162.f: Likewise.
2238 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2239 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2240 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2241 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2242 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2243 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2244 * testsuite/libgomp.fortran/pr28390.f: Likewise.
2245 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2246 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
2247 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
2248 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
2249 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
2250 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
2251 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
2252 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
2253 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
2254 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
2255 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
2256 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
2257 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
2258 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
2259 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
2260 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
2261 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
2262 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
2263 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
2264 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
2265 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
2266 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
2267 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
2268 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
2269 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
2270 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2271 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
2272 * testsuite/libgomp.fortran/reference1.f90: Likewise.
2273 * testsuite/libgomp.fortran/reference2.f90: Likewise.
2274 * testsuite/libgomp.fortran/retval1.f90: Likewise.
2275 * testsuite/libgomp.fortran/retval2.f90: Likewise.
2276 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
2277 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
2278 * testsuite/libgomp.fortran/simd1.f90: Likewise.
2279 * testsuite/libgomp.fortran/simd2.f90: Likewise.
2280 * testsuite/libgomp.fortran/simd3.f90: Likewise.
2281 * testsuite/libgomp.fortran/simd4.f90: Likewise.
2282 * testsuite/libgomp.fortran/simd5.f90: Likewise.
2283 * testsuite/libgomp.fortran/simd6.f90: Likewise.
2284 * testsuite/libgomp.fortran/simd7.f90: Likewise.
2285 * testsuite/libgomp.fortran/stack.f90: Likewise.
2286 * testsuite/libgomp.fortran/strassen.f90: Likewise.
2287 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
2288 * testsuite/libgomp.fortran/tabs2.f: Likewise.
2289 * testsuite/libgomp.fortran/target1.f90: Likewise.
2290 * testsuite/libgomp.fortran/target2.f90: Likewise.
2291 * testsuite/libgomp.fortran/target3.f90: Likewise.
2292 * testsuite/libgomp.fortran/target4.f90: Likewise.
2293 * testsuite/libgomp.fortran/target5.f90: Likewise.
2294 * testsuite/libgomp.fortran/target6.f90: Likewise.
2295 * testsuite/libgomp.fortran/target7.f90: Likewise.
2296 * testsuite/libgomp.fortran/target8.f90: Likewise.
2297 * testsuite/libgomp.fortran/task1.f90: Likewise.
2298 * testsuite/libgomp.fortran/task2.f90: Likewise.
2299 * testsuite/libgomp.fortran/task3.f90: Likewise.
2300 * testsuite/libgomp.fortran/task4.f90: Likewise.
2301 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
2302 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
2303 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
2304 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
2305 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
2306 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2307 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2308 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2309 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
2310 * testsuite/libgomp.fortran/udr1.f90: Likewise.
2311 * testsuite/libgomp.fortran/udr10.f90: Likewise.
2312 * testsuite/libgomp.fortran/udr11.f90: Likewise.
2313 * testsuite/libgomp.fortran/udr12.f90: Likewise.
2314 * testsuite/libgomp.fortran/udr13.f90: Likewise.
2315 * testsuite/libgomp.fortran/udr14.f90: Likewise.
2316 * testsuite/libgomp.fortran/udr15.f90: Likewise.
2317 * testsuite/libgomp.fortran/udr2.f90: Likewise.
2318 * testsuite/libgomp.fortran/udr3.f90: Likewise.
2319 * testsuite/libgomp.fortran/udr4.f90: Likewise.
2320 * testsuite/libgomp.fortran/udr5.f90: Likewise.
2321 * testsuite/libgomp.fortran/udr6.f90: Likewise.
2322 * testsuite/libgomp.fortran/udr7.f90: Likewise.
2323 * testsuite/libgomp.fortran/udr8.f90: Likewise.
2324 * testsuite/libgomp.fortran/udr9.f90: Likewise.
2325 * testsuite/libgomp.fortran/vla1.f90: Likewise.
2326 * testsuite/libgomp.fortran/vla2.f90: Likewise.
2327 * testsuite/libgomp.fortran/vla3.f90: Likewise.
2328 * testsuite/libgomp.fortran/vla4.f90: Likewise.
2329 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2330 * testsuite/libgomp.fortran/vla6.f90: Likewise.
2331 * testsuite/libgomp.fortran/vla7.f90: Likewise.
2332 * testsuite/libgomp.fortran/vla8.f90: Likewise.
2333 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
2334 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
2335 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2336 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2337 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2338 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2339 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2340 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2341 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2342 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2343 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2344 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
2345 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2346 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
2347 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
2348 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2349 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2350 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2351 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2352 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2353 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2354 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2355 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2356 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
2357 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
2358 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2359 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2360 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2361 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2362 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2363 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2364 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2365 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2366 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2367 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2368 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2369 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2370 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2371 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2372 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2373 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2374 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2375 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2376 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2377 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2378 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2379 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2380 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2381 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2382 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2383 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2384 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2385 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2386 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2387 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2388 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2389 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2390 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2391 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2392 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2393 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2394 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2395 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2396 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2397 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2398 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2399 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2400 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2401 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2402 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2403 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2404 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2405 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2406 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2407 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2408 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2409 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2410 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2411 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2412 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2413 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2414 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2415 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2416 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2417 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2418 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2419 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2420 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2421 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2422 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2423 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2424 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2425 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2426 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2427
2428 2018-03-20 Richard Biener <rguenther@suse.de>
2429
2430 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2431 parallelizable loop.
2432
2433 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2434
2435 PR target/84148
2436 * configure: Regenerate.
2437
2438 2018-02-16 Jakub Jelinek <jakub@redhat.com>
2439
2440 PR fortran/84418
2441 * libgomp.fortran/pr84418-1.f90: New test.
2442 * libgomp.fortran/pr84418-2.f90: New test.
2443
2444 2018-02-14 Jakub Jelinek <jakub@redhat.com>
2445
2446 PR fortran/84313
2447 * testsuite/libgomp.fortran/threadprivate4.f90: Add
2448 -std=f2003 -fall-intrinsics into dg-additional-options.
2449
2450 2018-02-08 Martin Jambor <mjambor@suse.cz>
2451
2452 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2453 clonable.
2454
2455 2018-02-08 Martin Jambor <mjambor@suse.cz>
2456
2457 * testsuite/libgomp.hsa.c/staticvar.c: New test.
2458
2459 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2460
2461 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2462 [__cplusplus]: Declare extern "C".
2463
2464 2018-02-07 Tom de Vries <tom@codesourcery.com>
2465
2466 PR libgomp/84217
2467 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2468
2469 2018-01-29 Christoph Spiel <cspiel@freenet.de>
2470 Jakub Jelinek <jakub@redhat.com>
2471
2472 PR libgomp/84096
2473 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2474 instead of omp_lock_t.
2475
2476 2018-01-25 Tom de Vries <tom@codesourcery.com>
2477
2478 PR target/84028
2479 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2480
2481 2018-01-24 Tom de Vries <tom@codesourcery.com>
2482
2483 PR target/83589
2484 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2485
2486 2018-01-24 Tom de Vries <tom@codesourcery.com>
2487
2488 PR target/81352
2489 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2490
2491 2018-01-19 Tom de Vries <tom@codesourcery.com>
2492 Cesar Philippidis <cesar@codesourcery.com>
2493
2494 PR target/83920
2495 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2496 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2497
2498 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2499
2500 Update copyright years.
2501
2502 * libgomp.texi: Bump @copying's copyright year.
2503
2504 2017-12-30 Tom de Vries <tom@codesourcery.com>
2505
2506 PR libgomp/83046
2507 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2508 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2509
2510 2017-12-27 Tom de Vries <tom@codesourcery.com>
2511
2512 PR c++/83046
2513 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2514 (test_nonstatic): Fix return type to workaround PR83046.
2515
2516 2017-12-05 Jakub Jelinek <jakub@redhat.com>
2517
2518 PR testsuite/83281
2519 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2520 j suffix instead of i.
2521 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2522 Likewise.
2523
2524 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
2525
2526 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2527 call to acc_wait (1).
2528
2529 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2530
2531 PR fortran/81304
2532 * testsuite/libgomp.fortran/pr81304.f90: New test.
2533
2534 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2535
2536 PR fortran/81841
2537 * libgomp.fortran/pr81841.f90: New test.
2538
2539 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2540
2541 PR libgomp/83106
2542 * target.c (gomp_target_init): Compute lengths just once and
2543 use them in both malloc size and subsequent copying.
2544
2545 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2546
2547 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2548 * acinclude.m4: Add cet.m4.
2549 * configure: Regenerate.
2550 * Makefile.in: Likewise.
2551 * testsuite/Makefile.in: Likewise.
2552
2553 2017-11-15 Tom de Vries <tom@codesourcery.com>
2554
2555 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2556 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
2557 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2558 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
2559 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2560 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
2561
2562 2017-11-14 Tom de Vries <tom@codesourcery.com>
2563
2564 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2565 non-nvidia devices.
2566
2567 2017-11-07 Jakub Jelinek <jakub@redhat.com>
2568
2569 PR c++/82835
2570 * testsuite/libgomp.c++/pr82835.C: New test.
2571
2572 2017-11-06 Martin Liska <mliska@suse.cz>
2573
2574 * testsuite/libgomp.c++/loop-2.C: Return a value
2575 for functions with non-void return type, or change type to void,
2576 or add -Wno-return-type for test.
2577 * testsuite/libgomp.c++/loop-4.C: Likewise.
2578 * testsuite/libgomp.c++/parallel-1.C: Likewise.
2579 * testsuite/libgomp.c++/shared-1.C: Likewise.
2580 * testsuite/libgomp.c++/single-1.C: Likewise.
2581 * testsuite/libgomp.c++/single-2.C: Likewise.
2582
2583 2017-10-31 Tom de Vries <tom@codesourcery.com>
2584
2585 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2586 "do {} while (false)".
2587 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2588 after HSA_DEBUG call.
2589
2590 2017-10-28 Jakub Jelinek <jakub@redhat.com>
2591
2592 * target.c (struct gomp_coalesce_buf): New type.
2593 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2594 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2595 (gomp_copy_host2dev): Add CBUF argument, if copying into
2596 the cached ranges, memcpy into buffer instead of copying
2597 into device.
2598 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2599 Add CBUF argument, pass it through to other calls.
2600 (gomp_map_vars): Aggregate copies from host to device if small enough
2601 and with small enough gaps in between into memcpy into a buffer and
2602 fewer host to device copies from the buffer.
2603 (gomp_update): Adjust gomp_copy_host2dev caller.
2604
2605 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
2606
2607 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2608 run" directive.
2609 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2610 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2611 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2612 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2613
2614 2017-10-16 Tom de Vries <tom@codesourcery.com>
2615
2616 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2617 openacc_nvidia_accel_selected.
2618 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2619 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2620 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2621 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2622 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2623 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2624 openacc_nvidia_accel_selected. Skip for shared memory device.
2625 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2626 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2627
2628 2017-10-09 Martin Jambor <mjambor@suse.cz>
2629
2630 PR hsa/82416
2631 * testsuite/libgomp.hsa.c/pr82416.c: New test.
2632
2633 2017-10-07 Tom de Vries <tom@codesourcery.com>
2634
2635 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2636 Remove acc_device_nvidia references.
2637 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2638 Same.
2639
2640 2017-10-05 Tom de Vries <tom@codesourcery.com>
2641
2642 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2643 vector_length(32) clause from acc parallel directive.
2644 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2645
2646 2017-10-04 Tom de Vries <tom@codesourcery.com>
2647
2648 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2649 (main): Reduce sum of arr elements. Assert that hres is exactly
2650 representable in 32-bit floating point.
2651 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2652 (main): Reduce sum of arr elements. Assert that hres and hmres are
2653 exactly representable in 32-bit floating point.
2654 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2655
2656 2017-09-28 Tom de Vries <tom@codesourcery.com>
2657
2658 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2659 setting.
2660 * testsuite/libgomp.c++/pr69393.C: Same.
2661 * testsuite/libgomp.c++/taskloop-1.C: Same.
2662 * testsuite/libgomp.c++/taskloop-3.C: Same.
2663 * testsuite/libgomp.c++/taskloop-4.C: Same.
2664 * testsuite/libgomp.c/for-4.c: Same.
2665 * testsuite/libgomp.c/pr66199-3.c: Same.
2666 * testsuite/libgomp.c/pr66199-4.c: Same.
2667 * testsuite/libgomp.c/pr66199-6.c: Same.
2668 * testsuite/libgomp.c/taskloop-1.c: Same.
2669 * testsuite/libgomp.c/taskloop-3.c: Same.
2670 * testsuite/libgomp.c/taskloop-4.c: Same.
2671 * testsuite/libgomp.fortran/aligned1.f03: Same.
2672 * testsuite/libgomp.fortran/condinc1.f: Same.
2673 * testsuite/libgomp.fortran/condinc3.f90: Same.
2674 * testsuite/libgomp.fortran/crayptr1.f90: Same.
2675 * testsuite/libgomp.fortran/crayptr2.f90: Same.
2676 * testsuite/libgomp.fortran/crayptr3.f90: Same.
2677 * testsuite/libgomp.fortran/omp_cond1.f: Same.
2678 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2679 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2680 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2681 * testsuite/libgomp.fortran/recursion1.f90: Same.
2682 * testsuite/libgomp.fortran/target2.f90: Same.
2683 * testsuite/libgomp.fortran/target5.f90: Same.
2684 * testsuite/libgomp.fortran/task3.f90: Same.
2685
2686 2017-09-28 Tom de Vries <tom@codesourcery.com>
2687
2688 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2689 vector_length(32) clause from acc parallel directive.
2690 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2691
2692 2017-09-27 Tom de Vries <tom@codesourcery.com>
2693
2694 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2695 Remove acc_device_nvidia references.
2696
2697 2017-09-16 Tom de Vries <tom@codesourcery.com>
2698
2699 PR c/81875
2700 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2701
2702 2017-09-14 Tom de Vries <tom@codesourcery.com>
2703
2704 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2705 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2706 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2707 * testsuite/libgomp.c/c.exp: Include test-cases from
2708 libgomp.c-c++-common.
2709 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
2710 files.
2711
2712 2017-09-14 Jakub Jelinek <jakub@redhat.com>
2713
2714 PR c++/81314
2715 * testsuite/libgomp.c++/pr81314.C: New test.
2716
2717 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
2718
2719 * libgomp.texi (Top): www.openacc.org now uses https.
2720 (Enabling OpenACC): Ditto.
2721 (acc_get_num_devices): Ditto.
2722 (acc_set_device_type): Ditto.
2723 (acc_get_device_type): Ditto.
2724 (acc_set_device_num): Ditto.
2725 (acc_get_device_num): Ditto.
2726 (acc_async_test): Ditto.
2727 (acc_async_test_all): Ditto.
2728 (acc_wait): Ditto.
2729 (acc_wait_all): Ditto.
2730 (acc_wait_all_async): Ditto.
2731 (acc_wait_async): Ditto.
2732 (acc_init): Ditto.
2733 (acc_shutdown): Ditto.
2734 (acc_on_device): Ditto.
2735 (acc_malloc): Ditto.
2736 (acc_free): Ditto.
2737 (acc_copyin): Ditto.
2738 (acc_present_or_copyin): Ditto.
2739 (acc_create): Ditto.
2740 (acc_present_or_create): Ditto.
2741 (acc_copyout): Ditto.
2742 (acc_delete): Ditto.
2743 (acc_update_device): Ditto.
2744 (acc_update_self): Ditto.
2745 (acc_map_data): Ditto.
2746 (acc_unmap_data): Ditto.
2747 (acc_deviceptr): Ditto.
2748 (acc_hostptr): Ditto.
2749 (acc_is_present): Ditto.
2750 (acc_memcpy_to_device): Ditto.
2751 (acc_memcpy_from_device): Ditto.
2752 (acc_get_current_cuda_device): Ditto.
2753 (acc_get_current_cuda_context): Ditto.
2754 (acc_get_cuda_stream): Ditto.
2755 (acc_set_cuda_stream): Ditto.
2756 (ACC_DEVICE_TYPE): Ditto.
2757 (ACC_DEVICE_NUM): Ditto.
2758 (OpenACC Library Interoperability): Ditto.
2759
2760 2017-08-09 Jakub Jelinek <jakub@redhat.com>
2761
2762 PR c/81687
2763 * testsuite/libgomp.c/pr81687-1.c: New test.
2764 * testsuite/libgomp.c/pr81687-2.c: New test.
2765
2766 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2767
2768 PR c/69389
2769 * testsuite/libgomp.c/pr69389.c: New test.
2770 * testsuite/libgomp.c++/pr69389.C: New test.
2771
2772 2017-08-07 Tom de Vries <tom@codesourcery.com>
2773
2774 PR middle-end/78266
2775 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2776 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2777
2778 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2779
2780 PR c/45784
2781 * testsuite/libgomp.c/pr45784.c: New test.
2782 * testsuite/libgomp.c++/pr45784.C: New test.
2783
2784 2017-07-19 Tom de Vries <tom@codesourcery.com>
2785
2786 * testsuite/libgomp.oacc-c/vec.c: New test.
2787
2788 2017-07-03 Tom de Vries <tom@codesourcery.com>
2789
2790 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2791
2792 2017-06-27 Tom de Vries <tom@codesourcery.com>
2793
2794 * plugin/plugin-nvptx.c (notify_var): New function.
2795 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2796
2797 2017-06-27 Tom de Vries <tom@codesourcery.com>
2798
2799 * env.c (parse_unsigned_long_1): Factor out of ...
2800 (parse_unsigned_long): ... here.
2801 (parse_int_1): Factor out of ...
2802 (parse_int): ... here.
2803 (parse_int_secure): New function.
2804 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2805 * secure_getenv.h: Factor out of ...
2806 * plugin/plugin-hsa.c: ... here.
2807 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2808
2809 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2810
2811 PR c++/81130
2812 * testsuite/libgomp.c++/pr81130.C: New test.
2813
2814 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2815
2816 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2817 default args.
2818 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2819 dg-xfail-run-if default args.
2820
2821 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2822
2823 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2824 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2825
2826 2017-05-30 Jakub Jelinek <jakub@redhat.com>
2827
2828 PR libgomp/80822
2829 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2830 (gomp_affinity_init_level): Use it. Always analyze the core and thread
2831 sibling lists, depending on level just pick up what CPUs to put
2832 together into a place vs. whether add multiple ordered places.
2833
2834 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
2835
2836 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2837 * libgomp.map (OACC_2.0.1): Add these.
2838 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2839 for "acc_wait", and "acc_wait_all", respectively.
2840 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2841 for "acc_wait", and "acc_wait_all", respectively.
2842 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2843 * libgomp.texi (acc_wait, acc_wait_all): Update.
2844 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2845 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2846 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2847
2848 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2849 acc_present_or_copyin and acc_present_or_create procedures,
2850 respectively.
2851 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2852 generally different variants of OpenACC Runtime Library functions.
2853 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2854
2855 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2856 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2857
2858 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2859 of preprocessor definitions.
2860 * libgomp.h (strong_alias): Guard by "#ifdef
2861 HAVE_ATTRIBUTE_ALIAS".
2862 * oacc-mem.c: Provide "acc_pcreate" as alias for
2863 "acc_present_or_create", and "acc_pcopyin" as alias for
2864 "acc_present_or_copyin".
2865 * libgomp.map: New version "OACC_2.0.1".
2866 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2867 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2868 its content into...
2869 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2870 Extend testing.
2871
2872 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2873 when disabling nvptx offloading.
2874
2875 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
2876
2877 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
2878 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2879 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2880
2881 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
2882 * testsuite/lib/libgomp.exp
2883 (check_effective_target_openacc_nvidia_accel_configured): New
2884 proc.
2885 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
2886 (check_effective_target_c++): New procs.
2887 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
2888 (check_effective_target_c++): Likewise.
2889
2890 2017-05-22 Jakub Jelinek <jakub@redhat.com>
2891
2892 PR middle-end/80809
2893 * testsuite/libgomp.c/pr80809-2.c: New test.
2894 * testsuite/libgomp.c/pr80809-3.c: New test.
2895
2896 PR middle-end/80809
2897 * testsuite/libgomp.c/pr80809-1.c: New test.
2898
2899 PR middle-end/80853
2900 * testsuite/libgomp.c/pr80853.c: New test.
2901
2902 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
2903
2904 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
2905 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
2906 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2907 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2908 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2909
2910 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
2911 Debug output for failure.
2912
2913 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2914
2915 * testsuite/lib/libgomp.exp: Load scanlang.exp.
2916
2917 2017-04-27 Jakub Jelinek <jakub@redhat.com>
2918
2919 PR bootstrap/80531
2920 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
2921 bootstrap compare failures.
2922
2923 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
2924
2925 * testsuite/libgomp.c/target-36.c: New testcase.
2926
2927 2017-04-13 Jakub Jelinek <jakub@redhat.com>
2928
2929 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
2930 instead of char.
2931
2932 2017-04-11 Jakub Jelinek <jakub@redhat.com>
2933
2934 PR libgomp/80394
2935 * testsuite/libgomp.c/pr80394.c: New test.
2936
2937 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2938
2939 PR libgomp/79876
2940 * config/posix/thread-stacksize.h: New file.
2941 * config/darwin/thread-stacksize.h: New file.
2942 * config/nvptx/thread-stacksize.h: New file.
2943 * env.c: Include thread-stacksize.h.
2944 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
2945 instead of 0. Call pthread_attr_setstacksize even if
2946 GOMP_DEFAULT_STACKSIZE is non-zero.
2947
2948 2017-03-30 Jakub Jelinek <jakub@redhat.com>
2949
2950 * env.c (initialize_env): Initialize stacksize to 0.
2951
2952 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
2953
2954 PR c++/80029
2955 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
2956
2957 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2958
2959 PR c/79940
2960 * testsuite/libgomp.c/pr79940.c: New test.
2961
2962 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2963
2964 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
2965 targets.
2966 Add __float128 options.
2967
2968 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
2969
2970 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
2971 hppa*-*-* dg-skip-if directive.
2972
2973 2017-02-09 Jakub Jelinek <jakub@redhat.com>
2974
2975 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
2976 dg-skip-if directive into a comment.
2977
2978 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
2979 Chung-Lin Tang <cltang@codesourcery.com>
2980
2981 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
2982 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
2983 add additional case.
2984 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
2985 "openacc_nvidia_accel_selected".
2986 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
2987 Add num_workers(8) clause.
2988
2989 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
2990
2991 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
2992 hppa*-*-*.
2993 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
2994 include complex.h on hppa*-*-hpux*.
2995 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
2996
2997 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
2998
2999 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
3000
3001 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
3002 GOMP_OFFLOAD_openacc_exec. Adjust all users.
3003 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
3004 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
3005 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
3006 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
3007 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
3008 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
3009 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
3010 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
3011
3012 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
3013
3014 * libgomp-plugin.h: #include <stdbool.h>.
3015 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
3016 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
3017 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
3018 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
3019 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
3020 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
3021 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
3022 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
3023 (GOMP_OFFLOAD_openacc_register_async_cleanup)
3024 (GOMP_OFFLOAD_openacc_async_test)
3025 (GOMP_OFFLOAD_openacc_async_test_all)
3026 (GOMP_OFFLOAD_openacc_async_wait)
3027 (GOMP_OFFLOAD_openacc_async_wait_async)
3028 (GOMP_OFFLOAD_openacc_async_wait_all)
3029 (GOMP_OFFLOAD_openacc_async_wait_all_async)
3030 (GOMP_OFFLOAD_openacc_async_set_async)
3031 (GOMP_OFFLOAD_openacc_create_thread_data)
3032 (GOMP_OFFLOAD_openacc_destroy_thread_data)
3033 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
3034 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
3035 (GOMP_OFFLOAD_openacc_get_cuda_stream)
3036 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
3037 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
3038 these.
3039 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
3040 (GOMP_OFFLOAD_unload_image): Fix argument types.
3041
3042 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3043
3044 * testsuite/lib/libgomp.exp
3045 (check_effective_target_hsa_offloading_selected_nocache): Fix up
3046 check_compile invocation. Fix up removal of executable. Drop
3047 bogus "2>&1" argument.
3048
3049 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
3050 directive.
3051
3052 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
3053 Martin Jambor <mjambor@suse.cz>
3054
3055 * plugin/hsa.h: Moved to top level include.
3056 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
3057
3058 2017-01-21 Jakub Jelinek <jakub@redhat.com>
3059
3060 PR other/79046
3061 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
3062 of cat to get version from BASE-VER file.
3063 * testsuite/Makefile.in: Regenerated.
3064
3065 2017-01-19 Jakub Jelinek <jakub@redhat.com>
3066
3067 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3068 for _WIN64.
3069
3070 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3071
3072 * plugin/hsa.h: Add GCC runtime library exception.
3073 * plugin/hsa_ext_finalize.h: Likewise.
3074
3075 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3076 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
3077 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3078 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3079 plugin/include/cuda as include dir and -ldl instead of -lcuda as
3080 library to link ptx plugin against.
3081 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3082 (CUDA_CALLS): Define.
3083 (cuda_lib, cuda_lib_inited): New variables.
3084 (init_cuda_lib): New function.
3085 (CUDA_CALL_PREFIX): Define.
3086 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3087 (CUDA_CALL): Use FN instead of (FN).
3088 (CUDA_CALL_NOCHECK): Define.
3089 (cuda_error, fini_streams_for_device, select_stream_for_async,
3090 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3091 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3092 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3093 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3094 CUDA_CALL_NOCHECK.
3095 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
3096 CUDA_CALL_NOCHECK.
3097 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3098 Use CUDA_CALL_NOCHECK.
3099 * plugin/cuda/cuda.h: New file.
3100 * config.h.in: Regenerated.
3101 * configure: Regenerated.
3102
3103 PR other/79046
3104 * configure.ac: Add GCC_BASE_VER.
3105 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3106 get version from BASE-VER file.
3107 * testsuite/Makefile.in: Regenerated.
3108 * configure: Regenerated.
3109 * Makefile.in: Regenerated.
3110
3111 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3112
3113 PR libgomp/60670
3114 * Makefile.am: Make fincludedir multilib-aware.
3115 * Makefile.in: Regenerate.
3116
3117 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3118
3119 Update copyright years.
3120
3121 * libgomp.texi: Bump @copying's copyright year.
3122
3123 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3124
3125 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3126 pthread_spinlock_t instead of gomp_mutex_t lock.
3127 (gomp_get_thread_pool): Likewise.
3128 (gomp_release_thread_pool): Likewise.
3129 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3130 Likewise.
3131
3132 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3133
3134 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3135 thread pool in case nthreads == 1.
3136
3137 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3138
3139 * config/nvptx/env.c: Delete.
3140 * icv.c: Move definitions of ICV variables back ...
3141 * env.c: ...here. Do not compile environment-related functionality if
3142 LIBGOMP_OFFLOADED_ONLY is set.
3143
3144 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3145
3146 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3147 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3148 * configure: Regenerate.
3149 * config.h.in: Likewise.
3150
3151 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3152
3153 * Makefile.in: Regenerate with automake-1.11.6.
3154 * aclocal.m4: Likewise.
3155 * configure: Likewise.
3156 * testsuite/Makefile.in: Likewise.
3157
3158 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
3159
3160 * config/nvptx/critical.c: Delete to use generic implementation.
3161
3162 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3163
3164 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3165 ../../affinity.c as fallback.
3166 * config/nvptx/affinity.c: Delete to use fallback implementation.
3167
3168 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
3169 Jakub Jelinek <jakub@redhat.com>
3170 Dmitry Melnik <dm@ispras.ru>
3171
3172 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3173 * Makefile.in. Regenerate.
3174 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3175 (LIBGOMP_USE_PTHREADS): ...here; new define.
3176 * configure: Regenerate.
3177 * config.h.in: Likewise.
3178 * config/posix/affinity.c: Move to...
3179 * affinity.c: ...here (new file). Guard use of Pthreads-specific
3180 interface by LIBGOMP_USE_PTHREADS.
3181 * critical.c: Split out GOMP_atomic_{start,end} into...
3182 * atomic.c: ...here (new file).
3183 * env.c: Split out ICV definitions into...
3184 * icv.c: ...here (new file) and...
3185 * icv-device.c: ...here. New file.
3186 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3187 (gomp_destroy_lock_30): Ditto.
3188 (gomp_set_lock_30): Ditto.
3189 (gomp_unset_lock_30): Ditto.
3190 (gomp_test_lock_30): Ditto.
3191 (gomp_init_nest_lock_30): Ditto.
3192 (gomp_destroy_nest_lock_30): Ditto.
3193 (gomp_set_nest_lock_30): Ditto.
3194 (gomp_unset_nest_lock_30): Ditto.
3195 (gomp_test_nest_lock_30): Ditto.
3196 * lock.c: New.
3197 * config/nvptx/lock.c: New.
3198 * config/nvptx/bar.c: New.
3199 * config/nvptx/bar.h: New.
3200 * config/nvptx/doacross.h: New.
3201 * config/nvptx/error.c: New.
3202 * config/nvptx/icv-device.c: New.
3203 * config/nvptx/mutex.h: New.
3204 * config/nvptx/pool.h: New.
3205 * config/nvptx/proc.c: New.
3206 * config/nvptx/ptrlock.h: New.
3207 * config/nvptx/sem.h: New.
3208 * config/nvptx/simple-bar.h: New.
3209 * config/nvptx/target.c: New.
3210 * config/nvptx/task.c: New.
3211 * config/nvptx/team.c: New.
3212 * config/nvptx/time.c: New.
3213 * config/posix/simple-bar.h: New.
3214 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
3215 (gomp_num_teams_var): Declare.
3216 (struct gomp_thread_pool): Change threads_dock member to
3217 gomp_simple_barrier_t.
3218 [__nvptx__] (gomp_thread): New implementation.
3219 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3220 (gomp_thread_destructor): Ditto.
3221 (gomp_init_thread_affinity): Ditto.
3222 * team.c: Guard uses of Pthreads-specific interfaces by
3223 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
3224 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3225 * config/nvptx/alloc.c: Delete.
3226 * config/nvptx/barrier.c: Ditto.
3227 * config/nvptx/fortran.c: Ditto.
3228 * config/nvptx/iter.c: Ditto.
3229 * config/nvptx/iter_ull.c: Ditto.
3230 * config/nvptx/loop.c: Ditto.
3231 * config/nvptx/loop_ull.c: Ditto.
3232 * config/nvptx/ordered.c: Ditto.
3233 * config/nvptx/parallel.c: Ditto.
3234 * config/nvptx/priority_queue.c: Ditto.
3235 * config/nvptx/sections.c: Ditto.
3236 * config/nvptx/single.c: Ditto.
3237 * config/nvptx/splay-tree.c: Ditto.
3238 * config/nvptx/work.c: Ditto.
3239 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3240 -foffload=-lgfortran in addition to -lgfortran.
3241 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3242 * plugin/plugin-nvptx.c: Include <limits.h>.
3243 (struct targ_fn_descriptor): Add new fields.
3244 (struct ptx_device): Ditto. Set them...
3245 (nvptx_open_device): ...here.
3246 (nvptx_adjust_launch_bounds): New.
3247 (nvptx_host2dev): Allow NULL 'nvthd'.
3248 (nvptx_dev2host): Ditto.
3249 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
3250 (link_ptx): Adjust log sizes.
3251 (nvptx_host2dev): Allow NULL 'nvthd'.
3252 (nvptx_dev2host): Ditto.
3253 (nvptx_set_clocktick): New. Use it...
3254 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
3255 fields.
3256 (GOMP_OFFLOAD_dev2dev): New.
3257 (nvptx_adjust_launch_bounds): New.
3258 (nvptx_stacks_size): New.
3259 (nvptx_stacks_alloc): New.
3260 (nvptx_stacks_free): New.
3261 (GOMP_OFFLOAD_run): New.
3262 (GOMP_OFFLOAD_async_run): New (stub).
3263
3264 2016-11-23 Martin Jambor <mjambor@suse.cz>
3265
3266 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
3267 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
3268 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3269
3270 2016-11-23 Martin Liska <mliska@suse.cz>
3271 Martin Jambor <mjambor@suse.cz>
3272
3273 * plugin/hsa.h: New file.
3274 * plugin/hsa_ext_finalize.h: New file.
3275 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
3276 header file unistd.h, and functions secure_getenv, __secure_getenv,
3277 getuid, geteuid, getgid and getegid.
3278 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
3279 -D_GNU_SOURCE.
3280 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
3281 Handle various cases of secure_getenv presence, add an implementation
3282 when we can test effective UID and GID.
3283 (struct hsa_runtime_fn_info): New structure.
3284 (hsa_runtime_fn_info hsa_fns): New variable.
3285 (hsa_runtime_lib): Likewise.
3286 (support_cpu_devices): Likewise.
3287 (init_enviroment_variables): Load newly introduced ENV
3288 variables.
3289 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
3290 (hsa_fatal): Likewise.
3291 (DLSYM_FN): New macro.
3292 (init_hsa_runtime_functions): New function.
3293 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
3294 structure. Depending on environment, also allow CPU devices.
3295 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
3296 (get_kernarg_memory_region): Likewise.
3297 (GOMP_OFFLOAD_init_device): Likewise.
3298 (destroy_hsa_program): Likewise.
3299 (init_basic_kernel_info): New function.
3300 (GOMP_OFFLOAD_load_image): Use it.
3301 (create_and_finalize_hsa_program): Call hsa run-time functions via
3302 hsa_fns structure.
3303 (create_single_kernel_dispatch): Likewise.
3304 (release_kernel_dispatch): Likewise.
3305 (init_single_kernel): Likewise.
3306 (parse_target_attributes): Allow up multiple HSA grid dimensions.
3307 (get_group_size): New function.
3308 (run_kernel): Likewise.
3309 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
3310 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
3311 structure.
3312 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
3313 * testsuite/libgomp-test-support.exp.in: Likewise.
3314 * Makefile.in: Regenerated.
3315 * aclocal.m4: Likewise.
3316 * config.h.in: Likewise.
3317 * configure: Likewise.
3318 * testsuite/Makefile.in: Likewise.
3319
3320 2016-11-15 Martin Jambor <mjambor@suse.cz>
3321 Alexander Monakov <amonakov@ispras.ru>
3322
3323 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
3324 mapping clauses to target constructs.
3325 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
3326
3327 2016-11-15 Matthias Klose <doko@ubuntu.com>
3328
3329 * configure: Regenerate.
3330
3331 2016-11-10 Jakub Jelinek <jakub@redhat.com>
3332
3333 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
3334 * omp_lib.h.in (openmp_version): Likewise.
3335 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
3336 of 201307.
3337 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3338
3339 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
3340 (fib_wrapper): Add map(from: x) clause.
3341 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
3342 (e_53_2): Likewise.
3343 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
3344 (accum): Add map(tmp) clause.
3345 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
3346 (accum): Add map(tofrom: tmp) clause.
3347 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
3348 (gramSchmidt): Likewise.
3349 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
3350 map(tofrom: sum) clause.
3351 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
3352 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
3353 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
3354 only allowed on the loop iterator.
3355 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
3356 * testsuite/libgomp.fortran/taskloop2.f90: New test.
3357 * testsuite/libgomp.fortran/taskloop4.f90: New test.
3358 * testsuite/libgomp.fortran/doacross1.f90: New test.
3359 * testsuite/libgomp.fortran/doacross3.f90: New test.
3360 * testsuite/libgomp.fortran/taskloop1.f90: New test.
3361 * testsuite/libgomp.fortran/taskloop3.f90: New test.
3362 * testsuite/libgomp.fortran/doacross2.f90: New test.
3363 * testsuite/libgomp.c/doacross-1.c (main): Add missing
3364 #pragma omp atomic read.
3365 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3366 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
3367
3368 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3369 Nathan Sidwell <nathan@acm.org>
3370
3371 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3372 to determine default geometry.
3373 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3374 dimension.
3375
3376 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3377
3378 * hashtab.h: Use standard GPLv3 with runtime exception
3379 boilerplate.
3380
3381 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3382
3383 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3384 size when allocating new thread.
3385
3386 2016-09-14 Marek Polacek <polacek@redhat.com>
3387
3388 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3389
3390 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3391
3392 PR fortran/71014
3393 * testsuite/libgomp.fortran/pr71014.f90: New test.
3394
3395 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3396
3397 PR middle-end/70895
3398 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3399 firstprivate clauses.
3400 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3401 copy clauses.
3402 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3403 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3404 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3405 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3406 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3407 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3408 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3409 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3410 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3411 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3412 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3413 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3414
3415 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
3416
3417 PR fortran/70598
3418 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3419
3420 2016-08-08 Jakub Jelinek <jakub@redhat.com>
3421
3422 PR c++/58706
3423 * testsuite/libgomp.c++/pr58706.C: New test.
3424
3425 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
3426
3427 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3428 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3429 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3430 Likewise.
3431 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3432 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3433 Likewise.
3434 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3435
3436 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3437 test, and don't hardcode -O0.
3438
3439 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
3440
3441 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3442
3443 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
3444
3445 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3446 test.
3447
3448 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
3449
3450 PR middle-end/71734
3451 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3452 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3453
3454 2016-07-01 Jakub Jelinek <jakub@redhat.com>
3455
3456 PR fortran/71717
3457 * testsuite/libgomp.fortran/associate3.f90: New test.
3458
3459 2016-06-17 Jakub Jelinek <jakub@redhat.com>
3460
3461 * testsuite/libgomp.c++/target-21.C: New test.
3462
3463 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3464
3465 * testsuite/libgomp.c++/target-20.C: New test.
3466
3467 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3468 Cesar Philippidis <cesar@codesourcery.com>
3469
3470 PR middle-end/71373
3471 * libgomp.oacc-c/nested-function-1.c: New file.
3472 * libgomp.oacc-c/nested-function-2.c: Likewise.
3473 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3474 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3475 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3476
3477 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3478
3479 PR c/71381
3480 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3481 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3482 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3483
3484 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
3485
3486 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3487 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3488
3489 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
3490
3491 PR c/70688
3492 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3493
3494 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3495
3496 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3497 instead of invalid schedule(static, 0).
3498 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3499
3500 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3501
3502 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3503 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3504 parameter, use to set async stream around call to gomp_unmap_vars,
3505 call gomp_unmap_vars() with 'do_copyfrom' set to true.
3506 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3507 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3508 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3509 (event_add): Add int parameter, initialize 'val' field when
3510 adding new ptx_event struct.
3511 (nvptx_evec): Adjust event_add() call arguments.
3512 (nvptx_host2dev): Likewise.
3513 (nvptx_dev2host): Likewise.
3514 (nvptx_wait_async): Likewise.
3515 (nvptx_wait_all_async): Likewise.
3516 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3517 pass to event_add() call.
3518 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3519 parameter.
3520 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3521 call openacc.register_async_cleanup_func() hook.
3522 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3523 * target.c (gomp_copy_from_async): Delete function.
3524 (gomp_map_vars): Remove async_refcount.
3525 (gomp_unmap_vars): Likewise.
3526 (gomp_load_image_to_device): Likewise.
3527 (omp_target_associate_ptr): Likewise.
3528 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3529 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3530 (gomp_copy_from_async): Remove.
3531
3532 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3533
3534 * target.c (gomp_device_copy): New function.
3535 (gomp_copy_host2dev): Likewise.
3536 (gomp_copy_dev2host): Likewise.
3537 (gomp_free_device_memory): Likewise.
3538 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3539 (gomp_map_pointer): Likewise.
3540 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3541 NULL value from alloc_func plugin hook.
3542 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3543 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3544 (gomp_unmap_vars): Likewise.
3545 (gomp_update): Adjust to call gomp_copy_dev2host and
3546 gomp_copy_host2dev functions.
3547 (gomp_unload_image_from_device): Handle false value from
3548 unload_image_func plugin hook.
3549 (gomp_init_device): Handle false value from init_device_func
3550 plugin hook.
3551 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3552 (omp_target_free): Adjust to call gomp_free_device_memory.
3553 (omp_target_memcpy): Handle return values from host2dev_func,
3554 dev2host_func, and dev2dev_func plugin hooks.
3555 (omp_target_memcpy_rect_worker): Likewise.
3556 (gomp_target_fini): Handle false value from fini_device_func
3557 plugin hook.
3558 * libgomp.h (struct gomp_device_descr): Adjust return type of
3559 init_device_func, fini_device_func, unload_image_func, free_func,
3560 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3561 * oacc-init.c (acc_shutdown_1): Handle false value from
3562 fini_device_func plugin hook.
3563 * oacc-host.c (host_init_device): Change return type to bool.
3564 (host_fini_device): Likewise.
3565 (host_unload_image): Likewise.
3566 (host_free): Likewise.
3567 (host_dev2host): Likewise.
3568 (host_host2dev): Likewise.
3569 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3570 (acc_memcpy_to_device): Likewise.
3571 (acc_memcpy_from_device): Likewise.
3572 (delete_copyout): Add libfnname parameter, handle free_func
3573 hook fatal error case.
3574 (acc_delete): Adjust delete_copyout call.
3575 (acc_copyout): Likewise.
3576 (update_dev_host): Move gomp_mutex_unlock to after
3577 host2dev/dev2host hook calls.
3578
3579 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3580 to 'hsa_error_msg', for clarity.
3581 (hsa_fatal): Likewise.
3582 (hsa_error): New function.
3583 (init_hsa_context): Change return type to bool, adjust to return
3584 false on error.
3585 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3586 return value.
3587 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3588 return false on error.
3589 (get_agent_info): Adjust to return NULL on error.
3590 (destroy_hsa_program): Change return type to bool, adjust to
3591 return false on error.
3592 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3593 (destroy_module): Change return type to bool, adjust to
3594 return false on error.
3595 (GOMP_OFFLOAD_unload_image): Likewise.
3596 (GOMP_OFFLOAD_fini_device): Likewise.
3597 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3598 (GOMP_OFFLOAD_free): Change to return false when called.
3599 (GOMP_OFFLOAD_dev2host): Likewise.
3600 (GOMP_OFFLOAD_host2dev): Likewise.
3601 (GOMP_OFFLOAD_dev2dev): Likewise.
3602
3603 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3604 (CUDA_CALL): Likewise.
3605 (CUDA_CALL_ASSERT): Likewise.
3606 (map_init): Change return type to bool, use CUDA_CALL* macros.
3607 (map_fini): Likewise.
3608 (init_streams_for_device): Change return type to bool, adjust
3609 call to map_init.
3610 (fini_streams_for_device): Change return type to bool, adjust
3611 call to map_fini.
3612 (select_stream_for_async): Release stream_lock before calls to
3613 GOMP_PLUGIN_fatal, adjust call to map_init.
3614 (nvptx_init): Use CUDA_CALL* macros.
3615 (nvptx_attach_host_thread_to_device): Change return type to bool,
3616 use CUDA_CALL* macros.
3617 (nvptx_open_device): Use CUDA_CALL* macros.
3618 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3619 macros.
3620 (nvptx_get_num_devices): Use CUDA_CALL* macros.
3621 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3622 (nvptx_exec): Use CUDA_CALL* macros.
3623 (nvptx_alloc): Use CUDA_CALL* macros.
3624 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3625 (nvptx_host2dev): Likewise.
3626 (nvptx_dev2host): Likewise.
3627 (nvptx_wait): Use CUDA_CALL* macros.
3628 (nvptx_wait_async): Likewise.
3629 (nvptx_wait_all): Likewise.
3630 (nvptx_wait_all_async): Likewise.
3631 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3632 use CUDA_CALL* macros, adjust call to map_fini.
3633 (GOMP_OFFLOAD_init_device): Change return type to bool,
3634 adjust code accordingly.
3635 (GOMP_OFFLOAD_fini_device): Likewise.
3636 (GOMP_OFFLOAD_load_image): Adjust calls to
3637 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3638 use CUDA_CALL* macros.
3639 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3640 return code.
3641 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3642 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3643 handle error return.
3644 (GOMP_OFFLOAD_dev2host): Likewise.
3645 (GOMP_OFFLOAD_host2dev): Likewise.
3646 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3647 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3648
3649 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3650
3651 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3652 (acc_free): Likewise.
3653 (acc_memcpy_to_device): Likewise.
3654 (acc_memcpy_from_device): Likewise.
3655 (acc_deviceptr): Likewise.
3656 (acc_hostptr): Likewise.
3657 (acc_is_present): Likewise.
3658 (acc_map_data): Likewise.
3659 (acc_unmap_data): Likewise.
3660 (present_create_copy): Likewise.
3661 (delete_copyout): Likewise.
3662 (update_dev_host): Likewise.
3663 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3664 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3665 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3666 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3667 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3668 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3669 it only runs on nvptx targets.
3670 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3671 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3672 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3673 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3674 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3675 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3676 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3677 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3678 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3679 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3680 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3681 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3682 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3683 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3684 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3685 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3686 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3687 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3688 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3689 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3690 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3691 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3692 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3693
3694 2016-05-23 Martin Jambor <mjambor@suse.cz>
3695
3696 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3697
3698 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
3699
3700 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3701 to gomp_init_targets_once.
3702 (acc_set_device_type): Remove !cached_base_dev condition on call to
3703 gomp_init_targets_once, move call to before acc_device_lock acquire,
3704 to avoid deadlock.
3705 (acc_get_device_num): Remove !cached_base_dev condition on call to
3706 gomp_init_targets_once.
3707 (acc_set_device_num): Likewise.
3708
3709 2016-05-16 Martin Jambor <mjambor@suse.cz>
3710
3711 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3712
3713 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3714
3715 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3716 expected partitioning.
3717
3718 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3719
3720 PR middle-end/70626
3721 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3722 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3723 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3724
3725 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
3726
3727 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3728 non-fatal.
3729
3730 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3731
3732 PR middle-end/70680
3733 * testsuite/libgomp.c/pr70680-1.c: New test.
3734 * testsuite/libgomp.c/pr70680-2.c: New test.
3735
3736 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3737
3738 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3739 pass parameter variables to subroutines.
3740
3741 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3742
3743 PR middle-end/70643
3744 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3745
3746 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
3747
3748 PR testsuite/68242
3749 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3750 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3751
3752 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
3753
3754 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3755 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3756 GOACC_declare prototype.
3757
3758 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3759 Merge this file, and...
3760 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3761 ... this file, and...
3762 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3763 ... this file, and...
3764 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3765 ... this file, and...
3766 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3767 ... this file, and...
3768 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3769 ... this file, and...
3770 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3771 ... this file, and...
3772 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3773 ... this file, and...
3774 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3775 ... this file, and...
3776 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3777 ... this file, and...
3778 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3779 ... this file, and...
3780 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3781 ... this file, and...
3782 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3783 ... this file into...
3784 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3785 file.
3786
3787 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3788 Make failure observable.
3789
3790 2016-04-12 Jakub Jelinek <jakub@redhat.com>
3791
3792 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3793 field.
3794 * target.c (gomp_target_fallback_firstprivate,
3795 gomp_target_unshare_firstprivate): Removed.
3796 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3797 before waiting for dependencies.
3798 (gomp_target_task_fn): Don't copy firstprivate vars here.
3799 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3800 firstprivate_copies here.
3801 (gomp_create_target_task): Don't initialize firstprivate_copies field.
3802 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3803 explicit/implicit firstprivate.
3804
3805 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
3806
3807 PR lto/70289
3808 PR ipa/70348
3809 PR tree-optimization/70373
3810 PR middle-end/70533
3811 PR middle-end/70534
3812 PR middle-end/70535
3813 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3814 test.
3815 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3816 test.
3817 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3818 test.
3819 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3820 test.
3821 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3822 test.
3823 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3824 test.
3825 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3826 test.
3827 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3828 test.
3829 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3830 test.
3831 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3832 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3833 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3834 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3835 test.
3836 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3837 test.
3838 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3839 test.
3840 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3841 test.
3842 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3843 coverage.
3844 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3845 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3846 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3847 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3848 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3849 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3850 coverage.
3851 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3852 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3853 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3854 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3855 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3856 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3857 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3858 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3859 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3860 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3861 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3862 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3863 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3864 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3865 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3866
3867 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
3868 James Norris <jnorris@codesourcery.com>
3869 Nathan Sidwell <nathan@codesourcery.com>
3870 Julian Brown <julian@codesourcery.com>
3871 Cesar Philippidis <cesar@codesourcery.com>
3872 Chung-Lin Tang <cltang@codesourcery.com>
3873 Tom de Vries <tom@codesourcery.com>
3874
3875 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
3876 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3877 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3878 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
3879 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3880 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3881 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3882 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3883 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3884 XFAIL.
3885 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3886 Incorporate...
3887 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
3888 file.
3889 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
3890 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
3891 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
3892 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
3893 Likewise.
3894 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3895 Likewise.
3896 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3897 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
3898 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3899 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3900 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3901 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3902 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3903 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3904 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3905 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
3906 Likewise.
3907 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
3908 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3909 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
3910 file...
3911 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
3912 file into...
3913 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
3914 file. Update.
3915 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
3916 file.
3917 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
3918 Likewise.
3919 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
3920 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
3921 ... this new file. Update.
3922 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
3923 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
3924 ... this new file. Update.
3925 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
3926 file. Incorporate...
3927 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
3928 file, and...
3929 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
3930 file, and...
3931 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
3932 file.
3933 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
3934
3935 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3936
3937 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
3938 set-torture-options.
3939
3940 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
3941
3942 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
3943 gcc-dg-runtest.
3944 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3945 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
3946 -fno-builtin-acc_on_device instead of -O0.
3947 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
3948 -O0.
3949 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3950 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
3951 Likewise.
3952 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3953 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3954 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3955 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3956 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3957 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3958 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3959 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3960 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3961 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3962 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3963 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3964 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3965 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3966 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3967 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3968 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3969 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
3970 Don't specify -O2.
3971 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
3972 Likewise.
3973 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
3974 Likewise.
3975
3976 2016-03-24 Martin Liska <mliska@suse.cz>
3977
3978 * plugin/plugin-hsa.c (packet_store_release): New function
3979 that is taken from the HSA runtime manual.
3980 (GOMP_OFFLOAD_run): Use the function.
3981
3982 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3983
3984 PR c++/70376
3985 * testsuite/libgomp.c++/pr70376.C: New test.
3986
3987 2016-03-23 Tom de Vries <tom@codesourcery.com>
3988
3989 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
3990 initialization of lresult and lvresult.
3991 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
3992
3993 2016-03-23 James Norris <jnorris@codesourcery.com>
3994 Daichi Fukuoka <dc-fukuoka@sgi.com>
3995
3996 PR libgomp/69414
3997 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
3998 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
3999 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4000 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
4001
4002 2016-03-23 Martin Liska <mliska@suse.cz>
4003
4004 PR hsa/70337
4005 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
4006 argument just in case a dispatched kernel uses that argument.
4007
4008 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
4009
4010 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
4011 -ftree-parallelize-loops/-fopenacc changes.
4012 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
4013 Likewise.
4014 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4015 Likewise.
4016 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
4017 Likewise.
4018 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
4019 Likewise.
4020 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4021 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4022
4023 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
4024
4025 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
4026 always_ld_library_path the path to libgcc_s.
4027
4028 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
4029
4030 PR testsuite/70009
4031 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
4032
4033 2016-03-09 Tom de Vries <tom@codesourcery.com>
4034
4035 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
4036 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
4037 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4038 Same.
4039 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
4040 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
4041 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
4042 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
4043
4044 2016-03-07 Martin Jambor <mjambor@suse.cz>
4045
4046 * testsuite/lib/libgomp.exp
4047 (check_effective_target_hsa_offloading_selected_nocache): New.
4048 (check_effective_target_hsa_offloading_selected): Likewise.
4049 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4050 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
4051 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4052 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4053 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4054 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4055 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4056 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4057 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4058 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4059 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4060 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4061 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4062 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4063 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4064 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4065 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4066
4067 2016-03-07 Martin Jambor <mjambor@suse.cz>
4068
4069 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4070 non-shared memory accelerators.
4071 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4072 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4073 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4074 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4075 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4076 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4077 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4078 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4079 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4080
4081 2016-03-07 Martin Jambor <mjambor@suse.cz>
4082
4083 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4084 ALWAYS_CFLAGS.
4085
4086 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4087
4088 PR libgomp/69555
4089 * testsuite/libgomp.c++/pr69555-1.C: New test.
4090 * testsuite/libgomp.c++/pr69555-2.C: New test.
4091
4092 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
4093 Martin Jambor <mjambor@suse.cz>
4094
4095 * testsuite/lib/libgomp.exp
4096 (check_effective_target_offload_device_shared_as): New proc.
4097 * testsuite/libgomp.c++/declare_target-1.C: New test.
4098
4099 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4100
4101 PR driver/68463
4102 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4103
4104 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4105
4106 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4107 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4108 dims.
4109 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4110 -ftree-parallelize-loops/-fopenacc changes.
4111 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4112 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4113 Likewise.
4114 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4115 Likewise.
4116 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4117 Likewise.
4118 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4119 Likewise.
4120 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4121 Likewise.
4122 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4123 Likewise.
4124 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4125 Likewise.
4126 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4127 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4128 Likewise.
4129 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4130 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4131 Likewise.
4132 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4133 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4134 Likewise.
4135
4136 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4137
4138 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4139
4140 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4141
4142 PR driver/69805
4143 * testsuite/libgomp.c/pr69805.c: New test.
4144
4145 2016-02-16 Tom de Vries <tom@codesourcery.com>
4146
4147 PR lto/67709
4148 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4149
4150 2016-02-09 Tom de Vries <tom@codesourcery.com>
4151
4152 PR tree-optimization/69599
4153 * testsuite/libgomp.c/omp-nested-3.c: New test.
4154 * testsuite/libgomp.c/pr46032-2.c: New test.
4155 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4156 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4157
4158 2016-02-09 Tom de Vries <tom@codesourcery.com>
4159
4160 PR lto/69707
4161 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4162
4163 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4164
4165 * testsuite/libgomp.c/target-31.c: Fix testcase.
4166
4167 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4168
4169 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4170 clause.
4171 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4172 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4173 reduction and map clauses.
4174 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4175
4176 2016-02-02 James Norris <jnorris@codesourcery.com>
4177
4178 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4179
4180 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4181
4182 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4183 * oacc-parallel.c (GOACC_host_data): Remove function definition.
4184
4185 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4186 cases.
4187
4188 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4189 variables.
4190 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4191 (hsa_kmt_lib): Set variables.
4192 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4193 always_ld_library_path.
4194 * Makefile.in: Regenerate.
4195 * configure: Likewise.
4196 * testsuite/Makefile.in: Likewise.
4197
4198 * plugin/configfrag.ac (offload_additional_options)
4199 (offload_additional_lib_paths): Don't amend for hsa offloading.
4200 * configure: Regenerate.
4201
4202 * plugin/configfrag.ac: Don't configure for offloading target if
4203 we don't build the corresponding plugin.
4204 * configure: Regenerate.
4205
4206 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4207
4208 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4209 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4210
4211 2016-01-26 Tom de Vries <tom@codesourcery.com>
4212
4213 PR tree-optimization/69110
4214 * testsuite/libgomp.c/pr69110.c: New test.
4215
4216 2016-01-25 Richard Biener <rguenther@suse.de>
4217
4218 PR lto/69393
4219 * testsuite/libgomp.c++/pr69393.C: New testcase.
4220
4221 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
4222
4223 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4224 function wasn't mapped to the device with non-shared memory.
4225
4226 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
4227
4228 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4229
4230 2016-01-19 Martin Jambor <mjambor@suse.cz>
4231 Martin Liska <mliska@suse.cz>
4232
4233 * plugin/Makefrag.am: Add HSA plugin requirements.
4234 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4235 (HSA_RUNTIME_LIB): Likewise.
4236 (HSA_RUNTIME_CPPFLAGS): Likewise.
4237 (HSA_RUNTIME_INCLUDE): New substitution.
4238 (HSA_RUNTIME_LIB): Likewise.
4239 (HSA_RUNTIME_LDFLAGS): Likewise.
4240 (hsa-runtime): New configure option.
4241 (hsa-runtime-include): Likewise.
4242 (hsa-runtime-lib): Likewise.
4243 (PLUGIN_HSA): New substitution variable.
4244 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4245 configure options.
4246 (PLUGIN_HSA_CPPFLAGS): Likewise.
4247 (PLUGIN_HSA_LDFLAGS): Likewise.
4248 (PLUGIN_HSA_LIBS): Likewise.
4249 Check that we have access to HSA run-time.
4250 * libgomp-plugin.h (offload_target_type): New element
4251 OFFLOAD_TARGET_TYPE_HSA.
4252 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
4253 args.
4254 (bool gomp_create_target_task): Updated.
4255 (gomp_device_descr): Extra parameter of run_func and async_run_func,
4256 new field can_run_func.
4257 * libgomp_g.h (GOMP_target_ext): Update prototype.
4258 * oacc-host.c (host_run): Added a new parameter args.
4259 * target.c (calculate_firstprivate_requirements): New function.
4260 (copy_firstprivate_data): Likewise.
4261 (gomp_target_fallback_firstprivate): Use them.
4262 (gomp_target_unshare_firstprivate): New function.
4263 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
4264 devices.
4265 (GOMP_target): Do host fallback for all shared memory devices. Do not
4266 pass any args to plugins.
4267 (GOMP_target_ext): Introduce device-specific argument parameter args.
4268 Allow host fallback if device shares memory. Do not remap data if
4269 device has shared memory.
4270 (gomp_target_task_fn): Likewise. Also treat shared memory devices
4271 like host fallback for mappings.
4272 (GOMP_target_data): Treat shared memory devices like host fallback.
4273 (GOMP_target_data_ext): Likewise.
4274 (GOMP_target_update): Likewise.
4275 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
4276 gomp_create_target_task.
4277 (GOMP_target_enter_exit_data): Likewise.
4278 (omp_target_alloc): Treat shared memory devices like host fallback.
4279 (omp_target_free): Likewise.
4280 (omp_target_is_present): Likewise.
4281 (omp_target_memcpy): Likewise.
4282 (omp_target_memcpy_rect): Likewise.
4283 (omp_target_associate_ptr): Likewise.
4284 (gomp_load_plugin_for_device): Also load can_run.
4285 * task.c (GOMP_PLUGIN_target_task_completion): Free
4286 firstprivate_copies.
4287 (gomp_create_target_task): Accept new argument args and store it to
4288 ttask.
4289 * plugin/plugin-hsa.c: New file.
4290
4291 2016-01-18 Tom de Vries <tom@codesourcery.com>
4292
4293 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
4294 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
4295 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
4296 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
4297 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
4298 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
4299 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
4300 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
4301 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
4302 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
4303 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4304 Same.
4305 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4306 Same.
4307 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
4308 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
4309 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
4310 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
4311 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
4312 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
4313 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
4314 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4315 Same.
4316 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
4317
4318 2016-01-15 Jakub Jelinek <jakub@redhat.com>
4319
4320 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
4321
4322 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
4323
4324 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
4325
4326 2016-01-12 James Norris <jnorris@codesourcery.com>
4327
4328 * libgomp.texi: Updates for OpenACC.
4329
4330 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
4331
4332 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
4333
4334 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4335
4336 PR fortran/66680
4337 * testsuite/libgomp.fortran/pr66680.f90: New test.
4338
4339 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4340
4341 PR middle-end/68960
4342 * testsuite/libgomp.c/pr68960.c: New test.
4343
4344 2016-01-06 Nathan Sidwell <nathan@acm.org>
4345
4346 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
4347 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
4348
4349 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4350
4351 Update copyright years.
4352
4353 * libgomp.texi: Bump @copying's copyright year.
4354
4355 2015-12-31 Nathan Sidwell <nathan@acm.org>
4356
4357 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
4358 dg-additional-options syntax.
4359 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4360 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4361 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4362 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4363 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4364 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4365 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4366 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4367 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4368 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4369 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4370 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4371 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4372 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4373 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4374 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4375 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4376 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4377
4378 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4379
4380 * libgomp.h (REFCOUNT_LINK): Define.
4381 (struct splay_tree_key_s): Add link_key.
4382 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4383 Replace target address of the pointer with target address of newly
4384 mapped object in the splay tree. Set link pointer on target to the
4385 device address of the mapped object.
4386 (gomp_unmap_vars): Restore target address of the pointer in the splay
4387 tree for REFCOUNT_LINK objects after unmapping.
4388 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4389 declare target link" objects.
4390 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
4391 "omp declare target link" objects, which were mapped for the image.
4392 (gomp_exit_data): Restore target address of the pointer in the splay
4393 tree for REFCOUNT_LINK objects after unmapping.
4394 * testsuite/libgomp.c/target-link-1.c: New file.
4395
4396 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
4397
4398 * libgomp.h (gomp_device_state): New enum.
4399 (struct gomp_device_descr): Replace is_initialized with state.
4400 (gomp_fini_device): Remove declaration.
4401 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4402 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4403 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
4404 (acc_set_device_type): Use state instead of is_initialized.
4405 (acc_set_device_num): Likewise.
4406 * target.c (resolve_device): Use state instead of is_initialized.
4407 Do not initialize finalized device.
4408 (gomp_map_vars): Do nothing if device is finalized.
4409 (gomp_unmap_vars): Likewise.
4410 (gomp_update): Likewise.
4411 (GOMP_offload_register_ver): Use state instead of is_initialized.
4412 (GOMP_offload_unregister_ver): Likewise.
4413 (gomp_init_device): Likewise.
4414 (gomp_unload_device): Likewise.
4415 (gomp_fini_device): Remove.
4416 (gomp_get_target_fn_addr): Do nothing if device is finalized.
4417 (GOMP_target): Go to host fallback if device is finalized.
4418 (GOMP_target_ext): Likewise.
4419 (gomp_exit_data): Do nothing if device is finalized.
4420 (gomp_target_task_fn): Go to host fallback if device is finalized.
4421 (gomp_target_fini): New static function.
4422 (gomp_target_init): Use state instead of is_initialized.
4423 Call gomp_target_fini at exit.
4424
4425 2015-12-09 Tom de Vries <tom@codesourcery.com>
4426
4427 PR tree-optimization/68716
4428 * testsuite/libgomp.c/omp-nested-2.c: New test.
4429
4430 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
4431
4432 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4433 target openacc_nvidia_accel_selected.
4434 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4435 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4436 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4437 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4438
4439 2015-12-01 Julian Brown <julian@codesourcery.com>
4440 James Norris <James_Norris@mentor.com>
4441
4442 * oacc-parallel.c (GOACC_host_data): New function.
4443 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4444 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4445 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4446 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4447 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4448 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4449 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4450
4451 2015-11-30 James Norris <jnorris@codesourcery.com>
4452 Cesar Philippidis <cesar@codesourcery.com>
4453
4454 libgomp/
4455 * libgomp.oacc-fortran/routine-5.f90: New test.
4456 * libgomp.oacc-fortran/routine-7.f90: New test.
4457 * libgomp.oacc-fortran/routine-9.f90: New test.
4458
4459 2015-11-30 Tom de Vries <tom@codesourcery.com>
4460
4461 PR tree-optimization/46032
4462 * testsuite/libgomp.c/pr46032.c: New test.
4463
4464 2015-11-27 Jakub Jelinek <jakub@redhat.com>
4465
4466 PR libgomp/68579
4467 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4468 (gomp_create_target_task): Call it before freeing
4469 GOMP_TARGET_TASK_DATA tasks.
4470
4471 PR c/63326
4472 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4473 in between case label and OpenMP standalone directives.
4474 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4475
4476 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
4477
4478 * configure: Regenerate.
4479
4480 2015-11-26 Jakub Jelinek <jakub@redhat.com>
4481
4482 * testsuite/libgomp.c/target-35.c: New test.
4483
4484 2015-11-22 James Norris <jnorris@codesourcery.com>
4485 Cesar Philippidis <cesar@codesourcery.com>
4486
4487 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4488 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4489 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4490 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4491 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4492
4493 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4494
4495 PR middle-end/68221
4496 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4497 * testsuite/libgomp.c/reduction-12.c: Likewise.
4498 * testsuite/libgomp.c++/reduction-11.C: Likewise.
4499 * testsuite/libgomp.c++/reduction-12.C: Likewise.
4500
4501 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
4502
4503 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4504 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4505 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4506 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4507 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4508 and fix.
4509 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4510 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4511
4512 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4513
4514 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4515 worker & gang cases.
4516 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4517
4518 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
4519
4520 * config/nvptx/priority_queue.c: New file.
4521
4522 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4523
4524 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4525 sections.
4526
4527 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4528 Aldy Hernandez <aldyh@redhat.com>
4529 Ilya Verbin <ilya.verbin@intel.com>
4530
4531 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4532 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4533 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4534 iterators or IV by chunk size.
4535 * parallel.c (gomp_resolve_num_threads): Don't assume that
4536 if thr->ts.team is non-NULL, then pool must be non-NULL.
4537 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4538 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4539 GOMP_PLUGIN_target_task_completion.
4540 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4541 * Makefile.in: Regenerate.
4542 * libgomp.h: Shuffle prototypes and forward definitions around so
4543 priority queues can be defined.
4544 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4545 (enum gomp_target_task_state): New enum.
4546 (struct gomp_target_task): Add state, tgt, task and team fields.
4547 (gomp_create_target_task): Change return type to bool, add
4548 state argument.
4549 (gomp_target_task_fn): Change return type to bool.
4550 (struct gomp_device_descr): Add async_run_func.
4551 (struct gomp_task): Remove children, next_child, prev_child,
4552 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4553 Add pnode field.
4554 (struct gomp_taskgroup): Remove children.
4555 Add taskgroup_queue.
4556 (struct gomp_team): Change task_queue type to a priority queue.
4557 (splay_compare): Define inline.
4558 (priority_queue_offset): New.
4559 (priority_node_to_task): New.
4560 (task_to_priority_node): New.
4561 * oacc-mem.c: Do not include splay-tree.h.
4562 * priority_queue.c: New file.
4563 * priority_queue.h: New file.
4564 * splay-tree.c: Do not include splay-tree.h.
4565 (splay_tree_foreach_internal): New.
4566 (splay_tree_foreach): New.
4567 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4568 (splay_tree_callback): Define typedef.
4569 * target.c (splay_compare): Move to libgomp.h.
4570 (GOMP_target): Don't adjust *thr in any way around running offloaded
4571 task.
4572 (GOMP_target_ext): Likewise. Handle target nowait.
4573 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4574 return value from gomp_create_target_task, if false, fallthrough
4575 as if no dependencies exist.
4576 (gomp_target_task_fn): Change return type to bool, return true
4577 if the task should have another part scheduled later. Handle
4578 target nowait.
4579 (gomp_load_plugin_for_device): Initialize async_run.
4580 * task.c (gomp_init_task): Initialize children_queue.
4581 (gomp_clear_parent_in_list): New.
4582 (gomp_clear_parent_in_tree): New.
4583 (gomp_clear_parent): Handle priorities.
4584 (GOMP_task): Likewise.
4585 (priority_queue_move_task_first,
4586 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4587 New functions.
4588 (gomp_create_target_task): Use priority queues. Change return type
4589 to bool, add state argument, return false if for async
4590 {{enter,exit} data,update} constructs no dependencies need to be
4591 waited for, handle target nowait. Set task->fn to NULL instead of
4592 gomp_target_task_fn.
4593 (verify_children_queue): Remove.
4594 (priority_list_upgrade_task): New.
4595 (priority_queue_upgrade_task): New.
4596 (verify_task_queue): Remove.
4597 (priority_list_downgrade_task): New.
4598 (priority_queue_downgrade_task): New.
4599 (gomp_task_run_pre): Use priority queues.
4600 Abstract code out to priority_queue_downgrade_task.
4601 (gomp_task_run_post_handle_dependers): Use priority queues.
4602 (gomp_task_run_post_remove_parent): Likewise.
4603 (gomp_task_run_post_remove_taskgroup): Likewise.
4604 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
4605 tasks specially.
4606 (GOMP_taskwait): Likewise.
4607 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
4608 priority-queue_upgrade_task.
4609 (GOMP_taskgroup_start): Use priority queues.
4610 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
4611 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
4612 barrier.
4613 * taskloop.c (GOMP_taskloop): Handle priorities.
4614 * team.c (gomp_new_team): Call priority_queue_init.
4615 (free_team): Call priority_queue_free.
4616 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4617 team created for target nowait in implicit parallel region.
4618 (gomp_team_start): For nested check, test thr->ts.level instead of
4619 thr->ts.team != NULL.
4620 * testsuite/libgomp.c/doacross-3.c: New test.
4621 * testsuite/libgomp.c/ordered-5.c: New test.
4622 * testsuite/libgomp.c/priority.c: New test.
4623 * testsuite/libgomp.c/target-31.c: New test.
4624 * testsuite/libgomp.c/target-32.c: New test.
4625 * testsuite/libgomp.c/target-33.c: New test.
4626 * testsuite/libgomp.c/target-34.c: New test.
4627
4628 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4629
4630 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4631
4632 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4633 loop is sequential.
4634
4635 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4636
4637 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4638 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4639
4640 2015-11-12 James Norris <jnorris@codesourcery.com>
4641 Joseph Myers <joseph@codesourcery.com>
4642
4643 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4644 * oacc-parallel.c (GOACC_declare): New function.
4645 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4646 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4647 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4648 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4649 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4650
4651 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4652
4653 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4654
4655 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
4656
4657 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4658 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4659
4660 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4661
4662 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4663 inadvertent commit.
4664
4665 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4666
4667 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4668 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4669 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4670 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4671 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4672
4673 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
4674
4675 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4676 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4677
4678 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4679 Ilya Verbin <ilya.verbin@intel.com>
4680
4681 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4682 GOMP_loop_nonmonotonic_dynamic_start,
4683 GOMP_loop_nonmonotonic_guided_next,
4684 GOMP_loop_nonmonotonic_guided_start,
4685 GOMP_loop_ull_nonmonotonic_dynamic_next,
4686 GOMP_loop_ull_nonmonotonic_dynamic_start,
4687 GOMP_loop_ull_nonmonotonic_guided_next,
4688 GOMP_loop_ull_nonmonotonic_guided_start,
4689 GOMP_parallel_loop_nonmonotonic_dynamic,
4690 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4691 (GOMP_target_41): Renamed to ...
4692 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4693 arguments.
4694 (GOMP_target_data_41): Renamed to ...
4695 (GOMP_target_data_ext): ... this.
4696 (GOMP_target_update_41): Renamed to ...
4697 (GOMP_target_update_ext): ... this.
4698 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4699 GOMP_target_data_ext and GOMP_target_update_ext instead of
4700 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4701 Export GOMP_loop_nonmonotonic_dynamic_next,
4702 GOMP_loop_nonmonotonic_dynamic_start,
4703 GOMP_loop_nonmonotonic_guided_next,
4704 GOMP_loop_nonmonotonic_guided_start,
4705 GOMP_loop_ull_nonmonotonic_dynamic_next,
4706 GOMP_loop_ull_nonmonotonic_dynamic_start,
4707 GOMP_loop_ull_nonmonotonic_guided_next,
4708 GOMP_loop_ull_nonmonotonic_guided_start,
4709 GOMP_parallel_loop_nonmonotonic_dynamic and
4710 GOMP_parallel_loop_nonmonotonic_guided.
4711 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4712 GOMP_parallel_loop_nonmonotonic_guided,
4713 GOMP_loop_nonmonotonic_dynamic_start,
4714 GOMP_loop_nonmonotonic_guided_start,
4715 GOMP_loop_nonmonotonic_dynamic_next,
4716 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4717 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4718 GOMP_loop_ull_nonmonotonic_guided_start,
4719 GOMP_loop_ull_nonmonotonic_dynamic_next,
4720 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4721 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4722 functions.
4723 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
4724 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4725 Use gomp_map_val function.
4726 (gomp_target_fallback_firstprivate): New static function.
4727 (GOMP_target_41): Renamed to ...
4728 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4729 arguments. Move firstprivate fallback handling into a new
4730 function.
4731 (GOMP_target_data_41): Renamed to ...
4732 (GOMP_target_data_ext): ... this.
4733 (GOMP_target_update_41): Renamed to ...
4734 (GOMP_target_update_ext): ... this.
4735 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4736 gomp_map_0len_lookup instead of gomp_map_lookup.
4737 (omp_target_is_present): Use gomp_map_0len_lookup instead of
4738 gomp_map_lookup.
4739 * testsuite/libgomp.c/target-28.c: Likewise.
4740 * testsuite/libgomp.c/monotonic-1.c: New test.
4741 * testsuite/libgomp.c/monotonic-2.c: New test.
4742 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4743 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4744 * testsuite/libgomp.c/pr66199-5.c: New test.
4745 * testsuite/libgomp.c/pr66199-6.c: New test.
4746 * testsuite/libgomp.c/pr66199-7.c: New test.
4747 * testsuite/libgomp.c/pr66199-8.c: New test.
4748 * testsuite/libgomp.c/pr66199-9.c: New test.
4749 * testsuite/libgomp.c/reduction-11.c: New test.
4750 * testsuite/libgomp.c/reduction-12.c: New test.
4751 * testsuite/libgomp.c/reduction-13.c: New test.
4752 * testsuite/libgomp.c/reduction-14.c: New test.
4753 * testsuite/libgomp.c/reduction-15.c: New test.
4754 * testsuite/libgomp.c/target-12.c (main): Adjust for
4755 omp_target_is_present change for one-past-last element.
4756 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4757 the same var is both mapped and privatized.
4758 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4759 handling of zero-length array sections.
4760 * testsuite/libgomp.c/target-28.c: New test.
4761 * testsuite/libgomp.c/target-29.c: New test.
4762 * testsuite/libgomp.c/target-30.c: New test.
4763 * testsuite/libgomp.c/target-teams-1.c: New test.
4764 * testsuite/libgomp.c++/member-6.C: New test.
4765 * testsuite/libgomp.c++/member-7.C: New test.
4766 * testsuite/libgomp.c++/monotonic-1.C: New test.
4767 * testsuite/libgomp.c++/monotonic-2.C: New test.
4768 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4769 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4770 * testsuite/libgomp.c++/pr66199-3.C: New test.
4771 * testsuite/libgomp.c++/pr66199-4.C: New test.
4772 * testsuite/libgomp.c++/pr66199-5.C: New test.
4773 * testsuite/libgomp.c++/pr66199-6.C: New test.
4774 * testsuite/libgomp.c++/pr66199-7.C: New test.
4775 * testsuite/libgomp.c++/pr66199-8.C: New test.
4776 * testsuite/libgomp.c++/pr66199-9.C: New test.
4777 * testsuite/libgomp.c++/reduction-11.C: New test.
4778 * testsuite/libgomp.c++/reduction-12.C: New test.
4779 * testsuite/libgomp.c++/target-13.C: New test.
4780 * testsuite/libgomp.c++/target-14.C: New test.
4781 * testsuite/libgomp.c++/target-15.C: New test.
4782 * testsuite/libgomp.c++/target-16.C: New test.
4783 * testsuite/libgomp.c++/target-17.C: New test.
4784 * testsuite/libgomp.c++/target-18.C: New test.
4785 * testsuite/libgomp.c++/target-19.C: New test.
4786
4787 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4788
4789 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4790 and reduction copy.
4791 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4792 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4793 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4794 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4795 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4796 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4797 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4798 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4799 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4800 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4801 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4802 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4803 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4804 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4805
4806 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4807
4808 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4809 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4810 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4811 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4812 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4813 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4814 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4815 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4816
4817 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4818
4819 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4820 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4821 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4822 * oacc-host.c (host_openacc_exec): Likewise.
4823 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4824
4825 2015-11-03 Julian Brown <julian@codesourcery.com>
4826 Thomas Schwinge <thomas@codesourcery.com>
4827
4828 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4829 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4830 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4831 Likewise.
4832 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4833 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4834
4835 2015-11-03 James Norris <jnorris@codesourcery.com>
4836
4837 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4838 file.
4839 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4840 Likewise.
4841 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4842 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4843 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4844 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4845 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4846
4847 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4848
4849 * openacc.h (enum acc_device_t): Reformat. Ensure layout
4850 compatibility.
4851 (enum acc_async_t): Reformat.
4852 (acc_on_device): Declare compatible with builtin and provide C++
4853 wrapper.
4854 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4855
4856 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
4857 Cesar Philippidis <cesar@codesourcery.com>
4858
4859 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4860 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4861 ... this. Add a description of the test at the top of the file.
4862 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4863 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4864 ... this. Add a description of the test at the top of the file.
4865
4866 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4867
4868 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4869 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4870 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4871 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4872 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4873 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
4874
4875 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4876
4877 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
4878 dimensions.
4879
4880 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4881
4882 PR testsuite/68063
4883 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
4884
4885 2015-10-27 James Norris <jnorris@codesourcery.com>
4886
4887 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
4888 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
4889
4890 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
4891
4892 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
4893 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4894
4895 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
4896 acc_device_nvidia usage.
4897 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4898 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4899 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4900
4901 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
4902 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
4903
4904 PR libgomp/66518
4905 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
4906
4907 PR libgomp/65437
4908 PR libgomp/66518
4909 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
4910 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
4911
4912 2015-10-23 Tom de Vries <tom@codesourcery.com>
4913
4914 PR testsuite/68063
4915 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
4916
4917 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
4918
4919 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
4920 vector_length.
4921 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4922
4923 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
4924 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
4925
4926 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
4927 to 0 when mapnum is 0.
4928
4929 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
4930
4931 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
4932 Cast to int from int32_t.
4933
4934 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4935 Aldy Hernandez <aldyh@redhat.com>
4936 Ilya Verbin <ilya.verbin@intel.com>
4937
4938 * config/linux/affinity.c (omp_get_place_num_procs,
4939 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4940 * config/linux/doacross.h: New file.
4941 * config/posix/affinity.c (omp_get_place_num_procs,
4942 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4943 * config/posix/doacross.h: New file.
4944 * env.c: Include gomp-constants.h.
4945 (struct gomp_task_icv): Rename run_sched_modifier to
4946 run_sched_chunk_size.
4947 (gomp_max_task_priority_var): New variable.
4948 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
4949 (handle_omp_display_env): Change _OPENMP value from 201307 to
4950 201511. Print OMP_MAX_TASK_PRIORITY.
4951 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
4952 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
4953 chunk_size and run_sched_modifier to run_sched_chunk_size.
4954 (omp_get_max_task_priority, omp_get_initial_device,
4955 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
4956 omp_get_partition_place_nums): New functions.
4957 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
4958 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
4959 to chunk_size.
4960 (omp_get_num_places_, omp_get_place_num_procs_,
4961 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
4962 omp_get_place_proc_ids_8_, omp_get_place_num_,
4963 omp_get_partition_num_places_, omp_get_partition_place_nums_,
4964 omp_get_partition_place_nums_8_, omp_get_initial_device_,
4965 omp_get_max_task_priority_): New functions.
4966 * libgomp_g.h (GOMP_loop_doacross_static_start,
4967 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
4968 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
4969 GOMP_loop_ull_doacross_dynamic_start,
4970 GOMP_loop_ull_doacross_guided_start,
4971 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
4972 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
4973 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
4974 GOMP_target_data_41, GOMP_target_update_41,
4975 GOMP_target_enter_exit_data): New prototypes.
4976 (GOMP_task): Add prototype argument.
4977 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
4978 (struct gomp_doacross_work_share): New type.
4979 (struct gomp_work_share): Add doacross field.
4980 (struct gomp_task_icv): Rename run_sched_modifier to
4981 run_sched_chunk_size.
4982 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
4983 GOMP_TASK_UNDEFERRED. Add comments.
4984 (struct gomp_task_depend_entry): Add comments.
4985 (struct gomp_task): Likewise.
4986 (struct gomp_taskgroup): Likewise.
4987 (struct gomp_target_task): New type.
4988 (struct gomp_team): Add comment.
4989 (gomp_get_place_proc_ids_8, gomp_doacross_init,
4990 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
4991 gomp_create_target_task, gomp_target_task_fn): New prototypes.
4992 (struct target_var_desc): New type.
4993 (struct target_mem_desc): Adjust comment. Use struct
4994 target_var_desc instead of splay_tree_key for list.
4995 (REFCOUNT_INFINITY): Define.
4996 (struct splay_tree_key_s): Remove copy_from field.
4997 (struct gomp_device_descr): Add dev2dev_func field.
4998 (enum gomp_map_vars_kind): New enum.
4999 (gomp_map_vars): Add one argument.
5000 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
5001 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
5002 omp_get_place_num_procs, omp_get_place_num_procs_,
5003 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
5004 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
5005 omp_get_place_num_, omp_get_partition_num_places,
5006 omp_get_partition_num_places_, omp_get_partition_place_nums,
5007 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
5008 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
5009 omp_target_free, omp_target_is_present, omp_target_memcpy,
5010 omp_target_memcpy_rect, omp_target_associate_ptr and
5011 omp_target_disassociate_ptr.
5012 (GOMP_4.0.2): Renamed to ...
5013 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
5014 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
5015 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
5016 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5017 GOMP_loop_doacross_static_start, GOMP_doacross_post,
5018 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
5019 GOMP_loop_ull_doacross_guided_start,
5020 GOMP_loop_ull_doacross_runtime_start,
5021 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
5022 GOMP_doacross_ull_wait.
5023 * libgomp.texi: Document omp_get_max_task_priority.
5024 Rename modifier argument to chunk_size for omp_set_schedule and
5025 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
5026 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
5027 to run_sched_chunk_size renaming.
5028 (GOMP_loop_ordered_runtime_start): Likewise.
5029 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5030 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5031 GOMP_parallel_loop_runtime_start): New functions.
5032 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
5033 to run_sched_chunk_size renaming.
5034 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
5035 GOMP_loop_doacross_guided_start): New functions or aliases.
5036 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
5037 run_sched_modifier to run_sched_chunk_size renaming.
5038 (GOMP_loop_ull_ordered_runtime_start): Likewise.
5039 (gomp_loop_ull_doacross_static_start,
5040 gomp_loop_ull_doacross_dynamic_start,
5041 gomp_loop_ull_doacross_guided_start,
5042 GOMP_loop_ull_doacross_runtime_start): New functions.
5043 (GOMP_loop_ull_doacross_static_start,
5044 GOMP_loop_ull_doacross_dynamic_start,
5045 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
5046 * oacc-mem.c (acc_map_data, present_create_copy,
5047 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
5048 to gomp_map_vars.
5049 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
5050 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
5051 instead of false to gomp_map_vars.
5052 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
5053 * omp.h.in (omp_lock_hint_t): New type.
5054 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5055 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5056 omp_get_place_num, omp_get_partition_num_places,
5057 omp_get_partition_place_nums, omp_get_initial_device,
5058 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
5059 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
5060 omp_target_associate_ptr, omp_target_disassociate_ptr): New
5061 prototypes.
5062 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
5063 (omp_lock_hint_none, omp_lock_hint_uncontended,
5064 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5065 omp_lock_hint_speculative): New parameters.
5066 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5067 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5068 omp_get_place_num, omp_get_partition_num_places,
5069 omp_get_partition_place_nums, omp_get_initial_device,
5070 omp_get_max_task_priority): New interfaces.
5071 (omp_set_schedule, omp_get_schedule): Rename modifier argument
5072 to chunk_size.
5073 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5074 (omp_lock_hint_none, omp_lock_hint_uncontended,
5075 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5076 omp_lock_hint_speculative): New parameters.
5077 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5078 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5079 omp_get_place_num, omp_get_partition_num_places,
5080 omp_get_partition_place_nums, omp_get_initial_device,
5081 omp_get_max_task_priority): New functions and subroutines.
5082 * ordered.c: Include stdarg.h and string.h.
5083 (MAX_COLLAPSED_BITS): Define.
5084 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5085 gomp_doacross_ull_init, GOMP_doacross_ull_post,
5086 GOMP_doacross_ull_wait): New functions.
5087 * target.c: Include errno.h.
5088 (resolve_device): If device is not initialized, call
5089 gomp_init_device on it.
5090 (gomp_map_lookup): New function.
5091 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5092 Don't bump refcount if REFCOUNT_INFINITY. Handle
5093 GOMP_MAP_ALWAYS_TO_P.
5094 (get_kind): Rename is_openacc argument to short_mapkind.
5095 (gomp_map_pointer): Use gomp_map_lookup.
5096 (gomp_map_fields_existing): New function.
5097 (gomp_map_vars): Rename is_openacc argument to short_mapkind
5098 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
5099 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5100 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5101 Adjust for tgt->list changed type and copy_from living in there.
5102 (gomp_copy_from_async): Adjust for tgt->list changed type and
5103 copy_from living in there.
5104 (gomp_unmap_vars): Likewise.
5105 (gomp_update): Likewise. Rename is_openacc argument to
5106 short_mapkind. Don't fail if object is not mapped.
5107 (gomp_load_image_to_device): Initialize refcount to
5108 REFCOUNT_INFINITY.
5109 (gomp_target_fallback): New function.
5110 (gomp_get_target_fn_addr): Likewise.
5111 (GOMP_target): Adjust gomp_map_vars caller, use
5112 gomp_get_target_fn_addr and gomp_target_fallback.
5113 (GOMP_target_41): New function.
5114 (gomp_target_data_fallback): New function.
5115 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5116 (GOMP_target_data_41): New function.
5117 (GOMP_target_update): Adjust gomp_update caller.
5118 (GOMP_target_update_41): New function.
5119 (gomp_exit_data, GOMP_target_enter_exit_data,
5120 gomp_target_task_fn, omp_target_alloc, omp_target_free,
5121 omp_target_is_present, omp_target_memcpy,
5122 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5123 omp_target_associate_ptr, omp_target_disassociate_ptr,
5124 gomp_load_plugin_for_device): New functions.
5125 * task.c: Include gomp-constants.h. Include taskloop.c
5126 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5127 (gomp_task_handle_depend): New function.
5128 (GOMP_task): Use it. Add priority argument. Use
5129 gomp-constant.h constants instead of hardcoded numbers.
5130 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5131 (gomp_create_target_task): New function.
5132 (verify_children_queue, verify_taskgroup_queue,
5133 verify_task_queue): New functions.
5134 (gomp_task_run_pre): Call verify_*_queue functions.
5135 If an upcoming tied task is about to leave the sibling or
5136 taskgroup queues in an invalid state, adjust appropriately.
5137 Remove taskgroup argument. Add comments.
5138 (gomp_task_run_post_handle_dependers): Add comments.
5139 (gomp_task_run_post_remove_parent): Likewise.
5140 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5141 (GOMP_taskwait): Likewise. Add comments.
5142 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5143 problem such that the first non parent_depends_on task does not
5144 end up at the end of the children queue.
5145 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5146 GOMP_TASK_UNDEFERRED.
5147 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5148 * taskloop.c: New file.
5149 * testsuite/lib/libgomp.exp
5150 (check_effective_target_offload_device_nonshared_as): New proc.
5151 * testsuite/libgomp.c/affinity-2.c: New test.
5152 * testsuite/libgomp.c/doacross-1.c: New test.
5153 * testsuite/libgomp.c/doacross-2.c: New test.
5154 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5155 Add map clause to target.
5156 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5157 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5158 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5159 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5160 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5161 Likewise.
5162 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5163 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5164 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5165 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5166 not defined. Use those where needed.
5167 * testsuite/libgomp.c/for-4.c: New test.
5168 * testsuite/libgomp.c/for-5.c: New test.
5169 * testsuite/libgomp.c/for-6.c: New test.
5170 * testsuite/libgomp.c/linear-1.c: New test.
5171 * testsuite/libgomp.c/ordered-4.c: New test.
5172 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5173 only allowed on the loop iterator.
5174 * testsuite/libgomp.c/pr66199-3.c: New test.
5175 * testsuite/libgomp.c/pr66199-4.c: New test.
5176 * testsuite/libgomp.c/reduction-7.c: New test.
5177 * testsuite/libgomp.c/reduction-8.c: New test.
5178 * testsuite/libgomp.c/reduction-9.c: New test.
5179 * testsuite/libgomp.c/reduction-10.c: New test.
5180 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5181 map(tofrom:s).
5182 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5183 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5184 * testsuite/libgomp.c/target-11.c: New test.
5185 * testsuite/libgomp.c/target-12.c: New test.
5186 * testsuite/libgomp.c/target-13.c: New test.
5187 * testsuite/libgomp.c/target-14.c: New test.
5188 * testsuite/libgomp.c/target-15.c: New test.
5189 * testsuite/libgomp.c/target-16.c: New test.
5190 * testsuite/libgomp.c/target-17.c: New test.
5191 * testsuite/libgomp.c/target-18.c: New test.
5192 * testsuite/libgomp.c/target-19.c: New test.
5193 * testsuite/libgomp.c/target-20.c: New test.
5194 * testsuite/libgomp.c/target-21.c: New test.
5195 * testsuite/libgomp.c/target-22.c: New test.
5196 * testsuite/libgomp.c/target-23.c: New test.
5197 * testsuite/libgomp.c/target-24.c: New test.
5198 * testsuite/libgomp.c/target-25.c: New test.
5199 * testsuite/libgomp.c/target-26.c: New test.
5200 * testsuite/libgomp.c/target-27.c: New test.
5201 * testsuite/libgomp.c/taskloop-1.c: New test.
5202 * testsuite/libgomp.c/taskloop-2.c: New test.
5203 * testsuite/libgomp.c/taskloop-3.c: New test.
5204 * testsuite/libgomp.c/taskloop-4.c: New test.
5205 * testsuite/libgomp.c++/ctor-13.C: New test.
5206 * testsuite/libgomp.c++/doacross-1.C: New test.
5207 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5208 Replace offload_device with offload_device_nonshared_as.
5209 * testsuite/libgomp.c++/for-12.C: New test.
5210 * testsuite/libgomp.c++/for-13.C: New test.
5211 * testsuite/libgomp.c++/for-14.C: New test.
5212 * testsuite/libgomp.c++/linear-1.C: New test.
5213 * testsuite/libgomp.c++/member-1.C: New test.
5214 * testsuite/libgomp.c++/member-2.C: New test.
5215 * testsuite/libgomp.c++/member-3.C: New test.
5216 * testsuite/libgomp.c++/member-4.C: New test.
5217 * testsuite/libgomp.c++/member-5.C: New test.
5218 * testsuite/libgomp.c++/ordered-1.C: New test.
5219 * testsuite/libgomp.c++/reduction-5.C: New test.
5220 * testsuite/libgomp.c++/reduction-6.C: New test.
5221 * testsuite/libgomp.c++/reduction-7.C: New test.
5222 * testsuite/libgomp.c++/reduction-8.C: New test.
5223 * testsuite/libgomp.c++/reduction-9.C: New test.
5224 * testsuite/libgomp.c++/reduction-10.C: New test.
5225 * testsuite/libgomp.c++/reference-1.C: New test.
5226 * testsuite/libgomp.c++/simd14.C: New test.
5227 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5228 * testsuite/libgomp.c++/target-5.C: New test.
5229 * testsuite/libgomp.c++/target-6.C: New test.
5230 * testsuite/libgomp.c++/target-7.C: New test.
5231 * testsuite/libgomp.c++/target-8.C: New test.
5232 * testsuite/libgomp.c++/target-9.C: New test.
5233 * testsuite/libgomp.c++/target-10.C: New test.
5234 * testsuite/libgomp.c++/target-11.C: New test.
5235 * testsuite/libgomp.c++/target-12.C: New test.
5236 * testsuite/libgomp.c++/taskloop-1.C: New test.
5237 * testsuite/libgomp.c++/taskloop-2.C: New test.
5238 * testsuite/libgomp.c++/taskloop-3.C: New test.
5239 * testsuite/libgomp.c++/taskloop-4.C: New test.
5240 * testsuite/libgomp.c++/taskloop-5.C: New test.
5241 * testsuite/libgomp.c++/taskloop-6.C: New test.
5242 * testsuite/libgomp.c++/taskloop-7.C: New test.
5243 * testsuite/libgomp.c++/taskloop-8.C: New test.
5244 * testsuite/libgomp.c++/taskloop-9.C: New test.
5245 * testsuite/libgomp.fortran/affinity1.f90: New test.
5246 * testsuite/libgomp.fortran/affinity2.f90: New test.
5247
5248 2015-10-13 Tom de Vries <tom@codesourcery.com>
5249
5250 PR tree-optimization/67476
5251 * testsuite/libgomp.c/autopar-3.c: New test.
5252 * testsuite/libgomp.c/autopar-4.c: New test.
5253 * testsuite/libgomp.c/autopar-5.c: New test.
5254 * testsuite/libgomp.c/autopar-6.c: New test.
5255 * testsuite/libgomp.c/autopar-7.c: New test.
5256 * testsuite/libgomp.c/autopar-8.c: New test.
5257
5258 2015-10-12 James Norris <jnorris@codesourcery.com>
5259
5260 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
5261 initializer.
5262
5263 2015-10-09 David Malcolm <dmalcolm@redhat.com>
5264
5265 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
5266 using load_gcc_lib.
5267
5268 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5269
5270 * oacc-ptx.h: Remove file, moving its content into...
5271 * config/nvptx/fortran.c: ... here...
5272 * config/nvptx/oacc-init.c: ..., here...
5273 * config/nvptx/oacc-parallel.c: ..., and here.
5274 * config/nvptx/openacc.f90: New file.
5275 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
5276 (link_ptx): Don't link in predefined bits of PTX code.
5277
5278 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5279 Bernd Schmidt <bernds@codesourcery.com>
5280
5281 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
5282 (struct targ_ptx_obj): New.
5283 (nvptx_tdata): Move earlier, change data format.
5284 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
5285 objects.
5286 (GOMP_OFFLOAD_load_image): Adjust.
5287
5288 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5289
5290 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
5291 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5292 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5293 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5295 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5297 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5298 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5299 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5300 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5301 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5303 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5304 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5305 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5306 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5307 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5308 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5309 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5310 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5311 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5312 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5313 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5314 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5315 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5316 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5317 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5318 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5319 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5320 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5321 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5322 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5323 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5324 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5325 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5326 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5327 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5328 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5329 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5330 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5331 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5332 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5333 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5334 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5335 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5336 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5337 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5338 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5339 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5340 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5341 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5342 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5343 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5344 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5345 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5346 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5347 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5348 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5349 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5350 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5351 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5352 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5353
5354 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5355
5356 * oacc-init.c (acc_on_device): Force optimization level.
5357
5358 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5359
5360 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
5361 (cuda_errlist): Delete.
5362 (cuda_error): Reimplement.
5363
5364 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5365
5366 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
5367 array.
5368 * libgomp.map (GOACC_parallel_keyed): New.
5369 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
5370 all callers.
5371 (GOACC_parallel_keyed): New interface. Lose geometry arguments
5372 and take keyed varargs list. Adjust call to exec_func.
5373 (GOACC_parallel): Force host fallback.
5374 * libgomp_g.h (GOACC_parallel): Remove.
5375 (GOACC_parallel_keyed): Declare.
5376 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5377 (stuct targ_gn_descriptor): Replace name field with launch field.
5378 (nvptx_exec): Lose separate geometry args, take array. Process
5379 dynamic dimensions and adjust.
5380 (struct nvptx_tdata): Replace fn_names field with fn_descs.
5381 (GOMP_OFFLOAD_load_image): Adjust for change in function table
5382 data.
5383 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5384 passing.
5385 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5386 passing.
5387
5388 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5389
5390 PR libgomp/67141
5391 * oacc-int.h (goacc_host_init): Add declaration.
5392 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5393 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5394
5395 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5396 Sebastian Pop <s.pop@samsung.com>
5397
5398 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5399 match o/p.
5400 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5401 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5402 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5403 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5404 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5405
5406 2015-09-03 Jakub Jelinek <jakub@redhat.com>
5407
5408 * configure.tgt: Add missing ;; in between nvptx and rtems
5409 snippets.
5410
5411 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5412
5413 * config/posix/pool.h (gomp_adjust_thread_attr): New.
5414 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5415 (gomp_thread_pool_reservoir): Add priority member.
5416 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5417 priority.
5418 (parse_thread_pools): Likewise.
5419 * team.c (gomp_team_start): Call configuration provided
5420 gomp_adjust_thread_attr(). Destroy thread attributes if
5421 necessary.
5422 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5423
5424 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5425
5426 * config/posix/pool.h: New.
5427 * config/rtems/pool.h: Likewise.
5428 * config/rtems/proc.c: Likewise.
5429 * libgomp.h (gomp_thread_destructor): Declare.
5430 * team.c: Include configuration provided "pool.h".
5431 (gomp_get_thread_pool): Define in configuration.
5432 (gomp_team_end): Call configuration defined
5433 gomp_release_thread_pool().
5434
5435 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5436
5437 * config/rtems/bar.c: New.
5438 * config/rtems/bar.h: Likewise.
5439 * config/rtems/mutex.c: Likewise.
5440 * config/rtems/mutex.h: Likewise.
5441 * config/rtems/sem.c: Likewise.
5442 * config/rtems/sem.h: Likewise.
5443 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5444 <sys/lock.h> header file.
5445 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5446 supported by Newlib.
5447 * configure: Regenerate.
5448
5449 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5450
5451 * team.c (gomp_new_thread_pool): Delete and move content to ...
5452 (gomp_get_thread_pool): ... new function. Allocate and
5453 initialize thread pool on demand.
5454 (get_last_team): Use gomp_get_thread_pool().
5455 (gomp_team_start): Delete thread pool initialization.
5456
5457 2015-09-03 Tom de Vries <tom@codesourcery.com>
5458
5459 PR tree-optimization/65637
5460 * testsuite/libgomp.c/autopar-2.c: New test.
5461
5462 2015-08-29 Tom de Vries <tom@codesourcery.com>
5463
5464 PR tree-optimization/46193
5465 * testsuite/libgomp.c/pr46193.c: New test.
5466
5467 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
5468
5469 libgomp/
5470 * libgomp.map: Add 4.0.2 version.
5471 * target.c (offload_image_descr): Add version field.
5472 (gomp_load_image_to_device): Add version argument. Adjust plugin
5473 call. Improve load mismatch diagnostic.
5474 (gomp_unload_image_from_device): Add version argument. Adjust plugin
5475 call.
5476 (GOMP_offload_regster): Make stub function, move bulk to ...
5477 (GOMP_offload_register_ver): ... here. Process version argument.
5478 (GOMP_offload_unregister): Make stub function, move bulk to ...
5479 (GOMP_offload_unregister_ver): ... here. Process version argument.
5480 (gomp_init_device): Process version field.
5481 (gomp_unload_device): Process version field.
5482 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5483 macros. Check plugin version.
5484 * libgomp.h (gomp_device_descr): Add version function field. Adjust
5485 loader and unloader types.
5486 * oacc-host.c: Include gomp-constants.h.
5487 (host_version): New.
5488 (host_load_image, host_unload_image): Adjust.
5489 (host_dispatch): Add host_version.
5490 * plugin/plugin-nvptx.c: Include gomp-constants.h.
5491 (GOMP_OFFLOAD_version): New.
5492 (GOMP_OFFLOAD_load_image): Add version arg and check it.
5493 (GOMP_OFFLOAD_unload_image): Likewise.
5494 * plugin/plugin-host.c: Include gomp-constants.h.
5495 (GOMP_OFFLOAD_version): New.
5496 (GOMP_OFFLOAD_load_image): Add version arg.
5497 (GOMP_OFFLOAD_unload_image): Likewise.
5498
5499 2015-08-24 Tom de Vries <tom@codesourcery.com>
5500
5501 PR tree-optimization/65468
5502 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5503
5504 2015-08-24 Tom de Vries <tom@codesourcery.com>
5505
5506 PR tree-optimization/65468
5507 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5508
5509 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
5510
5511 PR libgomp/66761
5512 PR libgomp/67303
5513 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5514 (gomp_iter_guided_next): Idem.
5515 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5516 (gomp_iter_ull_guided_next): Idem.
5517 * config/linux/wait.h (do_spin): Idem.
5518
5519 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5520
5521 * libgomp-plugin.h (enum offload_target_type): Remove
5522 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5523 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5524 * openacc.h (enum acc_device_t): Likewise.
5525 * openacc_lib.h: Likewise.
5526 * oacc-init.c (name_of_acc_device_t): Don't handle it.
5527 (acc_on_device): Just use __builtin_acc_on_device.
5528 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5529 of acc_on_device builtin.
5530 * plugin/plugin-host.h: Remove file.
5531 * plugin/plugin-host.c: Likewise, but salvage some content into...
5532 * oacc-host.c: ... this file.
5533 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5534 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5535 * Makefile.in: Regenerate.
5536 * configure: Likewise.
5537 * testsuite/lib/libgomp.exp
5538 (check_effective_target_openacc_host_nonshm_selected): Remove.
5539 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5540 ACC_DEVICE_TYPE=host_nonshm.
5541 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5542 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5543 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5544 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5545 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5546 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5547
5548 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5549 Jakub Jelinek <jakub@redhat.com>
5550
5551 * config/nvptx/affinity.c: New file.
5552 * config/nvptx/alloc.c: Likewise.
5553 * config/nvptx/bar.c: Likewise.
5554 * config/nvptx/barrier.c: Likewise.
5555 * config/nvptx/critical.c: Likewise.
5556 * config/nvptx/env.c: Likewise.
5557 * config/nvptx/error.c: Likewise.
5558 * config/nvptx/fortran.c: Likewise.
5559 * config/nvptx/iter.c: Likewise.
5560 * config/nvptx/iter_ull.c: Likewise.
5561 * config/nvptx/libgomp-plugin.c: Likewise.
5562 * config/nvptx/lock.c: Likewise.
5563 * config/nvptx/loop.c: Likewise.
5564 * config/nvptx/loop_ull.c: Likewise.
5565 * config/nvptx/mutex.c: Likewise.
5566 * config/nvptx/oacc-async.c: Likewise.
5567 * config/nvptx/oacc-cuda.c: Likewise.
5568 * config/nvptx/oacc-host.c: Likewise.
5569 * config/nvptx/oacc-init.c: Likewise.
5570 * config/nvptx/oacc-mem.c: Likewise.
5571 * config/nvptx/oacc-parallel.c: Likewise.
5572 * config/nvptx/oacc-plugin.c: Likewise.
5573 * config/nvptx/omp-lock.h: Likewise.
5574 * config/nvptx/ordered.c: Likewise.
5575 * config/nvptx/parallel.c: Likewise.
5576 * config/nvptx/proc.c: Likewise.
5577 * config/nvptx/ptrlock.c: Likewise.
5578 * config/nvptx/sections.c: Likewise.
5579 * config/nvptx/sem.c: Likewise.
5580 * config/nvptx/single.c: Likewise.
5581 * config/nvptx/splay-tree.c: Likewise.
5582 * config/nvptx/target.c: Likewise.
5583 * config/nvptx/task.c: Likewise.
5584 * config/nvptx/team.c: Likewise.
5585 * config/nvptx/time.c: Likewise.
5586 * config/nvptx/work.c: Likewise.
5587 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5588 * configure: Regenerate.
5589 * configure.tgt (config_path): Set to "nvptx" for target
5590 nvptx*-*-*.
5591
5592 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5593
5594 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5595
5596 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
5597
5598 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5599 (cuda_errlist): Constify.
5600 (errmsg): Move into ...
5601 (cuda_error): ... here. Make smaller.
5602 (_XSTR, _STR): Delete.
5603 (cuda_synames): Delete.
5604 (verify_device_library): Delete.
5605 (nvptx_init): Don't call it.
5606
5607 2015-07-28 Tom de Vries <tom@codesourcery.com>
5608
5609 * testsuite/libgomp.c/uns-outer-4.c: New test.
5610
5611 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5612
5613 * testsuite/libgomp.c/pr66714.c: New test.
5614
5615 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
5616
5617 PR libgomp/66950
5618 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5619 (fib_ref): New function.
5620 (fib): Correct corner cases in the recursion.
5621 (main): Replace the non-simd loop with fib_ref call.
5622 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5623 subroutine.
5624 (fibonacci): Lower the parameter N to 30. Correct accordingly check
5625 for the last array element value. Replace the non-simd loop with
5626 fib_ref call. Remove redundant b_ref array. Remove the comparison
5627 of the last array element with according Fibonacci sequence element.
5628 (fib): Correct corner cases in the recursion.
5629
5630 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5631
5632 * target.c (gomp_offload_image_to_device): Rename to ...
5633 (gomp_load_image_to_device): ... here.
5634 (GOMP_offload_register): Adjust call.
5635 (gomp_init_device): Likewise.
5636 (gomp_unload_image_from_device): New. Broken out of ...
5637 (GOMP_offload_unregister): ... here. Call it.
5638 (gomp_unload_device): New.
5639 * libgomp.h (gomp_unload_device): Declare.
5640 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5641 mem maps.
5642
5643 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
5644
5645 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5646 wait=-specific if.
5647 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5648 !=0 condition.
5649 (goacc_waits): Move !num_waits handling to ...
5650 (GOACC_wait): ... here, the only caller that might have zero waits.
5651
5652 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5653 (struct ptx_image_data): Move earlier, add fns field.
5654 (struct ptx_device): Add images and image_lock fields.
5655 (ptx_images, ptx_image_lock): Delete.
5656 (nvptx_open_device): Initialize images and image_lock fields.
5657 (nvptx_close_device): Destroy image_lock.
5658 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5659 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5660 fields.
5661
5662 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5663
5664 * target.c (GOMP_offload_register): Use int for device type arg.
5665 (GOMP_offload_unregister): Likewise.
5666
5667 * target.c (struct_offload_image_descr): Constify host_table.
5668 (gomp_offload_image_to_device): Likewise.
5669 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5670
5671 * libgomp.h (gomp_device_descr): Constify target data arguments.
5672 * target.c (struct offload_image_descr): Constify target_data.
5673 (gomp_offload_image_to_device): Likewise.
5674 (GOMP_offload_register): Likewise.
5675 (GOMP_offload_unrefister): Likewise.
5676 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5677 GOMP_OFFLOAD_unload_image): Constify target data.
5678 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5679 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5680
5681 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5682
5683 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5684 Workaround driver library const error.
5685 (struct nvptx_tdata, nvptx_tdata_t): New.
5686 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5687 type.
5688
5689 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
5690
5691 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5692 of EPS parameter from integer to real.
5693 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5694 type of EPS parameter from integer to real.
5695
5696 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5697
5698 * team.c (get_last_team): New.
5699 (gomp_new_team): Recycle last non-nested team if possible.
5700 (gomp_team_end): Move team work share list free lock destruction
5701 to ...
5702 (free_team): ... here.
5703
5704 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
5705
5706 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5707 and ref from int to double. Replaced their comparison with
5708 an inequality of their difference and EPS.
5709 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5710 comparison of pri and a reference number with an inequality of their
5711 difference and EPS.
5712 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5713 the comparison of sum and sum_ref with an inequality of their
5714 difference and EPS.
5715 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5716 the comparison of pri and a reference number with an inequality of
5717 their difference and EPS.
5718
5719 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
5720
5721 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5722 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5723 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5724 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5725 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5726 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5727 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5728 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5729 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5730 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5731 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5732 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5733 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5734 variables.
5735 (vec_mult): Likewise. Add #pragma omp taskwait.
5736 (main): Adjust caller.
5737 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5738 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5739 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5740 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5741 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5742 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5743 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5744 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5745 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5746 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5747 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5748 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5749 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5750 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5751 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5752 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5753 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5754 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5755 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5756 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5757 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5758 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5759 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5760 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5761 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5762 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5763 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5764 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5765 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5766 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5767 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5768 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5769 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5770 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5771 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5772 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5773 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5774 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5775 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5776 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5777 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5778 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5779 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5780 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5781 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5782 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5783 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5784 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5785 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5786 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5787 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5788 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5789 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5790 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5791 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5792 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5793 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5794 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5795 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5796 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5797 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5798 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5799 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5800 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5801 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5802 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5803 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5804 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5805 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5806 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5807 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5808 (vec_mult): Add !$omp taskwait.
5809 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5810 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5811 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5812 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5813 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5814 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5815 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5816 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5817 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5818 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5819 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5820 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5821 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5822 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5823 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5824 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5825 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5826 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5827 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5828 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5829 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5830 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5831 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5832 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5833 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5834 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5835 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5836 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5837 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5838 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5839 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5840 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5841 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5842 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5843 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5844 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5845 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5846 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5847 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5848 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5849 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5850 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5851 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5852 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5853 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5854 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5855 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5856 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5857 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5858 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5859 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5860 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5861 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5862 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5863 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5864 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5865 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5866 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5867 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5868 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5869 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5870 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5871 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5872 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5873 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
5874 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
5875 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
5876
5877 2015-07-10 Tom de Vries <tom@codesourcery.com>
5878
5879 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
5880 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
5881
5882 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5883
5884 PR libgomp/65099
5885 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
5886 in a 64-bit configuration.
5887 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
5888 offloading testing if no such device is available.
5889 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5890 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5891
5892 2015-07-08 Tom de Vries <tom@codesourcery.com>
5893
5894 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
5895 second call to f.
5896 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5897
5898 2015-07-07 Tom de Vries <tom@codesourcery.com>
5899
5900 PR tree-optimization/66642
5901 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
5902 iteration count case.
5903 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
5904 function, factor out of ...
5905 (main): ... here. Test low iteration count case.
5906
5907 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
5908
5909 * libgomp.h (gomp_thread_pool): Comment last_team field.
5910
5911 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
5912
5913 * testsuite/libgomp.c++/pr66702-1.C: Require
5914 vect_simd_clones effective target.
5915 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
5916
5917 2015-06-30 Tom de Vries <tom@codesourcery.com>
5918
5919 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5920 already set. Use DEFAULT_CFLAGS in dg-runtest.
5921 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
5922 "-O2".
5923
5924 2015-06-30 Tom de Vries <tom@codesourcery.com>
5925
5926 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5927 already set. Use DEFAULT_CFLAGS in dg-runtest.
5928 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
5929 * testsuite/libgomp.c++/pr64824.C: Same.
5930 * testsuite/libgomp.c++/pr64868.C: Same.
5931 * testsuite/libgomp.c++/pr66199-1.C: Same.
5932 * testsuite/libgomp.c++/pr66199-2.C: Same.
5933 * testsuite/libgomp.c++/target-2.C: Same.
5934 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
5935 -std=<standard> option.
5936 * testsuite/libgomp.c++/udr-11.C: Same.
5937 * testsuite/libgomp.c++/udr-12.C: Same.
5938 * testsuite/libgomp.c++/udr-13.C: Same.
5939 * testsuite/libgomp.c++/udr-14.C: Same.
5940 * testsuite/libgomp.c++/udr-15.C: Same.
5941 * testsuite/libgomp.c++/udr-16.C: Same.
5942 * testsuite/libgomp.c++/udr-17.C: Same.
5943 * testsuite/libgomp.c++/udr-18.C: Same.
5944 * testsuite/libgomp.c++/udr-19.C: Same.
5945 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
5946 * testsuite/libgomp.c++/simd-1.C: Same.
5947 * testsuite/libgomp.c++/simd-2.C: Same.
5948 * testsuite/libgomp.c++/simd-3.C: Same.
5949 * testsuite/libgomp.c++/simd-4.C: Same.
5950 * testsuite/libgomp.c++/simd-5.C: Same.
5951 * testsuite/libgomp.c++/simd-6.C: Same.
5952 * testsuite/libgomp.c++/simd-7.C: Same.
5953 * testsuite/libgomp.c++/simd-8.C: Same.
5954 * testsuite/libgomp.c++/simd-9.C: Same.
5955 * testsuite/libgomp.c++/simd10.C: Same.
5956 * testsuite/libgomp.c++/simd11.C: Same.
5957 * testsuite/libgomp.c++/simd12.C: Same.
5958 * testsuite/libgomp.c++/simd13.C: Same.
5959
5960 2015-06-30 Jakub Jelinek <jakub@redhat.com>
5961
5962 PR middle-end/66702
5963 * testsuite/libgomp.c++/pr66702-1.C: New test.
5964 * testsuite/libgomp.c++/pr66702-2.C: New test.
5965
5966 2015-06-30 Tom de Vries <tom@codesourcery.com>
5967
5968 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
5969 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
5970 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
5971 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
5972
5973 2015-06-30 Tom de Vries <tom@codesourcery.com>
5974
5975 PR tree-optimization/66652
5976 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
5977 using restrict pointers.
5978 (main): Add arguments to calls to f.
5979 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5980
5981 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
5982
5983 * configure.ac: Fix check for header <sys/sysctl.h>.
5984 * configure: Regenerate.
5985 * config.h.in: Likewise.
5986
5987 2015-06-23 Tom de Vries <tom@codesourcery.com>
5988
5989 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
5990 abort.
5991 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
5992
5993 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
5994
5995 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
5996 acc_device_nvidia.
5997
5998 PR libgomp/66518
5999 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
6000 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6001
6002 2015-06-15 Tom de Vries <tom@codesourcery.com>
6003
6004 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
6005 dg-additional-options for any remaining options.
6006 * testsuite/libgomp.c/atomic-2.c: Same.
6007 * testsuite/libgomp.c/atomic-4.c: Same.
6008 * testsuite/libgomp.c/atomic-5.c: Same.
6009 * testsuite/libgomp.c/atomic-6.c: Same.
6010 * testsuite/libgomp.c/autopar-1.c: Same.
6011 * testsuite/libgomp.c/copyin-1.c: Same.
6012 * testsuite/libgomp.c/copyin-2.c: Same.
6013 * testsuite/libgomp.c/copyin-3.c: Same.
6014 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
6015 * testsuite/libgomp.c/nestedfn-5.c: Same.
6016 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
6017 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
6018 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
6019 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6020 * testsuite/libgomp.c/pr32362-1.c: Same.
6021 * testsuite/libgomp.c/pr32362-2.c: Same.
6022 * testsuite/libgomp.c/pr32362-3.c: Same.
6023 * testsuite/libgomp.c/pr39591-1.c: Same.
6024 * testsuite/libgomp.c/pr39591-2.c: Same.
6025 * testsuite/libgomp.c/pr39591-3.c: Same.
6026 * testsuite/libgomp.c/pr58392.c: Same.
6027 * testsuite/libgomp.c/pr58756.c: Same.
6028 * testsuite/libgomp.c/simd-1.c: Same.
6029 * testsuite/libgomp.c/simd-10.c: Same.
6030 * testsuite/libgomp.c/simd-11.c: Same.
6031 * testsuite/libgomp.c/simd-12.c: Same.
6032 * testsuite/libgomp.c/simd-13.c: Same.
6033 * testsuite/libgomp.c/simd-14.c: Same.
6034 * testsuite/libgomp.c/simd-15.c: Same.
6035 * testsuite/libgomp.c/simd-2.c: Same.
6036 * testsuite/libgomp.c/simd-3.c: Same.
6037 * testsuite/libgomp.c/simd-4.c: Same.
6038 * testsuite/libgomp.c/simd-5.c: Same.
6039 * testsuite/libgomp.c/simd-6.c: Same.
6040 * testsuite/libgomp.c/simd-7.c: Same.
6041 * testsuite/libgomp.c/simd-8.c: Same.
6042 * testsuite/libgomp.c/simd-9.c: Same.
6043
6044 2015-06-15 Tom de Vries <tom@codesourcery.com>
6045
6046 * testsuite/libgomp.c/pr35625.c: Fix typo.
6047
6048 2015-06-15 Tom de Vries <tom@codesourcery.com>
6049
6050 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
6051 in dg-options.
6052 * testsuite/libgomp.c/atomic-3.c: Same.
6053 * testsuite/libgomp.c/debug-1.c: Same.
6054 * testsuite/libgomp.c/nqueens-1.c: Same.
6055 * testsuite/libgomp.c/pr26171.c: Same.
6056 * testsuite/libgomp.c/pr48591.c: Same.
6057 * testsuite/libgomp.c/pr64824.c: Same.
6058 * testsuite/libgomp.c/pr64868.c: Same.
6059 * testsuite/libgomp.c/pr66133.c: Same.
6060 * testsuite/libgomp.c/pr66199-1.c: Same.
6061 * testsuite/libgomp.c/pr66199-2.c: Same.
6062 * testsuite/libgomp.c/target-8.c: Same.
6063
6064 2015-06-15 Tom de Vries <tom@codesourcery.com>
6065
6066 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
6067 -std={gnu99,c99}.
6068 * testsuite/libgomp.c/for-1.c: Same.
6069 * testsuite/libgomp.c/for-2.c: Same.
6070 * testsuite/libgomp.c/for-3.c: Same.
6071 * testsuite/libgomp.c/pr35625.c: Same.
6072 * testsuite/libgomp.c/pr39154.c: Same.
6073 * testsuite/libgomp.c/simd-16.c: Same.
6074 * testsuite/libgomp.c/simd-17.c: Same.
6075
6076 2015-06-13 Tom de Vries <tom@codesourcery.com>
6077
6078 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6079
6080 2015-06-13 Tom de Vries <tom@codesourcery.com>
6081
6082 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6083 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6084 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6085 (N): Define.
6086 (main): Use N instead of hardcoded constants.
6087
6088 2015-06-05 Tom de Vries <tom@codesourcery.com>
6089
6090 merge from gomp4 branch:
6091 2015-05-28 Tom de Vries <tom@codesourcery.com>
6092
6093 PR tree-optimization/65443
6094 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6095 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6096 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6097
6098 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6099
6100 * testsuite/libgomp.graphite/bounds.c: Adjust for
6101 cleanup-tree-dump removal.
6102 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6103 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6104 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6105 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6106 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6107 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6108 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6109 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6110 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6111 * testsuite/libgomp.graphite/pr41118.c: Likewise.
6112
6113 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
6114
6115 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6116 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6117 (futex_wake) [!__x86_64__]: Ditto.
6118
6119 2015-05-28 Julian Brown <julian@codesourcery.com>
6120
6121 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6122 function comment. Only call gomp_fatal if new argument is true.
6123 (acc_dev_num_out_of_range): New function.
6124 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6125 acc_dev_num_out_of_range as appropriate.
6126 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6127 (acc_get_device_num, acc_set_device_num): Update calls to
6128 resolve_device.
6129 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6130 output.
6131
6132 2015-05-28 Julian Brown <julian@codesourcery.com>
6133
6134 PR libgomp/65742
6135 * oacc-init.c (plugin/plugin-host.h): Include.
6136 (acc_on_device): Check whether we're in an offloaded region for
6137 host_nonshm
6138 plugin. Don't use __builtin_acc_on_device.
6139 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6140 nonshm_exec flag in thread-local data.
6141 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6142 data for host_nonshm plugin.
6143 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6144 for host_nonshm plugin.
6145 * plugin/plugin-host.h: New.
6146
6147 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6148
6149 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6150
6151 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6152
6153 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6154 Declare as int.
6155 (FUTEX_PRIVATE_FLAG): Remove L suffix.
6156 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6157 Declare as int.
6158
6159 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6160
6161 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
6162
6163 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
6164
6165 * target.c (gomp_map_pointer): New function abstracting out
6166 GOMP_MAP_POINTER handling.
6167 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6168 gomp_map_pointer().
6169
6170 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6171
6172 PR middle-end/66199
6173 * testsuite/libgomp.c/pr66199-1.c: New test.
6174 * testsuite/libgomp.c/pr66199-2.c: New test.
6175 * testsuite/libgomp.c++/pr66199-1.C: New test.
6176 * testsuite/libgomp.c++/pr66199-2.C: New test.
6177 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6178 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6179
6180 2015-05-19 Julian Brown <julian@codesourcery.com>
6181
6182 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6183 on cuInit failure.
6184
6185 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6186
6187 PR middle-end/66133
6188 * testsuite/libgomp.c/pr66133.c: New test.
6189
6190 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6191
6192 * Makefile.in: Regenerated with automake-1.11.6.
6193 * aclocal.m4: Likewise.
6194 * config.h.in: Likewise.
6195 * configure: Likewise.
6196 * testsuite/Makefile.in: Likewise.
6197
6198 2015-05-08 Jason Merrill <jason@redhat.com>
6199
6200 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6201 _Complex.
6202
6203 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6204
6205 2015-05-06 Julian Brown <julian@codesourcery.com>
6206
6207 * oacc-init.c (acc_device_lock): Add explanatory comment.
6208 (resolve_device): Add comment about locking requirement.
6209 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6210 gomp_init_device and gomp_fini_device calls.
6211 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6212 (acc_get_device_num, acc_set_device_num): Add locking around
6213 resolve_device and gomp_init_device calls.
6214
6215 2015-05-06 Julian Brown <julian@codesourcery.com>
6216
6217 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6218 goacc_thread_lock on error paths.
6219 * oacc-mem.c (lookup_host): Remove locking from function. Note
6220 locking requirement for caller in function comment.
6221 (lookup_dev): Likewise.
6222 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6223 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6224 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6225 Add locking.
6226
6227 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
6228
6229 PR testsuite/65205
6230 PR libgomp/65993
6231 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6232 don't expect "0x" prefix for "%p" format specifier, don't expect
6233 "(nil)" for NULL pointer.
6234 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6235 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6236 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6237 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6238 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6239 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6240 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6241 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6242 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6243 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6244 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6245 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6246 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6247 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6248 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6249 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6250 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6251 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6252 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6253 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6254 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6255 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6256 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6257 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6258 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6259 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6260 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6261 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6262 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
6263 accurately specify what we're looking for.
6264 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6265 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6266 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6267 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6268 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6269
6270 2015-04-30 James Norris <jnorris@codesourcery.com>
6271
6272 PR testsuite/65205
6273 * testsuite/lib/libgomp.exp
6274 (check_effective_target_openacc_host_selected)
6275 (check_effective_target_openacc_host_nonshm_selected): New
6276 procedures.
6277 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
6278 dg-shouldfail.
6279 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6280 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6281 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6282 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6283 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6284 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6285 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6286 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6287 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6288 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6289 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6290 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6291 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6292 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6293 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6294 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6295 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6296 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6297 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6298 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6299 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6300 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6301 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6302 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6303 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6304 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6305 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6306 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6307 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6308 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6309 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6310 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6311 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6312 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6313 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6314 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6315 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6316 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6317 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6318 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6319 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6320 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6321 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6322
6323 2015-04-08 Julian Brown <julian@codesourcery.com>
6324
6325 * libgomp.h (target_mem_desc: Remove mem_map field.
6326 (acc_dispatch_t): Remove open_device_func, close_device_func,
6327 get_device_num_func, set_device_num_func, target_data members.
6328 Change create_thread_data_func argument to device number instead of
6329 generic pointer.
6330 * oacc-async.c (assert.h): Include.
6331 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
6332 (acc_wait_all, acc_wait_all_async): Use current host thread's
6333 active device, not base_dev.
6334 * oacc-cuda.c (acc_get_current_cuda_device)
6335 (acc_get_current_cuda_context, acc_get_cuda_stream)
6336 (acc_set_cuda_stream): Likewise.
6337 * oacc-host.c (host_dispatch): Don't set open_device_func,
6338 close_device_func, get_device_num_func or set_device_num_func.
6339 * oacc-init.c (base_dev, init_key): Remove.
6340 (cached_base_dev): New.
6341 (name_of_acc_device_t): New.
6342 (acc_init_1): Initialise default-numbered device, not zeroth.
6343 (acc_shutdown_1): Close all devices of a given type.
6344 (goacc_destroy_thread): Don't use base_dev.
6345 (lazy_open, lazy_init, lazy_init_and_open): Remove.
6346 (goacc_attach_host_thread_to_device): New.
6347 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
6348 (acc_get_num_devices): Don't use base_dev.
6349 (acc_set_device_type): Reimplement.
6350 (acc_get_device_type): Don't use base_dev.
6351 (acc_get_device_num): Tweak logic.
6352 (acc_set_device_num): Likewise.
6353 (acc_on_device): Use acc_get_device_type.
6354 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
6355 (goacc_lazy_initialize): Reimplement with acc_init and
6356 goacc_attach_host_thread_to_device.
6357 * oacc-int.h (goacc_thread): Add base_dev field.
6358 (base_dev): Remove extern declaration.
6359 (goacc_attach_host_thread_to_device): Add prototype.
6360 * oacc-mem.c (acc_malloc): Use current thread's device instead of
6361 base_dev.
6362 (acc_free): Likewise.
6363 (acc_memcpy_to_device): Likewise.
6364 (acc_memcpy_from_device): Likewise.
6365 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
6366 goacc_lazy_initialize (throughout).
6367 (GOACC_parallel): Use tgt_offset to locate target functions.
6368 * target.c (gomp_map_vars): Don't set tgt->mem_map.
6369 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
6370 (gomp_load_plugin_for_device): Remove open_device, close_device,
6371 get_device_num, set_device_num openacc hook initialisation. Don't set
6372 openacc.target_data.
6373 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6374 (GOMP_OFFLOAD_openacc_close_device)
6375 (GOMP_OFFLOAD_openacc_get_device_num)
6376 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6377 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6378 to int.
6379 * plugin/plugin-nvptx.c (ptx_inited): Remove.
6380 (instantiated_devices, ptx_dev_lock): New.
6381 (struct ptx_image_data): New.
6382 (ptx_devices, ptx_images, ptx_image_lock): New.
6383 (fini_streams_for_device): Reorder cuStreamDestroy call.
6384 (nvptx_get_num_devices): Remove forward declaration.
6385 (nvptx_init): Change return type to bool.
6386 (nvptx_fini): Remove.
6387 (nvptx_attach_host_thread_to_device): New.
6388 (nvptx_open_device): Return struct ptx_device* instead of void*.
6389 (nvptx_close_device): Change argument type to struct ptx_device*,
6390 return type to void.
6391 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6392 (kernel_target_data, kernel_host_table): Remove static globals.
6393 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6394 (GOMP_OFFLOAD_init_device): Reimplement.
6395 (GOMP_OFFLOAD_fini_device): Likewise.
6396 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6397 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6398 (GOMP_OFFLOAD_host2dev): Use ORD argument.
6399 (GOMP_OFFLOAD_openacc_open_device)
6400 (GOMP_OFFLOAD_openacc_close_device)
6401 (GOMP_OFFLOAD_openacc_set_device_num)
6402 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6403 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6404 (device number).
6405
6406 testsuite/
6407 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6408
6409 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
6410
6411 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6412 * libgomp.h (struct gomp_memory_mapping): Remove.
6413 (struct target_mem_desc): Change type of mem_map from
6414 gomp_memory_mapping * to splay_tree_s *.
6415 (struct gomp_device_descr): Remove register_image_func, get_table_func.
6416 Add load_image_func, unload_image_func.
6417 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6418 Remove offload_regions_registered.
6419 (gomp_init_tables): Remove.
6420 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6421 to splay_tree_s *.
6422 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6423 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6424 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6425 offload_regions_registered.
6426 Initialize load_image_func, unload_image_func, mem_map.root.
6427 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6428 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6429 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6430 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6431 gomp_memory_mapping *. Use dev's lock and splay_tree.
6432 (lookup_dev): Use dev's lock.
6433 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6434 (acc_is_present): Likewise.
6435 (acc_map_data): Likewise.
6436 (acc_unmap_data): Likewise. Use dev's lock.
6437 (present_create_copy): Likewise.
6438 (delete_copyout): Pass dev to lookup_host instead of mem_map.
6439 (update_dev_host): Likewise.
6440 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
6441 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6442 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6443 (GOMP_OFFLOAD_get_table): Remove
6444 (GOMP_OFFLOAD_load_image): New function.
6445 (GOMP_OFFLOAD_unload_image): New function.
6446 * target.c (register_lock): New mutex for offload image registration.
6447 (num_devices): Do not guard with PLUGIN_SUPPORT.
6448 (gomp_realloc_unlock): New static function.
6449 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
6450 before gomp_fatal.
6451 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6452 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
6453 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6454 mem_map's.
6455 (gomp_unmap_vars): Likewise.
6456 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
6457 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
6458 (gomp_offload_image_to_device): New static function.
6459 (GOMP_offload_register): Add mutex lock.
6460 Call gomp_offload_image_to_device for all initialized devices.
6461 Replace gomp_realloc with gomp_realloc_unlock.
6462 (GOMP_offload_unregister): New function.
6463 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
6464 get_table_func from the plugin with calls to init_device_func and
6465 gomp_offload_image_to_device.
6466 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6467 to splay_tree_s *.
6468 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
6469 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
6470 (GOMP_target_data): Do not call gomp_init_tables.
6471 (GOMP_target_update): Likewise. Remove argument from gomp_update.
6472 (gomp_load_plugin_for_device): Replace register_image and get_table
6473 with load_image and unload_image in DLSYM ().
6474 (gomp_register_images_for_device): Remove function.
6475 (gomp_target_init): Do not initialize current_device.mem_map.*,
6476 current_device.offload_regions_registered.
6477 Remove call to gomp_register_images_for_device.
6478 Do not free offload_images and num_offload_images.
6479
6480 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6481
6482 PR fortran/65597
6483 * testsuite/libgomp.fortran/pr65597.f90: New test.
6484
6485 2015-03-27 Tom de Vries <tom@codesourcery.com>
6486
6487 PR testsuite/65594
6488 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6489 (init, check): New function.
6490 (foo): Change return type to void.
6491 (main): Call init and check.
6492
6493 2015-03-27 Tom de Vries <tom@codesourcery.com>
6494
6495 PR testsuite/65594
6496 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6497 (foo): Use M for non-inner loops to scale down test-case.
6498
6499 2015-03-25 Kai Tietz <ktietz@redhat.com>
6500
6501 PR libgomp/64972
6502 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6503 (GOACC_data_start): Likewise.
6504 * target.c (gomp_map_vars): Likewise.
6505
6506 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
6507
6508 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6509 hppa*-*-hpux*.
6510
6511 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6512
6513 * testsuite/libgomp.c/target-10.c: New test.
6514 * testsuite/libgomp.c++/target-4.C: New test.
6515
6516 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6517
6518 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6519 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6520
6521 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
6522
6523 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6524 * configure.ac (*-*-rtems*): Assume Pthread is supported.
6525 (pthread.h): Check for this header file.
6526 * configure: Regenerate.
6527
6528 2015-02-25 Tom de Vries <tom@codesourcery.com>
6529
6530 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6531 (check_reduction_op, check_reduction_macro, max, min):
6532 Declare.
6533 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6534 function.
6535 (main): Use new functions.
6536
6537 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
6538
6539 * target.c (gomp_load_plugin_for_device): Use const char * instead of
6540 char * for variables holding dlerror return values.
6541 (DLSYM_OPT): Ditto.
6542
6543 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6544
6545 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6546
6547 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6548 Cesar Philippidis <cesar@codesourcery.com>
6549
6550 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6551 GOACC_ctaid, and GOACC_nctaid routines.
6552
6553 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6554
6555 PR c/64824
6556 * testsuite/libgomp.c/atomic-18.c: New test.
6557 * testsuite/libgomp.c++/atomic-16.C: New test.
6558
6559 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6560
6561 PR c/64824
6562 PR c/64868
6563 * testsuite/libgomp.c/pr64824.c: New test.
6564 * testsuite/libgomp.c/pr64868.c: New test.
6565 * testsuite/libgomp.c++/pr64824.C: New test.
6566 * testsuite/libgomp.c++/pr64868.C: New test.
6567
6568 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6569
6570 PR libgomp/64635
6571 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6572 Link with -lpthread.
6573 * config/aix/plugin-suffix.h: Delete.
6574
6575 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
6576
6577 PR libgomp/64635
6578 * configure.tgt (*-*-aix*): Use config_path "aix posix".
6579 (*-*-darwin*): Use config_path "bsd darwin posix".
6580 (*-*-hpux*): Use config_path "hpux posix".
6581 * target.c: Add include of plugin-suffix.h and use
6582 SONAME_SUFFIX macro.
6583 * config/aix/plugin-suffix.h: New file.
6584 * config/darwin/plugin-suffix.h: New file.
6585 * config/hpux/plugin-suffix.h: New file.
6586 * config/posix/plugin-suffix.h: New file.
6587
6588 2015-01-23 Jakub Jelinek <jakub@redhat.com>
6589
6590 PR middle-end/64734
6591 * libgomp.c/pr64734.c: New test.
6592
6593 2015-01-23 Tom de Vries <tom@codesourcery.com>
6594
6595 PR libgomp/64672
6596 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6597
6598 2015-01-23 Tom de Vries <tom@codesourcery.com>
6599
6600 PR libgomp/64707
6601 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6602 dg-options.
6603
6604 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
6605
6606 PR libgomp/64625
6607 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6608 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6609 formal parameter. Update all users.
6610 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6611 Document unused formal parameter.
6612
6613 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
6614
6615 * oacc-parallel.c: Don't include <alloca.h>.
6616 (GOACC_parallel): Use gomp_alloca instead of alloca.
6617
6618 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
6619
6620 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6621
6622 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6623 James Norris <jnorris@codesourcery.com>
6624 Tom de Vries <tom@codesourcery.com>
6625 Julian Brown <julian@codesourcery.com>
6626 Cesar Philippidis <cesar@codesourcery.com>
6627 Nathan Sidwell <nathan@codesourcery.com>
6628 Tobias Burnus <burnus@net-b.de>
6629
6630 * Makefile.am (search_path): Add $(top_srcdir)/../include.
6631 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6632 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6633 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6634 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6635 Include $(top_srcdir)/plugin/Makefrag.am.
6636 (nodist_libsubinclude_HEADERS): Add openacc.h.
6637 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6638 openacc.f90, openacc.mod, openacc_kinds.mod.
6639 (omp_lib.mod): Generalize into...
6640 (%.mod): ... this new rule.
6641 (openacc_kinds.mod, openacc.mod): New rules.
6642 * plugin/configfrag.ac: New file.
6643 * configure.ac: Move plugin/offloading support into it. Include
6644 it. Instantiate testsuite/libgomp-test-support.pt.exp.
6645 * plugin/Makefrag.am: New file.
6646 * testsuite/Makefile.am (OFFLOAD_TARGETS)
6647 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6648 export.
6649 (libgomp-test-support.exp): New rule.
6650 (all-local): Depend on it.
6651 * Makefile.in: Regenerate.
6652 * testsuite/Makefile.in: Regenerate.
6653 * config.h.in: Likewise.
6654 * configure: Likewise.
6655 * configure.tgt: Harden shell syntax.
6656 * env.c: Include "oacc-int.h".
6657 (parse_acc_device_type): New function.
6658 (gomp_debug_var, goacc_device_type, goacc_device_num): New
6659 variables.
6660 (initialize_env): Initialize those. Call
6661 goacc_runtime_initialize.
6662 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6663 (gomp_fatal): Call gomp_vfatal.
6664 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6665 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6666 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6667 (splay_tree_node, splay_tree, splay_tree_key)
6668 (struct target_mem_desc, struct splay_tree_key_s)
6669 (struct gomp_memory_mapping, struct acc_dispatch_t)
6670 (struct gomp_device_descr, gomp_acc_insert_pointer)
6671 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6672 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6673 (gomp_free_memmap, gomp_fini_device): New declarations.
6674 (gomp_vdebug, gomp_debug): New macros.
6675 Include "splay-tree.h".
6676 * libgomp.map (OACC_2.0): New symbol version. Use for
6677 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6678 acc_set_device_type_h_, acc_get_device_type,
6679 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6680 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6681 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6682 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6683 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6684 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6685 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6686 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6687 acc_copyin_array_h_, acc_present_or_copyin,
6688 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6689 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6690 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6691 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6692 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6693 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6694 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6695 acc_update_device, acc_update_device_32_h_,
6696 acc_update_device_64_h_, acc_update_device_array_h_,
6697 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6698 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6699 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6700 acc_is_present_64_h_, acc_is_present_array_h_,
6701 acc_memcpy_to_device, acc_memcpy_from_device,
6702 acc_get_current_cuda_device, acc_get_current_cuda_context,
6703 acc_get_cuda_stream, acc_set_cuda_stream.
6704 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
6705 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6706 GOACC_update, GOACC_wait, GOACC_get_thread_num,
6707 GOACC_get_num_threads.
6708 (GOMP_PLUGIN_1.0): New symbol version. Use for
6709 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6710 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6711 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6712 GOMP_PLUGIN_acc_thread.
6713 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6714 environment variable.
6715 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6716 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6717 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6718 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6719 (splay_tree_remove): New declarations.
6720 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6721 (splay_tree_remove, splay_tree_lookup): Move into...
6722 * splay-tree.c: ... this new file.
6723 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6724 (splay_tree_node, splay_tree, splay_tree_key)
6725 (struct target_mem_desc, struct splay_tree_key_s)
6726 (struct gomp_device_descr): Don't declare.
6727 (num_devices_openmp): New variable.
6728 (gomp_get_num_devices ): Use it.
6729 (gomp_init_targets_once): New function.
6730 (gomp_get_num_devices ): Use it.
6731 (get_kind, gomp_copy_from_async, gomp_free_memmap)
6732 (gomp_fini_device, gomp_register_image_for_device): New functions.
6733 (gomp_map_vars): Add devaddrs parameter.
6734 (gomp_update): Add mm parameter.
6735 (gomp_init_device): Move most of it into...
6736 (gomp_init_tables): ... this new function.
6737 (gomp_register_images_for_device): Remove function.
6738 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6739 Make them hidden instead of static.
6740 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6741 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6742 (GOMP_target_end_data, GOMP_target_update)
6743 (gomp_load_plugin_for_device, gomp_target_init): Update for
6744 OpenACC changes.
6745 * oacc-async.c: New file.
6746 * oacc-cuda.c: Likewise.
6747 * oacc-host.c: Likewise.
6748 * oacc-init.c: Likewise.
6749 * oacc-int.h: Likewise.
6750 * oacc-mem.c: Likewise.
6751 * oacc-parallel.c: Likewise.
6752 * oacc-plugin.c: Likewise.
6753 * oacc-plugin.h: Likewise.
6754 * oacc-ptx.h: Likewise.
6755 * openacc.f90: Likewise.
6756 * openacc.h: Likewise.
6757 * openacc_lib.h: Likewise.
6758 * plugin/plugin-host.c: Likewise.
6759 * plugin/plugin-nvptx.c: Likewise.
6760 * libgomp-plugin.c: Likewise.
6761 * libgomp-plugin.h: Likewise.
6762 * libgomp_target.h: Remove file after merging content into the
6763 former file. Update all users.
6764 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6765 (offload_targets_s, offload_targets_s_openacc): New variables.
6766 (check_effective_target_openacc_nvidia_accel_present)
6767 (check_effective_target_openacc_nvidia_accel_selected): New
6768 procedures.
6769 (libgomp_init): Update for OpenACC changes.
6770 * testsuite/libgomp-test-support.exp.in: New file.
6771 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6772 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6773 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6774 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6775 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6776 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6777 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6778 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6779 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6780 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6781 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6782 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6783 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6784 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6785 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6786 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6787 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6788 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6789 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6790 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6791 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6792 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6793 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6794 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6795 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6796 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6797 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6798 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6799 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6800 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6801 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6802 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6803 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6804 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6805 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6806 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6807 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6808 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6809 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6810 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6811 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6812 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6813 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6814 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6815 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6816 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6817 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6818 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6819 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6820 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6821 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6822 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6823 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6824 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6825 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6826 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6827 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6828 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6829 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6830 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6831 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6832 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6833 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6834 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6835 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6836 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6837 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6838 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6839 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6840 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6841 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6842 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6843 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6844 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6845 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6846 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6847 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6848 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6849 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6850 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6851 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6852 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6853 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6854 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6855 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6856 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6857 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6858 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6859 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6860 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6861 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6862 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6863 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6864 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6865 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6866 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6867 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6868 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6869 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6870 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6871 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6872 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6873 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6874 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6875 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6876 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6877 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6878 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6879 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6880 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6881 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6882 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6883 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6884 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6885 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6886 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6887 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6888 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6889 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
6890 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
6891 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
6892 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
6893 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6894 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6895 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6896 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
6897 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6898 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
6899 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
6900 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
6901 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
6902 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
6903 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6904 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
6905 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6906 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6907 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6908 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6909 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6910 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
6911 Likewise.
6912 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
6913 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
6914 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
6915 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6916 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
6917 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6918 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6919 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6920 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6921 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6922 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6923 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6924 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6925 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6926 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6927 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6928 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6929 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6930 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6931 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6932 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
6933 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6934 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6935 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
6936 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6937 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
6938 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6939 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6940 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6941 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6942 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6943 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6944 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6945 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6946 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
6947 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6948 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
6949 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
6950 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
6951 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6952 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
6953 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6954 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6955 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
6956 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
6957 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6958 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
6959 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
6960 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6961 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6962 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6963 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6964 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6965 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6966 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
6967 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
6968 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
6969 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
6970 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
6971 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
6972
6973 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
6974 Julian Brown <julian@codesourcery.com>
6975 David Malcolm <dmalcolm@redhat.com>
6976
6977 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
6978 to "GNU Offloading and Multi Processing Runtime Library". Change
6979 all users.
6980 * configure: Regenerate.
6981 * libgomp.texi: Update.
6982
6983 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
6984
6985 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
6986 "$tgt_dir/lib32".
6987 * configure: Regenerate.
6988
6989 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
6990 "intelmic" in $offload_targets.
6991
6992 2015-01-05 Jakub Jelinek <jakub@redhat.com>
6993
6994 Update copyright years.
6995
6996 * libgomp.texi: Bump @copying's copyright year.
6997
6998 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6999
7000 * testsuite/lib/libgomp.exp: Load target-utils.exp.
7001 Move load of target-supportes.exp earlier.
7002
7003 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
7004
7005 * testsuite/libgomp.c/target-9.c: New test.
7006
7007 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
7008
7009 * config.h.in: Regenerate.
7010 * configure: Regenerate.
7011 * configure.ac: Add GCC_CHECK_EMUTLS.
7012 * libgomp.h: Add check for USE_EMUTLS: this case
7013 is equal to HAVE_TLS.
7014 * team.c: Likewise.
7015
7016 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
7017
7018 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
7019
7020 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
7021 Ilya Verbin <ilya.verbin@intel.com>
7022
7023 * testsuite/libgomp.c/target-critical-1.c: New test.
7024
7025 2014-11-26 Jakub Jelinek <jakub@redhat.com>
7026
7027 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
7028 to dg-options unless expensive testing is on.
7029 (TESTITERS): Define to N if not defined.
7030 (main): Use TESTITERS instead of N.
7031 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
7032 dg-additional-options depending on whether expensive testing is on.
7033 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
7034 Decrease N to 100000 and CHUNKSZ to 10000.
7035
7036 2014-11-24 Jakub Jelinek <jakub@redhat.com>
7037
7038 PR fortran/63938
7039 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
7040 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
7041
7042 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
7043
7044 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
7045
7046 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
7047
7048 PR bootstrap/63784
7049 * configure: Regenerated.
7050
7051 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
7052
7053 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
7054 vect_simd_clones effective target.
7055 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7056
7057 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7058
7059 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
7060 of 32 as block_size.
7061 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
7062 instead of 32 as block_size.
7063
7064 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7065 Ilya Verbin <ilya.verbin@intel.com>
7066
7067 * Makefile.in: Regenerate.
7068 * configure: Regenerate.
7069 * configure.ac: Set up offload_additional_options,
7070 offload_additional_lib_paths and offload_targets.
7071 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7072 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7073 * testsuite/Makefile.in: Regenerate.
7074 * testsuite/lib/libgomp.exp (libgomp_init): Append
7075 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
7076 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
7077 build directory to LD_LIBRARY_PATH for intelmic offload targets.
7078
7079 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7080 Ilya Verbin <ilya.verbin@intel.com>
7081 Kirill Yukhin <kirill.yukhin@intel.com>
7082 Ilya Tocar <ilya.tocar@intel.com>
7083
7084 * testsuite/lib/libgomp.exp
7085 (check_effective_target_offload_device): New.
7086 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7087 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7088 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7089 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7090 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7091 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7092 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7093 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7094 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7095 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7096 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7097 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7098 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7099 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7100 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7101 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7102 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7103 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7104 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7105 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7106 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7107 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7108 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7109 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7110 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7111 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7112 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7113 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7114 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7115 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7116 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7117 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7118 * testsuite/libgomp.c/target-7.c: Fix test.
7119 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7120 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7121 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7122 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7123 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7124 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7125 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7126 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7127 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7128 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7129 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7130 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7131 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7132 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7133 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7134 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7135 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7136 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7137 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7138 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7139 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7140 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7141 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7142 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7143 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7144 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7145 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7146 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7147 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7148 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7149 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7150
7151 2014-11-13 Jakub Jelinek <jakub@redhat.com>
7152 Ilya Verbin <ilya.verbin@intel.com>
7153 Thomas Schwinge <thomas@codesourcery.com>
7154 Andrey Turetskiy <andrey.turetskiy@intel.com>
7155
7156 * libgomp.map (GOMP_4.0.1): New symbol version.
7157 Add GOMP_offload_register.
7158 * libgomp_target.h: New file.
7159 * splay-tree.h: New file.
7160 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7161 (gomp_target_init): New forward declaration.
7162 (gomp_is_initialized): New static variable.
7163 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7164 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7165 New structures.
7166 (offload_images, num_offload_images, devices, num_devices): New static
7167 variables.
7168 (splay_compare): New static function.
7169 (struct gomp_device_descr): New structure.
7170 (gomp_get_num_devices): Call gomp_target_init.
7171 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7172 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7173 (GOMP_offload_register): New function.
7174 (GOMP_target): Arrange for host callback to be performed in a separate
7175 initial thread and contention group, inheriting ICVs from
7176 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
7177 Add device initialization and lookup for target function in splay tree.
7178 (GOMP_target_data): Add device initialization and call gomp_map_vars.
7179 (GOMP_target_end_data): Call gomp_unmap_vars.
7180 (GOMP_target_update): Add device initialization and call gomp_update.
7181 (gomp_load_plugin_for_device, gomp_register_images_for_device)
7182 (gomp_target_init): New static functions.
7183
7184 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7185 Thomas Schwinge <thomas@codesourcery.com>
7186 Ilya Verbin <ilya.verbin@intel.com>
7187 Andrey Turetskiy <andrey.turetskiy@intel.com>
7188
7189 * config.h.in: Regenerate.
7190 * configure: Regenerate.
7191 * configure.ac: Check for libdl, required for plugin support.
7192 (PLUGIN_SUPPORT): Define if plugins are supported.
7193 (enable_offload_targets): Support Intel MIC targets.
7194 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7195
7196 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7197
7198 PR target/63610
7199 * configure: Regenerate.
7200
7201 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7202
7203 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7204
7205 2014-10-06 Marek Polacek <polacek@redhat.com>
7206
7207 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7208 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7209 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7210 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7211
7212 2014-10-06 Marek Polacek <polacek@redhat.com>
7213
7214 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7215 * testsuite/libgomp.c/nqueens-1.c: Likewise.
7216 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7217 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7218 * testsuite/libgomp.c/pr36802-2.c: Likewise.
7219 * testsuite/libgomp.c/pr36802-3.c: Likewise.
7220 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7221 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7222 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7223 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7224 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7225 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7226 * testsuite/libgomp.c/omp-single-1.c: Likewise.
7227 * testsuite/libgomp.c/omp-single-2.c: Likewise.
7228 * testsuite/libgomp.c/omp_matvec.c: Likewise.
7229 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7230 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7231 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
7232 declarations.
7233
7234 2014-10-03 Jakub Jelinek <jakub@redhat.com>
7235
7236 PR libgomp/61200
7237 * testsuite/libgomp.c/pr61200.c: New test.
7238
7239 2014-09-18 Jakub Jelinek <jakub@redhat.com>
7240
7241 PR c++/63248
7242 * testsuite/libgomp.c++/pr63248.C: New test.
7243
7244 2014-08-04 Jakub Jelinek <jakub@redhat.com>
7245
7246 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
7247 is not zero, but taskgroup->children is NULL and there are
7248 any task->children, schedule those instead of waiting.
7249 * testsuite/libgomp.c/depend-6.c: New test.
7250 * testsuite/libgomp.c/depend-7.c: New test.
7251 * testsuite/libgomp.c/depend-8.c: New test.
7252 * testsuite/libgomp.c/depend-9.c: New test.
7253 * testsuite/libgomp.c/depend-10.c: New test.
7254
7255 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7256
7257 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
7258 (struct gomp_taskwait): New type.
7259 (struct gomp_task): Add taskwait and parent_depends_on, remove
7260 in_taskwait and taskwait_sem fields.
7261 (gomp_finish_task): Don't destroy taskwait_sem.
7262 * task.c (gomp_init_task): Don't init in_taskwait, instead init
7263 taskwait and parent_depends_on.
7264 (GOMP_task): For if (0) tasks with depend clause that depend on
7265 earlier tasks don't defer them, instead call
7266 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
7267 Initialize redundant_out field, for redundant out entries just
7268 move them at the end of linked list instead of removing them
7269 completely, and set redundant_out flag instead of redundant.
7270 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
7271 that task.
7272 (gomp_task_run_post_handle_dependers): If parent is in
7273 gomp_task_maybe_wait_for_dependencies and newly runnable task
7274 is not parent_depends_on, queue it in parent->children linked
7275 list after all runnable tasks with parent_depends_on set.
7276 Adjust for addition of taskwait indirection.
7277 (gomp_task_run_post_remove_parent): If parent is in
7278 gomp_task_maybe_wait_for_dependencies and task to be removed
7279 is parent_depends_on, decrement n_depend and if needed awake
7280 parent. Adjust for addition of taskwait indirection.
7281 (GOMP_taskwait): Adjust for addition of taskwait indirection.
7282 (gomp_task_maybe_wait_for_dependencies): New function.
7283 * testsuite/libgomp.c/depend-5.c: New test.
7284
7285 2014-07-13 Tobias Burnus <burnus@net-b.de>
7286
7287 * testsuite/libgomp.fortran/pr34020.f90: Make compile
7288 with TS 18508/Fortran 2015.
7289
7290 2014-07-06 Marek Polacek <polacek@redhat.com>
7291
7292 PR c/6940
7293 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
7294
7295 2014-07-03 Jakub Jelinek <jakub@redhat.com>
7296
7297 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
7298 matches regex $lang_source_re, add $lang_include_flags to options.
7299 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
7300 * testsuite/libgomp.c++/c++.exp: Likewise.
7301 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
7302 and lang_include_flags instead of adding -fintrinsic-modules-path= to
7303 ALWAYS_CFLAGS.
7304 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
7305
7306 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
7307
7308 * testsuite/libgomp.fortran/fortran.exp: Explain
7309 gfortran-dg-runtest usage.
7310
7311 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7312
7313 * testsuite/libgomp.fortran/simd5.f90: New test.
7314 * testsuite/libgomp.fortran/simd6.f90: New test.
7315 * testsuite/libgomp.fortran/simd7.f90: New test.
7316
7317 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7318
7319 * testsuite/libgomp.c/for-2.c: Define SC to static for
7320 #pragma omp for simd testing.
7321 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
7322 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
7323 SC macro.
7324 * testsuite/libgomp.c/simd-14.c: New test.
7325 * testsuite/libgomp.c/simd-15.c: New test.
7326 * testsuite/libgomp.c/simd-16.c: New test.
7327 * testsuite/libgomp.c/simd-17.c: New test.
7328 * testsuite/libgomp.c++/for-10.C: Define SC to static for
7329 #pragma omp for simd testing.
7330 * testsuite/libgomp.c++/simd10.C: New test.
7331 * testsuite/libgomp.c++/simd11.C: New test.
7332 * testsuite/libgomp.c++/simd12.C: New test.
7333 * testsuite/libgomp.c++/simd13.C: New test.
7334
7335 * testsuite/libgomp.fortran/aligned1.f03: New test.
7336 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
7337 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
7338 tasks with !$omp parallel !$omp single.
7339 * testsuite/libgomp.fortran/target8.f90: New test.
7340 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
7341 not to use trim in the combiner, instead call elemental function.
7342 (fn): New elemental function.
7343 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
7344 Make elemental.
7345 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
7346 omp_in): Likewise.
7347 * testsuite/libgomp.fortran/udr12.f90: New test.
7348 * testsuite/libgomp.fortran/udr13.f90: New test.
7349 * testsuite/libgomp.fortran/udr14.f90: New test.
7350 * testsuite/libgomp.fortran/udr15.f90: New test.
7351
7352 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7353
7354 * omp_lib.f90.in (openmp_version): Set to 201307.
7355 * omp_lib.h.in (openmp_version): Likewise.
7356 * testsuite/libgomp.c/target-8.c: New test.
7357 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
7358 and inbranch clauses.
7359 * testsuite/libgomp.fortran/depend-3.f90: New test.
7360 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
7361 openmp_version.
7362 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7363 * testsuite/libgomp.fortran/target1.f90: New test.
7364 * testsuite/libgomp.fortran/target2.f90: New test.
7365 * testsuite/libgomp.fortran/target3.f90: New test.
7366 * testsuite/libgomp.fortran/target4.f90: New test.
7367 * testsuite/libgomp.fortran/target5.f90: New test.
7368 * testsuite/libgomp.fortran/target6.f90: New test.
7369 * testsuite/libgomp.fortran/target7.f90: New test.
7370
7371 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7372
7373 PR fortran/60928
7374 * testsuite/libgomp.fortran/allocatable9.f90: New test.
7375 * testsuite/libgomp.fortran/allocatable10.f90: New test.
7376 * testsuite/libgomp.fortran/allocatable11.f90: New test.
7377 * testsuite/libgomp.fortran/allocatable12.f90: New test.
7378 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7379 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7380 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7381 * testsuite/libgomp.fortran/associate1.f90: New test.
7382 * testsuite/libgomp.fortran/associate2.f90: New test.
7383 * testsuite/libgomp.fortran/procptr1.f90: New test.
7384
7385 2014-06-06 Jakub Jelinek <jakub@redhat.com>
7386
7387 * testsuite/libgomp.fortran/simd1.f90: New test.
7388 * testsuite/libgomp.fortran/udr1.f90: New test.
7389 * testsuite/libgomp.fortran/udr2.f90: New test.
7390 * testsuite/libgomp.fortran/udr3.f90: New test.
7391 * testsuite/libgomp.fortran/udr4.f90: New test.
7392 * testsuite/libgomp.fortran/udr5.f90: New test.
7393 * testsuite/libgomp.fortran/udr6.f90: New test.
7394 * testsuite/libgomp.fortran/udr7.f90: New test.
7395 * testsuite/libgomp.fortran/udr8.f90: New test.
7396 * testsuite/libgomp.fortran/udr9.f90: New test.
7397 * testsuite/libgomp.fortran/udr10.f90: New test.
7398 * testsuite/libgomp.fortran/udr11.f90: New test.
7399
7400 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
7401
7402 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7403 vect_simd_clones effective target.
7404 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7405
7406 2014-05-21 Jakub Jelinek <jakub@redhat.com>
7407
7408 PR middle-end/61252
7409 * testsuite/libgomp.c++/simd-9.C: New test.
7410
7411 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
7412
7413 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7414 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7415 texts according to their @menu entry positions.
7416
7417 2014-05-11 Jakub Jelinek <jakub@redhat.com>
7418
7419 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7420 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7421 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7422 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7423 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7424 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7425 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7426 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7427 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7428 * testsuite/libgomp.fortran/depend-1.f90: New test.
7429 * testsuite/libgomp.fortran/depend-2.f90: New test.
7430 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7431 * testsuite/libgomp.fortran/simd1.f90: New test.
7432 * testsuite/libgomp.fortran/simd2.f90: New test.
7433 * testsuite/libgomp.fortran/simd3.f90: New test.
7434 * testsuite/libgomp.fortran/simd4.f90: New test.
7435 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7436
7437 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7438
7439 * testsuite/libgomp.c/simd-10.c: New test.
7440 * testsuite/libgomp.c/simd-11.c: New test.
7441 * testsuite/libgomp.c/simd-12.c: New test.
7442 * testsuite/libgomp.c/simd-13.c: New test.
7443
7444 2014-04-24 Jakub Jelinek <jakub@redhat.com>
7445
7446 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7447 atomic type clauses in any order and optional comma in between.
7448 * testsuite/libgomp.c++/atomic-15.C: Likewise.
7449 * testsuite/libgomp.c/atomic-17.c: Likewise.
7450
7451 * testsuite/libgomp.c/simd-7.c: New test.
7452 * testsuite/libgomp.c/simd-8.c: New test.
7453 * testsuite/libgomp.c/simd-9.c: New test.
7454 * testsuite/libgomp.c/loop-16.c: New test.
7455
7456 2014-04-02 Richard Henderson <rth@redhat.com>
7457
7458 * config/linux/futex.h (futex_wait): Get error value from errno.
7459 (futex_wake): Likewise.
7460
7461 2014-03-25 Jakub Jelinek <jakub@redhat.com>
7462
7463 PR c++/60331
7464 * testsuite/libgomp.c++/udr-11.C: New test.
7465 * testsuite/libgomp.c++/udr-12.C: New test.
7466 * testsuite/libgomp.c++/udr-13.C: New test.
7467 * testsuite/libgomp.c++/udr-14.C: New test.
7468 * testsuite/libgomp.c++/udr-15.C: New test.
7469 * testsuite/libgomp.c++/udr-16.C: New test.
7470 * testsuite/libgomp.c++/udr-17.C: New test.
7471 * testsuite/libgomp.c++/udr-18.C: New test.
7472 * testsuite/libgomp.c++/udr-19.C: New test.
7473
7474 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7475
7476 Update copyright years
7477
7478 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7479
7480 * hashtab.h: Use the standard form for the copyright notice.
7481
7482 2014-01-02 Tobias Burnus <burnus@net-b.de>
7483
7484 * libgomp.texi: Bump @copying's copyright year.
7485
7486 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7487
7488 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7489 alloca () with __builtin_alloca ().
7490 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7491 * testsuite/libgomp.c/lock-3.c: Likewise.
7492 * testsuite/libgomp.c/pr48591.c: Likewise.
7493
7494 2013-12-17 Jakub Jelinek <jakub@redhat.com>
7495
7496 PR testsuite/59534
7497 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7498 comparisons.
7499
7500 2013-12-16 Jakub Jelinek <jakub@redhat.com>
7501
7502 PR libgomp/58756
7503 * testsuite/libgomp.c/pr58756.c: New test.
7504
7505 2013-12-12 Jakub Jelinek <jakub@redhat.com>
7506
7507 PR libgomp/59467
7508 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7509 !$omp parallel.
7510
7511 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7512
7513 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7514 ALWAYS_CFLAGS.
7515 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7516 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7517 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7518 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7519 Likewise.
7520
7521 * libgomp_g.h: Include <stddef.h> for size_t.
7522
7523 * libgomp.spec.in: Update comment about libgomp's dependencies.
7524 * configure.ac: Likewise.
7525 * configure: Regenerate.
7526
7527 2013-10-16 Tobias Burnus <burnus@net-b.de>
7528
7529 * libgomp.texi: (Runtime Library Routines): Update references for
7530 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7531 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7532 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7533 (Environment Variables): Update references for OpenMP 4.0. Add
7534 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7535 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7536 order.
7537
7538 2013-10-14 Jakub Jelinek <jakub@redhat.com>
7539
7540 * env.c (parse_bind_var): Initialize value to avoid
7541 (false positive) warning.
7542
7543 2013-10-12 Jakub Jelinek <jakub@redhat.com>
7544
7545 PR libgomp/58691
7546 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7547 to check variable.
7548 (gomp_init_num_threads): Move i variable declaration into
7549 #ifdef CPU_ALLOC_SIZE block.
7550 * config/linux/affinity.c (gomp_affinity_init_level): Test
7551 gomp_places_list_len == 0 rather than gomp_places_list == 0
7552 when checking for topology reading error.
7553 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7554 * env.c (parse_affinity): Add ignore argument, if true, don't populate
7555 gomp_places_list, only parse env var and always return false.
7556 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
7557 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7558 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7559 and either of these variables were parsed correctly into a places
7560 list.
7561
7562 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7563 Jakub Jelinek <jakub@redhat.com>
7564
7565 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7566 of 5 loopfn matches.
7567 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7568 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7569 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7570 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7571 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7572 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7573 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7574 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7575
7576 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7577
7578 * Makefile.am (omp_lib.mod): Streamline rule.
7579 * Makefile.in: Regenerate.
7580
7581 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7582 exceptions.
7583
7584 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7585 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7586 * testsuite/libgomp.fortran/lib2.f: Likewise.
7587 * testsuite/libgomp.fortran/lib3.f: Likewise.
7588
7589 * configure.ac: Typo fix.
7590 * configure: Regenerate.
7591
7592 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7593 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7594
7595 * omp.h.in: Don't touch the user's namespace.
7596
7597 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7598 Tobias Burnus <burnus@net-b.de>
7599 Richard Henderson <rth@redhat.com>
7600
7601 * target.c: New file.
7602 * Makefile.am (libgomp_la_SOURCES): Add target.c.
7603 * Makefile.in: Regenerated.
7604 * libgomp_g.h (GOMP_task): Add depend argument.
7605 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7606 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7607 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7608 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7609 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7610 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7611 GOMP_taskgroup_start, GOMP_taskgroup_end,
7612 GOMP_parallel_sections): New prototypes.
7613 * fortran.c (omp_is_initial_device): Add ialias_redirect.
7614 (omp_is_initial_device_): New function.
7615 (ULP, STR1, STR2, ialias_redirect): Removed.
7616 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7617 omp_set_default_device_8_, omp_get_default_device_,
7618 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7619 functions.
7620 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7621 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7622 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7623 @@GOMP_4.0.
7624 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7625 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7626 omp_set_default_device, omp_set_default_device_,
7627 omp_set_default_device_8_, omp_get_default_device,
7628 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7629 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7630 omp_get_team_num_): Export @@OMP_4.0.
7631 * team.c (struct gomp_thread_start_data): Add place field.
7632 (gomp_thread_start): Clear thr->thread_pool and
7633 thr->task before returning. Use gomp_team_barrier_wait_final
7634 instead of gomp_team_barrier_wait. Initialize thr->place.
7635 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7636 team_cancelled and task_queued_count fields.
7637 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7638 before calling pthread_exit.
7639 (gomp_free_thread): No longer static. Use
7640 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7641 (gomp_team_start): Add flags argument. Set
7642 thr->thread_pool->threads_busy to nthreads immediately after creating
7643 new pool. Use gomp_managed_threads_lock instead of
7644 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
7645 (gomp_team_end): Use gomp_managed_threads_lock instead of
7646 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
7647 of gomp_team_barrier_wait. If team->team_cancelled, call
7648 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7649 rather than thr->ts.work_share.
7650 (initialize_team): Don't call gomp_sem_init here.
7651 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7652 caller.
7653 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7654 * env.c (gomp_global_icv): Add default_device_var, target_data and
7655 bind_var initializers.
7656 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7657 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7658 gomp_places_list_len): New variables.
7659 (parse_bind_var, parse_one_place, parse_places_var): New functions.
7660 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7661 sized places.
7662 (gomp_cancel_var): New global variable.
7663 (parse_int): New function.
7664 (handle_omp_display_env): New function.
7665 (initialize_env): Use it. Initialize default_device_var.
7666 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
7667 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
7668 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
7669 been successfully parsed (and call gomp_init_affinity in that case).
7670 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7671 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7672 omp_get_team_num, omp_is_initial_device): New functions.
7673 * libgomp.h: Include stdlib.h.
7674 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7675 Define.
7676 (struct target_mem_desc): Forward declare.
7677 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7678 and thread_limit_var fields.
7679 (gomp_get_num_devices): New prototype.
7680 (gomp_cancel_var): New extern decl.
7681 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7682 team_cancelled and task_queued_count fields. Add comments about
7683 task_{,queued_,running_}count.
7684 (gomp_cancel_kind): New enum.
7685 (gomp_work_share_end_cancel): New prototype.
7686 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7687 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7688 and depend fields.
7689 (struct gomp_taskgroup): New type.
7690 (struct gomp_task_depend_entry,
7691 struct gomp_dependers_vec): New types.
7692 (gomp_finish_task): Free depend_hash if non-NULL.
7693 (struct gomp_team_state): Add place_partition_off
7694 and place_partition_len fields.
7695 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7696 gomp_places_list_len): New extern decls.
7697 (struct gomp_thread): Add place field.
7698 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7699 (gomp_init_thread_affinity): Add place argument.
7700 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7701 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7702 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7703 gomp_affinity_init_level, gomp_affinity_print_place): New
7704 prototypes.
7705 (gomp_team_start): Add flags argument.
7706 (gomp_thread_limit_var, gomp_remaining_threads_count,
7707 gomp_remaining_threads_lock): Remove.
7708 (gomp_managed_threads_lock): New variable.
7709 (struct gomp_thread_pool): Add threads_busy field.
7710 (gomp_free_thread): New prototype.
7711 * task.c: Include hashtab.h.
7712 (hash_entry_type): New typedef.
7713 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7714 (gomp_init_task): Clear dependers, depend_hash, depend_count,
7715 copy_ctors_done and taskgroup fields.
7716 (GOMP_task): Add depend argument, handle depend clauses. If
7717 gomp_team_barrier_cancelled or if it's taskgroup has been
7718 cancelled, don't queue or start new tasks. Set copy_ctors_done
7719 field if needed. Initialize taskgroup field. If copy_ctors_done
7720 and already cancelled, don't discard the task. If taskgroup is
7721 non-NULL, enqueue the task into taskgroup queue. Increment
7722 num_children field in taskgroup. Increment task_queued_count.
7723 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7724 gomp_task_run_post_remove_taskgroup): New inline functions.
7725 (gomp_task_run_post_handle_depend_hash,
7726 gomp_task_run_post_handle_dependers,
7727 gomp_task_run_post_handle_depend): New functions.
7728 (GOMP_taskwait): Use them. If more than one new tasks
7729 have been queued, wake other threads if needed.
7730 (gomp_barrier_handle_tasks): Likewise. If
7731 gomp_team_barrier_cancelled, don't start any new tasks, just free
7732 all tasks.
7733 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7734 * omp_lib.f90.in
7735 (omp_proc_bind_kind, omp_proc_bind_false,
7736 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7737 omp_proc_bind_spread): New params.
7738 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7739 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7740 omp_get_team_num, omp_is_initial_device): New interfaces.
7741 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7742 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7743 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7744 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7745 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7746 useless use omp_lib_kinds.
7747 * omp.h.in (omp_proc_bind_t): New typedef.
7748 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7749 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7750 omp_get_team_num, omp_is_initial_device): New prototypes.
7751 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7752 through to gomp_team_start.
7753 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7754 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7755 Adjust gomp_parallel_loop_start callers.
7756 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7757 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7758 GOMP_loop_end_cancel): New functions.
7759 (GOMP_parallel_end): Add ialias_redirect.
7760 * hashtab.h: New file.
7761 * libgomp.texi (Environment Variables): Minor cleanup,
7762 update section refs to OpenMP 4.0rc2.
7763 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7764 environment variables.
7765 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7766 team->work_shares_to_free to thr->ts.work_share before calling
7767 free_work_share.
7768 (gomp_work_share_end_cancel): New function.
7769 * config/linux/proc.c: Include errno.h.
7770 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7771 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7772 sizeof (cpu_set_t) to determine number of iterations. Fix up check
7773 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
7774 gomp_cpuset_size is sizeof (cpu_set_t).
7775 (gomp_init_num_threads): Initialize gomp_cpuset_size,
7776 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7777 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7778 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
7779 contain any logical CPUs.
7780 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7781 is NULL. Use gomp_cpusetp instead of &cpuset and pass
7782 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7783 pthread_getaffinity_np. Check gomp_places_list instead of
7784 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
7785 * config/linux/bar.c (gomp_barrier_wait_end,
7786 gomp_barrier_wait_last): Use BAR_* defines.
7787 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
7788 from state where needed. Set work_share_cancelled to 0 on last
7789 thread.
7790 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7791 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7792 functions.
7793 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7794 Add cpusetsize argument.
7795 (gomp_cpuset_size, gomp_cpusetp): Declare.
7796 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7797 (affinity_counter): Remove.
7798 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7799 if CPU_ALLOC_SIZE isn't defined.
7800 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7801 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7802 bind current thread to the first place.
7803 (gomp_init_thread_affinity): Rewritten. Add place argument, just
7804 pthread_setaffinity_np to gomp_places_list[place].
7805 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7806 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7807 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7808 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7809 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7810 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7811 (gomp_barrier_t): Add awaited_final field.
7812 (gomp_barrier_init): Initialize awaited_final field.
7813 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7814 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7815 prototypes.
7816 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7817 defines.
7818 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7819 gomp_team_barrier_cancelled): New inline functions.
7820 (gomp_barrier_last_thread,
7821 gomp_team_barrier_set_task_pending,
7822 gomp_team_barrier_clear_task_pending,
7823 gomp_team_barrier_set_waiting_for_tasks,
7824 gomp_team_barrier_waiting_for_tasks,
7825 gomp_team_barrier_done): Use BAR_* defines.
7826 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7827 (gomp_barrier_wait_end): Use BAR_* defines.
7828 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7829 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7830 Use BAR_* defines.
7831 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7832 gomp_team_barrier_cancel): New functions.
7833 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7834 argument.
7835 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7836 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7837 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7838 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7839 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7840 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7841 (gomp_barrier_t): Add cancellable field.
7842 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7843 gomp_team_barrier_cancel): New prototypes.
7844 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7845 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7846 gomp_team_barrier_cancelled): New inline functions.
7847 (gomp_barrier_wait_start, gomp_barrier_last_thread,
7848 gomp_team_barrier_set_task_pending,
7849 gomp_team_barrier_clear_task_pending,
7850 gomp_team_barrier_set_waiting_for_tasks,
7851 gomp_team_barrier_waiting_for_tasks,
7852 gomp_team_barrier_done): Use BAR_* defines.
7853 * barrier.c (GOMP_barrier_cancel): New function.
7854 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7855 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7856 omp_proc_bind_spread): New params.
7857 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7858 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7859 omp_get_team_num, omp_is_initial_device): New externals.
7860 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7861 New functions.
7862 (gomp_resolve_num_threads): Adjust for thread_limit now being in
7863 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7864 infinity. If not nested, just return minimum of max_num_threads
7865 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7866 to the returned value. Otherwise, don't update atomically
7867 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7868 (GOMP_parallel_end): Adjust for thread_limit now being in
7869 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7870 infinity. Adjust threads_busy in the pool rather than
7871 gomp_remaining_threads_count. Remember team->nthreads and call
7872 gomp_team_end before adjusting threads_busy, if not nested
7873 afterwards, just set it to 1 non-atomically. Add ialias.
7874 (GOMP_parallel_start): Adjust gomp_team_start caller.
7875 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
7876 * testsuite/libgomp.c/affinity-1.c: New test.
7877 * testsuite/libgomp.c/atomic-15.c: New test.
7878 * testsuite/libgomp.c/atomic-16.c: New test.
7879 * testsuite/libgomp.c/atomic-17.c: New test.
7880 * testsuite/libgomp.c/cancel-for-1.c: New test.
7881 * testsuite/libgomp.c/cancel-for-2.c: New test.
7882 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
7883 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
7884 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
7885 * testsuite/libgomp.c/cancel-sections-1.c: New test.
7886 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
7887 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
7888 * testsuite/libgomp.c/depend-1.c: New test.
7889 * testsuite/libgomp.c/depend-2.c: New test.
7890 * testsuite/libgomp.c/depend-3.c: New test.
7891 * testsuite/libgomp.c/depend-4.c: New test.
7892 * testsuite/libgomp.c/for-1.c: New test.
7893 * testsuite/libgomp.c/for-1.h: New file.
7894 * testsuite/libgomp.c/for-2.c: New test.
7895 * testsuite/libgomp.c/for-2.h: New file.
7896 * testsuite/libgomp.c/for-3.c: New test.
7897 * testsuite/libgomp.c/pr58392.c: New test.
7898 * testsuite/libgomp.c/simd-1.c: New test.
7899 * testsuite/libgomp.c/simd-2.c: New test.
7900 * testsuite/libgomp.c/simd-3.c: New test.
7901 * testsuite/libgomp.c/simd-4.c: New test.
7902 * testsuite/libgomp.c/simd-5.c: New test.
7903 * testsuite/libgomp.c/simd-6.c: New test.
7904 * testsuite/libgomp.c/target-1.c: New test.
7905 * testsuite/libgomp.c/target-2.c: New test.
7906 * testsuite/libgomp.c/target-3.c: New test.
7907 * testsuite/libgomp.c/target-4.c: New test.
7908 * testsuite/libgomp.c/target-5.c: New test.
7909 * testsuite/libgomp.c/target-6.c: New test.
7910 * testsuite/libgomp.c/target-7.c: New test.
7911 * testsuite/libgomp.c/taskgroup-1.c: New test.
7912 * testsuite/libgomp.c/thread-limit-1.c: New test.
7913 * testsuite/libgomp.c/thread-limit-2.c: New test.
7914 * testsuite/libgomp.c/thread-limit-3.c: New test.
7915 * testsuite/libgomp.c/udr-1.c: New test.
7916 * testsuite/libgomp.c/udr-2.c: New test.
7917 * testsuite/libgomp.c/udr-3.c: New test.
7918 * testsuite/libgomp.c++/affinity-1.C: New test.
7919 * testsuite/libgomp.c++/atomic-10.C: New test.
7920 * testsuite/libgomp.c++/atomic-11.C: New test.
7921 * testsuite/libgomp.c++/atomic-12.C: New test.
7922 * testsuite/libgomp.c++/atomic-13.C: New test.
7923 * testsuite/libgomp.c++/atomic-14.C: New test.
7924 * testsuite/libgomp.c++/atomic-15.C: New test.
7925 * testsuite/libgomp.c++/cancel-for-1.C: New test.
7926 * testsuite/libgomp.c++/cancel-for-2.C: New test.
7927 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
7928 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
7929 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
7930 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
7931 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
7932 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
7933 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
7934 * testsuite/libgomp.c++/cancel-test.h: New file.
7935 * testsuite/libgomp.c++/for-9.C: New test.
7936 * testsuite/libgomp.c++/for-10.C: New test.
7937 * testsuite/libgomp.c++/for-11.C: New test.
7938 * testsuite/libgomp.c++/simd-1.C: New test.
7939 * testsuite/libgomp.c++/simd-2.C: New test.
7940 * testsuite/libgomp.c++/simd-3.C: New test.
7941 * testsuite/libgomp.c++/simd-4.C: New test.
7942 * testsuite/libgomp.c++/simd-5.C: New test.
7943 * testsuite/libgomp.c++/simd-6.C: New test.
7944 * testsuite/libgomp.c++/simd-7.C: New test.
7945 * testsuite/libgomp.c++/simd-8.C: New test.
7946 * testsuite/libgomp.c++/target-1.C: New test.
7947 * testsuite/libgomp.c++/target-2.C: New test.
7948 * testsuite/libgomp.c++/target-2-aux.cc: New file.
7949 * testsuite/libgomp.c++/target-3.C: New test.
7950 * testsuite/libgomp.c++/taskgroup-1.C: New test.
7951 * testsuite/libgomp.c++/udr-1.C: New test.
7952 * testsuite/libgomp.c++/udr-2.C: New test.
7953 * testsuite/libgomp.c++/udr-3.C: New test.
7954 * testsuite/libgomp.c++/udr-4.C: New test.
7955 * testsuite/libgomp.c++/udr-5.C: New test.
7956 * testsuite/libgomp.c++/udr-6.C: New test.
7957 * testsuite/libgomp.c++/udr-7.C: New test.
7958 * testsuite/libgomp.c++/udr-8.C: New test.
7959 * testsuite/libgomp.c++/udr-9.C: New test.
7960
7961 2013-09-20 Jakub Jelinek <jakub@redhat.com>
7962
7963 PR testsuite/57605
7964 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
7965 ALWAYS_CFLAGS.
7966
7967 2013-09-20 Alan Modra <amodra@gmail.com>
7968
7969 * configure: Regenerate.
7970
7971 2013-09-19 Jakub Jelinek <jakub@redhat.com>
7972
7973 * testsuite/libgomp.c/sections-2.c: New test.
7974
7975 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
7976
7977 * testsuite/libgomp.fortran/strassen.f90:
7978 Add dg-skip-if aarch64_tiny.
7979
7980 2013-06-20 Iain Sandoe <iain@codesourcery.com>
7981 Cesar Philippidis <cesar@codesourcery.com>
7982
7983 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
7984 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
7985 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
7986 * testsuite/libgomp.fortran/fortran.exp: Likewise.
7987 * testsuite/libgomp.graphite/graphite.exp: Likewise.
7988 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
7989 Use dg-runtest rather than gfortran-dg-runtest.
7990
7991 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
7992
7993 * testsuite/libgomp.c/icv-2.c: Extend current handling of
7994 Linux-based x86 systems to cover all GNU systems.
7995 * testsuite/libgomp.c/lock-3.c: Likewise.
7996 * testsuite/libgomp.c/pr48591.c: Likewise.
7997
7998 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
7999
8000 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
8001 GNU/Hurd, as done for Linux-based systems.
8002
8003 * config/posix/ptrlock.h: Fix comment.
8004
8005 2013-05-27 Tobias Burnus <burnus@net-b.de>
8006
8007 PR fortran/57423
8008 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
8009 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
8010 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
8011 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
8012 omp_destroy_nest_lock): Correct arguments to match the one in
8013 the OpenMP spec.
8014 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
8015 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
8016 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
8017 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
8018
8019 2013-05-16 Jakub Jelinek <jakub@redhat.com>
8020
8021 * testsuite/libgomp.c/loop-13.c: New test.
8022 * testsuite/libgomp.c/loop-14.c: New test.
8023 * testsuite/libgomp.c/loop-15.c: New test.
8024 * testsuite/libgomp.c++/loop-13.C: New test.
8025 * testsuite/libgomp.c++/loop-14.C: New test.
8026 * testsuite/libgomp.c++/loop-15.C: New test.
8027
8028 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8029
8030 PR middle-end/56217
8031 * testsuite/libgomp.c++/pr56217.C: New test.
8032
8033 2013-02-01 Alan Modra <amodra@gmail.com>
8034
8035 * task.c (GOMP_task, GOMP_taskwait): Comment.
8036
8037 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
8038 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
8039
8040 PR libgomp/55561
8041 * config/linux/wait.h (do_spin): Use atomic load for addr.
8042 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
8043 for intptr and ptrlock.
8044 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
8045 for ptrlock.
8046
8047 2013-01-22 Alan Modra <amodra@gmail.com>
8048
8049 PR libgomp/51376
8050 PR libgomp/56073
8051 * task.c (GOMP_task): Revert 2011-12-09 change.
8052 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
8053 barrier to read task->children..
8054 (gomp_barrier_handle_tasks): ..and matching atomic store with
8055 release barrier here when setting parent->children to NULL.
8056
8057 2013-01-16 Jakub Jelinek <jakub@redhat.com>
8058 Tobias Burnus <burnus@net-b.de>
8059
8060 PR driver/55884
8061 * testsuite/libgomp.fortran/fortran.exp: Use
8062 -fintrinsic-modules-path= instead of
8063 -fintrinsic-modules-path.
8064
8065 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
8066
8067 Update copyright years.
8068
8069 2012-12-19 Tobias Burnus <burnus@net-b.de>
8070
8071 * testsuite/libgomp.fortran/fortran.exp: Set
8072 -fintrinsic-modules-path.
8073
8074 2012-12-19 Tobias Burnus <burnus@net-b.de>
8075
8076 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8077 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8078
8079 2012-11-21 Jakub Jelinek <jakub@redhat.com>
8080
8081 PR libgomp/55411
8082 * team.c (gomp_free_thread): Decrease gomp_managed_threads
8083 if pool had any threads_used.
8084
8085 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
8086
8087 * testsuite/libgomp.c++/pr24455.C: Use
8088 -Wl,-undefined,dynamic_lookup on darwin.
8089
8090 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
8091
8092 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8093
8094 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
8095
8096 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8097
8098 2012-10-23 Ian Bolton <ian.bolton@arm.com>
8099 Jim MacArthur <jim.macarthur@arm.com>
8100 Marcus Shawcroft <marcus.shawcroft@arm.com>
8101 Nigel Stephens <nigel.stephens@arm.com>
8102 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8103 Richard Earnshaw <rearnsha@arm.com>
8104 Sofiane Naci <sofiane.naci@arm.com>
8105 Stephen Thomas <stephen.thomas@arm.com>
8106 Tejas Belagod <tejas.belagod@arm.com>
8107 Yufeng Zhang <yufeng.zhang@arm.com>
8108
8109 * configure.tgt: Add AArch64.
8110
8111 2012-10-04 Jason Merrill <jason@redhat.com>
8112
8113 * testsuite/libgomp.c++/tls-init1.C: New.
8114
8115 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8116
8117 * configure: Regenerated.
8118
8119 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
8120
8121 * config/linux/mips/futex.h (sys_futex0): Change to static
8122 function with noinline, nomips16 attributes under MIPS16. Adjust
8123 asm statement to place 'li v0,SYS_futex' immediately before
8124 syscall insn.
8125
8126 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
8127
8128 * libgomp.texi (Library Index): Renamed from "Index" to prevent
8129 conflict with index.html on case-insensitive file systems.
8130
8131 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8132
8133 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8134 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8135
8136 2012-07-02 Richard Guenther <rguenther@suse.de>
8137 Michael Matz <matz@suse.de>
8138 Tobias Grosser <tobias@grosser.es>
8139 Sebastian Pop <sebpop@gmail.com>
8140
8141 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8142 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8143 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8144 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8145
8146 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8147
8148 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8149
8150 2012-06-22 Richard Guenther <rguenther@suse.de>
8151
8152 Merge from graphite branch
8153 2012-01-13 Tobias Grosser <tobias@grosser.es>
8154
8155 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8156 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8157
8158 2012-06-07 Jakub Jelinek <jakub@redhat.com>
8159
8160 PR middle-end/53580
8161 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8162 use GOMP_barrier () call instead.
8163 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8164 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8165 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8166 call GOMP_barrier instead.
8167 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8168
8169 2012-06-06 Jakub Jelinek <jakub@redhat.com>
8170
8171 PR libgomp/52993
8172 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8173 argument to memset call.
8174
8175 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8176
8177 * configure: Regenerated.
8178
8179 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8180
8181 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8182
8183 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8184
8185 PR bootstrap/52812
8186 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8187
8188 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8189
8190 PR middle-end/52547
8191 * testsuite/libgomp.c/pr52547.c: New test.
8192
8193 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8194
8195 * testsuite/lib/libgomp.exp: load fortran-modules.exp
8196
8197 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8198
8199 * configure.tgt (mips-sgi-irix6*): Remove.
8200
8201 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8202
8203 * configure.tgt (alpha*-dec-osf*): Remove.
8204
8205 * config/osf/sem.h: Remove.
8206 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8207
8208 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8209
8210 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8211
8212 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8213
8214 PR libstdc++/52188
8215 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8216 Remove ENABLE_SYMVERS_SOL2.
8217 * configure: Regenerate.
8218 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8219 (PREPROCESS): New variable.
8220 (libgomp.ver): New target.
8221 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8222 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8223 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8224 Use libgomp.ver.
8225 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8226 * Makefile.in: Regenerate.
8227
8228 2012-02-14 Walter Lee <walt@tilera.com>
8229
8230 * configure.tgt: Handle tilegx and tilepro.
8231 * config/linux/tile/futex.h: New file.
8232
8233 2012-02-08 Richard Guenther <rguenther@suse.de>
8234
8235 PR tree-optimization/46886
8236 * testsuite/libgomp.c/pr46886.c: New testcase.
8237
8238 2012-01-25 Matthias Klose <doko@ubuntu.com>
8239
8240 * config/linux/arm: Remove empty directory.
8241 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8242
8243 2011-12-09 Alan Modra <amodra@gmail.com>
8244
8245 PR libgomp/51376
8246 * task.c (GOMP_taskwait): Don't access task->children outside of
8247 task_lock mutex region.
8248 (GOMP_task): Likewise.
8249
8250 2011-12-06 Jakub Jelinek <jakub@redhat.com>
8251
8252 PR libgomp/51132
8253 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
8254 to file scope.
8255 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8256 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8257 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8258 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8259 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8260
8261 2011-12-02 Alan Modra <amodra@gmail.com>
8262
8263 * config/linux/affinity.c: Use atomic rather than sync builtin.
8264 * config/linux/lock.c: Likewise.
8265 * config/linux/ptrlock.h: Likewise.
8266 * config/linux/ptrlock.c: Likewise.
8267 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
8268 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
8269 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
8270 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
8271 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
8272 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
8273 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
8274 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
8275 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
8276 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
8277
8278 2011-11-30 Alan Modra <amodra@gmail.com>
8279
8280 PR libgomp/51298
8281 * config/linux/bar.h: Use atomic rather than sync builtins.
8282 * config/linux/bar.c: Likewise. Add missing acquire
8283 synchronisation on generation field.
8284 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
8285 double unlock.
8286
8287 2011-11-30 Alan Modra <amodra@gmail.com>
8288
8289 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
8290 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
8291 * config/linux/mutex.h: Use atomic rather than sync builtins.
8292 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
8293 * config/linux/omp-lock.h: Comment fix.
8294 * config/linux/arm/mutex.h: Delete.
8295 * config/linux/powerpc/mutex.h: Delete.
8296 * config/linux/ia64/mutex.h: Delete.
8297 * config/linux/mips/mutex.h: Delete.
8298
8299 2011-11-30 Alan Modra <amodra@gmail.com>
8300
8301 PR libgomp/51249
8302 * config/linux/sem.h: Rewrite.
8303 * config/linux/sem.c: Rewrite.
8304
8305 2011-11-28 Richard Henderson <rth@redhat.com>
8306
8307 * libgomp.h (enum memmodel): New.
8308
8309 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
8310
8311 * configure: Regenerate.
8312
8313 2011-10-10 Matthias Klose <doko@ubuntu.com>
8314
8315 * config/posix95: Remove empty directory.
8316
8317 2011-08-26 Jakub Jelinek <jakub@redhat.com>
8318
8319 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
8320
8321 2011-08-19 Jakub Jelinek <jakub@redhat.com>
8322
8323 PR fortran/49792
8324 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
8325 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
8326
8327 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8328
8329 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
8330
8331 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8332
8333 PR libgomp/49965
8334 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
8335
8336 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
8337
8338 * config/linux/proc.h: New.
8339 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
8340 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
8341 (gomp_init_num_threads): Update call to cpuset_popcount.
8342 (get_num_procs): Ditto.
8343 * config/linux/affinity.c (gomp_init_affinity): Call
8344 gomp_cpuset_popcount.
8345
8346 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8347
8348 PR fortran/42041
8349 PR fortran/46752
8350 * omp.h.in (omp_in_final): New prototype.
8351 * omp_lib.f90.in (omp_in_final): New interface.
8352 (omp_integer_kind, omp_logical_kind): Remove
8353 and replace all its uses in the module with 4.
8354 (openmp_version): Change to 201107.
8355 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
8356 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
8357 kind for the parameters.
8358 (omp_in_final): New external.
8359 (openmp_version): Change to 201107.
8360 * task.c (omp_in_final): New function.
8361 (gomp_init_task): Initialize final_task.
8362 (GOMP_task): Remove unused attribute from flags. Handle final
8363 tasks.
8364 (GOMP_taskyield): New function.
8365 (omp_in_final): Return true if if (false) or final (true) task
8366 or descendant of final (true).
8367 * fortran.c (omp_in_final_): New function.
8368 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
8369 (GOMP_3.0): Export GOMP_taskyield.
8370 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8371 variables.
8372 (parse_unsigned_long_list): New function.
8373 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
8374 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
8375 even if parse_affinity returned false.
8376 * config/linux/affinity.c (gomp_init_affinity): Handle
8377 gomp_cpu_affinity_len == 0.
8378 * libgomp_g.h (GOMP_taskyield): New prototype.
8379 * libgomp.h (struct gomp_task): Add final_task field.
8380 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8381 * team.c (gomp_team_start): Override new task's nthreads_var icv
8382 if list form OMP_NUM_THREADS has been used and it has value for
8383 the new nesting level.
8384
8385 * testsuite/libgomp.c/atomic-11.c: New test.
8386 * testsuite/libgomp.c/atomic-12.c: New test.
8387 * testsuite/libgomp.c/atomic-13.c: New test.
8388 * testsuite/libgomp.c/atomic-14.c: New test.
8389 * testsuite/libgomp.c/reduction-6.c: New test.
8390 * testsuite/libgomp.c/task-5.c: New test.
8391 * testsuite/libgomp.c++/atomic-2.C: New test.
8392 * testsuite/libgomp.c++/atomic-3.C: New test.
8393 * testsuite/libgomp.c++/atomic-4.C: New test.
8394 * testsuite/libgomp.c++/atomic-5.C: New test.
8395 * testsuite/libgomp.c++/atomic-6.C: New test.
8396 * testsuite/libgomp.c++/atomic-7.C: New test.
8397 * testsuite/libgomp.c++/atomic-8.C: New test.
8398 * testsuite/libgomp.c++/atomic-9.C: New test.
8399 * testsuite/libgomp.c++/task-8.C: New test.
8400 * testsuite/libgomp.c++/reduction-4.C: New test.
8401 * testsuite/libgomp.fortran/allocatable7.f90: New test.
8402 * testsuite/libgomp.fortran/allocatable8.f90: New test.
8403 * testsuite/libgomp.fortran/crayptr3.f90: New test.
8404 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8405 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8406 * testsuite/libgomp.fortran/pointer1.f90: New test.
8407 * testsuite/libgomp.fortran/pointer2.f90: New test.
8408 * testsuite/libgomp.fortran/task4.f90: New test.
8409
8410 2011-08-02 Tobias Burnus <burnus@net-b.de>
8411
8412 * libgomp.texi: Update OpenMP spec references to 3.1.
8413 (omp_in_final,OMP_PROC_BIND): New sections.
8414 (OMP_NUM_THREADS): Document that the value can be now a list.
8415 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8416
8417 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8418
8419 * config/linux/x86/futex.h: Check __x86_64__ instead of
8420 __LP64__.
8421
8422 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8423
8424 PR middle-end/49897
8425 PR middle-end/49898
8426 * testsuite/libgomp.c/pr49897-1.c: New test.
8427 * testsuite/libgomp.c/pr49897-2.c: New test.
8428 * testsuite/libgomp.c/pr49898-1.c: New test.
8429 * testsuite/libgomp.c/pr49898-2.c: New test.
8430
8431 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8432
8433 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8434 for ia32 instead of ilp32.
8435
8436 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8437 * testsuite/libgomp.c/atomic-6.c: Likewise.
8438
8439 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
8440
8441 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8442 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8443
8444 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8445
8446 PR libgomp/45351
8447 * config/osf/sem.h: New file.
8448 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8449
8450 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8451
8452 PR target/49541
8453 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8454 ldflags.
8455
8456 2011-07-15 Jakub Jelinek <jakub@redhat.com>
8457
8458 * config/linux/wait.h (do_spin): New inline, largely copied
8459 from do_wait, just don't do futex_wait here, instead return true if
8460 it should be done.
8461 (do_wait): Implement using do_spin.
8462 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8463 to prototype.
8464 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8465 __sync_bool_compare_and_swap, pass the oldval to
8466 gomp_mutex_lock_slow.
8467 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8468 If all mutex contenders are just spinning and not sleeping, don't
8469 change state to 2 unnecessarily. Optimize the loop when state has
8470 already become 2 to use just one atomic operation per loop instead
8471 of two.
8472 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8473 to prototype.
8474 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8475 __sync_bool_compare_and_swap, pass the oldval to
8476 gomp_mutex_lock_slow.
8477
8478 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8479
8480 PR libgomp/49490
8481 * iter.c (gomp_iter_static_next): For chunk size 0
8482 only use n ceil/ nthreads size for the first
8483 n % nthreads threads in the team instead of
8484 all threads except for the last few ones which
8485 get less work or none at all.
8486 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8487 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8488 chunk argument, set run_sched_modifier to 0 for static
8489 resp. 1 for other kinds. If chunk argument is 0
8490 and not static, set value to 1.
8491
8492 2011-05-19 Jakub Jelinek <jakub@redhat.com>
8493
8494 PR c++/49043
8495 * testsuite/libgomp.c++/pr49043.C: New test.
8496
8497 PR c++/48869
8498 * testsuite/libgomp.c++/pr48869.C: New test.
8499
8500 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8501
8502 PR fortran/48894
8503 * fortran.c: Include limits.h.
8504 (TO_INT): Define.
8505 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8506 *set.
8507 (omp_set_num_threads_8_, omp_set_schedule_8_,
8508 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8509 omp_get_team_size_8_): Use TO_INT macro.
8510 * testsuite/libgomp.fortran/pr48894.f90: New test.
8511
8512 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8513
8514 PR middle-end/48591
8515 * testsuite/libgomp.c/pr48591.c: New test.
8516
8517 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8518
8519 PR bootstrap/48135
8520 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8521 * configure: Regenerate.
8522
8523 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8524
8525 PR fortran/47886
8526 * testsuite/libgomp.fortran/task3.f90: New test.
8527
8528 2011-02-24 Tobias Burnus <burnus@net-b.de>
8529
8530 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8531
8532 2011-02-23 Jakub Jelinek <jakub@redhat.com>
8533
8534 PR libgomp/47854
8535 * libgomp.texi (omp_get_wtime): Don't say time in the past
8536 must be Unix Epoch.
8537
8538 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8539
8540 PR libgomp/47804
8541 * testsuite/libgomp.fortran/fortran.exp: Check for both
8542 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
8543 but $blddir != "", still append ${blddir}/${lang_library_path}
8544 to ld_library_path.
8545
8546 2011-02-16 Tobias Burnus <burnus@net-b.de>
8547
8548 PR libgomp/47758
8549 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8550 of libquadmath.a before adding its libpath to ldflags.
8551
8552 2011-02-14 Jakub Jelinek <jakub@redhat.com>
8553
8554 PR libgomp/47731
8555 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8556 to FUTEX_WAIT futex syscall.
8557 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8558
8559 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8560
8561 * configure: Regenerate.
8562
8563 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
8564
8565 PR libstdc++/36104
8566 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8567
8568 2011-01-16 Gerald Pfeifer
8569
8570 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8571
8572 2010-12-14 Jakub Jelinek <jakub@redhat.com>
8573
8574 PR fortran/46874
8575 * libgomp.fortran/allocatable6.f90: New test.
8576
8577 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8578
8579 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8580 * configure: Regenerate.
8581
8582 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
8583
8584 PR target/40125
8585 PR lto/46695
8586 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8587 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8588 * aclocal.m4: Regenerate.
8589 * configure: Regenerate.
8590 * Makefile.in: Regenerate.
8591 * testsuite/Makefile.in: Regenerate.
8592
8593 2010-12-02 Jakub Jelinek <jakub@redhat.com>
8594
8595 PR fortran/46753
8596 * libgomp.fortran/pr46753.f90: New test.
8597
8598 PR libgomp/43706
8599 * env.c (initialize_env): Default to spin count 300000
8600 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8601 is specified.
8602
8603 PR libgomp/45240
8604 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8605 at the end if sync builtins aren't supported.
8606
8607 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8608
8609 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8610
8611 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8612
8613 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8614
8615 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
8616
8617 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8618
8619 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8620 Tobias Burnus <burnus@net-b.de>
8621
8622 PR fortran/32049
8623 * configure.ac:
8624 * configure: Regenerate.
8625
8626 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
8627
8628 * config/linux/futex.h: New.
8629 * config/linux/arm/mutex.h: New.
8630 * configure.tgt (arm*-*-linux*): Add config path.
8631
8632 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8633
8634 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8635
8636 2010-09-23 Tobias Burnus <burnus@net-b.de>
8637
8638 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8639 Change Fortran datatype to LOGICAL.
8640 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8641 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8642
8643 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8644
8645 * configure: Regenerate.
8646
8647 2010-07-26 Jakub Jelinek <jakub@redhat.com>
8648
8649 * libgomp.texi: Add function keyword to a couple of Fortran
8650 interfaces, use integer instead of int for Fortran.
8651
8652 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8653
8654 * libgomp.texi: Fix spelling and pasto problems throughout.
8655 Adjust prototypes to match code.
8656
8657 2010-07-24 Tobias Burnus <burnus@net-b.de>
8658
8659 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8660 silence -fwhole-file warning.
8661
8662 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8663
8664 * configure.tgt (*-*-solaris2.[56]*): Removed.
8665
8666 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8667
8668 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8669 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8670 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8671 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8672 targetting solaris2*.
8673 * configure: Regenerate.
8674 * config.h.in: Regenerate.
8675
8676 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8677 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8678 Add libgomp_version_dep.
8679 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8680 versioning.
8681 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8682 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8683 * Makefile.in: Regenerate.
8684
8685 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8686 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8687 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8688 to common block, protected by
8689 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8690
8691 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8692
8693 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
8694
8695 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8696
8697 PR bootstrap/43170
8698 * configure: Regenerate.
8699
8700 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8701
8702 PR other/43620
8703 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8704 * configure: Regenerate.
8705 * Makefile.in: Regenerate.
8706 * testsuite/Makefile.in: Regenerate.
8707
8708 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8709
8710 PR c/43893
8711 * testsuite/libgomp.c/pr43893.c: New test.
8712 * testsuite/libgomp.c++/pr43893.C: New test.
8713
8714 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8715
8716 PR middle-end/43570
8717 * testsuite/libgomp.fortran/vla8.f90: New test.
8718
8719 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8720
8721 PR libgomp/43706
8722 * config/linux/affinity.c (gomp_init_affinity): Decrease
8723 gomp_available_cpus if affinity mask confines the process to fewer
8724 CPUs.
8725 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8726 non-NULL, just return gomp_available_cpus.
8727
8728 PR libgomp/43569
8729 * sections.c (gomp_sections_init): Initialize ws->mode.
8730
8731 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8732
8733 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8734 not unused bar variable.
8735 * configure: Regenerate.
8736
8737 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8738
8739 * Makefile.in: Regenerate.
8740 * aclocal.m4: Regenerate.
8741 * testsuite/Makefile.in: Regenerate.
8742
8743 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8744
8745 PR libgomp/42942
8746 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8747 (initialize_env): Adjust callers.
8748 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8749 when the argument is 0.
8750
8751 * testsuite/libgomp.c/pr42942.c: New test.
8752
8753 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8754
8755 PR middle-end/42644
8756 PR middle-end/42130
8757 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8758 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8759
8760 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8761
8762 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8763 * testsuite/libgomp.c++/task-6.C: Likewise.
8764
8765 2010-01-28 Steve Ellcey <sje@cup.hp.com>
8766
8767 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8768
8769 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
8770
8771 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8772 * configure: Regenerate.
8773
8774 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8775
8776 PR fortran/42866
8777 * testsuite/libgomp.fortran/allocatable5.f90: New test.
8778
8779 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
8780
8781 * configure.ac: Test for executability of GFORTRAN.
8782 * configure: Regenerate.
8783
8784 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8785
8786 * configure: Regenerate.
8787
8788 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8789
8790 PR libgomp/42602
8791 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8792
8793 2010-01-03 Richard Guenther <rguenther@suse.de>
8794
8795 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8796
8797 2009-12-23 Sebastian Pop <sebpop@gmail.com>
8798
8799 * testsuite/libgomp.graphite/pr4118.c: New.
8800
8801 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8802
8803 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8804 for darwin, protect the test with require-effective-target tls_runtime.
8805 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8806
8807 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8808
8809 PR target/41605
8810 * testsuite/lib/libgomp.exp: Provide -B options to allow for
8811 link spec %s substitutions for static libraries.
8812
8813 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
8814
8815 PR testsuite/42135
8816 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8817
8818 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8819
8820 * Makefile.in: Regenerate.
8821 * configure: Regenerate.
8822 * testsuite/Makefile.in: Regenerate.
8823
8824 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8825
8826 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8827 settings for LC_ALL and LANG.
8828
8829 2009-11-25 Jakub Jelinek <jakub@redhat.com>
8830
8831 PR fortran/42162
8832 * testsuite/libgomp.fortran/pr42162.f90: New test.
8833
8834 2009-11-13 Jakub Jelinek <jakub@redhat.com>
8835
8836 PR middle-end/42029
8837 * testsuite/libgomp.c/pr42029.c: New test.
8838
8839 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8840
8841 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8842 *s. Accept ld version without text in ()s.
8843 * configure: Regenerated.
8844
8845 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
8846
8847 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8848
8849 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8850
8851 PR libgomp/41418
8852 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8853 or a hyphen (happens with fortran language disabled).
8854 * configure: Regenerate.
8855
8856 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8857
8858 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8859 use sed script portable to Solaris /bin/sed for extracting ld
8860 version.
8861 * configure: Regenerate.
8862
8863 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8864
8865 * testsuite/libgomp.graphite/bounds.c: New test.
8866
8867 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8868
8869 * Makefile.am (libgomp_la_LINK): New.
8870 * Makefile.in: Regenerate.
8871
8872 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8873
8874 * configure.ac (AC_PREREQ): Bump to 2.64.
8875
8876 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8877
8878 * Makefile.am (install-html, install-pdf): Remove.
8879 * Makefile.in: Regenerate.
8880
8881 * Makefile.in: Regenerate.
8882 * aclocal.m4: Regenerate.
8883 * config.h.in: Regenerate.
8884 * configure: Regenerate.
8885 * testsuite/Makefile.in: Regenerate.
8886
8887 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8888
8889 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
8890 * Makefile.in: Regenerate.
8891
8892 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
8893
8894 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
8895 * Makefile.in: Regenerate.
8896
8897 2009-08-19 Tobias Burnus <burnus@net-b.de>
8898
8899 PR fortran/41102
8900 omp_lib.h.in: Fix -std=f95 errors.
8901
8902 2009-08-14 David Edelsohn <edelsohn@gnu.org>
8903
8904 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
8905 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
8906 * testsuite/libgomp.graphite/graphite.exp: New.
8907
8908 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
8909
8910 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
8911 only build.
8912
8913 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8914
8915 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
8916 needed memory barrier semantics.
8917 * config/linux/mips/mutex.h: New file.
8918
8919 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8920
8921 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
8922
8923 2009-07-16 Joseph Myers <joseph@codesourcery.com>
8924
8925 * configure: Regenerate.
8926
8927 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
8928
8929 PR testsuite/40699
8930 PR testsuite/40707
8931 PR testsuite/40709
8932 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
8933 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
8934 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
8935
8936 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
8937
8938 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
8939 options when choosing a multilib.
8940
8941 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
8942
8943 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
8944 ld_library_path. Use add_path. Add just find_libgcc_s to
8945 ld_library_path, not every libgcc multilib directory.
8946 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
8947 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
8948 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
8949 Use add_path.
8950 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
8951
8952 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
8953
8954 * Makefile.am (LTLDFLAGS): Define.
8955 (LINK): Define.
8956 * Makefile.in: Regenerate.
8957
8958 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
8959
8960 PR fortran/39718
8961 * testsuite/libgomp.fortran/fortran.exp: Don't link with
8962 libgfortranbegin, check existence of libgfortran.a instead of
8963 libgfortranbegin.a.
8964
8965 2009-05-20 Jakub Jelinek <jakub@redhat.com>
8966
8967 PR libgomp/40174
8968 * team.c (gomp_thread_start): Destroy thr->release semaphore.
8969 (gomp_free_pool_helper): Likewise.
8970
8971 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
8972 Jakub Jelinek <jakub@redhat.com>
8973
8974 PR fortran/35423
8975 * testsuite/libgomp.fortran/workshare2.f90: New test.
8976
8977 2009-04-09 Nick Clifton <nickc@redhat.com>
8978
8979 * iter.c: Change copyright header to refer to version 3 of the
8980 GNU General Public License with version 3.1 of the GCC Runtime
8981 Library Exception and to point readers at the COPYING3 and
8982 COPYING3.RUNTIME files and the FSF's license web page.
8983 * alloc.c: Likewise.
8984 * barrier.c: Likewise.
8985 * config/bsd/proc.c: Likewise.
8986 * config/linux/affinity.c: Likewise.
8987 * config/linux/alpha/futex.h: Likewise.
8988 * config/linux/bar.c: Likewise.
8989 * config/linux/bar.h: Likewise.
8990 * config/linux/ia64/futex.h: Likewise.
8991 * config/linux/ia64/mutex.h: Likewise.
8992 * config/linux/lock.c: Likewise.
8993 * config/linux/mips/futex.h: Likewise.
8994 * config/linux/mutex.c: Likewise.
8995 * config/linux/mutex.h: Likewise.
8996 * config/linux/powerpc/futex.h: Likewise.
8997 * config/linux/proc.c: Likewise.
8998 * config/linux/ptrlock.c: Likewise.
8999 * config/linux/ptrlock.h: Likewise.
9000 * config/linux/s390/futex.h: Likewise.
9001 * config/linux/sem.c: Likewise.
9002 * config/linux/sem.h: Likewise.
9003 * config/linux/sparc/futex.h: Likewise.
9004 * config/linux/wait.h: Likewise.
9005 * config/linux/x86/futex.h: Likewise.
9006 * config/mingw32/proc.c: Likewise.
9007 * config/mingw32/time.c: Likewise.
9008 * config/posix/affinity.c: Likewise.
9009 * config/posix/bar.c: Likewise.
9010 * config/posix/bar.h: Likewise.
9011 * config/posix/lock.c: Likewise.
9012 * config/posix/mutex.h: Likewise.
9013 * config/posix/proc.c: Likewise.
9014 * config/posix/ptrlock.h: Likewise.
9015 * config/posix/sem.c: Likewise.
9016 * config/posix/sem.h: Likewise.
9017 * config/posix/time.c: Likewise.
9018 * config/posix95/lock.c: Likewise.
9019 * critical.c: Likewise.
9020 * env.c: Likewise.
9021 * error.c: Likewise.
9022 * fortran.c: Likewise.
9023 * iter_ull.c: Likewise.
9024 * libgomp.h: Likewise.
9025 * libgomp_f.h.in: Likewise.
9026 * libgomp_g.h: Likewise.
9027 * loop.c: Likewise.
9028 * loop_ull.c: Likewise.
9029 * omp.h.in: Likewise.
9030 * omp_lib.f90.in: Likewise.
9031 * omp_lib.h.in: Likewise.
9032 * ordered.c: Likewise.
9033 * parallel.c: Likewise.
9034 * sections.c: Likewise.
9035 * single.c: Likewise.
9036 * task.c: Likewise.
9037 * team.c: Likewise.
9038 * work.c: Likewise.
9039
9040 2009-04-09 Jakub Jelinek <jakub@redhat.com>
9041
9042 * testsuite/config/default.exp: Change copyright header to refer to
9043 version 3 of the GNU General Public License and to point readers
9044 at the COPYING3 file and the FSF's license web page.
9045
9046 2009-04-08 Jakub Jelinek <jakub@redhat.com>
9047
9048 PR middle-end/39573
9049 * libgomp.c++/pr39573.C: New test.
9050
9051 2009-04-01 Jakub Jelinek <jakub@redhat.com>
9052
9053 PR other/39591
9054 * testsuite/libgomp.c/pr39591-1.c: New test.
9055 * testsuite/libgomp.c/pr39591-2.c: New test.
9056 * testsuite/libgomp.c/pr39591-3.c: New test.
9057
9058 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
9059
9060 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
9061 * testsuite/libgomp.c/atomic-6.c: Ditto.
9062
9063 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9064
9065 PR c/39495
9066 * testsuite/libgomp.c/loop-12.c: New test.
9067 * testsuite/libgomp.c/loop-11.c: New test.
9068 * testsuite/libgomp.c++/loop-11.C: New test.
9069 * testsuite/libgomp.c++/loop-12.C: New test.
9070 * testsuite/libgomp.c++/for-8.C: New test.
9071
9072 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9073
9074 * configure: Regenerate.
9075
9076 2009-02-11 Jakub Jelinek <jakub@redhat.com>
9077
9078 PR middle-end/39154
9079 * testsuite/libgomp.c/pr39154.c: New test.
9080
9081 2009-01-30 Ian Lance Taylor <iant@google.com>
9082
9083 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9084 libgomp_ld_is_gold. Get gold version number.
9085 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9086 * configure: Rebuild.
9087
9088 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9089
9090 * testsuite/lib/libgomp.exp: Add -B option for targets that
9091 use libgfortran.a%s in their specs.
9092
9093 2009-01-07 Jakub Jelinek <jakub@redhat.com>
9094
9095 PR libgomp/38086
9096 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9097 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9098 HAVE_AS_SYMVER_DIRECTIVE is not defined.
9099 * configure: Regenerated.
9100 * config.h.in: Likewise.
9101
9102 2008-12-28 Jakub Jelinek <jakub@redhat.com>
9103
9104 PR c++/38650
9105 * testsuite/libgomp.c/pr38650.c: New test.
9106 * testsuite/libgomp.c++/pr38650.C: New test.
9107
9108 2008-12-27 Jakub Jelinek <jakub@redhat.com>
9109
9110 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9111
9112 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
9113
9114 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9115
9116 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9117
9118 * configure: Regenerate.
9119
9120 2008-12-08 Jakub Jelinek <jakub@redhat.com>
9121
9122 PR middle-end/36802
9123 * testsuite/libgomp.c/pr36802-1.c: New test.
9124 * testsuite/libgomp.c/pr36802-2.c: New test.
9125 * testsuite/libgomp.c/pr36802-3.c: New test.
9126
9127 2008-12-01 Janis Johnson <janis187@us.ibm.com>
9128
9129 PR libgomp/38270
9130 * config/linux/powerpc/mutex.h: New.
9131
9132 2008-12-01 Jakub Jelinek <jakub@redhat.com>
9133
9134 PR c++/38257
9135 * testsuite/libgomp.c++/for-7.C: New test.
9136
9137 PR c++/38348
9138 * testsuite/libgomp.c++/for-6.C: New test.
9139
9140 2008-11-26 Janis Johnson <janis187@us.ibm.com>
9141
9142 PR testsuite/28870
9143 * testsuite/lib/libgomp.exp: Include new timeout library files.
9144 (libgomp_target_compile): Set timeout value from new proc.
9145
9146 2008-11-13 Steve Ellcey <sje@cup.hp.com>
9147
9148 PR libgomp/37938
9149 * config/linux/ia64/mutex.h: New.
9150
9151 2008-11-04 Tobias Burnus <burnus@net-b.de>
9152
9153 PR libgomp/37935
9154 * libgomp.texi (Runtime library routines, environment variables):
9155 Update for OpenMP version 3.0.
9156
9157 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
9158 Steve Ellcey <sje@cup.hp.com>
9159
9160 * configure: Regenerate for new libtool.
9161 * Makefile.in: Ditto.
9162 * testsuite/Makefile.in: Ditto.
9163
9164 2008-09-19 Jakub Jelinek <jakub@redhat.com>
9165 Andreas Tobler <a.tobler@schweiz.org>
9166
9167 * config/bsd/proc.c: New file.
9168 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
9169 * configure.ac: Check for header <sys/sysctl.h>
9170 * configure: Regenerate.
9171 * config.h.in: Likewise.
9172
9173 2008-09-05 Janis Johnson <janis187@us.ibm.com>
9174
9175 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9176
9177 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9178
9179 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9180 * Makefile.in: Regenerated.
9181 * testsuite/Makefile.in: Regenerated.
9182
9183 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
9184
9185 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
9186 depend on blddir if blddir exists.
9187 (libgomp_target_compile): Likewise.
9188 * testsuite/libgomp.c++/c++.exp: Likewise.
9189 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9190
9191 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9192
9193 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
9194 Do not list GPL as Invariant Section.
9195
9196 2008-07-28 Ilie Garbacea <ilie@mips.com>
9197 Chao-ying Fu <fu@mips.com>
9198
9199 * configure.tgt: Enable futex for MIPS.
9200 * config/linux/mips/futex.h: New file.
9201
9202 2008-07-16 Jakub Jelinek <jakub@redhat.com>
9203
9204 * team.c (gomp_team_end): Free team immediately if it has
9205 just one thread.
9206
9207 2008-07-08 David Edelsohn <edelsohn@gnu.org>
9208
9209 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9210 * testsuite/libgomp.fortran/fortran.exp: Same.
9211 * testsuite/libgomp.c/c.exp: Same.
9212 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9213 directory to library path first.
9214
9215 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
9216
9217 * env.c (parse_stacksize): Add cast to avoid warning.
9218 (parse_spincount): Likewise.
9219
9220 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9221
9222 * testsuite/libgomp.c/loop-10.c: New test.
9223 * libgomp.c/loop-3.c (main): Add lastprivate clause.
9224 * libgomp.c++/loop-6.C (main): Likewise.
9225
9226 PR debug/36617
9227 * testsuite/libgomp.c/debug-1.c: New test.
9228
9229 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9230
9231 * testsuite/libgomp.c/nqueens-1.c: New test.
9232
9233 PR c++/36523
9234 * testsuite/libgomp.c++/task-7.C: New function.
9235
9236 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9237
9238 * configure: Regenerate.
9239
9240 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9241
9242 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9243 mutex when HAVE_SYNC_BUILTINS isn't defined.
9244
9245 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9246
9247 * libgomp.texi (omp_test_lock): Fix typo.
9248
9249 2008-06-12 Tobias Burnus <burnus@net-b.de>
9250
9251 * omp_lib.f90.in: Add "implicit none".
9252
9253 2008-06-12 Jakub Jelinek <jakub@redhat.com>
9254
9255 PR middle-end/36506
9256 * testsuite/libgomp.c/reduction-5.c: New test.
9257
9258 2008-06-11 Jakub Jelinek <jakub@redhat.com>
9259
9260 * libgomp.h (struct gomp_task): Add in_tied_task field.
9261 * task.c (gomp_init_task): Initialize it.
9262 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
9263 unconditionally. Don't call gomp_team_barrier_wake if
9264 current task is implicit or if(0) from implicit and number of
9265 running tasks is equal to nthreads - 1.
9266
9267 PR libgomp/36471
9268 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
9269 omp_get_team_size_8): Fix pastos.
9270
9271 PR libgomp/36469
9272 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
9273 * configure: Regenerated.
9274 * config.h.in: Regenerated.
9275 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
9276 defined.
9277
9278 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
9279
9280 PR bootstrap/36452
9281 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
9282 (GOMP_loop_ull_dynamic_start): Likewise.
9283 (GOMP_loop_ull_guided_start): Likewise.
9284 (GOMP_loop_ull_ordered_static_start): Likewise.
9285 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
9286 (GOMP_loop_ull_ordered_guided_start): Likewise.
9287
9288 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9289 Richard Henderson <rth@redhat.com>
9290 Ulrich Drepper <drepper@redhat.com>
9291 Jakob Blomer <jakob.blomer@ira.uka.de>
9292
9293 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
9294 Substitute also OMP_*LOCK_25*.
9295 * configure: Regenerated.
9296 * config.h.in: Regenerated.
9297 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
9298 ptrlock.c and task.c.
9299 * Makefile.in: Regenerated.
9300 * testsuite/Makefile.in: Regenerated.
9301 * task.c: New file.
9302 * loop_ull.c: New file.
9303 * iter_ull.c: New file.
9304 * libgomp.h: Include ptrlock.h.
9305 (enum gomp_task_kind): New type.
9306 (struct gomp_team): Add task_lock, task_queue, task_count,
9307 task_running_count, single_count fields. Add
9308 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
9309 Remove work_share_lock, generation_mask,
9310 oldest_live_gen, num_live_gen and init_work_shares fields, add
9311 work work_share_list_alloc, work_share_list_free and work_share_chunk
9312 fields. Change work_shares from pointer to pointers into an array.
9313 Change ordered_release field into gomp_sem_t ** from flexible array
9314 member. Add implicit_task and initial_work_shares fields.
9315 Move close to the end of the struct.
9316 (struct gomp_team_state): Add single_count, last_work_share,
9317 active_level and level fields, remove work_share_generation.
9318 (gomp_barrier_handle_tasks): New prototype.
9319 (gomp_finish_task): New inline function.
9320 (struct gomp_work_share): Move chunk_size, end, incr into
9321 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
9322 next_ll fields. Reshuffle fields. Add next_alloc,
9323 next_ws, next_free and inline_ordered_team_ids fields, change
9324 ordered_team_ids into pointer from flexible array member.
9325 Add mode field. Put lock and next into a different cache line
9326 from most of the write-once fields.
9327 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
9328 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
9329 gomp_iter_ull_guided_next): New prototypes.
9330 (gomp_new_icv): New prototype.
9331 (struct gomp_thread): Add thread_pool and task fields.
9332 (struct gomp_thread_pool): New type.
9333 (gomp_new_team): New prototype.
9334 (gomp_team_start): Change type of last argument.
9335 (gomp_new_work_share): Removed.
9336 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
9337 (gomp_work_share_init_done): New static inline.
9338 (gomp_throttled_spin_count_var, gomp_available_cpus,
9339 gomp_managed_threads): New extern decls.
9340 (gomp_init_task): New prototype.
9341 (gomp_spin_count_var): New extern var decl.
9342 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
9343 or no alias support, or if not PIC.
9344 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
9345 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
9346 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
9347 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
9348 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
9349 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
9350 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
9351 gomp_test_nest_lock_25): New prototypes.
9352 (omp_lock_symver, strong_alias): Define.
9353 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
9354 decls.
9355 (gomp_end_task): New.
9356 (struct gomp_task_icv, gomp_global_icv): New.
9357 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
9358 (struct gomp_task): New.
9359 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9360 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9361 (gomp_icv): New.
9362 (gomp_schedule_type): Reorder enum to match
9363 omp_sched_t.
9364 * team.c (struct gomp_thread_start_data): Add thread_pool and task
9365 fields.
9366 (gomp_thread_start): Add gomp_team_barrier_wait call.
9367 For non-nested case remove clearing of docked thread thr fields.
9368 Use pool fields instead of global gomp_* variables. Use
9369 gomp_barrier_wait_last when needed. Initialize ts.active_level.
9370 Create tasks for each member thread.
9371 (free_team): Only destroy team barrier, task_lock here and free it.
9372 (gomp_free_thread): Free last_team if non-NULL.
9373 (gomp_team_end): Call gomp_team_barrier_wait instead of
9374 gomp_barrier_wait. For nested case call one extra
9375 gomp_barrier_wait. Move here some destruction from free_team.
9376 Call free_team on pool->last_team if any, rather than freeing
9377 current team. Destroy work_share_list_free_lock ifndef
9378 HAVE_SYNC_BUILTINS.
9379 (gomp_new_icv): New function.
9380 (gomp_threads, gomp_threads_size, gomp_threads_used,
9381 gomp_threads_dock): Removed.
9382 (gomp_thread_destructor): New variable.
9383 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9384 functions.
9385 (gomp_team_start): Create new pool if current thread doesn't have
9386 one. Use pool fields instead of global gomp_* variables.
9387 Initialize thread_pool field for new threads. Clear single_count.
9388 Change last argument from ws to team, don't create
9389 new team, set ts.work_share to &team->work_shares[0] and clear
9390 ts.last_work_share. Don't clear ts.work_share_generation.
9391 If number of threads changed, adjust atomically gomp_managed_threads.
9392 Use gomp_init_task instead of gomp_new_task,
9393 set thr->task to the corresponding implicit_task array entry.
9394 Create tasks for each member thread. Initialize ts.level.
9395 (initialize_team): Call pthread_key_create on
9396 gomp_thread_destructor.
9397 (team_destructor): New function.
9398 (new_team): Removed.
9399 (gomp_new_team): New function.
9400 (free_team): Free gomp_work_share blocks chained through next_alloc,
9401 instead of freeing work_shares and destroying work_share_lock.
9402 (gomp_team_end): Call gomp_fini_work_share. If number of threads
9403 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
9404 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9405 of gomp_barrier_wait.
9406 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9407 instead of gomp_barrier_wait. Call gomp_work_share_init_done
9408 if gomp_work_share_start returned true. Don't unlock ws->lock.
9409 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9410 of gomp_barrier_wait.
9411 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
9412 gomp_work_share_init_done if gomp_work_share_start returned true.
9413 Don't unlock ws->lock.
9414 * work.c: Include stddef.h.
9415 (free_work_share): Use work_share_list_free_lock instead
9416 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
9417 Call gomp_fini_work_share and then either free ws if orphaned, or
9418 put it into work_share_list_free list of the current team.
9419 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9420 functions.
9421 (gomp_work_share_start, gomp_work_share_end,
9422 gomp_work_share_end_nowait): Rewritten.
9423 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9424 (openmp_version): Set to 200805.
9425 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9426 omp_sched_guided, omp_sched_auto): New parameters.
9427 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9428 omp_set_max_active_levels, omp_get_max_active_levels,
9429 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9430 omp_get_active_level): New interfaces.
9431 * omp_lib.h.in (openmp_version): Set to 200805.
9432 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9433 omp_sched_guided, omp_sched_auto): New parameters.
9434 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9435 omp_set_max_active_levels, omp_get_max_active_levels,
9436 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9437 omp_get_active_level): New externals.
9438 * loop.c: Include limits.h.
9439 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9440 GFS_AUTO.
9441 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9442 Likewise. Use gomp_icv.
9443 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9444 ts.static_trip here.
9445 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9446 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
9447 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9448 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
9449 don't unlock ws->lock, otherwise lock it.
9450 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9451 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
9452 (gomp_parallel_loop_start): Call gomp_new_team instead of
9453 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
9454 Adjust gomp_team_start caller. Pass 0 as second argument to
9455 gomp_resolve_num_threads.
9456 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9457 If adding ws->chunk_size nthreads + 1 times after end won't
9458 overflow, set ws->mode to 1.
9459 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9460 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9461 GOMP_loop_ull_ordered_static_start,
9462 GOMP_loop_ull_ordered_dynamic_start,
9463 GOMP_loop_ull_ordered_guided_start,
9464 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9465 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9466 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9467 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9468 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9469 prototypes.
9470 * libgomp.map: Export lock routines also @@OMP_2.0.
9471 (GOMP_loop_ordered_dynamic_first,
9472 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9473 GOMP_loop_ordered_static_first): Remove.
9474 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9475 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9476 GOMP_loop_ull_ordered_dynamic_next,
9477 GOMP_loop_ull_ordered_dynamic_start,
9478 GOMP_loop_ull_ordered_guided_next,
9479 GOMP_loop_ull_ordered_guided_start,
9480 GOMP_loop_ull_ordered_runtime_next,
9481 GOMP_loop_ull_ordered_runtime_start,
9482 GOMP_loop_ull_ordered_static_next,
9483 GOMP_loop_ull_ordered_static_start,
9484 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9485 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9486 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9487 (omp_set_schedule, omp_get_schedule,
9488 omp_get_thread_limit, omp_set_max_active_levels,
9489 omp_get_max_active_levels, omp_get_level,
9490 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9491 omp_set_schedule_, omp_set_schedule_8_,
9492 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9493 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9494 omp_get_max_active_levels_, omp_get_level_,
9495 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9496 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9497 New exports @@OMP_3.0.
9498 * omp.h.in (omp_sched_t): New type.
9499 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9500 omp_set_max_active_levels, omp_get_max_active_levels,
9501 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9502 omp_get_active_level): New prototypes.
9503 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9504 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9505 gomp_thread_limit_var, gomp_remaining_threads_count,
9506 gomp_remaining_threads_lock): New variables.
9507 (parse_spincount): New function.
9508 (initialize_env): Call gomp_init_num_threads unconditionally.
9509 Initialize gomp_available_cpus. Call parse_spincount,
9510 initialize gomp_{,throttled_}spin_count_var
9511 depending on presence and value of OMP_WAIT_POLICY and
9512 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
9513 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9514 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
9515 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
9516 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
9517 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9518 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9519 (gomp_global_icv): New.
9520 (parse_schedule): Use it. Parse "auto".
9521 (omp_set_num_threads): Use gomp_icv.
9522 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9523 Likewise.
9524 (omp_get_max_threads): Move from parallel.c.
9525 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9526 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9527 add ialias.
9528 (parse_stacksize, parse_wait_policy): New functions.
9529 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9530 both wrappers for compatibility and new locks.
9531 (omp_set_schedule, omp_get_schedule,
9532 omp_get_thread_limit, omp_set_max_active_levels,
9533 omp_get_max_active_levels, omp_get_level,
9534 omp_get_ancestor_thread_num, omp_get_team_size,
9535 omp_get_active_level): New ialias_redirect.
9536 (omp_set_schedule_, omp_set_schedule_8_,
9537 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9538 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9539 omp_get_max_active_levels_, omp_get_level_,
9540 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9541 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9542 New functions.
9543 * parallel.c: Include limits.h.
9544 (gomp_resolve_num_threads): Add count argument. Rewritten.
9545 (GOMP_parallel_start): Call gomp_new_team and pass that as last
9546 argument to gomp_team_start. Pass 0 as second argument to
9547 gomp_resolve_num_threads.
9548 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9549 if gomp_thread_limit_var != ULONG_MAX.
9550 (omp_in_parallel): Implement using ts.active_level.
9551 (omp_get_max_threads): Move to env.c.
9552 (omp_get_level, omp_get_ancestor_thread_num,
9553 omp_get_team_size, omp_get_active_level): New functions,
9554 add ialias.
9555 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9556 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
9557 gomp_iter_dynamic_next instead of the _locked variant and don't take
9558 lock around it, otherwise acquire it before calling
9559 gomp_iter_dynamic_next_locked.
9560 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9561 gomp_iter_dynamic_next instead of the _locked variant and don't take
9562 lock around it.
9563 (GOMP_parallel_sections_start): Call gomp_new_team instead of
9564 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
9565 Adjust gomp_team_start caller. Pass count as second argument to
9566 gomp_resolve_num_threads, don't adjust num_threads after the call.
9567 Use gomp_icv.
9568 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9569 ws->chunk_size by incr.
9570 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
9571 code.
9572 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9573 types.
9574 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9575 (omp_check_defines): Check even the compat defines.
9576 * config/linux/ptrlock.c: New file.
9577 * config/linux/ptrlock.h: New file.
9578 * config/linux/wait.h: New file.
9579 * config/posix/ptrlock.c: New file.
9580 * config/posix/ptrlock.h: New file.
9581 * config/linux/bar.h (gomp_team_barrier_wait,
9582 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9583 (gomp_team_barrier_set_task_pending,
9584 gomp_team_barrier_clear_task_pending,
9585 gomp_team_barrier_set_waiting_for_tasks,
9586 gomp_team_barrier_waiting_for_tasks,
9587 gomp_team_barrier_done): New inlines.
9588 (gomp_barrier_t): Rewritten.
9589 (gomp_barrier_state_t): New typedef.
9590 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9591 gomp_barrier_wait_start): Rewritten.
9592 (gomp_barrier_wait_end): Change second argument to
9593 gomp_barrier_state_t.
9594 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9595 inlines.
9596 * config/linux/bar.c: Include wait.h instead of libgomp.h and
9597 futex.h.
9598 (gomp_barrier_wait_end): Rewritten.
9599 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9600 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9601 * config/posix/bar.h (gomp_barrier_t): Add generation field.
9602 (gomp_barrier_state_t): New typedef.
9603 (gomp_team_barrier_wait,
9604 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9605 (gomp_barrier_wait_start): Or all but low 2 bits from generation
9606 into the return value. Return gomp_barrier_state_t.
9607 (gomp_team_barrier_set_task_pending,
9608 gomp_team_barrier_clear_task_pending,
9609 gomp_team_barrier_set_waiting_for_tasks,
9610 gomp_team_barrier_waiting_for_tasks,
9611 gomp_team_barrier_done): New inlines.
9612 (gomp_barrier_wait_end): Change second argument to
9613 gomp_barrier_state_t.
9614 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9615 inlines.
9616 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9617 (gomp_barrier_wait_end): Change second argument to
9618 gomp_barrier_state_t.
9619 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9620 gomp_team_barrier_wake): New functions.
9621 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9622 futex.h.
9623 (gomp_futex_wake, gomp_futex_wait): New variables.
9624 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9625 * config/linux/lock.c: Rewrite to make locks task owned,
9626 for backwards compatibility provide the old entrypoints
9627 if symbol versioning. Include wait.h instead of libgomp.h and
9628 futex.h.
9629 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9630 * config/posix95/lock.c: Rewrite to make locks task owned,
9631 for backwards compatibility provide the old entrypoints
9632 if symbol versioning.
9633 * config/posix/lock.c: Rewrite to make locks task owned,
9634 for backwards compatibility provide the old entrypoints
9635 if symbol versioning.
9636 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9637 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9638 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9639 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9640 (sys_futex0): Return error code.
9641 (futex_wake, futex_wait): If ENOSYS was returned, clear
9642 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9643 (cpu_relax, atomic_write_barrier): New static inlines.
9644 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9645 (futex_wake, futex_wait): If ENOSYS was returned, clear
9646 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9647 (cpu_relax, atomic_write_barrier): New static inlines.
9648 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9649 (sys_futex0): Return error code.
9650 (futex_wake, futex_wait): If ENOSYS was returned, clear
9651 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9652 (cpu_relax, atomic_write_barrier): New static inlines.
9653 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9654 (sys_futex0): Return error code.
9655 (futex_wake, futex_wait): If ENOSYS was returned, clear
9656 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9657 (cpu_relax, atomic_write_barrier): New static inlines.
9658 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9659 (sys_futex0): Return error code.
9660 (futex_wake, futex_wait): If ENOSYS was returned, clear
9661 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9662 (cpu_relax, atomic_write_barrier): New static inlines.
9663 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9664 (sys_futex0): Return error code.
9665 (futex_wake, futex_wait): If ENOSYS was returned, clear
9666 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9667 (cpu_relax, atomic_write_barrier): New static inlines.
9668 * config/linux/sem.c: Include wait.h instead of libgomp.h and
9669 futex.h.
9670 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9671 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9672 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9673 types.
9674 (omp_nest_lock_t): Change owner into void *, add lock field.
9675 * config/posix95/omp-lock.h: Include semaphore.h.
9676 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9677 (omp_lock_t): Use sem_t instead of mutex if semaphores
9678 aren't broken.
9679 (omp_nest_lock_t): Likewise. Change owner to void *.
9680 * config/posix/omp-lock.h: Include semaphore.h.
9681 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9682 (omp_lock_t): Use sem_t instead of mutex if semaphores
9683 aren't broken.
9684 (omp_nest_lock_t): Likewise. Add owner field.
9685
9686 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9687
9688 * testsuite/libgomp.c/collapse-1.c: New test.
9689 * testsuite/libgomp.c/collapse-2.c: New test.
9690 * testsuite/libgomp.c/collapse-3.c: New test.
9691 * testsuite/libgomp.c/icv-1.c: New test.
9692 * testsuite/libgomp.c/icv-2.c: New test.
9693 * testsuite/libgomp.c/lib-2.c: New test.
9694 * testsuite/libgomp.c/lock-1.c: New test.
9695 * testsuite/libgomp.c/lock-2.c: New test.
9696 * testsuite/libgomp.c/lock-3.c: New test.
9697 * testsuite/libgomp.c/loop-4.c: New test.
9698 * testsuite/libgomp.c/loop-5.c: New test.
9699 * testsuite/libgomp.c/loop-6.c: New test.
9700 * testsuite/libgomp.c/loop-7.c: New test.
9701 * testsuite/libgomp.c/loop-8.c: New test.
9702 * testsuite/libgomp.c/loop-9.c: New test.
9703 * testsuite/libgomp.c/nested-3.c: New test.
9704 * testsuite/libgomp.c/nestedfn-6.c: New test.
9705 * testsuite/libgomp.c/sort-1.c: New test.
9706 * testsuite/libgomp.c/task-1.c: New test.
9707 * testsuite/libgomp.c/task-2.c: New test.
9708 * testsuite/libgomp.c/task-3.c: New test.
9709 * testsuite/libgomp.c/task-4.c: New test.
9710 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9711 to C++ testsuite default compiler options.
9712 * testsuite/libgomp.c++/collapse-1.C: New test.
9713 * testsuite/libgomp.c++/collapse-2.C: New test.
9714 * testsuite/libgomp.c++/ctor-10.C: New test.
9715 * testsuite/libgomp.c++/for-1.C: New test.
9716 * testsuite/libgomp.c++/for-2.C: New test.
9717 * testsuite/libgomp.c++/for-3.C: New test.
9718 * testsuite/libgomp.c++/for-4.C: New test.
9719 * testsuite/libgomp.c++/for-5.C: New test.
9720 * testsuite/libgomp.c++/loop-8.C: New test.
9721 * testsuite/libgomp.c++/loop-9.C: New test.
9722 * testsuite/libgomp.c++/loop-10.C: New test.
9723 * testsuite/libgomp.c++/task-1.C: New test.
9724 * testsuite/libgomp.c++/task-2.C: New test.
9725 * testsuite/libgomp.c++/task-3.C: New test.
9726 * testsuite/libgomp.c++/task-4.C: New test.
9727 * testsuite/libgomp.c++/task-5.C: New test.
9728 * testsuite/libgomp.c++/task-6.C: New test.
9729 * testsuite/libgomp.fortran/allocatable1.f90: New test.
9730 * testsuite/libgomp.fortran/allocatable2.f90: New test.
9731 * testsuite/libgomp.fortran/allocatable3.f90: New test.
9732 * testsuite/libgomp.fortran/allocatable4.f90: New test.
9733 * testsuite/libgomp.fortran/collapse1.f90: New test.
9734 * testsuite/libgomp.fortran/collapse2.f90: New test.
9735 * testsuite/libgomp.fortran/collapse3.f90: New test.
9736 * testsuite/libgomp.fortran/collapse4.f90: New test.
9737 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9738 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9739 * testsuite/libgomp.fortran/lib4.f90: New test.
9740 * testsuite/libgomp.fortran/lock-1.f90: New test.
9741 * testsuite/libgomp.fortran/lock-2.f90: New test.
9742 * testsuite/libgomp.fortran/nested1.f90: New test.
9743 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9744 * testsuite/libgomp.fortran/strassen.f90: New test.
9745 * testsuite/libgomp.fortran/tabs1.f90: New test.
9746 * testsuite/libgomp.fortran/tabs2.f: New test.
9747 * testsuite/libgomp.fortran/task1.f90: New test.
9748 * testsuite/libgomp.fortran/task2.f90: New test.
9749 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9750 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9751 * testsuite/libgomp.c/pr26943-2.c: Likewise.
9752 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9753 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9754
9755 2008-05-23 Jakub Jelinek <jakub@redhat.com>
9756
9757 PR c++/36308
9758 * testsuite/libgomp.c++/ctor-11.C: New test.
9759 * testsuite/libgomp.c++/ctor-12.C: New test.
9760
9761 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9762
9763 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9764
9765 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9766
9767 PR middle-end/36106
9768 * testsuite/libgomp.c/atomic-5.c: New test.
9769 * testsuite/libgomp.c/atomic-6.c: New test.
9770 * testsuite/libgomp.c/autopar-1.c: New test.
9771
9772 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9773
9774 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9775 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9776 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9777 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9778 * configure: Regenerate.
9779 * Makefile.in, testsuite/Makefile.in: Likewise.
9780
9781 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9782
9783 PR bootstrap/35457
9784 * aclocal.m4: Regenerate.
9785 * configure: Regenerate.
9786
9787 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9788
9789 PR middle-end/35611
9790 * testsuite/libgomp.c/atomic-4.c: New test.
9791
9792 PR libgomp/35625
9793 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9794 (gomp_iter_guided_next): Likewise.
9795 * testsuite/libgomp.c/pr35625.c: New test.
9796
9797 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9798
9799 * aclocal.m4: Regenerate.
9800 * configure: Likewise.
9801 * Makefile.in: Likewise.
9802 * testsuite/Makefile.in: Likewise.
9803
9804 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9805
9806 PR middle-end/35185
9807 * testsuite/libgomp.c++/pr35185.C: New test.
9808
9809 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9810
9811 PR middle-end/35549
9812 * testsuite/libgomp.c/pr35549.c: New test.
9813
9814 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9815
9816 * testsuite/libgomp.c/atomic-3.c: New test.
9817
9818 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9819
9820 PR fortran/33197
9821 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9822 .F08 file suffixes.
9823
9824 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9825
9826 PR libgomp/33131
9827 * configure.ac: Add ACX_HEADER_STRING.
9828 * env.c: Include strings.h.
9829 * aclocal.m4: Regenerate.
9830 * config.h.in: Regenerate.
9831 * configure: Regenerate.
9832 * Makefile.in: Regenerate.
9833 * testsuite/Makefile.in: Regenerate.
9834
9835 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9836
9837 PR middle-end/35196
9838 * testsuite/libgomp.c/pr35196.c: New test.
9839
9840 PR middle-end/35130
9841 * testsuite/libgomp.fortran/pr35130.f90: New test.
9842 * testsuite/libgomp.c/pr35130.c: New test.
9843
9844 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9845
9846 PR middle-end/33880
9847 * testsuite/libgomp.c/pr33880.c: New test.
9848 * testsuite/libgomp.fortran/pr33880.f90: New test.
9849
9850 2008-01-24 David Edelsohn <edelsohn@gnu.org>
9851
9852 * configure: Regenerate.
9853
9854 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9855
9856 * configure.ac: Move futex checking into ../config/futex.m4.
9857 * configure: Rebuilt.
9858 * aclocal.m4: Rebuilt.
9859 * Makefile.in: Rebuilt.
9860
9861 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9862 2007-10-15 ../config/tls.m4 change.
9863
9864 2007-12-19 Jakub Jelinek <jakub@redhat.com>
9865
9866 PR c++/34513
9867 * testsuite/libgomp.c/pr34513.c: New test.
9868 * testsuite/libgomp.c++/pr34513.C: New test.
9869
9870 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
9871
9872 PR target/32765
9873 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
9874
9875 2007-12-04 Jakub Jelinek <jakub@redhat.com>
9876
9877 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
9878
9879 2007-12-03 Jakub Jelinek <jakub@redhat.com>
9880
9881 * testsuite/libgomp.c/private-1.c: New test.
9882
9883 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
9884 Paolo Bonzini <bonzini@gnu.org>
9885
9886 * Makefile.am: Use space as vpath separator. Use 'vpath %'
9887 instead of 'VPATH ='.
9888 * Makefile.in: Regenerate.
9889
9890 2007-11-23 Matthias Klose <doko@ubuntu.com>
9891
9892 * configure.ac: Adjust makeinfo version check.
9893 * configure: Regenerate.
9894
9895 2007-11-10 Jakub Jelinek <jakub@redhat.com>
9896
9897 PR fortran/34020
9898 * testsuite/libgomp.fortran/pr34020.f90: New test.
9899
9900 2007-11-06 Jakub Jelinek <jakub@redhat.com>
9901
9902 PR c++/33894
9903 * testsuite/libgomp.c++/atomic-1.C: New test.
9904
9905 2007-10-25 Jakub Jelinek <jakub@redhat.com>
9906
9907 PR libgomp/33275
9908 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
9909 Make x and y integers rather than (implicit) reals. Add private (j)
9910 clause to the last omp parallel.
9911
9912 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
9913
9914 * configure: Regenerate following changes to ../config/tls.m4.
9915
9916 2007-09-28 Jakub Jelinek <jakub@redhat.com>
9917
9918 * testsuite/libgomp.fortran/stack.f90: New test.
9919
9920 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
9921
9922 * config/mingw32/proc.c: New file.
9923
9924 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
9925
9926 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
9927 (main): Use __get_cpuid to get i386 target fetaures.
9928 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
9929 (main): Use __get_cpuid to get x86_64 target fetaures.
9930
9931 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
9932
9933 PR target/32765
9934 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
9935 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
9936
9937 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9938
9939 PR fortran/32550
9940 * testsuite/libgomp.fortran/pr32550.f90: New test.
9941 * testsuite/libgomp.fortran/crayptr2.f90: New test.
9942
9943 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
9944
9945 * aclocal.m4: Regenerated.
9946
9947 2007-07-05 Tobias Burnus <burnus@net-b.de>
9948
9949 PR fortran/32359
9950 * testsuite/libgomp.fortran/pr32359.f90: New.
9951
9952 2007-07-02 Jakub Jelinek <jakub@redhat.com>
9953
9954 PR libgomp/32468
9955 * sections.c (GOMP_parallel_sections_start): Only decrease
9956 number of threads to COUNT if dyn_var is true.
9957 * testsuite/libgomp.c/pr32468.c: New test.
9958
9959 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9960
9961 PR libgomp/26308
9962 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
9963
9964 2007-06-21 Jakub Jelinek <jakub@redhat.com>
9965
9966 PR middle-end/32362
9967 * testsuite/libgomp.c/pr32362-1.c: New test.
9968 * testsuite/libgomp.c/pr32362-2.c: New test.
9969 * testsuite/libgomp.c/pr32362-3.c: New test.
9970
9971 2007-06-07 Jakub Jelinek <jakub@redhat.com>
9972
9973 * team.c (gomp_team_start): Fix setting up thread_attr
9974 stack size.
9975
9976 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
9977
9978 * configure: Regenerate.
9979
9980 2007-05-23 Steve Ellcey <sje@cup.hp.com>
9981
9982 * Makefile.in: Regenerate.
9983 * configure: Regenerate.
9984 * aclocal.m4: Regenerate.
9985 * testsuite/Makefile.in: Regenerate.
9986
9987 2007-05-04 Jakub Jelinek <jakub@redhat.com>
9988
9989 * config/linux/proc.c: New file.
9990
9991 PR libgomp/28482
9992 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
9993
9994 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
9995
9996 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
9997
9998 2007-04-16 Matthias Klose <doko@debian.org>
9999
10000 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
10001 flags if not building with -m64.
10002 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
10003 flag for i?86-*-* targets, if current target matches -m64.
10004
10005 2007-04-14 Steve Ellcey <sje@cup.hp.com>
10006
10007 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
10008 * Makefile.in: Regenerate.
10009
10010 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10011
10012 PR testsuite/31369
10013 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
10014 ld_library_path.
10015 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10016
10017 2007-04-04 Jakub Jelinek <jakub@redhat.com>
10018
10019 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
10020 decls.
10021 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
10022 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
10023 (parse_affinity): New function.
10024 (initialize_env): Call it and gomp_init_affinity.
10025 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
10026 create new pthread_attr_t and call gomp_init_thread_affinity
10027 on it for each thread before passing the attribute to pthread_create.
10028 * config/linux/affinity.c: New file.
10029 * config/posix/affinity.c: New file.
10030 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
10031 * configure: Rebuilt.
10032 * config.h.in: Rebuilt.
10033 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
10034 * Makefile.in: Rebuilt.
10035
10036 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
10037
10038 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
10039 *-*-darwin*.
10040 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
10041 and use it if found.
10042
10043 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
10044
10045 * testsuite/config/default.exp: New file.
10046 * testsuite/lib/libgomp.exp: New file.
10047 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
10048 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
10049 load_lib *, load_gcc_lib *): Move to libgomp.exp.
10050 (libgomp_load): Remove.
10051 * testsuite/lib/libgomp.exp (libgomp_init): Compute
10052 always_ld_library_path, not ld_library_path. Set additional_flags
10053 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
10054 (target_compile): Do not call libgomp_init. Append lang_library_path
10055 and lang_link_flags to options.
10056 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
10057 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
10058 here.
10059 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
10060 always_ld_library_path. Set LD_LIBRARY_PATH here.
10061 * testsuite/libgomp.fortran/fortran.exp: Ditto.
10062 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
10063 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
10064 CX8 flag.
10065 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
10066 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
10067 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
10068 * testsuite/libgomp.c/pr29947-1.c: Ditto.
10069 * testsuite/libgomp.c/atomic-10.c: Ditto.
10070
10071 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10072
10073 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10074 dg-final cleanup-modules line.
10075 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10076 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10077 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10078 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10079 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10080 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10081 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10082
10083 2007-03-18 Andreas Schwab <schwab@suse.de>
10084
10085 * acinclude.m4: Adjust regular expression for ld version
10086 extraction.
10087 * configure: Regenerate.
10088
10089 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10090
10091 * Makefile.am: Add install-pdf target as copied from
10092 automake v1.10 rules.
10093 * Makefile.in: Regenerate
10094
10095 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10096
10097 PR libgomp/28486
10098 * configure: Regenerate.
10099
10100 PR c++/30703
10101 * testsuite/libgomp.c++/pr30703.C: New test.
10102
10103 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10104
10105 Revert:
10106 2006-07-05 Eric Christopher <echristo@apple.com>
10107 * configure.ac: Depend addition of -pthread on host OS.
10108 * configure: Regenerate.
10109
10110 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10111
10112 * libgomp.texi: Fix spacing after abbreviations.
10113
10114 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
10115
10116 PR libgomp/30546
10117 * configure.ac: Add check for makeinfo
10118 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10119 if an appropiate version of makeinfo is found.
10120 * aclocal.m4: Regenerated.
10121 * configure: Regenerated.
10122 * Makefile.in: Regenerated.
10123 * testsuite/Makefile.in: Regenerated.
10124
10125 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
10126
10127 PR libgomp/30540
10128 * libgomp.texi: More about implementation-dependent settings.
10129
10130 2007-01-26 Tobias Burnus <burnus@net-b.de>
10131
10132 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10133
10134 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10135
10136 PR middle-end/30494
10137 * testsuite/libgomp.c/pr30494.c: New test.
10138
10139 2007-01-15 Tom Tromey <tromey@redhat.com>
10140
10141 * configure: Rebuilt.
10142 * configure.ac: Fixed comment.
10143
10144 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
10145
10146 * libgomp.texi: Document implementation specific default values of
10147 environment variables.
10148
10149 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
10150
10151 PR libgomp/28209
10152 * libgomp.texi: New file.
10153 * configure.ac: Add --enable-generated-files-in-srcdir option.
10154 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10155 files to srcdir.
10156 * Makefile.in: Regenerated.
10157 * config.h.in: Regenerated.
10158 * testsuite/Makefile.in: Regenerated.
10159 * NOTES: Removed.
10160
10161 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
10162
10163 PR libgomp/29949
10164 * env.c (omp_set_num_threads): Set illegal thread count to 1.
10165
10166 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10167
10168 * configure: Regenerate.
10169
10170 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10171
10172 PR libgomp/29947
10173 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
10174 start if there shouldn't be any loop iterations.
10175 (gomp_loop_ordered_static_start): Remove start == end test.
10176 * testsuite/libgomp.c/pr29947-1.c: New test.
10177 * testsuite/libgomp.c/pr29947-2.c: New test.
10178
10179 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10180
10181 * configure.tgt: Force initial-exec TLS model on Linux only.
10182
10183 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
10184
10185 * configure: Regenerated.
10186
10187 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
10188
10189 * env.c (parse_schedule): Reject out of range values.
10190 (parse_unsigned_long): Reject out of range, negative or zero values.
10191
10192 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10193
10194 PR fortran/29629
10195 * testsuite/libgomp.fortran/pr29629.f90: New test.
10196
10197 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10198
10199 PR libgomp/29494
10200 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10201 * config/posix95: New directory.
10202 * config/posix95/omp-lock.h: New file.
10203 * config/posix95/lock.c: Likewise.
10204
10205 2006-10-14 Geoffrey Keating <geoffk@apple.com>
10206
10207 * aclocal.m4: Regenerate.
10208 * configure: Regenerate.
10209
10210 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10211
10212 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10213 '<' to '<='.
10214
10215 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10216
10217 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10218 test.
10219 * configure: Regenerate.
10220 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10221
10222 2006-09-26 Jakub Jelinek <jakub@redhat.com>
10223
10224 PR middle-end/25261
10225 PR middle-end/28790
10226 * testsuite/libgomp.c/nestedfn-4.c: New test.
10227 * testsuite/libgomp.c/nestedfn-5.c: New test.
10228 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10229
10230 PR fortran/29097
10231 * testsuite/libgomp.fortran/condinc1.f: New test.
10232 * testsuite/libgomp.fortran/condinc2.f: New test.
10233 * testsuite/libgomp.fortran/condinc3.f90: New test.
10234 * testsuite/libgomp.fortran/condinc4.f90: New test.
10235 * testsuite/libgomp.fortran/condinc1.inc: New file.
10236
10237 2006-09-18 Tom Tromey <tromey@redhat.com>
10238
10239 * configure: Rebuilt.
10240
10241 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
10242
10243 PR c/28768
10244 PR preprocessor/14634
10245 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10246 to AC_DEFINE.
10247 * configure: Regenerate.
10248
10249 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
10250
10251 * testsuite/libgomp.fortran/reduction3.f90: Change
10252 -2147483648 to -huge(i)-1 to avoid overflow.
10253 * testsuite/libgomp.fortran/reduction4.f90: Change
10254 Z'ffffffff' to not(0) to avoid overflow.
10255
10256 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
10257
10258 PR libgomp/25938
10259 * Makefile.am (libsubincludedir): New.
10260 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
10261 * Makefile.in: Regenerate.
10262
10263 2006-08-17 Jakub Jelinek <jakub@redhat.com>
10264
10265 PR libgomp/28725
10266 * env.c: Include ctype.h.
10267 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
10268 leading and/or trailing whitespace and compare strings case
10269 insensitively.
10270
10271 2006-07-16 Jakub Jelinek <jakub@redhat.com>
10272
10273 PR fortran/28390
10274 * testsuite/libgomp.fortran/pr28390.f: New test.
10275
10276 2006-07-05 Eric Christopher <echristo@apple.com>
10277
10278 * configure.ac: Depend addition of -pthread on host OS.
10279 * configure: Regenerate.
10280
10281 2006-06-21 Jakub Jelinek <jakub@redhat.com>
10282
10283 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
10284 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
10285 defined.
10286
10287 2006-06-20 Jakub Jelinek <jakub@redhat.com>
10288
10289 PR libgomp/26175
10290 PR libgomp/26477
10291 * configure.ac: If neither --enable-linux-futex nor
10292 --disable-linux-futex is passed, determine the default by checking
10293 for compiling and/or running against NPTL. With --enable-linux-futex,
10294 check if SYS_gettid and SYS_futex are defined.
10295 * configure: Rebuilt.
10296
10297 2006-06-14 Richard Henderson <rth@redhat.com>
10298
10299 PR libgomp/28008
10300 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
10301 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
10302
10303 2006-06-09 Richard Henderson <rth@redhat.com>
10304
10305 * env.c (gomp_nthreads_var): Change to unsigned long.
10306 (gomp_run_sched_chunk): Likewise.
10307 (parse_unsigned_long): Rename from parse_num_threads and generalize.
10308 (initialize_env): Initialize gomp_thread_attr.
10309 * libgomp.h (gomp_nthreads_var): Update decl.
10310 (gomp_run_sched_chunk): Likewise.
10311 (gomp_thread_attr): Declare.
10312 * team.c (gomp_thread_attr): Export.
10313 (initialize_team): Don't initialize it.
10314
10315 2006-06-09 Jakub Jelinek <jakub@redhat.com>
10316
10317 PR fortran/27916
10318 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
10319 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
10320
10321 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10322
10323 * config/mingw32/time.c: New file.
10324 * configure.tgt: Use it.
10325
10326 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
10327
10328 * Makefile.am: Add install-html target. Add install-html to .PHONY
10329 * Makefile.in: Regenerate.
10330
10331 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10332
10333 PR libgomp/27612
10334 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
10335 * testsuite/libgomp.c/critical-1.c: Likewise.
10336 * testsuite/libgomp.c/loop-1.c: Likewise.
10337 * testsuite/libgomp.c/loop-2.c: Likewise.
10338 * testsuite/libgomp.c/single-1.c: Likewise.
10339 * testsuite/libgomp.c/ordered-1.c: Likewise.
10340 * testsuite/libgomp.c/ordered-2.c: Likewise.
10341
10342 2006-05-15 Jakub Jelinek <jakub@redhat.com>
10343
10344 PR middle-end/27416
10345 * libgomp.fortran/pr27416-1.f90: New test.
10346
10347 2006-05-03 Jakub Jelinek <jakub@redhat.com>
10348
10349 PR fortran/27395
10350 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
10351 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
10352
10353 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10354
10355 PR c++/26943
10356 * testsuite/libgomp.c/pr26943-1.c: New test.
10357 * testsuite/libgomp.c/pr26943-2.c: New test.
10358 * testsuite/libgomp.c/pr26943-3.c: New test.
10359 * testsuite/libgomp.c/pr26943-4.c: New test.
10360 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
10361 * testsuite/libgomp.c++/pr26943.C: New test.
10362
10363 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10364
10365 PR middle-end/27337
10366 * testsuite/libgomp.c++/pr27337.C: New test.
10367
10368 2006-04-26 Jakub Jelinek <jakub@redhat.com>
10369
10370 PR c/26171
10371 * testsuite/libgomp.c/pr26171.c: New test.
10372
10373 2006-04-25 Richard Henderson <rth@redhat.com>
10374
10375 PR libgomp/25865
10376 * configure.ac: Use GCC_CHECK_TLS.
10377 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10378 * Makefile.in, aclocal.m4, configure: Regenerate.
10379
10380 2006-04-10 Matthias Klose <doko@debian.org>
10381
10382 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10383 directory names containing underscores.
10384
10385 2006-03-21 Jakub Jelinek <jakub@redhat.com>
10386
10387 PR c++/26691
10388 * testsuite/libgomp.c++/pr26691.C: New test.
10389
10390 2006-03-13 Jakub Jelinek <jakub@redhat.com>
10391
10392 * testsuite/libgomp.fortran/retval2.f90: New test.
10393
10394 2006-03-09 Diego Novillo <dnovillo@redhat.com>
10395
10396 * testsuite/libgomp.c++: New directory.
10397
10398 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
10399
10400 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10401 * config/posix/sem.c: Implement the above.
10402
10403 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
10404
10405 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10406 define HAVE_BROKEN_POSIX_SEMAPHORES.
10407 * configure: Rebuilt.
10408 * config.h.in: Rebuilt.
10409
10410 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10411
10412 PR bootstrap/26161
10413 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10414 for the other pthread check.
10415 * configure: Regenerate.
10416 * config.h.in: Regenerate.
10417
10418 2006-02-15 Jakub Jelinek <jakub@redhat.com>
10419
10420 PR libgomp/25938
10421 PR libgomp/25984
10422 * Makefile.am (fincludedir): New variable.
10423 (nodist_include_HEADERS): Remove Fortran files.
10424 (nodist_finclude_HEADERS): New variable.
10425 * Makefile.in: Regenerated.
10426
10427 2006-02-13 Jakub Jelinek <jakub@redhat.com>
10428
10429 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10430 Remove tests for returning assumed character length arrays.
10431
10432 2006-02-12 Roger Sayle <roger@eyesopen.com>
10433 John David Anglin <dave@hiauly1.hia.nrc.ca>
10434
10435 PR libgomp/25936
10436 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10437
10438 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10439
10440 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10441
10442 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10443
10444 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10445 part of LD_LIBRARY_PATH manually.
10446
10447 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
10448
10449 PR libgomp/25852
10450 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10451 libgomp_init.
10452
10453 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
10454
10455 PR libgomp/25884
10456 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10457 * configure.ac (PERL): Don't set.
10458 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10459 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10460 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10461 * omp.h.in: Wrap the new configure substitutions with @ characters.
10462 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10463 * aclocal.m4, configure, Makefile.in: Regenerate.
10464 * mkomp_h.pl: Delete.
10465
10466 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
10467
10468 PR libgomp/25259
10469 * configure.ac: Use GCC_HEADER_STDINT.
10470 * libgomp.h: Include gstdint.h.
10471 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10472 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10473
10474 2006-01-24 Richard Henderson <rth@redhat.com>
10475
10476 PR libgomp/25942
10477 * configure.ac: Add AM_MAINTAINER_MODE.
10478 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10479
10480 2006-01-24 Diego Novillo <dnovillo@redhat.com>
10481
10482 * Makefile.in: Regenerate.
10483 * testsuite/Makefile.in: Regenerate.
10484 * aclocal.m4: Regenerate.
10485
10486 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
10487
10488 * config/posix/proc.c: Conditional include of sys/loadavg.h for
10489 Solaris.
10490 * configure.ac: Add check for loadavg.h.
10491 (link_gomp): Adjust comment.
10492 * configure: Regenerate.
10493 * config.h.in: Regenerate.
10494
10495 2006-01-21 Steve Ellcey <sje@cup.hp.com>
10496
10497 PR libgomp/25877
10498 * configure.ac: Remove check for alloca.h.
10499 * configure: Regenerate.
10500 * config.h.in: Regenerate.
10501 * libgomp.h: define gomp_alloca to be __builtin_alloca.
10502 * team.c: Remove use of alloca.h.
10503 Call gomp_alloca instead of alloca.
10504
10505 2006-01-20 Steve Ellcey <sje@cup.hp.com>
10506
10507 PR libgomp/25877
10508 * team.c: Add include of alloca.h.
10509 * configure.ac: Add check for alloca.h.
10510 * configure: Regenerate.
10511 * config.h.in: Regenerate.
10512
10513 2006-01-17 Jakub Jelinek <jakub@redhat.com>
10514
10515 PR fortran/25219
10516 * testsuite/libgomp.fortran/pr25219.f90: New test.
10517
10518 2005-12-05 Uros Bizjak <uros@kss-loka.si>
10519
10520 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10521 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10522 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10523 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10524 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10525 testsuite/libgomp.fortran/threadprivate1.f90,
10526 testsuite/libgomp.fortran/threadprivate2.f90,
10527 testsuite/libgomp.fortran/threadprivate3.f90,
10528 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10529 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10530 testsuite/libgomp.fortran/omp_parse3.f90: Change required
10531 effective-target to TLS runtime.
10532
10533 * testsuite/libgomp.fortran/pr25162.f: Require
10534 effective-target TLS runtime.
10535
10536 2005-12-01 Jakub Jelinek <jakub@redhat.com>
10537
10538 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10539 * testsuite/libgomp.c/nestedfn-3.c: New test.
10540
10541 2005-11-30 Jakub Jelinek <jakub@redhat.com>
10542
10543 PR fortran/25162
10544 * testsuite/libgomp.fortran/pr25162.f: New test.
10545
10546 2005-11-28 Jakub Jelinek <jakub@redhat.com>
10547
10548 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10549 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10550
10551 2005-11-25 Jakub Jelinek <jakub@redhat.com>
10552
10553 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10554 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10555 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10556 single.c, team.c, work.c, config/linux/alpha/futex.h,
10557 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10558 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10559 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10560 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10561 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10562 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10563 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10564 FSF address.
10565
10566 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10567
10568 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10569 to nodist_noinst_HEADERS.
10570 * Makefile.in: Rebuilt.
10571
10572 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10573 add integer count field.
10574 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10575 omp_nest_lock_t type change.
10576 (omp_init_nest_lock): Likewise. Initialize count to 0.
10577 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10578 Increment count.
10579 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10580 Decrement count.
10581 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10582 Increment count if successful and return the new nesting level.
10583 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10584 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10585 * testsuite/libgomp.c/lib-1.c: New test.
10586 * testsuite/libgomp.fortran/lib1.f90: New test.
10587 * testsuite/libgomp.fortran/lib2.f: New test.
10588 * testsuite/libgomp.fortran/lib3.f: New test.
10589
10590 2005-11-17 Richard Henderson <rth@redhat.com>
10591
10592 PR 24845
10593 * Makefile.am (nodist_toolexeclib_HEADERS): New.
10594 * configure.ac (link_gomp): New. Substitute it.
10595 (AC_CONFIG_FILES): Add libgomp.spec.
10596 * libgomp.spec.in: New file.
10597 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10598 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10599
10600 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10601
10602 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10603 reduction(-:var) behaving the same as reduction(+:var).
10604 * testsuite/libgomp.c/reduction-4.c: New test.
10605
10606 2005-11-15 Uros Bizjak <uros@kss-loka.si>
10607
10608 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10609 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10610 testsuite/libgomp.c/copyin-3.c,
10611 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10612 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10613 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10614 testsuite/libgomp.c++/pr24455.C,
10615 testsuite/libgomp.fortran/threadprivate1.f90,
10616 testsuite/libgomp.fortran/threadprivate2.f90,
10617 testsuite/libgomp.fortran/threadprivate3.f90,
10618 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10619 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10620 testsuite/libgomp.fortran/omp_parse3.f90: Require
10621 effective-target TLS.
10622
10623 2005-11-14 Diego Novillo <dnovillo@redhat.com>
10624
10625 * HEADER: Remove.
10626
10627 2005-11-13 Jakub Jelinek <jakub@redhat.com>
10628
10629 PR libgomp/24797
10630 * team.c (initialize_team): Pass NULL rather than free as
10631 pthread_key_create destructor. Initialize thread specific data
10632 pointer in initial thread to a static local variable rather than
10633 malloced memory.
10634
10635 2005-11-11 Uros Bizjak <uros@kss-loka.si>
10636
10637 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10638 its location to ld_library_path.
10639
10640 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10641
10642 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10643
10644 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10645
10646 * testsuite/libgomp.c: Rename from libgomp.dg.
10647
10648 2005-11-09 Diego Novillo <dnovillo@redhat.com>
10649
10650 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10651 threadprivate variable 'i'.
10652
10653 2005-11-09 Jakub Jelinek <jakub@redhat.com>
10654
10655 * config/linux/s390/futex.h: New file.
10656 * configure.tgt: Use it.
10657
10658 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10659 before the parallel.
10660
10661 2005-11-08 Jakub Jelinek <jakub@redhat.com>
10662
10663 PR c++/24734
10664 * testsuite/libgomp.c++/master-1.C: New test.
10665
10666 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10667
10668 * testsuite/libgomp.dg/copyin-3.c: New test.
10669
10670 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10671
10672 * testsuite/libgomp.fortran/retval1.f90: New test.
10673 * testsuite/libgomp.fortran/vla7.f90: New test.
10674
10675 2005-11-06 Jakub Jelinek <jakub@redhat.com>
10676
10677 * testsuite/libgomp.fortran/vla2.f90: New test.
10678 * testsuite/libgomp.fortran/vla3.f90: New test.
10679 * testsuite/libgomp.fortran/vla4.f90: New test.
10680 * testsuite/libgomp.fortran/vla5.f90: New test.
10681 * testsuite/libgomp.fortran/vla6.f90: New test.
10682
10683 2005-11-01 Jakub Jelinek <jakub@redhat.com>
10684
10685 * config/linux/sparc/futex.h: New file.
10686 * configure.tgt: Use it.
10687 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10688
10689 * critical.c: Include stdlib.h.
10690 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10691 ignoring return value.
10692 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10693 LIBGOMP_CHECK_SYNC_BUILTINS check.
10694 * configure: Rebuilt.
10695
10696 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10697
10698 * testsuite/libgomp.fortran/vla1.f90: New test.
10699
10700 2005-10-31 Richard Henderson <rth@redhat.com>
10701
10702 * testsuite/libgomp.fortran/character2.f90: Fix race condition
10703 setting 's' in different threads.
10704
10705 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10706
10707 * libgomp.h (attribute_hidden, ialias): Define.
10708 * config/posix/proc.c (omp_get_num_procs): Add ialias.
10709 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10710 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10711 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10712 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10713 omp_test_lock, omp_test_nest_lock): Likewise.
10714 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10715 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10716 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10717 omp_test_lock, omp_test_nest_lock): Likewise.
10718 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10719 omp_get_dynamic, omp_get_nested): Likewise.
10720 * parallel.c (omp_get_num_threads, omp_get_max_threads,
10721 omp_get_thread_num, omp_in_parallel): Likewise.
10722 * fortran.c (ialias_redirect): Define.
10723 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10724 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10725 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10726 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10727 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10728 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10729 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10730 omp_get_wtime): Add ialias_redirect.
10731
10732 2005-10-30 Jakub Jelinek <jakub@redhat.com>
10733
10734 * fortran.c: Include stdlib.h.
10735
10736 2005-10-29 Jakub Jelinek <jakub@redhat.com>
10737
10738 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10739 * Makefile.in: Regenerated.
10740
10741 2005-10-28 Jakub Jelinek <jakub@redhat.com>
10742
10743 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10744 * libgomp_f.h.in (omp_check_defines): New function.
10745 * env.c: Include libgomp_f.h.
10746 (initialize_env): Call omp_check_defines.
10747
10748 * testsuite/libgomp.dg/copyin-2.c: New test.
10749 * testsuite/libgomp.c++/copyin-2.C: New test.
10750 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10751
10752 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10753 * testsuite/libgomp.fortran/sharing2.f90: New test.
10754
10755 * testsuite/libgomp.dg/copyin-1.c: New test.
10756 * testsuite/libgomp.c++/copyin-1.C: New test.
10757
10758 2005-10-26 Jakub Jelinek <jakub@redhat.com>
10759
10760 * testsuite/libgomp.fortran/crayptr1.f90: New test.
10761
10762 * testsuite/libgomp.fortran/workshare1.f90: New test.
10763
10764 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10765 only test.
10766 * libgomp.fortran/sharing1.f90: New test.
10767
10768 2005-10-24 Jakub Jelinek <jakub@redhat.com>
10769
10770 PR c++/24502
10771 * testsuite/libgomp.c++/loop-7.C: New test.
10772
10773 * testsuite/libgomp.dg/nestedfn-2.c: New test.
10774
10775 * testsuite/libgomp.dg/nestedfn-1.c: New test.
10776 * testsuite/libgomp.fortran/reduction6.f90: New test.
10777 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10778
10779 2005-10-23 Richard Henderson <rth@redhat.com>
10780
10781 * testsuite/libgomp.c++/ctor-1.C: New.
10782 * testsuite/libgomp.c++/ctor-2.C: New.
10783 * testsuite/libgomp.c++/ctor-3.C: New.
10784 * testsuite/libgomp.c++/ctor-4.C: New.
10785 * testsuite/libgomp.c++/ctor-5.C: New.
10786 * testsuite/libgomp.c++/ctor-6.C: New.
10787 * testsuite/libgomp.c++/ctor-7.C: New.
10788 * testsuite/libgomp.c++/ctor-8.C: New.
10789 * testsuite/libgomp.c++/ctor-9.C: New.
10790
10791 2005-10-21 Diego Novillo <dnovillo@redhat.com>
10792
10793 PR 24455
10794 * testsuite/libgomp.c++/pr24455-1.C: New test.
10795 * testsuite/libgomp.c++/pr24455.C: New test.
10796 * testsuite/libgomp.dg/pr24455-1.c: New test.
10797 * testsuite/libgomp.dg/pr24455.c: New test.
10798
10799 2005-10-20 Richard Henderson <rth@redhat.com>
10800
10801 * testsuite/libgomp.c++/loop-6.C: New.
10802 * testsuite/libgomp.dg/loop-3.c: New.
10803
10804 2005-10-20 Jakub Jelinek <jakub@redhat.com>
10805
10806 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10807 explicitly private.
10808 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10809 explicitly shared.
10810
10811 2005-10-19 Diego Novillo <dnovillo@redhat.com>
10812
10813 * testsuite/libgomp.fortran/jacobi.f: New test.
10814
10815 2005-10-19 Richard Henderson <rth@redhat.com>
10816
10817 * configure.tgt (i?86-linux): Default to with_arch instead of
10818 CFLAGS. Add -mtune to match target_cpu.
10819 (x86_64-linux): Tune to i686.
10820
10821 * fortran.c (omp_test_nest_lock_): Fix typo.
10822
10823 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10824
10825 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10826 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10827 * testsuite/libgomp.dg/ordered-3.c: New test.
10828
10829 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10830 Remove volatile keyword.
10831
10832 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10833 in COMMON block to avoid warnings on 64-bit targets.
10834
10835 2005-10-18 Diego Novillo <dnovillo@redhat.com>
10836
10837 * testsuite/libgomp.dg/shared-3.c: New test.
10838
10839 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10840
10841 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10842 * testsuite/libgomp.fortran/reduction5.f90: New test.
10843
10844 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10845
10846 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10847 dg-options.
10848 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
10849 flush loop now that __sync_synchronize has proper memory barrier.
10850 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10851 Add -ffixed-form to dg-options.
10852
10853 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10854
10855 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10856 from subdirectories.
10857 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10858 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10859 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10860 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10861 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10862 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10863 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10864 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10865 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10866 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10867 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10868 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10869 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10870 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10871 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10872 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10873 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
10874 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
10875 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
10876 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
10877 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
10878 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
10879 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
10880 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
10881 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
10882
10883 2005-10-17 Jakub Jelinek <jakub@redhat.com>
10884
10885 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
10886 lang_library_path exists. Use find instead of glob to gather tests.
10887 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
10888
10889 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10890
10891 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
10892 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
10893 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
10894 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
10895 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
10896 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
10897 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
10898 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
10899 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
10900 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
10901 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
10902 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
10903 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
10904
10905 2005-10-15 Jakub Jelinek <jakub@redhat.com>
10906
10907 * testsuite/libgomp.dg/vla-1.c: New test.
10908
10909 * testsuite/libgomp.fortran/reference2.f90: New test.
10910
10911 * testsuite/libgomp.fortran/character2.f90: Remove explicit
10912 declaration of omp_get_thread_num.
10913 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
10914 use omp_lib.
10915
10916 * testsuite/libgomp.fortran/reduction1.f90: New test.
10917 * testsuite/libgomp.fortran/reduction2.f90: New test.
10918 * testsuite/libgomp.fortran/reduction3.f90: New test.
10919 * testsuite/libgomp.fortran/reduction4.f90: New test.
10920
10921 2005-10-13 Richard Henderson <rth@redhat.com>
10922
10923 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
10924 * Makefile.in: Regenerate.
10925 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
10926 * libgomp.h: Include bar.h.
10927 (struct gomp_barrier): Remove.
10928 (struct gomp_team): Add barrier. Replace master_barrier with
10929 master_release. Replace threads with ordered_release.
10930 (struct gomp_thread): Replace barrier with release.
10931 * ordered.c (gomp_ordered_first): Update for ordered_release change.
10932 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
10933 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
10934 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
10935 (GOMP_single_copy_end): Likewise.
10936 * team.c (gomp_threads_dock): New.
10937 (gomp_barrier_init, gomp_barrier_destroy): Remove.
10938 (gomp_thread_start): Use gomp_barrier_wait.
10939 (new_team, free_team): Update for gomp_team changes.
10940 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
10941 (gomp_team_end): Use gomp_barrier_wait.
10942 (initialize_team): Update for gomp_thread changes.
10943 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
10944 (gomp_work_share_end_nowait): Use atomic ops when available.
10945 * config/linux/bar.c, config/linux/bar.h: New files.
10946 * config/posix/bar.c, config/posix/bar.h: New files.
10947
10948 2005-10-13 Jakub Jelinek <jakub@redhat.com>
10949
10950 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
10951 * testsuite/libgomp.dg/single-2.c: New test.
10952
10953 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
10954 lang_link_flags): Unset, so that they aren't inherited from previously
10955 sourced *.exp.
10956
10957 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
10958
10959 2005-10-12 Richard Henderson <rth@redhat.com>
10960
10961 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
10962 (libgomp_init): Use lang_test_file, lang_library_path, and
10963 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
10964
10965 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
10966 (lang_test_file, lang_link_flags): New.
10967 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
10968
10969 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
10970 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
10971 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
10972 testsuite/libgomp.c++/parallel-1.C,
10973 testsuite/libgomp.c++/reduction-1.C,
10974 testsuite/libgomp.c++/reduction-2.C,
10975 testsuite/libgomp.c++/reduction-3.C,
10976 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
10977 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
10978 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
10979 New files, largely cribbed from the C testsuite.
10980
10981 2005-10-12 Jakub Jelinek <jakub@redhat.com>
10982
10983 * testsuite/libgomp.fortran/character1.f90: New test.
10984 * testsuite/libgomp.fortran/character2.f90: New test.
10985
10986 * testsuite/libgomp.dg/nested-1.c: New test.
10987 * testsuite/libgomp.dg/nested-2.c: New test.
10988 * testsuite/libgomp.fortran/do1.f90: New test.
10989 * testsuite/libgomp.fortran/do2.f90: New test.
10990
10991 * testsuite/libgomp.fortran/reference1.f90: New test.
10992
10993 2005-10-11 Jakub Jelinek <jakub@redhat.com>
10994
10995 * testsuite/libgomp.dg/reduction-1.c: New test.
10996 * testsuite/libgomp.dg/reduction-2.c: New test.
10997 * testsuite/libgomp.dg/reduction-3.c: New test.
10998
10999 2005-10-10 Jakub Jelinek <jakub@redhat.com>
11000
11001 * testsuite/libgomp.dg/atomic-1.c: New test.
11002 * testsuite/libgomp.dg/atomic-2.c: New test.
11003
11004 2005-10-09 Richard Henderson <rth@redhat.com>
11005
11006 * critical.c (atomic_lock): New.
11007 (initialize_critical): Initialize it.
11008 (GOMP_atomic_start, GOMP_atomic_end): New.
11009 * libgomp.map: Export them.
11010 * libgomp_g.h: Declare them.
11011
11012 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
11013
11014 2005-10-02 Richard Henderson <rth@redhat.com>
11015
11016 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
11017 to XCFLAGS instead of CFLAGS.
11018
11019 2005-09-30 Richard Henderson <rth@redhat.com>
11020
11021 * configure.ac: Determine whether -pthread or -lpthread is needed.
11022 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
11023 * Makefine.in, configure: Rebuild.
11024
11025 2005-09-28 Richard Henderson <rth@redhat.com>
11026
11027 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
11028 * testsuite/libgomp.dg/omp-single-3.c: New test.
11029
11030 2005-09-28 Diego Novillo <dnovillo@redhat.com>
11031
11032 * testsuite/libgomp.dg/omp-single-2.c: New test.
11033 * testsuite/libgomp.dg/shared-2.c: Fix return code.
11034
11035 2005-09-27 Richard Henderson <rth@redhat.com>
11036
11037 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
11038 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
11039
11040 2005-09-27 Jakub Jelinek <jakub@redhat.com>
11041
11042 * testsuite/libgomp.dg/omp-loop03.c: New test.
11043
11044 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11045
11046 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
11047
11048 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11049
11050 * testsuite/libgomp.dg/omp-single-1.c: New test.
11051 * testsuite/libgomp.dg/shared-1.c: Return 0.
11052 Add prototype for abort.
11053 * testsuite/libgomp.dg/shared-2.c: Likewise.
11054
11055 2005-09-26 Jakub Jelinek <jakub@redhat.com>
11056
11057 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
11058 constructs.
11059
11060 2005-09-26 Diego Novillo <dnovillo@redhat.com>
11061
11062 * testsuite/libgomp.dg/shared-1.c: New test.
11063 * testsuite/libgomp.dg/shared-2.c: New test.
11064
11065 2005-09-24 Richard Henderson <rth@redhat.com>
11066
11067 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
11068
11069 2005-09-24 Richard Henderson <rth@redhat.com>
11070
11071 * iter.c (gomp_iter_static_next): Round up when computing number
11072 of iterations. Don't bother distributing a remainder equally.
11073
11074 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11075 Don't call srand. Zero b before testing.
11076 (main): New.
11077
11078 2005-09-24 Jakub Jelinek <jakub@redhat.com>
11079
11080 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11081 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11082
11083 2005-09-23 Jakub Jelinek <jakub@redhat.com>
11084
11085 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11086 without !$omp end do, followed immediately by subroutine end.
11087
11088 2005-09-23 Diego Novillo <dnovillo@redhat.com>
11089
11090 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11091
11092 2005-09-22 Richard Henderson <rth@redhat.com>
11093
11094 * critical.c (GOMP_critical_name_start): Change argument to void**.
11095 Reuse the pointer space if the mutex fits.
11096 (GOMP_critical_name_end): Likewise.
11097 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11098 * libgomp_g.h (GOMP_critical_name_start): Update decl.
11099 (GOMP_critical_name_end): Likewise.
11100 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11101 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11102
11103 2005-09-20 Richard Henderson <rth@redhat.com>
11104
11105 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11106 (create_lock_lock): New.
11107 (initialize_critical): Initialize it.
11108 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11109 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11110
11111 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11112
11113 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11114
11115 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11116
11117 * testsuite/libgomp.dg/omp-loop01.c: New test.
11118 * testsuite/libgomp.dg/omp-loop02.c: New test.
11119
11120 2005-09-20 Jakub Jelinek <jakub@redhat.com>
11121
11122 * configure.ac (AC_PROG_FC): Add.
11123 (USE_FORTRAN): New automake conditional.
11124 * configure: Rebuilt.
11125 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11126 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11127 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11128 Add rules to build them.
11129 * Makefile.in: Rebuilt.
11130 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11131 OMP_NEST_LOCK_KIND.
11132 * libgomp.map: Add Fortran wrappers.
11133 * libgomp_f.h.in: New file.
11134 * omp_lib.h.in: New file.
11135 * omp_lib.f90.in: New file.
11136 * fortran.c: New file.
11137 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11138 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11139 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11140 libgfortran has been built.
11141 * testsuite/libgomp.fortran/fortran.exp: New file.
11142 * testsuite/libgomp.fortran/omp_cond1.f: New test.
11143 * testsuite/libgomp.fortran/omp_cond2.f: New test.
11144 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11145 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11146 * testsuite/libgomp.fortran/omp_hello.f: New test.
11147 * testsuite/libgomp.fortran/omp_orphan.f: New test.
11148 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11149 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11150 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11151 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11152 * testsuite/libgomp.fortran/omp_reduction.f: New test.
11153 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11154 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11155
11156 2005-08-30 Richard Henderson <rth@redhat.com>
11157
11158 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11159 function for when aliases are not usable.
11160 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11161 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11162 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11163 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11164 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11165 GOMP_loop_ordered_guided_next): Likewise.
11166 * ordered.c (GOMP_ordered_start): Likewise.
11167
11168 2005-08-01 Diego Novillo <dnovillo@redhat.com>
11169
11170 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11171 * testsuite/libgomp.dg/omp_hello.c: Fix return code
11172 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11173 * testsuite/libgomp.dg/omp_orphan.c: Likewise
11174 * testsuite/libgomp.dg/omp_reduction.c: Likewise
11175 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11176 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11177 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11178 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11179
11180 2005-07-07 Eric Christopher <echristo@redhat.com>
11181 Diego Novillo <dnovillo@redhat.com>
11182
11183 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11184 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11185 up code.
11186 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11187 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11188 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11189 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11190 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11191 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11192 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11193
11194 2005-06-13 Diego Novillo <dnovillo@redhat.com>
11195
11196 * TOPLEVEL.patch: Remove.
11197
11198 2005-05-16 Richard Henderson <rth@redhat.com>
11199
11200 * configure.ac: Test for clock_gettime.
11201 * config.h.in, configure: Rebuild.
11202 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11203 (omp_get_wtime): Use clock_gettime if available.
11204 (omp_get_wtick): Use clock_getres if available.
11205
11206 2005-05-11 Richard Henderson <rth@redhat.com>
11207
11208 * config/linux/ia64/futex.h: New file.
11209 * configure.tgt: Use it.
11210
11211 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11212
11213 2005-05-07 Richard Henderson <rth@redhat.com>
11214
11215 * config/linux/powerpc/futex.h: New file.
11216 * configure.tgt: Use it.
11217
11218 * config/linux/i486/futex.h: Merge ...
11219 * config/linux/x86_64/futex.h: ... into ...
11220 * config/linux/x86/futex.h: ... here.
11221 * configure.tgt: Update to match.
11222
11223 2005-05-06 Richard Henderson <rth@redhat.com>
11224
11225 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11226 * config/linux/i486/futex.h: Likewise.
11227 * config/linux/x86_64/futex.h: Likewise.
11228
11229 * config/linux/lock.c: New file.
11230 * config/linux/omp-lock.h: New file.
11231
11232 * critical.c, env.h: Don't include omp.h
11233 * config/posix/lock.c: Include libgomp.h instead of omp.h.
11234 * config/posix/time.c: Likewise.
11235 * config/posix/omp-lock.h: New file.
11236 * libgomp.h: Include omp-lock.h and omp.h.
11237 * Makefile.am (nodist_include_HEADERS): New.
11238 (omp.h): New rule.
11239 * configure.ac (PERL): New.
11240 * mkomp_h.pl: New file.
11241 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11242 with templates.
11243 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11244
11245 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11246 build directory. Re-add -march=i486 hack.
11247
11248 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
11249 (libgomp_link_flags): Remove.
11250 (libgomp_initialized): Remove.
11251 (libgomp_init): Don't protect from reinitialization. Copy code
11252 from libstdc++ for getting the multilib set correctly.
11253
11254 2005-05-05 Richard Henderson <rth@redhat.com>
11255
11256 * config/linux/alpha/futex.h: New file.
11257 * configure.tgt (alpha*-*-linux*): Use it.
11258
11259 * config/posix/mutex.c: New file.
11260 * config/posix/sem.c: Use libgomp.h.
11261
11262 * configure.tgt (x86_64-linux): Also test CC for -m32.
11263 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
11264
11265 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
11266 after $gccpath.
11267
11268 * Makefile.am (SUBDIRS): New.
11269 (libgomp_la_LDFLAGS): Add -lpthread.
11270 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
11271 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
11272
11273 * libgomp_g.h: New file.
11274 * libgomp.h: Split out all public declarations to libgomp_g.h.
11275 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
11276 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
11277 * config/linux/sem.h: Likewise.
11278 * config/posix/sem.h: Likewise.
11279
11280 * Makefile.am (AM_LDFLAGS): New.
11281 (libgomp_version_script): Split out from ...
11282 (libgomp_la_LDFLAGS): ... here.
11283 (libgomp_version_info): New.
11284 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
11285 (LIBGOMP_ENABLE): New.
11286 (LIBGOMP_CHECK_LINKER_FEATURES): New.
11287 (LIBGOMP_ENABLE_SYMVERS): New.
11288 * configure.ac (AC_INIT): Version 1.0.
11289 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
11290 (enable-linux-futex): Likewise. Rename from enable-futex.
11291 (libtool_VERSION): New.
11292 (LIBGOMP_ENABLE_SYMVERS): Use it.
11293 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
11294 * Makefile.in, aclocal.m4, configure: Rebuild.
11295
11296 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
11297 (gomp_mutex_unlock_slow): Fix typo.
11298 * config/linux/sem.c: Similarly.
11299 (gomp_sem_post_slow): Fix typo.
11300 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
11301 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
11302 [__PIC__] (sys_futex0): Don't use tmp output in asm.
11303
11304 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
11305 (libgomp_la_LDFLAGS): Add top_srcdir to path.
11306 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
11307 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
11308 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
11309 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
11310 LDFLAGS. Pull enable_futex check to top-level.
11311 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
11312 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
11313
11314 First attempt at real configury.
11315 * Makefile, config.h: Remove file.
11316 * Makefile.am, Makefile.in: New file.
11317 * acinclude.m4 aclocal.m4: New file.
11318 * configure.ac, configure.tgt, configure: New file.
11319
11320 * config/posix/lock.c: Rename from sys-lock.c.
11321 * config/posix/mutex.h: Rename from sys-mutex.h.
11322 * config/posix/sem.c: Rename from sys-sem.c.
11323 * config/posix/sem.h: Rename from sys-sem.h.
11324 * config/posix/proc.c: Rename from sys-proc.c.
11325 * config/posix/time.c: Rename from sys-proc.c.
11326
11327 * config/linux/mutex.c: New file.
11328 * config/linux/mutex.h: New file.
11329 * config/linux/sem.c: New file.
11330 * config/linux/sem.h: New file.
11331 * config/linux/i486/futex.h: New file.
11332 * config/linux/x86_64/futex.h: New file.
11333
11334 2005-05-04 Richard Henderson <rth@redhat.com>
11335
11336 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
11337 * libgomp.h: Declare them.
11338 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
11339 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
11340
11341 2005-05-04 Richard Henderson <rth@redhat.com>
11342
11343 * libgomp-1 code drop
11344
11345 2005-05-04 Richard Henderson <rth@redhat.com>
11346
11347 * iter.c (gomp_iter_static_next): Return tri-state on 0.
11348 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
11349 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
11350 (gomp_iter_static_next): Update.
11351 (gomp_ordered_static_next): Update.
11352 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
11353 (gomp_loop_ordered_static_start): Likewise. Exit early for a
11354 totally empty range.
11355 (gomp_loop_ordered_static_next): Refine test for calling
11356 gomp_ordered_static_next.
11357 * testsuite/ordered-1.c: Add case for more threads than iterations.
11358
11359 * iter.c (gomp_iter_runtime_next_locked): Remove.
11360 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
11361 gomp_loop_guided_start, gomp_loop_ordered_static_start,
11362 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
11363 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
11364 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
11365 gomp_loop_ordered_guided_next): Downcase name, make static, add
11366 an external alias with the old name.
11367 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11368 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
11369 switch and call one of the above static functions.
11370 * libgomp.h: Update.
11371
11372 * work.c (gomp_work_share_start): Lock the mutex for !first too.
11373 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11374 GOMP_loop_guided_start, GOMP_loop_runtime_start,
11375 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11376 GOMP_loop_ordered_guided_start): Update to match.
11377 * sections.c (GOMP_sections_start): Likewise.
11378 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11379
11380 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11381 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11382 Use bounds check instead of modulus.
11383 (gomp_ordered_sync): Split out of GOMP_ordered_start.
11384 (gomp_ordered_last): Don't sync with ordered_owner here.
11385 (gomp_ordered_next): Likewise.
11386 (gomp_ordered_static_loop_next): Likewise.
11387 * loop.c, libgomp.h: Update to match.
11388
11389 * libgomp.h (GOMP_barrier): Declare.
11390
11391 * testsuite/barrier-1.c: New file.
11392 * testsuite/critical-1.c: New file.
11393 * testsuite/ordered-2.c: New file.
11394 * testsuite/ordered-1.c: New file.
11395 * testsuite/sections-1.c: New file.
11396 * testsuite/single-1.c: New file.
11397 * testsuite/Makefile (TESTS): Add them.
11398
11399 2005-05-04 Richard Henderson <rth@redhat.com>
11400
11401 * libgomp.h (struct gomp_work_share): Add ordered_owner.
11402 * loop.c (GOMP_loop_static_start): If not the startup thread,
11403 acquire the mutex to wait for initialization complete.
11404 (GOMP_loop_ordered_static_start): Likewise.
11405 (GOMP_loop_ordered_runtime_start): Likewise.
11406 (GOMP_loop_ordered_static_first): Remove.
11407 (GOMP_loop_ordered_dynamic_first): Remove.
11408 (GOMP_loop_ordered_guided_first): Remove.
11409 (GOMP_loop_ordered_runtime_first): Remove.
11410 * ordered.c (gomp_ordered_loop_first): Post to own release when
11411 we're the first thread.
11412 (gomp_ordered_loop_last): Wait on release if not owner.
11413 (gomp_ordered_loop_next): Likewise.
11414 (gomp_ordered_static_loop_init): New.
11415 (gomp_ordered_static_loop_next): Use ordered_owner.
11416 (GOMP_ordered_start): Likewise.
11417 * work.c (gomp_new_work_share): Initialize ordered_owner.
11418
11419 2005-05-03 Richard Henderson <rth@redhat.com>
11420
11421 * Makefile (OPT): New.
11422 (CFLAGS): Use it.
11423
11424 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11425 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11426 * libgomp.h, libgomp.map, NOTES: Update to match.
11427
11428 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11429 Add initialized and thr members.
11430 (gomp_thread_start): Pause when initially spawned to wait for
11431 the whole team to be created.
11432 (gomp_team_start): Release team members at the end.
11433
11434 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
11435 (f_foo_1): Use GOMP_loop_end.
11436 (f_foo_2): Use GOMP_loop_end_nowait.
11437
11438 * testsuite/loop-2.c: New file.
11439 * testsuite/Makefile (TESTS): Add it.
11440
11441 2005-05-03 Richard Henderson <rth@redhat.com>
11442
11443 * iter.c (gomp_iter_static_next): Fix overflow check typo.
11444 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11445 * team.c (new_team): Initialize oldest_live_gen to 1 if no
11446 initial work_share.
11447
11448 * testsuite/Makefile: New file.
11449 * testsuite/loop-1.c: New file.
11450
11451 2005-05-03 Richard Henderson <rth@redhat.com>
11452
11453 Initial implementation and checkin.
11454 \f
11455 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11456
11457 Copying and distribution of this file, with or without modification,
11458 are permitted in any medium without royalty provided the copyright
11459 notice and this notice are preserved.