1 2019-05-27 Jakub Jelinek <jakub@redhat.com>
3 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
5 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8 * work.c (gomp_init_work_share): Instead of aligning final ordered
9 value to multiples of long long alignment, align to that the
10 first part (ordered team ids) and if inline_ordered_team_ids
11 is not on a long long alignment boundary within the structure,
12 use __alignof__ (long long) - 1 pad size always.
13 * loop.c (GOMP_loop_start): Fix *mem computation if
14 inline_ordered_team_ids is not aligned on long long alignment boundary
16 * loop-ull.c (GOMP_loop_ull_start): Likewise.
17 * sections.c (GOMP_sections2_start): Likewise.
19 2019-05-24 Jakub Jelinek <jakub@redhat.com>
21 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
22 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
25 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
26 HAVE_INTTYPES_H is defined.
27 (print_uint64_t): New typedef.
28 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
29 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
30 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
31 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
32 before casting to void *.
33 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
34 * oacc-mem.c: Don't include config.h nor stdint.h.
35 * target.c: Don't include config.h.
36 * oacc-cuda.c: Likewise.
37 * oacc-host.c: Don't include stdint.h.
39 2019-05-20 Jakub Jelinek <jakub@redhat.com>
42 * alloc.c (_GNU_SOURCE): Define.
44 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
46 * acc_prof.h: New file.
47 * oacc-profiling.c: Likewise.
48 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
49 Add these, respectively.
50 * Makefile.in: Regenerate.
51 * env.c (initialize_env): Call goacc_profiling_initialize.
52 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
53 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
54 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
55 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
56 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
57 acc_prof_register, acc_prof_unregister, and acc_register_library.
58 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
59 GOMP_PLUGIN_goacc_thread.
60 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
61 prof_callbacks_enabled members.
62 (goacc_prof_enabled, goacc_profiling_initialize)
63 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
64 (goacc_profiling_dispatch): Declare.
65 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
66 (GOACC_PROFILING_SETUP_P): Define.
67 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
68 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
69 OpenACC Profiling Interface.
70 * oacc-cuda.c (acc_get_current_cuda_device)
71 (acc_get_current_cuda_context, acc_get_cuda_stream)
72 (acc_set_cuda_stream): Likewise.
73 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
74 (acc_init, acc_set_device_type, acc_get_device_type)
75 (acc_get_device_num, goacc_lazy_initialize): Likewise.
76 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
77 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
78 (acc_unmap_data, present_create_copy, delete_copyout)
79 (update_dev_host): Likewise.
80 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
81 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
83 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
84 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
86 * libgomp.texi: Update.
87 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
89 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
90 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
92 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
94 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
96 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
99 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
101 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
102 (struct goacc_asyncqueue_list): Likewise.
103 (goacc_aq): Likewise.
104 (goacc_aq_list): Likewise.
105 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
106 (GOMP_OFFLOAD_openacc_async_test): Remove.
107 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
108 (GOMP_OFFLOAD_openacc_async_wait): Remove.
109 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
110 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
111 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
112 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
113 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
114 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
115 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
116 (GOMP_OFFLOAD_openacc_async_exec): Declare.
117 (GOMP_OFFLOAD_openacc_async_construct): Declare.
118 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
119 (GOMP_OFFLOAD_openacc_async_test): Declare.
120 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
121 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
122 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
123 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
124 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
126 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
127 (gomp_acc_insert_pointer): Adjust declaration.
128 (gomp_copy_host2dev): New declaration.
129 (gomp_copy_dev2host): Likewise.
130 (gomp_map_vars_async): Likewise.
131 (gomp_unmap_tgt): Likewise.
132 (gomp_unmap_vars_async): Likewise.
133 (gomp_fini_device): Likewise.
135 * oacc-async.c (get_goacc_thread): New function.
136 (get_goacc_thread_device): New function.
137 (lookup_goacc_asyncqueue): New function.
138 (get_goacc_asyncqueue): New function.
139 (acc_async_test): Adjust code to use new async design.
140 (acc_async_test_all): Likewise.
141 (acc_wait): Likewise.
142 (acc_wait_async): Likewise.
143 (acc_wait_all): Likewise.
144 (acc_wait_all_async): Likewise.
145 (goacc_async_free): New function.
146 (goacc_init_asyncqueues): Likewise.
147 (goacc_fini_asyncqueues): Likewise.
148 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
150 (acc_set_cuda_stream): Likewise.
151 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
152 (host_openacc_register_async_cleanup): Remove.
153 (host_openacc_async_exec): New function.
154 (host_openacc_async_test): Adjust parameters.
155 (host_openacc_async_test_all): Remove.
156 (host_openacc_async_wait): Remove.
157 (host_openacc_async_wait_async): Remove.
158 (host_openacc_async_wait_all): Remove.
159 (host_openacc_async_wait_all_async): Remove.
160 (host_openacc_async_set_async): Remove.
161 (host_openacc_async_synchronize): New function.
162 (host_openacc_async_serialize): New function.
163 (host_openacc_async_host2dev): New function.
164 (host_openacc_async_dev2host): New function.
165 (host_openacc_async_queue_callback): New function.
166 (host_openacc_async_construct): New function.
167 (host_openacc_async_destruct): New function.
168 (struct gomp_device_descr host_dispatch): Remove initialization of old
169 interface, add intialization of new async sub-struct.
170 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
171 (goacc_attach_host_thread_to_device): Remove old async code usage.
172 * oacc-int.h (goacc_init_asyncqueues): New declaration.
173 (goacc_fini_asyncqueues): Likewise.
174 (goacc_async_copyout_unmap_vars): Likewise.
175 (goacc_async_free): Likewise.
176 (get_goacc_asyncqueue): Likewise.
177 (lookup_goacc_asyncqueue): Likewise.
178 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
180 (present_create_copy): Adjust code to use new async design.
181 (delete_copyout): Likewise.
182 (update_dev_host): Likewise.
183 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
185 (gomp_acc_remove_pointer): Adjust code to use new async design.
186 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
188 (GOACC_enter_exit_data): Likewise.
189 (goacc_wait): Likewise.
190 (GOACC_update): Likewise.
191 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
192 when called, warn as obsolete in comment.
193 * target.c (goacc_device_copy_async): New function.
194 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
195 add goacc_device_copy_async case.
196 (gomp_copy_dev2host): Likewise.
197 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
198 (gomp_map_pointer): Likewise.
199 (gomp_map_fields_existing): Likewise.
200 (gomp_map_vars_internal): New always_inline function, renamed from
202 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
203 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
204 passing goacc_asyncqueue argument.
205 (gomp_unmap_tgt): Remove static, add attribute_hidden.
206 (gomp_unref_tgt): New function.
207 (gomp_unmap_vars_internal): New always_inline function, renamed from
209 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
210 (gomp_unmap_vars_async): Implement by calling
211 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
212 (gomp_fini_device): New function.
213 (gomp_exit_data): Adjust gomp_copy_dev2host call.
214 (gomp_load_plugin_for_device): Remove old interface, adjust to load
216 (gomp_target_fini): Adjust code to call gomp_fini_device.
218 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
219 (struct ptx_stream): Remove.
220 (struct nvptx_thread): Remove current_stream field.
221 (cuda_map_create): Remove.
222 (cuda_map_destroy): Remove.
227 (struct goacc_asyncqueue): Define.
228 (struct nvptx_callback): Define.
229 (struct ptx_free_block): Define.
230 (struct ptx_device): Remove null_stream, active_streams, async_streams,
231 stream_lock, and next fields.
232 (enum ptx_event_type): Remove.
233 (struct ptx_event): Remove.
234 (ptx_event_lock): Remove.
235 (ptx_events): Remove.
236 (init_streams_for_device): Remove.
237 (fini_streams_for_device): Remove.
238 (select_stream_for_async): Remove.
239 (nvptx_init): Remove ptx_events and ptx_event_lock references.
240 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
242 (nvptx_open_device): Add free_blocks initialization, remove
243 init_streams_for_device call.
244 (nvptx_close_device): Remove fini_streams_for_device call, add
245 free_blocks destruct code.
248 (nvptx_exec): Adjust parameters and code.
249 (nvptx_free): Likewise.
250 (nvptx_host2dev): Remove.
251 (nvptx_dev2host): Remove.
252 (nvptx_set_async): Remove.
253 (nvptx_async_test): Remove.
254 (nvptx_async_test_all): Remove.
255 (nvptx_wait): Remove.
256 (nvptx_wait_async): Remove.
257 (nvptx_wait_all): Remove.
258 (nvptx_wait_all_async): Remove.
259 (nvptx_get_cuda_stream): Remove.
260 (nvptx_set_cuda_stream): Remove.
261 (GOMP_OFFLOAD_alloc): Adjust code.
262 (GOMP_OFFLOAD_free): Likewise.
263 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
264 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
265 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
266 (GOMP_OFFLOAD_openacc_async_wait): Remove.
267 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
268 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
269 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
270 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
271 (cuda_free_argmem): New function.
272 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
273 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
274 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
275 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
276 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
277 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
278 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
279 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
280 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
281 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
282 (cuda_callback_wrapper): New function.
283 (cuda_memcpy_sanity_check): New function.
284 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
285 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
286 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
287 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
289 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
292 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
294 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
296 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
298 2019-03-27 Kevin Buettner <kevinb@redhat.com>
300 * team.c (gomp_team_start): Initialize pool->threads[0].
302 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
304 * testsuite/libgomp.oacc-c++/c++.exp: Specify
305 "-foffload=$offload_target".
306 * testsuite/libgomp.oacc-c/c.exp: Likewise.
307 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
308 * testsuite/lib/libgomp.exp
309 (check_effective_target_openacc_nvidia_accel_configured): Remove,
310 as (conceptually) merged into
311 check_effective_target_openacc_nvidia_accel_selected. Adjust all
314 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
315 * testsuite/libgomp-test-support.exp.in: Adjust.
316 * testsuite/lib/libgomp.exp: Likewise. Don't populate
317 openacc_device_types_s.
318 (offload_target_to_openacc_device_type): New proc.
319 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
320 * testsuite/libgomp.oacc-c/c.exp: Likewise.
321 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
322 * Makefile.in: Regenerate.
323 * configure: Likewise.
324 * testsuite/Makefile.in: Likewise.
326 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
327 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
328 instead of OFFLOAD_TARGETS.
329 * target.c (gomp_target_init): Adjust.
330 * testsuite/libgomp-test-support.exp.in: Likewise.
331 * testsuite/lib/libgomp.exp: Likewise. Populate
332 openacc_device_types_s instead of offload_targets_s_openacc.
333 (check_effective_target_openacc_nvidia_accel_selected)
334 (check_effective_target_openacc_host_selected): Adjust.
335 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
336 * testsuite/libgomp.oacc-c/c.exp: Likewise.
337 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
338 * Makefile.in: Regenerate.
339 * config.h.in: Likewise.
340 * configure: Likewise.
341 * testsuite/Makefile.in: Likewise.
343 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
344 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
345 "offloading: supported, but hardware not accessible".
346 * testsuite/libgomp.oacc-c/c.exp: Likewise.
347 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
349 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
352 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
354 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
355 and related adjustment.
357 2019-01-30 Jakub Jelinek <jakub@redhat.com>
360 * testsuite/libgomp.c++/pr88988.C: New test.
362 2019-01-28 Jakub Jelinek <jakub@redhat.com>
365 * testsuite/libgomp.c/pr89002.c: New test.
367 2019-01-28 Richard Biener <rguenther@suse.de>
370 PR tree-optimization/86865
371 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
373 2019-01-24 Tom de Vries <tdevries@suse.de>
375 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
376 once instantiated_devices drops to 0.
378 2019-01-23 Tom de Vries <tdevries@suse.de>
381 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
383 (nvptx_exec): Don't call map_push if mapnum == 0.
384 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
386 2019-01-23 Tom de Vries <tdevries@suse.de>
390 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
391 (map_fini): Remove "assert (!s->map->active)".
392 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
394 2019-01-23 Tom de Vries <tdevries@suse.de>
397 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
398 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
400 2019-01-15 Tom de Vries <tdevries@suse.de>
403 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
406 2019-01-12 Tom de Vries <tdevries@suse.de>
408 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
409 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
410 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
411 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
413 2019-01-12 Tom de Vries <tdevries@suse.de>
415 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
417 2019-01-12 Tom de Vries <tdevries@suse.de>
419 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
420 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
421 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
423 2019-01-12 Tom de Vries <tdevries@suse.de>
426 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
427 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
429 2019-01-12 Tom de Vries <tdevries@suse.de>
432 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
433 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
435 2019-01-12 Tom de Vries <tdevries@suse.de>
437 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
438 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
439 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
441 2019-01-12 Tom de Vries <tdevries@suse.de>
443 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
444 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
445 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
447 2019-01-12 Tom de Vries <tdevries@suse.de>
449 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
450 resources diagnostic.
452 2019-01-12 Tom de Vries <tdevries@suse.de>
454 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
455 vector length to be 128.
456 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
457 length 2097152 to be reduced to 1024 instead of 32.
459 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
460 James Norris <jnorris@codesourcery.com>
462 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
463 Library Routines", and "Environment Variables".
465 2019-01-11 Tom de Vries <tdevries@suse.de>
467 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
470 2019-01-11 Tom de Vries <tdevries@suse.de>
472 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
474 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
475 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
476 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
477 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
479 2019-01-11 Tom de Vries <tdevries@suse.de>
481 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
484 2019-01-10 Nathan Sidwell <nathan@acm.org>
485 Julian Brown <julian@codesourcery.com>
488 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
489 * testsuite/libgomp.oacc-c++/pr71959.C: New.
491 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
493 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
496 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
498 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
499 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
502 2019-01-09 Tom de Vries <tdevries@suse.de>
505 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
506 #define instead of "const int".
507 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
508 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
509 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
510 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
512 2019-01-09 Tom de Vries <tdevries@suse.de>
514 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
517 2019-01-07 Tom de Vries <tdevries@suse.de>
519 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
520 GOMP_OPENACC_DIM argument.
522 2019-01-03 Tom de Vries <tdevries@suse.de>
524 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
525 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
527 2019-01-01 Jakub Jelinek <jakub@redhat.com>
529 Update copyright years.
531 2019-01-01 Jakub Jelinek <jakub@redhat.com>
533 * libgomp.texi: Bump @copying's copyright year.
535 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
537 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
538 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
539 (GOACC_declare): Redefine the "device" argument to "flags".
541 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
542 Cesar Philippidis <cesar@codesourcery.com>
544 * target.c (struct gomp_coalesce_chunk): New structure.
545 (struct gomp_coalesce_buf): Update the chunks member to use that
546 type. Adjust all users.
548 2018-12-19 Tom de Vries <tdevries@suse.de>
550 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
551 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
552 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
554 2018-12-19 Tom de Vries <tdevries@suse.de>
556 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
557 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
558 gcc/testsuite/gcc.dg/goacc.
559 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
561 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
562 Chung-Lin Tang <cltang@codesourcery.com>
564 * oacc-mem.c (acc_present_or_create): Remove definition and change
565 to alias of acc_create.
566 (acc_present_or_copyin): Remove definition and change to alias of
568 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
569 of acc_present_or_create.
570 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
571 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
572 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
573 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
574 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
575 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
576 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
577 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
578 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
579 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
580 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
581 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
582 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
583 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
584 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
585 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
587 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
590 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
591 "identical parameters".
592 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
593 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
596 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
597 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
600 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
601 (nvptx_wait_async): Unseen async-argument is a no-op.
602 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
603 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
604 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
605 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
606 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
607 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
608 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
609 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
610 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
612 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
613 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
615 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
617 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
618 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
619 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
621 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
624 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
625 (acc_set_cuda_stream): Clarify.
626 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
628 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
630 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
631 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
632 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
633 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
635 2018-12-14 Tom de Vries <tdevries@suse.de>
637 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
638 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
639 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
640 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
641 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
643 2018-12-13 Tom de Vries <tdevries@suse.de>
645 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
646 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
647 * fortran.c (omp_display_affinity_): ... here.
648 * libgomp.h (gomp_print_string): Declare.
649 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
650 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
653 2018-12-13 Jakub Jelinek <jakub@redhat.com>
656 * testsuite/libgomp.c++/for-24.C (results): Include it in
657 omp declare target region.
658 (main): Use map (always, tofrom: results) instead of
659 map (tofrom: results).
661 2018-12-12 Jakub Jelinek <jakub@redhat.com>
664 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
665 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
667 * testsuite/libgomp.c-c++-common/for-16.c: New test.
669 2018-12-12 Andreas Schwab <schwab@suse.de>
671 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
674 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
677 * testsuite/libgomp.fortran/async_io_8.f90: New test.
679 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
680 Jakub Jelinek <jakub@redhat.com>
682 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
683 devicep->host2dev_func.
685 2018-12-08 Jakub Jelinek <jakub@redhat.com>
688 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
689 tls_runtime effective target.
690 (t): New threadprivate variable.
691 (main): Set t in threads which execute iterations of the worksharing
692 loop. Propagate that to the task after the loop and don't abort
693 if the current taskgroup hasn't been cancelled.
695 2018-12-02 Jakub Jelinek <jakub@redhat.com>
697 * testsuite/libgomp.c/task-reduction-3.c: New test.
699 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
701 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
704 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
705 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
707 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
709 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
711 2018-10-19 Richard Biener <rguenther@suse.de>
713 PR tree-optimization/88182
714 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
716 2018-11-26 Jakub Jelinek <jakub@redhat.com>
718 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
719 (RUNTEST): Don't define.
720 (RUNTESTDEFAULTFLAGS): Add.
721 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
722 (distclean-am): Depend on distclean-DEJAGNU.
723 (check-am): If -j% option is present in MFLAGS and if
724 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
725 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
726 * testsuite/Makefile.in: Regenerated.
728 2018-11-26 Richard Biener <rguenther@suse.de>
730 PR tree-optimization/88182
731 * testsuite/libgomp.c++/pr88182.C: New testcase.
733 2018-11-20 Jakub Jelinek <jakub@redhat.com>
736 * config/mingw32/affinity-fmt.c: New file.
738 2018-11-09 Jakub Jelinek <jakub@redhat.com>
740 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
741 (gomp_display_affinity): Use __builtin_choose_expr to handle
742 properly handle argument having integral, or pointer or some other
743 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
744 with uint64_t type instead of %llx and unsigned long long.
746 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
747 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
749 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
751 * affinity.c: Include <string.h>, <stdio.h>.
752 (gomp_display_affinity_place): Remove cpusetp.
753 * teams.c: Include <limits.h>.
755 2018-11-08 Jakub Jelinek <jakub@redhat.com>
757 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
758 in_reduction clause for s[0].
760 * affinity.c (gomp_display_affinity_place): New function.
761 * affinity-fmt.c: New file.
762 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
763 * config/linux/affinity.c (gomp_display_affinity_place): New function.
764 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
765 Move these functions to ...
766 * config/nvptx/teams.c: ... here. New file.
767 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
769 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
771 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
773 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
774 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
775 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
776 gomp_affinity_format_len): New variables.
777 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
778 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
779 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
780 modifiers. Display (non-default) chunk sizes. Print
781 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
782 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
783 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
784 * fortran.c: Include stdio.h and string.h.
785 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
786 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
787 (omp_set_affinity_format_, omp_get_affinity_format_,
788 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
789 omp_pause_resource_all_): New functions.
790 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
792 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
794 * teams.c: ... here. New file.
795 * libgomp_g.h: Include gstdint.h.
796 (GOMP_loop_nonmonotonic_runtime_start,
797 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
798 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
799 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
800 GOMP_parallel_loop_nonmonotonic_runtime,
801 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
802 GOMP_loop_ull_nonmonotonic_runtime_start,
803 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
804 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
805 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
806 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
807 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
808 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
809 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
810 GOMP_teams_reg): Declare.
811 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
812 gomp_aligned_alloc uses fallback implementation.
813 (gomp_aligned_alloc, gomp_aligned_free): Declare.
814 (enum gomp_schedule_type): Add GFS_MONOTONIC.
815 (struct gomp_doacross_work_share): Add extra field.
816 (struct gomp_work_share): Add task_reductions field.
817 (struct gomp_taskgroup): Add workshare and reductions fields.
818 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
819 (gomp_thread_handle): New typedef.
820 (gomp_display_affinity_place, gomp_set_affinity_format,
821 gomp_display_string, gomp_display_affinity,
822 gomp_display_affinity_thread): Declare.
823 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
824 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
825 gomp_workshare_task_reduction_register): Declare.
826 (gomp_team_start): Add taskgroup argument.
827 (gomp_pause_host): Declare.
828 (gomp_init_work_share, gomp_work_share_start): Change bool argument
830 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
831 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
832 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
833 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
834 GOMP_loop_ull_doacross_start,
835 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
836 GOMP_loop_maybe_nonmonotonic_runtime_next,
837 GOMP_loop_maybe_nonmonotonic_runtime_start,
838 GOMP_loop_nonmonotonic_runtime_next,
839 GOMP_loop_nonmonotonic_runtime_start,
840 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
841 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
842 GOMP_loop_ull_nonmonotonic_runtime_next,
843 GOMP_loop_ull_nonmonotonic_runtime_start,
844 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
845 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
846 GOMP_taskgroup_reduction_register,
847 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
848 GOMP_teams_reg and GOMP_taskwait_depend.
849 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
850 omp_{capture,display}_affinity{,_}, and
851 omp_[gs]et_affinity_format{,_}.
852 * loop.c: Include string.h.
853 (GOMP_loop_runtime_next): Add ialias.
854 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
855 (gomp_loop_static_start, gomp_loop_dynamic_start,
856 gomp_loop_guided_start, gomp_loop_ordered_static_start,
857 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
858 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
859 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
860 or gomp_doacross_init callers.
861 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
862 GOMP_loop_doacross_start): New functions.
863 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
864 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
865 Mask off GFS_MONOTONIC bit.
866 (GOMP_loop_maybe_nonmonotonic_runtime_next,
867 GOMP_loop_maybe_nonmonotonic_runtime_start,
868 GOMP_loop_nonmonotonic_runtime_next,
869 GOMP_loop_nonmonotonic_runtime_start,
870 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
871 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
873 (gomp_parallel_loop_start): Pass NULL as taskgroup to
875 * loop_ull.c: Include string.h.
876 (GOMP_loop_ull_runtime_next): Add ialias.
877 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
878 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
879 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
880 gomp_loop_ull_ordered_dynamic_start,
881 gomp_loop_ull_ordered_guided_start,
882 gomp_loop_ull_doacross_static_start,
883 gomp_loop_ull_doacross_dynamic_start,
884 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
885 and gomp_doacross_ull_init callers.
886 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
887 GOMP_loop_ull_doacross_start): New functions.
888 (GOMP_loop_ull_runtime_start,
889 GOMP_loop_ull_ordered_runtime_start,
890 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
891 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
892 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
893 GOMP_loop_ull_nonmonotonic_runtime_next,
894 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
895 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
896 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
897 (omp_pause_resource_t, omp_depend_t): New typedefs.
898 (enum omp_lock_hint_t): Renamed to ...
899 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
900 enumerators using numbers and omp_lock_hint_* as their aliases.
901 (omp_lock_hint_t): New typedef. Rename to ...
902 (omp_sync_hint_t): ... this.
903 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
904 omp_sync_hint_t instead of omp_lock_hint_t.
905 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
906 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
908 (omp_target_is_present, omp_target_disassociate_ptr):
909 Change first argument from void * to const void *.
910 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
911 from void * to const void *.
912 (omp_target_associate_ptr): Change first and second arguments from
913 void * to const void *.
914 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
915 omp_pause_hard): New parameters.
916 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
917 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
919 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
920 omp_pause_hard): New parameters.
921 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
922 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
924 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
925 EXTRA argument. If not needed to prepare array, if extra is 0,
926 clear ws->doacross, otherwise allocate just doacross structure and
927 extra payload. If array is needed, allocate also extra payload.
928 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
929 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
931 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
933 (GOMP_parallel): Likewise. Formatting fix.
934 (GOMP_parallel_reductions): New function.
935 (GOMP_cancellation_point): If taskgroup has workshare
936 flag set, check cancelled of prev taskgroup if any.
937 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
938 on prev taskgroup if any.
939 * sections.c: Include string.h.
940 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
941 (GOMP_sections_start): Adjust gomp_work_share_start caller.
942 (GOMP_sections2_start): New function.
943 (GOMP_parallel_sections_start, GOMP_parallel_sections):
944 Pass NULL as taskgroup to gomp_team_start.
945 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
946 gomp_work_share_start callers.
947 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
948 If taskgroup has workshare flag set, check cancelled on prev
949 taskgroup if any. Guard all cancellation tests with
950 gomp_cancel_var test.
951 (omp_target_is_present, omp_target_disassociate_ptr):
952 Change ptr argument from void * to const void *.
953 (omp_target_memcpy): Change src argument from void * to const void *.
954 (omp_target_memcpy_rect): Likewise.
955 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
956 instead of char * where needed.
957 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
958 from void * to const void *.
959 (omp_pause_resource, omp_pause_resource_all): New functions.
960 * task.c (gomp_task_handle_depend): Handle new depend array format
961 in addition to the old. Handle mutexinoutset kinds the same as
962 inout for now, handle unspecified kinds.
963 (gomp_create_target_task): If taskgroup has workshare flag set, check
964 cancelled on prev taskgroup if any. Guard all cancellation tests with
965 gomp_cancel_var test. Handle new depend array format count in
967 (GOMP_task): Likewise. Adjust function comment.
968 (gomp_task_run_pre): If taskgroup has workshare flag set, check
969 cancelled on prev taskgroup if any. Guard all cancellation tests with
970 gomp_cancel_var test.
971 (GOMP_taskwait_depend): New function.
972 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
973 format in addition to the old. Handle mutexinoutset kinds the same as
974 inout for now, handle unspecified kinds. Fix a function comment typo.
975 (gomp_taskgroup_init): New function.
976 (GOMP_taskgroup_start): Use it.
977 (gomp_reduction_register, gomp_create_artificial_team,
978 GOMP_taskgroup_reduction_register,
979 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
980 gomp_parallel_reduction_register,
981 gomp_workshare_task_reduction_register,
982 gomp_workshare_taskgroup_start,
983 GOMP_workshare_task_reduction_unregister): New functions.
984 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
985 check cancelled on prev taskgroup if any. Guard all cancellation
986 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
987 by calling GOMP_taskgroup_reduction_register.
988 * team.c (gomp_thread_attr): Remove comment.
989 (struct gomp_thread_start_data): Add handle field.
990 (gomp_thread_start): Call pthread_detach.
991 (gomp_new_team): Adjust gomp_init_work_share caller.
992 (gomp_free_pool_helper): Call pthread_detach.
993 (gomp_team_start): Add taskgroup argument, initialize implicit
994 tasks' taskgroup field to that. Don't call
995 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
996 (gomp_team_end): Determine nesting by thr->ts.level != 0
997 rather than thr->ts.team != NULL.
998 (gomp_pause_pool_helper, gomp_pause_host): New functions.
999 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1000 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1001 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1002 if more than 1 allocate also extra payload at the end of array. Never
1003 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1004 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1005 return true instead of ws.
1006 * Makefile.in: Regenerated.
1007 * configure: Regenerated.
1008 * config.h.in: Regenerated.
1009 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1011 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1012 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1013 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1014 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1015 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1016 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1017 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1018 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1019 * testsuite/libgomp.c-c++-common/for-10.c: New test.
1020 * testsuite/libgomp.c-c++-common/for-11.c: New test.
1021 * testsuite/libgomp.c-c++-common/for-12.c: New test.
1022 * testsuite/libgomp.c-c++-common/for-13.c: New test.
1023 * testsuite/libgomp.c-c++-common/for-14.c: New test.
1024 * testsuite/libgomp.c-c++-common/for-15.c: New test.
1025 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1026 define a different N(test), don't define N(f0) to N(f14), but instead
1027 define N(f20) to N(f34) using != comparisons.
1028 * testsuite/libgomp.c-c++-common/for-7.c: New test.
1029 * testsuite/libgomp.c-c++-common/for-8.c: New test.
1030 * testsuite/libgomp.c-c++-common/for-9.c: New test.
1031 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1032 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1033 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1034 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1035 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1036 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1037 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1038 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1039 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1040 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1041 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1042 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1043 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1044 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1045 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1046 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1047 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1048 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1049 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1050 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1051 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1052 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1053 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1054 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1055 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1056 * testsuite/libgomp.c++/depend-1.C: New test.
1057 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1058 * testsuite/libgomp.c++/depobj-1.C: New test.
1059 * testsuite/libgomp.c++/for-16.C: New test.
1060 * testsuite/libgomp.c++/for-21.C: New test.
1061 * testsuite/libgomp.c++/for-22.C: New test.
1062 * testsuite/libgomp.c++/for-23.C: New test.
1063 * testsuite/libgomp.c++/for-24.C: New test.
1064 * testsuite/libgomp.c++/for-25.C: New test.
1065 * testsuite/libgomp.c++/for-26.C: New test.
1066 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1067 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1068 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1069 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1070 * testsuite/libgomp.c++/task-reduction-10.C: New test.
1071 * testsuite/libgomp.c++/task-reduction-11.C: New test.
1072 * testsuite/libgomp.c++/task-reduction-12.C: New test.
1073 * testsuite/libgomp.c++/task-reduction-13.C: New test.
1074 * testsuite/libgomp.c++/task-reduction-14.C: New test.
1075 * testsuite/libgomp.c++/task-reduction-15.C: New test.
1076 * testsuite/libgomp.c++/task-reduction-16.C: New test.
1077 * testsuite/libgomp.c++/task-reduction-17.C: New test.
1078 * testsuite/libgomp.c++/task-reduction-18.C: New test.
1079 * testsuite/libgomp.c++/task-reduction-19.C: New test.
1080 * testsuite/libgomp.c/task-reduction-1.c: New test.
1081 * testsuite/libgomp.c++/task-reduction-1.C: New test.
1082 * testsuite/libgomp.c/task-reduction-2.c: New test.
1083 * testsuite/libgomp.c++/task-reduction-2.C: New test.
1084 * testsuite/libgomp.c++/task-reduction-3.C: New test.
1085 * testsuite/libgomp.c++/task-reduction-4.C: New test.
1086 * testsuite/libgomp.c++/task-reduction-5.C: New test.
1087 * testsuite/libgomp.c++/task-reduction-6.C: New test.
1088 * testsuite/libgomp.c++/task-reduction-7.C: New test.
1089 * testsuite/libgomp.c++/task-reduction-8.C: New test.
1090 * testsuite/libgomp.c++/task-reduction-9.C: New test.
1091 * testsuite/libgomp.c/teams-1.c: New test.
1092 * testsuite/libgomp.c/teams-2.c: New test.
1093 * testsuite/libgomp.c/thread-limit-4.c: New test.
1094 * testsuite/libgomp.c/thread-limit-5.c: New test.
1095 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1097 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
1099 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1100 acc_memcpy_to/from_device functions, now with async parameter.
1101 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1102 (acc_memcpy_from_device): Likewise.
1103 (acc_memcpy_to_device_async): New API function.
1104 (acc_memcpy_from_device_async): Likewise.
1105 (present_create_copy): Add async parameter and async setting/unsetting.
1106 (acc_create): Adjust present_create_copy call.
1107 (acc_copyin): Likewise.
1108 (acc_present_or_create): Likewise.
1109 (acc_present_or_copyin): Likewise.
1110 (acc_create_async): New API function.
1111 (acc_copyin_async): New API function.
1112 (delete_copyout): Add async parameter and async setting/unsetting.
1113 (acc_delete): Adjust delete_copyout call.
1114 (acc_copyout): Likewise.
1115 (acc_delete_async): New API function.
1116 (acc_copyout_async): Likewise.
1117 (update_dev_host): Add async parameter and async setting/unsetting.
1118 (acc_update_device): Adjust update_dev_host call.
1119 (acc_update_self): Likewise.
1120 (acc_update_device_async): New API function.
1121 (acc_update_self_async): Likewise.
1122 * openacc.h (acc_copyin_async): Declare new API function.
1123 (acc_create_async): Likewise.
1124 (acc_copyout_async): Likewise.
1125 (acc_delete_async): Likewise.
1126 (acc_update_device_async): Likewise.
1127 (acc_update_self_async): Likewise.
1128 (acc_memcpy_to_device_async): Likewise.
1129 (acc_memcpy_from_device_async): Likewise.
1130 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1131 (acc_copyin_async_64_h): New subroutine.
1132 (acc_copyin_async_array_h): New subroutine.
1133 (acc_create_async_32_h): New subroutine.
1134 (acc_create_async_64_h): New subroutine.
1135 (acc_create_async_array_h): New subroutine.
1136 (acc_copyout_async_32_h): New subroutine.
1137 (acc_copyout_async_64_h): New subroutine.
1138 (acc_copyout_async_array_h): New subroutine.
1139 (acc_delete_async_32_h): New subroutine.
1140 (acc_delete_async_64_h): New subroutine.
1141 (acc_delete_async_array_h): New subroutine.
1142 (acc_update_device_async_32_h): New subroutine.
1143 (acc_update_device_async_64_h): New subroutine.
1144 (acc_update_device_async_array_h): New subroutine.
1145 (acc_update_self_async_32_h): New subroutine.
1146 (acc_update_self_async_64_h): New subroutine.
1147 (acc_update_self_async_array_h): New subroutine.
1148 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1149 (acc_copyin_async_64_h): New subroutine.
1150 (acc_copyin_async_array_h): New subroutine.
1151 (acc_create_async_32_h): New subroutine.
1152 (acc_create_async_64_h): New subroutine.
1153 (acc_create_async_array_h): New subroutine.
1154 (acc_copyout_async_32_h): New subroutine.
1155 (acc_copyout_async_64_h): New subroutine.
1156 (acc_copyout_async_array_h): New subroutine.
1157 (acc_delete_async_32_h): New subroutine.
1158 (acc_delete_async_64_h): New subroutine.
1159 (acc_delete_async_array_h): New subroutine.
1160 (acc_update_device_async_32_h): New subroutine.
1161 (acc_update_device_async_64_h): New subroutine.
1162 (acc_update_device_async_array_h): New subroutine.
1163 (acc_update_self_async_32_h): New subroutine.
1164 (acc_update_self_async_64_h): New subroutine.
1165 (acc_update_self_async_array_h): New subroutine.
1166 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1167 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1168 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1169 acc_memcpy_to_device_async*, acc_update_device_async*, and
1170 acc_update_self_async* entries.
1171 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1172 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1173 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1175 2018-10-31 Joseph Myers <joseph@codesourcery.com>
1178 * Makefile.am: Include multilib.am
1179 (AUTOMAKE_OPTIONS): Add info-in-builddir.
1180 (CLEANFILES): Remove libgomp.info.
1181 * configure.ac: Remove AC_PREREQ.
1182 * testsuite/Makefile.am (RUNTEST): Remove quotes.
1183 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
1186 2018-10-29 Joseph Myers <joseph@codesourcery.com>
1187 Julian Brown <julian@codesourcery.com>
1189 * testsuite/libgomp.oacc-c++/this.C: New.
1191 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
1193 * plugin/plugin-nvptx.c (struct cuda_map): New.
1194 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
1195 h_tail with (cuda_map *) map.
1196 (cuda_map_create): New function.
1197 (cuda_map_destroy): New function.
1198 (map_init): Update to use a linked list of cuda_map objects.
1199 (map_fini): Likewise.
1200 (map_pop): Likewise.
1201 (map_push): Likewise. Return CUdeviceptr instead of void.
1202 (init_streams_for_device): Remove stales references to ptx_stream
1204 (select_stream_for_async): Likewise.
1205 (nvptx_exec): Update call to map_init.
1207 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
1208 Julian Brown <julian@codesourcery.com>
1211 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
1213 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
1214 Thomas Koenig <tkoenig@gcc.gnu.org>
1217 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1218 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1219 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1220 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1221 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1222 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1223 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1225 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
1226 Tom de Vries <tdevries@suse.de>
1229 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
1230 (cuOccupancyMaxPotentialBlockSize): Declare.
1231 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
1232 CUDA_ONE_CALL_MAYBE_NULL.
1233 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
1234 CUoccupancyB2DSize and declare
1235 cuOccupancyMaxPotentialBlockSize.
1236 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
1237 default num_gangs and num_workers when the driver supports it.
1239 2018-08-08 Tom de Vries <tdevries@suse.de>
1241 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
1242 CUDA_ONE_CALL_MAYBE_NULL.
1243 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
1244 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
1245 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
1248 2018-08-08 Tom de Vries <tdevries@suse.de>
1250 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
1251 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
1254 2018-08-08 Tom de Vries <tdevries@suse.de>
1256 * plugin/plugin-nvptx.c
1257 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
1258 (nvptx_open_device): Use
1259 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
1261 2018-08-08 Tom de Vries <tdevries@suse.de>
1263 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
1264 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
1266 2018-08-07 Tom de Vries <tdevries@suse.de>
1268 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
1269 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
1270 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
1271 corresponding call in CUDA_ONE_CALL. Add def/undef of
1272 CUDA_ONE_CALL_MAYBE_NULL.
1273 (CUDA_CALL_EXISTS): Define.
1275 2018-08-07 Tom de Vries <tdevries@suse.de>
1277 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
1278 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
1279 corresponding undefs right after.
1281 2018-08-04 Tom de Vries <tdevries@suse.de>
1283 * plugin/configfrag.ac: For --without-cuda-driver, set
1284 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
1285 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
1286 * configure: Regenerate.
1288 2018-08-02 Tom de Vries <tdevries@suse.de>
1291 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
1292 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
1293 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
1295 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
1296 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
1297 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
1299 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1300 Thomas Schwinge <thomas@codesourcery.com>
1302 * config/nvptx/oacc-parallel.c: Truncate.
1304 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1305 James Norris <jnorris@codesourcery.com>
1307 * plugin/plugin-nvptx.c (struct map): Removed.
1308 (map_init, map_pop): Remove use of struct map.
1309 (map_push): Likewise and change argument list.
1310 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1312 2018-08-01 Tom de Vries <tdevries@suse.de>
1314 * plugin/cuda-lib.def: New file. Factor out of ...
1315 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1316 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1319 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1321 Revert 'AsyncI/O patch committed'.
1322 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1323 Thomas Koenig <tkoenig@gcc.gnu.org>
1326 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1327 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1328 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1329 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1330 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1331 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1332 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1334 2018-07-30 Tom de Vries <tdevries@suse.de>
1336 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1337 (nvptx_exec): Ensure worker and vector default dims don't exceed
1338 targ_fn->max_threads_per_block.
1340 2018-07-30 Tom de Vries <tdevries@suse.de>
1342 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1343 (nvptx_open_device): Init default_dims for device.
1344 (nvptx_exec): Use default_dims from device.
1346 2018-07-26 Jakub Jelinek <jakub@redhat.com>
1349 * testsuite/libgomp.c++/for-15.C (results): Include it in
1350 omp declare target region.
1351 (main): Use map (always, tofrom: results) instead of
1352 map (tofrom: results).
1355 * testsuite/libgomp.c/pr86660.c: New test.
1357 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1358 Tom de Vries <tdevries@suse.de>
1360 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1361 sufficient resources to launch a kernel, and give a hint on how to fix
1364 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1365 Tom de Vries <tdevries@suse.de>
1367 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1368 max_threads_per_block and max_threads_per_multiprocessor fields.
1369 (nvptx_open_device): Initialize new fields.
1370 (nvptx_exec): Use num_sms, and new fields.
1372 2018-07-26 Tom de Vries <tdevries@suse.de>
1374 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1375 to correct locations. Remove xfail.
1377 2018-07-26 Tom de Vries <tdevries@suse.de>
1379 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1380 acc_wait. Move acc_async_test calls to correct locations. Remove
1383 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1384 Thomas Koenig <tkoenig@gcc.gnu.org>
1387 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1388 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1389 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1390 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1391 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1392 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1393 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1395 2018-07-17 Jakub Jelinek <jakub@redhat.com>
1398 * testsuite/libgomp.c++/pr86542.C: New test.
1401 * testsuite/libgomp.c++/pr86539.C: New test.
1403 2018-07-11 Jakub Jelinek <jakub@redhat.com>
1406 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1407 (results): Make sure the variable is not inside declare target region.
1408 (qux): Remove unused function.
1410 2018-07-10 Jakub Jelinek <jakub@redhat.com>
1413 * testsuite/libgomp.c++/for-15.C: New test.
1415 2018-06-26 Jakub Jelinek <jakub@redhat.com>
1418 * testsuite/libgomp.c++/pr86291.C: New test.
1420 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
1422 * libgomp.texi (Top): Move www.openmp.org to https.
1423 (Enabling OpenMP): Ditto.
1424 (omp_get_active_level): Ditto.
1425 (omp_get_ancestor_thread_num): Ditto.
1426 (omp_get_cancellation): Ditto.
1427 (omp_get_default_device): Ditto.
1428 (omp_get_dynamic): Ditto.
1429 (omp_get_level): Ditto.
1430 (omp_get_max_active_levels): Ditto.
1431 (omp_get_max_task_priority): Ditto.
1432 (omp_get_max_threads): Ditto.
1433 (omp_get_nested): Ditto.
1434 (omp_get_num_devices): Ditto.
1435 (omp_get_num_procs): Ditto.
1436 (omp_get_num_teams): Ditto.
1437 (omp_get_num_threads): Ditto.
1438 (omp_get_proc_bind): Ditto.
1439 (omp_get_schedule): Ditto.
1440 (omp_get_team_num): Ditto.
1441 (omp_get_team_size): Ditto.
1442 (omp_get_thread_limit): Ditto.
1443 (omp_get_thread_num): Ditto.
1444 (omp_in_parallel): Ditto.
1445 (omp_in_final): Ditto.
1446 (omp_is_initial_device): Ditto.
1447 (omp_set_default_device): Ditto.
1448 (omp_set_dynamic): Ditto.
1449 (omp_set_max_active_levels): Ditto.
1450 (omp_set_nested): Ditto.
1451 (omp_set_num_threads): Ditto.
1452 (omp_set_schedule): Ditto.
1453 (omp_init_lock): Ditto.
1454 (omp_set_lock): Ditto.
1455 (omp_test_lock): Ditto.
1456 (omp_unset_lock): Ditto.
1457 (omp_destroy_lock): Ditto.
1458 (omp_init_nest_lock): Ditto.
1459 (omp_set_nest_lock): Ditto.
1460 (omp_test_nest_lock): Ditto.
1461 (omp_unset_nest_lock): Ditto.
1462 (omp_destroy_nest_lock): Ditto.
1463 (omp_get_wtick): Ditto.
1464 (omp_get_wtime): Ditto.
1465 (OMP_CANCELLATION): Ditto.
1466 (OMP_DISPLAY_ENV): Ditto.
1467 (OMP_DEFAULT_DEVICE): Ditto.
1468 (OMP_DYNAMIC): Ditto.
1469 (OMP_MAX_ACTIVE_LEVELS): Ditto.
1470 (OMP_MAX_TASK_PRIORITY): Ditto.
1471 (OMP_NESTED): Ditto.
1472 (OMP_NUM_THREADS): Ditto.
1473 (OMP_PROC_BIND): Ditto.
1474 (OMP_PLACES): Ditto.
1475 (OMP_STACKSIZE): Ditto.
1476 (OMP_SCHEDULE): Ditto.
1477 (OMP_THREAD_LIMIT): Ditto.
1478 (OMP_WAIT_POLICY): Ditto.
1480 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
1481 James Norris <jnorris@codesourcery.com>
1482 Julian Brown <julian@codesourcery.com>
1483 Thomas Schwinge <thomas@codesourcery.com>
1484 Tom de Vries <tom@codesourcery.com>
1486 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1487 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1488 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1489 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1490 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1491 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1492 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1493 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1494 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1495 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1497 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1499 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1501 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1503 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1505 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1507 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1509 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1511 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1513 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1515 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1517 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1519 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1521 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1523 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1525 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1527 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1529 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1531 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1533 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1535 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1537 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1539 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1541 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1543 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1545 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1547 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1549 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1550 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1551 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1552 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1553 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1554 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1555 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1556 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1557 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1559 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1561 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1562 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1563 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1565 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1566 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1567 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1569 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1571 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1573 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1575 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1577 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1579 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1581 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1583 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1585 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1587 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1589 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1591 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1593 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1595 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1597 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1598 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1599 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1600 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1601 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1602 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1603 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1605 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1606 Thomas Schwinge <thomas@codesourcery.com>
1607 Cesar Philippidis <cesar@codesourcery.com>
1609 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1610 (gomp_acc_remove_pointer): Update declaration.
1611 (gomp_acc_declare_allocate): Declare.
1612 (gomp_remove_var): Declare.
1613 * libgomp.map (OACC_2.5): Define.
1614 * oacc-mem.c (acc_map_data): Update refcount.
1615 (acc_unmap_data): Likewise.
1616 (present_create_copy): Likewise.
1617 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1618 (acc_copyin): Likewise.
1619 (FLAG_FINALIZE): Define.
1620 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1621 (acc_delete_finalize): New function.
1622 (acc_delete_finalize_async): New function.
1623 (acc_copyout_finalize): New function.
1624 (acc_copyout_finalize_async): New function.
1625 (gomp_acc_insert_pointer): Update refcounts.
1626 (gomp_acc_remove_pointer): Return if data is not present on the
1628 * oacc-parallel.c (find_pset): Rename to find_pointer.
1629 (find_pointer): Add support for GOMP_MAP_POINTER.
1630 (handle_ftn_pointers): New function.
1631 (GOACC_parallel_keyed): Update refcounts of variables.
1632 (GOACC_enter_exit_data): Add support for finalized data mappings.
1633 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1635 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1636 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1637 for GOMP_MAP_FORCE_FROM.
1638 * openacc.f90 (module openacc_internal): Add
1639 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1640 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1641 acc_copyout_finalize and acc_delete_finalize.
1642 (acc_copyout_finalize_32_h): New subroutine.
1643 (acc_copyout_finalize_64_h): New subroutine.
1644 (acc_copyout_finalize_array_h): New subroutine.
1645 (acc_delete_finalize_32_h): New subroutine.
1646 (acc_delete_finalize_64_h): New subroutine.
1647 (acc_delete_finalize_array_h): New subroutine.
1648 * openacc.h (acc_copyout_finalize): Declare.
1649 (acc_copyout_finalize_async): Declare.
1650 (acc_delete_finalize): Declare.
1651 (acc_delete_finalize_async): Declare.
1652 * openacc_lib.h (acc_copyout_finalize): New interface.
1653 (acc_delete_finalize): New interface.
1654 * target.c (gomp_map_vars): Update dynamic_refcount.
1655 (gomp_remove_var): New function.
1656 (gomp_unmap_vars): Use it.
1657 (gomp_unload_image_from_device): Likewise.
1658 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1659 case to utilize OpenACC 2.5 data clause semantics.
1660 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1661 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1662 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1663 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1664 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1665 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1666 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1667 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1668 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1669 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1670 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1671 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1672 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1673 utilize OpenACC 2.5 data clause semantics.
1674 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1675 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1676 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1677 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1678 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1679 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1680 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1681 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1682 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1684 2018-05-21 Janus Weil <janus@gcc.gnu.org>
1688 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1689 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1690 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1691 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1692 * testsuite/libgomp.fortran/task2.f90: Ditto.
1693 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1694 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1695 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1696 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1697 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1698 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1699 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1700 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1701 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1703 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
1706 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1708 2018-05-09 Tom de Vries <tom@codesourcery.com>
1711 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1712 to GOACC_enter_exit_data.
1714 2018-05-09 Tom de Vries <tom@codesourcery.com>
1717 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1718 (async_synchronous_p): New function.
1719 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1721 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1722 async_valid_stream_id_p.
1723 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1724 * oacc-parallel.c (GOACC_parallel_keyed): Same.
1726 2018-05-07 Tom de Vries <tom@codesourcery.com>
1729 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1730 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1732 2018-05-03 Tom de Vries <tom@codesourcery.com>
1735 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1736 extra_tool_flags if it contains an -foffload=-fdump-* flag.
1737 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1738 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1740 2018-05-02 Tom de Vries <tom@codesourcery.com>
1743 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1744 GOMP_OPENACC_DIM ...
1745 * env.c (parse_gomp_openacc_dim): ... here. New function.
1746 (initialize_env): Call parse_gomp_openacc_dim.
1747 (goacc_default_dims): Define.
1748 * libgomp.h (goacc_default_dims): Declare.
1749 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1750 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1751 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1752 GOMP_PLUGIN_acc_default_dim.
1753 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1754 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1756 2018-05-02 Tom de Vries <tom@codesourcery.com>
1759 * testsuite/libgomp.c++/udr-9.C: Update.
1760 * testsuite/libgomp.c++/atomic-16.C: Remove.
1761 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1762 * testsuite/libgomp.c++/loop-13.C: Remove.
1763 * testsuite/libgomp.c++/loop-14.C: Remove.
1764 * testsuite/libgomp.c++/loop-15.C: Remove.
1765 * testsuite/libgomp.c++/monotonic-1.C: Remove.
1766 * testsuite/libgomp.c++/monotonic-2.C: Remove.
1767 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1768 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1769 * testsuite/libgomp.c++/ordered-1.C: Remove.
1770 * testsuite/libgomp.c++/pr45784.C: Remove.
1771 * testsuite/libgomp.c++/pr64824.C: Remove.
1772 * testsuite/libgomp.c++/pr64868.C: Remove.
1773 * testsuite/libgomp.c++/pr66199-1.C: Remove.
1774 * testsuite/libgomp.c++/pr66199-2.C: Remove.
1775 * testsuite/libgomp.c++/pr66199-3.C: Remove.
1776 * testsuite/libgomp.c++/pr66199-4.C: Remove.
1777 * testsuite/libgomp.c++/pr66199-5.C: Remove.
1778 * testsuite/libgomp.c++/pr66199-6.C: Remove.
1779 * testsuite/libgomp.c++/pr66199-7.C: Remove.
1780 * testsuite/libgomp.c++/pr66199-8.C: Remove.
1781 * testsuite/libgomp.c++/pr66199-9.C: Remove.
1782 * testsuite/libgomp.c++/pr69389.C: Remove.
1783 * testsuite/libgomp.c++/simd10.C: Remove.
1784 * testsuite/libgomp.c++/simd11.C: Remove.
1785 * testsuite/libgomp.c++/simd12.C: Remove.
1786 * testsuite/libgomp.c++/simd13.C: Remove.
1787 * testsuite/libgomp.c++/target-1.C: Remove.
1788 * testsuite/libgomp.c++/target-3.C: Remove.
1789 * testsuite/libgomp.c++/target-4.C: Remove.
1790 * testsuite/libgomp.c++/target-5.C: Remove.
1791 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1792 * testsuite/libgomp.c++/taskloop-1.C: Remove.
1793 * testsuite/libgomp.c++/taskloop-2.C: Remove.
1794 * testsuite/libgomp.c++/taskloop-3.C: Remove.
1795 * testsuite/libgomp.c++/taskloop-4.C: Remove.
1796 * testsuite/libgomp.c++/udr-9.C: Remove.
1797 * testsuite/libgomp.c++/for-10.C: Remove.
1798 * testsuite/libgomp.c++/for-11.C: Remove.
1799 * testsuite/libgomp.c++/for-12.C: Remove.
1800 * testsuite/libgomp.c++/for-13.C: Remove.
1801 * testsuite/libgomp.c++/for-14.C: Remove.
1802 * testsuite/libgomp.c++/for-9.C: Remove.
1803 * testsuite/libgomp.c/atomic-18.c: Move ...
1804 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
1805 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
1806 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
1807 * testsuite/libgomp.c/loop-13.c: Move ...
1808 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
1809 * testsuite/libgomp.c/loop-14.c: Move ...
1810 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
1811 * testsuite/libgomp.c/loop-15.c: Remove.
1812 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
1813 * testsuite/libgomp.c/monotonic-1.c: Move ...
1814 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
1815 * testsuite/libgomp.c/monotonic-2.c: Move ...
1816 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
1817 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
1818 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
1819 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
1820 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
1821 * testsuite/libgomp.c/ordered-4.c: Move ...
1822 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
1823 * testsuite/libgomp.c/pr45784.c: Move ...
1824 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
1825 * testsuite/libgomp.c/pr64824.c: Move ...
1826 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
1827 * testsuite/libgomp.c/pr64868.c: Move ...
1828 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
1829 * testsuite/libgomp.c/pr66199-1.c: Move ...
1830 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
1831 * testsuite/libgomp.c/pr66199-2.c: Move ...
1832 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
1833 * testsuite/libgomp.c/pr66199-3.c: Move ...
1834 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
1835 * testsuite/libgomp.c/pr66199-4.c: Move ...
1836 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
1837 * testsuite/libgomp.c/pr66199-5.c: Move ...
1838 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
1839 * testsuite/libgomp.c/pr66199-6.c: Move ...
1840 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
1841 * testsuite/libgomp.c/pr66199-7.c: Move ...
1842 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
1843 * testsuite/libgomp.c/pr66199-8.c: Move ...
1844 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
1845 * testsuite/libgomp.c/pr66199-9.c: Move ...
1846 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
1847 * testsuite/libgomp.c/pr69389.c: Move ...
1848 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
1849 * testsuite/libgomp.c/simd-14.c: Move ...
1850 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
1851 * testsuite/libgomp.c/simd-15.c: Move ...
1852 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
1853 * testsuite/libgomp.c/simd-16.c: Move ...
1854 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
1855 * testsuite/libgomp.c/simd-17.c: Move ...
1856 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
1857 * testsuite/libgomp.c/target-1.c: Move ...
1858 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
1859 * testsuite/libgomp.c/target-10.c: Move ...
1860 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
1861 * testsuite/libgomp.c/target-13.c: Move ...
1862 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
1863 * testsuite/libgomp.c/target-2.c: Move ...
1864 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
1865 * testsuite/libgomp.c/taskgroup-1.c: Move ...
1866 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
1867 * testsuite/libgomp.c/taskloop-1.c: Move ...
1868 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
1869 * testsuite/libgomp.c/taskloop-2.c: Move ...
1870 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
1871 * testsuite/libgomp.c/taskloop-3.c: Move ...
1872 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
1873 * testsuite/libgomp.c/taskloop-4.c: Move ...
1874 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
1875 * testsuite/libgomp.c/udr-1.c: Move ...
1876 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
1877 * testsuite/libgomp.c/for-1.c: Move ...
1878 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
1879 * testsuite/libgomp.c/for-1.h: Move ...
1880 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
1881 * testsuite/libgomp.c/for-2.c: Move ...
1882 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
1883 * testsuite/libgomp.c/for-2.h: Move ...
1884 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
1885 * testsuite/libgomp.c/for-3.c: Move ...
1886 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
1887 * testsuite/libgomp.c/for-4.c: Move ...
1888 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
1889 * testsuite/libgomp.c/for-5.c: Move ...
1890 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
1891 * testsuite/libgomp.c/for-6.c: Move ...
1892 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
1894 2018-05-02 Tom de Vries <tom@codesourcery.com>
1897 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
1898 __builtin_goacc_parlevel_{id,size}.
1899 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
1900 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
1901 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
1902 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
1903 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
1904 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
1905 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
1906 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
1907 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
1908 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
1909 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
1910 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
1911 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
1912 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
1913 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
1914 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
1915 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
1916 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
1917 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
1918 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
1919 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
1920 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
1921 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
1923 2018-05-02 Tom de Vries <tom@codesourcery.com>
1926 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
1928 2018-05-02 Tom de Vries <tom@codesourcery.com>
1931 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
1933 2018-04-29 Julian Brown <julian@codesourcery.com>
1934 Tom de Vries <tom@codesourcery.com>
1937 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
1938 arbitrary order for iterations of atomic subtract check.
1940 2018-04-28 Tom de Vries <tom@codesourcery.com>
1943 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
1944 atomic capture results obtained in parallel loop to an array, instead of
1947 2018-04-26 Tom de Vries <tom@codesourcery.com>
1950 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
1951 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
1952 (process_GOMP_NVPTX_JIT): New function.
1953 (link_ptx): Use process_GOMP_NVPTX_JIT.
1955 2018-04-26 Richard Biener <rguenther@suse.de>
1956 Tom de Vries <tom@codesourcery.com>
1959 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
1961 2018-04-26 Tom de Vries <tom@codesourcery.com>
1964 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1965 recursion depth from 25 to 23.
1966 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1968 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
1970 * configure: Regenerated.
1972 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
1973 Tom de Vries <tom@codesourcery.com>
1976 * testsuite/libgomp.oacc-c++/ref-1.C: New.
1978 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
1981 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
1982 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1983 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1984 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
1985 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
1986 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
1989 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
1991 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1993 2018-04-19 Jakub Jelinek <jakub@redhat.com>
1995 * configure: Regenerated.
1997 2018-04-18 David Malcolm <dmalcolm@redhat.com>
2000 * configure: Regenerate.
2002 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
2003 Tom de Vries <tom@codesourcery.com>
2006 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2007 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2009 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2013 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2014 test from gfortran.dg to here.
2016 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2018 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2019 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2021 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2024 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2025 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2027 2018-04-05 Tom de Vries <tom@codesourcery.com>
2030 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2032 2018-03-26 Tom de Vries <tom@codesourcery.com>
2034 PR tree-optimization/85063
2035 * testsuite/libgomp.c/switch-conversion-2.c: New test.
2036 * testsuite/libgomp.c/switch-conversion.c: New test.
2037 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2038 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2040 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2043 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2044 call abort by STOP n.
2045 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2046 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2047 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2048 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2049 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2050 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2051 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2052 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2053 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2054 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2055 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2056 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2057 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2058 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2059 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2060 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2061 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2062 * testsuite/libgomp.fortran/associate1.f90: Likewise.
2063 * testsuite/libgomp.fortran/associate2.f90: Likewise.
2064 * testsuite/libgomp.fortran/associate3.f90: Likewise.
2065 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2066 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2067 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2068 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2069 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2070 * testsuite/libgomp.fortran/character1.f90: Likewise.
2071 * testsuite/libgomp.fortran/character2.f90: Likewise.
2072 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2073 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2074 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2075 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2076 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2077 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2078 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2079 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2080 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2081 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2082 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2083 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2084 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2085 * testsuite/libgomp.fortran/do1.f90: Likewise.
2086 * testsuite/libgomp.fortran/do2.f90: Likewise.
2087 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2088 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2089 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2090 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2091 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2092 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2093 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2094 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2095 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2096 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2097 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2098 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2099 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2100 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2101 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2102 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2103 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2104 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2105 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2106 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2107 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2108 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2109 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2110 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2111 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2112 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2113 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2114 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2115 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2116 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2117 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2118 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2119 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2120 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2121 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2122 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2123 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2124 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2125 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2126 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2127 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2128 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2129 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2130 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2131 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2132 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2133 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2134 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2135 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2136 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2137 * testsuite/libgomp.fortran/lib2.f: Likewise.
2138 * testsuite/libgomp.fortran/lib3.f: Likewise.
2139 * testsuite/libgomp.fortran/lib4.f90: Likewise.
2140 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2141 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2142 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2143 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2144 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2145 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2146 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2147 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2148 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2149 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2150 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2151 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2152 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2153 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2154 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2155 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2156 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2157 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2158 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2159 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2160 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2161 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2162 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2163 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2164 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2165 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2166 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2167 * testsuite/libgomp.fortran/pr25162.f: Likewise.
2168 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2169 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2170 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2171 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2172 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2173 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2174 * testsuite/libgomp.fortran/pr28390.f: Likewise.
2175 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2176 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
2177 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
2178 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
2179 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
2180 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
2181 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
2182 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
2183 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
2184 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
2185 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
2186 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
2187 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
2188 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
2189 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
2190 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
2191 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
2192 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
2193 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
2194 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
2195 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
2196 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
2197 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
2198 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
2199 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
2200 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2201 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
2202 * testsuite/libgomp.fortran/reference1.f90: Likewise.
2203 * testsuite/libgomp.fortran/reference2.f90: Likewise.
2204 * testsuite/libgomp.fortran/retval1.f90: Likewise.
2205 * testsuite/libgomp.fortran/retval2.f90: Likewise.
2206 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
2207 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
2208 * testsuite/libgomp.fortran/simd1.f90: Likewise.
2209 * testsuite/libgomp.fortran/simd2.f90: Likewise.
2210 * testsuite/libgomp.fortran/simd3.f90: Likewise.
2211 * testsuite/libgomp.fortran/simd4.f90: Likewise.
2212 * testsuite/libgomp.fortran/simd5.f90: Likewise.
2213 * testsuite/libgomp.fortran/simd6.f90: Likewise.
2214 * testsuite/libgomp.fortran/simd7.f90: Likewise.
2215 * testsuite/libgomp.fortran/stack.f90: Likewise.
2216 * testsuite/libgomp.fortran/strassen.f90: Likewise.
2217 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
2218 * testsuite/libgomp.fortran/tabs2.f: Likewise.
2219 * testsuite/libgomp.fortran/target1.f90: Likewise.
2220 * testsuite/libgomp.fortran/target2.f90: Likewise.
2221 * testsuite/libgomp.fortran/target3.f90: Likewise.
2222 * testsuite/libgomp.fortran/target4.f90: Likewise.
2223 * testsuite/libgomp.fortran/target5.f90: Likewise.
2224 * testsuite/libgomp.fortran/target6.f90: Likewise.
2225 * testsuite/libgomp.fortran/target7.f90: Likewise.
2226 * testsuite/libgomp.fortran/target8.f90: Likewise.
2227 * testsuite/libgomp.fortran/task1.f90: Likewise.
2228 * testsuite/libgomp.fortran/task2.f90: Likewise.
2229 * testsuite/libgomp.fortran/task3.f90: Likewise.
2230 * testsuite/libgomp.fortran/task4.f90: Likewise.
2231 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
2232 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
2233 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
2234 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
2235 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
2236 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2237 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2238 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2239 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
2240 * testsuite/libgomp.fortran/udr1.f90: Likewise.
2241 * testsuite/libgomp.fortran/udr10.f90: Likewise.
2242 * testsuite/libgomp.fortran/udr11.f90: Likewise.
2243 * testsuite/libgomp.fortran/udr12.f90: Likewise.
2244 * testsuite/libgomp.fortran/udr13.f90: Likewise.
2245 * testsuite/libgomp.fortran/udr14.f90: Likewise.
2246 * testsuite/libgomp.fortran/udr15.f90: Likewise.
2247 * testsuite/libgomp.fortran/udr2.f90: Likewise.
2248 * testsuite/libgomp.fortran/udr3.f90: Likewise.
2249 * testsuite/libgomp.fortran/udr4.f90: Likewise.
2250 * testsuite/libgomp.fortran/udr5.f90: Likewise.
2251 * testsuite/libgomp.fortran/udr6.f90: Likewise.
2252 * testsuite/libgomp.fortran/udr7.f90: Likewise.
2253 * testsuite/libgomp.fortran/udr8.f90: Likewise.
2254 * testsuite/libgomp.fortran/udr9.f90: Likewise.
2255 * testsuite/libgomp.fortran/vla1.f90: Likewise.
2256 * testsuite/libgomp.fortran/vla2.f90: Likewise.
2257 * testsuite/libgomp.fortran/vla3.f90: Likewise.
2258 * testsuite/libgomp.fortran/vla4.f90: Likewise.
2259 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2260 * testsuite/libgomp.fortran/vla6.f90: Likewise.
2261 * testsuite/libgomp.fortran/vla7.f90: Likewise.
2262 * testsuite/libgomp.fortran/vla8.f90: Likewise.
2263 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
2264 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
2265 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2266 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2267 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2268 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2269 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2270 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2271 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2272 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2273 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2274 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
2275 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2276 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
2277 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
2278 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2279 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2280 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2281 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2282 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2283 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2284 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2285 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2286 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
2287 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
2288 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2289 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2290 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2291 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2292 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2293 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2294 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2295 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2296 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2297 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2298 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2299 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2300 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2301 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2302 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2303 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2304 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2305 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2306 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2307 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2308 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2309 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2310 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2311 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2312 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2313 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2314 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2315 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2316 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2317 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2318 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2319 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2320 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2321 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2322 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2323 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2324 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2325 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2326 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2327 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2328 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2329 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2330 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2331 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2332 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2333 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2334 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2335 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2336 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2337 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2338 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2339 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2340 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2341 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2342 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2343 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2344 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2345 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2346 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2347 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2348 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2349 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2350 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2351 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2352 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2353 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2354 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2355 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2356 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2358 2018-03-20 Richard Biener <rguenther@suse.de>
2360 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2361 parallelizable loop.
2363 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2366 * configure: Regenerate.
2368 2018-02-16 Jakub Jelinek <jakub@redhat.com>
2371 * libgomp.fortran/pr84418-1.f90: New test.
2372 * libgomp.fortran/pr84418-2.f90: New test.
2374 2018-02-14 Jakub Jelinek <jakub@redhat.com>
2377 * testsuite/libgomp.fortran/threadprivate4.f90: Add
2378 -std=f2003 -fall-intrinsics into dg-additional-options.
2380 2018-02-08 Martin Jambor <mjambor@suse.cz>
2382 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2385 2018-02-08 Martin Jambor <mjambor@suse.cz>
2387 * testsuite/libgomp.hsa.c/staticvar.c: New test.
2389 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2391 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2392 [__cplusplus]: Declare extern "C".
2394 2018-02-07 Tom de Vries <tom@codesourcery.com>
2397 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2399 2018-01-29 Christoph Spiel <cspiel@freenet.de>
2400 Jakub Jelinek <jakub@redhat.com>
2403 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2404 instead of omp_lock_t.
2406 2018-01-25 Tom de Vries <tom@codesourcery.com>
2409 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2411 2018-01-24 Tom de Vries <tom@codesourcery.com>
2414 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2416 2018-01-24 Tom de Vries <tom@codesourcery.com>
2419 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2421 2018-01-19 Tom de Vries <tom@codesourcery.com>
2422 Cesar Philippidis <cesar@codesourcery.com>
2425 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2426 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2428 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2430 Update copyright years.
2432 * libgomp.texi: Bump @copying's copyright year.
2434 2017-12-30 Tom de Vries <tom@codesourcery.com>
2437 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2438 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2440 2017-12-27 Tom de Vries <tom@codesourcery.com>
2443 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2444 (test_nonstatic): Fix return type to workaround PR83046.
2446 2017-12-05 Jakub Jelinek <jakub@redhat.com>
2449 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2450 j suffix instead of i.
2451 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2454 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
2456 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2457 call to acc_wait (1).
2459 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2462 * testsuite/libgomp.fortran/pr81304.f90: New test.
2464 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2467 * libgomp.fortran/pr81841.f90: New test.
2469 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2472 * target.c (gomp_target_init): Compute lengths just once and
2473 use them in both malloc size and subsequent copying.
2475 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2477 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2478 * acinclude.m4: Add cet.m4.
2479 * configure: Regenerate.
2480 * Makefile.in: Likewise.
2481 * testsuite/Makefile.in: Likewise.
2483 2017-11-15 Tom de Vries <tom@codesourcery.com>
2485 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2486 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
2487 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2488 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
2489 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2490 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
2492 2017-11-14 Tom de Vries <tom@codesourcery.com>
2494 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2497 2017-11-07 Jakub Jelinek <jakub@redhat.com>
2500 * testsuite/libgomp.c++/pr82835.C: New test.
2502 2017-11-06 Martin Liska <mliska@suse.cz>
2504 * testsuite/libgomp.c++/loop-2.C: Return a value
2505 for functions with non-void return type, or change type to void,
2506 or add -Wno-return-type for test.
2507 * testsuite/libgomp.c++/loop-4.C: Likewise.
2508 * testsuite/libgomp.c++/parallel-1.C: Likewise.
2509 * testsuite/libgomp.c++/shared-1.C: Likewise.
2510 * testsuite/libgomp.c++/single-1.C: Likewise.
2511 * testsuite/libgomp.c++/single-2.C: Likewise.
2513 2017-10-31 Tom de Vries <tom@codesourcery.com>
2515 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2516 "do {} while (false)".
2517 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2518 after HSA_DEBUG call.
2520 2017-10-28 Jakub Jelinek <jakub@redhat.com>
2522 * target.c (struct gomp_coalesce_buf): New type.
2523 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2524 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2525 (gomp_copy_host2dev): Add CBUF argument, if copying into
2526 the cached ranges, memcpy into buffer instead of copying
2528 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2529 Add CBUF argument, pass it through to other calls.
2530 (gomp_map_vars): Aggregate copies from host to device if small enough
2531 and with small enough gaps in between into memcpy into a buffer and
2532 fewer host to device copies from the buffer.
2533 (gomp_update): Adjust gomp_copy_host2dev caller.
2535 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
2537 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2539 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2540 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2541 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2542 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2544 2017-10-16 Tom de Vries <tom@codesourcery.com>
2546 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2547 openacc_nvidia_accel_selected.
2548 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2549 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2550 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2551 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2552 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2553 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2554 openacc_nvidia_accel_selected. Skip for shared memory device.
2555 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2556 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2558 2017-10-09 Martin Jambor <mjambor@suse.cz>
2561 * testsuite/libgomp.hsa.c/pr82416.c: New test.
2563 2017-10-07 Tom de Vries <tom@codesourcery.com>
2565 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2566 Remove acc_device_nvidia references.
2567 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2570 2017-10-05 Tom de Vries <tom@codesourcery.com>
2572 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2573 vector_length(32) clause from acc parallel directive.
2574 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2576 2017-10-04 Tom de Vries <tom@codesourcery.com>
2578 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2579 (main): Reduce sum of arr elements. Assert that hres is exactly
2580 representable in 32-bit floating point.
2581 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2582 (main): Reduce sum of arr elements. Assert that hres and hmres are
2583 exactly representable in 32-bit floating point.
2584 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2586 2017-09-28 Tom de Vries <tom@codesourcery.com>
2588 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2590 * testsuite/libgomp.c++/pr69393.C: Same.
2591 * testsuite/libgomp.c++/taskloop-1.C: Same.
2592 * testsuite/libgomp.c++/taskloop-3.C: Same.
2593 * testsuite/libgomp.c++/taskloop-4.C: Same.
2594 * testsuite/libgomp.c/for-4.c: Same.
2595 * testsuite/libgomp.c/pr66199-3.c: Same.
2596 * testsuite/libgomp.c/pr66199-4.c: Same.
2597 * testsuite/libgomp.c/pr66199-6.c: Same.
2598 * testsuite/libgomp.c/taskloop-1.c: Same.
2599 * testsuite/libgomp.c/taskloop-3.c: Same.
2600 * testsuite/libgomp.c/taskloop-4.c: Same.
2601 * testsuite/libgomp.fortran/aligned1.f03: Same.
2602 * testsuite/libgomp.fortran/condinc1.f: Same.
2603 * testsuite/libgomp.fortran/condinc3.f90: Same.
2604 * testsuite/libgomp.fortran/crayptr1.f90: Same.
2605 * testsuite/libgomp.fortran/crayptr2.f90: Same.
2606 * testsuite/libgomp.fortran/crayptr3.f90: Same.
2607 * testsuite/libgomp.fortran/omp_cond1.f: Same.
2608 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2609 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2610 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2611 * testsuite/libgomp.fortran/recursion1.f90: Same.
2612 * testsuite/libgomp.fortran/target2.f90: Same.
2613 * testsuite/libgomp.fortran/target5.f90: Same.
2614 * testsuite/libgomp.fortran/task3.f90: Same.
2616 2017-09-28 Tom de Vries <tom@codesourcery.com>
2618 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2619 vector_length(32) clause from acc parallel directive.
2620 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2622 2017-09-27 Tom de Vries <tom@codesourcery.com>
2624 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2625 Remove acc_device_nvidia references.
2627 2017-09-16 Tom de Vries <tom@codesourcery.com>
2630 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2632 2017-09-14 Tom de Vries <tom@codesourcery.com>
2634 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2635 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2636 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2637 * testsuite/libgomp.c/c.exp: Include test-cases from
2638 libgomp.c-c++-common.
2639 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
2642 2017-09-14 Jakub Jelinek <jakub@redhat.com>
2645 * testsuite/libgomp.c++/pr81314.C: New test.
2647 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
2649 * libgomp.texi (Top): www.openacc.org now uses https.
2650 (Enabling OpenACC): Ditto.
2651 (acc_get_num_devices): Ditto.
2652 (acc_set_device_type): Ditto.
2653 (acc_get_device_type): Ditto.
2654 (acc_set_device_num): Ditto.
2655 (acc_get_device_num): Ditto.
2656 (acc_async_test): Ditto.
2657 (acc_async_test_all): Ditto.
2659 (acc_wait_all): Ditto.
2660 (acc_wait_all_async): Ditto.
2661 (acc_wait_async): Ditto.
2663 (acc_shutdown): Ditto.
2664 (acc_on_device): Ditto.
2665 (acc_malloc): Ditto.
2667 (acc_copyin): Ditto.
2668 (acc_present_or_copyin): Ditto.
2669 (acc_create): Ditto.
2670 (acc_present_or_create): Ditto.
2671 (acc_copyout): Ditto.
2672 (acc_delete): Ditto.
2673 (acc_update_device): Ditto.
2674 (acc_update_self): Ditto.
2675 (acc_map_data): Ditto.
2676 (acc_unmap_data): Ditto.
2677 (acc_deviceptr): Ditto.
2678 (acc_hostptr): Ditto.
2679 (acc_is_present): Ditto.
2680 (acc_memcpy_to_device): Ditto.
2681 (acc_memcpy_from_device): Ditto.
2682 (acc_get_current_cuda_device): Ditto.
2683 (acc_get_current_cuda_context): Ditto.
2684 (acc_get_cuda_stream): Ditto.
2685 (acc_set_cuda_stream): Ditto.
2686 (ACC_DEVICE_TYPE): Ditto.
2687 (ACC_DEVICE_NUM): Ditto.
2688 (OpenACC Library Interoperability): Ditto.
2690 2017-08-09 Jakub Jelinek <jakub@redhat.com>
2693 * testsuite/libgomp.c/pr81687-1.c: New test.
2694 * testsuite/libgomp.c/pr81687-2.c: New test.
2696 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2699 * testsuite/libgomp.c/pr69389.c: New test.
2700 * testsuite/libgomp.c++/pr69389.C: New test.
2702 2017-08-07 Tom de Vries <tom@codesourcery.com>
2705 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2706 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2708 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2711 * testsuite/libgomp.c/pr45784.c: New test.
2712 * testsuite/libgomp.c++/pr45784.C: New test.
2714 2017-07-19 Tom de Vries <tom@codesourcery.com>
2716 * testsuite/libgomp.oacc-c/vec.c: New test.
2718 2017-07-03 Tom de Vries <tom@codesourcery.com>
2720 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2722 2017-06-27 Tom de Vries <tom@codesourcery.com>
2724 * plugin/plugin-nvptx.c (notify_var): New function.
2725 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2727 2017-06-27 Tom de Vries <tom@codesourcery.com>
2729 * env.c (parse_unsigned_long_1): Factor out of ...
2730 (parse_unsigned_long): ... here.
2731 (parse_int_1): Factor out of ...
2732 (parse_int): ... here.
2733 (parse_int_secure): New function.
2734 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2735 * secure_getenv.h: Factor out of ...
2736 * plugin/plugin-hsa.c: ... here.
2737 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2739 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2742 * testsuite/libgomp.c++/pr81130.C: New test.
2744 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2746 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2748 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2749 dg-xfail-run-if default args.
2751 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2753 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2754 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2756 2017-05-30 Jakub Jelinek <jakub@redhat.com>
2759 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2760 (gomp_affinity_init_level): Use it. Always analyze the core and thread
2761 sibling lists, depending on level just pick up what CPUs to put
2762 together into a place vs. whether add multiple ordered places.
2764 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
2766 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2767 * libgomp.map (OACC_2.0.1): Add these.
2768 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2769 for "acc_wait", and "acc_wait_all", respectively.
2770 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2771 for "acc_wait", and "acc_wait_all", respectively.
2772 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2773 * libgomp.texi (acc_wait, acc_wait_all): Update.
2774 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2775 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2776 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2778 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2779 acc_present_or_copyin and acc_present_or_create procedures,
2781 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2782 generally different variants of OpenACC Runtime Library functions.
2783 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2785 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2786 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2788 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2789 of preprocessor definitions.
2790 * libgomp.h (strong_alias): Guard by "#ifdef
2791 HAVE_ATTRIBUTE_ALIAS".
2792 * oacc-mem.c: Provide "acc_pcreate" as alias for
2793 "acc_present_or_create", and "acc_pcopyin" as alias for
2794 "acc_present_or_copyin".
2795 * libgomp.map: New version "OACC_2.0.1".
2796 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2797 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2799 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2802 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2803 when disabling nvptx offloading.
2805 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
2807 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
2808 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2809 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2811 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
2812 * testsuite/lib/libgomp.exp
2813 (check_effective_target_openacc_nvidia_accel_configured): New
2815 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
2816 (check_effective_target_c++): New procs.
2817 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
2818 (check_effective_target_c++): Likewise.
2820 2017-05-22 Jakub Jelinek <jakub@redhat.com>
2823 * testsuite/libgomp.c/pr80809-2.c: New test.
2824 * testsuite/libgomp.c/pr80809-3.c: New test.
2827 * testsuite/libgomp.c/pr80809-1.c: New test.
2830 * testsuite/libgomp.c/pr80853.c: New test.
2832 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
2834 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
2835 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
2836 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2837 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2838 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2840 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
2841 Debug output for failure.
2843 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2845 * testsuite/lib/libgomp.exp: Load scanlang.exp.
2847 2017-04-27 Jakub Jelinek <jakub@redhat.com>
2850 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
2851 bootstrap compare failures.
2853 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
2855 * testsuite/libgomp.c/target-36.c: New testcase.
2857 2017-04-13 Jakub Jelinek <jakub@redhat.com>
2859 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
2862 2017-04-11 Jakub Jelinek <jakub@redhat.com>
2865 * testsuite/libgomp.c/pr80394.c: New test.
2867 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2870 * config/posix/thread-stacksize.h: New file.
2871 * config/darwin/thread-stacksize.h: New file.
2872 * config/nvptx/thread-stacksize.h: New file.
2873 * env.c: Include thread-stacksize.h.
2874 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
2875 instead of 0. Call pthread_attr_setstacksize even if
2876 GOMP_DEFAULT_STACKSIZE is non-zero.
2878 2017-03-30 Jakub Jelinek <jakub@redhat.com>
2880 * env.c (initialize_env): Initialize stacksize to 0.
2882 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
2885 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
2887 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2890 * testsuite/libgomp.c/pr79940.c: New test.
2892 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2894 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
2896 Add __float128 options.
2898 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
2900 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
2901 hppa*-*-* dg-skip-if directive.
2903 2017-02-09 Jakub Jelinek <jakub@redhat.com>
2905 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
2906 dg-skip-if directive into a comment.
2908 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
2909 Chung-Lin Tang <cltang@codesourcery.com>
2911 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
2912 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
2913 add additional case.
2914 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
2915 "openacc_nvidia_accel_selected".
2916 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
2917 Add num_workers(8) clause.
2919 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
2921 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
2923 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
2924 include complex.h on hppa*-*-hpux*.
2925 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
2927 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
2929 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
2931 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
2932 GOMP_OFFLOAD_openacc_exec. Adjust all users.
2933 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
2934 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
2935 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
2936 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
2937 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
2938 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
2939 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
2940 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
2942 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
2944 * libgomp-plugin.h: #include <stdbool.h>.
2945 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
2946 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
2947 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
2948 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
2949 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
2950 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
2951 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
2952 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
2953 (GOMP_OFFLOAD_openacc_register_async_cleanup)
2954 (GOMP_OFFLOAD_openacc_async_test)
2955 (GOMP_OFFLOAD_openacc_async_test_all)
2956 (GOMP_OFFLOAD_openacc_async_wait)
2957 (GOMP_OFFLOAD_openacc_async_wait_async)
2958 (GOMP_OFFLOAD_openacc_async_wait_all)
2959 (GOMP_OFFLOAD_openacc_async_wait_all_async)
2960 (GOMP_OFFLOAD_openacc_async_set_async)
2961 (GOMP_OFFLOAD_openacc_create_thread_data)
2962 (GOMP_OFFLOAD_openacc_destroy_thread_data)
2963 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
2964 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
2965 (GOMP_OFFLOAD_openacc_get_cuda_stream)
2966 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
2967 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
2969 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
2970 (GOMP_OFFLOAD_unload_image): Fix argument types.
2972 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2974 * testsuite/lib/libgomp.exp
2975 (check_effective_target_hsa_offloading_selected_nocache): Fix up
2976 check_compile invocation. Fix up removal of executable. Drop
2977 bogus "2>&1" argument.
2979 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
2982 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
2983 Martin Jambor <mjambor@suse.cz>
2985 * plugin/hsa.h: Moved to top level include.
2986 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
2988 2017-01-21 Jakub Jelinek <jakub@redhat.com>
2991 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
2992 of cat to get version from BASE-VER file.
2993 * testsuite/Makefile.in: Regenerated.
2995 2017-01-19 Jakub Jelinek <jakub@redhat.com>
2997 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3000 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3002 * plugin/hsa.h: Add GCC runtime library exception.
3003 * plugin/hsa_ext_finalize.h: Likewise.
3005 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3006 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
3007 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3008 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3009 plugin/include/cuda as include dir and -ldl instead of -lcuda as
3010 library to link ptx plugin against.
3011 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3012 (CUDA_CALLS): Define.
3013 (cuda_lib, cuda_lib_inited): New variables.
3014 (init_cuda_lib): New function.
3015 (CUDA_CALL_PREFIX): Define.
3016 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3017 (CUDA_CALL): Use FN instead of (FN).
3018 (CUDA_CALL_NOCHECK): Define.
3019 (cuda_error, fini_streams_for_device, select_stream_for_async,
3020 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3021 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3022 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3023 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3025 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
3027 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3028 Use CUDA_CALL_NOCHECK.
3029 * plugin/cuda/cuda.h: New file.
3030 * config.h.in: Regenerated.
3031 * configure: Regenerated.
3034 * configure.ac: Add GCC_BASE_VER.
3035 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3036 get version from BASE-VER file.
3037 * testsuite/Makefile.in: Regenerated.
3038 * configure: Regenerated.
3039 * Makefile.in: Regenerated.
3041 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3044 * Makefile.am: Make fincludedir multilib-aware.
3045 * Makefile.in: Regenerate.
3047 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3049 Update copyright years.
3051 * libgomp.texi: Bump @copying's copyright year.
3053 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3055 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3056 pthread_spinlock_t instead of gomp_mutex_t lock.
3057 (gomp_get_thread_pool): Likewise.
3058 (gomp_release_thread_pool): Likewise.
3059 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3062 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3064 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3065 thread pool in case nthreads == 1.
3067 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3069 * config/nvptx/env.c: Delete.
3070 * icv.c: Move definitions of ICV variables back ...
3071 * env.c: ...here. Do not compile environment-related functionality if
3072 LIBGOMP_OFFLOADED_ONLY is set.
3074 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3076 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3077 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3078 * configure: Regenerate.
3079 * config.h.in: Likewise.
3081 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3083 * Makefile.in: Regenerate with automake-1.11.6.
3084 * aclocal.m4: Likewise.
3085 * configure: Likewise.
3086 * testsuite/Makefile.in: Likewise.
3088 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
3090 * config/nvptx/critical.c: Delete to use generic implementation.
3092 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3094 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3095 ../../affinity.c as fallback.
3096 * config/nvptx/affinity.c: Delete to use fallback implementation.
3098 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
3099 Jakub Jelinek <jakub@redhat.com>
3100 Dmitry Melnik <dm@ispras.ru>
3102 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3103 * Makefile.in. Regenerate.
3104 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3105 (LIBGOMP_USE_PTHREADS): ...here; new define.
3106 * configure: Regenerate.
3107 * config.h.in: Likewise.
3108 * config/posix/affinity.c: Move to...
3109 * affinity.c: ...here (new file). Guard use of Pthreads-specific
3110 interface by LIBGOMP_USE_PTHREADS.
3111 * critical.c: Split out GOMP_atomic_{start,end} into...
3112 * atomic.c: ...here (new file).
3113 * env.c: Split out ICV definitions into...
3114 * icv.c: ...here (new file) and...
3115 * icv-device.c: ...here. New file.
3116 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3117 (gomp_destroy_lock_30): Ditto.
3118 (gomp_set_lock_30): Ditto.
3119 (gomp_unset_lock_30): Ditto.
3120 (gomp_test_lock_30): Ditto.
3121 (gomp_init_nest_lock_30): Ditto.
3122 (gomp_destroy_nest_lock_30): Ditto.
3123 (gomp_set_nest_lock_30): Ditto.
3124 (gomp_unset_nest_lock_30): Ditto.
3125 (gomp_test_nest_lock_30): Ditto.
3127 * config/nvptx/lock.c: New.
3128 * config/nvptx/bar.c: New.
3129 * config/nvptx/bar.h: New.
3130 * config/nvptx/doacross.h: New.
3131 * config/nvptx/error.c: New.
3132 * config/nvptx/icv-device.c: New.
3133 * config/nvptx/mutex.h: New.
3134 * config/nvptx/pool.h: New.
3135 * config/nvptx/proc.c: New.
3136 * config/nvptx/ptrlock.h: New.
3137 * config/nvptx/sem.h: New.
3138 * config/nvptx/simple-bar.h: New.
3139 * config/nvptx/target.c: New.
3140 * config/nvptx/task.c: New.
3141 * config/nvptx/team.c: New.
3142 * config/nvptx/time.c: New.
3143 * config/posix/simple-bar.h: New.
3144 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
3145 (gomp_num_teams_var): Declare.
3146 (struct gomp_thread_pool): Change threads_dock member to
3147 gomp_simple_barrier_t.
3148 [__nvptx__] (gomp_thread): New implementation.
3149 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3150 (gomp_thread_destructor): Ditto.
3151 (gomp_init_thread_affinity): Ditto.
3152 * team.c: Guard uses of Pthreads-specific interfaces by
3153 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
3154 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3155 * config/nvptx/alloc.c: Delete.
3156 * config/nvptx/barrier.c: Ditto.
3157 * config/nvptx/fortran.c: Ditto.
3158 * config/nvptx/iter.c: Ditto.
3159 * config/nvptx/iter_ull.c: Ditto.
3160 * config/nvptx/loop.c: Ditto.
3161 * config/nvptx/loop_ull.c: Ditto.
3162 * config/nvptx/ordered.c: Ditto.
3163 * config/nvptx/parallel.c: Ditto.
3164 * config/nvptx/priority_queue.c: Ditto.
3165 * config/nvptx/sections.c: Ditto.
3166 * config/nvptx/single.c: Ditto.
3167 * config/nvptx/splay-tree.c: Ditto.
3168 * config/nvptx/work.c: Ditto.
3169 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3170 -foffload=-lgfortran in addition to -lgfortran.
3171 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3172 * plugin/plugin-nvptx.c: Include <limits.h>.
3173 (struct targ_fn_descriptor): Add new fields.
3174 (struct ptx_device): Ditto. Set them...
3175 (nvptx_open_device): ...here.
3176 (nvptx_adjust_launch_bounds): New.
3177 (nvptx_host2dev): Allow NULL 'nvthd'.
3178 (nvptx_dev2host): Ditto.
3179 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
3180 (link_ptx): Adjust log sizes.
3181 (nvptx_host2dev): Allow NULL 'nvthd'.
3182 (nvptx_dev2host): Ditto.
3183 (nvptx_set_clocktick): New. Use it...
3184 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
3186 (GOMP_OFFLOAD_dev2dev): New.
3187 (nvptx_adjust_launch_bounds): New.
3188 (nvptx_stacks_size): New.
3189 (nvptx_stacks_alloc): New.
3190 (nvptx_stacks_free): New.
3191 (GOMP_OFFLOAD_run): New.
3192 (GOMP_OFFLOAD_async_run): New (stub).
3194 2016-11-23 Martin Jambor <mjambor@suse.cz>
3196 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
3197 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
3198 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3200 2016-11-23 Martin Liska <mliska@suse.cz>
3201 Martin Jambor <mjambor@suse.cz>
3203 * plugin/hsa.h: New file.
3204 * plugin/hsa_ext_finalize.h: New file.
3205 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
3206 header file unistd.h, and functions secure_getenv, __secure_getenv,
3207 getuid, geteuid, getgid and getegid.
3208 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
3210 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
3211 Handle various cases of secure_getenv presence, add an implementation
3212 when we can test effective UID and GID.
3213 (struct hsa_runtime_fn_info): New structure.
3214 (hsa_runtime_fn_info hsa_fns): New variable.
3215 (hsa_runtime_lib): Likewise.
3216 (support_cpu_devices): Likewise.
3217 (init_enviroment_variables): Load newly introduced ENV
3219 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
3220 (hsa_fatal): Likewise.
3221 (DLSYM_FN): New macro.
3222 (init_hsa_runtime_functions): New function.
3223 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
3224 structure. Depending on environment, also allow CPU devices.
3225 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
3226 (get_kernarg_memory_region): Likewise.
3227 (GOMP_OFFLOAD_init_device): Likewise.
3228 (destroy_hsa_program): Likewise.
3229 (init_basic_kernel_info): New function.
3230 (GOMP_OFFLOAD_load_image): Use it.
3231 (create_and_finalize_hsa_program): Call hsa run-time functions via
3233 (create_single_kernel_dispatch): Likewise.
3234 (release_kernel_dispatch): Likewise.
3235 (init_single_kernel): Likewise.
3236 (parse_target_attributes): Allow up multiple HSA grid dimensions.
3237 (get_group_size): New function.
3238 (run_kernel): Likewise.
3239 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
3240 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
3242 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
3243 * testsuite/libgomp-test-support.exp.in: Likewise.
3244 * Makefile.in: Regenerated.
3245 * aclocal.m4: Likewise.
3246 * config.h.in: Likewise.
3247 * configure: Likewise.
3248 * testsuite/Makefile.in: Likewise.
3250 2016-11-15 Martin Jambor <mjambor@suse.cz>
3251 Alexander Monakov <amonakov@ispras.ru>
3253 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
3254 mapping clauses to target constructs.
3255 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
3257 2016-11-15 Matthias Klose <doko@ubuntu.com>
3259 * configure: Regenerate.
3261 2016-11-10 Jakub Jelinek <jakub@redhat.com>
3263 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
3264 * omp_lib.h.in (openmp_version): Likewise.
3265 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
3267 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3269 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
3270 (fib_wrapper): Add map(from: x) clause.
3271 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
3273 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
3274 (accum): Add map(tmp) clause.
3275 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
3276 (accum): Add map(tofrom: tmp) clause.
3277 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
3278 (gramSchmidt): Likewise.
3279 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
3280 map(tofrom: sum) clause.
3281 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
3282 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
3283 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
3284 only allowed on the loop iterator.
3285 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
3286 * testsuite/libgomp.fortran/taskloop2.f90: New test.
3287 * testsuite/libgomp.fortran/taskloop4.f90: New test.
3288 * testsuite/libgomp.fortran/doacross1.f90: New test.
3289 * testsuite/libgomp.fortran/doacross3.f90: New test.
3290 * testsuite/libgomp.fortran/taskloop1.f90: New test.
3291 * testsuite/libgomp.fortran/taskloop3.f90: New test.
3292 * testsuite/libgomp.fortran/doacross2.f90: New test.
3293 * testsuite/libgomp.c/doacross-1.c (main): Add missing
3294 #pragma omp atomic read.
3295 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3296 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
3298 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3299 Nathan Sidwell <nathan@acm.org>
3301 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3302 to determine default geometry.
3303 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3306 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3308 * hashtab.h: Use standard GPLv3 with runtime exception
3311 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3313 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3314 size when allocating new thread.
3316 2016-09-14 Marek Polacek <polacek@redhat.com>
3318 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3320 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3323 * testsuite/libgomp.fortran/pr71014.f90: New test.
3325 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3328 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3329 firstprivate clauses.
3330 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3332 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3333 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3334 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3335 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3336 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3337 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3338 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3339 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3340 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3341 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3342 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3343 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3345 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
3348 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3350 2016-08-08 Jakub Jelinek <jakub@redhat.com>
3353 * testsuite/libgomp.c++/pr58706.C: New test.
3355 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
3357 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3358 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3359 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3361 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3362 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3364 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3366 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3367 test, and don't hardcode -O0.
3369 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
3371 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3373 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
3375 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3378 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
3381 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3382 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3384 2016-07-01 Jakub Jelinek <jakub@redhat.com>
3387 * testsuite/libgomp.fortran/associate3.f90: New test.
3389 2016-06-17 Jakub Jelinek <jakub@redhat.com>
3391 * testsuite/libgomp.c++/target-21.C: New test.
3393 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3395 * testsuite/libgomp.c++/target-20.C: New test.
3397 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3398 Cesar Philippidis <cesar@codesourcery.com>
3401 * libgomp.oacc-c/nested-function-1.c: New file.
3402 * libgomp.oacc-c/nested-function-2.c: Likewise.
3403 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3404 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3405 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3407 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3410 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3411 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3412 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3414 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
3416 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3417 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3419 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
3422 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3424 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3426 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3427 instead of invalid schedule(static, 0).
3428 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3430 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3432 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3433 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3434 parameter, use to set async stream around call to gomp_unmap_vars,
3435 call gomp_unmap_vars() with 'do_copyfrom' set to true.
3436 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3437 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3438 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3439 (event_add): Add int parameter, initialize 'val' field when
3440 adding new ptx_event struct.
3441 (nvptx_evec): Adjust event_add() call arguments.
3442 (nvptx_host2dev): Likewise.
3443 (nvptx_dev2host): Likewise.
3444 (nvptx_wait_async): Likewise.
3445 (nvptx_wait_all_async): Likewise.
3446 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3447 pass to event_add() call.
3448 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3450 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3451 call openacc.register_async_cleanup_func() hook.
3452 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3453 * target.c (gomp_copy_from_async): Delete function.
3454 (gomp_map_vars): Remove async_refcount.
3455 (gomp_unmap_vars): Likewise.
3456 (gomp_load_image_to_device): Likewise.
3457 (omp_target_associate_ptr): Likewise.
3458 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3459 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3460 (gomp_copy_from_async): Remove.
3462 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3464 * target.c (gomp_device_copy): New function.
3465 (gomp_copy_host2dev): Likewise.
3466 (gomp_copy_dev2host): Likewise.
3467 (gomp_free_device_memory): Likewise.
3468 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3469 (gomp_map_pointer): Likewise.
3470 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3471 NULL value from alloc_func plugin hook.
3472 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3473 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3474 (gomp_unmap_vars): Likewise.
3475 (gomp_update): Adjust to call gomp_copy_dev2host and
3476 gomp_copy_host2dev functions.
3477 (gomp_unload_image_from_device): Handle false value from
3478 unload_image_func plugin hook.
3479 (gomp_init_device): Handle false value from init_device_func
3481 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3482 (omp_target_free): Adjust to call gomp_free_device_memory.
3483 (omp_target_memcpy): Handle return values from host2dev_func,
3484 dev2host_func, and dev2dev_func plugin hooks.
3485 (omp_target_memcpy_rect_worker): Likewise.
3486 (gomp_target_fini): Handle false value from fini_device_func
3488 * libgomp.h (struct gomp_device_descr): Adjust return type of
3489 init_device_func, fini_device_func, unload_image_func, free_func,
3490 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3491 * oacc-init.c (acc_shutdown_1): Handle false value from
3492 fini_device_func plugin hook.
3493 * oacc-host.c (host_init_device): Change return type to bool.
3494 (host_fini_device): Likewise.
3495 (host_unload_image): Likewise.
3496 (host_free): Likewise.
3497 (host_dev2host): Likewise.
3498 (host_host2dev): Likewise.
3499 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3500 (acc_memcpy_to_device): Likewise.
3501 (acc_memcpy_from_device): Likewise.
3502 (delete_copyout): Add libfnname parameter, handle free_func
3503 hook fatal error case.
3504 (acc_delete): Adjust delete_copyout call.
3505 (acc_copyout): Likewise.
3506 (update_dev_host): Move gomp_mutex_unlock to after
3507 host2dev/dev2host hook calls.
3509 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3510 to 'hsa_error_msg', for clarity.
3511 (hsa_fatal): Likewise.
3512 (hsa_error): New function.
3513 (init_hsa_context): Change return type to bool, adjust to return
3515 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3517 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3518 return false on error.
3519 (get_agent_info): Adjust to return NULL on error.
3520 (destroy_hsa_program): Change return type to bool, adjust to
3521 return false on error.
3522 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3523 (destroy_module): Change return type to bool, adjust to
3524 return false on error.
3525 (GOMP_OFFLOAD_unload_image): Likewise.
3526 (GOMP_OFFLOAD_fini_device): Likewise.
3527 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3528 (GOMP_OFFLOAD_free): Change to return false when called.
3529 (GOMP_OFFLOAD_dev2host): Likewise.
3530 (GOMP_OFFLOAD_host2dev): Likewise.
3531 (GOMP_OFFLOAD_dev2dev): Likewise.
3533 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3534 (CUDA_CALL): Likewise.
3535 (CUDA_CALL_ASSERT): Likewise.
3536 (map_init): Change return type to bool, use CUDA_CALL* macros.
3537 (map_fini): Likewise.
3538 (init_streams_for_device): Change return type to bool, adjust
3540 (fini_streams_for_device): Change return type to bool, adjust
3542 (select_stream_for_async): Release stream_lock before calls to
3543 GOMP_PLUGIN_fatal, adjust call to map_init.
3544 (nvptx_init): Use CUDA_CALL* macros.
3545 (nvptx_attach_host_thread_to_device): Change return type to bool,
3546 use CUDA_CALL* macros.
3547 (nvptx_open_device): Use CUDA_CALL* macros.
3548 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3550 (nvptx_get_num_devices): Use CUDA_CALL* macros.
3551 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3552 (nvptx_exec): Use CUDA_CALL* macros.
3553 (nvptx_alloc): Use CUDA_CALL* macros.
3554 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3555 (nvptx_host2dev): Likewise.
3556 (nvptx_dev2host): Likewise.
3557 (nvptx_wait): Use CUDA_CALL* macros.
3558 (nvptx_wait_async): Likewise.
3559 (nvptx_wait_all): Likewise.
3560 (nvptx_wait_all_async): Likewise.
3561 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3562 use CUDA_CALL* macros, adjust call to map_fini.
3563 (GOMP_OFFLOAD_init_device): Change return type to bool,
3564 adjust code accordingly.
3565 (GOMP_OFFLOAD_fini_device): Likewise.
3566 (GOMP_OFFLOAD_load_image): Adjust calls to
3567 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3568 use CUDA_CALL* macros.
3569 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3571 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3572 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3573 handle error return.
3574 (GOMP_OFFLOAD_dev2host): Likewise.
3575 (GOMP_OFFLOAD_host2dev): Likewise.
3576 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3577 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3579 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3581 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3582 (acc_free): Likewise.
3583 (acc_memcpy_to_device): Likewise.
3584 (acc_memcpy_from_device): Likewise.
3585 (acc_deviceptr): Likewise.
3586 (acc_hostptr): Likewise.
3587 (acc_is_present): Likewise.
3588 (acc_map_data): Likewise.
3589 (acc_unmap_data): Likewise.
3590 (present_create_copy): Likewise.
3591 (delete_copyout): Likewise.
3592 (update_dev_host): Likewise.
3593 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3594 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3595 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3596 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3597 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3598 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3599 it only runs on nvptx targets.
3600 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3601 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3602 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3603 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3604 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3605 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3606 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3607 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3608 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3609 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3610 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3611 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3612 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3613 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3614 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3615 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3616 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3617 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3618 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3619 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3620 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3621 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3622 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3624 2016-05-23 Martin Jambor <mjambor@suse.cz>
3626 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3628 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
3630 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3631 to gomp_init_targets_once.
3632 (acc_set_device_type): Remove !cached_base_dev condition on call to
3633 gomp_init_targets_once, move call to before acc_device_lock acquire,
3635 (acc_get_device_num): Remove !cached_base_dev condition on call to
3636 gomp_init_targets_once.
3637 (acc_set_device_num): Likewise.
3639 2016-05-16 Martin Jambor <mjambor@suse.cz>
3641 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3643 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3645 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3646 expected partitioning.
3648 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3651 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3652 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3653 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3655 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
3657 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3660 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3663 * testsuite/libgomp.c/pr70680-1.c: New test.
3664 * testsuite/libgomp.c/pr70680-2.c: New test.
3666 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3668 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3669 pass parameter variables to subroutines.
3671 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3674 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3676 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
3679 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3680 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3682 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
3684 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3685 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3686 GOACC_declare prototype.
3688 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3689 Merge this file, and...
3690 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3691 ... this file, and...
3692 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3693 ... this file, and...
3694 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3695 ... this file, and...
3696 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3697 ... this file, and...
3698 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3699 ... this file, and...
3700 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3701 ... this file, and...
3702 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3703 ... this file, and...
3704 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3705 ... this file, and...
3706 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3707 ... this file, and...
3708 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3709 ... this file, and...
3710 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3711 ... this file, and...
3712 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3713 ... this file into...
3714 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3717 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3718 Make failure observable.
3720 2016-04-12 Jakub Jelinek <jakub@redhat.com>
3722 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3724 * target.c (gomp_target_fallback_firstprivate,
3725 gomp_target_unshare_firstprivate): Removed.
3726 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3727 before waiting for dependencies.
3728 (gomp_target_task_fn): Don't copy firstprivate vars here.
3729 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3730 firstprivate_copies here.
3731 (gomp_create_target_task): Don't initialize firstprivate_copies field.
3732 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3733 explicit/implicit firstprivate.
3735 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
3739 PR tree-optimization/70373
3743 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3745 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3747 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3749 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3751 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3753 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3755 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3757 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3759 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3761 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3762 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3763 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3764 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3766 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3768 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3770 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3772 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3774 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3775 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3776 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3777 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3778 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3779 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3781 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3782 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3783 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3784 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3785 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3786 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3787 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3788 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3789 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3790 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3791 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3792 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3793 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3794 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3795 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3797 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
3798 James Norris <jnorris@codesourcery.com>
3799 Nathan Sidwell <nathan@codesourcery.com>
3800 Julian Brown <julian@codesourcery.com>
3801 Cesar Philippidis <cesar@codesourcery.com>
3802 Chung-Lin Tang <cltang@codesourcery.com>
3803 Tom de Vries <tom@codesourcery.com>
3805 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
3806 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3807 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3808 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
3809 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3810 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3811 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3812 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3813 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3815 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3817 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
3819 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
3820 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
3821 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
3822 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
3824 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3826 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3827 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
3828 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3829 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3830 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3831 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3832 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3833 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3834 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3835 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
3837 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
3838 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3839 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
3841 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
3843 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
3845 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
3847 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
3849 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
3850 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
3851 ... this new file. Update.
3852 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
3853 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
3854 ... this new file. Update.
3855 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
3856 file. Incorporate...
3857 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
3859 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
3861 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
3863 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
3865 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3867 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
3868 set-torture-options.
3870 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
3872 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
3874 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3875 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
3876 -fno-builtin-acc_on_device instead of -O0.
3877 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
3879 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3880 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
3882 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3883 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3884 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3885 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3886 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3887 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3888 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3889 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3890 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3891 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3892 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3893 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3894 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3895 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3896 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3897 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3898 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3899 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
3901 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
3903 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
3906 2016-03-24 Martin Liska <mliska@suse.cz>
3908 * plugin/plugin-hsa.c (packet_store_release): New function
3909 that is taken from the HSA runtime manual.
3910 (GOMP_OFFLOAD_run): Use the function.
3912 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3915 * testsuite/libgomp.c++/pr70376.C: New test.
3917 2016-03-23 Tom de Vries <tom@codesourcery.com>
3919 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
3920 initialization of lresult and lvresult.
3921 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
3923 2016-03-23 James Norris <jnorris@codesourcery.com>
3924 Daichi Fukuoka <dc-fukuoka@sgi.com>
3927 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
3928 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
3929 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
3930 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
3932 2016-03-23 Martin Liska <mliska@suse.cz>
3935 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
3936 argument just in case a dispatched kernel uses that argument.
3938 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
3940 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
3941 -ftree-parallelize-loops/-fopenacc changes.
3942 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
3944 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3946 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
3948 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
3950 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3951 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3953 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
3955 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
3956 always_ld_library_path the path to libgcc_s.
3958 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
3961 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
3963 2016-03-09 Tom de Vries <tom@codesourcery.com>
3965 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
3966 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
3967 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3969 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
3970 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
3971 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
3972 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
3974 2016-03-07 Martin Jambor <mjambor@suse.cz>
3976 * testsuite/lib/libgomp.exp
3977 (check_effective_target_hsa_offloading_selected_nocache): New.
3978 (check_effective_target_hsa_offloading_selected): Likewise.
3979 * testsuite/libgomp.hsa.c/c.exp: Likewise.
3980 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
3981 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
3982 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
3983 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
3984 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
3985 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
3986 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
3987 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
3988 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
3989 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
3990 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
3991 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
3992 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
3993 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
3994 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
3995 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
3997 2016-03-07 Martin Jambor <mjambor@suse.cz>
3999 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4000 non-shared memory accelerators.
4001 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4002 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4003 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4004 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4005 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4006 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4007 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4008 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4009 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4011 2016-03-07 Martin Jambor <mjambor@suse.cz>
4013 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4016 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4019 * testsuite/libgomp.c++/pr69555-1.C: New test.
4020 * testsuite/libgomp.c++/pr69555-2.C: New test.
4022 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
4023 Martin Jambor <mjambor@suse.cz>
4025 * testsuite/lib/libgomp.exp
4026 (check_effective_target_offload_device_shared_as): New proc.
4027 * testsuite/libgomp.c++/declare_target-1.C: New test.
4029 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4032 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4034 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4036 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4037 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4039 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4040 -ftree-parallelize-loops/-fopenacc changes.
4041 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4042 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4044 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4046 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4048 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4050 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4052 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4054 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4056 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4057 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4059 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4060 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4062 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4063 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4066 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4068 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4070 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4073 * testsuite/libgomp.c/pr69805.c: New test.
4075 2016-02-16 Tom de Vries <tom@codesourcery.com>
4078 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4080 2016-02-09 Tom de Vries <tom@codesourcery.com>
4082 PR tree-optimization/69599
4083 * testsuite/libgomp.c/omp-nested-3.c: New test.
4084 * testsuite/libgomp.c/pr46032-2.c: New test.
4085 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4086 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4088 2016-02-09 Tom de Vries <tom@codesourcery.com>
4091 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4093 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4095 * testsuite/libgomp.c/target-31.c: Fix testcase.
4097 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4099 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4101 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4102 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4103 reduction and map clauses.
4104 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4106 2016-02-02 James Norris <jnorris@codesourcery.com>
4108 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4110 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4112 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4113 * oacc-parallel.c (GOACC_host_data): Remove function definition.
4115 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4118 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4120 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4121 (hsa_kmt_lib): Set variables.
4122 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4123 always_ld_library_path.
4124 * Makefile.in: Regenerate.
4125 * configure: Likewise.
4126 * testsuite/Makefile.in: Likewise.
4128 * plugin/configfrag.ac (offload_additional_options)
4129 (offload_additional_lib_paths): Don't amend for hsa offloading.
4130 * configure: Regenerate.
4132 * plugin/configfrag.ac: Don't configure for offloading target if
4133 we don't build the corresponding plugin.
4134 * configure: Regenerate.
4136 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4138 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4139 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4141 2016-01-26 Tom de Vries <tom@codesourcery.com>
4143 PR tree-optimization/69110
4144 * testsuite/libgomp.c/pr69110.c: New test.
4146 2016-01-25 Richard Biener <rguenther@suse.de>
4149 * testsuite/libgomp.c++/pr69393.C: New testcase.
4151 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
4153 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4154 function wasn't mapped to the device with non-shared memory.
4156 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
4158 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4160 2016-01-19 Martin Jambor <mjambor@suse.cz>
4161 Martin Liska <mliska@suse.cz>
4163 * plugin/Makefrag.am: Add HSA plugin requirements.
4164 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4165 (HSA_RUNTIME_LIB): Likewise.
4166 (HSA_RUNTIME_CPPFLAGS): Likewise.
4167 (HSA_RUNTIME_INCLUDE): New substitution.
4168 (HSA_RUNTIME_LIB): Likewise.
4169 (HSA_RUNTIME_LDFLAGS): Likewise.
4170 (hsa-runtime): New configure option.
4171 (hsa-runtime-include): Likewise.
4172 (hsa-runtime-lib): Likewise.
4173 (PLUGIN_HSA): New substitution variable.
4174 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4176 (PLUGIN_HSA_CPPFLAGS): Likewise.
4177 (PLUGIN_HSA_LDFLAGS): Likewise.
4178 (PLUGIN_HSA_LIBS): Likewise.
4179 Check that we have access to HSA run-time.
4180 * libgomp-plugin.h (offload_target_type): New element
4181 OFFLOAD_TARGET_TYPE_HSA.
4182 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
4184 (bool gomp_create_target_task): Updated.
4185 (gomp_device_descr): Extra parameter of run_func and async_run_func,
4186 new field can_run_func.
4187 * libgomp_g.h (GOMP_target_ext): Update prototype.
4188 * oacc-host.c (host_run): Added a new parameter args.
4189 * target.c (calculate_firstprivate_requirements): New function.
4190 (copy_firstprivate_data): Likewise.
4191 (gomp_target_fallback_firstprivate): Use them.
4192 (gomp_target_unshare_firstprivate): New function.
4193 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
4195 (GOMP_target): Do host fallback for all shared memory devices. Do not
4196 pass any args to plugins.
4197 (GOMP_target_ext): Introduce device-specific argument parameter args.
4198 Allow host fallback if device shares memory. Do not remap data if
4199 device has shared memory.
4200 (gomp_target_task_fn): Likewise. Also treat shared memory devices
4201 like host fallback for mappings.
4202 (GOMP_target_data): Treat shared memory devices like host fallback.
4203 (GOMP_target_data_ext): Likewise.
4204 (GOMP_target_update): Likewise.
4205 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
4206 gomp_create_target_task.
4207 (GOMP_target_enter_exit_data): Likewise.
4208 (omp_target_alloc): Treat shared memory devices like host fallback.
4209 (omp_target_free): Likewise.
4210 (omp_target_is_present): Likewise.
4211 (omp_target_memcpy): Likewise.
4212 (omp_target_memcpy_rect): Likewise.
4213 (omp_target_associate_ptr): Likewise.
4214 (gomp_load_plugin_for_device): Also load can_run.
4215 * task.c (GOMP_PLUGIN_target_task_completion): Free
4216 firstprivate_copies.
4217 (gomp_create_target_task): Accept new argument args and store it to
4219 * plugin/plugin-hsa.c: New file.
4221 2016-01-18 Tom de Vries <tom@codesourcery.com>
4223 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
4224 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
4225 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
4226 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
4227 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
4228 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
4229 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
4230 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
4231 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
4232 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
4233 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4235 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4237 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
4238 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
4239 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
4240 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
4241 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
4242 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
4243 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
4244 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4246 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
4248 2016-01-15 Jakub Jelinek <jakub@redhat.com>
4250 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
4252 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
4254 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
4256 2016-01-12 James Norris <jnorris@codesourcery.com>
4258 * libgomp.texi: Updates for OpenACC.
4260 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
4262 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
4264 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4267 * testsuite/libgomp.fortran/pr66680.f90: New test.
4269 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4272 * testsuite/libgomp.c/pr68960.c: New test.
4274 2016-01-06 Nathan Sidwell <nathan@acm.org>
4276 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
4277 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
4279 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4281 Update copyright years.
4283 * libgomp.texi: Bump @copying's copyright year.
4285 2015-12-31 Nathan Sidwell <nathan@acm.org>
4287 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
4288 dg-additional-options syntax.
4289 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4290 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4291 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4292 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4293 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4294 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4295 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4296 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4297 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4298 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4299 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4300 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4301 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4302 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4303 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4304 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4305 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4306 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4308 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4310 * libgomp.h (REFCOUNT_LINK): Define.
4311 (struct splay_tree_key_s): Add link_key.
4312 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4313 Replace target address of the pointer with target address of newly
4314 mapped object in the splay tree. Set link pointer on target to the
4315 device address of the mapped object.
4316 (gomp_unmap_vars): Restore target address of the pointer in the splay
4317 tree for REFCOUNT_LINK objects after unmapping.
4318 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4319 declare target link" objects.
4320 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
4321 "omp declare target link" objects, which were mapped for the image.
4322 (gomp_exit_data): Restore target address of the pointer in the splay
4323 tree for REFCOUNT_LINK objects after unmapping.
4324 * testsuite/libgomp.c/target-link-1.c: New file.
4326 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
4328 * libgomp.h (gomp_device_state): New enum.
4329 (struct gomp_device_descr): Replace is_initialized with state.
4330 (gomp_fini_device): Remove declaration.
4331 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4332 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4333 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
4334 (acc_set_device_type): Use state instead of is_initialized.
4335 (acc_set_device_num): Likewise.
4336 * target.c (resolve_device): Use state instead of is_initialized.
4337 Do not initialize finalized device.
4338 (gomp_map_vars): Do nothing if device is finalized.
4339 (gomp_unmap_vars): Likewise.
4340 (gomp_update): Likewise.
4341 (GOMP_offload_register_ver): Use state instead of is_initialized.
4342 (GOMP_offload_unregister_ver): Likewise.
4343 (gomp_init_device): Likewise.
4344 (gomp_unload_device): Likewise.
4345 (gomp_fini_device): Remove.
4346 (gomp_get_target_fn_addr): Do nothing if device is finalized.
4347 (GOMP_target): Go to host fallback if device is finalized.
4348 (GOMP_target_ext): Likewise.
4349 (gomp_exit_data): Do nothing if device is finalized.
4350 (gomp_target_task_fn): Go to host fallback if device is finalized.
4351 (gomp_target_fini): New static function.
4352 (gomp_target_init): Use state instead of is_initialized.
4353 Call gomp_target_fini at exit.
4355 2015-12-09 Tom de Vries <tom@codesourcery.com>
4357 PR tree-optimization/68716
4358 * testsuite/libgomp.c/omp-nested-2.c: New test.
4360 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
4362 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4363 target openacc_nvidia_accel_selected.
4364 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4365 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4366 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4367 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4369 2015-12-01 Julian Brown <julian@codesourcery.com>
4370 James Norris <James_Norris@mentor.com>
4372 * oacc-parallel.c (GOACC_host_data): New function.
4373 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4374 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4375 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4376 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4377 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4378 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4379 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4381 2015-11-30 James Norris <jnorris@codesourcery.com>
4382 Cesar Philippidis <cesar@codesourcery.com>
4385 * libgomp.oacc-fortran/routine-5.f90: New test.
4386 * libgomp.oacc-fortran/routine-7.f90: New test.
4387 * libgomp.oacc-fortran/routine-9.f90: New test.
4389 2015-11-30 Tom de Vries <tom@codesourcery.com>
4391 PR tree-optimization/46032
4392 * testsuite/libgomp.c/pr46032.c: New test.
4394 2015-11-27 Jakub Jelinek <jakub@redhat.com>
4397 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4398 (gomp_create_target_task): Call it before freeing
4399 GOMP_TARGET_TASK_DATA tasks.
4402 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4403 in between case label and OpenMP standalone directives.
4404 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4406 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
4408 * configure: Regenerate.
4410 2015-11-26 Jakub Jelinek <jakub@redhat.com>
4412 * testsuite/libgomp.c/target-35.c: New test.
4414 2015-11-22 James Norris <jnorris@codesourcery.com>
4415 Cesar Philippidis <cesar@codesourcery.com>
4417 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4418 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4419 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4420 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4421 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4423 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4426 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4427 * testsuite/libgomp.c/reduction-12.c: Likewise.
4428 * testsuite/libgomp.c++/reduction-11.C: Likewise.
4429 * testsuite/libgomp.c++/reduction-12.C: Likewise.
4431 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
4433 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4434 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4435 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4436 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4437 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4439 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4440 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4442 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4444 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4445 worker & gang cases.
4446 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4448 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
4450 * config/nvptx/priority_queue.c: New file.
4452 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4454 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4457 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4458 Aldy Hernandez <aldyh@redhat.com>
4459 Ilya Verbin <ilya.verbin@intel.com>
4461 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4462 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4463 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4464 iterators or IV by chunk size.
4465 * parallel.c (gomp_resolve_num_threads): Don't assume that
4466 if thr->ts.team is non-NULL, then pool must be non-NULL.
4467 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4468 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4469 GOMP_PLUGIN_target_task_completion.
4470 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4471 * Makefile.in: Regenerate.
4472 * libgomp.h: Shuffle prototypes and forward definitions around so
4473 priority queues can be defined.
4474 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4475 (enum gomp_target_task_state): New enum.
4476 (struct gomp_target_task): Add state, tgt, task and team fields.
4477 (gomp_create_target_task): Change return type to bool, add
4479 (gomp_target_task_fn): Change return type to bool.
4480 (struct gomp_device_descr): Add async_run_func.
4481 (struct gomp_task): Remove children, next_child, prev_child,
4482 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4484 (struct gomp_taskgroup): Remove children.
4485 Add taskgroup_queue.
4486 (struct gomp_team): Change task_queue type to a priority queue.
4487 (splay_compare): Define inline.
4488 (priority_queue_offset): New.
4489 (priority_node_to_task): New.
4490 (task_to_priority_node): New.
4491 * oacc-mem.c: Do not include splay-tree.h.
4492 * priority_queue.c: New file.
4493 * priority_queue.h: New file.
4494 * splay-tree.c: Do not include splay-tree.h.
4495 (splay_tree_foreach_internal): New.
4496 (splay_tree_foreach): New.
4497 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4498 (splay_tree_callback): Define typedef.
4499 * target.c (splay_compare): Move to libgomp.h.
4500 (GOMP_target): Don't adjust *thr in any way around running offloaded
4502 (GOMP_target_ext): Likewise. Handle target nowait.
4503 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4504 return value from gomp_create_target_task, if false, fallthrough
4505 as if no dependencies exist.
4506 (gomp_target_task_fn): Change return type to bool, return true
4507 if the task should have another part scheduled later. Handle
4509 (gomp_load_plugin_for_device): Initialize async_run.
4510 * task.c (gomp_init_task): Initialize children_queue.
4511 (gomp_clear_parent_in_list): New.
4512 (gomp_clear_parent_in_tree): New.
4513 (gomp_clear_parent): Handle priorities.
4514 (GOMP_task): Likewise.
4515 (priority_queue_move_task_first,
4516 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4518 (gomp_create_target_task): Use priority queues. Change return type
4519 to bool, add state argument, return false if for async
4520 {{enter,exit} data,update} constructs no dependencies need to be
4521 waited for, handle target nowait. Set task->fn to NULL instead of
4522 gomp_target_task_fn.
4523 (verify_children_queue): Remove.
4524 (priority_list_upgrade_task): New.
4525 (priority_queue_upgrade_task): New.
4526 (verify_task_queue): Remove.
4527 (priority_list_downgrade_task): New.
4528 (priority_queue_downgrade_task): New.
4529 (gomp_task_run_pre): Use priority queues.
4530 Abstract code out to priority_queue_downgrade_task.
4531 (gomp_task_run_post_handle_dependers): Use priority queues.
4532 (gomp_task_run_post_remove_parent): Likewise.
4533 (gomp_task_run_post_remove_taskgroup): Likewise.
4534 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
4536 (GOMP_taskwait): Likewise.
4537 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
4538 priority-queue_upgrade_task.
4539 (GOMP_taskgroup_start): Use priority queues.
4540 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
4541 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
4543 * taskloop.c (GOMP_taskloop): Handle priorities.
4544 * team.c (gomp_new_team): Call priority_queue_init.
4545 (free_team): Call priority_queue_free.
4546 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4547 team created for target nowait in implicit parallel region.
4548 (gomp_team_start): For nested check, test thr->ts.level instead of
4549 thr->ts.team != NULL.
4550 * testsuite/libgomp.c/doacross-3.c: New test.
4551 * testsuite/libgomp.c/ordered-5.c: New test.
4552 * testsuite/libgomp.c/priority.c: New test.
4553 * testsuite/libgomp.c/target-31.c: New test.
4554 * testsuite/libgomp.c/target-32.c: New test.
4555 * testsuite/libgomp.c/target-33.c: New test.
4556 * testsuite/libgomp.c/target-34.c: New test.
4558 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4560 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4562 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4565 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4567 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4568 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4570 2015-11-12 James Norris <jnorris@codesourcery.com>
4571 Joseph Myers <joseph@codesourcery.com>
4573 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4574 * oacc-parallel.c (GOACC_declare): New function.
4575 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4576 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4577 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4578 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4579 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4581 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4583 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4585 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
4587 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4588 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4590 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4592 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4595 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4597 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4598 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4599 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4600 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4601 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4603 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
4605 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4606 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4608 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4609 Ilya Verbin <ilya.verbin@intel.com>
4611 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4612 GOMP_loop_nonmonotonic_dynamic_start,
4613 GOMP_loop_nonmonotonic_guided_next,
4614 GOMP_loop_nonmonotonic_guided_start,
4615 GOMP_loop_ull_nonmonotonic_dynamic_next,
4616 GOMP_loop_ull_nonmonotonic_dynamic_start,
4617 GOMP_loop_ull_nonmonotonic_guided_next,
4618 GOMP_loop_ull_nonmonotonic_guided_start,
4619 GOMP_parallel_loop_nonmonotonic_dynamic,
4620 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4621 (GOMP_target_41): Renamed to ...
4622 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4624 (GOMP_target_data_41): Renamed to ...
4625 (GOMP_target_data_ext): ... this.
4626 (GOMP_target_update_41): Renamed to ...
4627 (GOMP_target_update_ext): ... this.
4628 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4629 GOMP_target_data_ext and GOMP_target_update_ext instead of
4630 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4631 Export GOMP_loop_nonmonotonic_dynamic_next,
4632 GOMP_loop_nonmonotonic_dynamic_start,
4633 GOMP_loop_nonmonotonic_guided_next,
4634 GOMP_loop_nonmonotonic_guided_start,
4635 GOMP_loop_ull_nonmonotonic_dynamic_next,
4636 GOMP_loop_ull_nonmonotonic_dynamic_start,
4637 GOMP_loop_ull_nonmonotonic_guided_next,
4638 GOMP_loop_ull_nonmonotonic_guided_start,
4639 GOMP_parallel_loop_nonmonotonic_dynamic and
4640 GOMP_parallel_loop_nonmonotonic_guided.
4641 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4642 GOMP_parallel_loop_nonmonotonic_guided,
4643 GOMP_loop_nonmonotonic_dynamic_start,
4644 GOMP_loop_nonmonotonic_guided_start,
4645 GOMP_loop_nonmonotonic_dynamic_next,
4646 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4647 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4648 GOMP_loop_ull_nonmonotonic_guided_start,
4649 GOMP_loop_ull_nonmonotonic_dynamic_next,
4650 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4651 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4653 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
4654 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4655 Use gomp_map_val function.
4656 (gomp_target_fallback_firstprivate): New static function.
4657 (GOMP_target_41): Renamed to ...
4658 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4659 arguments. Move firstprivate fallback handling into a new
4661 (GOMP_target_data_41): Renamed to ...
4662 (GOMP_target_data_ext): ... this.
4663 (GOMP_target_update_41): Renamed to ...
4664 (GOMP_target_update_ext): ... this.
4665 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4666 gomp_map_0len_lookup instead of gomp_map_lookup.
4667 (omp_target_is_present): Use gomp_map_0len_lookup instead of
4669 * testsuite/libgomp.c/target-28.c: Likewise.
4670 * testsuite/libgomp.c/monotonic-1.c: New test.
4671 * testsuite/libgomp.c/monotonic-2.c: New test.
4672 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4673 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4674 * testsuite/libgomp.c/pr66199-5.c: New test.
4675 * testsuite/libgomp.c/pr66199-6.c: New test.
4676 * testsuite/libgomp.c/pr66199-7.c: New test.
4677 * testsuite/libgomp.c/pr66199-8.c: New test.
4678 * testsuite/libgomp.c/pr66199-9.c: New test.
4679 * testsuite/libgomp.c/reduction-11.c: New test.
4680 * testsuite/libgomp.c/reduction-12.c: New test.
4681 * testsuite/libgomp.c/reduction-13.c: New test.
4682 * testsuite/libgomp.c/reduction-14.c: New test.
4683 * testsuite/libgomp.c/reduction-15.c: New test.
4684 * testsuite/libgomp.c/target-12.c (main): Adjust for
4685 omp_target_is_present change for one-past-last element.
4686 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4687 the same var is both mapped and privatized.
4688 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4689 handling of zero-length array sections.
4690 * testsuite/libgomp.c/target-28.c: New test.
4691 * testsuite/libgomp.c/target-29.c: New test.
4692 * testsuite/libgomp.c/target-30.c: New test.
4693 * testsuite/libgomp.c/target-teams-1.c: New test.
4694 * testsuite/libgomp.c++/member-6.C: New test.
4695 * testsuite/libgomp.c++/member-7.C: New test.
4696 * testsuite/libgomp.c++/monotonic-1.C: New test.
4697 * testsuite/libgomp.c++/monotonic-2.C: New test.
4698 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4699 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4700 * testsuite/libgomp.c++/pr66199-3.C: New test.
4701 * testsuite/libgomp.c++/pr66199-4.C: New test.
4702 * testsuite/libgomp.c++/pr66199-5.C: New test.
4703 * testsuite/libgomp.c++/pr66199-6.C: New test.
4704 * testsuite/libgomp.c++/pr66199-7.C: New test.
4705 * testsuite/libgomp.c++/pr66199-8.C: New test.
4706 * testsuite/libgomp.c++/pr66199-9.C: New test.
4707 * testsuite/libgomp.c++/reduction-11.C: New test.
4708 * testsuite/libgomp.c++/reduction-12.C: New test.
4709 * testsuite/libgomp.c++/target-13.C: New test.
4710 * testsuite/libgomp.c++/target-14.C: New test.
4711 * testsuite/libgomp.c++/target-15.C: New test.
4712 * testsuite/libgomp.c++/target-16.C: New test.
4713 * testsuite/libgomp.c++/target-17.C: New test.
4714 * testsuite/libgomp.c++/target-18.C: New test.
4715 * testsuite/libgomp.c++/target-19.C: New test.
4717 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4719 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4721 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4722 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4723 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4724 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4725 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4726 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4727 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4728 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4729 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4730 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4731 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4732 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4733 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4734 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4736 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4738 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4739 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4740 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4741 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4742 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4743 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4744 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4745 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4747 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4749 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4750 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4751 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4752 * oacc-host.c (host_openacc_exec): Likewise.
4753 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4755 2015-11-03 Julian Brown <julian@codesourcery.com>
4756 Thomas Schwinge <thomas@codesourcery.com>
4758 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4759 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4760 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4762 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4763 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4765 2015-11-03 James Norris <jnorris@codesourcery.com>
4767 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4769 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4771 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4772 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4773 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4774 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4775 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4777 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4779 * openacc.h (enum acc_device_t): Reformat. Ensure layout
4781 (enum acc_async_t): Reformat.
4782 (acc_on_device): Declare compatible with builtin and provide C++
4784 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4786 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
4787 Cesar Philippidis <cesar@codesourcery.com>
4789 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4790 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4791 ... this. Add a description of the test at the top of the file.
4792 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4793 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4794 ... this. Add a description of the test at the top of the file.
4796 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4798 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4799 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4800 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4801 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4802 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4803 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
4805 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4807 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
4810 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4813 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
4815 2015-10-27 James Norris <jnorris@codesourcery.com>
4817 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
4818 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
4820 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
4822 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
4823 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4825 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
4826 acc_device_nvidia usage.
4827 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4828 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4829 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4831 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
4832 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
4835 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
4839 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
4840 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
4842 2015-10-23 Tom de Vries <tom@codesourcery.com>
4845 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
4847 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
4849 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
4851 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4853 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
4854 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
4856 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
4857 to 0 when mapnum is 0.
4859 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
4861 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
4862 Cast to int from int32_t.
4864 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4865 Aldy Hernandez <aldyh@redhat.com>
4866 Ilya Verbin <ilya.verbin@intel.com>
4868 * config/linux/affinity.c (omp_get_place_num_procs,
4869 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4870 * config/linux/doacross.h: New file.
4871 * config/posix/affinity.c (omp_get_place_num_procs,
4872 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4873 * config/posix/doacross.h: New file.
4874 * env.c: Include gomp-constants.h.
4875 (struct gomp_task_icv): Rename run_sched_modifier to
4876 run_sched_chunk_size.
4877 (gomp_max_task_priority_var): New variable.
4878 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
4879 (handle_omp_display_env): Change _OPENMP value from 201307 to
4880 201511. Print OMP_MAX_TASK_PRIORITY.
4881 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
4882 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
4883 chunk_size and run_sched_modifier to run_sched_chunk_size.
4884 (omp_get_max_task_priority, omp_get_initial_device,
4885 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
4886 omp_get_partition_place_nums): New functions.
4887 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
4888 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
4890 (omp_get_num_places_, omp_get_place_num_procs_,
4891 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
4892 omp_get_place_proc_ids_8_, omp_get_place_num_,
4893 omp_get_partition_num_places_, omp_get_partition_place_nums_,
4894 omp_get_partition_place_nums_8_, omp_get_initial_device_,
4895 omp_get_max_task_priority_): New functions.
4896 * libgomp_g.h (GOMP_loop_doacross_static_start,
4897 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
4898 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
4899 GOMP_loop_ull_doacross_dynamic_start,
4900 GOMP_loop_ull_doacross_guided_start,
4901 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
4902 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
4903 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
4904 GOMP_target_data_41, GOMP_target_update_41,
4905 GOMP_target_enter_exit_data): New prototypes.
4906 (GOMP_task): Add prototype argument.
4907 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
4908 (struct gomp_doacross_work_share): New type.
4909 (struct gomp_work_share): Add doacross field.
4910 (struct gomp_task_icv): Rename run_sched_modifier to
4911 run_sched_chunk_size.
4912 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
4913 GOMP_TASK_UNDEFERRED. Add comments.
4914 (struct gomp_task_depend_entry): Add comments.
4915 (struct gomp_task): Likewise.
4916 (struct gomp_taskgroup): Likewise.
4917 (struct gomp_target_task): New type.
4918 (struct gomp_team): Add comment.
4919 (gomp_get_place_proc_ids_8, gomp_doacross_init,
4920 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
4921 gomp_create_target_task, gomp_target_task_fn): New prototypes.
4922 (struct target_var_desc): New type.
4923 (struct target_mem_desc): Adjust comment. Use struct
4924 target_var_desc instead of splay_tree_key for list.
4925 (REFCOUNT_INFINITY): Define.
4926 (struct splay_tree_key_s): Remove copy_from field.
4927 (struct gomp_device_descr): Add dev2dev_func field.
4928 (enum gomp_map_vars_kind): New enum.
4929 (gomp_map_vars): Add one argument.
4930 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
4931 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
4932 omp_get_place_num_procs, omp_get_place_num_procs_,
4933 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
4934 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
4935 omp_get_place_num_, omp_get_partition_num_places,
4936 omp_get_partition_num_places_, omp_get_partition_place_nums,
4937 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
4938 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
4939 omp_target_free, omp_target_is_present, omp_target_memcpy,
4940 omp_target_memcpy_rect, omp_target_associate_ptr and
4941 omp_target_disassociate_ptr.
4942 (GOMP_4.0.2): Renamed to ...
4943 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
4944 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
4945 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
4946 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4947 GOMP_loop_doacross_static_start, GOMP_doacross_post,
4948 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
4949 GOMP_loop_ull_doacross_guided_start,
4950 GOMP_loop_ull_doacross_runtime_start,
4951 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
4952 GOMP_doacross_ull_wait.
4953 * libgomp.texi: Document omp_get_max_task_priority.
4954 Rename modifier argument to chunk_size for omp_set_schedule and
4955 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
4956 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
4957 to run_sched_chunk_size renaming.
4958 (GOMP_loop_ordered_runtime_start): Likewise.
4959 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
4960 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4961 GOMP_parallel_loop_runtime_start): New functions.
4962 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
4963 to run_sched_chunk_size renaming.
4964 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
4965 GOMP_loop_doacross_guided_start): New functions or aliases.
4966 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
4967 run_sched_modifier to run_sched_chunk_size renaming.
4968 (GOMP_loop_ull_ordered_runtime_start): Likewise.
4969 (gomp_loop_ull_doacross_static_start,
4970 gomp_loop_ull_doacross_dynamic_start,
4971 gomp_loop_ull_doacross_guided_start,
4972 GOMP_loop_ull_doacross_runtime_start): New functions.
4973 (GOMP_loop_ull_doacross_static_start,
4974 GOMP_loop_ull_doacross_dynamic_start,
4975 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
4976 * oacc-mem.c (acc_map_data, present_create_copy,
4977 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
4979 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
4980 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
4981 instead of false to gomp_map_vars.
4982 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
4983 * omp.h.in (omp_lock_hint_t): New type.
4984 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4985 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4986 omp_get_place_num, omp_get_partition_num_places,
4987 omp_get_partition_place_nums, omp_get_initial_device,
4988 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
4989 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
4990 omp_target_associate_ptr, omp_target_disassociate_ptr): New
4992 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
4993 (omp_lock_hint_none, omp_lock_hint_uncontended,
4994 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
4995 omp_lock_hint_speculative): New parameters.
4996 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4997 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4998 omp_get_place_num, omp_get_partition_num_places,
4999 omp_get_partition_place_nums, omp_get_initial_device,
5000 omp_get_max_task_priority): New interfaces.
5001 (omp_set_schedule, omp_get_schedule): Rename modifier argument
5003 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5004 (omp_lock_hint_none, omp_lock_hint_uncontended,
5005 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5006 omp_lock_hint_speculative): New parameters.
5007 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5008 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5009 omp_get_place_num, omp_get_partition_num_places,
5010 omp_get_partition_place_nums, omp_get_initial_device,
5011 omp_get_max_task_priority): New functions and subroutines.
5012 * ordered.c: Include stdarg.h and string.h.
5013 (MAX_COLLAPSED_BITS): Define.
5014 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5015 gomp_doacross_ull_init, GOMP_doacross_ull_post,
5016 GOMP_doacross_ull_wait): New functions.
5017 * target.c: Include errno.h.
5018 (resolve_device): If device is not initialized, call
5019 gomp_init_device on it.
5020 (gomp_map_lookup): New function.
5021 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5022 Don't bump refcount if REFCOUNT_INFINITY. Handle
5023 GOMP_MAP_ALWAYS_TO_P.
5024 (get_kind): Rename is_openacc argument to short_mapkind.
5025 (gomp_map_pointer): Use gomp_map_lookup.
5026 (gomp_map_fields_existing): New function.
5027 (gomp_map_vars): Rename is_openacc argument to short_mapkind
5028 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
5029 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5030 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5031 Adjust for tgt->list changed type and copy_from living in there.
5032 (gomp_copy_from_async): Adjust for tgt->list changed type and
5033 copy_from living in there.
5034 (gomp_unmap_vars): Likewise.
5035 (gomp_update): Likewise. Rename is_openacc argument to
5036 short_mapkind. Don't fail if object is not mapped.
5037 (gomp_load_image_to_device): Initialize refcount to
5039 (gomp_target_fallback): New function.
5040 (gomp_get_target_fn_addr): Likewise.
5041 (GOMP_target): Adjust gomp_map_vars caller, use
5042 gomp_get_target_fn_addr and gomp_target_fallback.
5043 (GOMP_target_41): New function.
5044 (gomp_target_data_fallback): New function.
5045 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5046 (GOMP_target_data_41): New function.
5047 (GOMP_target_update): Adjust gomp_update caller.
5048 (GOMP_target_update_41): New function.
5049 (gomp_exit_data, GOMP_target_enter_exit_data,
5050 gomp_target_task_fn, omp_target_alloc, omp_target_free,
5051 omp_target_is_present, omp_target_memcpy,
5052 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5053 omp_target_associate_ptr, omp_target_disassociate_ptr,
5054 gomp_load_plugin_for_device): New functions.
5055 * task.c: Include gomp-constants.h. Include taskloop.c
5056 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5057 (gomp_task_handle_depend): New function.
5058 (GOMP_task): Use it. Add priority argument. Use
5059 gomp-constant.h constants instead of hardcoded numbers.
5060 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5061 (gomp_create_target_task): New function.
5062 (verify_children_queue, verify_taskgroup_queue,
5063 verify_task_queue): New functions.
5064 (gomp_task_run_pre): Call verify_*_queue functions.
5065 If an upcoming tied task is about to leave the sibling or
5066 taskgroup queues in an invalid state, adjust appropriately.
5067 Remove taskgroup argument. Add comments.
5068 (gomp_task_run_post_handle_dependers): Add comments.
5069 (gomp_task_run_post_remove_parent): Likewise.
5070 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5071 (GOMP_taskwait): Likewise. Add comments.
5072 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5073 problem such that the first non parent_depends_on task does not
5074 end up at the end of the children queue.
5075 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5076 GOMP_TASK_UNDEFERRED.
5077 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5078 * taskloop.c: New file.
5079 * testsuite/lib/libgomp.exp
5080 (check_effective_target_offload_device_nonshared_as): New proc.
5081 * testsuite/libgomp.c/affinity-2.c: New test.
5082 * testsuite/libgomp.c/doacross-1.c: New test.
5083 * testsuite/libgomp.c/doacross-2.c: New test.
5084 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5085 Add map clause to target.
5086 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5087 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5088 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5089 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5090 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5092 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5093 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5094 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5095 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5096 not defined. Use those where needed.
5097 * testsuite/libgomp.c/for-4.c: New test.
5098 * testsuite/libgomp.c/for-5.c: New test.
5099 * testsuite/libgomp.c/for-6.c: New test.
5100 * testsuite/libgomp.c/linear-1.c: New test.
5101 * testsuite/libgomp.c/ordered-4.c: New test.
5102 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5103 only allowed on the loop iterator.
5104 * testsuite/libgomp.c/pr66199-3.c: New test.
5105 * testsuite/libgomp.c/pr66199-4.c: New test.
5106 * testsuite/libgomp.c/reduction-7.c: New test.
5107 * testsuite/libgomp.c/reduction-8.c: New test.
5108 * testsuite/libgomp.c/reduction-9.c: New test.
5109 * testsuite/libgomp.c/reduction-10.c: New test.
5110 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5112 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5113 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5114 * testsuite/libgomp.c/target-11.c: New test.
5115 * testsuite/libgomp.c/target-12.c: New test.
5116 * testsuite/libgomp.c/target-13.c: New test.
5117 * testsuite/libgomp.c/target-14.c: New test.
5118 * testsuite/libgomp.c/target-15.c: New test.
5119 * testsuite/libgomp.c/target-16.c: New test.
5120 * testsuite/libgomp.c/target-17.c: New test.
5121 * testsuite/libgomp.c/target-18.c: New test.
5122 * testsuite/libgomp.c/target-19.c: New test.
5123 * testsuite/libgomp.c/target-20.c: New test.
5124 * testsuite/libgomp.c/target-21.c: New test.
5125 * testsuite/libgomp.c/target-22.c: New test.
5126 * testsuite/libgomp.c/target-23.c: New test.
5127 * testsuite/libgomp.c/target-24.c: New test.
5128 * testsuite/libgomp.c/target-25.c: New test.
5129 * testsuite/libgomp.c/target-26.c: New test.
5130 * testsuite/libgomp.c/target-27.c: New test.
5131 * testsuite/libgomp.c/taskloop-1.c: New test.
5132 * testsuite/libgomp.c/taskloop-2.c: New test.
5133 * testsuite/libgomp.c/taskloop-3.c: New test.
5134 * testsuite/libgomp.c/taskloop-4.c: New test.
5135 * testsuite/libgomp.c++/ctor-13.C: New test.
5136 * testsuite/libgomp.c++/doacross-1.C: New test.
5137 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5138 Replace offload_device with offload_device_nonshared_as.
5139 * testsuite/libgomp.c++/for-12.C: New test.
5140 * testsuite/libgomp.c++/for-13.C: New test.
5141 * testsuite/libgomp.c++/for-14.C: New test.
5142 * testsuite/libgomp.c++/linear-1.C: New test.
5143 * testsuite/libgomp.c++/member-1.C: New test.
5144 * testsuite/libgomp.c++/member-2.C: New test.
5145 * testsuite/libgomp.c++/member-3.C: New test.
5146 * testsuite/libgomp.c++/member-4.C: New test.
5147 * testsuite/libgomp.c++/member-5.C: New test.
5148 * testsuite/libgomp.c++/ordered-1.C: New test.
5149 * testsuite/libgomp.c++/reduction-5.C: New test.
5150 * testsuite/libgomp.c++/reduction-6.C: New test.
5151 * testsuite/libgomp.c++/reduction-7.C: New test.
5152 * testsuite/libgomp.c++/reduction-8.C: New test.
5153 * testsuite/libgomp.c++/reduction-9.C: New test.
5154 * testsuite/libgomp.c++/reduction-10.C: New test.
5155 * testsuite/libgomp.c++/reference-1.C: New test.
5156 * testsuite/libgomp.c++/simd14.C: New test.
5157 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5158 * testsuite/libgomp.c++/target-5.C: New test.
5159 * testsuite/libgomp.c++/target-6.C: New test.
5160 * testsuite/libgomp.c++/target-7.C: New test.
5161 * testsuite/libgomp.c++/target-8.C: New test.
5162 * testsuite/libgomp.c++/target-9.C: New test.
5163 * testsuite/libgomp.c++/target-10.C: New test.
5164 * testsuite/libgomp.c++/target-11.C: New test.
5165 * testsuite/libgomp.c++/target-12.C: New test.
5166 * testsuite/libgomp.c++/taskloop-1.C: New test.
5167 * testsuite/libgomp.c++/taskloop-2.C: New test.
5168 * testsuite/libgomp.c++/taskloop-3.C: New test.
5169 * testsuite/libgomp.c++/taskloop-4.C: New test.
5170 * testsuite/libgomp.c++/taskloop-5.C: New test.
5171 * testsuite/libgomp.c++/taskloop-6.C: New test.
5172 * testsuite/libgomp.c++/taskloop-7.C: New test.
5173 * testsuite/libgomp.c++/taskloop-8.C: New test.
5174 * testsuite/libgomp.c++/taskloop-9.C: New test.
5175 * testsuite/libgomp.fortran/affinity1.f90: New test.
5176 * testsuite/libgomp.fortran/affinity2.f90: New test.
5178 2015-10-13 Tom de Vries <tom@codesourcery.com>
5180 PR tree-optimization/67476
5181 * testsuite/libgomp.c/autopar-3.c: New test.
5182 * testsuite/libgomp.c/autopar-4.c: New test.
5183 * testsuite/libgomp.c/autopar-5.c: New test.
5184 * testsuite/libgomp.c/autopar-6.c: New test.
5185 * testsuite/libgomp.c/autopar-7.c: New test.
5186 * testsuite/libgomp.c/autopar-8.c: New test.
5188 2015-10-12 James Norris <jnorris@codesourcery.com>
5190 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
5193 2015-10-09 David Malcolm <dmalcolm@redhat.com>
5195 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
5198 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5200 * oacc-ptx.h: Remove file, moving its content into...
5201 * config/nvptx/fortran.c: ... here...
5202 * config/nvptx/oacc-init.c: ..., here...
5203 * config/nvptx/oacc-parallel.c: ..., and here.
5204 * config/nvptx/openacc.f90: New file.
5205 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
5206 (link_ptx): Don't link in predefined bits of PTX code.
5208 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5209 Bernd Schmidt <bernds@codesourcery.com>
5211 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
5212 (struct targ_ptx_obj): New.
5213 (nvptx_tdata): Move earlier, change data format.
5214 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
5216 (GOMP_OFFLOAD_load_image): Adjust.
5218 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5220 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
5221 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5222 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5223 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5224 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5225 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5226 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5227 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5228 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5229 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5230 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5231 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5232 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5233 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5234 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5235 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5236 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5237 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5238 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5239 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5240 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5241 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5242 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5243 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5244 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5245 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5246 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5247 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5248 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5249 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5250 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5251 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5252 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5253 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5254 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5255 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5256 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5257 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5258 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5259 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5260 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5261 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5262 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5263 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5264 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5265 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5266 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5267 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5268 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5269 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5270 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5271 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5272 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5273 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5274 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5275 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5276 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5277 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5278 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5279 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5280 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5281 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5282 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5284 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5286 * oacc-init.c (acc_on_device): Force optimization level.
5288 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5290 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
5291 (cuda_errlist): Delete.
5292 (cuda_error): Reimplement.
5294 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5296 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
5298 * libgomp.map (GOACC_parallel_keyed): New.
5299 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
5301 (GOACC_parallel_keyed): New interface. Lose geometry arguments
5302 and take keyed varargs list. Adjust call to exec_func.
5303 (GOACC_parallel): Force host fallback.
5304 * libgomp_g.h (GOACC_parallel): Remove.
5305 (GOACC_parallel_keyed): Declare.
5306 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5307 (stuct targ_gn_descriptor): Replace name field with launch field.
5308 (nvptx_exec): Lose separate geometry args, take array. Process
5309 dynamic dimensions and adjust.
5310 (struct nvptx_tdata): Replace fn_names field with fn_descs.
5311 (GOMP_OFFLOAD_load_image): Adjust for change in function table
5313 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5315 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5318 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5321 * oacc-int.h (goacc_host_init): Add declaration.
5322 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5323 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5325 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5326 Sebastian Pop <s.pop@samsung.com>
5328 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5330 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5331 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5332 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5333 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5334 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5336 2015-09-03 Jakub Jelinek <jakub@redhat.com>
5338 * configure.tgt: Add missing ;; in between nvptx and rtems
5341 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5343 * config/posix/pool.h (gomp_adjust_thread_attr): New.
5344 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5345 (gomp_thread_pool_reservoir): Add priority member.
5346 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5348 (parse_thread_pools): Likewise.
5349 * team.c (gomp_team_start): Call configuration provided
5350 gomp_adjust_thread_attr(). Destroy thread attributes if
5352 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5354 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5356 * config/posix/pool.h: New.
5357 * config/rtems/pool.h: Likewise.
5358 * config/rtems/proc.c: Likewise.
5359 * libgomp.h (gomp_thread_destructor): Declare.
5360 * team.c: Include configuration provided "pool.h".
5361 (gomp_get_thread_pool): Define in configuration.
5362 (gomp_team_end): Call configuration defined
5363 gomp_release_thread_pool().
5365 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5367 * config/rtems/bar.c: New.
5368 * config/rtems/bar.h: Likewise.
5369 * config/rtems/mutex.c: Likewise.
5370 * config/rtems/mutex.h: Likewise.
5371 * config/rtems/sem.c: Likewise.
5372 * config/rtems/sem.h: Likewise.
5373 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5374 <sys/lock.h> header file.
5375 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5376 supported by Newlib.
5377 * configure: Regenerate.
5379 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5381 * team.c (gomp_new_thread_pool): Delete and move content to ...
5382 (gomp_get_thread_pool): ... new function. Allocate and
5383 initialize thread pool on demand.
5384 (get_last_team): Use gomp_get_thread_pool().
5385 (gomp_team_start): Delete thread pool initialization.
5387 2015-09-03 Tom de Vries <tom@codesourcery.com>
5389 PR tree-optimization/65637
5390 * testsuite/libgomp.c/autopar-2.c: New test.
5392 2015-08-29 Tom de Vries <tom@codesourcery.com>
5394 PR tree-optimization/46193
5395 * testsuite/libgomp.c/pr46193.c: New test.
5397 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
5400 * libgomp.map: Add 4.0.2 version.
5401 * target.c (offload_image_descr): Add version field.
5402 (gomp_load_image_to_device): Add version argument. Adjust plugin
5403 call. Improve load mismatch diagnostic.
5404 (gomp_unload_image_from_device): Add version argument. Adjust plugin
5406 (GOMP_offload_regster): Make stub function, move bulk to ...
5407 (GOMP_offload_register_ver): ... here. Process version argument.
5408 (GOMP_offload_unregister): Make stub function, move bulk to ...
5409 (GOMP_offload_unregister_ver): ... here. Process version argument.
5410 (gomp_init_device): Process version field.
5411 (gomp_unload_device): Process version field.
5412 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5413 macros. Check plugin version.
5414 * libgomp.h (gomp_device_descr): Add version function field. Adjust
5415 loader and unloader types.
5416 * oacc-host.c: Include gomp-constants.h.
5417 (host_version): New.
5418 (host_load_image, host_unload_image): Adjust.
5419 (host_dispatch): Add host_version.
5420 * plugin/plugin-nvptx.c: Include gomp-constants.h.
5421 (GOMP_OFFLOAD_version): New.
5422 (GOMP_OFFLOAD_load_image): Add version arg and check it.
5423 (GOMP_OFFLOAD_unload_image): Likewise.
5424 * plugin/plugin-host.c: Include gomp-constants.h.
5425 (GOMP_OFFLOAD_version): New.
5426 (GOMP_OFFLOAD_load_image): Add version arg.
5427 (GOMP_OFFLOAD_unload_image): Likewise.
5429 2015-08-24 Tom de Vries <tom@codesourcery.com>
5431 PR tree-optimization/65468
5432 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5434 2015-08-24 Tom de Vries <tom@codesourcery.com>
5436 PR tree-optimization/65468
5437 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5439 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
5443 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5444 (gomp_iter_guided_next): Idem.
5445 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5446 (gomp_iter_ull_guided_next): Idem.
5447 * config/linux/wait.h (do_spin): Idem.
5449 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5451 * libgomp-plugin.h (enum offload_target_type): Remove
5452 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5453 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5454 * openacc.h (enum acc_device_t): Likewise.
5455 * openacc_lib.h: Likewise.
5456 * oacc-init.c (name_of_acc_device_t): Don't handle it.
5457 (acc_on_device): Just use __builtin_acc_on_device.
5458 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5459 of acc_on_device builtin.
5460 * plugin/plugin-host.h: Remove file.
5461 * plugin/plugin-host.c: Likewise, but salvage some content into...
5462 * oacc-host.c: ... this file.
5463 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5464 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5465 * Makefile.in: Regenerate.
5466 * configure: Likewise.
5467 * testsuite/lib/libgomp.exp
5468 (check_effective_target_openacc_host_nonshm_selected): Remove.
5469 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5470 ACC_DEVICE_TYPE=host_nonshm.
5471 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5472 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5473 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5474 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5475 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5476 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5478 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5479 Jakub Jelinek <jakub@redhat.com>
5481 * config/nvptx/affinity.c: New file.
5482 * config/nvptx/alloc.c: Likewise.
5483 * config/nvptx/bar.c: Likewise.
5484 * config/nvptx/barrier.c: Likewise.
5485 * config/nvptx/critical.c: Likewise.
5486 * config/nvptx/env.c: Likewise.
5487 * config/nvptx/error.c: Likewise.
5488 * config/nvptx/fortran.c: Likewise.
5489 * config/nvptx/iter.c: Likewise.
5490 * config/nvptx/iter_ull.c: Likewise.
5491 * config/nvptx/libgomp-plugin.c: Likewise.
5492 * config/nvptx/lock.c: Likewise.
5493 * config/nvptx/loop.c: Likewise.
5494 * config/nvptx/loop_ull.c: Likewise.
5495 * config/nvptx/mutex.c: Likewise.
5496 * config/nvptx/oacc-async.c: Likewise.
5497 * config/nvptx/oacc-cuda.c: Likewise.
5498 * config/nvptx/oacc-host.c: Likewise.
5499 * config/nvptx/oacc-init.c: Likewise.
5500 * config/nvptx/oacc-mem.c: Likewise.
5501 * config/nvptx/oacc-parallel.c: Likewise.
5502 * config/nvptx/oacc-plugin.c: Likewise.
5503 * config/nvptx/omp-lock.h: Likewise.
5504 * config/nvptx/ordered.c: Likewise.
5505 * config/nvptx/parallel.c: Likewise.
5506 * config/nvptx/proc.c: Likewise.
5507 * config/nvptx/ptrlock.c: Likewise.
5508 * config/nvptx/sections.c: Likewise.
5509 * config/nvptx/sem.c: Likewise.
5510 * config/nvptx/single.c: Likewise.
5511 * config/nvptx/splay-tree.c: Likewise.
5512 * config/nvptx/target.c: Likewise.
5513 * config/nvptx/task.c: Likewise.
5514 * config/nvptx/team.c: Likewise.
5515 * config/nvptx/time.c: Likewise.
5516 * config/nvptx/work.c: Likewise.
5517 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5518 * configure: Regenerate.
5519 * configure.tgt (config_path): Set to "nvptx" for target
5522 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5524 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5526 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
5528 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5529 (cuda_errlist): Constify.
5530 (errmsg): Move into ...
5531 (cuda_error): ... here. Make smaller.
5532 (_XSTR, _STR): Delete.
5533 (cuda_synames): Delete.
5534 (verify_device_library): Delete.
5535 (nvptx_init): Don't call it.
5537 2015-07-28 Tom de Vries <tom@codesourcery.com>
5539 * testsuite/libgomp.c/uns-outer-4.c: New test.
5541 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5543 * testsuite/libgomp.c/pr66714.c: New test.
5545 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
5548 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5549 (fib_ref): New function.
5550 (fib): Correct corner cases in the recursion.
5551 (main): Replace the non-simd loop with fib_ref call.
5552 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5554 (fibonacci): Lower the parameter N to 30. Correct accordingly check
5555 for the last array element value. Replace the non-simd loop with
5556 fib_ref call. Remove redundant b_ref array. Remove the comparison
5557 of the last array element with according Fibonacci sequence element.
5558 (fib): Correct corner cases in the recursion.
5560 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5562 * target.c (gomp_offload_image_to_device): Rename to ...
5563 (gomp_load_image_to_device): ... here.
5564 (GOMP_offload_register): Adjust call.
5565 (gomp_init_device): Likewise.
5566 (gomp_unload_image_from_device): New. Broken out of ...
5567 (GOMP_offload_unregister): ... here. Call it.
5568 (gomp_unload_device): New.
5569 * libgomp.h (gomp_unload_device): Declare.
5570 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5573 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
5575 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5577 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5579 (goacc_waits): Move !num_waits handling to ...
5580 (GOACC_wait): ... here, the only caller that might have zero waits.
5582 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5583 (struct ptx_image_data): Move earlier, add fns field.
5584 (struct ptx_device): Add images and image_lock fields.
5585 (ptx_images, ptx_image_lock): Delete.
5586 (nvptx_open_device): Initialize images and image_lock fields.
5587 (nvptx_close_device): Destroy image_lock.
5588 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5589 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5592 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5594 * target.c (GOMP_offload_register): Use int for device type arg.
5595 (GOMP_offload_unregister): Likewise.
5597 * target.c (struct_offload_image_descr): Constify host_table.
5598 (gomp_offload_image_to_device): Likewise.
5599 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5601 * libgomp.h (gomp_device_descr): Constify target data arguments.
5602 * target.c (struct offload_image_descr): Constify target_data.
5603 (gomp_offload_image_to_device): Likewise.
5604 (GOMP_offload_register): Likewise.
5605 (GOMP_offload_unrefister): Likewise.
5606 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5607 GOMP_OFFLOAD_unload_image): Constify target data.
5608 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5609 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5611 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5613 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5614 Workaround driver library const error.
5615 (struct nvptx_tdata, nvptx_tdata_t): New.
5616 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5619 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
5621 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5622 of EPS parameter from integer to real.
5623 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5624 type of EPS parameter from integer to real.
5626 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5628 * team.c (get_last_team): New.
5629 (gomp_new_team): Recycle last non-nested team if possible.
5630 (gomp_team_end): Move team work share list free lock destruction
5632 (free_team): ... here.
5634 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
5636 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5637 and ref from int to double. Replaced their comparison with
5638 an inequality of their difference and EPS.
5639 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5640 comparison of pri and a reference number with an inequality of their
5642 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5643 the comparison of sum and sum_ref with an inequality of their
5645 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5646 the comparison of pri and a reference number with an inequality of
5647 their difference and EPS.
5649 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
5651 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5652 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5653 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5654 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5655 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5656 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5657 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5658 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5659 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5660 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5661 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5662 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5663 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5665 (vec_mult): Likewise. Add #pragma omp taskwait.
5666 (main): Adjust caller.
5667 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5668 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5669 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5670 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5671 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5672 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5673 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5674 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5675 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5676 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5677 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5678 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5679 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5680 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5681 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5682 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5683 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5684 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5685 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5686 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5687 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5688 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5689 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5690 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5691 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5692 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5693 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5694 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5695 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5696 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5697 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5698 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5699 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5700 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5701 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5702 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5703 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5704 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5705 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5706 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5707 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5708 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5709 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5710 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5711 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5712 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5713 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5714 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5715 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5716 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5717 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5718 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5719 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5720 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5721 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5722 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5723 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5724 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5725 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5726 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5727 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5728 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5729 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5730 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5731 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5732 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5733 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5734 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5735 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5736 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5737 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5738 (vec_mult): Add !$omp taskwait.
5739 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5740 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5741 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5742 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5743 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5744 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5745 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5746 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5747 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5748 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5749 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5750 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5751 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5752 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5753 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5754 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5755 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5756 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5757 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5758 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5759 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5760 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5761 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5762 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5763 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5764 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5765 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5766 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5767 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5768 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5769 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5770 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5771 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5772 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5773 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5774 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5775 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5776 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5777 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5778 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5779 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5780 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5781 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5782 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5783 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5784 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5785 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5786 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5787 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5788 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5789 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5790 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5791 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5792 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5793 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5794 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5795 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5796 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5797 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5798 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5799 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5800 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5801 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5802 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5803 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
5804 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
5805 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
5807 2015-07-10 Tom de Vries <tom@codesourcery.com>
5809 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
5810 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
5812 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5815 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
5816 in a 64-bit configuration.
5817 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
5818 offloading testing if no such device is available.
5819 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5820 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5822 2015-07-08 Tom de Vries <tom@codesourcery.com>
5824 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
5826 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5828 2015-07-07 Tom de Vries <tom@codesourcery.com>
5830 PR tree-optimization/66642
5831 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
5832 iteration count case.
5833 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
5834 function, factor out of ...
5835 (main): ... here. Test low iteration count case.
5837 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
5839 * libgomp.h (gomp_thread_pool): Comment last_team field.
5841 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
5843 * testsuite/libgomp.c++/pr66702-1.C: Require
5844 vect_simd_clones effective target.
5845 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
5847 2015-06-30 Tom de Vries <tom@codesourcery.com>
5849 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5850 already set. Use DEFAULT_CFLAGS in dg-runtest.
5851 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
5854 2015-06-30 Tom de Vries <tom@codesourcery.com>
5856 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5857 already set. Use DEFAULT_CFLAGS in dg-runtest.
5858 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
5859 * testsuite/libgomp.c++/pr64824.C: Same.
5860 * testsuite/libgomp.c++/pr64868.C: Same.
5861 * testsuite/libgomp.c++/pr66199-1.C: Same.
5862 * testsuite/libgomp.c++/pr66199-2.C: Same.
5863 * testsuite/libgomp.c++/target-2.C: Same.
5864 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
5865 -std=<standard> option.
5866 * testsuite/libgomp.c++/udr-11.C: Same.
5867 * testsuite/libgomp.c++/udr-12.C: Same.
5868 * testsuite/libgomp.c++/udr-13.C: Same.
5869 * testsuite/libgomp.c++/udr-14.C: Same.
5870 * testsuite/libgomp.c++/udr-15.C: Same.
5871 * testsuite/libgomp.c++/udr-16.C: Same.
5872 * testsuite/libgomp.c++/udr-17.C: Same.
5873 * testsuite/libgomp.c++/udr-18.C: Same.
5874 * testsuite/libgomp.c++/udr-19.C: Same.
5875 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
5876 * testsuite/libgomp.c++/simd-1.C: Same.
5877 * testsuite/libgomp.c++/simd-2.C: Same.
5878 * testsuite/libgomp.c++/simd-3.C: Same.
5879 * testsuite/libgomp.c++/simd-4.C: Same.
5880 * testsuite/libgomp.c++/simd-5.C: Same.
5881 * testsuite/libgomp.c++/simd-6.C: Same.
5882 * testsuite/libgomp.c++/simd-7.C: Same.
5883 * testsuite/libgomp.c++/simd-8.C: Same.
5884 * testsuite/libgomp.c++/simd-9.C: Same.
5885 * testsuite/libgomp.c++/simd10.C: Same.
5886 * testsuite/libgomp.c++/simd11.C: Same.
5887 * testsuite/libgomp.c++/simd12.C: Same.
5888 * testsuite/libgomp.c++/simd13.C: Same.
5890 2015-06-30 Jakub Jelinek <jakub@redhat.com>
5893 * testsuite/libgomp.c++/pr66702-1.C: New test.
5894 * testsuite/libgomp.c++/pr66702-2.C: New test.
5896 2015-06-30 Tom de Vries <tom@codesourcery.com>
5898 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
5899 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
5900 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
5901 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
5903 2015-06-30 Tom de Vries <tom@codesourcery.com>
5905 PR tree-optimization/66652
5906 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
5907 using restrict pointers.
5908 (main): Add arguments to calls to f.
5909 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5911 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
5913 * configure.ac: Fix check for header <sys/sysctl.h>.
5914 * configure: Regenerate.
5915 * config.h.in: Likewise.
5917 2015-06-23 Tom de Vries <tom@codesourcery.com>
5919 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
5921 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
5923 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
5925 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
5929 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
5930 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5932 2015-06-15 Tom de Vries <tom@codesourcery.com>
5934 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
5935 dg-additional-options for any remaining options.
5936 * testsuite/libgomp.c/atomic-2.c: Same.
5937 * testsuite/libgomp.c/atomic-4.c: Same.
5938 * testsuite/libgomp.c/atomic-5.c: Same.
5939 * testsuite/libgomp.c/atomic-6.c: Same.
5940 * testsuite/libgomp.c/autopar-1.c: Same.
5941 * testsuite/libgomp.c/copyin-1.c: Same.
5942 * testsuite/libgomp.c/copyin-2.c: Same.
5943 * testsuite/libgomp.c/copyin-3.c: Same.
5944 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
5945 * testsuite/libgomp.c/nestedfn-5.c: Same.
5946 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
5947 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
5948 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
5949 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5950 * testsuite/libgomp.c/pr32362-1.c: Same.
5951 * testsuite/libgomp.c/pr32362-2.c: Same.
5952 * testsuite/libgomp.c/pr32362-3.c: Same.
5953 * testsuite/libgomp.c/pr39591-1.c: Same.
5954 * testsuite/libgomp.c/pr39591-2.c: Same.
5955 * testsuite/libgomp.c/pr39591-3.c: Same.
5956 * testsuite/libgomp.c/pr58392.c: Same.
5957 * testsuite/libgomp.c/pr58756.c: Same.
5958 * testsuite/libgomp.c/simd-1.c: Same.
5959 * testsuite/libgomp.c/simd-10.c: Same.
5960 * testsuite/libgomp.c/simd-11.c: Same.
5961 * testsuite/libgomp.c/simd-12.c: Same.
5962 * testsuite/libgomp.c/simd-13.c: Same.
5963 * testsuite/libgomp.c/simd-14.c: Same.
5964 * testsuite/libgomp.c/simd-15.c: Same.
5965 * testsuite/libgomp.c/simd-2.c: Same.
5966 * testsuite/libgomp.c/simd-3.c: Same.
5967 * testsuite/libgomp.c/simd-4.c: Same.
5968 * testsuite/libgomp.c/simd-5.c: Same.
5969 * testsuite/libgomp.c/simd-6.c: Same.
5970 * testsuite/libgomp.c/simd-7.c: Same.
5971 * testsuite/libgomp.c/simd-8.c: Same.
5972 * testsuite/libgomp.c/simd-9.c: Same.
5974 2015-06-15 Tom de Vries <tom@codesourcery.com>
5976 * testsuite/libgomp.c/pr35625.c: Fix typo.
5978 2015-06-15 Tom de Vries <tom@codesourcery.com>
5980 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
5982 * testsuite/libgomp.c/atomic-3.c: Same.
5983 * testsuite/libgomp.c/debug-1.c: Same.
5984 * testsuite/libgomp.c/nqueens-1.c: Same.
5985 * testsuite/libgomp.c/pr26171.c: Same.
5986 * testsuite/libgomp.c/pr48591.c: Same.
5987 * testsuite/libgomp.c/pr64824.c: Same.
5988 * testsuite/libgomp.c/pr64868.c: Same.
5989 * testsuite/libgomp.c/pr66133.c: Same.
5990 * testsuite/libgomp.c/pr66199-1.c: Same.
5991 * testsuite/libgomp.c/pr66199-2.c: Same.
5992 * testsuite/libgomp.c/target-8.c: Same.
5994 2015-06-15 Tom de Vries <tom@codesourcery.com>
5996 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
5998 * testsuite/libgomp.c/for-1.c: Same.
5999 * testsuite/libgomp.c/for-2.c: Same.
6000 * testsuite/libgomp.c/for-3.c: Same.
6001 * testsuite/libgomp.c/pr35625.c: Same.
6002 * testsuite/libgomp.c/pr39154.c: Same.
6003 * testsuite/libgomp.c/simd-16.c: Same.
6004 * testsuite/libgomp.c/simd-17.c: Same.
6006 2015-06-13 Tom de Vries <tom@codesourcery.com>
6008 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6010 2015-06-13 Tom de Vries <tom@codesourcery.com>
6012 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6013 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6014 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6016 (main): Use N instead of hardcoded constants.
6018 2015-06-05 Tom de Vries <tom@codesourcery.com>
6020 merge from gomp4 branch:
6021 2015-05-28 Tom de Vries <tom@codesourcery.com>
6023 PR tree-optimization/65443
6024 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6025 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6026 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6028 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6030 * testsuite/libgomp.graphite/bounds.c: Adjust for
6031 cleanup-tree-dump removal.
6032 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6033 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6034 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6035 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6036 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6037 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6038 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6039 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6040 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6041 * testsuite/libgomp.graphite/pr41118.c: Likewise.
6043 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
6045 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6046 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6047 (futex_wake) [!__x86_64__]: Ditto.
6049 2015-05-28 Julian Brown <julian@codesourcery.com>
6051 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6052 function comment. Only call gomp_fatal if new argument is true.
6053 (acc_dev_num_out_of_range): New function.
6054 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6055 acc_dev_num_out_of_range as appropriate.
6056 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6057 (acc_get_device_num, acc_set_device_num): Update calls to
6059 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6062 2015-05-28 Julian Brown <julian@codesourcery.com>
6065 * oacc-init.c (plugin/plugin-host.h): Include.
6066 (acc_on_device): Check whether we're in an offloaded region for
6068 plugin. Don't use __builtin_acc_on_device.
6069 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6070 nonshm_exec flag in thread-local data.
6071 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6072 data for host_nonshm plugin.
6073 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6074 for host_nonshm plugin.
6075 * plugin/plugin-host.h: New.
6077 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6079 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6081 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6083 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6085 (FUTEX_PRIVATE_FLAG): Remove L suffix.
6086 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6089 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6091 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
6093 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
6095 * target.c (gomp_map_pointer): New function abstracting out
6096 GOMP_MAP_POINTER handling.
6097 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6100 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6103 * testsuite/libgomp.c/pr66199-1.c: New test.
6104 * testsuite/libgomp.c/pr66199-2.c: New test.
6105 * testsuite/libgomp.c++/pr66199-1.C: New test.
6106 * testsuite/libgomp.c++/pr66199-2.C: New test.
6107 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6108 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6110 2015-05-19 Julian Brown <julian@codesourcery.com>
6112 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6115 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6118 * testsuite/libgomp.c/pr66133.c: New test.
6120 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6122 * Makefile.in: Regenerated with automake-1.11.6.
6123 * aclocal.m4: Likewise.
6124 * config.h.in: Likewise.
6125 * configure: Likewise.
6126 * testsuite/Makefile.in: Likewise.
6128 2015-05-08 Jason Merrill <jason@redhat.com>
6130 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6133 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6135 2015-05-06 Julian Brown <julian@codesourcery.com>
6137 * oacc-init.c (acc_device_lock): Add explanatory comment.
6138 (resolve_device): Add comment about locking requirement.
6139 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6140 gomp_init_device and gomp_fini_device calls.
6141 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6142 (acc_get_device_num, acc_set_device_num): Add locking around
6143 resolve_device and gomp_init_device calls.
6145 2015-05-06 Julian Brown <julian@codesourcery.com>
6147 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6148 goacc_thread_lock on error paths.
6149 * oacc-mem.c (lookup_host): Remove locking from function. Note
6150 locking requirement for caller in function comment.
6151 (lookup_dev): Likewise.
6152 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6153 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6154 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6157 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
6161 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6162 don't expect "0x" prefix for "%p" format specifier, don't expect
6163 "(nil)" for NULL pointer.
6164 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6165 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6166 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6167 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6168 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6169 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6170 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6171 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6172 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6173 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6174 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6175 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6176 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6177 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6178 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6179 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6180 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6181 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6182 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6183 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6184 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6185 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6186 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6187 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6188 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6189 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6190 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6191 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6192 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
6193 accurately specify what we're looking for.
6194 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6195 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6196 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6197 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6198 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6200 2015-04-30 James Norris <jnorris@codesourcery.com>
6203 * testsuite/lib/libgomp.exp
6204 (check_effective_target_openacc_host_selected)
6205 (check_effective_target_openacc_host_nonshm_selected): New
6207 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
6209 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6210 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6211 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6212 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6213 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6214 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6215 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6216 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6217 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6218 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6219 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6220 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6221 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6222 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6223 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6224 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6225 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6226 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6227 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6228 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6229 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6230 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6231 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6232 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6233 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6234 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6235 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6236 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6237 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6238 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6239 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6240 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6241 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6242 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6243 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6244 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6245 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6246 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6247 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6248 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6249 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6250 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6251 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6253 2015-04-08 Julian Brown <julian@codesourcery.com>
6255 * libgomp.h (target_mem_desc: Remove mem_map field.
6256 (acc_dispatch_t): Remove open_device_func, close_device_func,
6257 get_device_num_func, set_device_num_func, target_data members.
6258 Change create_thread_data_func argument to device number instead of
6260 * oacc-async.c (assert.h): Include.
6261 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
6262 (acc_wait_all, acc_wait_all_async): Use current host thread's
6263 active device, not base_dev.
6264 * oacc-cuda.c (acc_get_current_cuda_device)
6265 (acc_get_current_cuda_context, acc_get_cuda_stream)
6266 (acc_set_cuda_stream): Likewise.
6267 * oacc-host.c (host_dispatch): Don't set open_device_func,
6268 close_device_func, get_device_num_func or set_device_num_func.
6269 * oacc-init.c (base_dev, init_key): Remove.
6270 (cached_base_dev): New.
6271 (name_of_acc_device_t): New.
6272 (acc_init_1): Initialise default-numbered device, not zeroth.
6273 (acc_shutdown_1): Close all devices of a given type.
6274 (goacc_destroy_thread): Don't use base_dev.
6275 (lazy_open, lazy_init, lazy_init_and_open): Remove.
6276 (goacc_attach_host_thread_to_device): New.
6277 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
6278 (acc_get_num_devices): Don't use base_dev.
6279 (acc_set_device_type): Reimplement.
6280 (acc_get_device_type): Don't use base_dev.
6281 (acc_get_device_num): Tweak logic.
6282 (acc_set_device_num): Likewise.
6283 (acc_on_device): Use acc_get_device_type.
6284 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
6285 (goacc_lazy_initialize): Reimplement with acc_init and
6286 goacc_attach_host_thread_to_device.
6287 * oacc-int.h (goacc_thread): Add base_dev field.
6288 (base_dev): Remove extern declaration.
6289 (goacc_attach_host_thread_to_device): Add prototype.
6290 * oacc-mem.c (acc_malloc): Use current thread's device instead of
6292 (acc_free): Likewise.
6293 (acc_memcpy_to_device): Likewise.
6294 (acc_memcpy_from_device): Likewise.
6295 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
6296 goacc_lazy_initialize (throughout).
6297 (GOACC_parallel): Use tgt_offset to locate target functions.
6298 * target.c (gomp_map_vars): Don't set tgt->mem_map.
6299 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
6300 (gomp_load_plugin_for_device): Remove open_device, close_device,
6301 get_device_num, set_device_num openacc hook initialisation. Don't set
6302 openacc.target_data.
6303 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6304 (GOMP_OFFLOAD_openacc_close_device)
6305 (GOMP_OFFLOAD_openacc_get_device_num)
6306 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6307 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6309 * plugin/plugin-nvptx.c (ptx_inited): Remove.
6310 (instantiated_devices, ptx_dev_lock): New.
6311 (struct ptx_image_data): New.
6312 (ptx_devices, ptx_images, ptx_image_lock): New.
6313 (fini_streams_for_device): Reorder cuStreamDestroy call.
6314 (nvptx_get_num_devices): Remove forward declaration.
6315 (nvptx_init): Change return type to bool.
6316 (nvptx_fini): Remove.
6317 (nvptx_attach_host_thread_to_device): New.
6318 (nvptx_open_device): Return struct ptx_device* instead of void*.
6319 (nvptx_close_device): Change argument type to struct ptx_device*,
6320 return type to void.
6321 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6322 (kernel_target_data, kernel_host_table): Remove static globals.
6323 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6324 (GOMP_OFFLOAD_init_device): Reimplement.
6325 (GOMP_OFFLOAD_fini_device): Likewise.
6326 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6327 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6328 (GOMP_OFFLOAD_host2dev): Use ORD argument.
6329 (GOMP_OFFLOAD_openacc_open_device)
6330 (GOMP_OFFLOAD_openacc_close_device)
6331 (GOMP_OFFLOAD_openacc_set_device_num)
6332 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6333 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6337 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6339 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
6341 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6342 * libgomp.h (struct gomp_memory_mapping): Remove.
6343 (struct target_mem_desc): Change type of mem_map from
6344 gomp_memory_mapping * to splay_tree_s *.
6345 (struct gomp_device_descr): Remove register_image_func, get_table_func.
6346 Add load_image_func, unload_image_func.
6347 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6348 Remove offload_regions_registered.
6349 (gomp_init_tables): Remove.
6350 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6352 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6353 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6354 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6355 offload_regions_registered.
6356 Initialize load_image_func, unload_image_func, mem_map.root.
6357 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6358 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6359 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6360 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6361 gomp_memory_mapping *. Use dev's lock and splay_tree.
6362 (lookup_dev): Use dev's lock.
6363 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6364 (acc_is_present): Likewise.
6365 (acc_map_data): Likewise.
6366 (acc_unmap_data): Likewise. Use dev's lock.
6367 (present_create_copy): Likewise.
6368 (delete_copyout): Pass dev to lookup_host instead of mem_map.
6369 (update_dev_host): Likewise.
6370 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
6371 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6372 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6373 (GOMP_OFFLOAD_get_table): Remove
6374 (GOMP_OFFLOAD_load_image): New function.
6375 (GOMP_OFFLOAD_unload_image): New function.
6376 * target.c (register_lock): New mutex for offload image registration.
6377 (num_devices): Do not guard with PLUGIN_SUPPORT.
6378 (gomp_realloc_unlock): New static function.
6379 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
6381 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6382 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
6383 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6385 (gomp_unmap_vars): Likewise.
6386 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
6387 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
6388 (gomp_offload_image_to_device): New static function.
6389 (GOMP_offload_register): Add mutex lock.
6390 Call gomp_offload_image_to_device for all initialized devices.
6391 Replace gomp_realloc with gomp_realloc_unlock.
6392 (GOMP_offload_unregister): New function.
6393 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
6394 get_table_func from the plugin with calls to init_device_func and
6395 gomp_offload_image_to_device.
6396 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6398 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
6399 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
6400 (GOMP_target_data): Do not call gomp_init_tables.
6401 (GOMP_target_update): Likewise. Remove argument from gomp_update.
6402 (gomp_load_plugin_for_device): Replace register_image and get_table
6403 with load_image and unload_image in DLSYM ().
6404 (gomp_register_images_for_device): Remove function.
6405 (gomp_target_init): Do not initialize current_device.mem_map.*,
6406 current_device.offload_regions_registered.
6407 Remove call to gomp_register_images_for_device.
6408 Do not free offload_images and num_offload_images.
6410 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6413 * testsuite/libgomp.fortran/pr65597.f90: New test.
6415 2015-03-27 Tom de Vries <tom@codesourcery.com>
6418 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6419 (init, check): New function.
6420 (foo): Change return type to void.
6421 (main): Call init and check.
6423 2015-03-27 Tom de Vries <tom@codesourcery.com>
6426 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6427 (foo): Use M for non-inner loops to scale down test-case.
6429 2015-03-25 Kai Tietz <ktietz@redhat.com>
6432 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6433 (GOACC_data_start): Likewise.
6434 * target.c (gomp_map_vars): Likewise.
6436 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
6438 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6441 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6443 * testsuite/libgomp.c/target-10.c: New test.
6444 * testsuite/libgomp.c++/target-4.C: New test.
6446 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6448 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6449 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6451 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
6453 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6454 * configure.ac (*-*-rtems*): Assume Pthread is supported.
6455 (pthread.h): Check for this header file.
6456 * configure: Regenerate.
6458 2015-02-25 Tom de Vries <tom@codesourcery.com>
6460 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6461 (check_reduction_op, check_reduction_macro, max, min):
6463 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6465 (main): Use new functions.
6467 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
6469 * target.c (gomp_load_plugin_for_device): Use const char * instead of
6470 char * for variables holding dlerror return values.
6473 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6475 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6477 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6478 Cesar Philippidis <cesar@codesourcery.com>
6480 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6481 GOACC_ctaid, and GOACC_nctaid routines.
6483 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6486 * testsuite/libgomp.c/atomic-18.c: New test.
6487 * testsuite/libgomp.c++/atomic-16.C: New test.
6489 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6493 * testsuite/libgomp.c/pr64824.c: New test.
6494 * testsuite/libgomp.c/pr64868.c: New test.
6495 * testsuite/libgomp.c++/pr64824.C: New test.
6496 * testsuite/libgomp.c++/pr64868.C: New test.
6498 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6501 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6502 Link with -lpthread.
6503 * config/aix/plugin-suffix.h: Delete.
6505 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
6508 * configure.tgt (*-*-aix*): Use config_path "aix posix".
6509 (*-*-darwin*): Use config_path "bsd darwin posix".
6510 (*-*-hpux*): Use config_path "hpux posix".
6511 * target.c: Add include of plugin-suffix.h and use
6512 SONAME_SUFFIX macro.
6513 * config/aix/plugin-suffix.h: New file.
6514 * config/darwin/plugin-suffix.h: New file.
6515 * config/hpux/plugin-suffix.h: New file.
6516 * config/posix/plugin-suffix.h: New file.
6518 2015-01-23 Jakub Jelinek <jakub@redhat.com>
6521 * libgomp.c/pr64734.c: New test.
6523 2015-01-23 Tom de Vries <tom@codesourcery.com>
6526 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6528 2015-01-23 Tom de Vries <tom@codesourcery.com>
6531 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6534 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
6537 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6538 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6539 formal parameter. Update all users.
6540 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6541 Document unused formal parameter.
6543 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
6545 * oacc-parallel.c: Don't include <alloca.h>.
6546 (GOACC_parallel): Use gomp_alloca instead of alloca.
6548 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
6550 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6552 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6553 James Norris <jnorris@codesourcery.com>
6554 Tom de Vries <tom@codesourcery.com>
6555 Julian Brown <julian@codesourcery.com>
6556 Cesar Philippidis <cesar@codesourcery.com>
6557 Nathan Sidwell <nathan@codesourcery.com>
6558 Tobias Burnus <burnus@net-b.de>
6560 * Makefile.am (search_path): Add $(top_srcdir)/../include.
6561 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6562 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6563 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6564 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6565 Include $(top_srcdir)/plugin/Makefrag.am.
6566 (nodist_libsubinclude_HEADERS): Add openacc.h.
6567 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6568 openacc.f90, openacc.mod, openacc_kinds.mod.
6569 (omp_lib.mod): Generalize into...
6570 (%.mod): ... this new rule.
6571 (openacc_kinds.mod, openacc.mod): New rules.
6572 * plugin/configfrag.ac: New file.
6573 * configure.ac: Move plugin/offloading support into it. Include
6574 it. Instantiate testsuite/libgomp-test-support.pt.exp.
6575 * plugin/Makefrag.am: New file.
6576 * testsuite/Makefile.am (OFFLOAD_TARGETS)
6577 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6579 (libgomp-test-support.exp): New rule.
6580 (all-local): Depend on it.
6581 * Makefile.in: Regenerate.
6582 * testsuite/Makefile.in: Regenerate.
6583 * config.h.in: Likewise.
6584 * configure: Likewise.
6585 * configure.tgt: Harden shell syntax.
6586 * env.c: Include "oacc-int.h".
6587 (parse_acc_device_type): New function.
6588 (gomp_debug_var, goacc_device_type, goacc_device_num): New
6590 (initialize_env): Initialize those. Call
6591 goacc_runtime_initialize.
6592 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6593 (gomp_fatal): Call gomp_vfatal.
6594 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6595 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6596 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6597 (splay_tree_node, splay_tree, splay_tree_key)
6598 (struct target_mem_desc, struct splay_tree_key_s)
6599 (struct gomp_memory_mapping, struct acc_dispatch_t)
6600 (struct gomp_device_descr, gomp_acc_insert_pointer)
6601 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6602 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6603 (gomp_free_memmap, gomp_fini_device): New declarations.
6604 (gomp_vdebug, gomp_debug): New macros.
6605 Include "splay-tree.h".
6606 * libgomp.map (OACC_2.0): New symbol version. Use for
6607 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6608 acc_set_device_type_h_, acc_get_device_type,
6609 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6610 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6611 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6612 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6613 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6614 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6615 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6616 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6617 acc_copyin_array_h_, acc_present_or_copyin,
6618 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6619 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6620 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6621 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6622 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6623 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6624 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6625 acc_update_device, acc_update_device_32_h_,
6626 acc_update_device_64_h_, acc_update_device_array_h_,
6627 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6628 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6629 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6630 acc_is_present_64_h_, acc_is_present_array_h_,
6631 acc_memcpy_to_device, acc_memcpy_from_device,
6632 acc_get_current_cuda_device, acc_get_current_cuda_context,
6633 acc_get_cuda_stream, acc_set_cuda_stream.
6634 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
6635 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6636 GOACC_update, GOACC_wait, GOACC_get_thread_num,
6637 GOACC_get_num_threads.
6638 (GOMP_PLUGIN_1.0): New symbol version. Use for
6639 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6640 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6641 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6642 GOMP_PLUGIN_acc_thread.
6643 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6644 environment variable.
6645 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6646 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6647 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6648 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6649 (splay_tree_remove): New declarations.
6650 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6651 (splay_tree_remove, splay_tree_lookup): Move into...
6652 * splay-tree.c: ... this new file.
6653 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6654 (splay_tree_node, splay_tree, splay_tree_key)
6655 (struct target_mem_desc, struct splay_tree_key_s)
6656 (struct gomp_device_descr): Don't declare.
6657 (num_devices_openmp): New variable.
6658 (gomp_get_num_devices ): Use it.
6659 (gomp_init_targets_once): New function.
6660 (gomp_get_num_devices ): Use it.
6661 (get_kind, gomp_copy_from_async, gomp_free_memmap)
6662 (gomp_fini_device, gomp_register_image_for_device): New functions.
6663 (gomp_map_vars): Add devaddrs parameter.
6664 (gomp_update): Add mm parameter.
6665 (gomp_init_device): Move most of it into...
6666 (gomp_init_tables): ... this new function.
6667 (gomp_register_images_for_device): Remove function.
6668 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6669 Make them hidden instead of static.
6670 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6671 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6672 (GOMP_target_end_data, GOMP_target_update)
6673 (gomp_load_plugin_for_device, gomp_target_init): Update for
6675 * oacc-async.c: New file.
6676 * oacc-cuda.c: Likewise.
6677 * oacc-host.c: Likewise.
6678 * oacc-init.c: Likewise.
6679 * oacc-int.h: Likewise.
6680 * oacc-mem.c: Likewise.
6681 * oacc-parallel.c: Likewise.
6682 * oacc-plugin.c: Likewise.
6683 * oacc-plugin.h: Likewise.
6684 * oacc-ptx.h: Likewise.
6685 * openacc.f90: Likewise.
6686 * openacc.h: Likewise.
6687 * openacc_lib.h: Likewise.
6688 * plugin/plugin-host.c: Likewise.
6689 * plugin/plugin-nvptx.c: Likewise.
6690 * libgomp-plugin.c: Likewise.
6691 * libgomp-plugin.h: Likewise.
6692 * libgomp_target.h: Remove file after merging content into the
6693 former file. Update all users.
6694 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6695 (offload_targets_s, offload_targets_s_openacc): New variables.
6696 (check_effective_target_openacc_nvidia_accel_present)
6697 (check_effective_target_openacc_nvidia_accel_selected): New
6699 (libgomp_init): Update for OpenACC changes.
6700 * testsuite/libgomp-test-support.exp.in: New file.
6701 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6702 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6703 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6704 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6705 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6706 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6707 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6708 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6709 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6710 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6711 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6712 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6713 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6714 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6715 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6716 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6717 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6718 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6719 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6720 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6721 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6722 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6723 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6724 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6725 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6726 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6727 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6728 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6729 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6730 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6731 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6732 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6733 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6734 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6735 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6736 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6737 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6738 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6739 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6740 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6741 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6742 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6743 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6744 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6745 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6746 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6747 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6748 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6749 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6750 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6751 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6752 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6753 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6754 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6755 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6756 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6757 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6758 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6759 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6760 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6761 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6762 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6763 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6764 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6765 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6766 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6767 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6768 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6769 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6770 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6771 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6772 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6773 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6774 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6775 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6776 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6777 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6778 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6779 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6780 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6781 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6782 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6783 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6784 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6785 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6786 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6787 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6788 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6789 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6790 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6791 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6792 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6793 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6794 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6795 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6796 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6797 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6798 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6799 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6800 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6801 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6802 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6803 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6804 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6805 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6806 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6807 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6808 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6809 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6810 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6811 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6812 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6813 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6814 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6815 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6816 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6817 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6818 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6819 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
6820 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
6821 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
6822 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
6823 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6824 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6825 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6826 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
6827 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6828 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
6829 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
6830 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
6831 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
6832 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
6833 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6834 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
6835 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6836 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6837 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6838 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6839 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6840 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
6842 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
6843 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
6844 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
6845 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6846 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
6847 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6848 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6849 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6850 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6851 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6852 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6853 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6854 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6855 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6856 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6857 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6858 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6859 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6860 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6861 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6862 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
6863 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6864 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6865 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
6866 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6867 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
6868 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6869 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6870 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6871 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6872 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6873 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6874 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6875 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6876 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
6877 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6878 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
6879 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
6880 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
6881 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6882 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
6883 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6884 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6885 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
6886 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
6887 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6888 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
6889 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
6890 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6891 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6892 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6893 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6894 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6895 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6896 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
6897 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
6898 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
6899 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
6900 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
6901 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
6903 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
6904 Julian Brown <julian@codesourcery.com>
6905 David Malcolm <dmalcolm@redhat.com>
6907 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
6908 to "GNU Offloading and Multi Processing Runtime Library". Change
6910 * configure: Regenerate.
6911 * libgomp.texi: Update.
6913 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
6915 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
6917 * configure: Regenerate.
6919 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
6920 "intelmic" in $offload_targets.
6922 2015-01-05 Jakub Jelinek <jakub@redhat.com>
6924 Update copyright years.
6926 * libgomp.texi: Bump @copying's copyright year.
6928 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6930 * testsuite/lib/libgomp.exp: Load target-utils.exp.
6931 Move load of target-supportes.exp earlier.
6933 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
6935 * testsuite/libgomp.c/target-9.c: New test.
6937 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
6939 * config.h.in: Regenerate.
6940 * configure: Regenerate.
6941 * configure.ac: Add GCC_CHECK_EMUTLS.
6942 * libgomp.h: Add check for USE_EMUTLS: this case
6943 is equal to HAVE_TLS.
6946 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
6948 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
6950 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
6951 Ilya Verbin <ilya.verbin@intel.com>
6953 * testsuite/libgomp.c/target-critical-1.c: New test.
6955 2014-11-26 Jakub Jelinek <jakub@redhat.com>
6957 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
6958 to dg-options unless expensive testing is on.
6959 (TESTITERS): Define to N if not defined.
6960 (main): Use TESTITERS instead of N.
6961 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
6962 dg-additional-options depending on whether expensive testing is on.
6963 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
6964 Decrease N to 100000 and CHUNKSZ to 10000.
6966 2014-11-24 Jakub Jelinek <jakub@redhat.com>
6969 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
6970 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
6972 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
6974 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
6976 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
6979 * configure: Regenerated.
6981 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
6983 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
6984 vect_simd_clones effective target.
6985 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
6987 2014-11-14 Jakub Jelinek <jakub@redhat.com>
6989 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
6990 of 32 as block_size.
6991 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
6992 instead of 32 as block_size.
6994 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
6995 Ilya Verbin <ilya.verbin@intel.com>
6997 * Makefile.in: Regenerate.
6998 * configure: Regenerate.
6999 * configure.ac: Set up offload_additional_options,
7000 offload_additional_lib_paths and offload_targets.
7001 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7002 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7003 * testsuite/Makefile.in: Regenerate.
7004 * testsuite/lib/libgomp.exp (libgomp_init): Append
7005 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
7006 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
7007 build directory to LD_LIBRARY_PATH for intelmic offload targets.
7009 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7010 Ilya Verbin <ilya.verbin@intel.com>
7011 Kirill Yukhin <kirill.yukhin@intel.com>
7012 Ilya Tocar <ilya.tocar@intel.com>
7014 * testsuite/lib/libgomp.exp
7015 (check_effective_target_offload_device): New.
7016 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7017 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7018 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7019 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7020 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7021 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7022 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7023 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7024 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7025 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7026 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7027 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7028 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7029 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7030 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7031 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7032 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7033 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7034 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7035 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7036 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7037 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7038 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7039 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7040 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7041 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7042 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7043 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7044 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7045 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7046 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7047 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7048 * testsuite/libgomp.c/target-7.c: Fix test.
7049 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7050 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7051 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7052 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7053 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7054 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7055 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7056 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7057 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7058 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7059 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7060 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7061 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7062 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7063 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7064 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7065 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7066 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7067 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7068 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7069 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7070 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7071 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7072 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7073 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7074 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7075 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7076 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7077 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7078 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7079 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7081 2014-11-13 Jakub Jelinek <jakub@redhat.com>
7082 Ilya Verbin <ilya.verbin@intel.com>
7083 Thomas Schwinge <thomas@codesourcery.com>
7084 Andrey Turetskiy <andrey.turetskiy@intel.com>
7086 * libgomp.map (GOMP_4.0.1): New symbol version.
7087 Add GOMP_offload_register.
7088 * libgomp_target.h: New file.
7089 * splay-tree.h: New file.
7090 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7091 (gomp_target_init): New forward declaration.
7092 (gomp_is_initialized): New static variable.
7093 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7094 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7096 (offload_images, num_offload_images, devices, num_devices): New static
7098 (splay_compare): New static function.
7099 (struct gomp_device_descr): New structure.
7100 (gomp_get_num_devices): Call gomp_target_init.
7101 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7102 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7103 (GOMP_offload_register): New function.
7104 (GOMP_target): Arrange for host callback to be performed in a separate
7105 initial thread and contention group, inheriting ICVs from
7106 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
7107 Add device initialization and lookup for target function in splay tree.
7108 (GOMP_target_data): Add device initialization and call gomp_map_vars.
7109 (GOMP_target_end_data): Call gomp_unmap_vars.
7110 (GOMP_target_update): Add device initialization and call gomp_update.
7111 (gomp_load_plugin_for_device, gomp_register_images_for_device)
7112 (gomp_target_init): New static functions.
7114 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7115 Thomas Schwinge <thomas@codesourcery.com>
7116 Ilya Verbin <ilya.verbin@intel.com>
7117 Andrey Turetskiy <andrey.turetskiy@intel.com>
7119 * config.h.in: Regenerate.
7120 * configure: Regenerate.
7121 * configure.ac: Check for libdl, required for plugin support.
7122 (PLUGIN_SUPPORT): Define if plugins are supported.
7123 (enable_offload_targets): Support Intel MIC targets.
7124 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7126 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7129 * configure: Regenerate.
7131 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7133 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7135 2014-10-06 Marek Polacek <polacek@redhat.com>
7137 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7138 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7139 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7140 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7142 2014-10-06 Marek Polacek <polacek@redhat.com>
7144 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7145 * testsuite/libgomp.c/nqueens-1.c: Likewise.
7146 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7147 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7148 * testsuite/libgomp.c/pr36802-2.c: Likewise.
7149 * testsuite/libgomp.c/pr36802-3.c: Likewise.
7150 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7151 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7152 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7153 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7154 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7155 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7156 * testsuite/libgomp.c/omp-single-1.c: Likewise.
7157 * testsuite/libgomp.c/omp-single-2.c: Likewise.
7158 * testsuite/libgomp.c/omp_matvec.c: Likewise.
7159 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7160 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7161 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
7164 2014-10-03 Jakub Jelinek <jakub@redhat.com>
7167 * testsuite/libgomp.c/pr61200.c: New test.
7169 2014-09-18 Jakub Jelinek <jakub@redhat.com>
7172 * testsuite/libgomp.c++/pr63248.C: New test.
7174 2014-08-04 Jakub Jelinek <jakub@redhat.com>
7176 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
7177 is not zero, but taskgroup->children is NULL and there are
7178 any task->children, schedule those instead of waiting.
7179 * testsuite/libgomp.c/depend-6.c: New test.
7180 * testsuite/libgomp.c/depend-7.c: New test.
7181 * testsuite/libgomp.c/depend-8.c: New test.
7182 * testsuite/libgomp.c/depend-9.c: New test.
7183 * testsuite/libgomp.c/depend-10.c: New test.
7185 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7187 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
7188 (struct gomp_taskwait): New type.
7189 (struct gomp_task): Add taskwait and parent_depends_on, remove
7190 in_taskwait and taskwait_sem fields.
7191 (gomp_finish_task): Don't destroy taskwait_sem.
7192 * task.c (gomp_init_task): Don't init in_taskwait, instead init
7193 taskwait and parent_depends_on.
7194 (GOMP_task): For if (0) tasks with depend clause that depend on
7195 earlier tasks don't defer them, instead call
7196 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
7197 Initialize redundant_out field, for redundant out entries just
7198 move them at the end of linked list instead of removing them
7199 completely, and set redundant_out flag instead of redundant.
7200 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
7202 (gomp_task_run_post_handle_dependers): If parent is in
7203 gomp_task_maybe_wait_for_dependencies and newly runnable task
7204 is not parent_depends_on, queue it in parent->children linked
7205 list after all runnable tasks with parent_depends_on set.
7206 Adjust for addition of taskwait indirection.
7207 (gomp_task_run_post_remove_parent): If parent is in
7208 gomp_task_maybe_wait_for_dependencies and task to be removed
7209 is parent_depends_on, decrement n_depend and if needed awake
7210 parent. Adjust for addition of taskwait indirection.
7211 (GOMP_taskwait): Adjust for addition of taskwait indirection.
7212 (gomp_task_maybe_wait_for_dependencies): New function.
7213 * testsuite/libgomp.c/depend-5.c: New test.
7215 2014-07-13 Tobias Burnus <burnus@net-b.de>
7217 * testsuite/libgomp.fortran/pr34020.f90: Make compile
7218 with TS 18508/Fortran 2015.
7220 2014-07-06 Marek Polacek <polacek@redhat.com>
7223 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
7225 2014-07-03 Jakub Jelinek <jakub@redhat.com>
7227 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
7228 matches regex $lang_source_re, add $lang_include_flags to options.
7229 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
7230 * testsuite/libgomp.c++/c++.exp: Likewise.
7231 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
7232 and lang_include_flags instead of adding -fintrinsic-modules-path= to
7234 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
7236 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
7238 * testsuite/libgomp.fortran/fortran.exp: Explain
7239 gfortran-dg-runtest usage.
7241 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7243 * testsuite/libgomp.fortran/simd5.f90: New test.
7244 * testsuite/libgomp.fortran/simd6.f90: New test.
7245 * testsuite/libgomp.fortran/simd7.f90: New test.
7247 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7249 * testsuite/libgomp.c/for-2.c: Define SC to static for
7250 #pragma omp for simd testing.
7251 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
7252 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
7254 * testsuite/libgomp.c/simd-14.c: New test.
7255 * testsuite/libgomp.c/simd-15.c: New test.
7256 * testsuite/libgomp.c/simd-16.c: New test.
7257 * testsuite/libgomp.c/simd-17.c: New test.
7258 * testsuite/libgomp.c++/for-10.C: Define SC to static for
7259 #pragma omp for simd testing.
7260 * testsuite/libgomp.c++/simd10.C: New test.
7261 * testsuite/libgomp.c++/simd11.C: New test.
7262 * testsuite/libgomp.c++/simd12.C: New test.
7263 * testsuite/libgomp.c++/simd13.C: New test.
7265 * testsuite/libgomp.fortran/aligned1.f03: New test.
7266 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
7267 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
7268 tasks with !$omp parallel !$omp single.
7269 * testsuite/libgomp.fortran/target8.f90: New test.
7270 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
7271 not to use trim in the combiner, instead call elemental function.
7272 (fn): New elemental function.
7273 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
7275 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
7277 * testsuite/libgomp.fortran/udr12.f90: New test.
7278 * testsuite/libgomp.fortran/udr13.f90: New test.
7279 * testsuite/libgomp.fortran/udr14.f90: New test.
7280 * testsuite/libgomp.fortran/udr15.f90: New test.
7282 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7284 * omp_lib.f90.in (openmp_version): Set to 201307.
7285 * omp_lib.h.in (openmp_version): Likewise.
7286 * testsuite/libgomp.c/target-8.c: New test.
7287 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
7288 and inbranch clauses.
7289 * testsuite/libgomp.fortran/depend-3.f90: New test.
7290 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
7292 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7293 * testsuite/libgomp.fortran/target1.f90: New test.
7294 * testsuite/libgomp.fortran/target2.f90: New test.
7295 * testsuite/libgomp.fortran/target3.f90: New test.
7296 * testsuite/libgomp.fortran/target4.f90: New test.
7297 * testsuite/libgomp.fortran/target5.f90: New test.
7298 * testsuite/libgomp.fortran/target6.f90: New test.
7299 * testsuite/libgomp.fortran/target7.f90: New test.
7301 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7304 * testsuite/libgomp.fortran/allocatable9.f90: New test.
7305 * testsuite/libgomp.fortran/allocatable10.f90: New test.
7306 * testsuite/libgomp.fortran/allocatable11.f90: New test.
7307 * testsuite/libgomp.fortran/allocatable12.f90: New test.
7308 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7309 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7310 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7311 * testsuite/libgomp.fortran/associate1.f90: New test.
7312 * testsuite/libgomp.fortran/associate2.f90: New test.
7313 * testsuite/libgomp.fortran/procptr1.f90: New test.
7315 2014-06-06 Jakub Jelinek <jakub@redhat.com>
7317 * testsuite/libgomp.fortran/simd1.f90: New test.
7318 * testsuite/libgomp.fortran/udr1.f90: New test.
7319 * testsuite/libgomp.fortran/udr2.f90: New test.
7320 * testsuite/libgomp.fortran/udr3.f90: New test.
7321 * testsuite/libgomp.fortran/udr4.f90: New test.
7322 * testsuite/libgomp.fortran/udr5.f90: New test.
7323 * testsuite/libgomp.fortran/udr6.f90: New test.
7324 * testsuite/libgomp.fortran/udr7.f90: New test.
7325 * testsuite/libgomp.fortran/udr8.f90: New test.
7326 * testsuite/libgomp.fortran/udr9.f90: New test.
7327 * testsuite/libgomp.fortran/udr10.f90: New test.
7328 * testsuite/libgomp.fortran/udr11.f90: New test.
7330 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
7332 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7333 vect_simd_clones effective target.
7334 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7336 2014-05-21 Jakub Jelinek <jakub@redhat.com>
7339 * testsuite/libgomp.c++/simd-9.C: New test.
7341 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
7343 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7344 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7345 texts according to their @menu entry positions.
7347 2014-05-11 Jakub Jelinek <jakub@redhat.com>
7349 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7350 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7351 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7352 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7353 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7354 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7355 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7356 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7357 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7358 * testsuite/libgomp.fortran/depend-1.f90: New test.
7359 * testsuite/libgomp.fortran/depend-2.f90: New test.
7360 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7361 * testsuite/libgomp.fortran/simd1.f90: New test.
7362 * testsuite/libgomp.fortran/simd2.f90: New test.
7363 * testsuite/libgomp.fortran/simd3.f90: New test.
7364 * testsuite/libgomp.fortran/simd4.f90: New test.
7365 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7367 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7369 * testsuite/libgomp.c/simd-10.c: New test.
7370 * testsuite/libgomp.c/simd-11.c: New test.
7371 * testsuite/libgomp.c/simd-12.c: New test.
7372 * testsuite/libgomp.c/simd-13.c: New test.
7374 2014-04-24 Jakub Jelinek <jakub@redhat.com>
7376 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7377 atomic type clauses in any order and optional comma in between.
7378 * testsuite/libgomp.c++/atomic-15.C: Likewise.
7379 * testsuite/libgomp.c/atomic-17.c: Likewise.
7381 * testsuite/libgomp.c/simd-7.c: New test.
7382 * testsuite/libgomp.c/simd-8.c: New test.
7383 * testsuite/libgomp.c/simd-9.c: New test.
7384 * testsuite/libgomp.c/loop-16.c: New test.
7386 2014-04-02 Richard Henderson <rth@redhat.com>
7388 * config/linux/futex.h (futex_wait): Get error value from errno.
7389 (futex_wake): Likewise.
7391 2014-03-25 Jakub Jelinek <jakub@redhat.com>
7394 * testsuite/libgomp.c++/udr-11.C: New test.
7395 * testsuite/libgomp.c++/udr-12.C: New test.
7396 * testsuite/libgomp.c++/udr-13.C: New test.
7397 * testsuite/libgomp.c++/udr-14.C: New test.
7398 * testsuite/libgomp.c++/udr-15.C: New test.
7399 * testsuite/libgomp.c++/udr-16.C: New test.
7400 * testsuite/libgomp.c++/udr-17.C: New test.
7401 * testsuite/libgomp.c++/udr-18.C: New test.
7402 * testsuite/libgomp.c++/udr-19.C: New test.
7404 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7406 Update copyright years
7408 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7410 * hashtab.h: Use the standard form for the copyright notice.
7412 2014-01-02 Tobias Burnus <burnus@net-b.de>
7414 * libgomp.texi: Bump @copying's copyright year.
7416 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7418 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7419 alloca () with __builtin_alloca ().
7420 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7421 * testsuite/libgomp.c/lock-3.c: Likewise.
7422 * testsuite/libgomp.c/pr48591.c: Likewise.
7424 2013-12-17 Jakub Jelinek <jakub@redhat.com>
7427 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7430 2013-12-16 Jakub Jelinek <jakub@redhat.com>
7433 * testsuite/libgomp.c/pr58756.c: New test.
7435 2013-12-12 Jakub Jelinek <jakub@redhat.com>
7438 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7441 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7443 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7445 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7446 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7447 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7448 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7451 * libgomp_g.h: Include <stddef.h> for size_t.
7453 * libgomp.spec.in: Update comment about libgomp's dependencies.
7454 * configure.ac: Likewise.
7455 * configure: Regenerate.
7457 2013-10-16 Tobias Burnus <burnus@net-b.de>
7459 * libgomp.texi: (Runtime Library Routines): Update references for
7460 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7461 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7462 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7463 (Environment Variables): Update references for OpenMP 4.0. Add
7464 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7465 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7468 2013-10-14 Jakub Jelinek <jakub@redhat.com>
7470 * env.c (parse_bind_var): Initialize value to avoid
7471 (false positive) warning.
7473 2013-10-12 Jakub Jelinek <jakub@redhat.com>
7476 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7478 (gomp_init_num_threads): Move i variable declaration into
7479 #ifdef CPU_ALLOC_SIZE block.
7480 * config/linux/affinity.c (gomp_affinity_init_level): Test
7481 gomp_places_list_len == 0 rather than gomp_places_list == 0
7482 when checking for topology reading error.
7483 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7484 * env.c (parse_affinity): Add ignore argument, if true, don't populate
7485 gomp_places_list, only parse env var and always return false.
7486 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
7487 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7488 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7489 and either of these variables were parsed correctly into a places
7492 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7493 Jakub Jelinek <jakub@redhat.com>
7495 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7496 of 5 loopfn matches.
7497 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7498 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7499 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7500 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7501 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7502 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7503 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7504 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7506 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7508 * Makefile.am (omp_lib.mod): Streamline rule.
7509 * Makefile.in: Regenerate.
7511 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7514 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7515 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7516 * testsuite/libgomp.fortran/lib2.f: Likewise.
7517 * testsuite/libgomp.fortran/lib3.f: Likewise.
7519 * configure.ac: Typo fix.
7520 * configure: Regenerate.
7522 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7523 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7525 * omp.h.in: Don't touch the user's namespace.
7527 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7528 Tobias Burnus <burnus@net-b.de>
7529 Richard Henderson <rth@redhat.com>
7531 * target.c: New file.
7532 * Makefile.am (libgomp_la_SOURCES): Add target.c.
7533 * Makefile.in: Regenerated.
7534 * libgomp_g.h (GOMP_task): Add depend argument.
7535 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7536 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7537 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7538 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7539 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7540 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7541 GOMP_taskgroup_start, GOMP_taskgroup_end,
7542 GOMP_parallel_sections): New prototypes.
7543 * fortran.c (omp_is_initial_device): Add ialias_redirect.
7544 (omp_is_initial_device_): New function.
7545 (ULP, STR1, STR2, ialias_redirect): Removed.
7546 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7547 omp_set_default_device_8_, omp_get_default_device_,
7548 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7550 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7551 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7552 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7554 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7555 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7556 omp_set_default_device, omp_set_default_device_,
7557 omp_set_default_device_8_, omp_get_default_device,
7558 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7559 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7560 omp_get_team_num_): Export @@OMP_4.0.
7561 * team.c (struct gomp_thread_start_data): Add place field.
7562 (gomp_thread_start): Clear thr->thread_pool and
7563 thr->task before returning. Use gomp_team_barrier_wait_final
7564 instead of gomp_team_barrier_wait. Initialize thr->place.
7565 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7566 team_cancelled and task_queued_count fields.
7567 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7568 before calling pthread_exit.
7569 (gomp_free_thread): No longer static. Use
7570 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7571 (gomp_team_start): Add flags argument. Set
7572 thr->thread_pool->threads_busy to nthreads immediately after creating
7573 new pool. Use gomp_managed_threads_lock instead of
7574 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
7575 (gomp_team_end): Use gomp_managed_threads_lock instead of
7576 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
7577 of gomp_team_barrier_wait. If team->team_cancelled, call
7578 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7579 rather than thr->ts.work_share.
7580 (initialize_team): Don't call gomp_sem_init here.
7581 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7583 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7584 * env.c (gomp_global_icv): Add default_device_var, target_data and
7585 bind_var initializers.
7586 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7587 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7588 gomp_places_list_len): New variables.
7589 (parse_bind_var, parse_one_place, parse_places_var): New functions.
7590 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7592 (gomp_cancel_var): New global variable.
7593 (parse_int): New function.
7594 (handle_omp_display_env): New function.
7595 (initialize_env): Use it. Initialize default_device_var.
7596 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
7597 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
7598 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
7599 been successfully parsed (and call gomp_init_affinity in that case).
7600 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7601 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7602 omp_get_team_num, omp_is_initial_device): New functions.
7603 * libgomp.h: Include stdlib.h.
7604 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7606 (struct target_mem_desc): Forward declare.
7607 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7608 and thread_limit_var fields.
7609 (gomp_get_num_devices): New prototype.
7610 (gomp_cancel_var): New extern decl.
7611 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7612 team_cancelled and task_queued_count fields. Add comments about
7613 task_{,queued_,running_}count.
7614 (gomp_cancel_kind): New enum.
7615 (gomp_work_share_end_cancel): New prototype.
7616 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7617 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7619 (struct gomp_taskgroup): New type.
7620 (struct gomp_task_depend_entry,
7621 struct gomp_dependers_vec): New types.
7622 (gomp_finish_task): Free depend_hash if non-NULL.
7623 (struct gomp_team_state): Add place_partition_off
7624 and place_partition_len fields.
7625 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7626 gomp_places_list_len): New extern decls.
7627 (struct gomp_thread): Add place field.
7628 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7629 (gomp_init_thread_affinity): Add place argument.
7630 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7631 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7632 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7633 gomp_affinity_init_level, gomp_affinity_print_place): New
7635 (gomp_team_start): Add flags argument.
7636 (gomp_thread_limit_var, gomp_remaining_threads_count,
7637 gomp_remaining_threads_lock): Remove.
7638 (gomp_managed_threads_lock): New variable.
7639 (struct gomp_thread_pool): Add threads_busy field.
7640 (gomp_free_thread): New prototype.
7641 * task.c: Include hashtab.h.
7642 (hash_entry_type): New typedef.
7643 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7644 (gomp_init_task): Clear dependers, depend_hash, depend_count,
7645 copy_ctors_done and taskgroup fields.
7646 (GOMP_task): Add depend argument, handle depend clauses. If
7647 gomp_team_barrier_cancelled or if it's taskgroup has been
7648 cancelled, don't queue or start new tasks. Set copy_ctors_done
7649 field if needed. Initialize taskgroup field. If copy_ctors_done
7650 and already cancelled, don't discard the task. If taskgroup is
7651 non-NULL, enqueue the task into taskgroup queue. Increment
7652 num_children field in taskgroup. Increment task_queued_count.
7653 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7654 gomp_task_run_post_remove_taskgroup): New inline functions.
7655 (gomp_task_run_post_handle_depend_hash,
7656 gomp_task_run_post_handle_dependers,
7657 gomp_task_run_post_handle_depend): New functions.
7658 (GOMP_taskwait): Use them. If more than one new tasks
7659 have been queued, wake other threads if needed.
7660 (gomp_barrier_handle_tasks): Likewise. If
7661 gomp_team_barrier_cancelled, don't start any new tasks, just free
7663 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7665 (omp_proc_bind_kind, omp_proc_bind_false,
7666 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7667 omp_proc_bind_spread): New params.
7668 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7669 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7670 omp_get_team_num, omp_is_initial_device): New interfaces.
7671 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7672 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7673 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7674 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7675 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7676 useless use omp_lib_kinds.
7677 * omp.h.in (omp_proc_bind_t): New typedef.
7678 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7679 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7680 omp_get_team_num, omp_is_initial_device): New prototypes.
7681 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7682 through to gomp_team_start.
7683 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7684 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7685 Adjust gomp_parallel_loop_start callers.
7686 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7687 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7688 GOMP_loop_end_cancel): New functions.
7689 (GOMP_parallel_end): Add ialias_redirect.
7690 * hashtab.h: New file.
7691 * libgomp.texi (Environment Variables): Minor cleanup,
7692 update section refs to OpenMP 4.0rc2.
7693 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7694 environment variables.
7695 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7696 team->work_shares_to_free to thr->ts.work_share before calling
7698 (gomp_work_share_end_cancel): New function.
7699 * config/linux/proc.c: Include errno.h.
7700 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7701 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7702 sizeof (cpu_set_t) to determine number of iterations. Fix up check
7703 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
7704 gomp_cpuset_size is sizeof (cpu_set_t).
7705 (gomp_init_num_threads): Initialize gomp_cpuset_size,
7706 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7707 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7708 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
7709 contain any logical CPUs.
7710 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7711 is NULL. Use gomp_cpusetp instead of &cpuset and pass
7712 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7713 pthread_getaffinity_np. Check gomp_places_list instead of
7714 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
7715 * config/linux/bar.c (gomp_barrier_wait_end,
7716 gomp_barrier_wait_last): Use BAR_* defines.
7717 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
7718 from state where needed. Set work_share_cancelled to 0 on last
7720 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7721 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7723 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7724 Add cpusetsize argument.
7725 (gomp_cpuset_size, gomp_cpusetp): Declare.
7726 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7727 (affinity_counter): Remove.
7728 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7729 if CPU_ALLOC_SIZE isn't defined.
7730 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7731 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7732 bind current thread to the first place.
7733 (gomp_init_thread_affinity): Rewritten. Add place argument, just
7734 pthread_setaffinity_np to gomp_places_list[place].
7735 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7736 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7737 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7738 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7739 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7740 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7741 (gomp_barrier_t): Add awaited_final field.
7742 (gomp_barrier_init): Initialize awaited_final field.
7743 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7744 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7746 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7748 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7749 gomp_team_barrier_cancelled): New inline functions.
7750 (gomp_barrier_last_thread,
7751 gomp_team_barrier_set_task_pending,
7752 gomp_team_barrier_clear_task_pending,
7753 gomp_team_barrier_set_waiting_for_tasks,
7754 gomp_team_barrier_waiting_for_tasks,
7755 gomp_team_barrier_done): Use BAR_* defines.
7756 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7757 (gomp_barrier_wait_end): Use BAR_* defines.
7758 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7759 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7761 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7762 gomp_team_barrier_cancel): New functions.
7763 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7765 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7766 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7767 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7768 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7769 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7770 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7771 (gomp_barrier_t): Add cancellable field.
7772 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7773 gomp_team_barrier_cancel): New prototypes.
7774 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7775 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7776 gomp_team_barrier_cancelled): New inline functions.
7777 (gomp_barrier_wait_start, gomp_barrier_last_thread,
7778 gomp_team_barrier_set_task_pending,
7779 gomp_team_barrier_clear_task_pending,
7780 gomp_team_barrier_set_waiting_for_tasks,
7781 gomp_team_barrier_waiting_for_tasks,
7782 gomp_team_barrier_done): Use BAR_* defines.
7783 * barrier.c (GOMP_barrier_cancel): New function.
7784 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7785 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7786 omp_proc_bind_spread): New params.
7787 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7788 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7789 omp_get_team_num, omp_is_initial_device): New externals.
7790 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7792 (gomp_resolve_num_threads): Adjust for thread_limit now being in
7793 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7794 infinity. If not nested, just return minimum of max_num_threads
7795 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7796 to the returned value. Otherwise, don't update atomically
7797 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7798 (GOMP_parallel_end): Adjust for thread_limit now being in
7799 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7800 infinity. Adjust threads_busy in the pool rather than
7801 gomp_remaining_threads_count. Remember team->nthreads and call
7802 gomp_team_end before adjusting threads_busy, if not nested
7803 afterwards, just set it to 1 non-atomically. Add ialias.
7804 (GOMP_parallel_start): Adjust gomp_team_start caller.
7805 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
7806 * testsuite/libgomp.c/affinity-1.c: New test.
7807 * testsuite/libgomp.c/atomic-15.c: New test.
7808 * testsuite/libgomp.c/atomic-16.c: New test.
7809 * testsuite/libgomp.c/atomic-17.c: New test.
7810 * testsuite/libgomp.c/cancel-for-1.c: New test.
7811 * testsuite/libgomp.c/cancel-for-2.c: New test.
7812 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
7813 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
7814 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
7815 * testsuite/libgomp.c/cancel-sections-1.c: New test.
7816 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
7817 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
7818 * testsuite/libgomp.c/depend-1.c: New test.
7819 * testsuite/libgomp.c/depend-2.c: New test.
7820 * testsuite/libgomp.c/depend-3.c: New test.
7821 * testsuite/libgomp.c/depend-4.c: New test.
7822 * testsuite/libgomp.c/for-1.c: New test.
7823 * testsuite/libgomp.c/for-1.h: New file.
7824 * testsuite/libgomp.c/for-2.c: New test.
7825 * testsuite/libgomp.c/for-2.h: New file.
7826 * testsuite/libgomp.c/for-3.c: New test.
7827 * testsuite/libgomp.c/pr58392.c: New test.
7828 * testsuite/libgomp.c/simd-1.c: New test.
7829 * testsuite/libgomp.c/simd-2.c: New test.
7830 * testsuite/libgomp.c/simd-3.c: New test.
7831 * testsuite/libgomp.c/simd-4.c: New test.
7832 * testsuite/libgomp.c/simd-5.c: New test.
7833 * testsuite/libgomp.c/simd-6.c: New test.
7834 * testsuite/libgomp.c/target-1.c: New test.
7835 * testsuite/libgomp.c/target-2.c: New test.
7836 * testsuite/libgomp.c/target-3.c: New test.
7837 * testsuite/libgomp.c/target-4.c: New test.
7838 * testsuite/libgomp.c/target-5.c: New test.
7839 * testsuite/libgomp.c/target-6.c: New test.
7840 * testsuite/libgomp.c/target-7.c: New test.
7841 * testsuite/libgomp.c/taskgroup-1.c: New test.
7842 * testsuite/libgomp.c/thread-limit-1.c: New test.
7843 * testsuite/libgomp.c/thread-limit-2.c: New test.
7844 * testsuite/libgomp.c/thread-limit-3.c: New test.
7845 * testsuite/libgomp.c/udr-1.c: New test.
7846 * testsuite/libgomp.c/udr-2.c: New test.
7847 * testsuite/libgomp.c/udr-3.c: New test.
7848 * testsuite/libgomp.c++/affinity-1.C: New test.
7849 * testsuite/libgomp.c++/atomic-10.C: New test.
7850 * testsuite/libgomp.c++/atomic-11.C: New test.
7851 * testsuite/libgomp.c++/atomic-12.C: New test.
7852 * testsuite/libgomp.c++/atomic-13.C: New test.
7853 * testsuite/libgomp.c++/atomic-14.C: New test.
7854 * testsuite/libgomp.c++/atomic-15.C: New test.
7855 * testsuite/libgomp.c++/cancel-for-1.C: New test.
7856 * testsuite/libgomp.c++/cancel-for-2.C: New test.
7857 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
7858 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
7859 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
7860 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
7861 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
7862 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
7863 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
7864 * testsuite/libgomp.c++/cancel-test.h: New file.
7865 * testsuite/libgomp.c++/for-9.C: New test.
7866 * testsuite/libgomp.c++/for-10.C: New test.
7867 * testsuite/libgomp.c++/for-11.C: New test.
7868 * testsuite/libgomp.c++/simd-1.C: New test.
7869 * testsuite/libgomp.c++/simd-2.C: New test.
7870 * testsuite/libgomp.c++/simd-3.C: New test.
7871 * testsuite/libgomp.c++/simd-4.C: New test.
7872 * testsuite/libgomp.c++/simd-5.C: New test.
7873 * testsuite/libgomp.c++/simd-6.C: New test.
7874 * testsuite/libgomp.c++/simd-7.C: New test.
7875 * testsuite/libgomp.c++/simd-8.C: New test.
7876 * testsuite/libgomp.c++/target-1.C: New test.
7877 * testsuite/libgomp.c++/target-2.C: New test.
7878 * testsuite/libgomp.c++/target-2-aux.cc: New file.
7879 * testsuite/libgomp.c++/target-3.C: New test.
7880 * testsuite/libgomp.c++/taskgroup-1.C: New test.
7881 * testsuite/libgomp.c++/udr-1.C: New test.
7882 * testsuite/libgomp.c++/udr-2.C: New test.
7883 * testsuite/libgomp.c++/udr-3.C: New test.
7884 * testsuite/libgomp.c++/udr-4.C: New test.
7885 * testsuite/libgomp.c++/udr-5.C: New test.
7886 * testsuite/libgomp.c++/udr-6.C: New test.
7887 * testsuite/libgomp.c++/udr-7.C: New test.
7888 * testsuite/libgomp.c++/udr-8.C: New test.
7889 * testsuite/libgomp.c++/udr-9.C: New test.
7891 2013-09-20 Jakub Jelinek <jakub@redhat.com>
7894 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
7897 2013-09-20 Alan Modra <amodra@gmail.com>
7899 * configure: Regenerate.
7901 2013-09-19 Jakub Jelinek <jakub@redhat.com>
7903 * testsuite/libgomp.c/sections-2.c: New test.
7905 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
7907 * testsuite/libgomp.fortran/strassen.f90:
7908 Add dg-skip-if aarch64_tiny.
7910 2013-06-20 Iain Sandoe <iain@codesourcery.com>
7911 Cesar Philippidis <cesar@codesourcery.com>
7913 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
7914 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
7915 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
7916 * testsuite/libgomp.fortran/fortran.exp: Likewise.
7917 * testsuite/libgomp.graphite/graphite.exp: Likewise.
7918 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
7919 Use dg-runtest rather than gfortran-dg-runtest.
7921 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
7923 * testsuite/libgomp.c/icv-2.c: Extend current handling of
7924 Linux-based x86 systems to cover all GNU systems.
7925 * testsuite/libgomp.c/lock-3.c: Likewise.
7926 * testsuite/libgomp.c/pr48591.c: Likewise.
7928 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
7930 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
7931 GNU/Hurd, as done for Linux-based systems.
7933 * config/posix/ptrlock.h: Fix comment.
7935 2013-05-27 Tobias Burnus <burnus@net-b.de>
7938 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
7939 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
7940 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
7941 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
7942 omp_destroy_nest_lock): Correct arguments to match the one in
7944 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
7945 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
7946 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
7947 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
7949 2013-05-16 Jakub Jelinek <jakub@redhat.com>
7951 * testsuite/libgomp.c/loop-13.c: New test.
7952 * testsuite/libgomp.c/loop-14.c: New test.
7953 * testsuite/libgomp.c/loop-15.c: New test.
7954 * testsuite/libgomp.c++/loop-13.C: New test.
7955 * testsuite/libgomp.c++/loop-14.C: New test.
7956 * testsuite/libgomp.c++/loop-15.C: New test.
7958 2013-02-06 Jakub Jelinek <jakub@redhat.com>
7961 * testsuite/libgomp.c++/pr56217.C: New test.
7963 2013-02-01 Alan Modra <amodra@gmail.com>
7965 * task.c (GOMP_task, GOMP_taskwait): Comment.
7967 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
7968 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
7971 * config/linux/wait.h (do_spin): Use atomic load for addr.
7972 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
7973 for intptr and ptrlock.
7974 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
7977 2013-01-22 Alan Modra <amodra@gmail.com>
7981 * task.c (GOMP_task): Revert 2011-12-09 change.
7982 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
7983 barrier to read task->children..
7984 (gomp_barrier_handle_tasks): ..and matching atomic store with
7985 release barrier here when setting parent->children to NULL.
7987 2013-01-16 Jakub Jelinek <jakub@redhat.com>
7988 Tobias Burnus <burnus@net-b.de>
7991 * testsuite/libgomp.fortran/fortran.exp: Use
7992 -fintrinsic-modules-path= instead of
7993 -fintrinsic-modules-path.
7995 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
7997 Update copyright years.
7999 2012-12-19 Tobias Burnus <burnus@net-b.de>
8001 * testsuite/libgomp.fortran/fortran.exp: Set
8002 -fintrinsic-modules-path.
8004 2012-12-19 Tobias Burnus <burnus@net-b.de>
8006 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8007 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8009 2012-11-21 Jakub Jelinek <jakub@redhat.com>
8012 * team.c (gomp_free_thread): Decrease gomp_managed_threads
8013 if pool had any threads_used.
8015 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
8017 * testsuite/libgomp.c++/pr24455.C: Use
8018 -Wl,-undefined,dynamic_lookup on darwin.
8020 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
8022 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8024 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
8026 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8028 2012-10-23 Ian Bolton <ian.bolton@arm.com>
8029 Jim MacArthur <jim.macarthur@arm.com>
8030 Marcus Shawcroft <marcus.shawcroft@arm.com>
8031 Nigel Stephens <nigel.stephens@arm.com>
8032 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8033 Richard Earnshaw <rearnsha@arm.com>
8034 Sofiane Naci <sofiane.naci@arm.com>
8035 Stephen Thomas <stephen.thomas@arm.com>
8036 Tejas Belagod <tejas.belagod@arm.com>
8037 Yufeng Zhang <yufeng.zhang@arm.com>
8039 * configure.tgt: Add AArch64.
8041 2012-10-04 Jason Merrill <jason@redhat.com>
8043 * testsuite/libgomp.c++/tls-init1.C: New.
8045 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8047 * configure: Regenerated.
8049 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
8051 * config/linux/mips/futex.h (sys_futex0): Change to static
8052 function with noinline, nomips16 attributes under MIPS16. Adjust
8053 asm statement to place 'li v0,SYS_futex' immediately before
8056 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
8058 * libgomp.texi (Library Index): Renamed from "Index" to prevent
8059 conflict with index.html on case-insensitive file systems.
8061 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8063 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8064 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8066 2012-07-02 Richard Guenther <rguenther@suse.de>
8067 Michael Matz <matz@suse.de>
8068 Tobias Grosser <tobias@grosser.es>
8069 Sebastian Pop <sebpop@gmail.com>
8071 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8072 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8073 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8074 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8076 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8078 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8080 2012-06-22 Richard Guenther <rguenther@suse.de>
8082 Merge from graphite branch
8083 2012-01-13 Tobias Grosser <tobias@grosser.es>
8085 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8086 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8088 2012-06-07 Jakub Jelinek <jakub@redhat.com>
8091 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8092 use GOMP_barrier () call instead.
8093 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8094 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8095 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8096 call GOMP_barrier instead.
8097 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8099 2012-06-06 Jakub Jelinek <jakub@redhat.com>
8102 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8103 argument to memset call.
8105 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8107 * configure: Regenerated.
8109 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8111 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8113 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8116 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8118 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8121 * testsuite/libgomp.c/pr52547.c: New test.
8123 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8125 * testsuite/lib/libgomp.exp: load fortran-modules.exp
8127 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8129 * configure.tgt (mips-sgi-irix6*): Remove.
8131 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8133 * configure.tgt (alpha*-dec-osf*): Remove.
8135 * config/osf/sem.h: Remove.
8136 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8138 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8140 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8142 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8145 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8146 Remove ENABLE_SYMVERS_SOL2.
8147 * configure: Regenerate.
8148 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8149 (PREPROCESS): New variable.
8150 (libgomp.ver): New target.
8151 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8152 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8153 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8155 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8156 * Makefile.in: Regenerate.
8158 2012-02-14 Walter Lee <walt@tilera.com>
8160 * configure.tgt: Handle tilegx and tilepro.
8161 * config/linux/tile/futex.h: New file.
8163 2012-02-08 Richard Guenther <rguenther@suse.de>
8165 PR tree-optimization/46886
8166 * testsuite/libgomp.c/pr46886.c: New testcase.
8168 2012-01-25 Matthias Klose <doko@ubuntu.com>
8170 * config/linux/arm: Remove empty directory.
8171 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8173 2011-12-09 Alan Modra <amodra@gmail.com>
8176 * task.c (GOMP_taskwait): Don't access task->children outside of
8177 task_lock mutex region.
8178 (GOMP_task): Likewise.
8180 2011-12-06 Jakub Jelinek <jakub@redhat.com>
8183 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
8185 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8186 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8187 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8188 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8189 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8191 2011-12-02 Alan Modra <amodra@gmail.com>
8193 * config/linux/affinity.c: Use atomic rather than sync builtin.
8194 * config/linux/lock.c: Likewise.
8195 * config/linux/ptrlock.h: Likewise.
8196 * config/linux/ptrlock.c: Likewise.
8197 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
8198 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
8199 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
8200 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
8201 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
8202 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
8203 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
8204 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
8205 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
8206 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
8208 2011-11-30 Alan Modra <amodra@gmail.com>
8211 * config/linux/bar.h: Use atomic rather than sync builtins.
8212 * config/linux/bar.c: Likewise. Add missing acquire
8213 synchronisation on generation field.
8214 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
8217 2011-11-30 Alan Modra <amodra@gmail.com>
8219 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
8220 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
8221 * config/linux/mutex.h: Use atomic rather than sync builtins.
8222 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
8223 * config/linux/omp-lock.h: Comment fix.
8224 * config/linux/arm/mutex.h: Delete.
8225 * config/linux/powerpc/mutex.h: Delete.
8226 * config/linux/ia64/mutex.h: Delete.
8227 * config/linux/mips/mutex.h: Delete.
8229 2011-11-30 Alan Modra <amodra@gmail.com>
8232 * config/linux/sem.h: Rewrite.
8233 * config/linux/sem.c: Rewrite.
8235 2011-11-28 Richard Henderson <rth@redhat.com>
8237 * libgomp.h (enum memmodel): New.
8239 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
8241 * configure: Regenerate.
8243 2011-10-10 Matthias Klose <doko@ubuntu.com>
8245 * config/posix95: Remove empty directory.
8247 2011-08-26 Jakub Jelinek <jakub@redhat.com>
8249 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
8251 2011-08-19 Jakub Jelinek <jakub@redhat.com>
8254 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
8255 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
8257 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8259 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
8261 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8264 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
8266 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
8268 * config/linux/proc.h: New.
8269 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
8270 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
8271 (gomp_init_num_threads): Update call to cpuset_popcount.
8272 (get_num_procs): Ditto.
8273 * config/linux/affinity.c (gomp_init_affinity): Call
8274 gomp_cpuset_popcount.
8276 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8280 * omp.h.in (omp_in_final): New prototype.
8281 * omp_lib.f90.in (omp_in_final): New interface.
8282 (omp_integer_kind, omp_logical_kind): Remove
8283 and replace all its uses in the module with 4.
8284 (openmp_version): Change to 201107.
8285 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
8286 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
8287 kind for the parameters.
8288 (omp_in_final): New external.
8289 (openmp_version): Change to 201107.
8290 * task.c (omp_in_final): New function.
8291 (gomp_init_task): Initialize final_task.
8292 (GOMP_task): Remove unused attribute from flags. Handle final
8294 (GOMP_taskyield): New function.
8295 (omp_in_final): Return true if if (false) or final (true) task
8296 or descendant of final (true).
8297 * fortran.c (omp_in_final_): New function.
8298 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
8299 (GOMP_3.0): Export GOMP_taskyield.
8300 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8302 (parse_unsigned_long_list): New function.
8303 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
8304 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
8305 even if parse_affinity returned false.
8306 * config/linux/affinity.c (gomp_init_affinity): Handle
8307 gomp_cpu_affinity_len == 0.
8308 * libgomp_g.h (GOMP_taskyield): New prototype.
8309 * libgomp.h (struct gomp_task): Add final_task field.
8310 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8311 * team.c (gomp_team_start): Override new task's nthreads_var icv
8312 if list form OMP_NUM_THREADS has been used and it has value for
8313 the new nesting level.
8315 * testsuite/libgomp.c/atomic-11.c: New test.
8316 * testsuite/libgomp.c/atomic-12.c: New test.
8317 * testsuite/libgomp.c/atomic-13.c: New test.
8318 * testsuite/libgomp.c/atomic-14.c: New test.
8319 * testsuite/libgomp.c/reduction-6.c: New test.
8320 * testsuite/libgomp.c/task-5.c: New test.
8321 * testsuite/libgomp.c++/atomic-2.C: New test.
8322 * testsuite/libgomp.c++/atomic-3.C: New test.
8323 * testsuite/libgomp.c++/atomic-4.C: New test.
8324 * testsuite/libgomp.c++/atomic-5.C: New test.
8325 * testsuite/libgomp.c++/atomic-6.C: New test.
8326 * testsuite/libgomp.c++/atomic-7.C: New test.
8327 * testsuite/libgomp.c++/atomic-8.C: New test.
8328 * testsuite/libgomp.c++/atomic-9.C: New test.
8329 * testsuite/libgomp.c++/task-8.C: New test.
8330 * testsuite/libgomp.c++/reduction-4.C: New test.
8331 * testsuite/libgomp.fortran/allocatable7.f90: New test.
8332 * testsuite/libgomp.fortran/allocatable8.f90: New test.
8333 * testsuite/libgomp.fortran/crayptr3.f90: New test.
8334 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8335 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8336 * testsuite/libgomp.fortran/pointer1.f90: New test.
8337 * testsuite/libgomp.fortran/pointer2.f90: New test.
8338 * testsuite/libgomp.fortran/task4.f90: New test.
8340 2011-08-02 Tobias Burnus <burnus@net-b.de>
8342 * libgomp.texi: Update OpenMP spec references to 3.1.
8343 (omp_in_final,OMP_PROC_BIND): New sections.
8344 (OMP_NUM_THREADS): Document that the value can be now a list.
8345 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8347 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8349 * config/linux/x86/futex.h: Check __x86_64__ instead of
8352 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8356 * testsuite/libgomp.c/pr49897-1.c: New test.
8357 * testsuite/libgomp.c/pr49897-2.c: New test.
8358 * testsuite/libgomp.c/pr49898-1.c: New test.
8359 * testsuite/libgomp.c/pr49898-2.c: New test.
8361 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8363 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8364 for ia32 instead of ilp32.
8366 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8367 * testsuite/libgomp.c/atomic-6.c: Likewise.
8369 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
8371 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8372 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8374 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8377 * config/osf/sem.h: New file.
8378 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8380 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8383 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8386 2011-07-15 Jakub Jelinek <jakub@redhat.com>
8388 * config/linux/wait.h (do_spin): New inline, largely copied
8389 from do_wait, just don't do futex_wait here, instead return true if
8391 (do_wait): Implement using do_spin.
8392 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8394 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8395 __sync_bool_compare_and_swap, pass the oldval to
8396 gomp_mutex_lock_slow.
8397 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8398 If all mutex contenders are just spinning and not sleeping, don't
8399 change state to 2 unnecessarily. Optimize the loop when state has
8400 already become 2 to use just one atomic operation per loop instead
8402 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8404 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8405 __sync_bool_compare_and_swap, pass the oldval to
8406 gomp_mutex_lock_slow.
8408 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8411 * iter.c (gomp_iter_static_next): For chunk size 0
8412 only use n ceil/ nthreads size for the first
8413 n % nthreads threads in the team instead of
8414 all threads except for the last few ones which
8415 get less work or none at all.
8416 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8417 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8418 chunk argument, set run_sched_modifier to 0 for static
8419 resp. 1 for other kinds. If chunk argument is 0
8420 and not static, set value to 1.
8422 2011-05-19 Jakub Jelinek <jakub@redhat.com>
8425 * testsuite/libgomp.c++/pr49043.C: New test.
8428 * testsuite/libgomp.c++/pr48869.C: New test.
8430 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8433 * fortran.c: Include limits.h.
8435 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8437 (omp_set_num_threads_8_, omp_set_schedule_8_,
8438 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8439 omp_get_team_size_8_): Use TO_INT macro.
8440 * testsuite/libgomp.fortran/pr48894.f90: New test.
8442 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8445 * testsuite/libgomp.c/pr48591.c: New test.
8447 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8450 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8451 * configure: Regenerate.
8453 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8456 * testsuite/libgomp.fortran/task3.f90: New test.
8458 2011-02-24 Tobias Burnus <burnus@net-b.de>
8460 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8462 2011-02-23 Jakub Jelinek <jakub@redhat.com>
8465 * libgomp.texi (omp_get_wtime): Don't say time in the past
8468 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8471 * testsuite/libgomp.fortran/fortran.exp: Check for both
8472 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
8473 but $blddir != "", still append ${blddir}/${lang_library_path}
8476 2011-02-16 Tobias Burnus <burnus@net-b.de>
8479 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8480 of libquadmath.a before adding its libpath to ldflags.
8482 2011-02-14 Jakub Jelinek <jakub@redhat.com>
8485 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8486 to FUTEX_WAIT futex syscall.
8487 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8489 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8491 * configure: Regenerate.
8493 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
8496 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8498 2011-01-16 Gerald Pfeifer
8500 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8502 2010-12-14 Jakub Jelinek <jakub@redhat.com>
8505 * libgomp.fortran/allocatable6.f90: New test.
8507 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8509 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8510 * configure: Regenerate.
8512 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
8516 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8517 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8518 * aclocal.m4: Regenerate.
8519 * configure: Regenerate.
8520 * Makefile.in: Regenerate.
8521 * testsuite/Makefile.in: Regenerate.
8523 2010-12-02 Jakub Jelinek <jakub@redhat.com>
8526 * libgomp.fortran/pr46753.f90: New test.
8529 * env.c (initialize_env): Default to spin count 300000
8530 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8534 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8535 at the end if sync builtins aren't supported.
8537 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8539 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8541 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8543 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8545 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
8547 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8549 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8550 Tobias Burnus <burnus@net-b.de>
8554 * configure: Regenerate.
8556 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
8558 * config/linux/futex.h: New.
8559 * config/linux/arm/mutex.h: New.
8560 * configure.tgt (arm*-*-linux*): Add config path.
8562 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8564 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8566 2010-09-23 Tobias Burnus <burnus@net-b.de>
8568 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8569 Change Fortran datatype to LOGICAL.
8570 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8571 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8573 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8575 * configure: Regenerate.
8577 2010-07-26 Jakub Jelinek <jakub@redhat.com>
8579 * libgomp.texi: Add function keyword to a couple of Fortran
8580 interfaces, use integer instead of int for Fortran.
8582 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8584 * libgomp.texi: Fix spelling and pasto problems throughout.
8585 Adjust prototypes to match code.
8587 2010-07-24 Tobias Burnus <burnus@net-b.de>
8589 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8590 silence -fwhole-file warning.
8592 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8594 * configure.tgt (*-*-solaris2.[56]*): Removed.
8596 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8598 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8599 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8600 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8601 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8602 targetting solaris2*.
8603 * configure: Regenerate.
8604 * config.h.in: Regenerate.
8606 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8607 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8608 Add libgomp_version_dep.
8609 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8611 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8612 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8613 * Makefile.in: Regenerate.
8615 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8616 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8617 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8618 to common block, protected by
8619 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8621 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8623 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
8625 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8628 * configure: Regenerate.
8630 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8633 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8634 * configure: Regenerate.
8635 * Makefile.in: Regenerate.
8636 * testsuite/Makefile.in: Regenerate.
8638 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8641 * testsuite/libgomp.c/pr43893.c: New test.
8642 * testsuite/libgomp.c++/pr43893.C: New test.
8644 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8647 * testsuite/libgomp.fortran/vla8.f90: New test.
8649 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8652 * config/linux/affinity.c (gomp_init_affinity): Decrease
8653 gomp_available_cpus if affinity mask confines the process to fewer
8655 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8656 non-NULL, just return gomp_available_cpus.
8659 * sections.c (gomp_sections_init): Initialize ws->mode.
8661 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8663 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8664 not unused bar variable.
8665 * configure: Regenerate.
8667 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8669 * Makefile.in: Regenerate.
8670 * aclocal.m4: Regenerate.
8671 * testsuite/Makefile.in: Regenerate.
8673 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8676 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8677 (initialize_env): Adjust callers.
8678 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8679 when the argument is 0.
8681 * testsuite/libgomp.c/pr42942.c: New test.
8683 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8687 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8688 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8690 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8692 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8693 * testsuite/libgomp.c++/task-6.C: Likewise.
8695 2010-01-28 Steve Ellcey <sje@cup.hp.com>
8697 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8699 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
8701 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8702 * configure: Regenerate.
8704 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8707 * testsuite/libgomp.fortran/allocatable5.f90: New test.
8709 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
8711 * configure.ac: Test for executability of GFORTRAN.
8712 * configure: Regenerate.
8714 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8716 * configure: Regenerate.
8718 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8721 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8723 2010-01-03 Richard Guenther <rguenther@suse.de>
8725 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8727 2009-12-23 Sebastian Pop <sebpop@gmail.com>
8729 * testsuite/libgomp.graphite/pr4118.c: New.
8731 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8733 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8734 for darwin, protect the test with require-effective-target tls_runtime.
8735 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8737 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8740 * testsuite/lib/libgomp.exp: Provide -B options to allow for
8741 link spec %s substitutions for static libraries.
8743 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
8746 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8748 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8750 * Makefile.in: Regenerate.
8751 * configure: Regenerate.
8752 * testsuite/Makefile.in: Regenerate.
8754 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8756 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8757 settings for LC_ALL and LANG.
8759 2009-11-25 Jakub Jelinek <jakub@redhat.com>
8762 * testsuite/libgomp.fortran/pr42162.f90: New test.
8764 2009-11-13 Jakub Jelinek <jakub@redhat.com>
8767 * testsuite/libgomp.c/pr42029.c: New test.
8769 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8771 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8772 *s. Accept ld version without text in ()s.
8773 * configure: Regenerated.
8775 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
8777 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8779 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8782 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8783 or a hyphen (happens with fortran language disabled).
8784 * configure: Regenerate.
8786 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8788 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8789 use sed script portable to Solaris /bin/sed for extracting ld
8791 * configure: Regenerate.
8793 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8795 * testsuite/libgomp.graphite/bounds.c: New test.
8797 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8799 * Makefile.am (libgomp_la_LINK): New.
8800 * Makefile.in: Regenerate.
8802 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8804 * configure.ac (AC_PREREQ): Bump to 2.64.
8806 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8808 * Makefile.am (install-html, install-pdf): Remove.
8809 * Makefile.in: Regenerate.
8811 * Makefile.in: Regenerate.
8812 * aclocal.m4: Regenerate.
8813 * config.h.in: Regenerate.
8814 * configure: Regenerate.
8815 * testsuite/Makefile.in: Regenerate.
8817 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8819 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
8820 * Makefile.in: Regenerate.
8822 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
8824 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
8825 * Makefile.in: Regenerate.
8827 2009-08-19 Tobias Burnus <burnus@net-b.de>
8830 omp_lib.h.in: Fix -std=f95 errors.
8832 2009-08-14 David Edelsohn <edelsohn@gnu.org>
8834 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
8835 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
8836 * testsuite/libgomp.graphite/graphite.exp: New.
8838 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
8840 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
8843 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8845 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
8846 needed memory barrier semantics.
8847 * config/linux/mips/mutex.h: New file.
8849 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8851 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
8853 2009-07-16 Joseph Myers <joseph@codesourcery.com>
8855 * configure: Regenerate.
8857 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
8862 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
8863 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
8864 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
8866 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
8868 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
8869 options when choosing a multilib.
8871 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
8873 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
8874 ld_library_path. Use add_path. Add just find_libgcc_s to
8875 ld_library_path, not every libgcc multilib directory.
8876 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
8877 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
8878 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
8880 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
8882 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
8884 * Makefile.am (LTLDFLAGS): Define.
8886 * Makefile.in: Regenerate.
8888 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
8891 * testsuite/libgomp.fortran/fortran.exp: Don't link with
8892 libgfortranbegin, check existence of libgfortran.a instead of
8895 2009-05-20 Jakub Jelinek <jakub@redhat.com>
8898 * team.c (gomp_thread_start): Destroy thr->release semaphore.
8899 (gomp_free_pool_helper): Likewise.
8901 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
8902 Jakub Jelinek <jakub@redhat.com>
8905 * testsuite/libgomp.fortran/workshare2.f90: New test.
8907 2009-04-09 Nick Clifton <nickc@redhat.com>
8909 * iter.c: Change copyright header to refer to version 3 of the
8910 GNU General Public License with version 3.1 of the GCC Runtime
8911 Library Exception and to point readers at the COPYING3 and
8912 COPYING3.RUNTIME files and the FSF's license web page.
8913 * alloc.c: Likewise.
8914 * barrier.c: Likewise.
8915 * config/bsd/proc.c: Likewise.
8916 * config/linux/affinity.c: Likewise.
8917 * config/linux/alpha/futex.h: Likewise.
8918 * config/linux/bar.c: Likewise.
8919 * config/linux/bar.h: Likewise.
8920 * config/linux/ia64/futex.h: Likewise.
8921 * config/linux/ia64/mutex.h: Likewise.
8922 * config/linux/lock.c: Likewise.
8923 * config/linux/mips/futex.h: Likewise.
8924 * config/linux/mutex.c: Likewise.
8925 * config/linux/mutex.h: Likewise.
8926 * config/linux/powerpc/futex.h: Likewise.
8927 * config/linux/proc.c: Likewise.
8928 * config/linux/ptrlock.c: Likewise.
8929 * config/linux/ptrlock.h: Likewise.
8930 * config/linux/s390/futex.h: Likewise.
8931 * config/linux/sem.c: Likewise.
8932 * config/linux/sem.h: Likewise.
8933 * config/linux/sparc/futex.h: Likewise.
8934 * config/linux/wait.h: Likewise.
8935 * config/linux/x86/futex.h: Likewise.
8936 * config/mingw32/proc.c: Likewise.
8937 * config/mingw32/time.c: Likewise.
8938 * config/posix/affinity.c: Likewise.
8939 * config/posix/bar.c: Likewise.
8940 * config/posix/bar.h: Likewise.
8941 * config/posix/lock.c: Likewise.
8942 * config/posix/mutex.h: Likewise.
8943 * config/posix/proc.c: Likewise.
8944 * config/posix/ptrlock.h: Likewise.
8945 * config/posix/sem.c: Likewise.
8946 * config/posix/sem.h: Likewise.
8947 * config/posix/time.c: Likewise.
8948 * config/posix95/lock.c: Likewise.
8949 * critical.c: Likewise.
8951 * error.c: Likewise.
8952 * fortran.c: Likewise.
8953 * iter_ull.c: Likewise.
8954 * libgomp.h: Likewise.
8955 * libgomp_f.h.in: Likewise.
8956 * libgomp_g.h: Likewise.
8958 * loop_ull.c: Likewise.
8959 * omp.h.in: Likewise.
8960 * omp_lib.f90.in: Likewise.
8961 * omp_lib.h.in: Likewise.
8962 * ordered.c: Likewise.
8963 * parallel.c: Likewise.
8964 * sections.c: Likewise.
8965 * single.c: Likewise.
8970 2009-04-09 Jakub Jelinek <jakub@redhat.com>
8972 * testsuite/config/default.exp: Change copyright header to refer to
8973 version 3 of the GNU General Public License and to point readers
8974 at the COPYING3 file and the FSF's license web page.
8976 2009-04-08 Jakub Jelinek <jakub@redhat.com>
8979 * libgomp.c++/pr39573.C: New test.
8981 2009-04-01 Jakub Jelinek <jakub@redhat.com>
8984 * testsuite/libgomp.c/pr39591-1.c: New test.
8985 * testsuite/libgomp.c/pr39591-2.c: New test.
8986 * testsuite/libgomp.c/pr39591-3.c: New test.
8988 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
8990 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
8991 * testsuite/libgomp.c/atomic-6.c: Ditto.
8993 2009-03-23 Jakub Jelinek <jakub@redhat.com>
8996 * testsuite/libgomp.c/loop-12.c: New test.
8997 * testsuite/libgomp.c/loop-11.c: New test.
8998 * testsuite/libgomp.c++/loop-11.C: New test.
8999 * testsuite/libgomp.c++/loop-12.C: New test.
9000 * testsuite/libgomp.c++/for-8.C: New test.
9002 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9004 * configure: Regenerate.
9006 2009-02-11 Jakub Jelinek <jakub@redhat.com>
9009 * testsuite/libgomp.c/pr39154.c: New test.
9011 2009-01-30 Ian Lance Taylor <iant@google.com>
9013 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9014 libgomp_ld_is_gold. Get gold version number.
9015 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9016 * configure: Rebuild.
9018 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9020 * testsuite/lib/libgomp.exp: Add -B option for targets that
9021 use libgfortran.a%s in their specs.
9023 2009-01-07 Jakub Jelinek <jakub@redhat.com>
9026 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9027 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9028 HAVE_AS_SYMVER_DIRECTIVE is not defined.
9029 * configure: Regenerated.
9030 * config.h.in: Likewise.
9032 2008-12-28 Jakub Jelinek <jakub@redhat.com>
9035 * testsuite/libgomp.c/pr38650.c: New test.
9036 * testsuite/libgomp.c++/pr38650.C: New test.
9038 2008-12-27 Jakub Jelinek <jakub@redhat.com>
9040 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9042 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
9044 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9046 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9048 * configure: Regenerate.
9050 2008-12-08 Jakub Jelinek <jakub@redhat.com>
9053 * testsuite/libgomp.c/pr36802-1.c: New test.
9054 * testsuite/libgomp.c/pr36802-2.c: New test.
9055 * testsuite/libgomp.c/pr36802-3.c: New test.
9057 2008-12-01 Janis Johnson <janis187@us.ibm.com>
9060 * config/linux/powerpc/mutex.h: New.
9062 2008-12-01 Jakub Jelinek <jakub@redhat.com>
9065 * testsuite/libgomp.c++/for-7.C: New test.
9068 * testsuite/libgomp.c++/for-6.C: New test.
9070 2008-11-26 Janis Johnson <janis187@us.ibm.com>
9073 * testsuite/lib/libgomp.exp: Include new timeout library files.
9074 (libgomp_target_compile): Set timeout value from new proc.
9076 2008-11-13 Steve Ellcey <sje@cup.hp.com>
9079 * config/linux/ia64/mutex.h: New.
9081 2008-11-04 Tobias Burnus <burnus@net-b.de>
9084 * libgomp.texi (Runtime library routines, environment variables):
9085 Update for OpenMP version 3.0.
9087 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
9088 Steve Ellcey <sje@cup.hp.com>
9090 * configure: Regenerate for new libtool.
9091 * Makefile.in: Ditto.
9092 * testsuite/Makefile.in: Ditto.
9094 2008-09-19 Jakub Jelinek <jakub@redhat.com>
9095 Andreas Tobler <a.tobler@schweiz.org>
9097 * config/bsd/proc.c: New file.
9098 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
9099 * configure.ac: Check for header <sys/sysctl.h>
9100 * configure: Regenerate.
9101 * config.h.in: Likewise.
9103 2008-09-05 Janis Johnson <janis187@us.ibm.com>
9105 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9107 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9109 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9110 * Makefile.in: Regenerated.
9111 * testsuite/Makefile.in: Regenerated.
9113 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
9115 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
9116 depend on blddir if blddir exists.
9117 (libgomp_target_compile): Likewise.
9118 * testsuite/libgomp.c++/c++.exp: Likewise.
9119 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9121 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9123 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
9124 Do not list GPL as Invariant Section.
9126 2008-07-28 Ilie Garbacea <ilie@mips.com>
9127 Chao-ying Fu <fu@mips.com>
9129 * configure.tgt: Enable futex for MIPS.
9130 * config/linux/mips/futex.h: New file.
9132 2008-07-16 Jakub Jelinek <jakub@redhat.com>
9134 * team.c (gomp_team_end): Free team immediately if it has
9137 2008-07-08 David Edelsohn <edelsohn@gnu.org>
9139 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9140 * testsuite/libgomp.fortran/fortran.exp: Same.
9141 * testsuite/libgomp.c/c.exp: Same.
9142 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9143 directory to library path first.
9145 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
9147 * env.c (parse_stacksize): Add cast to avoid warning.
9148 (parse_spincount): Likewise.
9150 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9152 * testsuite/libgomp.c/loop-10.c: New test.
9153 * libgomp.c/loop-3.c (main): Add lastprivate clause.
9154 * libgomp.c++/loop-6.C (main): Likewise.
9157 * testsuite/libgomp.c/debug-1.c: New test.
9159 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9161 * testsuite/libgomp.c/nqueens-1.c: New test.
9164 * testsuite/libgomp.c++/task-7.C: New function.
9166 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9168 * configure: Regenerate.
9170 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9172 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9173 mutex when HAVE_SYNC_BUILTINS isn't defined.
9175 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9177 * libgomp.texi (omp_test_lock): Fix typo.
9179 2008-06-12 Tobias Burnus <burnus@net-b.de>
9181 * omp_lib.f90.in: Add "implicit none".
9183 2008-06-12 Jakub Jelinek <jakub@redhat.com>
9186 * testsuite/libgomp.c/reduction-5.c: New test.
9188 2008-06-11 Jakub Jelinek <jakub@redhat.com>
9190 * libgomp.h (struct gomp_task): Add in_tied_task field.
9191 * task.c (gomp_init_task): Initialize it.
9192 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
9193 unconditionally. Don't call gomp_team_barrier_wake if
9194 current task is implicit or if(0) from implicit and number of
9195 running tasks is equal to nthreads - 1.
9198 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
9199 omp_get_team_size_8): Fix pastos.
9202 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
9203 * configure: Regenerated.
9204 * config.h.in: Regenerated.
9205 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
9208 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
9211 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
9212 (GOMP_loop_ull_dynamic_start): Likewise.
9213 (GOMP_loop_ull_guided_start): Likewise.
9214 (GOMP_loop_ull_ordered_static_start): Likewise.
9215 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
9216 (GOMP_loop_ull_ordered_guided_start): Likewise.
9218 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9219 Richard Henderson <rth@redhat.com>
9220 Ulrich Drepper <drepper@redhat.com>
9221 Jakob Blomer <jakob.blomer@ira.uka.de>
9223 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
9224 Substitute also OMP_*LOCK_25*.
9225 * configure: Regenerated.
9226 * config.h.in: Regenerated.
9227 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
9228 ptrlock.c and task.c.
9229 * Makefile.in: Regenerated.
9230 * testsuite/Makefile.in: Regenerated.
9232 * loop_ull.c: New file.
9233 * iter_ull.c: New file.
9234 * libgomp.h: Include ptrlock.h.
9235 (enum gomp_task_kind): New type.
9236 (struct gomp_team): Add task_lock, task_queue, task_count,
9237 task_running_count, single_count fields. Add
9238 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
9239 Remove work_share_lock, generation_mask,
9240 oldest_live_gen, num_live_gen and init_work_shares fields, add
9241 work work_share_list_alloc, work_share_list_free and work_share_chunk
9242 fields. Change work_shares from pointer to pointers into an array.
9243 Change ordered_release field into gomp_sem_t ** from flexible array
9244 member. Add implicit_task and initial_work_shares fields.
9245 Move close to the end of the struct.
9246 (struct gomp_team_state): Add single_count, last_work_share,
9247 active_level and level fields, remove work_share_generation.
9248 (gomp_barrier_handle_tasks): New prototype.
9249 (gomp_finish_task): New inline function.
9250 (struct gomp_work_share): Move chunk_size, end, incr into
9251 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
9252 next_ll fields. Reshuffle fields. Add next_alloc,
9253 next_ws, next_free and inline_ordered_team_ids fields, change
9254 ordered_team_ids into pointer from flexible array member.
9255 Add mode field. Put lock and next into a different cache line
9256 from most of the write-once fields.
9257 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
9258 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
9259 gomp_iter_ull_guided_next): New prototypes.
9260 (gomp_new_icv): New prototype.
9261 (struct gomp_thread): Add thread_pool and task fields.
9262 (struct gomp_thread_pool): New type.
9263 (gomp_new_team): New prototype.
9264 (gomp_team_start): Change type of last argument.
9265 (gomp_new_work_share): Removed.
9266 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
9267 (gomp_work_share_init_done): New static inline.
9268 (gomp_throttled_spin_count_var, gomp_available_cpus,
9269 gomp_managed_threads): New extern decls.
9270 (gomp_init_task): New prototype.
9271 (gomp_spin_count_var): New extern var decl.
9272 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
9273 or no alias support, or if not PIC.
9274 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
9275 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
9276 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
9277 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
9278 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
9279 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
9280 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
9281 gomp_test_nest_lock_25): New prototypes.
9282 (omp_lock_symver, strong_alias): Define.
9283 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
9285 (gomp_end_task): New.
9286 (struct gomp_task_icv, gomp_global_icv): New.
9287 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
9288 (struct gomp_task): New.
9289 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9290 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9292 (gomp_schedule_type): Reorder enum to match
9294 * team.c (struct gomp_thread_start_data): Add thread_pool and task
9296 (gomp_thread_start): Add gomp_team_barrier_wait call.
9297 For non-nested case remove clearing of docked thread thr fields.
9298 Use pool fields instead of global gomp_* variables. Use
9299 gomp_barrier_wait_last when needed. Initialize ts.active_level.
9300 Create tasks for each member thread.
9301 (free_team): Only destroy team barrier, task_lock here and free it.
9302 (gomp_free_thread): Free last_team if non-NULL.
9303 (gomp_team_end): Call gomp_team_barrier_wait instead of
9304 gomp_barrier_wait. For nested case call one extra
9305 gomp_barrier_wait. Move here some destruction from free_team.
9306 Call free_team on pool->last_team if any, rather than freeing
9307 current team. Destroy work_share_list_free_lock ifndef
9309 (gomp_new_icv): New function.
9310 (gomp_threads, gomp_threads_size, gomp_threads_used,
9311 gomp_threads_dock): Removed.
9312 (gomp_thread_destructor): New variable.
9313 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9315 (gomp_team_start): Create new pool if current thread doesn't have
9316 one. Use pool fields instead of global gomp_* variables.
9317 Initialize thread_pool field for new threads. Clear single_count.
9318 Change last argument from ws to team, don't create
9319 new team, set ts.work_share to &team->work_shares[0] and clear
9320 ts.last_work_share. Don't clear ts.work_share_generation.
9321 If number of threads changed, adjust atomically gomp_managed_threads.
9322 Use gomp_init_task instead of gomp_new_task,
9323 set thr->task to the corresponding implicit_task array entry.
9324 Create tasks for each member thread. Initialize ts.level.
9325 (initialize_team): Call pthread_key_create on
9326 gomp_thread_destructor.
9327 (team_destructor): New function.
9328 (new_team): Removed.
9329 (gomp_new_team): New function.
9330 (free_team): Free gomp_work_share blocks chained through next_alloc,
9331 instead of freeing work_shares and destroying work_share_lock.
9332 (gomp_team_end): Call gomp_fini_work_share. If number of threads
9333 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
9334 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9335 of gomp_barrier_wait.
9336 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9337 instead of gomp_barrier_wait. Call gomp_work_share_init_done
9338 if gomp_work_share_start returned true. Don't unlock ws->lock.
9339 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9340 of gomp_barrier_wait.
9341 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
9342 gomp_work_share_init_done if gomp_work_share_start returned true.
9343 Don't unlock ws->lock.
9344 * work.c: Include stddef.h.
9345 (free_work_share): Use work_share_list_free_lock instead
9346 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
9347 Call gomp_fini_work_share and then either free ws if orphaned, or
9348 put it into work_share_list_free list of the current team.
9349 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9351 (gomp_work_share_start, gomp_work_share_end,
9352 gomp_work_share_end_nowait): Rewritten.
9353 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9354 (openmp_version): Set to 200805.
9355 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9356 omp_sched_guided, omp_sched_auto): New parameters.
9357 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9358 omp_set_max_active_levels, omp_get_max_active_levels,
9359 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9360 omp_get_active_level): New interfaces.
9361 * omp_lib.h.in (openmp_version): Set to 200805.
9362 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9363 omp_sched_guided, omp_sched_auto): New parameters.
9364 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9365 omp_set_max_active_levels, omp_get_max_active_levels,
9366 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9367 omp_get_active_level): New externals.
9368 * loop.c: Include limits.h.
9369 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9371 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9372 Likewise. Use gomp_icv.
9373 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9374 ts.static_trip here.
9375 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9376 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
9377 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9378 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
9379 don't unlock ws->lock, otherwise lock it.
9380 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9381 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
9382 (gomp_parallel_loop_start): Call gomp_new_team instead of
9383 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
9384 Adjust gomp_team_start caller. Pass 0 as second argument to
9385 gomp_resolve_num_threads.
9386 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9387 If adding ws->chunk_size nthreads + 1 times after end won't
9388 overflow, set ws->mode to 1.
9389 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9390 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9391 GOMP_loop_ull_ordered_static_start,
9392 GOMP_loop_ull_ordered_dynamic_start,
9393 GOMP_loop_ull_ordered_guided_start,
9394 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9395 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9396 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9397 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9398 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9400 * libgomp.map: Export lock routines also @@OMP_2.0.
9401 (GOMP_loop_ordered_dynamic_first,
9402 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9403 GOMP_loop_ordered_static_first): Remove.
9404 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9405 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9406 GOMP_loop_ull_ordered_dynamic_next,
9407 GOMP_loop_ull_ordered_dynamic_start,
9408 GOMP_loop_ull_ordered_guided_next,
9409 GOMP_loop_ull_ordered_guided_start,
9410 GOMP_loop_ull_ordered_runtime_next,
9411 GOMP_loop_ull_ordered_runtime_start,
9412 GOMP_loop_ull_ordered_static_next,
9413 GOMP_loop_ull_ordered_static_start,
9414 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9415 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9416 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9417 (omp_set_schedule, omp_get_schedule,
9418 omp_get_thread_limit, omp_set_max_active_levels,
9419 omp_get_max_active_levels, omp_get_level,
9420 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9421 omp_set_schedule_, omp_set_schedule_8_,
9422 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9423 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9424 omp_get_max_active_levels_, omp_get_level_,
9425 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9426 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9427 New exports @@OMP_3.0.
9428 * omp.h.in (omp_sched_t): New type.
9429 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9430 omp_set_max_active_levels, omp_get_max_active_levels,
9431 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9432 omp_get_active_level): New prototypes.
9433 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9434 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9435 gomp_thread_limit_var, gomp_remaining_threads_count,
9436 gomp_remaining_threads_lock): New variables.
9437 (parse_spincount): New function.
9438 (initialize_env): Call gomp_init_num_threads unconditionally.
9439 Initialize gomp_available_cpus. Call parse_spincount,
9440 initialize gomp_{,throttled_}spin_count_var
9441 depending on presence and value of OMP_WAIT_POLICY and
9442 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
9443 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9444 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
9445 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
9446 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
9447 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9448 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9449 (gomp_global_icv): New.
9450 (parse_schedule): Use it. Parse "auto".
9451 (omp_set_num_threads): Use gomp_icv.
9452 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9454 (omp_get_max_threads): Move from parallel.c.
9455 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9456 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9458 (parse_stacksize, parse_wait_policy): New functions.
9459 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9460 both wrappers for compatibility and new locks.
9461 (omp_set_schedule, omp_get_schedule,
9462 omp_get_thread_limit, omp_set_max_active_levels,
9463 omp_get_max_active_levels, omp_get_level,
9464 omp_get_ancestor_thread_num, omp_get_team_size,
9465 omp_get_active_level): New ialias_redirect.
9466 (omp_set_schedule_, omp_set_schedule_8_,
9467 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9468 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9469 omp_get_max_active_levels_, omp_get_level_,
9470 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9471 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9473 * parallel.c: Include limits.h.
9474 (gomp_resolve_num_threads): Add count argument. Rewritten.
9475 (GOMP_parallel_start): Call gomp_new_team and pass that as last
9476 argument to gomp_team_start. Pass 0 as second argument to
9477 gomp_resolve_num_threads.
9478 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9479 if gomp_thread_limit_var != ULONG_MAX.
9480 (omp_in_parallel): Implement using ts.active_level.
9481 (omp_get_max_threads): Move to env.c.
9482 (omp_get_level, omp_get_ancestor_thread_num,
9483 omp_get_team_size, omp_get_active_level): New functions,
9485 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9486 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
9487 gomp_iter_dynamic_next instead of the _locked variant and don't take
9488 lock around it, otherwise acquire it before calling
9489 gomp_iter_dynamic_next_locked.
9490 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9491 gomp_iter_dynamic_next instead of the _locked variant and don't take
9493 (GOMP_parallel_sections_start): Call gomp_new_team instead of
9494 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
9495 Adjust gomp_team_start caller. Pass count as second argument to
9496 gomp_resolve_num_threads, don't adjust num_threads after the call.
9498 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9499 ws->chunk_size by incr.
9500 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
9502 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9504 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9505 (omp_check_defines): Check even the compat defines.
9506 * config/linux/ptrlock.c: New file.
9507 * config/linux/ptrlock.h: New file.
9508 * config/linux/wait.h: New file.
9509 * config/posix/ptrlock.c: New file.
9510 * config/posix/ptrlock.h: New file.
9511 * config/linux/bar.h (gomp_team_barrier_wait,
9512 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9513 (gomp_team_barrier_set_task_pending,
9514 gomp_team_barrier_clear_task_pending,
9515 gomp_team_barrier_set_waiting_for_tasks,
9516 gomp_team_barrier_waiting_for_tasks,
9517 gomp_team_barrier_done): New inlines.
9518 (gomp_barrier_t): Rewritten.
9519 (gomp_barrier_state_t): New typedef.
9520 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9521 gomp_barrier_wait_start): Rewritten.
9522 (gomp_barrier_wait_end): Change second argument to
9523 gomp_barrier_state_t.
9524 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9526 * config/linux/bar.c: Include wait.h instead of libgomp.h and
9528 (gomp_barrier_wait_end): Rewritten.
9529 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9530 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9531 * config/posix/bar.h (gomp_barrier_t): Add generation field.
9532 (gomp_barrier_state_t): New typedef.
9533 (gomp_team_barrier_wait,
9534 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9535 (gomp_barrier_wait_start): Or all but low 2 bits from generation
9536 into the return value. Return gomp_barrier_state_t.
9537 (gomp_team_barrier_set_task_pending,
9538 gomp_team_barrier_clear_task_pending,
9539 gomp_team_barrier_set_waiting_for_tasks,
9540 gomp_team_barrier_waiting_for_tasks,
9541 gomp_team_barrier_done): New inlines.
9542 (gomp_barrier_wait_end): Change second argument to
9543 gomp_barrier_state_t.
9544 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9546 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9547 (gomp_barrier_wait_end): Change second argument to
9548 gomp_barrier_state_t.
9549 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9550 gomp_team_barrier_wake): New functions.
9551 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9553 (gomp_futex_wake, gomp_futex_wait): New variables.
9554 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9555 * config/linux/lock.c: Rewrite to make locks task owned,
9556 for backwards compatibility provide the old entrypoints
9557 if symbol versioning. Include wait.h instead of libgomp.h and
9559 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9560 * config/posix95/lock.c: Rewrite to make locks task owned,
9561 for backwards compatibility provide the old entrypoints
9562 if symbol versioning.
9563 * config/posix/lock.c: Rewrite to make locks task owned,
9564 for backwards compatibility provide the old entrypoints
9565 if symbol versioning.
9566 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9567 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9568 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9569 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9570 (sys_futex0): Return error code.
9571 (futex_wake, futex_wait): If ENOSYS was returned, clear
9572 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9573 (cpu_relax, atomic_write_barrier): New static inlines.
9574 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9575 (futex_wake, futex_wait): If ENOSYS was returned, clear
9576 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9577 (cpu_relax, atomic_write_barrier): New static inlines.
9578 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9579 (sys_futex0): Return error code.
9580 (futex_wake, futex_wait): If ENOSYS was returned, clear
9581 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9582 (cpu_relax, atomic_write_barrier): New static inlines.
9583 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9584 (sys_futex0): Return error code.
9585 (futex_wake, futex_wait): If ENOSYS was returned, clear
9586 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9587 (cpu_relax, atomic_write_barrier): New static inlines.
9588 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9589 (sys_futex0): Return error code.
9590 (futex_wake, futex_wait): If ENOSYS was returned, clear
9591 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9592 (cpu_relax, atomic_write_barrier): New static inlines.
9593 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9594 (sys_futex0): Return error code.
9595 (futex_wake, futex_wait): If ENOSYS was returned, clear
9596 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9597 (cpu_relax, atomic_write_barrier): New static inlines.
9598 * config/linux/sem.c: Include wait.h instead of libgomp.h and
9600 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9601 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9602 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9604 (omp_nest_lock_t): Change owner into void *, add lock field.
9605 * config/posix95/omp-lock.h: Include semaphore.h.
9606 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9607 (omp_lock_t): Use sem_t instead of mutex if semaphores
9609 (omp_nest_lock_t): Likewise. Change owner to void *.
9610 * config/posix/omp-lock.h: Include semaphore.h.
9611 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9612 (omp_lock_t): Use sem_t instead of mutex if semaphores
9614 (omp_nest_lock_t): Likewise. Add owner field.
9616 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9618 * testsuite/libgomp.c/collapse-1.c: New test.
9619 * testsuite/libgomp.c/collapse-2.c: New test.
9620 * testsuite/libgomp.c/collapse-3.c: New test.
9621 * testsuite/libgomp.c/icv-1.c: New test.
9622 * testsuite/libgomp.c/icv-2.c: New test.
9623 * testsuite/libgomp.c/lib-2.c: New test.
9624 * testsuite/libgomp.c/lock-1.c: New test.
9625 * testsuite/libgomp.c/lock-2.c: New test.
9626 * testsuite/libgomp.c/lock-3.c: New test.
9627 * testsuite/libgomp.c/loop-4.c: New test.
9628 * testsuite/libgomp.c/loop-5.c: New test.
9629 * testsuite/libgomp.c/loop-6.c: New test.
9630 * testsuite/libgomp.c/loop-7.c: New test.
9631 * testsuite/libgomp.c/loop-8.c: New test.
9632 * testsuite/libgomp.c/loop-9.c: New test.
9633 * testsuite/libgomp.c/nested-3.c: New test.
9634 * testsuite/libgomp.c/nestedfn-6.c: New test.
9635 * testsuite/libgomp.c/sort-1.c: New test.
9636 * testsuite/libgomp.c/task-1.c: New test.
9637 * testsuite/libgomp.c/task-2.c: New test.
9638 * testsuite/libgomp.c/task-3.c: New test.
9639 * testsuite/libgomp.c/task-4.c: New test.
9640 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9641 to C++ testsuite default compiler options.
9642 * testsuite/libgomp.c++/collapse-1.C: New test.
9643 * testsuite/libgomp.c++/collapse-2.C: New test.
9644 * testsuite/libgomp.c++/ctor-10.C: New test.
9645 * testsuite/libgomp.c++/for-1.C: New test.
9646 * testsuite/libgomp.c++/for-2.C: New test.
9647 * testsuite/libgomp.c++/for-3.C: New test.
9648 * testsuite/libgomp.c++/for-4.C: New test.
9649 * testsuite/libgomp.c++/for-5.C: New test.
9650 * testsuite/libgomp.c++/loop-8.C: New test.
9651 * testsuite/libgomp.c++/loop-9.C: New test.
9652 * testsuite/libgomp.c++/loop-10.C: New test.
9653 * testsuite/libgomp.c++/task-1.C: New test.
9654 * testsuite/libgomp.c++/task-2.C: New test.
9655 * testsuite/libgomp.c++/task-3.C: New test.
9656 * testsuite/libgomp.c++/task-4.C: New test.
9657 * testsuite/libgomp.c++/task-5.C: New test.
9658 * testsuite/libgomp.c++/task-6.C: New test.
9659 * testsuite/libgomp.fortran/allocatable1.f90: New test.
9660 * testsuite/libgomp.fortran/allocatable2.f90: New test.
9661 * testsuite/libgomp.fortran/allocatable3.f90: New test.
9662 * testsuite/libgomp.fortran/allocatable4.f90: New test.
9663 * testsuite/libgomp.fortran/collapse1.f90: New test.
9664 * testsuite/libgomp.fortran/collapse2.f90: New test.
9665 * testsuite/libgomp.fortran/collapse3.f90: New test.
9666 * testsuite/libgomp.fortran/collapse4.f90: New test.
9667 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9668 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9669 * testsuite/libgomp.fortran/lib4.f90: New test.
9670 * testsuite/libgomp.fortran/lock-1.f90: New test.
9671 * testsuite/libgomp.fortran/lock-2.f90: New test.
9672 * testsuite/libgomp.fortran/nested1.f90: New test.
9673 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9674 * testsuite/libgomp.fortran/strassen.f90: New test.
9675 * testsuite/libgomp.fortran/tabs1.f90: New test.
9676 * testsuite/libgomp.fortran/tabs2.f: New test.
9677 * testsuite/libgomp.fortran/task1.f90: New test.
9678 * testsuite/libgomp.fortran/task2.f90: New test.
9679 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9680 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9681 * testsuite/libgomp.c/pr26943-2.c: Likewise.
9682 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9683 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9685 2008-05-23 Jakub Jelinek <jakub@redhat.com>
9688 * testsuite/libgomp.c++/ctor-11.C: New test.
9689 * testsuite/libgomp.c++/ctor-12.C: New test.
9691 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9693 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9695 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9698 * testsuite/libgomp.c/atomic-5.c: New test.
9699 * testsuite/libgomp.c/atomic-6.c: New test.
9700 * testsuite/libgomp.c/autopar-1.c: New test.
9702 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9704 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9705 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9706 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9707 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9708 * configure: Regenerate.
9709 * Makefile.in, testsuite/Makefile.in: Likewise.
9711 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9714 * aclocal.m4: Regenerate.
9715 * configure: Regenerate.
9717 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9720 * testsuite/libgomp.c/atomic-4.c: New test.
9723 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9724 (gomp_iter_guided_next): Likewise.
9725 * testsuite/libgomp.c/pr35625.c: New test.
9727 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9729 * aclocal.m4: Regenerate.
9730 * configure: Likewise.
9731 * Makefile.in: Likewise.
9732 * testsuite/Makefile.in: Likewise.
9734 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9737 * testsuite/libgomp.c++/pr35185.C: New test.
9739 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9742 * testsuite/libgomp.c/pr35549.c: New test.
9744 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9746 * testsuite/libgomp.c/atomic-3.c: New test.
9748 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9751 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9754 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9757 * configure.ac: Add ACX_HEADER_STRING.
9758 * env.c: Include strings.h.
9759 * aclocal.m4: Regenerate.
9760 * config.h.in: Regenerate.
9761 * configure: Regenerate.
9762 * Makefile.in: Regenerate.
9763 * testsuite/Makefile.in: Regenerate.
9765 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9768 * testsuite/libgomp.c/pr35196.c: New test.
9771 * testsuite/libgomp.fortran/pr35130.f90: New test.
9772 * testsuite/libgomp.c/pr35130.c: New test.
9774 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9777 * testsuite/libgomp.c/pr33880.c: New test.
9778 * testsuite/libgomp.fortran/pr33880.f90: New test.
9780 2008-01-24 David Edelsohn <edelsohn@gnu.org>
9782 * configure: Regenerate.
9784 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9786 * configure.ac: Move futex checking into ../config/futex.m4.
9787 * configure: Rebuilt.
9788 * aclocal.m4: Rebuilt.
9789 * Makefile.in: Rebuilt.
9791 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9792 2007-10-15 ../config/tls.m4 change.
9794 2007-12-19 Jakub Jelinek <jakub@redhat.com>
9797 * testsuite/libgomp.c/pr34513.c: New test.
9798 * testsuite/libgomp.c++/pr34513.C: New test.
9800 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
9803 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
9805 2007-12-04 Jakub Jelinek <jakub@redhat.com>
9807 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
9809 2007-12-03 Jakub Jelinek <jakub@redhat.com>
9811 * testsuite/libgomp.c/private-1.c: New test.
9813 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
9814 Paolo Bonzini <bonzini@gnu.org>
9816 * Makefile.am: Use space as vpath separator. Use 'vpath %'
9817 instead of 'VPATH ='.
9818 * Makefile.in: Regenerate.
9820 2007-11-23 Matthias Klose <doko@ubuntu.com>
9822 * configure.ac: Adjust makeinfo version check.
9823 * configure: Regenerate.
9825 2007-11-10 Jakub Jelinek <jakub@redhat.com>
9828 * testsuite/libgomp.fortran/pr34020.f90: New test.
9830 2007-11-06 Jakub Jelinek <jakub@redhat.com>
9833 * testsuite/libgomp.c++/atomic-1.C: New test.
9835 2007-10-25 Jakub Jelinek <jakub@redhat.com>
9838 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
9839 Make x and y integers rather than (implicit) reals. Add private (j)
9840 clause to the last omp parallel.
9842 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
9844 * configure: Regenerate following changes to ../config/tls.m4.
9846 2007-09-28 Jakub Jelinek <jakub@redhat.com>
9848 * testsuite/libgomp.fortran/stack.f90: New test.
9850 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
9852 * config/mingw32/proc.c: New file.
9854 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
9856 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
9857 (main): Use __get_cpuid to get i386 target fetaures.
9858 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
9859 (main): Use __get_cpuid to get x86_64 target fetaures.
9861 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
9864 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
9865 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
9867 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9870 * testsuite/libgomp.fortran/pr32550.f90: New test.
9871 * testsuite/libgomp.fortran/crayptr2.f90: New test.
9873 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
9875 * aclocal.m4: Regenerated.
9877 2007-07-05 Tobias Burnus <burnus@net-b.de>
9880 * testsuite/libgomp.fortran/pr32359.f90: New.
9882 2007-07-02 Jakub Jelinek <jakub@redhat.com>
9885 * sections.c (GOMP_parallel_sections_start): Only decrease
9886 number of threads to COUNT if dyn_var is true.
9887 * testsuite/libgomp.c/pr32468.c: New test.
9889 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9892 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
9894 2007-06-21 Jakub Jelinek <jakub@redhat.com>
9897 * testsuite/libgomp.c/pr32362-1.c: New test.
9898 * testsuite/libgomp.c/pr32362-2.c: New test.
9899 * testsuite/libgomp.c/pr32362-3.c: New test.
9901 2007-06-07 Jakub Jelinek <jakub@redhat.com>
9903 * team.c (gomp_team_start): Fix setting up thread_attr
9906 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
9908 * configure: Regenerate.
9910 2007-05-23 Steve Ellcey <sje@cup.hp.com>
9912 * Makefile.in: Regenerate.
9913 * configure: Regenerate.
9914 * aclocal.m4: Regenerate.
9915 * testsuite/Makefile.in: Regenerate.
9917 2007-05-04 Jakub Jelinek <jakub@redhat.com>
9919 * config/linux/proc.c: New file.
9922 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
9924 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
9926 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
9928 2007-04-16 Matthias Klose <doko@debian.org>
9930 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
9931 flags if not building with -m64.
9932 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
9933 flag for i?86-*-* targets, if current target matches -m64.
9935 2007-04-14 Steve Ellcey <sje@cup.hp.com>
9937 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
9938 * Makefile.in: Regenerate.
9940 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9943 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
9945 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9947 2007-04-04 Jakub Jelinek <jakub@redhat.com>
9949 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
9951 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
9952 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
9953 (parse_affinity): New function.
9954 (initialize_env): Call it and gomp_init_affinity.
9955 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
9956 create new pthread_attr_t and call gomp_init_thread_affinity
9957 on it for each thread before passing the attribute to pthread_create.
9958 * config/linux/affinity.c: New file.
9959 * config/posix/affinity.c: New file.
9960 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
9961 * configure: Rebuilt.
9962 * config.h.in: Rebuilt.
9963 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
9964 * Makefile.in: Rebuilt.
9966 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
9968 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
9970 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
9971 and use it if found.
9973 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
9975 * testsuite/config/default.exp: New file.
9976 * testsuite/lib/libgomp.exp: New file.
9977 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
9978 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
9979 load_lib *, load_gcc_lib *): Move to libgomp.exp.
9980 (libgomp_load): Remove.
9981 * testsuite/lib/libgomp.exp (libgomp_init): Compute
9982 always_ld_library_path, not ld_library_path. Set additional_flags
9983 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
9984 (target_compile): Do not call libgomp_init. Append lang_library_path
9985 and lang_link_flags to options.
9986 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
9987 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
9989 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
9990 always_ld_library_path. Set LD_LIBRARY_PATH here.
9991 * testsuite/libgomp.fortran/fortran.exp: Ditto.
9992 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
9993 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
9995 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
9996 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
9997 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
9998 * testsuite/libgomp.c/pr29947-1.c: Ditto.
9999 * testsuite/libgomp.c/atomic-10.c: Ditto.
10001 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10003 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10004 dg-final cleanup-modules line.
10005 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10006 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10007 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10008 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10009 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10010 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10011 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10013 2007-03-18 Andreas Schwab <schwab@suse.de>
10015 * acinclude.m4: Adjust regular expression for ld version
10017 * configure: Regenerate.
10019 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10021 * Makefile.am: Add install-pdf target as copied from
10022 automake v1.10 rules.
10023 * Makefile.in: Regenerate
10025 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10028 * configure: Regenerate.
10031 * testsuite/libgomp.c++/pr30703.C: New test.
10033 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10036 2006-07-05 Eric Christopher <echristo@apple.com>
10037 * configure.ac: Depend addition of -pthread on host OS.
10038 * configure: Regenerate.
10040 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10042 * libgomp.texi: Fix spacing after abbreviations.
10044 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
10047 * configure.ac: Add check for makeinfo
10048 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10049 if an appropiate version of makeinfo is found.
10050 * aclocal.m4: Regenerated.
10051 * configure: Regenerated.
10052 * Makefile.in: Regenerated.
10053 * testsuite/Makefile.in: Regenerated.
10055 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
10058 * libgomp.texi: More about implementation-dependent settings.
10060 2007-01-26 Tobias Burnus <burnus@net-b.de>
10062 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10064 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10066 PR middle-end/30494
10067 * testsuite/libgomp.c/pr30494.c: New test.
10069 2007-01-15 Tom Tromey <tromey@redhat.com>
10071 * configure: Rebuilt.
10072 * configure.ac: Fixed comment.
10074 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
10076 * libgomp.texi: Document implementation specific default values of
10077 environment variables.
10079 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
10082 * libgomp.texi: New file.
10083 * configure.ac: Add --enable-generated-files-in-srcdir option.
10084 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10086 * Makefile.in: Regenerated.
10087 * config.h.in: Regenerated.
10088 * testsuite/Makefile.in: Regenerated.
10091 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
10094 * env.c (omp_set_num_threads): Set illegal thread count to 1.
10096 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10098 * configure: Regenerate.
10100 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10103 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
10104 start if there shouldn't be any loop iterations.
10105 (gomp_loop_ordered_static_start): Remove start == end test.
10106 * testsuite/libgomp.c/pr29947-1.c: New test.
10107 * testsuite/libgomp.c/pr29947-2.c: New test.
10109 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10111 * configure.tgt: Force initial-exec TLS model on Linux only.
10113 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
10115 * configure: Regenerated.
10117 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
10119 * env.c (parse_schedule): Reject out of range values.
10120 (parse_unsigned_long): Reject out of range, negative or zero values.
10122 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10125 * testsuite/libgomp.fortran/pr29629.f90: New test.
10127 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10130 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10131 * config/posix95: New directory.
10132 * config/posix95/omp-lock.h: New file.
10133 * config/posix95/lock.c: Likewise.
10135 2006-10-14 Geoffrey Keating <geoffk@apple.com>
10137 * aclocal.m4: Regenerate.
10138 * configure: Regenerate.
10140 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10142 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10145 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10147 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10149 * configure: Regenerate.
10150 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10152 2006-09-26 Jakub Jelinek <jakub@redhat.com>
10154 PR middle-end/25261
10155 PR middle-end/28790
10156 * testsuite/libgomp.c/nestedfn-4.c: New test.
10157 * testsuite/libgomp.c/nestedfn-5.c: New test.
10158 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10161 * testsuite/libgomp.fortran/condinc1.f: New test.
10162 * testsuite/libgomp.fortran/condinc2.f: New test.
10163 * testsuite/libgomp.fortran/condinc3.f90: New test.
10164 * testsuite/libgomp.fortran/condinc4.f90: New test.
10165 * testsuite/libgomp.fortran/condinc1.inc: New file.
10167 2006-09-18 Tom Tromey <tromey@redhat.com>
10169 * configure: Rebuilt.
10171 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
10174 PR preprocessor/14634
10175 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10177 * configure: Regenerate.
10179 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
10181 * testsuite/libgomp.fortran/reduction3.f90: Change
10182 -2147483648 to -huge(i)-1 to avoid overflow.
10183 * testsuite/libgomp.fortran/reduction4.f90: Change
10184 Z'ffffffff' to not(0) to avoid overflow.
10186 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
10189 * Makefile.am (libsubincludedir): New.
10190 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
10191 * Makefile.in: Regenerate.
10193 2006-08-17 Jakub Jelinek <jakub@redhat.com>
10196 * env.c: Include ctype.h.
10197 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
10198 leading and/or trailing whitespace and compare strings case
10201 2006-07-16 Jakub Jelinek <jakub@redhat.com>
10204 * testsuite/libgomp.fortran/pr28390.f: New test.
10206 2006-07-05 Eric Christopher <echristo@apple.com>
10208 * configure.ac: Depend addition of -pthread on host OS.
10209 * configure: Regenerate.
10211 2006-06-21 Jakub Jelinek <jakub@redhat.com>
10213 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
10214 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
10217 2006-06-20 Jakub Jelinek <jakub@redhat.com>
10221 * configure.ac: If neither --enable-linux-futex nor
10222 --disable-linux-futex is passed, determine the default by checking
10223 for compiling and/or running against NPTL. With --enable-linux-futex,
10224 check if SYS_gettid and SYS_futex are defined.
10225 * configure: Rebuilt.
10227 2006-06-14 Richard Henderson <rth@redhat.com>
10230 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
10231 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
10233 2006-06-09 Richard Henderson <rth@redhat.com>
10235 * env.c (gomp_nthreads_var): Change to unsigned long.
10236 (gomp_run_sched_chunk): Likewise.
10237 (parse_unsigned_long): Rename from parse_num_threads and generalize.
10238 (initialize_env): Initialize gomp_thread_attr.
10239 * libgomp.h (gomp_nthreads_var): Update decl.
10240 (gomp_run_sched_chunk): Likewise.
10241 (gomp_thread_attr): Declare.
10242 * team.c (gomp_thread_attr): Export.
10243 (initialize_team): Don't initialize it.
10245 2006-06-09 Jakub Jelinek <jakub@redhat.com>
10248 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
10249 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
10251 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10253 * config/mingw32/time.c: New file.
10254 * configure.tgt: Use it.
10256 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
10258 * Makefile.am: Add install-html target. Add install-html to .PHONY
10259 * Makefile.in: Regenerate.
10261 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10264 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
10265 * testsuite/libgomp.c/critical-1.c: Likewise.
10266 * testsuite/libgomp.c/loop-1.c: Likewise.
10267 * testsuite/libgomp.c/loop-2.c: Likewise.
10268 * testsuite/libgomp.c/single-1.c: Likewise.
10269 * testsuite/libgomp.c/ordered-1.c: Likewise.
10270 * testsuite/libgomp.c/ordered-2.c: Likewise.
10272 2006-05-15 Jakub Jelinek <jakub@redhat.com>
10274 PR middle-end/27416
10275 * libgomp.fortran/pr27416-1.f90: New test.
10277 2006-05-03 Jakub Jelinek <jakub@redhat.com>
10280 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
10281 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
10283 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10286 * testsuite/libgomp.c/pr26943-1.c: New test.
10287 * testsuite/libgomp.c/pr26943-2.c: New test.
10288 * testsuite/libgomp.c/pr26943-3.c: New test.
10289 * testsuite/libgomp.c/pr26943-4.c: New test.
10290 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
10291 * testsuite/libgomp.c++/pr26943.C: New test.
10293 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10295 PR middle-end/27337
10296 * testsuite/libgomp.c++/pr27337.C: New test.
10298 2006-04-26 Jakub Jelinek <jakub@redhat.com>
10301 * testsuite/libgomp.c/pr26171.c: New test.
10303 2006-04-25 Richard Henderson <rth@redhat.com>
10306 * configure.ac: Use GCC_CHECK_TLS.
10307 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10308 * Makefile.in, aclocal.m4, configure: Regenerate.
10310 2006-04-10 Matthias Klose <doko@debian.org>
10312 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10313 directory names containing underscores.
10315 2006-03-21 Jakub Jelinek <jakub@redhat.com>
10318 * testsuite/libgomp.c++/pr26691.C: New test.
10320 2006-03-13 Jakub Jelinek <jakub@redhat.com>
10322 * testsuite/libgomp.fortran/retval2.f90: New test.
10324 2006-03-09 Diego Novillo <dnovillo@redhat.com>
10326 * testsuite/libgomp.c++: New directory.
10328 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
10330 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10331 * config/posix/sem.c: Implement the above.
10333 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
10335 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10336 define HAVE_BROKEN_POSIX_SEMAPHORES.
10337 * configure: Rebuilt.
10338 * config.h.in: Rebuilt.
10340 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10343 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10344 for the other pthread check.
10345 * configure: Regenerate.
10346 * config.h.in: Regenerate.
10348 2006-02-15 Jakub Jelinek <jakub@redhat.com>
10352 * Makefile.am (fincludedir): New variable.
10353 (nodist_include_HEADERS): Remove Fortran files.
10354 (nodist_finclude_HEADERS): New variable.
10355 * Makefile.in: Regenerated.
10357 2006-02-13 Jakub Jelinek <jakub@redhat.com>
10359 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10360 Remove tests for returning assumed character length arrays.
10362 2006-02-12 Roger Sayle <roger@eyesopen.com>
10363 John David Anglin <dave@hiauly1.hia.nrc.ca>
10366 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10368 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10370 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10372 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10374 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10375 part of LD_LIBRARY_PATH manually.
10377 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
10380 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10383 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
10386 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10387 * configure.ac (PERL): Don't set.
10388 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10389 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10390 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10391 * omp.h.in: Wrap the new configure substitutions with @ characters.
10392 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10393 * aclocal.m4, configure, Makefile.in: Regenerate.
10394 * mkomp_h.pl: Delete.
10396 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
10399 * configure.ac: Use GCC_HEADER_STDINT.
10400 * libgomp.h: Include gstdint.h.
10401 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10402 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10404 2006-01-24 Richard Henderson <rth@redhat.com>
10407 * configure.ac: Add AM_MAINTAINER_MODE.
10408 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10410 2006-01-24 Diego Novillo <dnovillo@redhat.com>
10412 * Makefile.in: Regenerate.
10413 * testsuite/Makefile.in: Regenerate.
10414 * aclocal.m4: Regenerate.
10416 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
10418 * config/posix/proc.c: Conditional include of sys/loadavg.h for
10420 * configure.ac: Add check for loadavg.h.
10421 (link_gomp): Adjust comment.
10422 * configure: Regenerate.
10423 * config.h.in: Regenerate.
10425 2006-01-21 Steve Ellcey <sje@cup.hp.com>
10428 * configure.ac: Remove check for alloca.h.
10429 * configure: Regenerate.
10430 * config.h.in: Regenerate.
10431 * libgomp.h: define gomp_alloca to be __builtin_alloca.
10432 * team.c: Remove use of alloca.h.
10433 Call gomp_alloca instead of alloca.
10435 2006-01-20 Steve Ellcey <sje@cup.hp.com>
10438 * team.c: Add include of alloca.h.
10439 * configure.ac: Add check for alloca.h.
10440 * configure: Regenerate.
10441 * config.h.in: Regenerate.
10443 2006-01-17 Jakub Jelinek <jakub@redhat.com>
10446 * testsuite/libgomp.fortran/pr25219.f90: New test.
10448 2005-12-05 Uros Bizjak <uros@kss-loka.si>
10450 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10451 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10452 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10453 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10454 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10455 testsuite/libgomp.fortran/threadprivate1.f90,
10456 testsuite/libgomp.fortran/threadprivate2.f90,
10457 testsuite/libgomp.fortran/threadprivate3.f90,
10458 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10459 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10460 testsuite/libgomp.fortran/omp_parse3.f90: Change required
10461 effective-target to TLS runtime.
10463 * testsuite/libgomp.fortran/pr25162.f: Require
10464 effective-target TLS runtime.
10466 2005-12-01 Jakub Jelinek <jakub@redhat.com>
10468 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10469 * testsuite/libgomp.c/nestedfn-3.c: New test.
10471 2005-11-30 Jakub Jelinek <jakub@redhat.com>
10474 * testsuite/libgomp.fortran/pr25162.f: New test.
10476 2005-11-28 Jakub Jelinek <jakub@redhat.com>
10478 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10479 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10481 2005-11-25 Jakub Jelinek <jakub@redhat.com>
10483 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10484 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10485 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10486 single.c, team.c, work.c, config/linux/alpha/futex.h,
10487 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10488 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10489 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10490 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10491 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10492 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10493 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10496 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10498 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10499 to nodist_noinst_HEADERS.
10500 * Makefile.in: Rebuilt.
10502 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10503 add integer count field.
10504 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10505 omp_nest_lock_t type change.
10506 (omp_init_nest_lock): Likewise. Initialize count to 0.
10507 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10509 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10511 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10512 Increment count if successful and return the new nesting level.
10513 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10514 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10515 * testsuite/libgomp.c/lib-1.c: New test.
10516 * testsuite/libgomp.fortran/lib1.f90: New test.
10517 * testsuite/libgomp.fortran/lib2.f: New test.
10518 * testsuite/libgomp.fortran/lib3.f: New test.
10520 2005-11-17 Richard Henderson <rth@redhat.com>
10523 * Makefile.am (nodist_toolexeclib_HEADERS): New.
10524 * configure.ac (link_gomp): New. Substitute it.
10525 (AC_CONFIG_FILES): Add libgomp.spec.
10526 * libgomp.spec.in: New file.
10527 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10528 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10530 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10532 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10533 reduction(-:var) behaving the same as reduction(+:var).
10534 * testsuite/libgomp.c/reduction-4.c: New test.
10536 2005-11-15 Uros Bizjak <uros@kss-loka.si>
10538 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10539 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10540 testsuite/libgomp.c/copyin-3.c,
10541 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10542 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10543 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10544 testsuite/libgomp.c++/pr24455.C,
10545 testsuite/libgomp.fortran/threadprivate1.f90,
10546 testsuite/libgomp.fortran/threadprivate2.f90,
10547 testsuite/libgomp.fortran/threadprivate3.f90,
10548 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10549 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10550 testsuite/libgomp.fortran/omp_parse3.f90: Require
10551 effective-target TLS.
10553 2005-11-14 Diego Novillo <dnovillo@redhat.com>
10557 2005-11-13 Jakub Jelinek <jakub@redhat.com>
10560 * team.c (initialize_team): Pass NULL rather than free as
10561 pthread_key_create destructor. Initialize thread specific data
10562 pointer in initial thread to a static local variable rather than
10565 2005-11-11 Uros Bizjak <uros@kss-loka.si>
10567 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10568 its location to ld_library_path.
10570 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10572 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10574 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10576 * testsuite/libgomp.c: Rename from libgomp.dg.
10578 2005-11-09 Diego Novillo <dnovillo@redhat.com>
10580 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10581 threadprivate variable 'i'.
10583 2005-11-09 Jakub Jelinek <jakub@redhat.com>
10585 * config/linux/s390/futex.h: New file.
10586 * configure.tgt: Use it.
10588 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10589 before the parallel.
10591 2005-11-08 Jakub Jelinek <jakub@redhat.com>
10594 * testsuite/libgomp.c++/master-1.C: New test.
10596 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10598 * testsuite/libgomp.dg/copyin-3.c: New test.
10600 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10602 * testsuite/libgomp.fortran/retval1.f90: New test.
10603 * testsuite/libgomp.fortran/vla7.f90: New test.
10605 2005-11-06 Jakub Jelinek <jakub@redhat.com>
10607 * testsuite/libgomp.fortran/vla2.f90: New test.
10608 * testsuite/libgomp.fortran/vla3.f90: New test.
10609 * testsuite/libgomp.fortran/vla4.f90: New test.
10610 * testsuite/libgomp.fortran/vla5.f90: New test.
10611 * testsuite/libgomp.fortran/vla6.f90: New test.
10613 2005-11-01 Jakub Jelinek <jakub@redhat.com>
10615 * config/linux/sparc/futex.h: New file.
10616 * configure.tgt: Use it.
10617 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10619 * critical.c: Include stdlib.h.
10620 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10621 ignoring return value.
10622 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10623 LIBGOMP_CHECK_SYNC_BUILTINS check.
10624 * configure: Rebuilt.
10626 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10628 * testsuite/libgomp.fortran/vla1.f90: New test.
10630 2005-10-31 Richard Henderson <rth@redhat.com>
10632 * testsuite/libgomp.fortran/character2.f90: Fix race condition
10633 setting 's' in different threads.
10635 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10637 * libgomp.h (attribute_hidden, ialias): Define.
10638 * config/posix/proc.c (omp_get_num_procs): Add ialias.
10639 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10640 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10641 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10642 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10643 omp_test_lock, omp_test_nest_lock): Likewise.
10644 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10645 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10646 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10647 omp_test_lock, omp_test_nest_lock): Likewise.
10648 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10649 omp_get_dynamic, omp_get_nested): Likewise.
10650 * parallel.c (omp_get_num_threads, omp_get_max_threads,
10651 omp_get_thread_num, omp_in_parallel): Likewise.
10652 * fortran.c (ialias_redirect): Define.
10653 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10654 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10655 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10656 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10657 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10658 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10659 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10660 omp_get_wtime): Add ialias_redirect.
10662 2005-10-30 Jakub Jelinek <jakub@redhat.com>
10664 * fortran.c: Include stdlib.h.
10666 2005-10-29 Jakub Jelinek <jakub@redhat.com>
10668 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10669 * Makefile.in: Regenerated.
10671 2005-10-28 Jakub Jelinek <jakub@redhat.com>
10673 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10674 * libgomp_f.h.in (omp_check_defines): New function.
10675 * env.c: Include libgomp_f.h.
10676 (initialize_env): Call omp_check_defines.
10678 * testsuite/libgomp.dg/copyin-2.c: New test.
10679 * testsuite/libgomp.c++/copyin-2.C: New test.
10680 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10682 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10683 * testsuite/libgomp.fortran/sharing2.f90: New test.
10685 * testsuite/libgomp.dg/copyin-1.c: New test.
10686 * testsuite/libgomp.c++/copyin-1.C: New test.
10688 2005-10-26 Jakub Jelinek <jakub@redhat.com>
10690 * testsuite/libgomp.fortran/crayptr1.f90: New test.
10692 * testsuite/libgomp.fortran/workshare1.f90: New test.
10694 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10696 * libgomp.fortran/sharing1.f90: New test.
10698 2005-10-24 Jakub Jelinek <jakub@redhat.com>
10701 * testsuite/libgomp.c++/loop-7.C: New test.
10703 * testsuite/libgomp.dg/nestedfn-2.c: New test.
10705 * testsuite/libgomp.dg/nestedfn-1.c: New test.
10706 * testsuite/libgomp.fortran/reduction6.f90: New test.
10707 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10709 2005-10-23 Richard Henderson <rth@redhat.com>
10711 * testsuite/libgomp.c++/ctor-1.C: New.
10712 * testsuite/libgomp.c++/ctor-2.C: New.
10713 * testsuite/libgomp.c++/ctor-3.C: New.
10714 * testsuite/libgomp.c++/ctor-4.C: New.
10715 * testsuite/libgomp.c++/ctor-5.C: New.
10716 * testsuite/libgomp.c++/ctor-6.C: New.
10717 * testsuite/libgomp.c++/ctor-7.C: New.
10718 * testsuite/libgomp.c++/ctor-8.C: New.
10719 * testsuite/libgomp.c++/ctor-9.C: New.
10721 2005-10-21 Diego Novillo <dnovillo@redhat.com>
10724 * testsuite/libgomp.c++/pr24455-1.C: New test.
10725 * testsuite/libgomp.c++/pr24455.C: New test.
10726 * testsuite/libgomp.dg/pr24455-1.c: New test.
10727 * testsuite/libgomp.dg/pr24455.c: New test.
10729 2005-10-20 Richard Henderson <rth@redhat.com>
10731 * testsuite/libgomp.c++/loop-6.C: New.
10732 * testsuite/libgomp.dg/loop-3.c: New.
10734 2005-10-20 Jakub Jelinek <jakub@redhat.com>
10736 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10737 explicitly private.
10738 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10741 2005-10-19 Diego Novillo <dnovillo@redhat.com>
10743 * testsuite/libgomp.fortran/jacobi.f: New test.
10745 2005-10-19 Richard Henderson <rth@redhat.com>
10747 * configure.tgt (i?86-linux): Default to with_arch instead of
10748 CFLAGS. Add -mtune to match target_cpu.
10749 (x86_64-linux): Tune to i686.
10751 * fortran.c (omp_test_nest_lock_): Fix typo.
10753 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10755 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10756 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10757 * testsuite/libgomp.dg/ordered-3.c: New test.
10759 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10760 Remove volatile keyword.
10762 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10763 in COMMON block to avoid warnings on 64-bit targets.
10765 2005-10-18 Diego Novillo <dnovillo@redhat.com>
10767 * testsuite/libgomp.dg/shared-3.c: New test.
10769 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10771 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10772 * testsuite/libgomp.fortran/reduction5.f90: New test.
10774 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10776 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10778 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
10779 flush loop now that __sync_synchronize has proper memory barrier.
10780 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10781 Add -ffixed-form to dg-options.
10783 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10785 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10786 from subdirectories.
10787 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10788 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10789 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10790 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10791 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10792 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10793 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10794 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10795 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10796 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10797 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10798 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10799 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10800 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10801 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10802 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10803 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
10804 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
10805 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
10806 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
10807 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
10808 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
10809 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
10810 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
10811 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
10813 2005-10-17 Jakub Jelinek <jakub@redhat.com>
10815 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
10816 lang_library_path exists. Use find instead of glob to gather tests.
10817 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
10819 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10821 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
10822 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
10823 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
10824 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
10825 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
10826 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
10827 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
10828 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
10829 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
10830 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
10831 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
10832 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
10833 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
10835 2005-10-15 Jakub Jelinek <jakub@redhat.com>
10837 * testsuite/libgomp.dg/vla-1.c: New test.
10839 * testsuite/libgomp.fortran/reference2.f90: New test.
10841 * testsuite/libgomp.fortran/character2.f90: Remove explicit
10842 declaration of omp_get_thread_num.
10843 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
10846 * testsuite/libgomp.fortran/reduction1.f90: New test.
10847 * testsuite/libgomp.fortran/reduction2.f90: New test.
10848 * testsuite/libgomp.fortran/reduction3.f90: New test.
10849 * testsuite/libgomp.fortran/reduction4.f90: New test.
10851 2005-10-13 Richard Henderson <rth@redhat.com>
10853 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
10854 * Makefile.in: Regenerate.
10855 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
10856 * libgomp.h: Include bar.h.
10857 (struct gomp_barrier): Remove.
10858 (struct gomp_team): Add barrier. Replace master_barrier with
10859 master_release. Replace threads with ordered_release.
10860 (struct gomp_thread): Replace barrier with release.
10861 * ordered.c (gomp_ordered_first): Update for ordered_release change.
10862 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
10863 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
10864 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
10865 (GOMP_single_copy_end): Likewise.
10866 * team.c (gomp_threads_dock): New.
10867 (gomp_barrier_init, gomp_barrier_destroy): Remove.
10868 (gomp_thread_start): Use gomp_barrier_wait.
10869 (new_team, free_team): Update for gomp_team changes.
10870 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
10871 (gomp_team_end): Use gomp_barrier_wait.
10872 (initialize_team): Update for gomp_thread changes.
10873 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
10874 (gomp_work_share_end_nowait): Use atomic ops when available.
10875 * config/linux/bar.c, config/linux/bar.h: New files.
10876 * config/posix/bar.c, config/posix/bar.h: New files.
10878 2005-10-13 Jakub Jelinek <jakub@redhat.com>
10880 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
10881 * testsuite/libgomp.dg/single-2.c: New test.
10883 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
10884 lang_link_flags): Unset, so that they aren't inherited from previously
10887 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
10889 2005-10-12 Richard Henderson <rth@redhat.com>
10891 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
10892 (libgomp_init): Use lang_test_file, lang_library_path, and
10893 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
10895 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
10896 (lang_test_file, lang_link_flags): New.
10897 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
10899 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
10900 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
10901 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
10902 testsuite/libgomp.c++/parallel-1.C,
10903 testsuite/libgomp.c++/reduction-1.C,
10904 testsuite/libgomp.c++/reduction-2.C,
10905 testsuite/libgomp.c++/reduction-3.C,
10906 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
10907 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
10908 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
10909 New files, largely cribbed from the C testsuite.
10911 2005-10-12 Jakub Jelinek <jakub@redhat.com>
10913 * testsuite/libgomp.fortran/character1.f90: New test.
10914 * testsuite/libgomp.fortran/character2.f90: New test.
10916 * testsuite/libgomp.dg/nested-1.c: New test.
10917 * testsuite/libgomp.dg/nested-2.c: New test.
10918 * testsuite/libgomp.fortran/do1.f90: New test.
10919 * testsuite/libgomp.fortran/do2.f90: New test.
10921 * testsuite/libgomp.fortran/reference1.f90: New test.
10923 2005-10-11 Jakub Jelinek <jakub@redhat.com>
10925 * testsuite/libgomp.dg/reduction-1.c: New test.
10926 * testsuite/libgomp.dg/reduction-2.c: New test.
10927 * testsuite/libgomp.dg/reduction-3.c: New test.
10929 2005-10-10 Jakub Jelinek <jakub@redhat.com>
10931 * testsuite/libgomp.dg/atomic-1.c: New test.
10932 * testsuite/libgomp.dg/atomic-2.c: New test.
10934 2005-10-09 Richard Henderson <rth@redhat.com>
10936 * critical.c (atomic_lock): New.
10937 (initialize_critical): Initialize it.
10938 (GOMP_atomic_start, GOMP_atomic_end): New.
10939 * libgomp.map: Export them.
10940 * libgomp_g.h: Declare them.
10942 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
10944 2005-10-02 Richard Henderson <rth@redhat.com>
10946 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
10947 to XCFLAGS instead of CFLAGS.
10949 2005-09-30 Richard Henderson <rth@redhat.com>
10951 * configure.ac: Determine whether -pthread or -lpthread is needed.
10952 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
10953 * Makefine.in, configure: Rebuild.
10955 2005-09-28 Richard Henderson <rth@redhat.com>
10957 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
10958 * testsuite/libgomp.dg/omp-single-3.c: New test.
10960 2005-09-28 Diego Novillo <dnovillo@redhat.com>
10962 * testsuite/libgomp.dg/omp-single-2.c: New test.
10963 * testsuite/libgomp.dg/shared-2.c: Fix return code.
10965 2005-09-27 Richard Henderson <rth@redhat.com>
10967 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
10968 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
10970 2005-09-27 Jakub Jelinek <jakub@redhat.com>
10972 * testsuite/libgomp.dg/omp-loop03.c: New test.
10974 2005-09-27 Diego Novillo <dnovillo@redhat.com>
10976 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
10978 2005-09-27 Diego Novillo <dnovillo@redhat.com>
10980 * testsuite/libgomp.dg/omp-single-1.c: New test.
10981 * testsuite/libgomp.dg/shared-1.c: Return 0.
10982 Add prototype for abort.
10983 * testsuite/libgomp.dg/shared-2.c: Likewise.
10985 2005-09-26 Jakub Jelinek <jakub@redhat.com>
10987 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
10990 2005-09-26 Diego Novillo <dnovillo@redhat.com>
10992 * testsuite/libgomp.dg/shared-1.c: New test.
10993 * testsuite/libgomp.dg/shared-2.c: New test.
10995 2005-09-24 Richard Henderson <rth@redhat.com>
10997 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
10999 2005-09-24 Richard Henderson <rth@redhat.com>
11001 * iter.c (gomp_iter_static_next): Round up when computing number
11002 of iterations. Don't bother distributing a remainder equally.
11004 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11005 Don't call srand. Zero b before testing.
11008 2005-09-24 Jakub Jelinek <jakub@redhat.com>
11010 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11011 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11013 2005-09-23 Jakub Jelinek <jakub@redhat.com>
11015 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11016 without !$omp end do, followed immediately by subroutine end.
11018 2005-09-23 Diego Novillo <dnovillo@redhat.com>
11020 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11022 2005-09-22 Richard Henderson <rth@redhat.com>
11024 * critical.c (GOMP_critical_name_start): Change argument to void**.
11025 Reuse the pointer space if the mutex fits.
11026 (GOMP_critical_name_end): Likewise.
11027 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11028 * libgomp_g.h (GOMP_critical_name_start): Update decl.
11029 (GOMP_critical_name_end): Likewise.
11030 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11031 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11033 2005-09-20 Richard Henderson <rth@redhat.com>
11035 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11036 (create_lock_lock): New.
11037 (initialize_critical): Initialize it.
11038 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11039 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11041 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11043 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11045 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11047 * testsuite/libgomp.dg/omp-loop01.c: New test.
11048 * testsuite/libgomp.dg/omp-loop02.c: New test.
11050 2005-09-20 Jakub Jelinek <jakub@redhat.com>
11052 * configure.ac (AC_PROG_FC): Add.
11053 (USE_FORTRAN): New automake conditional.
11054 * configure: Rebuilt.
11055 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11056 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11057 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11058 Add rules to build them.
11059 * Makefile.in: Rebuilt.
11060 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11061 OMP_NEST_LOCK_KIND.
11062 * libgomp.map: Add Fortran wrappers.
11063 * libgomp_f.h.in: New file.
11064 * omp_lib.h.in: New file.
11065 * omp_lib.f90.in: New file.
11066 * fortran.c: New file.
11067 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11068 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11069 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11070 libgfortran has been built.
11071 * testsuite/libgomp.fortran/fortran.exp: New file.
11072 * testsuite/libgomp.fortran/omp_cond1.f: New test.
11073 * testsuite/libgomp.fortran/omp_cond2.f: New test.
11074 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11075 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11076 * testsuite/libgomp.fortran/omp_hello.f: New test.
11077 * testsuite/libgomp.fortran/omp_orphan.f: New test.
11078 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11079 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11080 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11081 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11082 * testsuite/libgomp.fortran/omp_reduction.f: New test.
11083 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11084 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11086 2005-08-30 Richard Henderson <rth@redhat.com>
11088 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11089 function for when aliases are not usable.
11090 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11091 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11092 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11093 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11094 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11095 GOMP_loop_ordered_guided_next): Likewise.
11096 * ordered.c (GOMP_ordered_start): Likewise.
11098 2005-08-01 Diego Novillo <dnovillo@redhat.com>
11100 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11101 * testsuite/libgomp.dg/omp_hello.c: Fix return code
11102 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11103 * testsuite/libgomp.dg/omp_orphan.c: Likewise
11104 * testsuite/libgomp.dg/omp_reduction.c: Likewise
11105 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11106 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11107 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11108 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11110 2005-07-07 Eric Christopher <echristo@redhat.com>
11111 Diego Novillo <dnovillo@redhat.com>
11113 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11114 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11116 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11117 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11118 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11119 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11120 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11121 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11122 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11124 2005-06-13 Diego Novillo <dnovillo@redhat.com>
11126 * TOPLEVEL.patch: Remove.
11128 2005-05-16 Richard Henderson <rth@redhat.com>
11130 * configure.ac: Test for clock_gettime.
11131 * config.h.in, configure: Rebuild.
11132 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11133 (omp_get_wtime): Use clock_gettime if available.
11134 (omp_get_wtick): Use clock_getres if available.
11136 2005-05-11 Richard Henderson <rth@redhat.com>
11138 * config/linux/ia64/futex.h: New file.
11139 * configure.tgt: Use it.
11141 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11143 2005-05-07 Richard Henderson <rth@redhat.com>
11145 * config/linux/powerpc/futex.h: New file.
11146 * configure.tgt: Use it.
11148 * config/linux/i486/futex.h: Merge ...
11149 * config/linux/x86_64/futex.h: ... into ...
11150 * config/linux/x86/futex.h: ... here.
11151 * configure.tgt: Update to match.
11153 2005-05-06 Richard Henderson <rth@redhat.com>
11155 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11156 * config/linux/i486/futex.h: Likewise.
11157 * config/linux/x86_64/futex.h: Likewise.
11159 * config/linux/lock.c: New file.
11160 * config/linux/omp-lock.h: New file.
11162 * critical.c, env.h: Don't include omp.h
11163 * config/posix/lock.c: Include libgomp.h instead of omp.h.
11164 * config/posix/time.c: Likewise.
11165 * config/posix/omp-lock.h: New file.
11166 * libgomp.h: Include omp-lock.h and omp.h.
11167 * Makefile.am (nodist_include_HEADERS): New.
11169 * configure.ac (PERL): New.
11170 * mkomp_h.pl: New file.
11171 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11173 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11175 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11176 build directory. Re-add -march=i486 hack.
11178 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
11179 (libgomp_link_flags): Remove.
11180 (libgomp_initialized): Remove.
11181 (libgomp_init): Don't protect from reinitialization. Copy code
11182 from libstdc++ for getting the multilib set correctly.
11184 2005-05-05 Richard Henderson <rth@redhat.com>
11186 * config/linux/alpha/futex.h: New file.
11187 * configure.tgt (alpha*-*-linux*): Use it.
11189 * config/posix/mutex.c: New file.
11190 * config/posix/sem.c: Use libgomp.h.
11192 * configure.tgt (x86_64-linux): Also test CC for -m32.
11193 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
11195 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
11198 * Makefile.am (SUBDIRS): New.
11199 (libgomp_la_LDFLAGS): Add -lpthread.
11200 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
11201 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
11203 * libgomp_g.h: New file.
11204 * libgomp.h: Split out all public declarations to libgomp_g.h.
11205 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
11206 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
11207 * config/linux/sem.h: Likewise.
11208 * config/posix/sem.h: Likewise.
11210 * Makefile.am (AM_LDFLAGS): New.
11211 (libgomp_version_script): Split out from ...
11212 (libgomp_la_LDFLAGS): ... here.
11213 (libgomp_version_info): New.
11214 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
11215 (LIBGOMP_ENABLE): New.
11216 (LIBGOMP_CHECK_LINKER_FEATURES): New.
11217 (LIBGOMP_ENABLE_SYMVERS): New.
11218 * configure.ac (AC_INIT): Version 1.0.
11219 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
11220 (enable-linux-futex): Likewise. Rename from enable-futex.
11221 (libtool_VERSION): New.
11222 (LIBGOMP_ENABLE_SYMVERS): Use it.
11223 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
11224 * Makefile.in, aclocal.m4, configure: Rebuild.
11226 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
11227 (gomp_mutex_unlock_slow): Fix typo.
11228 * config/linux/sem.c: Similarly.
11229 (gomp_sem_post_slow): Fix typo.
11230 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
11231 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
11232 [__PIC__] (sys_futex0): Don't use tmp output in asm.
11234 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
11235 (libgomp_la_LDFLAGS): Add top_srcdir to path.
11236 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
11237 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
11238 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
11239 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
11240 LDFLAGS. Pull enable_futex check to top-level.
11241 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
11242 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
11244 First attempt at real configury.
11245 * Makefile, config.h: Remove file.
11246 * Makefile.am, Makefile.in: New file.
11247 * acinclude.m4 aclocal.m4: New file.
11248 * configure.ac, configure.tgt, configure: New file.
11250 * config/posix/lock.c: Rename from sys-lock.c.
11251 * config/posix/mutex.h: Rename from sys-mutex.h.
11252 * config/posix/sem.c: Rename from sys-sem.c.
11253 * config/posix/sem.h: Rename from sys-sem.h.
11254 * config/posix/proc.c: Rename from sys-proc.c.
11255 * config/posix/time.c: Rename from sys-proc.c.
11257 * config/linux/mutex.c: New file.
11258 * config/linux/mutex.h: New file.
11259 * config/linux/sem.c: New file.
11260 * config/linux/sem.h: New file.
11261 * config/linux/i486/futex.h: New file.
11262 * config/linux/x86_64/futex.h: New file.
11264 2005-05-04 Richard Henderson <rth@redhat.com>
11266 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
11267 * libgomp.h: Declare them.
11268 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
11269 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
11271 2005-05-04 Richard Henderson <rth@redhat.com>
11273 * libgomp-1 code drop
11275 2005-05-04 Richard Henderson <rth@redhat.com>
11277 * iter.c (gomp_iter_static_next): Return tri-state on 0.
11278 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
11279 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
11280 (gomp_iter_static_next): Update.
11281 (gomp_ordered_static_next): Update.
11282 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
11283 (gomp_loop_ordered_static_start): Likewise. Exit early for a
11284 totally empty range.
11285 (gomp_loop_ordered_static_next): Refine test for calling
11286 gomp_ordered_static_next.
11287 * testsuite/ordered-1.c: Add case for more threads than iterations.
11289 * iter.c (gomp_iter_runtime_next_locked): Remove.
11290 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
11291 gomp_loop_guided_start, gomp_loop_ordered_static_start,
11292 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
11293 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
11294 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
11295 gomp_loop_ordered_guided_next): Downcase name, make static, add
11296 an external alias with the old name.
11297 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11298 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
11299 switch and call one of the above static functions.
11300 * libgomp.h: Update.
11302 * work.c (gomp_work_share_start): Lock the mutex for !first too.
11303 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11304 GOMP_loop_guided_start, GOMP_loop_runtime_start,
11305 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11306 GOMP_loop_ordered_guided_start): Update to match.
11307 * sections.c (GOMP_sections_start): Likewise.
11308 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11310 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11311 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11312 Use bounds check instead of modulus.
11313 (gomp_ordered_sync): Split out of GOMP_ordered_start.
11314 (gomp_ordered_last): Don't sync with ordered_owner here.
11315 (gomp_ordered_next): Likewise.
11316 (gomp_ordered_static_loop_next): Likewise.
11317 * loop.c, libgomp.h: Update to match.
11319 * libgomp.h (GOMP_barrier): Declare.
11321 * testsuite/barrier-1.c: New file.
11322 * testsuite/critical-1.c: New file.
11323 * testsuite/ordered-2.c: New file.
11324 * testsuite/ordered-1.c: New file.
11325 * testsuite/sections-1.c: New file.
11326 * testsuite/single-1.c: New file.
11327 * testsuite/Makefile (TESTS): Add them.
11329 2005-05-04 Richard Henderson <rth@redhat.com>
11331 * libgomp.h (struct gomp_work_share): Add ordered_owner.
11332 * loop.c (GOMP_loop_static_start): If not the startup thread,
11333 acquire the mutex to wait for initialization complete.
11334 (GOMP_loop_ordered_static_start): Likewise.
11335 (GOMP_loop_ordered_runtime_start): Likewise.
11336 (GOMP_loop_ordered_static_first): Remove.
11337 (GOMP_loop_ordered_dynamic_first): Remove.
11338 (GOMP_loop_ordered_guided_first): Remove.
11339 (GOMP_loop_ordered_runtime_first): Remove.
11340 * ordered.c (gomp_ordered_loop_first): Post to own release when
11341 we're the first thread.
11342 (gomp_ordered_loop_last): Wait on release if not owner.
11343 (gomp_ordered_loop_next): Likewise.
11344 (gomp_ordered_static_loop_init): New.
11345 (gomp_ordered_static_loop_next): Use ordered_owner.
11346 (GOMP_ordered_start): Likewise.
11347 * work.c (gomp_new_work_share): Initialize ordered_owner.
11349 2005-05-03 Richard Henderson <rth@redhat.com>
11351 * Makefile (OPT): New.
11354 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11355 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11356 * libgomp.h, libgomp.map, NOTES: Update to match.
11358 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11359 Add initialized and thr members.
11360 (gomp_thread_start): Pause when initially spawned to wait for
11361 the whole team to be created.
11362 (gomp_team_start): Release team members at the end.
11364 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
11365 (f_foo_1): Use GOMP_loop_end.
11366 (f_foo_2): Use GOMP_loop_end_nowait.
11368 * testsuite/loop-2.c: New file.
11369 * testsuite/Makefile (TESTS): Add it.
11371 2005-05-03 Richard Henderson <rth@redhat.com>
11373 * iter.c (gomp_iter_static_next): Fix overflow check typo.
11374 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11375 * team.c (new_team): Initialize oldest_live_gen to 1 if no
11376 initial work_share.
11378 * testsuite/Makefile: New file.
11379 * testsuite/loop-1.c: New file.
11381 2005-05-03 Richard Henderson <rth@redhat.com>
11383 Initial implementation and checkin.
11385 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11387 Copying and distribution of this file, with or without modification,
11388 are permitted in any medium without royalty provided the copyright
11389 notice and this notice are preserved.