1 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
3 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
6 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
11 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
12 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
13 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
14 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
17 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
20 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
22 2019-06-16 Tom de Vries <tdevries@suse.de>
24 PR tree-optimization/89376
25 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
27 2019-06-15 Tom de Vries <tdevries@suse.de>
29 PR tree-optimization/89713
30 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
31 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
33 2019-06-15 Jakub Jelinek <jakub@redhat.com>
36 * testsuite/libgomp.c/pr90779.c: New test.
37 * testsuite/libgomp.fortran/pr90779.f90: New test.
39 2019-06-15 Tom de Vries <tdevries@suse.de>
41 PR tree-optimization/90009
42 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
44 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
46 PR tree-optimization/89713
47 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
49 2019-06-11 Jakub Jelinek <jakub@redhat.com>
52 * testsuite/libgomp.c/pr90811.c: New test.
54 2019-06-05 Jakub Jelinek <jakub@redhat.com>
56 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
57 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
59 2019-06-04 Jakub Jelinek <jakub@redhat.com>
61 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
62 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
63 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
64 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
66 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
68 * configure.ac: Call AX_COUNT_CPUS.
70 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
72 * aclocal.m4: Regenerate.
73 * configure: Regenerate.
74 * Makefile.in, testsuite/Makefile.in: Regenerate.
76 2019-05-29 Jakub Jelinek <jakub@redhat.com>
78 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
80 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
81 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
82 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
84 2019-05-27 Jakub Jelinek <jakub@redhat.com>
86 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
88 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
91 * work.c (gomp_init_work_share): Instead of aligning final ordered
92 value to multiples of long long alignment, align to that the
93 first part (ordered team ids) and if inline_ordered_team_ids
94 is not on a long long alignment boundary within the structure,
95 use __alignof__ (long long) - 1 pad size always.
96 * loop.c (GOMP_loop_start): Fix *mem computation if
97 inline_ordered_team_ids is not aligned on long long alignment boundary
99 * loop-ull.c (GOMP_loop_ull_start): Likewise.
100 * sections.c (GOMP_sections2_start): Likewise.
102 2019-05-24 Jakub Jelinek <jakub@redhat.com>
104 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
105 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
108 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
109 HAVE_INTTYPES_H is defined.
110 (print_uint64_t): New typedef.
111 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
112 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
113 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
114 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
115 before casting to void *.
116 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
117 * oacc-mem.c: Don't include config.h nor stdint.h.
118 * target.c: Don't include config.h.
119 * oacc-cuda.c: Likewise.
120 * oacc-host.c: Don't include stdint.h.
122 2019-05-20 Jakub Jelinek <jakub@redhat.com>
125 * alloc.c (_GNU_SOURCE): Define.
127 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
129 * acc_prof.h: New file.
130 * oacc-profiling.c: Likewise.
131 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
132 Add these, respectively.
133 * Makefile.in: Regenerate.
134 * env.c (initialize_env): Call goacc_profiling_initialize.
135 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
136 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
137 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
138 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
139 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
140 acc_prof_register, acc_prof_unregister, and acc_register_library.
141 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
142 GOMP_PLUGIN_goacc_thread.
143 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
144 prof_callbacks_enabled members.
145 (goacc_prof_enabled, goacc_profiling_initialize)
146 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
147 (goacc_profiling_dispatch): Declare.
148 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
149 (GOACC_PROFILING_SETUP_P): Define.
150 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
151 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
152 OpenACC Profiling Interface.
153 * oacc-cuda.c (acc_get_current_cuda_device)
154 (acc_get_current_cuda_context, acc_get_cuda_stream)
155 (acc_set_cuda_stream): Likewise.
156 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
157 (acc_init, acc_set_device_type, acc_get_device_type)
158 (acc_get_device_num, goacc_lazy_initialize): Likewise.
159 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
160 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
161 (acc_unmap_data, present_create_copy, delete_copyout)
162 (update_dev_host): Likewise.
163 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
164 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
166 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
167 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
169 * libgomp.texi: Update.
170 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
172 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
173 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
175 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
177 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
179 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
182 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
184 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
185 (struct goacc_asyncqueue_list): Likewise.
186 (goacc_aq): Likewise.
187 (goacc_aq_list): Likewise.
188 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
189 (GOMP_OFFLOAD_openacc_async_test): Remove.
190 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
191 (GOMP_OFFLOAD_openacc_async_wait): Remove.
192 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
193 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
194 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
195 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
196 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
197 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
198 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
199 (GOMP_OFFLOAD_openacc_async_exec): Declare.
200 (GOMP_OFFLOAD_openacc_async_construct): Declare.
201 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
202 (GOMP_OFFLOAD_openacc_async_test): Declare.
203 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
204 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
205 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
206 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
207 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
209 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
210 (gomp_acc_insert_pointer): Adjust declaration.
211 (gomp_copy_host2dev): New declaration.
212 (gomp_copy_dev2host): Likewise.
213 (gomp_map_vars_async): Likewise.
214 (gomp_unmap_tgt): Likewise.
215 (gomp_unmap_vars_async): Likewise.
216 (gomp_fini_device): Likewise.
218 * oacc-async.c (get_goacc_thread): New function.
219 (get_goacc_thread_device): New function.
220 (lookup_goacc_asyncqueue): New function.
221 (get_goacc_asyncqueue): New function.
222 (acc_async_test): Adjust code to use new async design.
223 (acc_async_test_all): Likewise.
224 (acc_wait): Likewise.
225 (acc_wait_async): Likewise.
226 (acc_wait_all): Likewise.
227 (acc_wait_all_async): Likewise.
228 (goacc_async_free): New function.
229 (goacc_init_asyncqueues): Likewise.
230 (goacc_fini_asyncqueues): Likewise.
231 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
233 (acc_set_cuda_stream): Likewise.
234 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
235 (host_openacc_register_async_cleanup): Remove.
236 (host_openacc_async_exec): New function.
237 (host_openacc_async_test): Adjust parameters.
238 (host_openacc_async_test_all): Remove.
239 (host_openacc_async_wait): Remove.
240 (host_openacc_async_wait_async): Remove.
241 (host_openacc_async_wait_all): Remove.
242 (host_openacc_async_wait_all_async): Remove.
243 (host_openacc_async_set_async): Remove.
244 (host_openacc_async_synchronize): New function.
245 (host_openacc_async_serialize): New function.
246 (host_openacc_async_host2dev): New function.
247 (host_openacc_async_dev2host): New function.
248 (host_openacc_async_queue_callback): New function.
249 (host_openacc_async_construct): New function.
250 (host_openacc_async_destruct): New function.
251 (struct gomp_device_descr host_dispatch): Remove initialization of old
252 interface, add intialization of new async sub-struct.
253 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
254 (goacc_attach_host_thread_to_device): Remove old async code usage.
255 * oacc-int.h (goacc_init_asyncqueues): New declaration.
256 (goacc_fini_asyncqueues): Likewise.
257 (goacc_async_copyout_unmap_vars): Likewise.
258 (goacc_async_free): Likewise.
259 (get_goacc_asyncqueue): Likewise.
260 (lookup_goacc_asyncqueue): Likewise.
261 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
263 (present_create_copy): Adjust code to use new async design.
264 (delete_copyout): Likewise.
265 (update_dev_host): Likewise.
266 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
268 (gomp_acc_remove_pointer): Adjust code to use new async design.
269 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
271 (GOACC_enter_exit_data): Likewise.
272 (goacc_wait): Likewise.
273 (GOACC_update): Likewise.
274 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
275 when called, warn as obsolete in comment.
276 * target.c (goacc_device_copy_async): New function.
277 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
278 add goacc_device_copy_async case.
279 (gomp_copy_dev2host): Likewise.
280 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
281 (gomp_map_pointer): Likewise.
282 (gomp_map_fields_existing): Likewise.
283 (gomp_map_vars_internal): New always_inline function, renamed from
285 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
286 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
287 passing goacc_asyncqueue argument.
288 (gomp_unmap_tgt): Remove static, add attribute_hidden.
289 (gomp_unref_tgt): New function.
290 (gomp_unmap_vars_internal): New always_inline function, renamed from
292 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
293 (gomp_unmap_vars_async): Implement by calling
294 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
295 (gomp_fini_device): New function.
296 (gomp_exit_data): Adjust gomp_copy_dev2host call.
297 (gomp_load_plugin_for_device): Remove old interface, adjust to load
299 (gomp_target_fini): Adjust code to call gomp_fini_device.
301 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
302 (struct ptx_stream): Remove.
303 (struct nvptx_thread): Remove current_stream field.
304 (cuda_map_create): Remove.
305 (cuda_map_destroy): Remove.
310 (struct goacc_asyncqueue): Define.
311 (struct nvptx_callback): Define.
312 (struct ptx_free_block): Define.
313 (struct ptx_device): Remove null_stream, active_streams, async_streams,
314 stream_lock, and next fields.
315 (enum ptx_event_type): Remove.
316 (struct ptx_event): Remove.
317 (ptx_event_lock): Remove.
318 (ptx_events): Remove.
319 (init_streams_for_device): Remove.
320 (fini_streams_for_device): Remove.
321 (select_stream_for_async): Remove.
322 (nvptx_init): Remove ptx_events and ptx_event_lock references.
323 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
325 (nvptx_open_device): Add free_blocks initialization, remove
326 init_streams_for_device call.
327 (nvptx_close_device): Remove fini_streams_for_device call, add
328 free_blocks destruct code.
331 (nvptx_exec): Adjust parameters and code.
332 (nvptx_free): Likewise.
333 (nvptx_host2dev): Remove.
334 (nvptx_dev2host): Remove.
335 (nvptx_set_async): Remove.
336 (nvptx_async_test): Remove.
337 (nvptx_async_test_all): Remove.
338 (nvptx_wait): Remove.
339 (nvptx_wait_async): Remove.
340 (nvptx_wait_all): Remove.
341 (nvptx_wait_all_async): Remove.
342 (nvptx_get_cuda_stream): Remove.
343 (nvptx_set_cuda_stream): Remove.
344 (GOMP_OFFLOAD_alloc): Adjust code.
345 (GOMP_OFFLOAD_free): Likewise.
346 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
347 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
348 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
349 (GOMP_OFFLOAD_openacc_async_wait): Remove.
350 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
351 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
352 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
353 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
354 (cuda_free_argmem): New function.
355 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
356 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
357 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
358 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
359 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
360 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
361 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
362 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
363 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
364 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
365 (cuda_callback_wrapper): New function.
366 (cuda_memcpy_sanity_check): New function.
367 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
368 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
369 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
370 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
372 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
375 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
377 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
379 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
381 2019-03-27 Kevin Buettner <kevinb@redhat.com>
383 * team.c (gomp_team_start): Initialize pool->threads[0].
385 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
387 * testsuite/libgomp.oacc-c++/c++.exp: Specify
388 "-foffload=$offload_target".
389 * testsuite/libgomp.oacc-c/c.exp: Likewise.
390 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
391 * testsuite/lib/libgomp.exp
392 (check_effective_target_openacc_nvidia_accel_configured): Remove,
393 as (conceptually) merged into
394 check_effective_target_openacc_nvidia_accel_selected. Adjust all
397 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
398 * testsuite/libgomp-test-support.exp.in: Adjust.
399 * testsuite/lib/libgomp.exp: Likewise. Don't populate
400 openacc_device_types_s.
401 (offload_target_to_openacc_device_type): New proc.
402 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
403 * testsuite/libgomp.oacc-c/c.exp: Likewise.
404 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
405 * Makefile.in: Regenerate.
406 * configure: Likewise.
407 * testsuite/Makefile.in: Likewise.
409 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
410 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
411 instead of OFFLOAD_TARGETS.
412 * target.c (gomp_target_init): Adjust.
413 * testsuite/libgomp-test-support.exp.in: Likewise.
414 * testsuite/lib/libgomp.exp: Likewise. Populate
415 openacc_device_types_s instead of offload_targets_s_openacc.
416 (check_effective_target_openacc_nvidia_accel_selected)
417 (check_effective_target_openacc_host_selected): Adjust.
418 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
419 * testsuite/libgomp.oacc-c/c.exp: Likewise.
420 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
421 * Makefile.in: Regenerate.
422 * config.h.in: Likewise.
423 * configure: Likewise.
424 * testsuite/Makefile.in: Likewise.
426 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
427 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
428 "offloading: supported, but hardware not accessible".
429 * testsuite/libgomp.oacc-c/c.exp: Likewise.
430 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
432 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
435 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
437 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
438 and related adjustment.
440 2019-01-30 Jakub Jelinek <jakub@redhat.com>
443 * testsuite/libgomp.c++/pr88988.C: New test.
445 2019-01-28 Jakub Jelinek <jakub@redhat.com>
448 * testsuite/libgomp.c/pr89002.c: New test.
450 2019-01-28 Richard Biener <rguenther@suse.de>
453 PR tree-optimization/86865
454 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
456 2019-01-24 Tom de Vries <tdevries@suse.de>
458 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
459 once instantiated_devices drops to 0.
461 2019-01-23 Tom de Vries <tdevries@suse.de>
464 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
466 (nvptx_exec): Don't call map_push if mapnum == 0.
467 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
469 2019-01-23 Tom de Vries <tdevries@suse.de>
473 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
474 (map_fini): Remove "assert (!s->map->active)".
475 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
477 2019-01-23 Tom de Vries <tdevries@suse.de>
480 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
481 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
483 2019-01-15 Tom de Vries <tdevries@suse.de>
486 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
489 2019-01-12 Tom de Vries <tdevries@suse.de>
491 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
492 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
493 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
494 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
496 2019-01-12 Tom de Vries <tdevries@suse.de>
498 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
500 2019-01-12 Tom de Vries <tdevries@suse.de>
502 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
503 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
504 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
506 2019-01-12 Tom de Vries <tdevries@suse.de>
509 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
510 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
512 2019-01-12 Tom de Vries <tdevries@suse.de>
515 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
516 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
518 2019-01-12 Tom de Vries <tdevries@suse.de>
520 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
521 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
522 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
524 2019-01-12 Tom de Vries <tdevries@suse.de>
526 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
527 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
528 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
530 2019-01-12 Tom de Vries <tdevries@suse.de>
532 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
533 resources diagnostic.
535 2019-01-12 Tom de Vries <tdevries@suse.de>
537 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
538 vector length to be 128.
539 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
540 length 2097152 to be reduced to 1024 instead of 32.
542 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
543 James Norris <jnorris@codesourcery.com>
545 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
546 Library Routines", and "Environment Variables".
548 2019-01-11 Tom de Vries <tdevries@suse.de>
550 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
553 2019-01-11 Tom de Vries <tdevries@suse.de>
555 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
557 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
558 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
559 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
560 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
562 2019-01-11 Tom de Vries <tdevries@suse.de>
564 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
567 2019-01-10 Nathan Sidwell <nathan@acm.org>
568 Julian Brown <julian@codesourcery.com>
571 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
572 * testsuite/libgomp.oacc-c++/pr71959.C: New.
574 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
576 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
579 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
581 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
582 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
585 2019-01-09 Tom de Vries <tdevries@suse.de>
588 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
589 #define instead of "const int".
590 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
591 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
592 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
593 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
595 2019-01-09 Tom de Vries <tdevries@suse.de>
597 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
600 2019-01-07 Tom de Vries <tdevries@suse.de>
602 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
603 GOMP_OPENACC_DIM argument.
605 2019-01-03 Tom de Vries <tdevries@suse.de>
607 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
608 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
610 2019-01-01 Jakub Jelinek <jakub@redhat.com>
612 Update copyright years.
614 2019-01-01 Jakub Jelinek <jakub@redhat.com>
616 * libgomp.texi: Bump @copying's copyright year.
618 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
620 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
621 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
622 (GOACC_declare): Redefine the "device" argument to "flags".
624 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
625 Cesar Philippidis <cesar@codesourcery.com>
627 * target.c (struct gomp_coalesce_chunk): New structure.
628 (struct gomp_coalesce_buf): Update the chunks member to use that
629 type. Adjust all users.
631 2018-12-19 Tom de Vries <tdevries@suse.de>
633 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
634 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
635 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
637 2018-12-19 Tom de Vries <tdevries@suse.de>
639 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
640 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
641 gcc/testsuite/gcc.dg/goacc.
642 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
644 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
645 Chung-Lin Tang <cltang@codesourcery.com>
647 * oacc-mem.c (acc_present_or_create): Remove definition and change
648 to alias of acc_create.
649 (acc_present_or_copyin): Remove definition and change to alias of
651 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
652 of acc_present_or_create.
653 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
654 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
655 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
656 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
657 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
658 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
659 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
660 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
661 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
662 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
663 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
664 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
665 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
666 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
667 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
668 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
670 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
673 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
674 "identical parameters".
675 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
676 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
679 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
680 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
683 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
684 (nvptx_wait_async): Unseen async-argument is a no-op.
685 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
686 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
687 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
688 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
689 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
690 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
691 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
692 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
693 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
695 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
696 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
698 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
700 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
701 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
702 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
704 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
707 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
708 (acc_set_cuda_stream): Clarify.
709 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
711 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
713 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
714 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
715 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
716 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
718 2018-12-14 Tom de Vries <tdevries@suse.de>
720 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
721 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
722 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
723 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
724 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
726 2018-12-13 Tom de Vries <tdevries@suse.de>
728 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
729 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
730 * fortran.c (omp_display_affinity_): ... here.
731 * libgomp.h (gomp_print_string): Declare.
732 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
733 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
736 2018-12-13 Jakub Jelinek <jakub@redhat.com>
739 * testsuite/libgomp.c++/for-24.C (results): Include it in
740 omp declare target region.
741 (main): Use map (always, tofrom: results) instead of
742 map (tofrom: results).
744 2018-12-12 Jakub Jelinek <jakub@redhat.com>
747 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
748 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
750 * testsuite/libgomp.c-c++-common/for-16.c: New test.
752 2018-12-12 Andreas Schwab <schwab@suse.de>
754 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
757 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
760 * testsuite/libgomp.fortran/async_io_8.f90: New test.
762 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
763 Jakub Jelinek <jakub@redhat.com>
765 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
766 devicep->host2dev_func.
768 2018-12-08 Jakub Jelinek <jakub@redhat.com>
771 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
772 tls_runtime effective target.
773 (t): New threadprivate variable.
774 (main): Set t in threads which execute iterations of the worksharing
775 loop. Propagate that to the task after the loop and don't abort
776 if the current taskgroup hasn't been cancelled.
778 2018-12-02 Jakub Jelinek <jakub@redhat.com>
780 * testsuite/libgomp.c/task-reduction-3.c: New test.
782 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
784 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
787 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
788 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
790 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
792 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
794 2018-10-19 Richard Biener <rguenther@suse.de>
796 PR tree-optimization/88182
797 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
799 2018-11-26 Jakub Jelinek <jakub@redhat.com>
801 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
802 (RUNTEST): Don't define.
803 (RUNTESTDEFAULTFLAGS): Add.
804 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
805 (distclean-am): Depend on distclean-DEJAGNU.
806 (check-am): If -j% option is present in MFLAGS and if
807 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
808 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
809 * testsuite/Makefile.in: Regenerated.
811 2018-11-26 Richard Biener <rguenther@suse.de>
813 PR tree-optimization/88182
814 * testsuite/libgomp.c++/pr88182.C: New testcase.
816 2018-11-20 Jakub Jelinek <jakub@redhat.com>
819 * config/mingw32/affinity-fmt.c: New file.
821 2018-11-09 Jakub Jelinek <jakub@redhat.com>
823 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
824 (gomp_display_affinity): Use __builtin_choose_expr to handle
825 properly handle argument having integral, or pointer or some other
826 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
827 with uint64_t type instead of %llx and unsigned long long.
829 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
830 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
832 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
834 * affinity.c: Include <string.h>, <stdio.h>.
835 (gomp_display_affinity_place): Remove cpusetp.
836 * teams.c: Include <limits.h>.
838 2018-11-08 Jakub Jelinek <jakub@redhat.com>
840 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
841 in_reduction clause for s[0].
843 * affinity.c (gomp_display_affinity_place): New function.
844 * affinity-fmt.c: New file.
845 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
846 * config/linux/affinity.c (gomp_display_affinity_place): New function.
847 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
848 Move these functions to ...
849 * config/nvptx/teams.c: ... here. New file.
850 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
852 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
854 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
856 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
857 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
858 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
859 gomp_affinity_format_len): New variables.
860 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
861 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
862 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
863 modifiers. Display (non-default) chunk sizes. Print
864 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
865 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
866 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
867 * fortran.c: Include stdio.h and string.h.
868 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
869 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
870 (omp_set_affinity_format_, omp_get_affinity_format_,
871 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
872 omp_pause_resource_all_): New functions.
873 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
875 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
877 * teams.c: ... here. New file.
878 * libgomp_g.h: Include gstdint.h.
879 (GOMP_loop_nonmonotonic_runtime_start,
880 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
881 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
882 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
883 GOMP_parallel_loop_nonmonotonic_runtime,
884 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
885 GOMP_loop_ull_nonmonotonic_runtime_start,
886 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
887 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
888 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
889 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
890 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
891 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
892 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
893 GOMP_teams_reg): Declare.
894 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
895 gomp_aligned_alloc uses fallback implementation.
896 (gomp_aligned_alloc, gomp_aligned_free): Declare.
897 (enum gomp_schedule_type): Add GFS_MONOTONIC.
898 (struct gomp_doacross_work_share): Add extra field.
899 (struct gomp_work_share): Add task_reductions field.
900 (struct gomp_taskgroup): Add workshare and reductions fields.
901 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
902 (gomp_thread_handle): New typedef.
903 (gomp_display_affinity_place, gomp_set_affinity_format,
904 gomp_display_string, gomp_display_affinity,
905 gomp_display_affinity_thread): Declare.
906 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
907 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
908 gomp_workshare_task_reduction_register): Declare.
909 (gomp_team_start): Add taskgroup argument.
910 (gomp_pause_host): Declare.
911 (gomp_init_work_share, gomp_work_share_start): Change bool argument
913 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
914 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
915 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
916 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
917 GOMP_loop_ull_doacross_start,
918 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
919 GOMP_loop_maybe_nonmonotonic_runtime_next,
920 GOMP_loop_maybe_nonmonotonic_runtime_start,
921 GOMP_loop_nonmonotonic_runtime_next,
922 GOMP_loop_nonmonotonic_runtime_start,
923 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
924 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
925 GOMP_loop_ull_nonmonotonic_runtime_next,
926 GOMP_loop_ull_nonmonotonic_runtime_start,
927 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
928 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
929 GOMP_taskgroup_reduction_register,
930 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
931 GOMP_teams_reg and GOMP_taskwait_depend.
932 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
933 omp_{capture,display}_affinity{,_}, and
934 omp_[gs]et_affinity_format{,_}.
935 * loop.c: Include string.h.
936 (GOMP_loop_runtime_next): Add ialias.
937 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
938 (gomp_loop_static_start, gomp_loop_dynamic_start,
939 gomp_loop_guided_start, gomp_loop_ordered_static_start,
940 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
941 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
942 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
943 or gomp_doacross_init callers.
944 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
945 GOMP_loop_doacross_start): New functions.
946 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
947 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
948 Mask off GFS_MONOTONIC bit.
949 (GOMP_loop_maybe_nonmonotonic_runtime_next,
950 GOMP_loop_maybe_nonmonotonic_runtime_start,
951 GOMP_loop_nonmonotonic_runtime_next,
952 GOMP_loop_nonmonotonic_runtime_start,
953 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
954 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
956 (gomp_parallel_loop_start): Pass NULL as taskgroup to
958 * loop_ull.c: Include string.h.
959 (GOMP_loop_ull_runtime_next): Add ialias.
960 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
961 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
962 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
963 gomp_loop_ull_ordered_dynamic_start,
964 gomp_loop_ull_ordered_guided_start,
965 gomp_loop_ull_doacross_static_start,
966 gomp_loop_ull_doacross_dynamic_start,
967 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
968 and gomp_doacross_ull_init callers.
969 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
970 GOMP_loop_ull_doacross_start): New functions.
971 (GOMP_loop_ull_runtime_start,
972 GOMP_loop_ull_ordered_runtime_start,
973 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
974 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
975 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
976 GOMP_loop_ull_nonmonotonic_runtime_next,
977 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
978 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
979 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
980 (omp_pause_resource_t, omp_depend_t): New typedefs.
981 (enum omp_lock_hint_t): Renamed to ...
982 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
983 enumerators using numbers and omp_lock_hint_* as their aliases.
984 (omp_lock_hint_t): New typedef. Rename to ...
985 (omp_sync_hint_t): ... this.
986 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
987 omp_sync_hint_t instead of omp_lock_hint_t.
988 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
989 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
991 (omp_target_is_present, omp_target_disassociate_ptr):
992 Change first argument from void * to const void *.
993 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
994 from void * to const void *.
995 (omp_target_associate_ptr): Change first and second arguments from
996 void * to const void *.
997 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
998 omp_pause_hard): New parameters.
999 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1000 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1002 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
1003 omp_pause_hard): New parameters.
1004 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1005 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1007 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
1008 EXTRA argument. If not needed to prepare array, if extra is 0,
1009 clear ws->doacross, otherwise allocate just doacross structure and
1010 extra payload. If array is needed, allocate also extra payload.
1011 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
1012 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
1014 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
1016 (GOMP_parallel): Likewise. Formatting fix.
1017 (GOMP_parallel_reductions): New function.
1018 (GOMP_cancellation_point): If taskgroup has workshare
1019 flag set, check cancelled of prev taskgroup if any.
1020 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
1021 on prev taskgroup if any.
1022 * sections.c: Include string.h.
1023 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1024 (GOMP_sections_start): Adjust gomp_work_share_start caller.
1025 (GOMP_sections2_start): New function.
1026 (GOMP_parallel_sections_start, GOMP_parallel_sections):
1027 Pass NULL as taskgroup to gomp_team_start.
1028 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
1029 gomp_work_share_start callers.
1030 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
1031 If taskgroup has workshare flag set, check cancelled on prev
1032 taskgroup if any. Guard all cancellation tests with
1033 gomp_cancel_var test.
1034 (omp_target_is_present, omp_target_disassociate_ptr):
1035 Change ptr argument from void * to const void *.
1036 (omp_target_memcpy): Change src argument from void * to const void *.
1037 (omp_target_memcpy_rect): Likewise.
1038 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
1039 instead of char * where needed.
1040 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
1041 from void * to const void *.
1042 (omp_pause_resource, omp_pause_resource_all): New functions.
1043 * task.c (gomp_task_handle_depend): Handle new depend array format
1044 in addition to the old. Handle mutexinoutset kinds the same as
1045 inout for now, handle unspecified kinds.
1046 (gomp_create_target_task): If taskgroup has workshare flag set, check
1047 cancelled on prev taskgroup if any. Guard all cancellation tests with
1048 gomp_cancel_var test. Handle new depend array format count in
1049 addition to the old.
1050 (GOMP_task): Likewise. Adjust function comment.
1051 (gomp_task_run_pre): If taskgroup has workshare flag set, check
1052 cancelled on prev taskgroup if any. Guard all cancellation tests with
1053 gomp_cancel_var test.
1054 (GOMP_taskwait_depend): New function.
1055 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
1056 format in addition to the old. Handle mutexinoutset kinds the same as
1057 inout for now, handle unspecified kinds. Fix a function comment typo.
1058 (gomp_taskgroup_init): New function.
1059 (GOMP_taskgroup_start): Use it.
1060 (gomp_reduction_register, gomp_create_artificial_team,
1061 GOMP_taskgroup_reduction_register,
1062 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1063 gomp_parallel_reduction_register,
1064 gomp_workshare_task_reduction_register,
1065 gomp_workshare_taskgroup_start,
1066 GOMP_workshare_task_reduction_unregister): New functions.
1067 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
1068 check cancelled on prev taskgroup if any. Guard all cancellation
1069 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
1070 by calling GOMP_taskgroup_reduction_register.
1071 * team.c (gomp_thread_attr): Remove comment.
1072 (struct gomp_thread_start_data): Add handle field.
1073 (gomp_thread_start): Call pthread_detach.
1074 (gomp_new_team): Adjust gomp_init_work_share caller.
1075 (gomp_free_pool_helper): Call pthread_detach.
1076 (gomp_team_start): Add taskgroup argument, initialize implicit
1077 tasks' taskgroup field to that. Don't call
1078 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
1079 (gomp_team_end): Determine nesting by thr->ts.level != 0
1080 rather than thr->ts.team != NULL.
1081 (gomp_pause_pool_helper, gomp_pause_host): New functions.
1082 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1083 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1084 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1085 if more than 1 allocate also extra payload at the end of array. Never
1086 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1087 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1088 return true instead of ws.
1089 * Makefile.in: Regenerated.
1090 * configure: Regenerated.
1091 * config.h.in: Regenerated.
1092 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1094 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1095 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1096 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1097 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1098 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1099 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1100 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1101 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1102 * testsuite/libgomp.c-c++-common/for-10.c: New test.
1103 * testsuite/libgomp.c-c++-common/for-11.c: New test.
1104 * testsuite/libgomp.c-c++-common/for-12.c: New test.
1105 * testsuite/libgomp.c-c++-common/for-13.c: New test.
1106 * testsuite/libgomp.c-c++-common/for-14.c: New test.
1107 * testsuite/libgomp.c-c++-common/for-15.c: New test.
1108 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1109 define a different N(test), don't define N(f0) to N(f14), but instead
1110 define N(f20) to N(f34) using != comparisons.
1111 * testsuite/libgomp.c-c++-common/for-7.c: New test.
1112 * testsuite/libgomp.c-c++-common/for-8.c: New test.
1113 * testsuite/libgomp.c-c++-common/for-9.c: New test.
1114 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1115 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1116 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1117 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1118 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1119 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1120 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1121 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1122 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1123 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1124 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1125 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1126 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1127 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1128 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1129 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1130 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1131 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1132 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1133 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1134 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1135 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1136 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1137 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1138 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1139 * testsuite/libgomp.c++/depend-1.C: New test.
1140 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1141 * testsuite/libgomp.c++/depobj-1.C: New test.
1142 * testsuite/libgomp.c++/for-16.C: New test.
1143 * testsuite/libgomp.c++/for-21.C: New test.
1144 * testsuite/libgomp.c++/for-22.C: New test.
1145 * testsuite/libgomp.c++/for-23.C: New test.
1146 * testsuite/libgomp.c++/for-24.C: New test.
1147 * testsuite/libgomp.c++/for-25.C: New test.
1148 * testsuite/libgomp.c++/for-26.C: New test.
1149 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1150 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1151 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1152 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1153 * testsuite/libgomp.c++/task-reduction-10.C: New test.
1154 * testsuite/libgomp.c++/task-reduction-11.C: New test.
1155 * testsuite/libgomp.c++/task-reduction-12.C: New test.
1156 * testsuite/libgomp.c++/task-reduction-13.C: New test.
1157 * testsuite/libgomp.c++/task-reduction-14.C: New test.
1158 * testsuite/libgomp.c++/task-reduction-15.C: New test.
1159 * testsuite/libgomp.c++/task-reduction-16.C: New test.
1160 * testsuite/libgomp.c++/task-reduction-17.C: New test.
1161 * testsuite/libgomp.c++/task-reduction-18.C: New test.
1162 * testsuite/libgomp.c++/task-reduction-19.C: New test.
1163 * testsuite/libgomp.c/task-reduction-1.c: New test.
1164 * testsuite/libgomp.c++/task-reduction-1.C: New test.
1165 * testsuite/libgomp.c/task-reduction-2.c: New test.
1166 * testsuite/libgomp.c++/task-reduction-2.C: New test.
1167 * testsuite/libgomp.c++/task-reduction-3.C: New test.
1168 * testsuite/libgomp.c++/task-reduction-4.C: New test.
1169 * testsuite/libgomp.c++/task-reduction-5.C: New test.
1170 * testsuite/libgomp.c++/task-reduction-6.C: New test.
1171 * testsuite/libgomp.c++/task-reduction-7.C: New test.
1172 * testsuite/libgomp.c++/task-reduction-8.C: New test.
1173 * testsuite/libgomp.c++/task-reduction-9.C: New test.
1174 * testsuite/libgomp.c/teams-1.c: New test.
1175 * testsuite/libgomp.c/teams-2.c: New test.
1176 * testsuite/libgomp.c/thread-limit-4.c: New test.
1177 * testsuite/libgomp.c/thread-limit-5.c: New test.
1178 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1180 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
1182 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1183 acc_memcpy_to/from_device functions, now with async parameter.
1184 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1185 (acc_memcpy_from_device): Likewise.
1186 (acc_memcpy_to_device_async): New API function.
1187 (acc_memcpy_from_device_async): Likewise.
1188 (present_create_copy): Add async parameter and async setting/unsetting.
1189 (acc_create): Adjust present_create_copy call.
1190 (acc_copyin): Likewise.
1191 (acc_present_or_create): Likewise.
1192 (acc_present_or_copyin): Likewise.
1193 (acc_create_async): New API function.
1194 (acc_copyin_async): New API function.
1195 (delete_copyout): Add async parameter and async setting/unsetting.
1196 (acc_delete): Adjust delete_copyout call.
1197 (acc_copyout): Likewise.
1198 (acc_delete_async): New API function.
1199 (acc_copyout_async): Likewise.
1200 (update_dev_host): Add async parameter and async setting/unsetting.
1201 (acc_update_device): Adjust update_dev_host call.
1202 (acc_update_self): Likewise.
1203 (acc_update_device_async): New API function.
1204 (acc_update_self_async): Likewise.
1205 * openacc.h (acc_copyin_async): Declare new API function.
1206 (acc_create_async): Likewise.
1207 (acc_copyout_async): Likewise.
1208 (acc_delete_async): Likewise.
1209 (acc_update_device_async): Likewise.
1210 (acc_update_self_async): Likewise.
1211 (acc_memcpy_to_device_async): Likewise.
1212 (acc_memcpy_from_device_async): Likewise.
1213 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1214 (acc_copyin_async_64_h): New subroutine.
1215 (acc_copyin_async_array_h): New subroutine.
1216 (acc_create_async_32_h): New subroutine.
1217 (acc_create_async_64_h): New subroutine.
1218 (acc_create_async_array_h): New subroutine.
1219 (acc_copyout_async_32_h): New subroutine.
1220 (acc_copyout_async_64_h): New subroutine.
1221 (acc_copyout_async_array_h): New subroutine.
1222 (acc_delete_async_32_h): New subroutine.
1223 (acc_delete_async_64_h): New subroutine.
1224 (acc_delete_async_array_h): New subroutine.
1225 (acc_update_device_async_32_h): New subroutine.
1226 (acc_update_device_async_64_h): New subroutine.
1227 (acc_update_device_async_array_h): New subroutine.
1228 (acc_update_self_async_32_h): New subroutine.
1229 (acc_update_self_async_64_h): New subroutine.
1230 (acc_update_self_async_array_h): New subroutine.
1231 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1232 (acc_copyin_async_64_h): New subroutine.
1233 (acc_copyin_async_array_h): New subroutine.
1234 (acc_create_async_32_h): New subroutine.
1235 (acc_create_async_64_h): New subroutine.
1236 (acc_create_async_array_h): New subroutine.
1237 (acc_copyout_async_32_h): New subroutine.
1238 (acc_copyout_async_64_h): New subroutine.
1239 (acc_copyout_async_array_h): New subroutine.
1240 (acc_delete_async_32_h): New subroutine.
1241 (acc_delete_async_64_h): New subroutine.
1242 (acc_delete_async_array_h): New subroutine.
1243 (acc_update_device_async_32_h): New subroutine.
1244 (acc_update_device_async_64_h): New subroutine.
1245 (acc_update_device_async_array_h): New subroutine.
1246 (acc_update_self_async_32_h): New subroutine.
1247 (acc_update_self_async_64_h): New subroutine.
1248 (acc_update_self_async_array_h): New subroutine.
1249 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1250 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1251 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1252 acc_memcpy_to_device_async*, acc_update_device_async*, and
1253 acc_update_self_async* entries.
1254 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1255 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1256 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1258 2018-10-31 Joseph Myers <joseph@codesourcery.com>
1261 * Makefile.am: Include multilib.am
1262 (AUTOMAKE_OPTIONS): Add info-in-builddir.
1263 (CLEANFILES): Remove libgomp.info.
1264 * configure.ac: Remove AC_PREREQ.
1265 * testsuite/Makefile.am (RUNTEST): Remove quotes.
1266 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
1269 2018-10-29 Joseph Myers <joseph@codesourcery.com>
1270 Julian Brown <julian@codesourcery.com>
1272 * testsuite/libgomp.oacc-c++/this.C: New.
1274 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
1276 * plugin/plugin-nvptx.c (struct cuda_map): New.
1277 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
1278 h_tail with (cuda_map *) map.
1279 (cuda_map_create): New function.
1280 (cuda_map_destroy): New function.
1281 (map_init): Update to use a linked list of cuda_map objects.
1282 (map_fini): Likewise.
1283 (map_pop): Likewise.
1284 (map_push): Likewise. Return CUdeviceptr instead of void.
1285 (init_streams_for_device): Remove stales references to ptx_stream
1287 (select_stream_for_async): Likewise.
1288 (nvptx_exec): Update call to map_init.
1290 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
1291 Julian Brown <julian@codesourcery.com>
1294 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
1296 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
1297 Thomas Koenig <tkoenig@gcc.gnu.org>
1300 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1301 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1302 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1303 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1304 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1305 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1306 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1308 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
1309 Tom de Vries <tdevries@suse.de>
1312 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
1313 (cuOccupancyMaxPotentialBlockSize): Declare.
1314 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
1315 CUDA_ONE_CALL_MAYBE_NULL.
1316 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
1317 CUoccupancyB2DSize and declare
1318 cuOccupancyMaxPotentialBlockSize.
1319 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
1320 default num_gangs and num_workers when the driver supports it.
1322 2018-08-08 Tom de Vries <tdevries@suse.de>
1324 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
1325 CUDA_ONE_CALL_MAYBE_NULL.
1326 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
1327 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
1328 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
1331 2018-08-08 Tom de Vries <tdevries@suse.de>
1333 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
1334 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
1337 2018-08-08 Tom de Vries <tdevries@suse.de>
1339 * plugin/plugin-nvptx.c
1340 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
1341 (nvptx_open_device): Use
1342 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
1344 2018-08-08 Tom de Vries <tdevries@suse.de>
1346 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
1347 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
1349 2018-08-07 Tom de Vries <tdevries@suse.de>
1351 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
1352 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
1353 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
1354 corresponding call in CUDA_ONE_CALL. Add def/undef of
1355 CUDA_ONE_CALL_MAYBE_NULL.
1356 (CUDA_CALL_EXISTS): Define.
1358 2018-08-07 Tom de Vries <tdevries@suse.de>
1360 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
1361 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
1362 corresponding undefs right after.
1364 2018-08-04 Tom de Vries <tdevries@suse.de>
1366 * plugin/configfrag.ac: For --without-cuda-driver, set
1367 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
1368 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
1369 * configure: Regenerate.
1371 2018-08-02 Tom de Vries <tdevries@suse.de>
1374 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
1375 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
1376 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
1378 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
1379 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
1380 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
1382 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1383 Thomas Schwinge <thomas@codesourcery.com>
1385 * config/nvptx/oacc-parallel.c: Truncate.
1387 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1388 James Norris <jnorris@codesourcery.com>
1390 * plugin/plugin-nvptx.c (struct map): Removed.
1391 (map_init, map_pop): Remove use of struct map.
1392 (map_push): Likewise and change argument list.
1393 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1395 2018-08-01 Tom de Vries <tdevries@suse.de>
1397 * plugin/cuda-lib.def: New file. Factor out of ...
1398 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1399 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1402 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1404 Revert 'AsyncI/O patch committed'.
1405 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1406 Thomas Koenig <tkoenig@gcc.gnu.org>
1409 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1410 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1411 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1412 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1413 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1414 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1415 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1417 2018-07-30 Tom de Vries <tdevries@suse.de>
1419 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1420 (nvptx_exec): Ensure worker and vector default dims don't exceed
1421 targ_fn->max_threads_per_block.
1423 2018-07-30 Tom de Vries <tdevries@suse.de>
1425 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1426 (nvptx_open_device): Init default_dims for device.
1427 (nvptx_exec): Use default_dims from device.
1429 2018-07-26 Jakub Jelinek <jakub@redhat.com>
1432 * testsuite/libgomp.c++/for-15.C (results): Include it in
1433 omp declare target region.
1434 (main): Use map (always, tofrom: results) instead of
1435 map (tofrom: results).
1438 * testsuite/libgomp.c/pr86660.c: New test.
1440 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1441 Tom de Vries <tdevries@suse.de>
1443 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1444 sufficient resources to launch a kernel, and give a hint on how to fix
1447 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1448 Tom de Vries <tdevries@suse.de>
1450 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1451 max_threads_per_block and max_threads_per_multiprocessor fields.
1452 (nvptx_open_device): Initialize new fields.
1453 (nvptx_exec): Use num_sms, and new fields.
1455 2018-07-26 Tom de Vries <tdevries@suse.de>
1457 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1458 to correct locations. Remove xfail.
1460 2018-07-26 Tom de Vries <tdevries@suse.de>
1462 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1463 acc_wait. Move acc_async_test calls to correct locations. Remove
1466 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1467 Thomas Koenig <tkoenig@gcc.gnu.org>
1470 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1471 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1472 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1473 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1474 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1475 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1476 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1478 2018-07-17 Jakub Jelinek <jakub@redhat.com>
1481 * testsuite/libgomp.c++/pr86542.C: New test.
1484 * testsuite/libgomp.c++/pr86539.C: New test.
1486 2018-07-11 Jakub Jelinek <jakub@redhat.com>
1489 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1490 (results): Make sure the variable is not inside declare target region.
1491 (qux): Remove unused function.
1493 2018-07-10 Jakub Jelinek <jakub@redhat.com>
1496 * testsuite/libgomp.c++/for-15.C: New test.
1498 2018-06-26 Jakub Jelinek <jakub@redhat.com>
1501 * testsuite/libgomp.c++/pr86291.C: New test.
1503 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
1505 * libgomp.texi (Top): Move www.openmp.org to https.
1506 (Enabling OpenMP): Ditto.
1507 (omp_get_active_level): Ditto.
1508 (omp_get_ancestor_thread_num): Ditto.
1509 (omp_get_cancellation): Ditto.
1510 (omp_get_default_device): Ditto.
1511 (omp_get_dynamic): Ditto.
1512 (omp_get_level): Ditto.
1513 (omp_get_max_active_levels): Ditto.
1514 (omp_get_max_task_priority): Ditto.
1515 (omp_get_max_threads): Ditto.
1516 (omp_get_nested): Ditto.
1517 (omp_get_num_devices): Ditto.
1518 (omp_get_num_procs): Ditto.
1519 (omp_get_num_teams): Ditto.
1520 (omp_get_num_threads): Ditto.
1521 (omp_get_proc_bind): Ditto.
1522 (omp_get_schedule): Ditto.
1523 (omp_get_team_num): Ditto.
1524 (omp_get_team_size): Ditto.
1525 (omp_get_thread_limit): Ditto.
1526 (omp_get_thread_num): Ditto.
1527 (omp_in_parallel): Ditto.
1528 (omp_in_final): Ditto.
1529 (omp_is_initial_device): Ditto.
1530 (omp_set_default_device): Ditto.
1531 (omp_set_dynamic): Ditto.
1532 (omp_set_max_active_levels): Ditto.
1533 (omp_set_nested): Ditto.
1534 (omp_set_num_threads): Ditto.
1535 (omp_set_schedule): Ditto.
1536 (omp_init_lock): Ditto.
1537 (omp_set_lock): Ditto.
1538 (omp_test_lock): Ditto.
1539 (omp_unset_lock): Ditto.
1540 (omp_destroy_lock): Ditto.
1541 (omp_init_nest_lock): Ditto.
1542 (omp_set_nest_lock): Ditto.
1543 (omp_test_nest_lock): Ditto.
1544 (omp_unset_nest_lock): Ditto.
1545 (omp_destroy_nest_lock): Ditto.
1546 (omp_get_wtick): Ditto.
1547 (omp_get_wtime): Ditto.
1548 (OMP_CANCELLATION): Ditto.
1549 (OMP_DISPLAY_ENV): Ditto.
1550 (OMP_DEFAULT_DEVICE): Ditto.
1551 (OMP_DYNAMIC): Ditto.
1552 (OMP_MAX_ACTIVE_LEVELS): Ditto.
1553 (OMP_MAX_TASK_PRIORITY): Ditto.
1554 (OMP_NESTED): Ditto.
1555 (OMP_NUM_THREADS): Ditto.
1556 (OMP_PROC_BIND): Ditto.
1557 (OMP_PLACES): Ditto.
1558 (OMP_STACKSIZE): Ditto.
1559 (OMP_SCHEDULE): Ditto.
1560 (OMP_THREAD_LIMIT): Ditto.
1561 (OMP_WAIT_POLICY): Ditto.
1563 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
1564 James Norris <jnorris@codesourcery.com>
1565 Julian Brown <julian@codesourcery.com>
1566 Thomas Schwinge <thomas@codesourcery.com>
1567 Tom de Vries <tom@codesourcery.com>
1569 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1570 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1571 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1572 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1573 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1574 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1575 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1576 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1577 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1578 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1580 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1582 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1584 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1586 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1588 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1590 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1592 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1594 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1596 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1598 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1600 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1602 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1604 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1606 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1608 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1610 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1612 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1614 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1616 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1618 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1620 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1622 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1624 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1626 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1628 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1630 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1632 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1633 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1634 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1635 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1636 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1637 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1638 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1639 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1640 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1642 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1644 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1645 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1646 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1648 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1649 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1650 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1652 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1654 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1656 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1658 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1660 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1662 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1664 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1666 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1668 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1670 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1672 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1674 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1676 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1678 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1680 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1681 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1682 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1683 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1684 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1685 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1686 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1688 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1689 Thomas Schwinge <thomas@codesourcery.com>
1690 Cesar Philippidis <cesar@codesourcery.com>
1692 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1693 (gomp_acc_remove_pointer): Update declaration.
1694 (gomp_acc_declare_allocate): Declare.
1695 (gomp_remove_var): Declare.
1696 * libgomp.map (OACC_2.5): Define.
1697 * oacc-mem.c (acc_map_data): Update refcount.
1698 (acc_unmap_data): Likewise.
1699 (present_create_copy): Likewise.
1700 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1701 (acc_copyin): Likewise.
1702 (FLAG_FINALIZE): Define.
1703 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1704 (acc_delete_finalize): New function.
1705 (acc_delete_finalize_async): New function.
1706 (acc_copyout_finalize): New function.
1707 (acc_copyout_finalize_async): New function.
1708 (gomp_acc_insert_pointer): Update refcounts.
1709 (gomp_acc_remove_pointer): Return if data is not present on the
1711 * oacc-parallel.c (find_pset): Rename to find_pointer.
1712 (find_pointer): Add support for GOMP_MAP_POINTER.
1713 (handle_ftn_pointers): New function.
1714 (GOACC_parallel_keyed): Update refcounts of variables.
1715 (GOACC_enter_exit_data): Add support for finalized data mappings.
1716 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1718 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1719 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1720 for GOMP_MAP_FORCE_FROM.
1721 * openacc.f90 (module openacc_internal): Add
1722 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1723 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1724 acc_copyout_finalize and acc_delete_finalize.
1725 (acc_copyout_finalize_32_h): New subroutine.
1726 (acc_copyout_finalize_64_h): New subroutine.
1727 (acc_copyout_finalize_array_h): New subroutine.
1728 (acc_delete_finalize_32_h): New subroutine.
1729 (acc_delete_finalize_64_h): New subroutine.
1730 (acc_delete_finalize_array_h): New subroutine.
1731 * openacc.h (acc_copyout_finalize): Declare.
1732 (acc_copyout_finalize_async): Declare.
1733 (acc_delete_finalize): Declare.
1734 (acc_delete_finalize_async): Declare.
1735 * openacc_lib.h (acc_copyout_finalize): New interface.
1736 (acc_delete_finalize): New interface.
1737 * target.c (gomp_map_vars): Update dynamic_refcount.
1738 (gomp_remove_var): New function.
1739 (gomp_unmap_vars): Use it.
1740 (gomp_unload_image_from_device): Likewise.
1741 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1742 case to utilize OpenACC 2.5 data clause semantics.
1743 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1744 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1745 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1746 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1747 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1748 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1749 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1750 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1751 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1752 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1753 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1754 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1755 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1756 utilize OpenACC 2.5 data clause semantics.
1757 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1758 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1759 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1760 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1761 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1762 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1763 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1764 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1765 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1767 2018-05-21 Janus Weil <janus@gcc.gnu.org>
1771 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1772 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1773 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1774 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1775 * testsuite/libgomp.fortran/task2.f90: Ditto.
1776 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1777 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1778 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1779 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1780 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1781 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1782 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1783 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1784 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1786 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
1789 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1791 2018-05-09 Tom de Vries <tom@codesourcery.com>
1794 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1795 to GOACC_enter_exit_data.
1797 2018-05-09 Tom de Vries <tom@codesourcery.com>
1800 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1801 (async_synchronous_p): New function.
1802 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1804 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1805 async_valid_stream_id_p.
1806 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1807 * oacc-parallel.c (GOACC_parallel_keyed): Same.
1809 2018-05-07 Tom de Vries <tom@codesourcery.com>
1812 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1813 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1815 2018-05-03 Tom de Vries <tom@codesourcery.com>
1818 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1819 extra_tool_flags if it contains an -foffload=-fdump-* flag.
1820 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1821 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1823 2018-05-02 Tom de Vries <tom@codesourcery.com>
1826 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1827 GOMP_OPENACC_DIM ...
1828 * env.c (parse_gomp_openacc_dim): ... here. New function.
1829 (initialize_env): Call parse_gomp_openacc_dim.
1830 (goacc_default_dims): Define.
1831 * libgomp.h (goacc_default_dims): Declare.
1832 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1833 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1834 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1835 GOMP_PLUGIN_acc_default_dim.
1836 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1837 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1839 2018-05-02 Tom de Vries <tom@codesourcery.com>
1842 * testsuite/libgomp.c++/udr-9.C: Update.
1843 * testsuite/libgomp.c++/atomic-16.C: Remove.
1844 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1845 * testsuite/libgomp.c++/loop-13.C: Remove.
1846 * testsuite/libgomp.c++/loop-14.C: Remove.
1847 * testsuite/libgomp.c++/loop-15.C: Remove.
1848 * testsuite/libgomp.c++/monotonic-1.C: Remove.
1849 * testsuite/libgomp.c++/monotonic-2.C: Remove.
1850 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1851 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1852 * testsuite/libgomp.c++/ordered-1.C: Remove.
1853 * testsuite/libgomp.c++/pr45784.C: Remove.
1854 * testsuite/libgomp.c++/pr64824.C: Remove.
1855 * testsuite/libgomp.c++/pr64868.C: Remove.
1856 * testsuite/libgomp.c++/pr66199-1.C: Remove.
1857 * testsuite/libgomp.c++/pr66199-2.C: Remove.
1858 * testsuite/libgomp.c++/pr66199-3.C: Remove.
1859 * testsuite/libgomp.c++/pr66199-4.C: Remove.
1860 * testsuite/libgomp.c++/pr66199-5.C: Remove.
1861 * testsuite/libgomp.c++/pr66199-6.C: Remove.
1862 * testsuite/libgomp.c++/pr66199-7.C: Remove.
1863 * testsuite/libgomp.c++/pr66199-8.C: Remove.
1864 * testsuite/libgomp.c++/pr66199-9.C: Remove.
1865 * testsuite/libgomp.c++/pr69389.C: Remove.
1866 * testsuite/libgomp.c++/simd10.C: Remove.
1867 * testsuite/libgomp.c++/simd11.C: Remove.
1868 * testsuite/libgomp.c++/simd12.C: Remove.
1869 * testsuite/libgomp.c++/simd13.C: Remove.
1870 * testsuite/libgomp.c++/target-1.C: Remove.
1871 * testsuite/libgomp.c++/target-3.C: Remove.
1872 * testsuite/libgomp.c++/target-4.C: Remove.
1873 * testsuite/libgomp.c++/target-5.C: Remove.
1874 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1875 * testsuite/libgomp.c++/taskloop-1.C: Remove.
1876 * testsuite/libgomp.c++/taskloop-2.C: Remove.
1877 * testsuite/libgomp.c++/taskloop-3.C: Remove.
1878 * testsuite/libgomp.c++/taskloop-4.C: Remove.
1879 * testsuite/libgomp.c++/udr-9.C: Remove.
1880 * testsuite/libgomp.c++/for-10.C: Remove.
1881 * testsuite/libgomp.c++/for-11.C: Remove.
1882 * testsuite/libgomp.c++/for-12.C: Remove.
1883 * testsuite/libgomp.c++/for-13.C: Remove.
1884 * testsuite/libgomp.c++/for-14.C: Remove.
1885 * testsuite/libgomp.c++/for-9.C: Remove.
1886 * testsuite/libgomp.c/atomic-18.c: Move ...
1887 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
1888 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
1889 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
1890 * testsuite/libgomp.c/loop-13.c: Move ...
1891 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
1892 * testsuite/libgomp.c/loop-14.c: Move ...
1893 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
1894 * testsuite/libgomp.c/loop-15.c: Remove.
1895 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
1896 * testsuite/libgomp.c/monotonic-1.c: Move ...
1897 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
1898 * testsuite/libgomp.c/monotonic-2.c: Move ...
1899 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
1900 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
1901 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
1902 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
1903 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
1904 * testsuite/libgomp.c/ordered-4.c: Move ...
1905 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
1906 * testsuite/libgomp.c/pr45784.c: Move ...
1907 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
1908 * testsuite/libgomp.c/pr64824.c: Move ...
1909 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
1910 * testsuite/libgomp.c/pr64868.c: Move ...
1911 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
1912 * testsuite/libgomp.c/pr66199-1.c: Move ...
1913 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
1914 * testsuite/libgomp.c/pr66199-2.c: Move ...
1915 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
1916 * testsuite/libgomp.c/pr66199-3.c: Move ...
1917 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
1918 * testsuite/libgomp.c/pr66199-4.c: Move ...
1919 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
1920 * testsuite/libgomp.c/pr66199-5.c: Move ...
1921 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
1922 * testsuite/libgomp.c/pr66199-6.c: Move ...
1923 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
1924 * testsuite/libgomp.c/pr66199-7.c: Move ...
1925 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
1926 * testsuite/libgomp.c/pr66199-8.c: Move ...
1927 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
1928 * testsuite/libgomp.c/pr66199-9.c: Move ...
1929 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
1930 * testsuite/libgomp.c/pr69389.c: Move ...
1931 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
1932 * testsuite/libgomp.c/simd-14.c: Move ...
1933 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
1934 * testsuite/libgomp.c/simd-15.c: Move ...
1935 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
1936 * testsuite/libgomp.c/simd-16.c: Move ...
1937 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
1938 * testsuite/libgomp.c/simd-17.c: Move ...
1939 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
1940 * testsuite/libgomp.c/target-1.c: Move ...
1941 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
1942 * testsuite/libgomp.c/target-10.c: Move ...
1943 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
1944 * testsuite/libgomp.c/target-13.c: Move ...
1945 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
1946 * testsuite/libgomp.c/target-2.c: Move ...
1947 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
1948 * testsuite/libgomp.c/taskgroup-1.c: Move ...
1949 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
1950 * testsuite/libgomp.c/taskloop-1.c: Move ...
1951 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
1952 * testsuite/libgomp.c/taskloop-2.c: Move ...
1953 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
1954 * testsuite/libgomp.c/taskloop-3.c: Move ...
1955 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
1956 * testsuite/libgomp.c/taskloop-4.c: Move ...
1957 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
1958 * testsuite/libgomp.c/udr-1.c: Move ...
1959 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
1960 * testsuite/libgomp.c/for-1.c: Move ...
1961 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
1962 * testsuite/libgomp.c/for-1.h: Move ...
1963 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
1964 * testsuite/libgomp.c/for-2.c: Move ...
1965 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
1966 * testsuite/libgomp.c/for-2.h: Move ...
1967 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
1968 * testsuite/libgomp.c/for-3.c: Move ...
1969 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
1970 * testsuite/libgomp.c/for-4.c: Move ...
1971 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
1972 * testsuite/libgomp.c/for-5.c: Move ...
1973 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
1974 * testsuite/libgomp.c/for-6.c: Move ...
1975 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
1977 2018-05-02 Tom de Vries <tom@codesourcery.com>
1980 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
1981 __builtin_goacc_parlevel_{id,size}.
1982 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
1983 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
1984 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
1985 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
1986 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
1987 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
1988 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
1989 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
1990 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
1991 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
1992 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
1993 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
1994 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
1995 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
1996 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
1997 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
1998 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
1999 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
2000 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
2001 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
2002 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
2003 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
2004 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
2006 2018-05-02 Tom de Vries <tom@codesourcery.com>
2009 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
2011 2018-05-02 Tom de Vries <tom@codesourcery.com>
2014 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
2016 2018-04-29 Julian Brown <julian@codesourcery.com>
2017 Tom de Vries <tom@codesourcery.com>
2020 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
2021 arbitrary order for iterations of atomic subtract check.
2023 2018-04-28 Tom de Vries <tom@codesourcery.com>
2026 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
2027 atomic capture results obtained in parallel loop to an array, instead of
2030 2018-04-26 Tom de Vries <tom@codesourcery.com>
2033 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
2034 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
2035 (process_GOMP_NVPTX_JIT): New function.
2036 (link_ptx): Use process_GOMP_NVPTX_JIT.
2038 2018-04-26 Richard Biener <rguenther@suse.de>
2039 Tom de Vries <tom@codesourcery.com>
2042 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
2044 2018-04-26 Tom de Vries <tom@codesourcery.com>
2047 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2048 recursion depth from 25 to 23.
2049 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2051 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
2053 * configure: Regenerated.
2055 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
2056 Tom de Vries <tom@codesourcery.com>
2059 * testsuite/libgomp.oacc-c++/ref-1.C: New.
2061 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
2064 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
2065 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2066 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2067 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2068 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2069 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2072 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
2074 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2076 2018-04-19 Jakub Jelinek <jakub@redhat.com>
2078 * configure: Regenerated.
2080 2018-04-18 David Malcolm <dmalcolm@redhat.com>
2083 * configure: Regenerate.
2085 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
2086 Tom de Vries <tom@codesourcery.com>
2089 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2090 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2092 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2096 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2097 test from gfortran.dg to here.
2099 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2101 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2102 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2104 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2107 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2108 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2110 2018-04-05 Tom de Vries <tom@codesourcery.com>
2113 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2115 2018-03-26 Tom de Vries <tom@codesourcery.com>
2117 PR tree-optimization/85063
2118 * testsuite/libgomp.c/switch-conversion-2.c: New test.
2119 * testsuite/libgomp.c/switch-conversion.c: New test.
2120 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2121 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2123 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2126 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2127 call abort by STOP n.
2128 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2129 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2130 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2131 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2132 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2133 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2134 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2135 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2136 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2137 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2138 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2139 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2140 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2141 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2142 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2143 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2144 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2145 * testsuite/libgomp.fortran/associate1.f90: Likewise.
2146 * testsuite/libgomp.fortran/associate2.f90: Likewise.
2147 * testsuite/libgomp.fortran/associate3.f90: Likewise.
2148 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2149 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2150 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2151 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2152 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2153 * testsuite/libgomp.fortran/character1.f90: Likewise.
2154 * testsuite/libgomp.fortran/character2.f90: Likewise.
2155 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2156 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2157 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2158 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2159 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2160 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2161 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2162 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2163 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2164 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2165 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2166 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2167 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2168 * testsuite/libgomp.fortran/do1.f90: Likewise.
2169 * testsuite/libgomp.fortran/do2.f90: Likewise.
2170 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2171 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2172 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2173 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2174 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2175 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2176 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2177 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2178 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2179 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2180 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2181 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2182 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2183 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2184 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2185 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2186 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2187 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2188 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2189 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2190 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2191 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2192 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2193 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2194 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2195 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2196 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2197 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2198 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2199 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2200 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2201 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2202 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2203 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2204 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2205 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2206 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2207 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2208 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2209 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2210 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2211 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2212 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2213 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2214 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2215 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2216 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2217 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2218 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2219 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2220 * testsuite/libgomp.fortran/lib2.f: Likewise.
2221 * testsuite/libgomp.fortran/lib3.f: Likewise.
2222 * testsuite/libgomp.fortran/lib4.f90: Likewise.
2223 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2224 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2225 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2226 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2227 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2228 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2229 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2230 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2231 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2232 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2233 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2234 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2235 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2236 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2237 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2238 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2239 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2240 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2241 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2242 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2243 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2244 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2245 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2246 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2247 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2248 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2249 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2250 * testsuite/libgomp.fortran/pr25162.f: Likewise.
2251 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2252 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2253 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2254 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2255 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2256 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2257 * testsuite/libgomp.fortran/pr28390.f: Likewise.
2258 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2259 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
2260 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
2261 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
2262 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
2263 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
2264 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
2265 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
2266 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
2267 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
2268 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
2269 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
2270 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
2271 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
2272 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
2273 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
2274 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
2275 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
2276 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
2277 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
2278 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
2279 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
2280 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
2281 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
2282 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
2283 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2284 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
2285 * testsuite/libgomp.fortran/reference1.f90: Likewise.
2286 * testsuite/libgomp.fortran/reference2.f90: Likewise.
2287 * testsuite/libgomp.fortran/retval1.f90: Likewise.
2288 * testsuite/libgomp.fortran/retval2.f90: Likewise.
2289 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
2290 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
2291 * testsuite/libgomp.fortran/simd1.f90: Likewise.
2292 * testsuite/libgomp.fortran/simd2.f90: Likewise.
2293 * testsuite/libgomp.fortran/simd3.f90: Likewise.
2294 * testsuite/libgomp.fortran/simd4.f90: Likewise.
2295 * testsuite/libgomp.fortran/simd5.f90: Likewise.
2296 * testsuite/libgomp.fortran/simd6.f90: Likewise.
2297 * testsuite/libgomp.fortran/simd7.f90: Likewise.
2298 * testsuite/libgomp.fortran/stack.f90: Likewise.
2299 * testsuite/libgomp.fortran/strassen.f90: Likewise.
2300 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
2301 * testsuite/libgomp.fortran/tabs2.f: Likewise.
2302 * testsuite/libgomp.fortran/target1.f90: Likewise.
2303 * testsuite/libgomp.fortran/target2.f90: Likewise.
2304 * testsuite/libgomp.fortran/target3.f90: Likewise.
2305 * testsuite/libgomp.fortran/target4.f90: Likewise.
2306 * testsuite/libgomp.fortran/target5.f90: Likewise.
2307 * testsuite/libgomp.fortran/target6.f90: Likewise.
2308 * testsuite/libgomp.fortran/target7.f90: Likewise.
2309 * testsuite/libgomp.fortran/target8.f90: Likewise.
2310 * testsuite/libgomp.fortran/task1.f90: Likewise.
2311 * testsuite/libgomp.fortran/task2.f90: Likewise.
2312 * testsuite/libgomp.fortran/task3.f90: Likewise.
2313 * testsuite/libgomp.fortran/task4.f90: Likewise.
2314 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
2315 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
2316 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
2317 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
2318 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
2319 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2320 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2321 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2322 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
2323 * testsuite/libgomp.fortran/udr1.f90: Likewise.
2324 * testsuite/libgomp.fortran/udr10.f90: Likewise.
2325 * testsuite/libgomp.fortran/udr11.f90: Likewise.
2326 * testsuite/libgomp.fortran/udr12.f90: Likewise.
2327 * testsuite/libgomp.fortran/udr13.f90: Likewise.
2328 * testsuite/libgomp.fortran/udr14.f90: Likewise.
2329 * testsuite/libgomp.fortran/udr15.f90: Likewise.
2330 * testsuite/libgomp.fortran/udr2.f90: Likewise.
2331 * testsuite/libgomp.fortran/udr3.f90: Likewise.
2332 * testsuite/libgomp.fortran/udr4.f90: Likewise.
2333 * testsuite/libgomp.fortran/udr5.f90: Likewise.
2334 * testsuite/libgomp.fortran/udr6.f90: Likewise.
2335 * testsuite/libgomp.fortran/udr7.f90: Likewise.
2336 * testsuite/libgomp.fortran/udr8.f90: Likewise.
2337 * testsuite/libgomp.fortran/udr9.f90: Likewise.
2338 * testsuite/libgomp.fortran/vla1.f90: Likewise.
2339 * testsuite/libgomp.fortran/vla2.f90: Likewise.
2340 * testsuite/libgomp.fortran/vla3.f90: Likewise.
2341 * testsuite/libgomp.fortran/vla4.f90: Likewise.
2342 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2343 * testsuite/libgomp.fortran/vla6.f90: Likewise.
2344 * testsuite/libgomp.fortran/vla7.f90: Likewise.
2345 * testsuite/libgomp.fortran/vla8.f90: Likewise.
2346 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
2347 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
2348 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2349 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2350 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2351 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2352 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2353 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2354 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2355 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2356 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2357 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
2358 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2359 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
2360 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
2361 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2362 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2363 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2364 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2365 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2366 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2367 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2368 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2369 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
2370 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
2371 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2372 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2373 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2374 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2375 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2376 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2377 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2378 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2379 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2380 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2381 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2382 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2383 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2384 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2385 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2386 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2387 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2388 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2389 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2390 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2391 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2392 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2393 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2394 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2395 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2396 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2397 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2398 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2399 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2400 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2401 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2402 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2403 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2404 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2405 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2406 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2407 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2408 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2409 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2410 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2411 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2412 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2413 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2414 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2415 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2416 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2417 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2418 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2419 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2420 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2421 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2422 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2423 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2424 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2425 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2426 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2427 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2428 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2429 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2430 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2431 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2432 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2433 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2434 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2435 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2436 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2437 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2438 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2439 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2441 2018-03-20 Richard Biener <rguenther@suse.de>
2443 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2444 parallelizable loop.
2446 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2449 * configure: Regenerate.
2451 2018-02-16 Jakub Jelinek <jakub@redhat.com>
2454 * libgomp.fortran/pr84418-1.f90: New test.
2455 * libgomp.fortran/pr84418-2.f90: New test.
2457 2018-02-14 Jakub Jelinek <jakub@redhat.com>
2460 * testsuite/libgomp.fortran/threadprivate4.f90: Add
2461 -std=f2003 -fall-intrinsics into dg-additional-options.
2463 2018-02-08 Martin Jambor <mjambor@suse.cz>
2465 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2468 2018-02-08 Martin Jambor <mjambor@suse.cz>
2470 * testsuite/libgomp.hsa.c/staticvar.c: New test.
2472 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2474 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2475 [__cplusplus]: Declare extern "C".
2477 2018-02-07 Tom de Vries <tom@codesourcery.com>
2480 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2482 2018-01-29 Christoph Spiel <cspiel@freenet.de>
2483 Jakub Jelinek <jakub@redhat.com>
2486 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2487 instead of omp_lock_t.
2489 2018-01-25 Tom de Vries <tom@codesourcery.com>
2492 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2494 2018-01-24 Tom de Vries <tom@codesourcery.com>
2497 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2499 2018-01-24 Tom de Vries <tom@codesourcery.com>
2502 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2504 2018-01-19 Tom de Vries <tom@codesourcery.com>
2505 Cesar Philippidis <cesar@codesourcery.com>
2508 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2509 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2511 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2513 Update copyright years.
2515 * libgomp.texi: Bump @copying's copyright year.
2517 2017-12-30 Tom de Vries <tom@codesourcery.com>
2520 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2521 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2523 2017-12-27 Tom de Vries <tom@codesourcery.com>
2526 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2527 (test_nonstatic): Fix return type to workaround PR83046.
2529 2017-12-05 Jakub Jelinek <jakub@redhat.com>
2532 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2533 j suffix instead of i.
2534 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2537 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
2539 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2540 call to acc_wait (1).
2542 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2545 * testsuite/libgomp.fortran/pr81304.f90: New test.
2547 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2550 * libgomp.fortran/pr81841.f90: New test.
2552 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2555 * target.c (gomp_target_init): Compute lengths just once and
2556 use them in both malloc size and subsequent copying.
2558 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2560 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2561 * acinclude.m4: Add cet.m4.
2562 * configure: Regenerate.
2563 * Makefile.in: Likewise.
2564 * testsuite/Makefile.in: Likewise.
2566 2017-11-15 Tom de Vries <tom@codesourcery.com>
2568 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2569 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
2570 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2571 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
2572 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2573 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
2575 2017-11-14 Tom de Vries <tom@codesourcery.com>
2577 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2580 2017-11-07 Jakub Jelinek <jakub@redhat.com>
2583 * testsuite/libgomp.c++/pr82835.C: New test.
2585 2017-11-06 Martin Liska <mliska@suse.cz>
2587 * testsuite/libgomp.c++/loop-2.C: Return a value
2588 for functions with non-void return type, or change type to void,
2589 or add -Wno-return-type for test.
2590 * testsuite/libgomp.c++/loop-4.C: Likewise.
2591 * testsuite/libgomp.c++/parallel-1.C: Likewise.
2592 * testsuite/libgomp.c++/shared-1.C: Likewise.
2593 * testsuite/libgomp.c++/single-1.C: Likewise.
2594 * testsuite/libgomp.c++/single-2.C: Likewise.
2596 2017-10-31 Tom de Vries <tom@codesourcery.com>
2598 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2599 "do {} while (false)".
2600 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2601 after HSA_DEBUG call.
2603 2017-10-28 Jakub Jelinek <jakub@redhat.com>
2605 * target.c (struct gomp_coalesce_buf): New type.
2606 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2607 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2608 (gomp_copy_host2dev): Add CBUF argument, if copying into
2609 the cached ranges, memcpy into buffer instead of copying
2611 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2612 Add CBUF argument, pass it through to other calls.
2613 (gomp_map_vars): Aggregate copies from host to device if small enough
2614 and with small enough gaps in between into memcpy into a buffer and
2615 fewer host to device copies from the buffer.
2616 (gomp_update): Adjust gomp_copy_host2dev caller.
2618 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
2620 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2622 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2623 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2624 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2625 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2627 2017-10-16 Tom de Vries <tom@codesourcery.com>
2629 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2630 openacc_nvidia_accel_selected.
2631 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2632 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2633 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2634 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2635 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2636 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2637 openacc_nvidia_accel_selected. Skip for shared memory device.
2638 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2639 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2641 2017-10-09 Martin Jambor <mjambor@suse.cz>
2644 * testsuite/libgomp.hsa.c/pr82416.c: New test.
2646 2017-10-07 Tom de Vries <tom@codesourcery.com>
2648 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2649 Remove acc_device_nvidia references.
2650 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2653 2017-10-05 Tom de Vries <tom@codesourcery.com>
2655 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2656 vector_length(32) clause from acc parallel directive.
2657 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2659 2017-10-04 Tom de Vries <tom@codesourcery.com>
2661 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2662 (main): Reduce sum of arr elements. Assert that hres is exactly
2663 representable in 32-bit floating point.
2664 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2665 (main): Reduce sum of arr elements. Assert that hres and hmres are
2666 exactly representable in 32-bit floating point.
2667 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2669 2017-09-28 Tom de Vries <tom@codesourcery.com>
2671 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2673 * testsuite/libgomp.c++/pr69393.C: Same.
2674 * testsuite/libgomp.c++/taskloop-1.C: Same.
2675 * testsuite/libgomp.c++/taskloop-3.C: Same.
2676 * testsuite/libgomp.c++/taskloop-4.C: Same.
2677 * testsuite/libgomp.c/for-4.c: Same.
2678 * testsuite/libgomp.c/pr66199-3.c: Same.
2679 * testsuite/libgomp.c/pr66199-4.c: Same.
2680 * testsuite/libgomp.c/pr66199-6.c: Same.
2681 * testsuite/libgomp.c/taskloop-1.c: Same.
2682 * testsuite/libgomp.c/taskloop-3.c: Same.
2683 * testsuite/libgomp.c/taskloop-4.c: Same.
2684 * testsuite/libgomp.fortran/aligned1.f03: Same.
2685 * testsuite/libgomp.fortran/condinc1.f: Same.
2686 * testsuite/libgomp.fortran/condinc3.f90: Same.
2687 * testsuite/libgomp.fortran/crayptr1.f90: Same.
2688 * testsuite/libgomp.fortran/crayptr2.f90: Same.
2689 * testsuite/libgomp.fortran/crayptr3.f90: Same.
2690 * testsuite/libgomp.fortran/omp_cond1.f: Same.
2691 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2692 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2693 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2694 * testsuite/libgomp.fortran/recursion1.f90: Same.
2695 * testsuite/libgomp.fortran/target2.f90: Same.
2696 * testsuite/libgomp.fortran/target5.f90: Same.
2697 * testsuite/libgomp.fortran/task3.f90: Same.
2699 2017-09-28 Tom de Vries <tom@codesourcery.com>
2701 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2702 vector_length(32) clause from acc parallel directive.
2703 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2705 2017-09-27 Tom de Vries <tom@codesourcery.com>
2707 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2708 Remove acc_device_nvidia references.
2710 2017-09-16 Tom de Vries <tom@codesourcery.com>
2713 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2715 2017-09-14 Tom de Vries <tom@codesourcery.com>
2717 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2718 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2719 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2720 * testsuite/libgomp.c/c.exp: Include test-cases from
2721 libgomp.c-c++-common.
2722 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
2725 2017-09-14 Jakub Jelinek <jakub@redhat.com>
2728 * testsuite/libgomp.c++/pr81314.C: New test.
2730 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
2732 * libgomp.texi (Top): www.openacc.org now uses https.
2733 (Enabling OpenACC): Ditto.
2734 (acc_get_num_devices): Ditto.
2735 (acc_set_device_type): Ditto.
2736 (acc_get_device_type): Ditto.
2737 (acc_set_device_num): Ditto.
2738 (acc_get_device_num): Ditto.
2739 (acc_async_test): Ditto.
2740 (acc_async_test_all): Ditto.
2742 (acc_wait_all): Ditto.
2743 (acc_wait_all_async): Ditto.
2744 (acc_wait_async): Ditto.
2746 (acc_shutdown): Ditto.
2747 (acc_on_device): Ditto.
2748 (acc_malloc): Ditto.
2750 (acc_copyin): Ditto.
2751 (acc_present_or_copyin): Ditto.
2752 (acc_create): Ditto.
2753 (acc_present_or_create): Ditto.
2754 (acc_copyout): Ditto.
2755 (acc_delete): Ditto.
2756 (acc_update_device): Ditto.
2757 (acc_update_self): Ditto.
2758 (acc_map_data): Ditto.
2759 (acc_unmap_data): Ditto.
2760 (acc_deviceptr): Ditto.
2761 (acc_hostptr): Ditto.
2762 (acc_is_present): Ditto.
2763 (acc_memcpy_to_device): Ditto.
2764 (acc_memcpy_from_device): Ditto.
2765 (acc_get_current_cuda_device): Ditto.
2766 (acc_get_current_cuda_context): Ditto.
2767 (acc_get_cuda_stream): Ditto.
2768 (acc_set_cuda_stream): Ditto.
2769 (ACC_DEVICE_TYPE): Ditto.
2770 (ACC_DEVICE_NUM): Ditto.
2771 (OpenACC Library Interoperability): Ditto.
2773 2017-08-09 Jakub Jelinek <jakub@redhat.com>
2776 * testsuite/libgomp.c/pr81687-1.c: New test.
2777 * testsuite/libgomp.c/pr81687-2.c: New test.
2779 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2782 * testsuite/libgomp.c/pr69389.c: New test.
2783 * testsuite/libgomp.c++/pr69389.C: New test.
2785 2017-08-07 Tom de Vries <tom@codesourcery.com>
2788 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2789 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2791 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2794 * testsuite/libgomp.c/pr45784.c: New test.
2795 * testsuite/libgomp.c++/pr45784.C: New test.
2797 2017-07-19 Tom de Vries <tom@codesourcery.com>
2799 * testsuite/libgomp.oacc-c/vec.c: New test.
2801 2017-07-03 Tom de Vries <tom@codesourcery.com>
2803 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2805 2017-06-27 Tom de Vries <tom@codesourcery.com>
2807 * plugin/plugin-nvptx.c (notify_var): New function.
2808 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2810 2017-06-27 Tom de Vries <tom@codesourcery.com>
2812 * env.c (parse_unsigned_long_1): Factor out of ...
2813 (parse_unsigned_long): ... here.
2814 (parse_int_1): Factor out of ...
2815 (parse_int): ... here.
2816 (parse_int_secure): New function.
2817 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2818 * secure_getenv.h: Factor out of ...
2819 * plugin/plugin-hsa.c: ... here.
2820 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2822 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2825 * testsuite/libgomp.c++/pr81130.C: New test.
2827 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2829 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2831 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2832 dg-xfail-run-if default args.
2834 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2836 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2837 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2839 2017-05-30 Jakub Jelinek <jakub@redhat.com>
2842 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2843 (gomp_affinity_init_level): Use it. Always analyze the core and thread
2844 sibling lists, depending on level just pick up what CPUs to put
2845 together into a place vs. whether add multiple ordered places.
2847 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
2849 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2850 * libgomp.map (OACC_2.0.1): Add these.
2851 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2852 for "acc_wait", and "acc_wait_all", respectively.
2853 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2854 for "acc_wait", and "acc_wait_all", respectively.
2855 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2856 * libgomp.texi (acc_wait, acc_wait_all): Update.
2857 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2858 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2859 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2861 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2862 acc_present_or_copyin and acc_present_or_create procedures,
2864 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2865 generally different variants of OpenACC Runtime Library functions.
2866 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2868 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2869 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2871 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2872 of preprocessor definitions.
2873 * libgomp.h (strong_alias): Guard by "#ifdef
2874 HAVE_ATTRIBUTE_ALIAS".
2875 * oacc-mem.c: Provide "acc_pcreate" as alias for
2876 "acc_present_or_create", and "acc_pcopyin" as alias for
2877 "acc_present_or_copyin".
2878 * libgomp.map: New version "OACC_2.0.1".
2879 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2880 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2882 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2885 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2886 when disabling nvptx offloading.
2888 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
2890 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
2891 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2892 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2894 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
2895 * testsuite/lib/libgomp.exp
2896 (check_effective_target_openacc_nvidia_accel_configured): New
2898 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
2899 (check_effective_target_c++): New procs.
2900 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
2901 (check_effective_target_c++): Likewise.
2903 2017-05-22 Jakub Jelinek <jakub@redhat.com>
2906 * testsuite/libgomp.c/pr80809-2.c: New test.
2907 * testsuite/libgomp.c/pr80809-3.c: New test.
2910 * testsuite/libgomp.c/pr80809-1.c: New test.
2913 * testsuite/libgomp.c/pr80853.c: New test.
2915 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
2917 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
2918 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
2919 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2920 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2921 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2923 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
2924 Debug output for failure.
2926 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2928 * testsuite/lib/libgomp.exp: Load scanlang.exp.
2930 2017-04-27 Jakub Jelinek <jakub@redhat.com>
2933 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
2934 bootstrap compare failures.
2936 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
2938 * testsuite/libgomp.c/target-36.c: New testcase.
2940 2017-04-13 Jakub Jelinek <jakub@redhat.com>
2942 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
2945 2017-04-11 Jakub Jelinek <jakub@redhat.com>
2948 * testsuite/libgomp.c/pr80394.c: New test.
2950 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2953 * config/posix/thread-stacksize.h: New file.
2954 * config/darwin/thread-stacksize.h: New file.
2955 * config/nvptx/thread-stacksize.h: New file.
2956 * env.c: Include thread-stacksize.h.
2957 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
2958 instead of 0. Call pthread_attr_setstacksize even if
2959 GOMP_DEFAULT_STACKSIZE is non-zero.
2961 2017-03-30 Jakub Jelinek <jakub@redhat.com>
2963 * env.c (initialize_env): Initialize stacksize to 0.
2965 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
2968 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
2970 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2973 * testsuite/libgomp.c/pr79940.c: New test.
2975 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2977 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
2979 Add __float128 options.
2981 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
2983 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
2984 hppa*-*-* dg-skip-if directive.
2986 2017-02-09 Jakub Jelinek <jakub@redhat.com>
2988 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
2989 dg-skip-if directive into a comment.
2991 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
2992 Chung-Lin Tang <cltang@codesourcery.com>
2994 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
2995 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
2996 add additional case.
2997 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
2998 "openacc_nvidia_accel_selected".
2999 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
3000 Add num_workers(8) clause.
3002 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
3004 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
3006 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
3007 include complex.h on hppa*-*-hpux*.
3008 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3010 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
3012 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
3014 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
3015 GOMP_OFFLOAD_openacc_exec. Adjust all users.
3016 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
3017 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
3018 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
3019 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
3020 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
3021 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
3022 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
3023 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
3025 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
3027 * libgomp-plugin.h: #include <stdbool.h>.
3028 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
3029 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
3030 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
3031 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
3032 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
3033 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
3034 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
3035 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
3036 (GOMP_OFFLOAD_openacc_register_async_cleanup)
3037 (GOMP_OFFLOAD_openacc_async_test)
3038 (GOMP_OFFLOAD_openacc_async_test_all)
3039 (GOMP_OFFLOAD_openacc_async_wait)
3040 (GOMP_OFFLOAD_openacc_async_wait_async)
3041 (GOMP_OFFLOAD_openacc_async_wait_all)
3042 (GOMP_OFFLOAD_openacc_async_wait_all_async)
3043 (GOMP_OFFLOAD_openacc_async_set_async)
3044 (GOMP_OFFLOAD_openacc_create_thread_data)
3045 (GOMP_OFFLOAD_openacc_destroy_thread_data)
3046 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
3047 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
3048 (GOMP_OFFLOAD_openacc_get_cuda_stream)
3049 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
3050 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
3052 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
3053 (GOMP_OFFLOAD_unload_image): Fix argument types.
3055 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3057 * testsuite/lib/libgomp.exp
3058 (check_effective_target_hsa_offloading_selected_nocache): Fix up
3059 check_compile invocation. Fix up removal of executable. Drop
3060 bogus "2>&1" argument.
3062 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
3065 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
3066 Martin Jambor <mjambor@suse.cz>
3068 * plugin/hsa.h: Moved to top level include.
3069 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
3071 2017-01-21 Jakub Jelinek <jakub@redhat.com>
3074 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
3075 of cat to get version from BASE-VER file.
3076 * testsuite/Makefile.in: Regenerated.
3078 2017-01-19 Jakub Jelinek <jakub@redhat.com>
3080 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3083 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3085 * plugin/hsa.h: Add GCC runtime library exception.
3086 * plugin/hsa_ext_finalize.h: Likewise.
3088 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3089 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
3090 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3091 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3092 plugin/include/cuda as include dir and -ldl instead of -lcuda as
3093 library to link ptx plugin against.
3094 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3095 (CUDA_CALLS): Define.
3096 (cuda_lib, cuda_lib_inited): New variables.
3097 (init_cuda_lib): New function.
3098 (CUDA_CALL_PREFIX): Define.
3099 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3100 (CUDA_CALL): Use FN instead of (FN).
3101 (CUDA_CALL_NOCHECK): Define.
3102 (cuda_error, fini_streams_for_device, select_stream_for_async,
3103 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3104 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3105 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3106 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3108 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
3110 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3111 Use CUDA_CALL_NOCHECK.
3112 * plugin/cuda/cuda.h: New file.
3113 * config.h.in: Regenerated.
3114 * configure: Regenerated.
3117 * configure.ac: Add GCC_BASE_VER.
3118 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3119 get version from BASE-VER file.
3120 * testsuite/Makefile.in: Regenerated.
3121 * configure: Regenerated.
3122 * Makefile.in: Regenerated.
3124 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3127 * Makefile.am: Make fincludedir multilib-aware.
3128 * Makefile.in: Regenerate.
3130 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3132 Update copyright years.
3134 * libgomp.texi: Bump @copying's copyright year.
3136 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3138 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3139 pthread_spinlock_t instead of gomp_mutex_t lock.
3140 (gomp_get_thread_pool): Likewise.
3141 (gomp_release_thread_pool): Likewise.
3142 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3145 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3147 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3148 thread pool in case nthreads == 1.
3150 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3152 * config/nvptx/env.c: Delete.
3153 * icv.c: Move definitions of ICV variables back ...
3154 * env.c: ...here. Do not compile environment-related functionality if
3155 LIBGOMP_OFFLOADED_ONLY is set.
3157 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3159 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3160 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3161 * configure: Regenerate.
3162 * config.h.in: Likewise.
3164 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3166 * Makefile.in: Regenerate with automake-1.11.6.
3167 * aclocal.m4: Likewise.
3168 * configure: Likewise.
3169 * testsuite/Makefile.in: Likewise.
3171 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
3173 * config/nvptx/critical.c: Delete to use generic implementation.
3175 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3177 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3178 ../../affinity.c as fallback.
3179 * config/nvptx/affinity.c: Delete to use fallback implementation.
3181 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
3182 Jakub Jelinek <jakub@redhat.com>
3183 Dmitry Melnik <dm@ispras.ru>
3185 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3186 * Makefile.in. Regenerate.
3187 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3188 (LIBGOMP_USE_PTHREADS): ...here; new define.
3189 * configure: Regenerate.
3190 * config.h.in: Likewise.
3191 * config/posix/affinity.c: Move to...
3192 * affinity.c: ...here (new file). Guard use of Pthreads-specific
3193 interface by LIBGOMP_USE_PTHREADS.
3194 * critical.c: Split out GOMP_atomic_{start,end} into...
3195 * atomic.c: ...here (new file).
3196 * env.c: Split out ICV definitions into...
3197 * icv.c: ...here (new file) and...
3198 * icv-device.c: ...here. New file.
3199 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3200 (gomp_destroy_lock_30): Ditto.
3201 (gomp_set_lock_30): Ditto.
3202 (gomp_unset_lock_30): Ditto.
3203 (gomp_test_lock_30): Ditto.
3204 (gomp_init_nest_lock_30): Ditto.
3205 (gomp_destroy_nest_lock_30): Ditto.
3206 (gomp_set_nest_lock_30): Ditto.
3207 (gomp_unset_nest_lock_30): Ditto.
3208 (gomp_test_nest_lock_30): Ditto.
3210 * config/nvptx/lock.c: New.
3211 * config/nvptx/bar.c: New.
3212 * config/nvptx/bar.h: New.
3213 * config/nvptx/doacross.h: New.
3214 * config/nvptx/error.c: New.
3215 * config/nvptx/icv-device.c: New.
3216 * config/nvptx/mutex.h: New.
3217 * config/nvptx/pool.h: New.
3218 * config/nvptx/proc.c: New.
3219 * config/nvptx/ptrlock.h: New.
3220 * config/nvptx/sem.h: New.
3221 * config/nvptx/simple-bar.h: New.
3222 * config/nvptx/target.c: New.
3223 * config/nvptx/task.c: New.
3224 * config/nvptx/team.c: New.
3225 * config/nvptx/time.c: New.
3226 * config/posix/simple-bar.h: New.
3227 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
3228 (gomp_num_teams_var): Declare.
3229 (struct gomp_thread_pool): Change threads_dock member to
3230 gomp_simple_barrier_t.
3231 [__nvptx__] (gomp_thread): New implementation.
3232 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3233 (gomp_thread_destructor): Ditto.
3234 (gomp_init_thread_affinity): Ditto.
3235 * team.c: Guard uses of Pthreads-specific interfaces by
3236 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
3237 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3238 * config/nvptx/alloc.c: Delete.
3239 * config/nvptx/barrier.c: Ditto.
3240 * config/nvptx/fortran.c: Ditto.
3241 * config/nvptx/iter.c: Ditto.
3242 * config/nvptx/iter_ull.c: Ditto.
3243 * config/nvptx/loop.c: Ditto.
3244 * config/nvptx/loop_ull.c: Ditto.
3245 * config/nvptx/ordered.c: Ditto.
3246 * config/nvptx/parallel.c: Ditto.
3247 * config/nvptx/priority_queue.c: Ditto.
3248 * config/nvptx/sections.c: Ditto.
3249 * config/nvptx/single.c: Ditto.
3250 * config/nvptx/splay-tree.c: Ditto.
3251 * config/nvptx/work.c: Ditto.
3252 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3253 -foffload=-lgfortran in addition to -lgfortran.
3254 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3255 * plugin/plugin-nvptx.c: Include <limits.h>.
3256 (struct targ_fn_descriptor): Add new fields.
3257 (struct ptx_device): Ditto. Set them...
3258 (nvptx_open_device): ...here.
3259 (nvptx_adjust_launch_bounds): New.
3260 (nvptx_host2dev): Allow NULL 'nvthd'.
3261 (nvptx_dev2host): Ditto.
3262 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
3263 (link_ptx): Adjust log sizes.
3264 (nvptx_host2dev): Allow NULL 'nvthd'.
3265 (nvptx_dev2host): Ditto.
3266 (nvptx_set_clocktick): New. Use it...
3267 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
3269 (GOMP_OFFLOAD_dev2dev): New.
3270 (nvptx_adjust_launch_bounds): New.
3271 (nvptx_stacks_size): New.
3272 (nvptx_stacks_alloc): New.
3273 (nvptx_stacks_free): New.
3274 (GOMP_OFFLOAD_run): New.
3275 (GOMP_OFFLOAD_async_run): New (stub).
3277 2016-11-23 Martin Jambor <mjambor@suse.cz>
3279 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
3280 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
3281 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3283 2016-11-23 Martin Liska <mliska@suse.cz>
3284 Martin Jambor <mjambor@suse.cz>
3286 * plugin/hsa.h: New file.
3287 * plugin/hsa_ext_finalize.h: New file.
3288 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
3289 header file unistd.h, and functions secure_getenv, __secure_getenv,
3290 getuid, geteuid, getgid and getegid.
3291 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
3293 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
3294 Handle various cases of secure_getenv presence, add an implementation
3295 when we can test effective UID and GID.
3296 (struct hsa_runtime_fn_info): New structure.
3297 (hsa_runtime_fn_info hsa_fns): New variable.
3298 (hsa_runtime_lib): Likewise.
3299 (support_cpu_devices): Likewise.
3300 (init_enviroment_variables): Load newly introduced ENV
3302 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
3303 (hsa_fatal): Likewise.
3304 (DLSYM_FN): New macro.
3305 (init_hsa_runtime_functions): New function.
3306 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
3307 structure. Depending on environment, also allow CPU devices.
3308 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
3309 (get_kernarg_memory_region): Likewise.
3310 (GOMP_OFFLOAD_init_device): Likewise.
3311 (destroy_hsa_program): Likewise.
3312 (init_basic_kernel_info): New function.
3313 (GOMP_OFFLOAD_load_image): Use it.
3314 (create_and_finalize_hsa_program): Call hsa run-time functions via
3316 (create_single_kernel_dispatch): Likewise.
3317 (release_kernel_dispatch): Likewise.
3318 (init_single_kernel): Likewise.
3319 (parse_target_attributes): Allow up multiple HSA grid dimensions.
3320 (get_group_size): New function.
3321 (run_kernel): Likewise.
3322 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
3323 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
3325 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
3326 * testsuite/libgomp-test-support.exp.in: Likewise.
3327 * Makefile.in: Regenerated.
3328 * aclocal.m4: Likewise.
3329 * config.h.in: Likewise.
3330 * configure: Likewise.
3331 * testsuite/Makefile.in: Likewise.
3333 2016-11-15 Martin Jambor <mjambor@suse.cz>
3334 Alexander Monakov <amonakov@ispras.ru>
3336 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
3337 mapping clauses to target constructs.
3338 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
3340 2016-11-15 Matthias Klose <doko@ubuntu.com>
3342 * configure: Regenerate.
3344 2016-11-10 Jakub Jelinek <jakub@redhat.com>
3346 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
3347 * omp_lib.h.in (openmp_version): Likewise.
3348 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
3350 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3352 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
3353 (fib_wrapper): Add map(from: x) clause.
3354 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
3356 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
3357 (accum): Add map(tmp) clause.
3358 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
3359 (accum): Add map(tofrom: tmp) clause.
3360 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
3361 (gramSchmidt): Likewise.
3362 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
3363 map(tofrom: sum) clause.
3364 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
3365 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
3366 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
3367 only allowed on the loop iterator.
3368 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
3369 * testsuite/libgomp.fortran/taskloop2.f90: New test.
3370 * testsuite/libgomp.fortran/taskloop4.f90: New test.
3371 * testsuite/libgomp.fortran/doacross1.f90: New test.
3372 * testsuite/libgomp.fortran/doacross3.f90: New test.
3373 * testsuite/libgomp.fortran/taskloop1.f90: New test.
3374 * testsuite/libgomp.fortran/taskloop3.f90: New test.
3375 * testsuite/libgomp.fortran/doacross2.f90: New test.
3376 * testsuite/libgomp.c/doacross-1.c (main): Add missing
3377 #pragma omp atomic read.
3378 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3379 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
3381 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3382 Nathan Sidwell <nathan@acm.org>
3384 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3385 to determine default geometry.
3386 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3389 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3391 * hashtab.h: Use standard GPLv3 with runtime exception
3394 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3396 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3397 size when allocating new thread.
3399 2016-09-14 Marek Polacek <polacek@redhat.com>
3401 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3403 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3406 * testsuite/libgomp.fortran/pr71014.f90: New test.
3408 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3411 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3412 firstprivate clauses.
3413 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3415 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3416 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3417 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3418 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3419 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3420 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3421 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3422 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3423 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3424 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3425 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3426 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3428 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
3431 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3433 2016-08-08 Jakub Jelinek <jakub@redhat.com>
3436 * testsuite/libgomp.c++/pr58706.C: New test.
3438 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
3440 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3441 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3442 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3444 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3445 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3447 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3449 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3450 test, and don't hardcode -O0.
3452 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
3454 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3456 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
3458 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3461 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
3464 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3465 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3467 2016-07-01 Jakub Jelinek <jakub@redhat.com>
3470 * testsuite/libgomp.fortran/associate3.f90: New test.
3472 2016-06-17 Jakub Jelinek <jakub@redhat.com>
3474 * testsuite/libgomp.c++/target-21.C: New test.
3476 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3478 * testsuite/libgomp.c++/target-20.C: New test.
3480 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3481 Cesar Philippidis <cesar@codesourcery.com>
3484 * libgomp.oacc-c/nested-function-1.c: New file.
3485 * libgomp.oacc-c/nested-function-2.c: Likewise.
3486 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3487 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3488 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3490 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3493 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3494 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3495 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3497 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
3499 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3500 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3502 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
3505 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3507 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3509 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3510 instead of invalid schedule(static, 0).
3511 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3513 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3515 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3516 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3517 parameter, use to set async stream around call to gomp_unmap_vars,
3518 call gomp_unmap_vars() with 'do_copyfrom' set to true.
3519 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3520 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3521 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3522 (event_add): Add int parameter, initialize 'val' field when
3523 adding new ptx_event struct.
3524 (nvptx_evec): Adjust event_add() call arguments.
3525 (nvptx_host2dev): Likewise.
3526 (nvptx_dev2host): Likewise.
3527 (nvptx_wait_async): Likewise.
3528 (nvptx_wait_all_async): Likewise.
3529 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3530 pass to event_add() call.
3531 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3533 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3534 call openacc.register_async_cleanup_func() hook.
3535 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3536 * target.c (gomp_copy_from_async): Delete function.
3537 (gomp_map_vars): Remove async_refcount.
3538 (gomp_unmap_vars): Likewise.
3539 (gomp_load_image_to_device): Likewise.
3540 (omp_target_associate_ptr): Likewise.
3541 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3542 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3543 (gomp_copy_from_async): Remove.
3545 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3547 * target.c (gomp_device_copy): New function.
3548 (gomp_copy_host2dev): Likewise.
3549 (gomp_copy_dev2host): Likewise.
3550 (gomp_free_device_memory): Likewise.
3551 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3552 (gomp_map_pointer): Likewise.
3553 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3554 NULL value from alloc_func plugin hook.
3555 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3556 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3557 (gomp_unmap_vars): Likewise.
3558 (gomp_update): Adjust to call gomp_copy_dev2host and
3559 gomp_copy_host2dev functions.
3560 (gomp_unload_image_from_device): Handle false value from
3561 unload_image_func plugin hook.
3562 (gomp_init_device): Handle false value from init_device_func
3564 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3565 (omp_target_free): Adjust to call gomp_free_device_memory.
3566 (omp_target_memcpy): Handle return values from host2dev_func,
3567 dev2host_func, and dev2dev_func plugin hooks.
3568 (omp_target_memcpy_rect_worker): Likewise.
3569 (gomp_target_fini): Handle false value from fini_device_func
3571 * libgomp.h (struct gomp_device_descr): Adjust return type of
3572 init_device_func, fini_device_func, unload_image_func, free_func,
3573 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3574 * oacc-init.c (acc_shutdown_1): Handle false value from
3575 fini_device_func plugin hook.
3576 * oacc-host.c (host_init_device): Change return type to bool.
3577 (host_fini_device): Likewise.
3578 (host_unload_image): Likewise.
3579 (host_free): Likewise.
3580 (host_dev2host): Likewise.
3581 (host_host2dev): Likewise.
3582 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3583 (acc_memcpy_to_device): Likewise.
3584 (acc_memcpy_from_device): Likewise.
3585 (delete_copyout): Add libfnname parameter, handle free_func
3586 hook fatal error case.
3587 (acc_delete): Adjust delete_copyout call.
3588 (acc_copyout): Likewise.
3589 (update_dev_host): Move gomp_mutex_unlock to after
3590 host2dev/dev2host hook calls.
3592 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3593 to 'hsa_error_msg', for clarity.
3594 (hsa_fatal): Likewise.
3595 (hsa_error): New function.
3596 (init_hsa_context): Change return type to bool, adjust to return
3598 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3600 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3601 return false on error.
3602 (get_agent_info): Adjust to return NULL on error.
3603 (destroy_hsa_program): Change return type to bool, adjust to
3604 return false on error.
3605 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3606 (destroy_module): Change return type to bool, adjust to
3607 return false on error.
3608 (GOMP_OFFLOAD_unload_image): Likewise.
3609 (GOMP_OFFLOAD_fini_device): Likewise.
3610 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3611 (GOMP_OFFLOAD_free): Change to return false when called.
3612 (GOMP_OFFLOAD_dev2host): Likewise.
3613 (GOMP_OFFLOAD_host2dev): Likewise.
3614 (GOMP_OFFLOAD_dev2dev): Likewise.
3616 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3617 (CUDA_CALL): Likewise.
3618 (CUDA_CALL_ASSERT): Likewise.
3619 (map_init): Change return type to bool, use CUDA_CALL* macros.
3620 (map_fini): Likewise.
3621 (init_streams_for_device): Change return type to bool, adjust
3623 (fini_streams_for_device): Change return type to bool, adjust
3625 (select_stream_for_async): Release stream_lock before calls to
3626 GOMP_PLUGIN_fatal, adjust call to map_init.
3627 (nvptx_init): Use CUDA_CALL* macros.
3628 (nvptx_attach_host_thread_to_device): Change return type to bool,
3629 use CUDA_CALL* macros.
3630 (nvptx_open_device): Use CUDA_CALL* macros.
3631 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3633 (nvptx_get_num_devices): Use CUDA_CALL* macros.
3634 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3635 (nvptx_exec): Use CUDA_CALL* macros.
3636 (nvptx_alloc): Use CUDA_CALL* macros.
3637 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3638 (nvptx_host2dev): Likewise.
3639 (nvptx_dev2host): Likewise.
3640 (nvptx_wait): Use CUDA_CALL* macros.
3641 (nvptx_wait_async): Likewise.
3642 (nvptx_wait_all): Likewise.
3643 (nvptx_wait_all_async): Likewise.
3644 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3645 use CUDA_CALL* macros, adjust call to map_fini.
3646 (GOMP_OFFLOAD_init_device): Change return type to bool,
3647 adjust code accordingly.
3648 (GOMP_OFFLOAD_fini_device): Likewise.
3649 (GOMP_OFFLOAD_load_image): Adjust calls to
3650 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3651 use CUDA_CALL* macros.
3652 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3654 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3655 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3656 handle error return.
3657 (GOMP_OFFLOAD_dev2host): Likewise.
3658 (GOMP_OFFLOAD_host2dev): Likewise.
3659 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3660 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3662 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3664 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3665 (acc_free): Likewise.
3666 (acc_memcpy_to_device): Likewise.
3667 (acc_memcpy_from_device): Likewise.
3668 (acc_deviceptr): Likewise.
3669 (acc_hostptr): Likewise.
3670 (acc_is_present): Likewise.
3671 (acc_map_data): Likewise.
3672 (acc_unmap_data): Likewise.
3673 (present_create_copy): Likewise.
3674 (delete_copyout): Likewise.
3675 (update_dev_host): Likewise.
3676 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3677 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3678 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3679 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3680 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3681 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3682 it only runs on nvptx targets.
3683 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3684 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3685 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3686 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3687 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3688 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3689 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3690 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3691 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3692 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3693 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3694 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3695 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3696 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3697 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3698 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3699 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3700 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3701 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3702 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3703 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3704 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3705 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3707 2016-05-23 Martin Jambor <mjambor@suse.cz>
3709 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3711 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
3713 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3714 to gomp_init_targets_once.
3715 (acc_set_device_type): Remove !cached_base_dev condition on call to
3716 gomp_init_targets_once, move call to before acc_device_lock acquire,
3718 (acc_get_device_num): Remove !cached_base_dev condition on call to
3719 gomp_init_targets_once.
3720 (acc_set_device_num): Likewise.
3722 2016-05-16 Martin Jambor <mjambor@suse.cz>
3724 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3726 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3728 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3729 expected partitioning.
3731 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3734 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3735 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3736 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3738 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
3740 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3743 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3746 * testsuite/libgomp.c/pr70680-1.c: New test.
3747 * testsuite/libgomp.c/pr70680-2.c: New test.
3749 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3751 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3752 pass parameter variables to subroutines.
3754 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3757 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3759 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
3762 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3763 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3765 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
3767 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3768 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3769 GOACC_declare prototype.
3771 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3772 Merge this file, and...
3773 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3774 ... this file, and...
3775 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3776 ... this file, and...
3777 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3778 ... this file, and...
3779 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3780 ... this file, and...
3781 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3782 ... this file, and...
3783 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3784 ... this file, and...
3785 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3786 ... this file, and...
3787 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3788 ... this file, and...
3789 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3790 ... this file, and...
3791 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3792 ... this file, and...
3793 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3794 ... this file, and...
3795 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3796 ... this file into...
3797 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3800 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3801 Make failure observable.
3803 2016-04-12 Jakub Jelinek <jakub@redhat.com>
3805 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3807 * target.c (gomp_target_fallback_firstprivate,
3808 gomp_target_unshare_firstprivate): Removed.
3809 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3810 before waiting for dependencies.
3811 (gomp_target_task_fn): Don't copy firstprivate vars here.
3812 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3813 firstprivate_copies here.
3814 (gomp_create_target_task): Don't initialize firstprivate_copies field.
3815 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3816 explicit/implicit firstprivate.
3818 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
3822 PR tree-optimization/70373
3826 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3828 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3830 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3832 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3834 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3836 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3838 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3840 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3842 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3844 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3845 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3846 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3847 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3849 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3851 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3853 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3855 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3857 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3858 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3859 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3860 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3861 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3862 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3864 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3865 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3866 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3867 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3868 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3869 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3870 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3871 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3872 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3873 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3874 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3875 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3876 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3877 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3878 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3880 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
3881 James Norris <jnorris@codesourcery.com>
3882 Nathan Sidwell <nathan@codesourcery.com>
3883 Julian Brown <julian@codesourcery.com>
3884 Cesar Philippidis <cesar@codesourcery.com>
3885 Chung-Lin Tang <cltang@codesourcery.com>
3886 Tom de Vries <tom@codesourcery.com>
3888 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
3889 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3890 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3891 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
3892 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3893 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3894 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3895 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3896 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3898 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3900 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
3902 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
3903 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
3904 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
3905 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
3907 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3909 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3910 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
3911 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3912 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3913 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3914 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3915 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3916 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3917 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3918 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
3920 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
3921 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3922 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
3924 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
3926 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
3928 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
3930 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
3932 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
3933 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
3934 ... this new file. Update.
3935 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
3936 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
3937 ... this new file. Update.
3938 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
3939 file. Incorporate...
3940 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
3942 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
3944 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
3946 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
3948 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3950 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
3951 set-torture-options.
3953 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
3955 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
3957 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3958 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
3959 -fno-builtin-acc_on_device instead of -O0.
3960 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
3962 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3963 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
3965 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3966 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3967 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3968 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3969 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3970 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3971 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3972 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3973 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3974 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3975 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3976 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3977 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3978 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3979 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3980 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3981 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3982 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
3984 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
3986 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
3989 2016-03-24 Martin Liska <mliska@suse.cz>
3991 * plugin/plugin-hsa.c (packet_store_release): New function
3992 that is taken from the HSA runtime manual.
3993 (GOMP_OFFLOAD_run): Use the function.
3995 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3998 * testsuite/libgomp.c++/pr70376.C: New test.
4000 2016-03-23 Tom de Vries <tom@codesourcery.com>
4002 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
4003 initialization of lresult and lvresult.
4004 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
4006 2016-03-23 James Norris <jnorris@codesourcery.com>
4007 Daichi Fukuoka <dc-fukuoka@sgi.com>
4010 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
4011 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
4012 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4013 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
4015 2016-03-23 Martin Liska <mliska@suse.cz>
4018 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
4019 argument just in case a dispatched kernel uses that argument.
4021 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
4023 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
4024 -ftree-parallelize-loops/-fopenacc changes.
4025 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
4027 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4029 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
4031 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
4033 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4034 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4036 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
4038 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
4039 always_ld_library_path the path to libgcc_s.
4041 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
4044 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
4046 2016-03-09 Tom de Vries <tom@codesourcery.com>
4048 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
4049 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
4050 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4052 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
4053 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
4054 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
4055 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
4057 2016-03-07 Martin Jambor <mjambor@suse.cz>
4059 * testsuite/lib/libgomp.exp
4060 (check_effective_target_hsa_offloading_selected_nocache): New.
4061 (check_effective_target_hsa_offloading_selected): Likewise.
4062 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4063 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
4064 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4065 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4066 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4067 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4068 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4069 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4070 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4071 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4072 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4073 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4074 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4075 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4076 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4077 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4078 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4080 2016-03-07 Martin Jambor <mjambor@suse.cz>
4082 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4083 non-shared memory accelerators.
4084 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4085 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4086 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4087 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4088 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4089 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4090 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4091 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4092 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4094 2016-03-07 Martin Jambor <mjambor@suse.cz>
4096 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4099 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4102 * testsuite/libgomp.c++/pr69555-1.C: New test.
4103 * testsuite/libgomp.c++/pr69555-2.C: New test.
4105 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
4106 Martin Jambor <mjambor@suse.cz>
4108 * testsuite/lib/libgomp.exp
4109 (check_effective_target_offload_device_shared_as): New proc.
4110 * testsuite/libgomp.c++/declare_target-1.C: New test.
4112 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4115 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4117 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4119 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4120 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4122 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4123 -ftree-parallelize-loops/-fopenacc changes.
4124 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4125 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4127 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4129 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4131 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4133 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4135 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4137 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4139 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4140 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4142 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4143 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4145 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4146 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4149 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4151 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4153 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4156 * testsuite/libgomp.c/pr69805.c: New test.
4158 2016-02-16 Tom de Vries <tom@codesourcery.com>
4161 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4163 2016-02-09 Tom de Vries <tom@codesourcery.com>
4165 PR tree-optimization/69599
4166 * testsuite/libgomp.c/omp-nested-3.c: New test.
4167 * testsuite/libgomp.c/pr46032-2.c: New test.
4168 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4169 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4171 2016-02-09 Tom de Vries <tom@codesourcery.com>
4174 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4176 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4178 * testsuite/libgomp.c/target-31.c: Fix testcase.
4180 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4182 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4184 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4185 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4186 reduction and map clauses.
4187 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4189 2016-02-02 James Norris <jnorris@codesourcery.com>
4191 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4193 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4195 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4196 * oacc-parallel.c (GOACC_host_data): Remove function definition.
4198 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4201 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4203 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4204 (hsa_kmt_lib): Set variables.
4205 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4206 always_ld_library_path.
4207 * Makefile.in: Regenerate.
4208 * configure: Likewise.
4209 * testsuite/Makefile.in: Likewise.
4211 * plugin/configfrag.ac (offload_additional_options)
4212 (offload_additional_lib_paths): Don't amend for hsa offloading.
4213 * configure: Regenerate.
4215 * plugin/configfrag.ac: Don't configure for offloading target if
4216 we don't build the corresponding plugin.
4217 * configure: Regenerate.
4219 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4221 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4222 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4224 2016-01-26 Tom de Vries <tom@codesourcery.com>
4226 PR tree-optimization/69110
4227 * testsuite/libgomp.c/pr69110.c: New test.
4229 2016-01-25 Richard Biener <rguenther@suse.de>
4232 * testsuite/libgomp.c++/pr69393.C: New testcase.
4234 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
4236 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4237 function wasn't mapped to the device with non-shared memory.
4239 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
4241 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4243 2016-01-19 Martin Jambor <mjambor@suse.cz>
4244 Martin Liska <mliska@suse.cz>
4246 * plugin/Makefrag.am: Add HSA plugin requirements.
4247 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4248 (HSA_RUNTIME_LIB): Likewise.
4249 (HSA_RUNTIME_CPPFLAGS): Likewise.
4250 (HSA_RUNTIME_INCLUDE): New substitution.
4251 (HSA_RUNTIME_LIB): Likewise.
4252 (HSA_RUNTIME_LDFLAGS): Likewise.
4253 (hsa-runtime): New configure option.
4254 (hsa-runtime-include): Likewise.
4255 (hsa-runtime-lib): Likewise.
4256 (PLUGIN_HSA): New substitution variable.
4257 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4259 (PLUGIN_HSA_CPPFLAGS): Likewise.
4260 (PLUGIN_HSA_LDFLAGS): Likewise.
4261 (PLUGIN_HSA_LIBS): Likewise.
4262 Check that we have access to HSA run-time.
4263 * libgomp-plugin.h (offload_target_type): New element
4264 OFFLOAD_TARGET_TYPE_HSA.
4265 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
4267 (bool gomp_create_target_task): Updated.
4268 (gomp_device_descr): Extra parameter of run_func and async_run_func,
4269 new field can_run_func.
4270 * libgomp_g.h (GOMP_target_ext): Update prototype.
4271 * oacc-host.c (host_run): Added a new parameter args.
4272 * target.c (calculate_firstprivate_requirements): New function.
4273 (copy_firstprivate_data): Likewise.
4274 (gomp_target_fallback_firstprivate): Use them.
4275 (gomp_target_unshare_firstprivate): New function.
4276 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
4278 (GOMP_target): Do host fallback for all shared memory devices. Do not
4279 pass any args to plugins.
4280 (GOMP_target_ext): Introduce device-specific argument parameter args.
4281 Allow host fallback if device shares memory. Do not remap data if
4282 device has shared memory.
4283 (gomp_target_task_fn): Likewise. Also treat shared memory devices
4284 like host fallback for mappings.
4285 (GOMP_target_data): Treat shared memory devices like host fallback.
4286 (GOMP_target_data_ext): Likewise.
4287 (GOMP_target_update): Likewise.
4288 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
4289 gomp_create_target_task.
4290 (GOMP_target_enter_exit_data): Likewise.
4291 (omp_target_alloc): Treat shared memory devices like host fallback.
4292 (omp_target_free): Likewise.
4293 (omp_target_is_present): Likewise.
4294 (omp_target_memcpy): Likewise.
4295 (omp_target_memcpy_rect): Likewise.
4296 (omp_target_associate_ptr): Likewise.
4297 (gomp_load_plugin_for_device): Also load can_run.
4298 * task.c (GOMP_PLUGIN_target_task_completion): Free
4299 firstprivate_copies.
4300 (gomp_create_target_task): Accept new argument args and store it to
4302 * plugin/plugin-hsa.c: New file.
4304 2016-01-18 Tom de Vries <tom@codesourcery.com>
4306 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
4307 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
4308 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
4309 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
4310 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
4311 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
4312 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
4313 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
4314 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
4315 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
4316 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4318 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4320 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
4321 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
4322 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
4323 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
4324 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
4325 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
4326 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
4327 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4329 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
4331 2016-01-15 Jakub Jelinek <jakub@redhat.com>
4333 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
4335 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
4337 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
4339 2016-01-12 James Norris <jnorris@codesourcery.com>
4341 * libgomp.texi: Updates for OpenACC.
4343 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
4345 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
4347 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4350 * testsuite/libgomp.fortran/pr66680.f90: New test.
4352 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4355 * testsuite/libgomp.c/pr68960.c: New test.
4357 2016-01-06 Nathan Sidwell <nathan@acm.org>
4359 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
4360 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
4362 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4364 Update copyright years.
4366 * libgomp.texi: Bump @copying's copyright year.
4368 2015-12-31 Nathan Sidwell <nathan@acm.org>
4370 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
4371 dg-additional-options syntax.
4372 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4373 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4374 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4375 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4376 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4377 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4378 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4379 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4380 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4381 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4382 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4383 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4384 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4385 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4386 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4387 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4388 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4389 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4391 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4393 * libgomp.h (REFCOUNT_LINK): Define.
4394 (struct splay_tree_key_s): Add link_key.
4395 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4396 Replace target address of the pointer with target address of newly
4397 mapped object in the splay tree. Set link pointer on target to the
4398 device address of the mapped object.
4399 (gomp_unmap_vars): Restore target address of the pointer in the splay
4400 tree for REFCOUNT_LINK objects after unmapping.
4401 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4402 declare target link" objects.
4403 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
4404 "omp declare target link" objects, which were mapped for the image.
4405 (gomp_exit_data): Restore target address of the pointer in the splay
4406 tree for REFCOUNT_LINK objects after unmapping.
4407 * testsuite/libgomp.c/target-link-1.c: New file.
4409 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
4411 * libgomp.h (gomp_device_state): New enum.
4412 (struct gomp_device_descr): Replace is_initialized with state.
4413 (gomp_fini_device): Remove declaration.
4414 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4415 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4416 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
4417 (acc_set_device_type): Use state instead of is_initialized.
4418 (acc_set_device_num): Likewise.
4419 * target.c (resolve_device): Use state instead of is_initialized.
4420 Do not initialize finalized device.
4421 (gomp_map_vars): Do nothing if device is finalized.
4422 (gomp_unmap_vars): Likewise.
4423 (gomp_update): Likewise.
4424 (GOMP_offload_register_ver): Use state instead of is_initialized.
4425 (GOMP_offload_unregister_ver): Likewise.
4426 (gomp_init_device): Likewise.
4427 (gomp_unload_device): Likewise.
4428 (gomp_fini_device): Remove.
4429 (gomp_get_target_fn_addr): Do nothing if device is finalized.
4430 (GOMP_target): Go to host fallback if device is finalized.
4431 (GOMP_target_ext): Likewise.
4432 (gomp_exit_data): Do nothing if device is finalized.
4433 (gomp_target_task_fn): Go to host fallback if device is finalized.
4434 (gomp_target_fini): New static function.
4435 (gomp_target_init): Use state instead of is_initialized.
4436 Call gomp_target_fini at exit.
4438 2015-12-09 Tom de Vries <tom@codesourcery.com>
4440 PR tree-optimization/68716
4441 * testsuite/libgomp.c/omp-nested-2.c: New test.
4443 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
4445 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4446 target openacc_nvidia_accel_selected.
4447 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4448 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4449 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4450 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4452 2015-12-01 Julian Brown <julian@codesourcery.com>
4453 James Norris <James_Norris@mentor.com>
4455 * oacc-parallel.c (GOACC_host_data): New function.
4456 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4457 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4458 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4459 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4460 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4461 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4462 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4464 2015-11-30 James Norris <jnorris@codesourcery.com>
4465 Cesar Philippidis <cesar@codesourcery.com>
4468 * libgomp.oacc-fortran/routine-5.f90: New test.
4469 * libgomp.oacc-fortran/routine-7.f90: New test.
4470 * libgomp.oacc-fortran/routine-9.f90: New test.
4472 2015-11-30 Tom de Vries <tom@codesourcery.com>
4474 PR tree-optimization/46032
4475 * testsuite/libgomp.c/pr46032.c: New test.
4477 2015-11-27 Jakub Jelinek <jakub@redhat.com>
4480 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4481 (gomp_create_target_task): Call it before freeing
4482 GOMP_TARGET_TASK_DATA tasks.
4485 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4486 in between case label and OpenMP standalone directives.
4487 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4489 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
4491 * configure: Regenerate.
4493 2015-11-26 Jakub Jelinek <jakub@redhat.com>
4495 * testsuite/libgomp.c/target-35.c: New test.
4497 2015-11-22 James Norris <jnorris@codesourcery.com>
4498 Cesar Philippidis <cesar@codesourcery.com>
4500 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4501 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4502 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4503 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4504 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4506 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4509 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4510 * testsuite/libgomp.c/reduction-12.c: Likewise.
4511 * testsuite/libgomp.c++/reduction-11.C: Likewise.
4512 * testsuite/libgomp.c++/reduction-12.C: Likewise.
4514 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
4516 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4517 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4518 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4519 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4520 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4522 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4523 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4525 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4527 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4528 worker & gang cases.
4529 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4531 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
4533 * config/nvptx/priority_queue.c: New file.
4535 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4537 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4540 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4541 Aldy Hernandez <aldyh@redhat.com>
4542 Ilya Verbin <ilya.verbin@intel.com>
4544 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4545 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4546 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4547 iterators or IV by chunk size.
4548 * parallel.c (gomp_resolve_num_threads): Don't assume that
4549 if thr->ts.team is non-NULL, then pool must be non-NULL.
4550 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4551 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4552 GOMP_PLUGIN_target_task_completion.
4553 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4554 * Makefile.in: Regenerate.
4555 * libgomp.h: Shuffle prototypes and forward definitions around so
4556 priority queues can be defined.
4557 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4558 (enum gomp_target_task_state): New enum.
4559 (struct gomp_target_task): Add state, tgt, task and team fields.
4560 (gomp_create_target_task): Change return type to bool, add
4562 (gomp_target_task_fn): Change return type to bool.
4563 (struct gomp_device_descr): Add async_run_func.
4564 (struct gomp_task): Remove children, next_child, prev_child,
4565 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4567 (struct gomp_taskgroup): Remove children.
4568 Add taskgroup_queue.
4569 (struct gomp_team): Change task_queue type to a priority queue.
4570 (splay_compare): Define inline.
4571 (priority_queue_offset): New.
4572 (priority_node_to_task): New.
4573 (task_to_priority_node): New.
4574 * oacc-mem.c: Do not include splay-tree.h.
4575 * priority_queue.c: New file.
4576 * priority_queue.h: New file.
4577 * splay-tree.c: Do not include splay-tree.h.
4578 (splay_tree_foreach_internal): New.
4579 (splay_tree_foreach): New.
4580 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4581 (splay_tree_callback): Define typedef.
4582 * target.c (splay_compare): Move to libgomp.h.
4583 (GOMP_target): Don't adjust *thr in any way around running offloaded
4585 (GOMP_target_ext): Likewise. Handle target nowait.
4586 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4587 return value from gomp_create_target_task, if false, fallthrough
4588 as if no dependencies exist.
4589 (gomp_target_task_fn): Change return type to bool, return true
4590 if the task should have another part scheduled later. Handle
4592 (gomp_load_plugin_for_device): Initialize async_run.
4593 * task.c (gomp_init_task): Initialize children_queue.
4594 (gomp_clear_parent_in_list): New.
4595 (gomp_clear_parent_in_tree): New.
4596 (gomp_clear_parent): Handle priorities.
4597 (GOMP_task): Likewise.
4598 (priority_queue_move_task_first,
4599 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4601 (gomp_create_target_task): Use priority queues. Change return type
4602 to bool, add state argument, return false if for async
4603 {{enter,exit} data,update} constructs no dependencies need to be
4604 waited for, handle target nowait. Set task->fn to NULL instead of
4605 gomp_target_task_fn.
4606 (verify_children_queue): Remove.
4607 (priority_list_upgrade_task): New.
4608 (priority_queue_upgrade_task): New.
4609 (verify_task_queue): Remove.
4610 (priority_list_downgrade_task): New.
4611 (priority_queue_downgrade_task): New.
4612 (gomp_task_run_pre): Use priority queues.
4613 Abstract code out to priority_queue_downgrade_task.
4614 (gomp_task_run_post_handle_dependers): Use priority queues.
4615 (gomp_task_run_post_remove_parent): Likewise.
4616 (gomp_task_run_post_remove_taskgroup): Likewise.
4617 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
4619 (GOMP_taskwait): Likewise.
4620 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
4621 priority-queue_upgrade_task.
4622 (GOMP_taskgroup_start): Use priority queues.
4623 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
4624 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
4626 * taskloop.c (GOMP_taskloop): Handle priorities.
4627 * team.c (gomp_new_team): Call priority_queue_init.
4628 (free_team): Call priority_queue_free.
4629 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4630 team created for target nowait in implicit parallel region.
4631 (gomp_team_start): For nested check, test thr->ts.level instead of
4632 thr->ts.team != NULL.
4633 * testsuite/libgomp.c/doacross-3.c: New test.
4634 * testsuite/libgomp.c/ordered-5.c: New test.
4635 * testsuite/libgomp.c/priority.c: New test.
4636 * testsuite/libgomp.c/target-31.c: New test.
4637 * testsuite/libgomp.c/target-32.c: New test.
4638 * testsuite/libgomp.c/target-33.c: New test.
4639 * testsuite/libgomp.c/target-34.c: New test.
4641 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4643 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4645 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4648 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4650 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4651 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4653 2015-11-12 James Norris <jnorris@codesourcery.com>
4654 Joseph Myers <joseph@codesourcery.com>
4656 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4657 * oacc-parallel.c (GOACC_declare): New function.
4658 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4659 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4660 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4661 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4662 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4664 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4666 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4668 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
4670 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4671 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4673 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4675 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4678 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4680 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4681 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4682 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4683 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4684 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4686 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
4688 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4689 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4691 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4692 Ilya Verbin <ilya.verbin@intel.com>
4694 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4695 GOMP_loop_nonmonotonic_dynamic_start,
4696 GOMP_loop_nonmonotonic_guided_next,
4697 GOMP_loop_nonmonotonic_guided_start,
4698 GOMP_loop_ull_nonmonotonic_dynamic_next,
4699 GOMP_loop_ull_nonmonotonic_dynamic_start,
4700 GOMP_loop_ull_nonmonotonic_guided_next,
4701 GOMP_loop_ull_nonmonotonic_guided_start,
4702 GOMP_parallel_loop_nonmonotonic_dynamic,
4703 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4704 (GOMP_target_41): Renamed to ...
4705 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4707 (GOMP_target_data_41): Renamed to ...
4708 (GOMP_target_data_ext): ... this.
4709 (GOMP_target_update_41): Renamed to ...
4710 (GOMP_target_update_ext): ... this.
4711 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4712 GOMP_target_data_ext and GOMP_target_update_ext instead of
4713 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4714 Export GOMP_loop_nonmonotonic_dynamic_next,
4715 GOMP_loop_nonmonotonic_dynamic_start,
4716 GOMP_loop_nonmonotonic_guided_next,
4717 GOMP_loop_nonmonotonic_guided_start,
4718 GOMP_loop_ull_nonmonotonic_dynamic_next,
4719 GOMP_loop_ull_nonmonotonic_dynamic_start,
4720 GOMP_loop_ull_nonmonotonic_guided_next,
4721 GOMP_loop_ull_nonmonotonic_guided_start,
4722 GOMP_parallel_loop_nonmonotonic_dynamic and
4723 GOMP_parallel_loop_nonmonotonic_guided.
4724 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4725 GOMP_parallel_loop_nonmonotonic_guided,
4726 GOMP_loop_nonmonotonic_dynamic_start,
4727 GOMP_loop_nonmonotonic_guided_start,
4728 GOMP_loop_nonmonotonic_dynamic_next,
4729 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4730 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4731 GOMP_loop_ull_nonmonotonic_guided_start,
4732 GOMP_loop_ull_nonmonotonic_dynamic_next,
4733 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4734 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4736 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
4737 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4738 Use gomp_map_val function.
4739 (gomp_target_fallback_firstprivate): New static function.
4740 (GOMP_target_41): Renamed to ...
4741 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4742 arguments. Move firstprivate fallback handling into a new
4744 (GOMP_target_data_41): Renamed to ...
4745 (GOMP_target_data_ext): ... this.
4746 (GOMP_target_update_41): Renamed to ...
4747 (GOMP_target_update_ext): ... this.
4748 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4749 gomp_map_0len_lookup instead of gomp_map_lookup.
4750 (omp_target_is_present): Use gomp_map_0len_lookup instead of
4752 * testsuite/libgomp.c/target-28.c: Likewise.
4753 * testsuite/libgomp.c/monotonic-1.c: New test.
4754 * testsuite/libgomp.c/monotonic-2.c: New test.
4755 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4756 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4757 * testsuite/libgomp.c/pr66199-5.c: New test.
4758 * testsuite/libgomp.c/pr66199-6.c: New test.
4759 * testsuite/libgomp.c/pr66199-7.c: New test.
4760 * testsuite/libgomp.c/pr66199-8.c: New test.
4761 * testsuite/libgomp.c/pr66199-9.c: New test.
4762 * testsuite/libgomp.c/reduction-11.c: New test.
4763 * testsuite/libgomp.c/reduction-12.c: New test.
4764 * testsuite/libgomp.c/reduction-13.c: New test.
4765 * testsuite/libgomp.c/reduction-14.c: New test.
4766 * testsuite/libgomp.c/reduction-15.c: New test.
4767 * testsuite/libgomp.c/target-12.c (main): Adjust for
4768 omp_target_is_present change for one-past-last element.
4769 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4770 the same var is both mapped and privatized.
4771 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4772 handling of zero-length array sections.
4773 * testsuite/libgomp.c/target-28.c: New test.
4774 * testsuite/libgomp.c/target-29.c: New test.
4775 * testsuite/libgomp.c/target-30.c: New test.
4776 * testsuite/libgomp.c/target-teams-1.c: New test.
4777 * testsuite/libgomp.c++/member-6.C: New test.
4778 * testsuite/libgomp.c++/member-7.C: New test.
4779 * testsuite/libgomp.c++/monotonic-1.C: New test.
4780 * testsuite/libgomp.c++/monotonic-2.C: New test.
4781 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4782 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4783 * testsuite/libgomp.c++/pr66199-3.C: New test.
4784 * testsuite/libgomp.c++/pr66199-4.C: New test.
4785 * testsuite/libgomp.c++/pr66199-5.C: New test.
4786 * testsuite/libgomp.c++/pr66199-6.C: New test.
4787 * testsuite/libgomp.c++/pr66199-7.C: New test.
4788 * testsuite/libgomp.c++/pr66199-8.C: New test.
4789 * testsuite/libgomp.c++/pr66199-9.C: New test.
4790 * testsuite/libgomp.c++/reduction-11.C: New test.
4791 * testsuite/libgomp.c++/reduction-12.C: New test.
4792 * testsuite/libgomp.c++/target-13.C: New test.
4793 * testsuite/libgomp.c++/target-14.C: New test.
4794 * testsuite/libgomp.c++/target-15.C: New test.
4795 * testsuite/libgomp.c++/target-16.C: New test.
4796 * testsuite/libgomp.c++/target-17.C: New test.
4797 * testsuite/libgomp.c++/target-18.C: New test.
4798 * testsuite/libgomp.c++/target-19.C: New test.
4800 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4802 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4804 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4805 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4806 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4807 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4808 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4809 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4810 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4811 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4812 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4813 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4814 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4815 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4816 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4817 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4819 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4821 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4822 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4823 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4824 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4825 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4826 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4827 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4828 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4830 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4832 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4833 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4834 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4835 * oacc-host.c (host_openacc_exec): Likewise.
4836 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4838 2015-11-03 Julian Brown <julian@codesourcery.com>
4839 Thomas Schwinge <thomas@codesourcery.com>
4841 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4842 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4843 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4845 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4846 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4848 2015-11-03 James Norris <jnorris@codesourcery.com>
4850 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4852 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4854 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4855 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4856 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4857 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4858 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4860 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4862 * openacc.h (enum acc_device_t): Reformat. Ensure layout
4864 (enum acc_async_t): Reformat.
4865 (acc_on_device): Declare compatible with builtin and provide C++
4867 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4869 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
4870 Cesar Philippidis <cesar@codesourcery.com>
4872 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4873 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4874 ... this. Add a description of the test at the top of the file.
4875 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4876 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4877 ... this. Add a description of the test at the top of the file.
4879 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4881 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4882 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4883 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4884 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4885 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4886 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
4888 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4890 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
4893 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4896 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
4898 2015-10-27 James Norris <jnorris@codesourcery.com>
4900 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
4901 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
4903 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
4905 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
4906 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4908 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
4909 acc_device_nvidia usage.
4910 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4911 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4912 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4914 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
4915 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
4918 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
4922 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
4923 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
4925 2015-10-23 Tom de Vries <tom@codesourcery.com>
4928 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
4930 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
4932 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
4934 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4936 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
4937 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
4939 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
4940 to 0 when mapnum is 0.
4942 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
4944 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
4945 Cast to int from int32_t.
4947 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4948 Aldy Hernandez <aldyh@redhat.com>
4949 Ilya Verbin <ilya.verbin@intel.com>
4951 * config/linux/affinity.c (omp_get_place_num_procs,
4952 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4953 * config/linux/doacross.h: New file.
4954 * config/posix/affinity.c (omp_get_place_num_procs,
4955 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4956 * config/posix/doacross.h: New file.
4957 * env.c: Include gomp-constants.h.
4958 (struct gomp_task_icv): Rename run_sched_modifier to
4959 run_sched_chunk_size.
4960 (gomp_max_task_priority_var): New variable.
4961 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
4962 (handle_omp_display_env): Change _OPENMP value from 201307 to
4963 201511. Print OMP_MAX_TASK_PRIORITY.
4964 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
4965 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
4966 chunk_size and run_sched_modifier to run_sched_chunk_size.
4967 (omp_get_max_task_priority, omp_get_initial_device,
4968 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
4969 omp_get_partition_place_nums): New functions.
4970 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
4971 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
4973 (omp_get_num_places_, omp_get_place_num_procs_,
4974 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
4975 omp_get_place_proc_ids_8_, omp_get_place_num_,
4976 omp_get_partition_num_places_, omp_get_partition_place_nums_,
4977 omp_get_partition_place_nums_8_, omp_get_initial_device_,
4978 omp_get_max_task_priority_): New functions.
4979 * libgomp_g.h (GOMP_loop_doacross_static_start,
4980 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
4981 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
4982 GOMP_loop_ull_doacross_dynamic_start,
4983 GOMP_loop_ull_doacross_guided_start,
4984 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
4985 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
4986 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
4987 GOMP_target_data_41, GOMP_target_update_41,
4988 GOMP_target_enter_exit_data): New prototypes.
4989 (GOMP_task): Add prototype argument.
4990 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
4991 (struct gomp_doacross_work_share): New type.
4992 (struct gomp_work_share): Add doacross field.
4993 (struct gomp_task_icv): Rename run_sched_modifier to
4994 run_sched_chunk_size.
4995 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
4996 GOMP_TASK_UNDEFERRED. Add comments.
4997 (struct gomp_task_depend_entry): Add comments.
4998 (struct gomp_task): Likewise.
4999 (struct gomp_taskgroup): Likewise.
5000 (struct gomp_target_task): New type.
5001 (struct gomp_team): Add comment.
5002 (gomp_get_place_proc_ids_8, gomp_doacross_init,
5003 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
5004 gomp_create_target_task, gomp_target_task_fn): New prototypes.
5005 (struct target_var_desc): New type.
5006 (struct target_mem_desc): Adjust comment. Use struct
5007 target_var_desc instead of splay_tree_key for list.
5008 (REFCOUNT_INFINITY): Define.
5009 (struct splay_tree_key_s): Remove copy_from field.
5010 (struct gomp_device_descr): Add dev2dev_func field.
5011 (enum gomp_map_vars_kind): New enum.
5012 (gomp_map_vars): Add one argument.
5013 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
5014 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
5015 omp_get_place_num_procs, omp_get_place_num_procs_,
5016 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
5017 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
5018 omp_get_place_num_, omp_get_partition_num_places,
5019 omp_get_partition_num_places_, omp_get_partition_place_nums,
5020 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
5021 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
5022 omp_target_free, omp_target_is_present, omp_target_memcpy,
5023 omp_target_memcpy_rect, omp_target_associate_ptr and
5024 omp_target_disassociate_ptr.
5025 (GOMP_4.0.2): Renamed to ...
5026 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
5027 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
5028 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
5029 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5030 GOMP_loop_doacross_static_start, GOMP_doacross_post,
5031 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
5032 GOMP_loop_ull_doacross_guided_start,
5033 GOMP_loop_ull_doacross_runtime_start,
5034 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
5035 GOMP_doacross_ull_wait.
5036 * libgomp.texi: Document omp_get_max_task_priority.
5037 Rename modifier argument to chunk_size for omp_set_schedule and
5038 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
5039 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
5040 to run_sched_chunk_size renaming.
5041 (GOMP_loop_ordered_runtime_start): Likewise.
5042 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5043 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5044 GOMP_parallel_loop_runtime_start): New functions.
5045 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
5046 to run_sched_chunk_size renaming.
5047 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
5048 GOMP_loop_doacross_guided_start): New functions or aliases.
5049 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
5050 run_sched_modifier to run_sched_chunk_size renaming.
5051 (GOMP_loop_ull_ordered_runtime_start): Likewise.
5052 (gomp_loop_ull_doacross_static_start,
5053 gomp_loop_ull_doacross_dynamic_start,
5054 gomp_loop_ull_doacross_guided_start,
5055 GOMP_loop_ull_doacross_runtime_start): New functions.
5056 (GOMP_loop_ull_doacross_static_start,
5057 GOMP_loop_ull_doacross_dynamic_start,
5058 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
5059 * oacc-mem.c (acc_map_data, present_create_copy,
5060 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
5062 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
5063 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
5064 instead of false to gomp_map_vars.
5065 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
5066 * omp.h.in (omp_lock_hint_t): New type.
5067 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5068 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5069 omp_get_place_num, omp_get_partition_num_places,
5070 omp_get_partition_place_nums, omp_get_initial_device,
5071 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
5072 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
5073 omp_target_associate_ptr, omp_target_disassociate_ptr): New
5075 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
5076 (omp_lock_hint_none, omp_lock_hint_uncontended,
5077 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5078 omp_lock_hint_speculative): New parameters.
5079 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5080 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5081 omp_get_place_num, omp_get_partition_num_places,
5082 omp_get_partition_place_nums, omp_get_initial_device,
5083 omp_get_max_task_priority): New interfaces.
5084 (omp_set_schedule, omp_get_schedule): Rename modifier argument
5086 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5087 (omp_lock_hint_none, omp_lock_hint_uncontended,
5088 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5089 omp_lock_hint_speculative): New parameters.
5090 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5091 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5092 omp_get_place_num, omp_get_partition_num_places,
5093 omp_get_partition_place_nums, omp_get_initial_device,
5094 omp_get_max_task_priority): New functions and subroutines.
5095 * ordered.c: Include stdarg.h and string.h.
5096 (MAX_COLLAPSED_BITS): Define.
5097 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5098 gomp_doacross_ull_init, GOMP_doacross_ull_post,
5099 GOMP_doacross_ull_wait): New functions.
5100 * target.c: Include errno.h.
5101 (resolve_device): If device is not initialized, call
5102 gomp_init_device on it.
5103 (gomp_map_lookup): New function.
5104 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5105 Don't bump refcount if REFCOUNT_INFINITY. Handle
5106 GOMP_MAP_ALWAYS_TO_P.
5107 (get_kind): Rename is_openacc argument to short_mapkind.
5108 (gomp_map_pointer): Use gomp_map_lookup.
5109 (gomp_map_fields_existing): New function.
5110 (gomp_map_vars): Rename is_openacc argument to short_mapkind
5111 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
5112 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5113 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5114 Adjust for tgt->list changed type and copy_from living in there.
5115 (gomp_copy_from_async): Adjust for tgt->list changed type and
5116 copy_from living in there.
5117 (gomp_unmap_vars): Likewise.
5118 (gomp_update): Likewise. Rename is_openacc argument to
5119 short_mapkind. Don't fail if object is not mapped.
5120 (gomp_load_image_to_device): Initialize refcount to
5122 (gomp_target_fallback): New function.
5123 (gomp_get_target_fn_addr): Likewise.
5124 (GOMP_target): Adjust gomp_map_vars caller, use
5125 gomp_get_target_fn_addr and gomp_target_fallback.
5126 (GOMP_target_41): New function.
5127 (gomp_target_data_fallback): New function.
5128 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5129 (GOMP_target_data_41): New function.
5130 (GOMP_target_update): Adjust gomp_update caller.
5131 (GOMP_target_update_41): New function.
5132 (gomp_exit_data, GOMP_target_enter_exit_data,
5133 gomp_target_task_fn, omp_target_alloc, omp_target_free,
5134 omp_target_is_present, omp_target_memcpy,
5135 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5136 omp_target_associate_ptr, omp_target_disassociate_ptr,
5137 gomp_load_plugin_for_device): New functions.
5138 * task.c: Include gomp-constants.h. Include taskloop.c
5139 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5140 (gomp_task_handle_depend): New function.
5141 (GOMP_task): Use it. Add priority argument. Use
5142 gomp-constant.h constants instead of hardcoded numbers.
5143 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5144 (gomp_create_target_task): New function.
5145 (verify_children_queue, verify_taskgroup_queue,
5146 verify_task_queue): New functions.
5147 (gomp_task_run_pre): Call verify_*_queue functions.
5148 If an upcoming tied task is about to leave the sibling or
5149 taskgroup queues in an invalid state, adjust appropriately.
5150 Remove taskgroup argument. Add comments.
5151 (gomp_task_run_post_handle_dependers): Add comments.
5152 (gomp_task_run_post_remove_parent): Likewise.
5153 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5154 (GOMP_taskwait): Likewise. Add comments.
5155 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5156 problem such that the first non parent_depends_on task does not
5157 end up at the end of the children queue.
5158 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5159 GOMP_TASK_UNDEFERRED.
5160 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5161 * taskloop.c: New file.
5162 * testsuite/lib/libgomp.exp
5163 (check_effective_target_offload_device_nonshared_as): New proc.
5164 * testsuite/libgomp.c/affinity-2.c: New test.
5165 * testsuite/libgomp.c/doacross-1.c: New test.
5166 * testsuite/libgomp.c/doacross-2.c: New test.
5167 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5168 Add map clause to target.
5169 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5170 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5171 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5172 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5173 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5175 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5176 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5177 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5178 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5179 not defined. Use those where needed.
5180 * testsuite/libgomp.c/for-4.c: New test.
5181 * testsuite/libgomp.c/for-5.c: New test.
5182 * testsuite/libgomp.c/for-6.c: New test.
5183 * testsuite/libgomp.c/linear-1.c: New test.
5184 * testsuite/libgomp.c/ordered-4.c: New test.
5185 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5186 only allowed on the loop iterator.
5187 * testsuite/libgomp.c/pr66199-3.c: New test.
5188 * testsuite/libgomp.c/pr66199-4.c: New test.
5189 * testsuite/libgomp.c/reduction-7.c: New test.
5190 * testsuite/libgomp.c/reduction-8.c: New test.
5191 * testsuite/libgomp.c/reduction-9.c: New test.
5192 * testsuite/libgomp.c/reduction-10.c: New test.
5193 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5195 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5196 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5197 * testsuite/libgomp.c/target-11.c: New test.
5198 * testsuite/libgomp.c/target-12.c: New test.
5199 * testsuite/libgomp.c/target-13.c: New test.
5200 * testsuite/libgomp.c/target-14.c: New test.
5201 * testsuite/libgomp.c/target-15.c: New test.
5202 * testsuite/libgomp.c/target-16.c: New test.
5203 * testsuite/libgomp.c/target-17.c: New test.
5204 * testsuite/libgomp.c/target-18.c: New test.
5205 * testsuite/libgomp.c/target-19.c: New test.
5206 * testsuite/libgomp.c/target-20.c: New test.
5207 * testsuite/libgomp.c/target-21.c: New test.
5208 * testsuite/libgomp.c/target-22.c: New test.
5209 * testsuite/libgomp.c/target-23.c: New test.
5210 * testsuite/libgomp.c/target-24.c: New test.
5211 * testsuite/libgomp.c/target-25.c: New test.
5212 * testsuite/libgomp.c/target-26.c: New test.
5213 * testsuite/libgomp.c/target-27.c: New test.
5214 * testsuite/libgomp.c/taskloop-1.c: New test.
5215 * testsuite/libgomp.c/taskloop-2.c: New test.
5216 * testsuite/libgomp.c/taskloop-3.c: New test.
5217 * testsuite/libgomp.c/taskloop-4.c: New test.
5218 * testsuite/libgomp.c++/ctor-13.C: New test.
5219 * testsuite/libgomp.c++/doacross-1.C: New test.
5220 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5221 Replace offload_device with offload_device_nonshared_as.
5222 * testsuite/libgomp.c++/for-12.C: New test.
5223 * testsuite/libgomp.c++/for-13.C: New test.
5224 * testsuite/libgomp.c++/for-14.C: New test.
5225 * testsuite/libgomp.c++/linear-1.C: New test.
5226 * testsuite/libgomp.c++/member-1.C: New test.
5227 * testsuite/libgomp.c++/member-2.C: New test.
5228 * testsuite/libgomp.c++/member-3.C: New test.
5229 * testsuite/libgomp.c++/member-4.C: New test.
5230 * testsuite/libgomp.c++/member-5.C: New test.
5231 * testsuite/libgomp.c++/ordered-1.C: New test.
5232 * testsuite/libgomp.c++/reduction-5.C: New test.
5233 * testsuite/libgomp.c++/reduction-6.C: New test.
5234 * testsuite/libgomp.c++/reduction-7.C: New test.
5235 * testsuite/libgomp.c++/reduction-8.C: New test.
5236 * testsuite/libgomp.c++/reduction-9.C: New test.
5237 * testsuite/libgomp.c++/reduction-10.C: New test.
5238 * testsuite/libgomp.c++/reference-1.C: New test.
5239 * testsuite/libgomp.c++/simd14.C: New test.
5240 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5241 * testsuite/libgomp.c++/target-5.C: New test.
5242 * testsuite/libgomp.c++/target-6.C: New test.
5243 * testsuite/libgomp.c++/target-7.C: New test.
5244 * testsuite/libgomp.c++/target-8.C: New test.
5245 * testsuite/libgomp.c++/target-9.C: New test.
5246 * testsuite/libgomp.c++/target-10.C: New test.
5247 * testsuite/libgomp.c++/target-11.C: New test.
5248 * testsuite/libgomp.c++/target-12.C: New test.
5249 * testsuite/libgomp.c++/taskloop-1.C: New test.
5250 * testsuite/libgomp.c++/taskloop-2.C: New test.
5251 * testsuite/libgomp.c++/taskloop-3.C: New test.
5252 * testsuite/libgomp.c++/taskloop-4.C: New test.
5253 * testsuite/libgomp.c++/taskloop-5.C: New test.
5254 * testsuite/libgomp.c++/taskloop-6.C: New test.
5255 * testsuite/libgomp.c++/taskloop-7.C: New test.
5256 * testsuite/libgomp.c++/taskloop-8.C: New test.
5257 * testsuite/libgomp.c++/taskloop-9.C: New test.
5258 * testsuite/libgomp.fortran/affinity1.f90: New test.
5259 * testsuite/libgomp.fortran/affinity2.f90: New test.
5261 2015-10-13 Tom de Vries <tom@codesourcery.com>
5263 PR tree-optimization/67476
5264 * testsuite/libgomp.c/autopar-3.c: New test.
5265 * testsuite/libgomp.c/autopar-4.c: New test.
5266 * testsuite/libgomp.c/autopar-5.c: New test.
5267 * testsuite/libgomp.c/autopar-6.c: New test.
5268 * testsuite/libgomp.c/autopar-7.c: New test.
5269 * testsuite/libgomp.c/autopar-8.c: New test.
5271 2015-10-12 James Norris <jnorris@codesourcery.com>
5273 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
5276 2015-10-09 David Malcolm <dmalcolm@redhat.com>
5278 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
5281 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5283 * oacc-ptx.h: Remove file, moving its content into...
5284 * config/nvptx/fortran.c: ... here...
5285 * config/nvptx/oacc-init.c: ..., here...
5286 * config/nvptx/oacc-parallel.c: ..., and here.
5287 * config/nvptx/openacc.f90: New file.
5288 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
5289 (link_ptx): Don't link in predefined bits of PTX code.
5291 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5292 Bernd Schmidt <bernds@codesourcery.com>
5294 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
5295 (struct targ_ptx_obj): New.
5296 (nvptx_tdata): Move earlier, change data format.
5297 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
5299 (GOMP_OFFLOAD_load_image): Adjust.
5301 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5303 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
5304 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5305 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5306 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5307 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5308 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5309 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5310 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5311 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5312 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5313 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5314 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5315 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5316 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5317 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5318 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5319 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5320 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5321 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5322 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5323 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5324 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5325 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5326 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5327 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5328 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5329 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5330 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5331 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5332 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5333 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5334 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5335 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5336 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5337 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5338 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5339 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5340 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5341 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5342 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5343 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5344 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5345 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5346 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5347 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5348 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5349 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5350 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5351 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5352 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5353 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5354 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5355 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5356 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5357 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5358 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5359 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5360 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5361 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5362 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5363 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5364 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5365 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5367 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5369 * oacc-init.c (acc_on_device): Force optimization level.
5371 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5373 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
5374 (cuda_errlist): Delete.
5375 (cuda_error): Reimplement.
5377 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5379 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
5381 * libgomp.map (GOACC_parallel_keyed): New.
5382 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
5384 (GOACC_parallel_keyed): New interface. Lose geometry arguments
5385 and take keyed varargs list. Adjust call to exec_func.
5386 (GOACC_parallel): Force host fallback.
5387 * libgomp_g.h (GOACC_parallel): Remove.
5388 (GOACC_parallel_keyed): Declare.
5389 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5390 (stuct targ_gn_descriptor): Replace name field with launch field.
5391 (nvptx_exec): Lose separate geometry args, take array. Process
5392 dynamic dimensions and adjust.
5393 (struct nvptx_tdata): Replace fn_names field with fn_descs.
5394 (GOMP_OFFLOAD_load_image): Adjust for change in function table
5396 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5398 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5401 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5404 * oacc-int.h (goacc_host_init): Add declaration.
5405 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5406 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5408 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5409 Sebastian Pop <s.pop@samsung.com>
5411 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5413 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5414 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5415 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5416 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5417 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5419 2015-09-03 Jakub Jelinek <jakub@redhat.com>
5421 * configure.tgt: Add missing ;; in between nvptx and rtems
5424 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5426 * config/posix/pool.h (gomp_adjust_thread_attr): New.
5427 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5428 (gomp_thread_pool_reservoir): Add priority member.
5429 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5431 (parse_thread_pools): Likewise.
5432 * team.c (gomp_team_start): Call configuration provided
5433 gomp_adjust_thread_attr(). Destroy thread attributes if
5435 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5437 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5439 * config/posix/pool.h: New.
5440 * config/rtems/pool.h: Likewise.
5441 * config/rtems/proc.c: Likewise.
5442 * libgomp.h (gomp_thread_destructor): Declare.
5443 * team.c: Include configuration provided "pool.h".
5444 (gomp_get_thread_pool): Define in configuration.
5445 (gomp_team_end): Call configuration defined
5446 gomp_release_thread_pool().
5448 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5450 * config/rtems/bar.c: New.
5451 * config/rtems/bar.h: Likewise.
5452 * config/rtems/mutex.c: Likewise.
5453 * config/rtems/mutex.h: Likewise.
5454 * config/rtems/sem.c: Likewise.
5455 * config/rtems/sem.h: Likewise.
5456 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5457 <sys/lock.h> header file.
5458 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5459 supported by Newlib.
5460 * configure: Regenerate.
5462 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5464 * team.c (gomp_new_thread_pool): Delete and move content to ...
5465 (gomp_get_thread_pool): ... new function. Allocate and
5466 initialize thread pool on demand.
5467 (get_last_team): Use gomp_get_thread_pool().
5468 (gomp_team_start): Delete thread pool initialization.
5470 2015-09-03 Tom de Vries <tom@codesourcery.com>
5472 PR tree-optimization/65637
5473 * testsuite/libgomp.c/autopar-2.c: New test.
5475 2015-08-29 Tom de Vries <tom@codesourcery.com>
5477 PR tree-optimization/46193
5478 * testsuite/libgomp.c/pr46193.c: New test.
5480 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
5483 * libgomp.map: Add 4.0.2 version.
5484 * target.c (offload_image_descr): Add version field.
5485 (gomp_load_image_to_device): Add version argument. Adjust plugin
5486 call. Improve load mismatch diagnostic.
5487 (gomp_unload_image_from_device): Add version argument. Adjust plugin
5489 (GOMP_offload_regster): Make stub function, move bulk to ...
5490 (GOMP_offload_register_ver): ... here. Process version argument.
5491 (GOMP_offload_unregister): Make stub function, move bulk to ...
5492 (GOMP_offload_unregister_ver): ... here. Process version argument.
5493 (gomp_init_device): Process version field.
5494 (gomp_unload_device): Process version field.
5495 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5496 macros. Check plugin version.
5497 * libgomp.h (gomp_device_descr): Add version function field. Adjust
5498 loader and unloader types.
5499 * oacc-host.c: Include gomp-constants.h.
5500 (host_version): New.
5501 (host_load_image, host_unload_image): Adjust.
5502 (host_dispatch): Add host_version.
5503 * plugin/plugin-nvptx.c: Include gomp-constants.h.
5504 (GOMP_OFFLOAD_version): New.
5505 (GOMP_OFFLOAD_load_image): Add version arg and check it.
5506 (GOMP_OFFLOAD_unload_image): Likewise.
5507 * plugin/plugin-host.c: Include gomp-constants.h.
5508 (GOMP_OFFLOAD_version): New.
5509 (GOMP_OFFLOAD_load_image): Add version arg.
5510 (GOMP_OFFLOAD_unload_image): Likewise.
5512 2015-08-24 Tom de Vries <tom@codesourcery.com>
5514 PR tree-optimization/65468
5515 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5517 2015-08-24 Tom de Vries <tom@codesourcery.com>
5519 PR tree-optimization/65468
5520 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5522 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
5526 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5527 (gomp_iter_guided_next): Idem.
5528 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5529 (gomp_iter_ull_guided_next): Idem.
5530 * config/linux/wait.h (do_spin): Idem.
5532 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5534 * libgomp-plugin.h (enum offload_target_type): Remove
5535 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5536 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5537 * openacc.h (enum acc_device_t): Likewise.
5538 * openacc_lib.h: Likewise.
5539 * oacc-init.c (name_of_acc_device_t): Don't handle it.
5540 (acc_on_device): Just use __builtin_acc_on_device.
5541 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5542 of acc_on_device builtin.
5543 * plugin/plugin-host.h: Remove file.
5544 * plugin/plugin-host.c: Likewise, but salvage some content into...
5545 * oacc-host.c: ... this file.
5546 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5547 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5548 * Makefile.in: Regenerate.
5549 * configure: Likewise.
5550 * testsuite/lib/libgomp.exp
5551 (check_effective_target_openacc_host_nonshm_selected): Remove.
5552 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5553 ACC_DEVICE_TYPE=host_nonshm.
5554 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5555 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5556 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5557 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5558 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5559 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5561 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5562 Jakub Jelinek <jakub@redhat.com>
5564 * config/nvptx/affinity.c: New file.
5565 * config/nvptx/alloc.c: Likewise.
5566 * config/nvptx/bar.c: Likewise.
5567 * config/nvptx/barrier.c: Likewise.
5568 * config/nvptx/critical.c: Likewise.
5569 * config/nvptx/env.c: Likewise.
5570 * config/nvptx/error.c: Likewise.
5571 * config/nvptx/fortran.c: Likewise.
5572 * config/nvptx/iter.c: Likewise.
5573 * config/nvptx/iter_ull.c: Likewise.
5574 * config/nvptx/libgomp-plugin.c: Likewise.
5575 * config/nvptx/lock.c: Likewise.
5576 * config/nvptx/loop.c: Likewise.
5577 * config/nvptx/loop_ull.c: Likewise.
5578 * config/nvptx/mutex.c: Likewise.
5579 * config/nvptx/oacc-async.c: Likewise.
5580 * config/nvptx/oacc-cuda.c: Likewise.
5581 * config/nvptx/oacc-host.c: Likewise.
5582 * config/nvptx/oacc-init.c: Likewise.
5583 * config/nvptx/oacc-mem.c: Likewise.
5584 * config/nvptx/oacc-parallel.c: Likewise.
5585 * config/nvptx/oacc-plugin.c: Likewise.
5586 * config/nvptx/omp-lock.h: Likewise.
5587 * config/nvptx/ordered.c: Likewise.
5588 * config/nvptx/parallel.c: Likewise.
5589 * config/nvptx/proc.c: Likewise.
5590 * config/nvptx/ptrlock.c: Likewise.
5591 * config/nvptx/sections.c: Likewise.
5592 * config/nvptx/sem.c: Likewise.
5593 * config/nvptx/single.c: Likewise.
5594 * config/nvptx/splay-tree.c: Likewise.
5595 * config/nvptx/target.c: Likewise.
5596 * config/nvptx/task.c: Likewise.
5597 * config/nvptx/team.c: Likewise.
5598 * config/nvptx/time.c: Likewise.
5599 * config/nvptx/work.c: Likewise.
5600 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5601 * configure: Regenerate.
5602 * configure.tgt (config_path): Set to "nvptx" for target
5605 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5607 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5609 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
5611 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5612 (cuda_errlist): Constify.
5613 (errmsg): Move into ...
5614 (cuda_error): ... here. Make smaller.
5615 (_XSTR, _STR): Delete.
5616 (cuda_synames): Delete.
5617 (verify_device_library): Delete.
5618 (nvptx_init): Don't call it.
5620 2015-07-28 Tom de Vries <tom@codesourcery.com>
5622 * testsuite/libgomp.c/uns-outer-4.c: New test.
5624 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5626 * testsuite/libgomp.c/pr66714.c: New test.
5628 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
5631 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5632 (fib_ref): New function.
5633 (fib): Correct corner cases in the recursion.
5634 (main): Replace the non-simd loop with fib_ref call.
5635 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5637 (fibonacci): Lower the parameter N to 30. Correct accordingly check
5638 for the last array element value. Replace the non-simd loop with
5639 fib_ref call. Remove redundant b_ref array. Remove the comparison
5640 of the last array element with according Fibonacci sequence element.
5641 (fib): Correct corner cases in the recursion.
5643 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5645 * target.c (gomp_offload_image_to_device): Rename to ...
5646 (gomp_load_image_to_device): ... here.
5647 (GOMP_offload_register): Adjust call.
5648 (gomp_init_device): Likewise.
5649 (gomp_unload_image_from_device): New. Broken out of ...
5650 (GOMP_offload_unregister): ... here. Call it.
5651 (gomp_unload_device): New.
5652 * libgomp.h (gomp_unload_device): Declare.
5653 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5656 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
5658 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5660 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5662 (goacc_waits): Move !num_waits handling to ...
5663 (GOACC_wait): ... here, the only caller that might have zero waits.
5665 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5666 (struct ptx_image_data): Move earlier, add fns field.
5667 (struct ptx_device): Add images and image_lock fields.
5668 (ptx_images, ptx_image_lock): Delete.
5669 (nvptx_open_device): Initialize images and image_lock fields.
5670 (nvptx_close_device): Destroy image_lock.
5671 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5672 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5675 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5677 * target.c (GOMP_offload_register): Use int for device type arg.
5678 (GOMP_offload_unregister): Likewise.
5680 * target.c (struct_offload_image_descr): Constify host_table.
5681 (gomp_offload_image_to_device): Likewise.
5682 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5684 * libgomp.h (gomp_device_descr): Constify target data arguments.
5685 * target.c (struct offload_image_descr): Constify target_data.
5686 (gomp_offload_image_to_device): Likewise.
5687 (GOMP_offload_register): Likewise.
5688 (GOMP_offload_unrefister): Likewise.
5689 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5690 GOMP_OFFLOAD_unload_image): Constify target data.
5691 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5692 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5694 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5696 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5697 Workaround driver library const error.
5698 (struct nvptx_tdata, nvptx_tdata_t): New.
5699 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5702 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
5704 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5705 of EPS parameter from integer to real.
5706 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5707 type of EPS parameter from integer to real.
5709 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5711 * team.c (get_last_team): New.
5712 (gomp_new_team): Recycle last non-nested team if possible.
5713 (gomp_team_end): Move team work share list free lock destruction
5715 (free_team): ... here.
5717 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
5719 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5720 and ref from int to double. Replaced their comparison with
5721 an inequality of their difference and EPS.
5722 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5723 comparison of pri and a reference number with an inequality of their
5725 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5726 the comparison of sum and sum_ref with an inequality of their
5728 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5729 the comparison of pri and a reference number with an inequality of
5730 their difference and EPS.
5732 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
5734 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5735 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5736 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5737 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5738 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5739 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5740 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5741 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5742 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5743 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5744 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5745 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5746 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5748 (vec_mult): Likewise. Add #pragma omp taskwait.
5749 (main): Adjust caller.
5750 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5751 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5752 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5753 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5754 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5755 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5756 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5757 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5758 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5759 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5760 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5761 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5762 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5763 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5764 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5765 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5766 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5767 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5768 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5769 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5770 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5771 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5772 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5773 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5774 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5775 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5776 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5777 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5778 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5779 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5780 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5781 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5782 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5783 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5784 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5785 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5786 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5787 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5788 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5789 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5790 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5791 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5792 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5793 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5794 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5795 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5796 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5797 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5798 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5799 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5800 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5801 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5802 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5803 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5804 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5805 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5806 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5807 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5808 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5809 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5810 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5811 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5812 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5813 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5814 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5815 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5816 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5817 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5818 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5819 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5820 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5821 (vec_mult): Add !$omp taskwait.
5822 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5823 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5824 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5825 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5826 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5827 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5828 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5829 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5830 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5831 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5832 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5833 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5834 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5835 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5836 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5837 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5838 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5839 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5840 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5841 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5842 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5843 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5844 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5845 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5846 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5847 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5848 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5849 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5850 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5851 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5852 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5853 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5854 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5855 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5856 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5857 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5858 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5859 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5860 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5861 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5862 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5863 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5864 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5865 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5866 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5867 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5868 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5869 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5870 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5871 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5872 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5873 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5874 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5875 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5876 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5877 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5878 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5879 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5880 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5881 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5882 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5883 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5884 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5885 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5886 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
5887 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
5888 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
5890 2015-07-10 Tom de Vries <tom@codesourcery.com>
5892 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
5893 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
5895 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5898 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
5899 in a 64-bit configuration.
5900 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
5901 offloading testing if no such device is available.
5902 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5903 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5905 2015-07-08 Tom de Vries <tom@codesourcery.com>
5907 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
5909 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5911 2015-07-07 Tom de Vries <tom@codesourcery.com>
5913 PR tree-optimization/66642
5914 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
5915 iteration count case.
5916 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
5917 function, factor out of ...
5918 (main): ... here. Test low iteration count case.
5920 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
5922 * libgomp.h (gomp_thread_pool): Comment last_team field.
5924 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
5926 * testsuite/libgomp.c++/pr66702-1.C: Require
5927 vect_simd_clones effective target.
5928 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
5930 2015-06-30 Tom de Vries <tom@codesourcery.com>
5932 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5933 already set. Use DEFAULT_CFLAGS in dg-runtest.
5934 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
5937 2015-06-30 Tom de Vries <tom@codesourcery.com>
5939 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5940 already set. Use DEFAULT_CFLAGS in dg-runtest.
5941 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
5942 * testsuite/libgomp.c++/pr64824.C: Same.
5943 * testsuite/libgomp.c++/pr64868.C: Same.
5944 * testsuite/libgomp.c++/pr66199-1.C: Same.
5945 * testsuite/libgomp.c++/pr66199-2.C: Same.
5946 * testsuite/libgomp.c++/target-2.C: Same.
5947 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
5948 -std=<standard> option.
5949 * testsuite/libgomp.c++/udr-11.C: Same.
5950 * testsuite/libgomp.c++/udr-12.C: Same.
5951 * testsuite/libgomp.c++/udr-13.C: Same.
5952 * testsuite/libgomp.c++/udr-14.C: Same.
5953 * testsuite/libgomp.c++/udr-15.C: Same.
5954 * testsuite/libgomp.c++/udr-16.C: Same.
5955 * testsuite/libgomp.c++/udr-17.C: Same.
5956 * testsuite/libgomp.c++/udr-18.C: Same.
5957 * testsuite/libgomp.c++/udr-19.C: Same.
5958 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
5959 * testsuite/libgomp.c++/simd-1.C: Same.
5960 * testsuite/libgomp.c++/simd-2.C: Same.
5961 * testsuite/libgomp.c++/simd-3.C: Same.
5962 * testsuite/libgomp.c++/simd-4.C: Same.
5963 * testsuite/libgomp.c++/simd-5.C: Same.
5964 * testsuite/libgomp.c++/simd-6.C: Same.
5965 * testsuite/libgomp.c++/simd-7.C: Same.
5966 * testsuite/libgomp.c++/simd-8.C: Same.
5967 * testsuite/libgomp.c++/simd-9.C: Same.
5968 * testsuite/libgomp.c++/simd10.C: Same.
5969 * testsuite/libgomp.c++/simd11.C: Same.
5970 * testsuite/libgomp.c++/simd12.C: Same.
5971 * testsuite/libgomp.c++/simd13.C: Same.
5973 2015-06-30 Jakub Jelinek <jakub@redhat.com>
5976 * testsuite/libgomp.c++/pr66702-1.C: New test.
5977 * testsuite/libgomp.c++/pr66702-2.C: New test.
5979 2015-06-30 Tom de Vries <tom@codesourcery.com>
5981 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
5982 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
5983 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
5984 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
5986 2015-06-30 Tom de Vries <tom@codesourcery.com>
5988 PR tree-optimization/66652
5989 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
5990 using restrict pointers.
5991 (main): Add arguments to calls to f.
5992 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5994 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
5996 * configure.ac: Fix check for header <sys/sysctl.h>.
5997 * configure: Regenerate.
5998 * config.h.in: Likewise.
6000 2015-06-23 Tom de Vries <tom@codesourcery.com>
6002 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
6004 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
6006 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
6008 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
6012 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
6013 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6015 2015-06-15 Tom de Vries <tom@codesourcery.com>
6017 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
6018 dg-additional-options for any remaining options.
6019 * testsuite/libgomp.c/atomic-2.c: Same.
6020 * testsuite/libgomp.c/atomic-4.c: Same.
6021 * testsuite/libgomp.c/atomic-5.c: Same.
6022 * testsuite/libgomp.c/atomic-6.c: Same.
6023 * testsuite/libgomp.c/autopar-1.c: Same.
6024 * testsuite/libgomp.c/copyin-1.c: Same.
6025 * testsuite/libgomp.c/copyin-2.c: Same.
6026 * testsuite/libgomp.c/copyin-3.c: Same.
6027 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
6028 * testsuite/libgomp.c/nestedfn-5.c: Same.
6029 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
6030 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
6031 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
6032 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6033 * testsuite/libgomp.c/pr32362-1.c: Same.
6034 * testsuite/libgomp.c/pr32362-2.c: Same.
6035 * testsuite/libgomp.c/pr32362-3.c: Same.
6036 * testsuite/libgomp.c/pr39591-1.c: Same.
6037 * testsuite/libgomp.c/pr39591-2.c: Same.
6038 * testsuite/libgomp.c/pr39591-3.c: Same.
6039 * testsuite/libgomp.c/pr58392.c: Same.
6040 * testsuite/libgomp.c/pr58756.c: Same.
6041 * testsuite/libgomp.c/simd-1.c: Same.
6042 * testsuite/libgomp.c/simd-10.c: Same.
6043 * testsuite/libgomp.c/simd-11.c: Same.
6044 * testsuite/libgomp.c/simd-12.c: Same.
6045 * testsuite/libgomp.c/simd-13.c: Same.
6046 * testsuite/libgomp.c/simd-14.c: Same.
6047 * testsuite/libgomp.c/simd-15.c: Same.
6048 * testsuite/libgomp.c/simd-2.c: Same.
6049 * testsuite/libgomp.c/simd-3.c: Same.
6050 * testsuite/libgomp.c/simd-4.c: Same.
6051 * testsuite/libgomp.c/simd-5.c: Same.
6052 * testsuite/libgomp.c/simd-6.c: Same.
6053 * testsuite/libgomp.c/simd-7.c: Same.
6054 * testsuite/libgomp.c/simd-8.c: Same.
6055 * testsuite/libgomp.c/simd-9.c: Same.
6057 2015-06-15 Tom de Vries <tom@codesourcery.com>
6059 * testsuite/libgomp.c/pr35625.c: Fix typo.
6061 2015-06-15 Tom de Vries <tom@codesourcery.com>
6063 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
6065 * testsuite/libgomp.c/atomic-3.c: Same.
6066 * testsuite/libgomp.c/debug-1.c: Same.
6067 * testsuite/libgomp.c/nqueens-1.c: Same.
6068 * testsuite/libgomp.c/pr26171.c: Same.
6069 * testsuite/libgomp.c/pr48591.c: Same.
6070 * testsuite/libgomp.c/pr64824.c: Same.
6071 * testsuite/libgomp.c/pr64868.c: Same.
6072 * testsuite/libgomp.c/pr66133.c: Same.
6073 * testsuite/libgomp.c/pr66199-1.c: Same.
6074 * testsuite/libgomp.c/pr66199-2.c: Same.
6075 * testsuite/libgomp.c/target-8.c: Same.
6077 2015-06-15 Tom de Vries <tom@codesourcery.com>
6079 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
6081 * testsuite/libgomp.c/for-1.c: Same.
6082 * testsuite/libgomp.c/for-2.c: Same.
6083 * testsuite/libgomp.c/for-3.c: Same.
6084 * testsuite/libgomp.c/pr35625.c: Same.
6085 * testsuite/libgomp.c/pr39154.c: Same.
6086 * testsuite/libgomp.c/simd-16.c: Same.
6087 * testsuite/libgomp.c/simd-17.c: Same.
6089 2015-06-13 Tom de Vries <tom@codesourcery.com>
6091 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6093 2015-06-13 Tom de Vries <tom@codesourcery.com>
6095 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6096 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6097 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6099 (main): Use N instead of hardcoded constants.
6101 2015-06-05 Tom de Vries <tom@codesourcery.com>
6103 merge from gomp4 branch:
6104 2015-05-28 Tom de Vries <tom@codesourcery.com>
6106 PR tree-optimization/65443
6107 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6108 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6109 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6111 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6113 * testsuite/libgomp.graphite/bounds.c: Adjust for
6114 cleanup-tree-dump removal.
6115 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6116 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6117 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6118 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6119 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6120 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6121 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6122 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6123 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6124 * testsuite/libgomp.graphite/pr41118.c: Likewise.
6126 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
6128 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6129 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6130 (futex_wake) [!__x86_64__]: Ditto.
6132 2015-05-28 Julian Brown <julian@codesourcery.com>
6134 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6135 function comment. Only call gomp_fatal if new argument is true.
6136 (acc_dev_num_out_of_range): New function.
6137 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6138 acc_dev_num_out_of_range as appropriate.
6139 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6140 (acc_get_device_num, acc_set_device_num): Update calls to
6142 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6145 2015-05-28 Julian Brown <julian@codesourcery.com>
6148 * oacc-init.c (plugin/plugin-host.h): Include.
6149 (acc_on_device): Check whether we're in an offloaded region for
6151 plugin. Don't use __builtin_acc_on_device.
6152 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6153 nonshm_exec flag in thread-local data.
6154 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6155 data for host_nonshm plugin.
6156 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6157 for host_nonshm plugin.
6158 * plugin/plugin-host.h: New.
6160 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6162 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6164 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6166 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6168 (FUTEX_PRIVATE_FLAG): Remove L suffix.
6169 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6172 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6174 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
6176 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
6178 * target.c (gomp_map_pointer): New function abstracting out
6179 GOMP_MAP_POINTER handling.
6180 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6183 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6186 * testsuite/libgomp.c/pr66199-1.c: New test.
6187 * testsuite/libgomp.c/pr66199-2.c: New test.
6188 * testsuite/libgomp.c++/pr66199-1.C: New test.
6189 * testsuite/libgomp.c++/pr66199-2.C: New test.
6190 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6191 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6193 2015-05-19 Julian Brown <julian@codesourcery.com>
6195 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6198 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6201 * testsuite/libgomp.c/pr66133.c: New test.
6203 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6205 * Makefile.in: Regenerated with automake-1.11.6.
6206 * aclocal.m4: Likewise.
6207 * config.h.in: Likewise.
6208 * configure: Likewise.
6209 * testsuite/Makefile.in: Likewise.
6211 2015-05-08 Jason Merrill <jason@redhat.com>
6213 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6216 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6218 2015-05-06 Julian Brown <julian@codesourcery.com>
6220 * oacc-init.c (acc_device_lock): Add explanatory comment.
6221 (resolve_device): Add comment about locking requirement.
6222 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6223 gomp_init_device and gomp_fini_device calls.
6224 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6225 (acc_get_device_num, acc_set_device_num): Add locking around
6226 resolve_device and gomp_init_device calls.
6228 2015-05-06 Julian Brown <julian@codesourcery.com>
6230 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6231 goacc_thread_lock on error paths.
6232 * oacc-mem.c (lookup_host): Remove locking from function. Note
6233 locking requirement for caller in function comment.
6234 (lookup_dev): Likewise.
6235 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6236 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6237 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6240 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
6244 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6245 don't expect "0x" prefix for "%p" format specifier, don't expect
6246 "(nil)" for NULL pointer.
6247 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6248 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6249 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6250 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6251 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6252 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6253 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6254 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6255 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6256 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6257 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6258 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6259 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6260 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6261 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6262 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6263 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6264 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6265 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6266 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6267 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6268 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6269 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6270 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6271 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6272 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6273 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6274 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6275 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
6276 accurately specify what we're looking for.
6277 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6278 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6279 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6280 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6281 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6283 2015-04-30 James Norris <jnorris@codesourcery.com>
6286 * testsuite/lib/libgomp.exp
6287 (check_effective_target_openacc_host_selected)
6288 (check_effective_target_openacc_host_nonshm_selected): New
6290 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
6292 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6293 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6294 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6295 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6296 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6297 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6298 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6299 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6300 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6301 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6302 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6303 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6304 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6305 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6306 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6307 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6308 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6309 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6310 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6311 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6312 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6313 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6314 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6315 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6316 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6317 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6318 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6319 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6320 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6321 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6322 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6323 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6324 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6325 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6326 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6327 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6328 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6329 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6330 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6331 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6332 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6333 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6334 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6336 2015-04-08 Julian Brown <julian@codesourcery.com>
6338 * libgomp.h (target_mem_desc: Remove mem_map field.
6339 (acc_dispatch_t): Remove open_device_func, close_device_func,
6340 get_device_num_func, set_device_num_func, target_data members.
6341 Change create_thread_data_func argument to device number instead of
6343 * oacc-async.c (assert.h): Include.
6344 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
6345 (acc_wait_all, acc_wait_all_async): Use current host thread's
6346 active device, not base_dev.
6347 * oacc-cuda.c (acc_get_current_cuda_device)
6348 (acc_get_current_cuda_context, acc_get_cuda_stream)
6349 (acc_set_cuda_stream): Likewise.
6350 * oacc-host.c (host_dispatch): Don't set open_device_func,
6351 close_device_func, get_device_num_func or set_device_num_func.
6352 * oacc-init.c (base_dev, init_key): Remove.
6353 (cached_base_dev): New.
6354 (name_of_acc_device_t): New.
6355 (acc_init_1): Initialise default-numbered device, not zeroth.
6356 (acc_shutdown_1): Close all devices of a given type.
6357 (goacc_destroy_thread): Don't use base_dev.
6358 (lazy_open, lazy_init, lazy_init_and_open): Remove.
6359 (goacc_attach_host_thread_to_device): New.
6360 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
6361 (acc_get_num_devices): Don't use base_dev.
6362 (acc_set_device_type): Reimplement.
6363 (acc_get_device_type): Don't use base_dev.
6364 (acc_get_device_num): Tweak logic.
6365 (acc_set_device_num): Likewise.
6366 (acc_on_device): Use acc_get_device_type.
6367 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
6368 (goacc_lazy_initialize): Reimplement with acc_init and
6369 goacc_attach_host_thread_to_device.
6370 * oacc-int.h (goacc_thread): Add base_dev field.
6371 (base_dev): Remove extern declaration.
6372 (goacc_attach_host_thread_to_device): Add prototype.
6373 * oacc-mem.c (acc_malloc): Use current thread's device instead of
6375 (acc_free): Likewise.
6376 (acc_memcpy_to_device): Likewise.
6377 (acc_memcpy_from_device): Likewise.
6378 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
6379 goacc_lazy_initialize (throughout).
6380 (GOACC_parallel): Use tgt_offset to locate target functions.
6381 * target.c (gomp_map_vars): Don't set tgt->mem_map.
6382 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
6383 (gomp_load_plugin_for_device): Remove open_device, close_device,
6384 get_device_num, set_device_num openacc hook initialisation. Don't set
6385 openacc.target_data.
6386 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6387 (GOMP_OFFLOAD_openacc_close_device)
6388 (GOMP_OFFLOAD_openacc_get_device_num)
6389 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6390 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6392 * plugin/plugin-nvptx.c (ptx_inited): Remove.
6393 (instantiated_devices, ptx_dev_lock): New.
6394 (struct ptx_image_data): New.
6395 (ptx_devices, ptx_images, ptx_image_lock): New.
6396 (fini_streams_for_device): Reorder cuStreamDestroy call.
6397 (nvptx_get_num_devices): Remove forward declaration.
6398 (nvptx_init): Change return type to bool.
6399 (nvptx_fini): Remove.
6400 (nvptx_attach_host_thread_to_device): New.
6401 (nvptx_open_device): Return struct ptx_device* instead of void*.
6402 (nvptx_close_device): Change argument type to struct ptx_device*,
6403 return type to void.
6404 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6405 (kernel_target_data, kernel_host_table): Remove static globals.
6406 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6407 (GOMP_OFFLOAD_init_device): Reimplement.
6408 (GOMP_OFFLOAD_fini_device): Likewise.
6409 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6410 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6411 (GOMP_OFFLOAD_host2dev): Use ORD argument.
6412 (GOMP_OFFLOAD_openacc_open_device)
6413 (GOMP_OFFLOAD_openacc_close_device)
6414 (GOMP_OFFLOAD_openacc_set_device_num)
6415 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6416 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6420 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6422 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
6424 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6425 * libgomp.h (struct gomp_memory_mapping): Remove.
6426 (struct target_mem_desc): Change type of mem_map from
6427 gomp_memory_mapping * to splay_tree_s *.
6428 (struct gomp_device_descr): Remove register_image_func, get_table_func.
6429 Add load_image_func, unload_image_func.
6430 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6431 Remove offload_regions_registered.
6432 (gomp_init_tables): Remove.
6433 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6435 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6436 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6437 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6438 offload_regions_registered.
6439 Initialize load_image_func, unload_image_func, mem_map.root.
6440 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6441 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6442 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6443 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6444 gomp_memory_mapping *. Use dev's lock and splay_tree.
6445 (lookup_dev): Use dev's lock.
6446 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6447 (acc_is_present): Likewise.
6448 (acc_map_data): Likewise.
6449 (acc_unmap_data): Likewise. Use dev's lock.
6450 (present_create_copy): Likewise.
6451 (delete_copyout): Pass dev to lookup_host instead of mem_map.
6452 (update_dev_host): Likewise.
6453 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
6454 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6455 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6456 (GOMP_OFFLOAD_get_table): Remove
6457 (GOMP_OFFLOAD_load_image): New function.
6458 (GOMP_OFFLOAD_unload_image): New function.
6459 * target.c (register_lock): New mutex for offload image registration.
6460 (num_devices): Do not guard with PLUGIN_SUPPORT.
6461 (gomp_realloc_unlock): New static function.
6462 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
6464 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6465 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
6466 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6468 (gomp_unmap_vars): Likewise.
6469 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
6470 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
6471 (gomp_offload_image_to_device): New static function.
6472 (GOMP_offload_register): Add mutex lock.
6473 Call gomp_offload_image_to_device for all initialized devices.
6474 Replace gomp_realloc with gomp_realloc_unlock.
6475 (GOMP_offload_unregister): New function.
6476 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
6477 get_table_func from the plugin with calls to init_device_func and
6478 gomp_offload_image_to_device.
6479 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6481 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
6482 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
6483 (GOMP_target_data): Do not call gomp_init_tables.
6484 (GOMP_target_update): Likewise. Remove argument from gomp_update.
6485 (gomp_load_plugin_for_device): Replace register_image and get_table
6486 with load_image and unload_image in DLSYM ().
6487 (gomp_register_images_for_device): Remove function.
6488 (gomp_target_init): Do not initialize current_device.mem_map.*,
6489 current_device.offload_regions_registered.
6490 Remove call to gomp_register_images_for_device.
6491 Do not free offload_images and num_offload_images.
6493 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6496 * testsuite/libgomp.fortran/pr65597.f90: New test.
6498 2015-03-27 Tom de Vries <tom@codesourcery.com>
6501 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6502 (init, check): New function.
6503 (foo): Change return type to void.
6504 (main): Call init and check.
6506 2015-03-27 Tom de Vries <tom@codesourcery.com>
6509 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6510 (foo): Use M for non-inner loops to scale down test-case.
6512 2015-03-25 Kai Tietz <ktietz@redhat.com>
6515 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6516 (GOACC_data_start): Likewise.
6517 * target.c (gomp_map_vars): Likewise.
6519 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
6521 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6524 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6526 * testsuite/libgomp.c/target-10.c: New test.
6527 * testsuite/libgomp.c++/target-4.C: New test.
6529 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6531 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6532 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6534 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
6536 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6537 * configure.ac (*-*-rtems*): Assume Pthread is supported.
6538 (pthread.h): Check for this header file.
6539 * configure: Regenerate.
6541 2015-02-25 Tom de Vries <tom@codesourcery.com>
6543 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6544 (check_reduction_op, check_reduction_macro, max, min):
6546 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6548 (main): Use new functions.
6550 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
6552 * target.c (gomp_load_plugin_for_device): Use const char * instead of
6553 char * for variables holding dlerror return values.
6556 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6558 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6560 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6561 Cesar Philippidis <cesar@codesourcery.com>
6563 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6564 GOACC_ctaid, and GOACC_nctaid routines.
6566 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6569 * testsuite/libgomp.c/atomic-18.c: New test.
6570 * testsuite/libgomp.c++/atomic-16.C: New test.
6572 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6576 * testsuite/libgomp.c/pr64824.c: New test.
6577 * testsuite/libgomp.c/pr64868.c: New test.
6578 * testsuite/libgomp.c++/pr64824.C: New test.
6579 * testsuite/libgomp.c++/pr64868.C: New test.
6581 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6584 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6585 Link with -lpthread.
6586 * config/aix/plugin-suffix.h: Delete.
6588 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
6591 * configure.tgt (*-*-aix*): Use config_path "aix posix".
6592 (*-*-darwin*): Use config_path "bsd darwin posix".
6593 (*-*-hpux*): Use config_path "hpux posix".
6594 * target.c: Add include of plugin-suffix.h and use
6595 SONAME_SUFFIX macro.
6596 * config/aix/plugin-suffix.h: New file.
6597 * config/darwin/plugin-suffix.h: New file.
6598 * config/hpux/plugin-suffix.h: New file.
6599 * config/posix/plugin-suffix.h: New file.
6601 2015-01-23 Jakub Jelinek <jakub@redhat.com>
6604 * libgomp.c/pr64734.c: New test.
6606 2015-01-23 Tom de Vries <tom@codesourcery.com>
6609 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6611 2015-01-23 Tom de Vries <tom@codesourcery.com>
6614 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6617 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
6620 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6621 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6622 formal parameter. Update all users.
6623 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6624 Document unused formal parameter.
6626 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
6628 * oacc-parallel.c: Don't include <alloca.h>.
6629 (GOACC_parallel): Use gomp_alloca instead of alloca.
6631 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
6633 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6635 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6636 James Norris <jnorris@codesourcery.com>
6637 Tom de Vries <tom@codesourcery.com>
6638 Julian Brown <julian@codesourcery.com>
6639 Cesar Philippidis <cesar@codesourcery.com>
6640 Nathan Sidwell <nathan@codesourcery.com>
6641 Tobias Burnus <burnus@net-b.de>
6643 * Makefile.am (search_path): Add $(top_srcdir)/../include.
6644 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6645 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6646 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6647 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6648 Include $(top_srcdir)/plugin/Makefrag.am.
6649 (nodist_libsubinclude_HEADERS): Add openacc.h.
6650 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6651 openacc.f90, openacc.mod, openacc_kinds.mod.
6652 (omp_lib.mod): Generalize into...
6653 (%.mod): ... this new rule.
6654 (openacc_kinds.mod, openacc.mod): New rules.
6655 * plugin/configfrag.ac: New file.
6656 * configure.ac: Move plugin/offloading support into it. Include
6657 it. Instantiate testsuite/libgomp-test-support.pt.exp.
6658 * plugin/Makefrag.am: New file.
6659 * testsuite/Makefile.am (OFFLOAD_TARGETS)
6660 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6662 (libgomp-test-support.exp): New rule.
6663 (all-local): Depend on it.
6664 * Makefile.in: Regenerate.
6665 * testsuite/Makefile.in: Regenerate.
6666 * config.h.in: Likewise.
6667 * configure: Likewise.
6668 * configure.tgt: Harden shell syntax.
6669 * env.c: Include "oacc-int.h".
6670 (parse_acc_device_type): New function.
6671 (gomp_debug_var, goacc_device_type, goacc_device_num): New
6673 (initialize_env): Initialize those. Call
6674 goacc_runtime_initialize.
6675 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6676 (gomp_fatal): Call gomp_vfatal.
6677 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6678 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6679 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6680 (splay_tree_node, splay_tree, splay_tree_key)
6681 (struct target_mem_desc, struct splay_tree_key_s)
6682 (struct gomp_memory_mapping, struct acc_dispatch_t)
6683 (struct gomp_device_descr, gomp_acc_insert_pointer)
6684 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6685 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6686 (gomp_free_memmap, gomp_fini_device): New declarations.
6687 (gomp_vdebug, gomp_debug): New macros.
6688 Include "splay-tree.h".
6689 * libgomp.map (OACC_2.0): New symbol version. Use for
6690 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6691 acc_set_device_type_h_, acc_get_device_type,
6692 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6693 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6694 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6695 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6696 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6697 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6698 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6699 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6700 acc_copyin_array_h_, acc_present_or_copyin,
6701 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6702 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6703 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6704 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6705 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6706 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6707 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6708 acc_update_device, acc_update_device_32_h_,
6709 acc_update_device_64_h_, acc_update_device_array_h_,
6710 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6711 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6712 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6713 acc_is_present_64_h_, acc_is_present_array_h_,
6714 acc_memcpy_to_device, acc_memcpy_from_device,
6715 acc_get_current_cuda_device, acc_get_current_cuda_context,
6716 acc_get_cuda_stream, acc_set_cuda_stream.
6717 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
6718 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6719 GOACC_update, GOACC_wait, GOACC_get_thread_num,
6720 GOACC_get_num_threads.
6721 (GOMP_PLUGIN_1.0): New symbol version. Use for
6722 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6723 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6724 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6725 GOMP_PLUGIN_acc_thread.
6726 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6727 environment variable.
6728 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6729 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6730 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6731 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6732 (splay_tree_remove): New declarations.
6733 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6734 (splay_tree_remove, splay_tree_lookup): Move into...
6735 * splay-tree.c: ... this new file.
6736 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6737 (splay_tree_node, splay_tree, splay_tree_key)
6738 (struct target_mem_desc, struct splay_tree_key_s)
6739 (struct gomp_device_descr): Don't declare.
6740 (num_devices_openmp): New variable.
6741 (gomp_get_num_devices ): Use it.
6742 (gomp_init_targets_once): New function.
6743 (gomp_get_num_devices ): Use it.
6744 (get_kind, gomp_copy_from_async, gomp_free_memmap)
6745 (gomp_fini_device, gomp_register_image_for_device): New functions.
6746 (gomp_map_vars): Add devaddrs parameter.
6747 (gomp_update): Add mm parameter.
6748 (gomp_init_device): Move most of it into...
6749 (gomp_init_tables): ... this new function.
6750 (gomp_register_images_for_device): Remove function.
6751 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6752 Make them hidden instead of static.
6753 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6754 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6755 (GOMP_target_end_data, GOMP_target_update)
6756 (gomp_load_plugin_for_device, gomp_target_init): Update for
6758 * oacc-async.c: New file.
6759 * oacc-cuda.c: Likewise.
6760 * oacc-host.c: Likewise.
6761 * oacc-init.c: Likewise.
6762 * oacc-int.h: Likewise.
6763 * oacc-mem.c: Likewise.
6764 * oacc-parallel.c: Likewise.
6765 * oacc-plugin.c: Likewise.
6766 * oacc-plugin.h: Likewise.
6767 * oacc-ptx.h: Likewise.
6768 * openacc.f90: Likewise.
6769 * openacc.h: Likewise.
6770 * openacc_lib.h: Likewise.
6771 * plugin/plugin-host.c: Likewise.
6772 * plugin/plugin-nvptx.c: Likewise.
6773 * libgomp-plugin.c: Likewise.
6774 * libgomp-plugin.h: Likewise.
6775 * libgomp_target.h: Remove file after merging content into the
6776 former file. Update all users.
6777 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6778 (offload_targets_s, offload_targets_s_openacc): New variables.
6779 (check_effective_target_openacc_nvidia_accel_present)
6780 (check_effective_target_openacc_nvidia_accel_selected): New
6782 (libgomp_init): Update for OpenACC changes.
6783 * testsuite/libgomp-test-support.exp.in: New file.
6784 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6785 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6786 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6787 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6788 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6789 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6790 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6791 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6792 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6793 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6794 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6795 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6796 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6797 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6798 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6799 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6800 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6801 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6802 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6803 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6804 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6805 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6806 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6807 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6808 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6809 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6810 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6811 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6812 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6813 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6814 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6815 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6816 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6817 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6818 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6819 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6820 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6821 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6822 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6823 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6824 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6825 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6826 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6827 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6828 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6829 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6830 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6831 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6832 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6833 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6834 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6835 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6836 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6837 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6838 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6839 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6840 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6841 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6842 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6843 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6844 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6845 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6846 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6847 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6848 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6849 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6850 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6851 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6852 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6853 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6854 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6855 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6856 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6857 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6858 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6859 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6860 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6861 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6862 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6863 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6864 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6865 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6866 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6867 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6868 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6869 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6870 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6871 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6872 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6873 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6874 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6875 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6876 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6877 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6878 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6879 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6880 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6881 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6882 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6883 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6884 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6885 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6886 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6887 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6888 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6889 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6890 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6891 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6892 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6893 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6894 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6895 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6896 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6897 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6898 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6899 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6900 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6901 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6902 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
6903 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
6904 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
6905 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
6906 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6907 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6908 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6909 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
6910 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6911 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
6912 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
6913 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
6914 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
6915 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
6916 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6917 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
6918 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6919 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6920 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6921 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6922 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6923 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
6925 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
6926 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
6927 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
6928 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6929 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
6930 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6931 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6932 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6933 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6934 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6935 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6936 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6937 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6938 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6939 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6940 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6941 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6942 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6943 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6944 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6945 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
6946 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6947 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6948 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
6949 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6950 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
6951 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6952 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6953 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6954 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6955 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6956 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6957 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6958 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6959 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
6960 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6961 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
6962 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
6963 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
6964 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6965 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
6966 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6967 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6968 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
6969 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
6970 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6971 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
6972 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
6973 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6974 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6975 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6976 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6977 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6978 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6979 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
6980 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
6981 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
6982 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
6983 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
6984 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
6986 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
6987 Julian Brown <julian@codesourcery.com>
6988 David Malcolm <dmalcolm@redhat.com>
6990 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
6991 to "GNU Offloading and Multi Processing Runtime Library". Change
6993 * configure: Regenerate.
6994 * libgomp.texi: Update.
6996 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
6998 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
7000 * configure: Regenerate.
7002 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
7003 "intelmic" in $offload_targets.
7005 2015-01-05 Jakub Jelinek <jakub@redhat.com>
7007 Update copyright years.
7009 * libgomp.texi: Bump @copying's copyright year.
7011 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7013 * testsuite/lib/libgomp.exp: Load target-utils.exp.
7014 Move load of target-supportes.exp earlier.
7016 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
7018 * testsuite/libgomp.c/target-9.c: New test.
7020 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
7022 * config.h.in: Regenerate.
7023 * configure: Regenerate.
7024 * configure.ac: Add GCC_CHECK_EMUTLS.
7025 * libgomp.h: Add check for USE_EMUTLS: this case
7026 is equal to HAVE_TLS.
7029 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
7031 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
7033 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
7034 Ilya Verbin <ilya.verbin@intel.com>
7036 * testsuite/libgomp.c/target-critical-1.c: New test.
7038 2014-11-26 Jakub Jelinek <jakub@redhat.com>
7040 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
7041 to dg-options unless expensive testing is on.
7042 (TESTITERS): Define to N if not defined.
7043 (main): Use TESTITERS instead of N.
7044 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
7045 dg-additional-options depending on whether expensive testing is on.
7046 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
7047 Decrease N to 100000 and CHUNKSZ to 10000.
7049 2014-11-24 Jakub Jelinek <jakub@redhat.com>
7052 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
7053 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
7055 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
7057 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
7059 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
7062 * configure: Regenerated.
7064 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
7066 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
7067 vect_simd_clones effective target.
7068 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7070 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7072 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
7073 of 32 as block_size.
7074 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
7075 instead of 32 as block_size.
7077 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7078 Ilya Verbin <ilya.verbin@intel.com>
7080 * Makefile.in: Regenerate.
7081 * configure: Regenerate.
7082 * configure.ac: Set up offload_additional_options,
7083 offload_additional_lib_paths and offload_targets.
7084 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7085 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7086 * testsuite/Makefile.in: Regenerate.
7087 * testsuite/lib/libgomp.exp (libgomp_init): Append
7088 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
7089 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
7090 build directory to LD_LIBRARY_PATH for intelmic offload targets.
7092 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7093 Ilya Verbin <ilya.verbin@intel.com>
7094 Kirill Yukhin <kirill.yukhin@intel.com>
7095 Ilya Tocar <ilya.tocar@intel.com>
7097 * testsuite/lib/libgomp.exp
7098 (check_effective_target_offload_device): New.
7099 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7100 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7101 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7102 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7103 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7104 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7105 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7106 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7107 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7108 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7109 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7110 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7111 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7112 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7113 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7114 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7115 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7116 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7117 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7118 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7119 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7120 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7121 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7122 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7123 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7124 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7125 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7126 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7127 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7128 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7129 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7130 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7131 * testsuite/libgomp.c/target-7.c: Fix test.
7132 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7133 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7134 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7135 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7136 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7137 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7138 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7139 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7140 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7141 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7142 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7143 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7144 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7145 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7146 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7147 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7148 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7149 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7150 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7151 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7152 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7153 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7154 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7155 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7156 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7157 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7158 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7159 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7160 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7161 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7162 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7164 2014-11-13 Jakub Jelinek <jakub@redhat.com>
7165 Ilya Verbin <ilya.verbin@intel.com>
7166 Thomas Schwinge <thomas@codesourcery.com>
7167 Andrey Turetskiy <andrey.turetskiy@intel.com>
7169 * libgomp.map (GOMP_4.0.1): New symbol version.
7170 Add GOMP_offload_register.
7171 * libgomp_target.h: New file.
7172 * splay-tree.h: New file.
7173 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7174 (gomp_target_init): New forward declaration.
7175 (gomp_is_initialized): New static variable.
7176 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7177 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7179 (offload_images, num_offload_images, devices, num_devices): New static
7181 (splay_compare): New static function.
7182 (struct gomp_device_descr): New structure.
7183 (gomp_get_num_devices): Call gomp_target_init.
7184 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7185 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7186 (GOMP_offload_register): New function.
7187 (GOMP_target): Arrange for host callback to be performed in a separate
7188 initial thread and contention group, inheriting ICVs from
7189 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
7190 Add device initialization and lookup for target function in splay tree.
7191 (GOMP_target_data): Add device initialization and call gomp_map_vars.
7192 (GOMP_target_end_data): Call gomp_unmap_vars.
7193 (GOMP_target_update): Add device initialization and call gomp_update.
7194 (gomp_load_plugin_for_device, gomp_register_images_for_device)
7195 (gomp_target_init): New static functions.
7197 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7198 Thomas Schwinge <thomas@codesourcery.com>
7199 Ilya Verbin <ilya.verbin@intel.com>
7200 Andrey Turetskiy <andrey.turetskiy@intel.com>
7202 * config.h.in: Regenerate.
7203 * configure: Regenerate.
7204 * configure.ac: Check for libdl, required for plugin support.
7205 (PLUGIN_SUPPORT): Define if plugins are supported.
7206 (enable_offload_targets): Support Intel MIC targets.
7207 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7209 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7212 * configure: Regenerate.
7214 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7216 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7218 2014-10-06 Marek Polacek <polacek@redhat.com>
7220 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7221 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7222 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7223 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7225 2014-10-06 Marek Polacek <polacek@redhat.com>
7227 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7228 * testsuite/libgomp.c/nqueens-1.c: Likewise.
7229 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7230 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7231 * testsuite/libgomp.c/pr36802-2.c: Likewise.
7232 * testsuite/libgomp.c/pr36802-3.c: Likewise.
7233 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7234 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7235 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7236 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7237 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7238 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7239 * testsuite/libgomp.c/omp-single-1.c: Likewise.
7240 * testsuite/libgomp.c/omp-single-2.c: Likewise.
7241 * testsuite/libgomp.c/omp_matvec.c: Likewise.
7242 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7243 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7244 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
7247 2014-10-03 Jakub Jelinek <jakub@redhat.com>
7250 * testsuite/libgomp.c/pr61200.c: New test.
7252 2014-09-18 Jakub Jelinek <jakub@redhat.com>
7255 * testsuite/libgomp.c++/pr63248.C: New test.
7257 2014-08-04 Jakub Jelinek <jakub@redhat.com>
7259 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
7260 is not zero, but taskgroup->children is NULL and there are
7261 any task->children, schedule those instead of waiting.
7262 * testsuite/libgomp.c/depend-6.c: New test.
7263 * testsuite/libgomp.c/depend-7.c: New test.
7264 * testsuite/libgomp.c/depend-8.c: New test.
7265 * testsuite/libgomp.c/depend-9.c: New test.
7266 * testsuite/libgomp.c/depend-10.c: New test.
7268 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7270 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
7271 (struct gomp_taskwait): New type.
7272 (struct gomp_task): Add taskwait and parent_depends_on, remove
7273 in_taskwait and taskwait_sem fields.
7274 (gomp_finish_task): Don't destroy taskwait_sem.
7275 * task.c (gomp_init_task): Don't init in_taskwait, instead init
7276 taskwait and parent_depends_on.
7277 (GOMP_task): For if (0) tasks with depend clause that depend on
7278 earlier tasks don't defer them, instead call
7279 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
7280 Initialize redundant_out field, for redundant out entries just
7281 move them at the end of linked list instead of removing them
7282 completely, and set redundant_out flag instead of redundant.
7283 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
7285 (gomp_task_run_post_handle_dependers): If parent is in
7286 gomp_task_maybe_wait_for_dependencies and newly runnable task
7287 is not parent_depends_on, queue it in parent->children linked
7288 list after all runnable tasks with parent_depends_on set.
7289 Adjust for addition of taskwait indirection.
7290 (gomp_task_run_post_remove_parent): If parent is in
7291 gomp_task_maybe_wait_for_dependencies and task to be removed
7292 is parent_depends_on, decrement n_depend and if needed awake
7293 parent. Adjust for addition of taskwait indirection.
7294 (GOMP_taskwait): Adjust for addition of taskwait indirection.
7295 (gomp_task_maybe_wait_for_dependencies): New function.
7296 * testsuite/libgomp.c/depend-5.c: New test.
7298 2014-07-13 Tobias Burnus <burnus@net-b.de>
7300 * testsuite/libgomp.fortran/pr34020.f90: Make compile
7301 with TS 18508/Fortran 2015.
7303 2014-07-06 Marek Polacek <polacek@redhat.com>
7306 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
7308 2014-07-03 Jakub Jelinek <jakub@redhat.com>
7310 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
7311 matches regex $lang_source_re, add $lang_include_flags to options.
7312 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
7313 * testsuite/libgomp.c++/c++.exp: Likewise.
7314 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
7315 and lang_include_flags instead of adding -fintrinsic-modules-path= to
7317 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
7319 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
7321 * testsuite/libgomp.fortran/fortran.exp: Explain
7322 gfortran-dg-runtest usage.
7324 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7326 * testsuite/libgomp.fortran/simd5.f90: New test.
7327 * testsuite/libgomp.fortran/simd6.f90: New test.
7328 * testsuite/libgomp.fortran/simd7.f90: New test.
7330 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7332 * testsuite/libgomp.c/for-2.c: Define SC to static for
7333 #pragma omp for simd testing.
7334 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
7335 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
7337 * testsuite/libgomp.c/simd-14.c: New test.
7338 * testsuite/libgomp.c/simd-15.c: New test.
7339 * testsuite/libgomp.c/simd-16.c: New test.
7340 * testsuite/libgomp.c/simd-17.c: New test.
7341 * testsuite/libgomp.c++/for-10.C: Define SC to static for
7342 #pragma omp for simd testing.
7343 * testsuite/libgomp.c++/simd10.C: New test.
7344 * testsuite/libgomp.c++/simd11.C: New test.
7345 * testsuite/libgomp.c++/simd12.C: New test.
7346 * testsuite/libgomp.c++/simd13.C: New test.
7348 * testsuite/libgomp.fortran/aligned1.f03: New test.
7349 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
7350 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
7351 tasks with !$omp parallel !$omp single.
7352 * testsuite/libgomp.fortran/target8.f90: New test.
7353 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
7354 not to use trim in the combiner, instead call elemental function.
7355 (fn): New elemental function.
7356 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
7358 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
7360 * testsuite/libgomp.fortran/udr12.f90: New test.
7361 * testsuite/libgomp.fortran/udr13.f90: New test.
7362 * testsuite/libgomp.fortran/udr14.f90: New test.
7363 * testsuite/libgomp.fortran/udr15.f90: New test.
7365 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7367 * omp_lib.f90.in (openmp_version): Set to 201307.
7368 * omp_lib.h.in (openmp_version): Likewise.
7369 * testsuite/libgomp.c/target-8.c: New test.
7370 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
7371 and inbranch clauses.
7372 * testsuite/libgomp.fortran/depend-3.f90: New test.
7373 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
7375 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7376 * testsuite/libgomp.fortran/target1.f90: New test.
7377 * testsuite/libgomp.fortran/target2.f90: New test.
7378 * testsuite/libgomp.fortran/target3.f90: New test.
7379 * testsuite/libgomp.fortran/target4.f90: New test.
7380 * testsuite/libgomp.fortran/target5.f90: New test.
7381 * testsuite/libgomp.fortran/target6.f90: New test.
7382 * testsuite/libgomp.fortran/target7.f90: New test.
7384 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7387 * testsuite/libgomp.fortran/allocatable9.f90: New test.
7388 * testsuite/libgomp.fortran/allocatable10.f90: New test.
7389 * testsuite/libgomp.fortran/allocatable11.f90: New test.
7390 * testsuite/libgomp.fortran/allocatable12.f90: New test.
7391 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7392 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7393 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7394 * testsuite/libgomp.fortran/associate1.f90: New test.
7395 * testsuite/libgomp.fortran/associate2.f90: New test.
7396 * testsuite/libgomp.fortran/procptr1.f90: New test.
7398 2014-06-06 Jakub Jelinek <jakub@redhat.com>
7400 * testsuite/libgomp.fortran/simd1.f90: New test.
7401 * testsuite/libgomp.fortran/udr1.f90: New test.
7402 * testsuite/libgomp.fortran/udr2.f90: New test.
7403 * testsuite/libgomp.fortran/udr3.f90: New test.
7404 * testsuite/libgomp.fortran/udr4.f90: New test.
7405 * testsuite/libgomp.fortran/udr5.f90: New test.
7406 * testsuite/libgomp.fortran/udr6.f90: New test.
7407 * testsuite/libgomp.fortran/udr7.f90: New test.
7408 * testsuite/libgomp.fortran/udr8.f90: New test.
7409 * testsuite/libgomp.fortran/udr9.f90: New test.
7410 * testsuite/libgomp.fortran/udr10.f90: New test.
7411 * testsuite/libgomp.fortran/udr11.f90: New test.
7413 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
7415 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7416 vect_simd_clones effective target.
7417 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7419 2014-05-21 Jakub Jelinek <jakub@redhat.com>
7422 * testsuite/libgomp.c++/simd-9.C: New test.
7424 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
7426 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7427 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7428 texts according to their @menu entry positions.
7430 2014-05-11 Jakub Jelinek <jakub@redhat.com>
7432 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7433 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7434 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7435 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7436 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7437 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7438 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7439 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7440 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7441 * testsuite/libgomp.fortran/depend-1.f90: New test.
7442 * testsuite/libgomp.fortran/depend-2.f90: New test.
7443 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7444 * testsuite/libgomp.fortran/simd1.f90: New test.
7445 * testsuite/libgomp.fortran/simd2.f90: New test.
7446 * testsuite/libgomp.fortran/simd3.f90: New test.
7447 * testsuite/libgomp.fortran/simd4.f90: New test.
7448 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7450 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7452 * testsuite/libgomp.c/simd-10.c: New test.
7453 * testsuite/libgomp.c/simd-11.c: New test.
7454 * testsuite/libgomp.c/simd-12.c: New test.
7455 * testsuite/libgomp.c/simd-13.c: New test.
7457 2014-04-24 Jakub Jelinek <jakub@redhat.com>
7459 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7460 atomic type clauses in any order and optional comma in between.
7461 * testsuite/libgomp.c++/atomic-15.C: Likewise.
7462 * testsuite/libgomp.c/atomic-17.c: Likewise.
7464 * testsuite/libgomp.c/simd-7.c: New test.
7465 * testsuite/libgomp.c/simd-8.c: New test.
7466 * testsuite/libgomp.c/simd-9.c: New test.
7467 * testsuite/libgomp.c/loop-16.c: New test.
7469 2014-04-02 Richard Henderson <rth@redhat.com>
7471 * config/linux/futex.h (futex_wait): Get error value from errno.
7472 (futex_wake): Likewise.
7474 2014-03-25 Jakub Jelinek <jakub@redhat.com>
7477 * testsuite/libgomp.c++/udr-11.C: New test.
7478 * testsuite/libgomp.c++/udr-12.C: New test.
7479 * testsuite/libgomp.c++/udr-13.C: New test.
7480 * testsuite/libgomp.c++/udr-14.C: New test.
7481 * testsuite/libgomp.c++/udr-15.C: New test.
7482 * testsuite/libgomp.c++/udr-16.C: New test.
7483 * testsuite/libgomp.c++/udr-17.C: New test.
7484 * testsuite/libgomp.c++/udr-18.C: New test.
7485 * testsuite/libgomp.c++/udr-19.C: New test.
7487 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7489 Update copyright years
7491 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7493 * hashtab.h: Use the standard form for the copyright notice.
7495 2014-01-02 Tobias Burnus <burnus@net-b.de>
7497 * libgomp.texi: Bump @copying's copyright year.
7499 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7501 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7502 alloca () with __builtin_alloca ().
7503 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7504 * testsuite/libgomp.c/lock-3.c: Likewise.
7505 * testsuite/libgomp.c/pr48591.c: Likewise.
7507 2013-12-17 Jakub Jelinek <jakub@redhat.com>
7510 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7513 2013-12-16 Jakub Jelinek <jakub@redhat.com>
7516 * testsuite/libgomp.c/pr58756.c: New test.
7518 2013-12-12 Jakub Jelinek <jakub@redhat.com>
7521 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7524 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7526 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7528 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7529 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7530 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7531 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7534 * libgomp_g.h: Include <stddef.h> for size_t.
7536 * libgomp.spec.in: Update comment about libgomp's dependencies.
7537 * configure.ac: Likewise.
7538 * configure: Regenerate.
7540 2013-10-16 Tobias Burnus <burnus@net-b.de>
7542 * libgomp.texi: (Runtime Library Routines): Update references for
7543 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7544 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7545 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7546 (Environment Variables): Update references for OpenMP 4.0. Add
7547 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7548 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7551 2013-10-14 Jakub Jelinek <jakub@redhat.com>
7553 * env.c (parse_bind_var): Initialize value to avoid
7554 (false positive) warning.
7556 2013-10-12 Jakub Jelinek <jakub@redhat.com>
7559 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7561 (gomp_init_num_threads): Move i variable declaration into
7562 #ifdef CPU_ALLOC_SIZE block.
7563 * config/linux/affinity.c (gomp_affinity_init_level): Test
7564 gomp_places_list_len == 0 rather than gomp_places_list == 0
7565 when checking for topology reading error.
7566 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7567 * env.c (parse_affinity): Add ignore argument, if true, don't populate
7568 gomp_places_list, only parse env var and always return false.
7569 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
7570 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7571 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7572 and either of these variables were parsed correctly into a places
7575 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7576 Jakub Jelinek <jakub@redhat.com>
7578 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7579 of 5 loopfn matches.
7580 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7581 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7582 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7583 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7584 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7585 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7586 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7587 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7589 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7591 * Makefile.am (omp_lib.mod): Streamline rule.
7592 * Makefile.in: Regenerate.
7594 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7597 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7598 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7599 * testsuite/libgomp.fortran/lib2.f: Likewise.
7600 * testsuite/libgomp.fortran/lib3.f: Likewise.
7602 * configure.ac: Typo fix.
7603 * configure: Regenerate.
7605 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7606 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7608 * omp.h.in: Don't touch the user's namespace.
7610 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7611 Tobias Burnus <burnus@net-b.de>
7612 Richard Henderson <rth@redhat.com>
7614 * target.c: New file.
7615 * Makefile.am (libgomp_la_SOURCES): Add target.c.
7616 * Makefile.in: Regenerated.
7617 * libgomp_g.h (GOMP_task): Add depend argument.
7618 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7619 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7620 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7621 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7622 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7623 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7624 GOMP_taskgroup_start, GOMP_taskgroup_end,
7625 GOMP_parallel_sections): New prototypes.
7626 * fortran.c (omp_is_initial_device): Add ialias_redirect.
7627 (omp_is_initial_device_): New function.
7628 (ULP, STR1, STR2, ialias_redirect): Removed.
7629 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7630 omp_set_default_device_8_, omp_get_default_device_,
7631 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7633 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7634 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7635 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7637 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7638 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7639 omp_set_default_device, omp_set_default_device_,
7640 omp_set_default_device_8_, omp_get_default_device,
7641 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7642 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7643 omp_get_team_num_): Export @@OMP_4.0.
7644 * team.c (struct gomp_thread_start_data): Add place field.
7645 (gomp_thread_start): Clear thr->thread_pool and
7646 thr->task before returning. Use gomp_team_barrier_wait_final
7647 instead of gomp_team_barrier_wait. Initialize thr->place.
7648 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7649 team_cancelled and task_queued_count fields.
7650 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7651 before calling pthread_exit.
7652 (gomp_free_thread): No longer static. Use
7653 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7654 (gomp_team_start): Add flags argument. Set
7655 thr->thread_pool->threads_busy to nthreads immediately after creating
7656 new pool. Use gomp_managed_threads_lock instead of
7657 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
7658 (gomp_team_end): Use gomp_managed_threads_lock instead of
7659 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
7660 of gomp_team_barrier_wait. If team->team_cancelled, call
7661 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7662 rather than thr->ts.work_share.
7663 (initialize_team): Don't call gomp_sem_init here.
7664 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7666 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7667 * env.c (gomp_global_icv): Add default_device_var, target_data and
7668 bind_var initializers.
7669 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7670 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7671 gomp_places_list_len): New variables.
7672 (parse_bind_var, parse_one_place, parse_places_var): New functions.
7673 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7675 (gomp_cancel_var): New global variable.
7676 (parse_int): New function.
7677 (handle_omp_display_env): New function.
7678 (initialize_env): Use it. Initialize default_device_var.
7679 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
7680 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
7681 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
7682 been successfully parsed (and call gomp_init_affinity in that case).
7683 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7684 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7685 omp_get_team_num, omp_is_initial_device): New functions.
7686 * libgomp.h: Include stdlib.h.
7687 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7689 (struct target_mem_desc): Forward declare.
7690 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7691 and thread_limit_var fields.
7692 (gomp_get_num_devices): New prototype.
7693 (gomp_cancel_var): New extern decl.
7694 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7695 team_cancelled and task_queued_count fields. Add comments about
7696 task_{,queued_,running_}count.
7697 (gomp_cancel_kind): New enum.
7698 (gomp_work_share_end_cancel): New prototype.
7699 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7700 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7702 (struct gomp_taskgroup): New type.
7703 (struct gomp_task_depend_entry,
7704 struct gomp_dependers_vec): New types.
7705 (gomp_finish_task): Free depend_hash if non-NULL.
7706 (struct gomp_team_state): Add place_partition_off
7707 and place_partition_len fields.
7708 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7709 gomp_places_list_len): New extern decls.
7710 (struct gomp_thread): Add place field.
7711 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7712 (gomp_init_thread_affinity): Add place argument.
7713 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7714 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7715 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7716 gomp_affinity_init_level, gomp_affinity_print_place): New
7718 (gomp_team_start): Add flags argument.
7719 (gomp_thread_limit_var, gomp_remaining_threads_count,
7720 gomp_remaining_threads_lock): Remove.
7721 (gomp_managed_threads_lock): New variable.
7722 (struct gomp_thread_pool): Add threads_busy field.
7723 (gomp_free_thread): New prototype.
7724 * task.c: Include hashtab.h.
7725 (hash_entry_type): New typedef.
7726 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7727 (gomp_init_task): Clear dependers, depend_hash, depend_count,
7728 copy_ctors_done and taskgroup fields.
7729 (GOMP_task): Add depend argument, handle depend clauses. If
7730 gomp_team_barrier_cancelled or if it's taskgroup has been
7731 cancelled, don't queue or start new tasks. Set copy_ctors_done
7732 field if needed. Initialize taskgroup field. If copy_ctors_done
7733 and already cancelled, don't discard the task. If taskgroup is
7734 non-NULL, enqueue the task into taskgroup queue. Increment
7735 num_children field in taskgroup. Increment task_queued_count.
7736 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7737 gomp_task_run_post_remove_taskgroup): New inline functions.
7738 (gomp_task_run_post_handle_depend_hash,
7739 gomp_task_run_post_handle_dependers,
7740 gomp_task_run_post_handle_depend): New functions.
7741 (GOMP_taskwait): Use them. If more than one new tasks
7742 have been queued, wake other threads if needed.
7743 (gomp_barrier_handle_tasks): Likewise. If
7744 gomp_team_barrier_cancelled, don't start any new tasks, just free
7746 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7748 (omp_proc_bind_kind, omp_proc_bind_false,
7749 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7750 omp_proc_bind_spread): New params.
7751 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7752 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7753 omp_get_team_num, omp_is_initial_device): New interfaces.
7754 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7755 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7756 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7757 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7758 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7759 useless use omp_lib_kinds.
7760 * omp.h.in (omp_proc_bind_t): New typedef.
7761 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7762 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7763 omp_get_team_num, omp_is_initial_device): New prototypes.
7764 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7765 through to gomp_team_start.
7766 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7767 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7768 Adjust gomp_parallel_loop_start callers.
7769 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7770 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7771 GOMP_loop_end_cancel): New functions.
7772 (GOMP_parallel_end): Add ialias_redirect.
7773 * hashtab.h: New file.
7774 * libgomp.texi (Environment Variables): Minor cleanup,
7775 update section refs to OpenMP 4.0rc2.
7776 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7777 environment variables.
7778 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7779 team->work_shares_to_free to thr->ts.work_share before calling
7781 (gomp_work_share_end_cancel): New function.
7782 * config/linux/proc.c: Include errno.h.
7783 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7784 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7785 sizeof (cpu_set_t) to determine number of iterations. Fix up check
7786 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
7787 gomp_cpuset_size is sizeof (cpu_set_t).
7788 (gomp_init_num_threads): Initialize gomp_cpuset_size,
7789 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7790 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7791 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
7792 contain any logical CPUs.
7793 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7794 is NULL. Use gomp_cpusetp instead of &cpuset and pass
7795 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7796 pthread_getaffinity_np. Check gomp_places_list instead of
7797 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
7798 * config/linux/bar.c (gomp_barrier_wait_end,
7799 gomp_barrier_wait_last): Use BAR_* defines.
7800 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
7801 from state where needed. Set work_share_cancelled to 0 on last
7803 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7804 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7806 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7807 Add cpusetsize argument.
7808 (gomp_cpuset_size, gomp_cpusetp): Declare.
7809 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7810 (affinity_counter): Remove.
7811 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7812 if CPU_ALLOC_SIZE isn't defined.
7813 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7814 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7815 bind current thread to the first place.
7816 (gomp_init_thread_affinity): Rewritten. Add place argument, just
7817 pthread_setaffinity_np to gomp_places_list[place].
7818 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7819 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7820 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7821 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7822 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7823 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7824 (gomp_barrier_t): Add awaited_final field.
7825 (gomp_barrier_init): Initialize awaited_final field.
7826 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7827 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7829 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7831 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7832 gomp_team_barrier_cancelled): New inline functions.
7833 (gomp_barrier_last_thread,
7834 gomp_team_barrier_set_task_pending,
7835 gomp_team_barrier_clear_task_pending,
7836 gomp_team_barrier_set_waiting_for_tasks,
7837 gomp_team_barrier_waiting_for_tasks,
7838 gomp_team_barrier_done): Use BAR_* defines.
7839 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7840 (gomp_barrier_wait_end): Use BAR_* defines.
7841 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7842 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7844 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7845 gomp_team_barrier_cancel): New functions.
7846 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7848 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7849 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7850 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7851 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7852 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7853 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7854 (gomp_barrier_t): Add cancellable field.
7855 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7856 gomp_team_barrier_cancel): New prototypes.
7857 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7858 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7859 gomp_team_barrier_cancelled): New inline functions.
7860 (gomp_barrier_wait_start, gomp_barrier_last_thread,
7861 gomp_team_barrier_set_task_pending,
7862 gomp_team_barrier_clear_task_pending,
7863 gomp_team_barrier_set_waiting_for_tasks,
7864 gomp_team_barrier_waiting_for_tasks,
7865 gomp_team_barrier_done): Use BAR_* defines.
7866 * barrier.c (GOMP_barrier_cancel): New function.
7867 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7868 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7869 omp_proc_bind_spread): New params.
7870 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7871 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7872 omp_get_team_num, omp_is_initial_device): New externals.
7873 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7875 (gomp_resolve_num_threads): Adjust for thread_limit now being in
7876 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7877 infinity. If not nested, just return minimum of max_num_threads
7878 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7879 to the returned value. Otherwise, don't update atomically
7880 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7881 (GOMP_parallel_end): Adjust for thread_limit now being in
7882 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7883 infinity. Adjust threads_busy in the pool rather than
7884 gomp_remaining_threads_count. Remember team->nthreads and call
7885 gomp_team_end before adjusting threads_busy, if not nested
7886 afterwards, just set it to 1 non-atomically. Add ialias.
7887 (GOMP_parallel_start): Adjust gomp_team_start caller.
7888 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
7889 * testsuite/libgomp.c/affinity-1.c: New test.
7890 * testsuite/libgomp.c/atomic-15.c: New test.
7891 * testsuite/libgomp.c/atomic-16.c: New test.
7892 * testsuite/libgomp.c/atomic-17.c: New test.
7893 * testsuite/libgomp.c/cancel-for-1.c: New test.
7894 * testsuite/libgomp.c/cancel-for-2.c: New test.
7895 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
7896 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
7897 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
7898 * testsuite/libgomp.c/cancel-sections-1.c: New test.
7899 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
7900 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
7901 * testsuite/libgomp.c/depend-1.c: New test.
7902 * testsuite/libgomp.c/depend-2.c: New test.
7903 * testsuite/libgomp.c/depend-3.c: New test.
7904 * testsuite/libgomp.c/depend-4.c: New test.
7905 * testsuite/libgomp.c/for-1.c: New test.
7906 * testsuite/libgomp.c/for-1.h: New file.
7907 * testsuite/libgomp.c/for-2.c: New test.
7908 * testsuite/libgomp.c/for-2.h: New file.
7909 * testsuite/libgomp.c/for-3.c: New test.
7910 * testsuite/libgomp.c/pr58392.c: New test.
7911 * testsuite/libgomp.c/simd-1.c: New test.
7912 * testsuite/libgomp.c/simd-2.c: New test.
7913 * testsuite/libgomp.c/simd-3.c: New test.
7914 * testsuite/libgomp.c/simd-4.c: New test.
7915 * testsuite/libgomp.c/simd-5.c: New test.
7916 * testsuite/libgomp.c/simd-6.c: New test.
7917 * testsuite/libgomp.c/target-1.c: New test.
7918 * testsuite/libgomp.c/target-2.c: New test.
7919 * testsuite/libgomp.c/target-3.c: New test.
7920 * testsuite/libgomp.c/target-4.c: New test.
7921 * testsuite/libgomp.c/target-5.c: New test.
7922 * testsuite/libgomp.c/target-6.c: New test.
7923 * testsuite/libgomp.c/target-7.c: New test.
7924 * testsuite/libgomp.c/taskgroup-1.c: New test.
7925 * testsuite/libgomp.c/thread-limit-1.c: New test.
7926 * testsuite/libgomp.c/thread-limit-2.c: New test.
7927 * testsuite/libgomp.c/thread-limit-3.c: New test.
7928 * testsuite/libgomp.c/udr-1.c: New test.
7929 * testsuite/libgomp.c/udr-2.c: New test.
7930 * testsuite/libgomp.c/udr-3.c: New test.
7931 * testsuite/libgomp.c++/affinity-1.C: New test.
7932 * testsuite/libgomp.c++/atomic-10.C: New test.
7933 * testsuite/libgomp.c++/atomic-11.C: New test.
7934 * testsuite/libgomp.c++/atomic-12.C: New test.
7935 * testsuite/libgomp.c++/atomic-13.C: New test.
7936 * testsuite/libgomp.c++/atomic-14.C: New test.
7937 * testsuite/libgomp.c++/atomic-15.C: New test.
7938 * testsuite/libgomp.c++/cancel-for-1.C: New test.
7939 * testsuite/libgomp.c++/cancel-for-2.C: New test.
7940 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
7941 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
7942 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
7943 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
7944 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
7945 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
7946 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
7947 * testsuite/libgomp.c++/cancel-test.h: New file.
7948 * testsuite/libgomp.c++/for-9.C: New test.
7949 * testsuite/libgomp.c++/for-10.C: New test.
7950 * testsuite/libgomp.c++/for-11.C: New test.
7951 * testsuite/libgomp.c++/simd-1.C: New test.
7952 * testsuite/libgomp.c++/simd-2.C: New test.
7953 * testsuite/libgomp.c++/simd-3.C: New test.
7954 * testsuite/libgomp.c++/simd-4.C: New test.
7955 * testsuite/libgomp.c++/simd-5.C: New test.
7956 * testsuite/libgomp.c++/simd-6.C: New test.
7957 * testsuite/libgomp.c++/simd-7.C: New test.
7958 * testsuite/libgomp.c++/simd-8.C: New test.
7959 * testsuite/libgomp.c++/target-1.C: New test.
7960 * testsuite/libgomp.c++/target-2.C: New test.
7961 * testsuite/libgomp.c++/target-2-aux.cc: New file.
7962 * testsuite/libgomp.c++/target-3.C: New test.
7963 * testsuite/libgomp.c++/taskgroup-1.C: New test.
7964 * testsuite/libgomp.c++/udr-1.C: New test.
7965 * testsuite/libgomp.c++/udr-2.C: New test.
7966 * testsuite/libgomp.c++/udr-3.C: New test.
7967 * testsuite/libgomp.c++/udr-4.C: New test.
7968 * testsuite/libgomp.c++/udr-5.C: New test.
7969 * testsuite/libgomp.c++/udr-6.C: New test.
7970 * testsuite/libgomp.c++/udr-7.C: New test.
7971 * testsuite/libgomp.c++/udr-8.C: New test.
7972 * testsuite/libgomp.c++/udr-9.C: New test.
7974 2013-09-20 Jakub Jelinek <jakub@redhat.com>
7977 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
7980 2013-09-20 Alan Modra <amodra@gmail.com>
7982 * configure: Regenerate.
7984 2013-09-19 Jakub Jelinek <jakub@redhat.com>
7986 * testsuite/libgomp.c/sections-2.c: New test.
7988 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
7990 * testsuite/libgomp.fortran/strassen.f90:
7991 Add dg-skip-if aarch64_tiny.
7993 2013-06-20 Iain Sandoe <iain@codesourcery.com>
7994 Cesar Philippidis <cesar@codesourcery.com>
7996 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
7997 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
7998 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
7999 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8000 * testsuite/libgomp.graphite/graphite.exp: Likewise.
8001 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
8002 Use dg-runtest rather than gfortran-dg-runtest.
8004 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
8006 * testsuite/libgomp.c/icv-2.c: Extend current handling of
8007 Linux-based x86 systems to cover all GNU systems.
8008 * testsuite/libgomp.c/lock-3.c: Likewise.
8009 * testsuite/libgomp.c/pr48591.c: Likewise.
8011 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
8013 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
8014 GNU/Hurd, as done for Linux-based systems.
8016 * config/posix/ptrlock.h: Fix comment.
8018 2013-05-27 Tobias Burnus <burnus@net-b.de>
8021 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
8022 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
8023 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
8024 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
8025 omp_destroy_nest_lock): Correct arguments to match the one in
8027 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
8028 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
8029 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
8030 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
8032 2013-05-16 Jakub Jelinek <jakub@redhat.com>
8034 * testsuite/libgomp.c/loop-13.c: New test.
8035 * testsuite/libgomp.c/loop-14.c: New test.
8036 * testsuite/libgomp.c/loop-15.c: New test.
8037 * testsuite/libgomp.c++/loop-13.C: New test.
8038 * testsuite/libgomp.c++/loop-14.C: New test.
8039 * testsuite/libgomp.c++/loop-15.C: New test.
8041 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8044 * testsuite/libgomp.c++/pr56217.C: New test.
8046 2013-02-01 Alan Modra <amodra@gmail.com>
8048 * task.c (GOMP_task, GOMP_taskwait): Comment.
8050 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
8051 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
8054 * config/linux/wait.h (do_spin): Use atomic load for addr.
8055 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
8056 for intptr and ptrlock.
8057 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
8060 2013-01-22 Alan Modra <amodra@gmail.com>
8064 * task.c (GOMP_task): Revert 2011-12-09 change.
8065 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
8066 barrier to read task->children..
8067 (gomp_barrier_handle_tasks): ..and matching atomic store with
8068 release barrier here when setting parent->children to NULL.
8070 2013-01-16 Jakub Jelinek <jakub@redhat.com>
8071 Tobias Burnus <burnus@net-b.de>
8074 * testsuite/libgomp.fortran/fortran.exp: Use
8075 -fintrinsic-modules-path= instead of
8076 -fintrinsic-modules-path.
8078 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
8080 Update copyright years.
8082 2012-12-19 Tobias Burnus <burnus@net-b.de>
8084 * testsuite/libgomp.fortran/fortran.exp: Set
8085 -fintrinsic-modules-path.
8087 2012-12-19 Tobias Burnus <burnus@net-b.de>
8089 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8090 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8092 2012-11-21 Jakub Jelinek <jakub@redhat.com>
8095 * team.c (gomp_free_thread): Decrease gomp_managed_threads
8096 if pool had any threads_used.
8098 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
8100 * testsuite/libgomp.c++/pr24455.C: Use
8101 -Wl,-undefined,dynamic_lookup on darwin.
8103 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
8105 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8107 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
8109 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8111 2012-10-23 Ian Bolton <ian.bolton@arm.com>
8112 Jim MacArthur <jim.macarthur@arm.com>
8113 Marcus Shawcroft <marcus.shawcroft@arm.com>
8114 Nigel Stephens <nigel.stephens@arm.com>
8115 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8116 Richard Earnshaw <rearnsha@arm.com>
8117 Sofiane Naci <sofiane.naci@arm.com>
8118 Stephen Thomas <stephen.thomas@arm.com>
8119 Tejas Belagod <tejas.belagod@arm.com>
8120 Yufeng Zhang <yufeng.zhang@arm.com>
8122 * configure.tgt: Add AArch64.
8124 2012-10-04 Jason Merrill <jason@redhat.com>
8126 * testsuite/libgomp.c++/tls-init1.C: New.
8128 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8130 * configure: Regenerated.
8132 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
8134 * config/linux/mips/futex.h (sys_futex0): Change to static
8135 function with noinline, nomips16 attributes under MIPS16. Adjust
8136 asm statement to place 'li v0,SYS_futex' immediately before
8139 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
8141 * libgomp.texi (Library Index): Renamed from "Index" to prevent
8142 conflict with index.html on case-insensitive file systems.
8144 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8146 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8147 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8149 2012-07-02 Richard Guenther <rguenther@suse.de>
8150 Michael Matz <matz@suse.de>
8151 Tobias Grosser <tobias@grosser.es>
8152 Sebastian Pop <sebpop@gmail.com>
8154 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8155 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8156 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8157 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8159 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8161 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8163 2012-06-22 Richard Guenther <rguenther@suse.de>
8165 Merge from graphite branch
8166 2012-01-13 Tobias Grosser <tobias@grosser.es>
8168 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8169 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8171 2012-06-07 Jakub Jelinek <jakub@redhat.com>
8174 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8175 use GOMP_barrier () call instead.
8176 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8177 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8178 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8179 call GOMP_barrier instead.
8180 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8182 2012-06-06 Jakub Jelinek <jakub@redhat.com>
8185 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8186 argument to memset call.
8188 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8190 * configure: Regenerated.
8192 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8194 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8196 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8199 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8201 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8204 * testsuite/libgomp.c/pr52547.c: New test.
8206 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8208 * testsuite/lib/libgomp.exp: load fortran-modules.exp
8210 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8212 * configure.tgt (mips-sgi-irix6*): Remove.
8214 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8216 * configure.tgt (alpha*-dec-osf*): Remove.
8218 * config/osf/sem.h: Remove.
8219 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8221 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8223 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8225 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8228 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8229 Remove ENABLE_SYMVERS_SOL2.
8230 * configure: Regenerate.
8231 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8232 (PREPROCESS): New variable.
8233 (libgomp.ver): New target.
8234 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8235 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8236 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8238 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8239 * Makefile.in: Regenerate.
8241 2012-02-14 Walter Lee <walt@tilera.com>
8243 * configure.tgt: Handle tilegx and tilepro.
8244 * config/linux/tile/futex.h: New file.
8246 2012-02-08 Richard Guenther <rguenther@suse.de>
8248 PR tree-optimization/46886
8249 * testsuite/libgomp.c/pr46886.c: New testcase.
8251 2012-01-25 Matthias Klose <doko@ubuntu.com>
8253 * config/linux/arm: Remove empty directory.
8254 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8256 2011-12-09 Alan Modra <amodra@gmail.com>
8259 * task.c (GOMP_taskwait): Don't access task->children outside of
8260 task_lock mutex region.
8261 (GOMP_task): Likewise.
8263 2011-12-06 Jakub Jelinek <jakub@redhat.com>
8266 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
8268 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8269 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8270 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8271 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8272 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8274 2011-12-02 Alan Modra <amodra@gmail.com>
8276 * config/linux/affinity.c: Use atomic rather than sync builtin.
8277 * config/linux/lock.c: Likewise.
8278 * config/linux/ptrlock.h: Likewise.
8279 * config/linux/ptrlock.c: Likewise.
8280 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
8281 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
8282 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
8283 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
8284 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
8285 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
8286 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
8287 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
8288 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
8289 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
8291 2011-11-30 Alan Modra <amodra@gmail.com>
8294 * config/linux/bar.h: Use atomic rather than sync builtins.
8295 * config/linux/bar.c: Likewise. Add missing acquire
8296 synchronisation on generation field.
8297 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
8300 2011-11-30 Alan Modra <amodra@gmail.com>
8302 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
8303 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
8304 * config/linux/mutex.h: Use atomic rather than sync builtins.
8305 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
8306 * config/linux/omp-lock.h: Comment fix.
8307 * config/linux/arm/mutex.h: Delete.
8308 * config/linux/powerpc/mutex.h: Delete.
8309 * config/linux/ia64/mutex.h: Delete.
8310 * config/linux/mips/mutex.h: Delete.
8312 2011-11-30 Alan Modra <amodra@gmail.com>
8315 * config/linux/sem.h: Rewrite.
8316 * config/linux/sem.c: Rewrite.
8318 2011-11-28 Richard Henderson <rth@redhat.com>
8320 * libgomp.h (enum memmodel): New.
8322 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
8324 * configure: Regenerate.
8326 2011-10-10 Matthias Klose <doko@ubuntu.com>
8328 * config/posix95: Remove empty directory.
8330 2011-08-26 Jakub Jelinek <jakub@redhat.com>
8332 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
8334 2011-08-19 Jakub Jelinek <jakub@redhat.com>
8337 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
8338 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
8340 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8342 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
8344 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8347 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
8349 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
8351 * config/linux/proc.h: New.
8352 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
8353 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
8354 (gomp_init_num_threads): Update call to cpuset_popcount.
8355 (get_num_procs): Ditto.
8356 * config/linux/affinity.c (gomp_init_affinity): Call
8357 gomp_cpuset_popcount.
8359 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8363 * omp.h.in (omp_in_final): New prototype.
8364 * omp_lib.f90.in (omp_in_final): New interface.
8365 (omp_integer_kind, omp_logical_kind): Remove
8366 and replace all its uses in the module with 4.
8367 (openmp_version): Change to 201107.
8368 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
8369 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
8370 kind for the parameters.
8371 (omp_in_final): New external.
8372 (openmp_version): Change to 201107.
8373 * task.c (omp_in_final): New function.
8374 (gomp_init_task): Initialize final_task.
8375 (GOMP_task): Remove unused attribute from flags. Handle final
8377 (GOMP_taskyield): New function.
8378 (omp_in_final): Return true if if (false) or final (true) task
8379 or descendant of final (true).
8380 * fortran.c (omp_in_final_): New function.
8381 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
8382 (GOMP_3.0): Export GOMP_taskyield.
8383 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8385 (parse_unsigned_long_list): New function.
8386 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
8387 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
8388 even if parse_affinity returned false.
8389 * config/linux/affinity.c (gomp_init_affinity): Handle
8390 gomp_cpu_affinity_len == 0.
8391 * libgomp_g.h (GOMP_taskyield): New prototype.
8392 * libgomp.h (struct gomp_task): Add final_task field.
8393 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8394 * team.c (gomp_team_start): Override new task's nthreads_var icv
8395 if list form OMP_NUM_THREADS has been used and it has value for
8396 the new nesting level.
8398 * testsuite/libgomp.c/atomic-11.c: New test.
8399 * testsuite/libgomp.c/atomic-12.c: New test.
8400 * testsuite/libgomp.c/atomic-13.c: New test.
8401 * testsuite/libgomp.c/atomic-14.c: New test.
8402 * testsuite/libgomp.c/reduction-6.c: New test.
8403 * testsuite/libgomp.c/task-5.c: New test.
8404 * testsuite/libgomp.c++/atomic-2.C: New test.
8405 * testsuite/libgomp.c++/atomic-3.C: New test.
8406 * testsuite/libgomp.c++/atomic-4.C: New test.
8407 * testsuite/libgomp.c++/atomic-5.C: New test.
8408 * testsuite/libgomp.c++/atomic-6.C: New test.
8409 * testsuite/libgomp.c++/atomic-7.C: New test.
8410 * testsuite/libgomp.c++/atomic-8.C: New test.
8411 * testsuite/libgomp.c++/atomic-9.C: New test.
8412 * testsuite/libgomp.c++/task-8.C: New test.
8413 * testsuite/libgomp.c++/reduction-4.C: New test.
8414 * testsuite/libgomp.fortran/allocatable7.f90: New test.
8415 * testsuite/libgomp.fortran/allocatable8.f90: New test.
8416 * testsuite/libgomp.fortran/crayptr3.f90: New test.
8417 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8418 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8419 * testsuite/libgomp.fortran/pointer1.f90: New test.
8420 * testsuite/libgomp.fortran/pointer2.f90: New test.
8421 * testsuite/libgomp.fortran/task4.f90: New test.
8423 2011-08-02 Tobias Burnus <burnus@net-b.de>
8425 * libgomp.texi: Update OpenMP spec references to 3.1.
8426 (omp_in_final,OMP_PROC_BIND): New sections.
8427 (OMP_NUM_THREADS): Document that the value can be now a list.
8428 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8430 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8432 * config/linux/x86/futex.h: Check __x86_64__ instead of
8435 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8439 * testsuite/libgomp.c/pr49897-1.c: New test.
8440 * testsuite/libgomp.c/pr49897-2.c: New test.
8441 * testsuite/libgomp.c/pr49898-1.c: New test.
8442 * testsuite/libgomp.c/pr49898-2.c: New test.
8444 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8446 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8447 for ia32 instead of ilp32.
8449 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8450 * testsuite/libgomp.c/atomic-6.c: Likewise.
8452 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
8454 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8455 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8457 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8460 * config/osf/sem.h: New file.
8461 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8463 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8466 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8469 2011-07-15 Jakub Jelinek <jakub@redhat.com>
8471 * config/linux/wait.h (do_spin): New inline, largely copied
8472 from do_wait, just don't do futex_wait here, instead return true if
8474 (do_wait): Implement using do_spin.
8475 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8477 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8478 __sync_bool_compare_and_swap, pass the oldval to
8479 gomp_mutex_lock_slow.
8480 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8481 If all mutex contenders are just spinning and not sleeping, don't
8482 change state to 2 unnecessarily. Optimize the loop when state has
8483 already become 2 to use just one atomic operation per loop instead
8485 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8487 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8488 __sync_bool_compare_and_swap, pass the oldval to
8489 gomp_mutex_lock_slow.
8491 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8494 * iter.c (gomp_iter_static_next): For chunk size 0
8495 only use n ceil/ nthreads size for the first
8496 n % nthreads threads in the team instead of
8497 all threads except for the last few ones which
8498 get less work or none at all.
8499 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8500 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8501 chunk argument, set run_sched_modifier to 0 for static
8502 resp. 1 for other kinds. If chunk argument is 0
8503 and not static, set value to 1.
8505 2011-05-19 Jakub Jelinek <jakub@redhat.com>
8508 * testsuite/libgomp.c++/pr49043.C: New test.
8511 * testsuite/libgomp.c++/pr48869.C: New test.
8513 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8516 * fortran.c: Include limits.h.
8518 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8520 (omp_set_num_threads_8_, omp_set_schedule_8_,
8521 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8522 omp_get_team_size_8_): Use TO_INT macro.
8523 * testsuite/libgomp.fortran/pr48894.f90: New test.
8525 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8528 * testsuite/libgomp.c/pr48591.c: New test.
8530 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8533 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8534 * configure: Regenerate.
8536 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8539 * testsuite/libgomp.fortran/task3.f90: New test.
8541 2011-02-24 Tobias Burnus <burnus@net-b.de>
8543 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8545 2011-02-23 Jakub Jelinek <jakub@redhat.com>
8548 * libgomp.texi (omp_get_wtime): Don't say time in the past
8551 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8554 * testsuite/libgomp.fortran/fortran.exp: Check for both
8555 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
8556 but $blddir != "", still append ${blddir}/${lang_library_path}
8559 2011-02-16 Tobias Burnus <burnus@net-b.de>
8562 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8563 of libquadmath.a before adding its libpath to ldflags.
8565 2011-02-14 Jakub Jelinek <jakub@redhat.com>
8568 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8569 to FUTEX_WAIT futex syscall.
8570 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8572 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8574 * configure: Regenerate.
8576 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
8579 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8581 2011-01-16 Gerald Pfeifer
8583 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8585 2010-12-14 Jakub Jelinek <jakub@redhat.com>
8588 * libgomp.fortran/allocatable6.f90: New test.
8590 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8592 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8593 * configure: Regenerate.
8595 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
8599 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8600 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8601 * aclocal.m4: Regenerate.
8602 * configure: Regenerate.
8603 * Makefile.in: Regenerate.
8604 * testsuite/Makefile.in: Regenerate.
8606 2010-12-02 Jakub Jelinek <jakub@redhat.com>
8609 * libgomp.fortran/pr46753.f90: New test.
8612 * env.c (initialize_env): Default to spin count 300000
8613 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8617 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8618 at the end if sync builtins aren't supported.
8620 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8622 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8624 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8626 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8628 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
8630 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8632 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8633 Tobias Burnus <burnus@net-b.de>
8637 * configure: Regenerate.
8639 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
8641 * config/linux/futex.h: New.
8642 * config/linux/arm/mutex.h: New.
8643 * configure.tgt (arm*-*-linux*): Add config path.
8645 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8647 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8649 2010-09-23 Tobias Burnus <burnus@net-b.de>
8651 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8652 Change Fortran datatype to LOGICAL.
8653 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8654 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8656 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8658 * configure: Regenerate.
8660 2010-07-26 Jakub Jelinek <jakub@redhat.com>
8662 * libgomp.texi: Add function keyword to a couple of Fortran
8663 interfaces, use integer instead of int for Fortran.
8665 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8667 * libgomp.texi: Fix spelling and pasto problems throughout.
8668 Adjust prototypes to match code.
8670 2010-07-24 Tobias Burnus <burnus@net-b.de>
8672 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8673 silence -fwhole-file warning.
8675 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8677 * configure.tgt (*-*-solaris2.[56]*): Removed.
8679 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8681 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8682 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8683 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8684 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8685 targetting solaris2*.
8686 * configure: Regenerate.
8687 * config.h.in: Regenerate.
8689 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8690 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8691 Add libgomp_version_dep.
8692 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8694 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8695 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8696 * Makefile.in: Regenerate.
8698 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8699 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8700 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8701 to common block, protected by
8702 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8704 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8706 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
8708 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8711 * configure: Regenerate.
8713 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8716 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8717 * configure: Regenerate.
8718 * Makefile.in: Regenerate.
8719 * testsuite/Makefile.in: Regenerate.
8721 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8724 * testsuite/libgomp.c/pr43893.c: New test.
8725 * testsuite/libgomp.c++/pr43893.C: New test.
8727 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8730 * testsuite/libgomp.fortran/vla8.f90: New test.
8732 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8735 * config/linux/affinity.c (gomp_init_affinity): Decrease
8736 gomp_available_cpus if affinity mask confines the process to fewer
8738 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8739 non-NULL, just return gomp_available_cpus.
8742 * sections.c (gomp_sections_init): Initialize ws->mode.
8744 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8746 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8747 not unused bar variable.
8748 * configure: Regenerate.
8750 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8752 * Makefile.in: Regenerate.
8753 * aclocal.m4: Regenerate.
8754 * testsuite/Makefile.in: Regenerate.
8756 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8759 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8760 (initialize_env): Adjust callers.
8761 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8762 when the argument is 0.
8764 * testsuite/libgomp.c/pr42942.c: New test.
8766 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8770 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8771 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8773 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8775 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8776 * testsuite/libgomp.c++/task-6.C: Likewise.
8778 2010-01-28 Steve Ellcey <sje@cup.hp.com>
8780 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8782 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
8784 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8785 * configure: Regenerate.
8787 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8790 * testsuite/libgomp.fortran/allocatable5.f90: New test.
8792 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
8794 * configure.ac: Test for executability of GFORTRAN.
8795 * configure: Regenerate.
8797 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8799 * configure: Regenerate.
8801 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8804 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8806 2010-01-03 Richard Guenther <rguenther@suse.de>
8808 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8810 2009-12-23 Sebastian Pop <sebpop@gmail.com>
8812 * testsuite/libgomp.graphite/pr4118.c: New.
8814 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8816 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8817 for darwin, protect the test with require-effective-target tls_runtime.
8818 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8820 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8823 * testsuite/lib/libgomp.exp: Provide -B options to allow for
8824 link spec %s substitutions for static libraries.
8826 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
8829 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8831 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8833 * Makefile.in: Regenerate.
8834 * configure: Regenerate.
8835 * testsuite/Makefile.in: Regenerate.
8837 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8839 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8840 settings for LC_ALL and LANG.
8842 2009-11-25 Jakub Jelinek <jakub@redhat.com>
8845 * testsuite/libgomp.fortran/pr42162.f90: New test.
8847 2009-11-13 Jakub Jelinek <jakub@redhat.com>
8850 * testsuite/libgomp.c/pr42029.c: New test.
8852 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8854 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8855 *s. Accept ld version without text in ()s.
8856 * configure: Regenerated.
8858 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
8860 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8862 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8865 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8866 or a hyphen (happens with fortran language disabled).
8867 * configure: Regenerate.
8869 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8871 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8872 use sed script portable to Solaris /bin/sed for extracting ld
8874 * configure: Regenerate.
8876 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8878 * testsuite/libgomp.graphite/bounds.c: New test.
8880 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8882 * Makefile.am (libgomp_la_LINK): New.
8883 * Makefile.in: Regenerate.
8885 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8887 * configure.ac (AC_PREREQ): Bump to 2.64.
8889 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8891 * Makefile.am (install-html, install-pdf): Remove.
8892 * Makefile.in: Regenerate.
8894 * Makefile.in: Regenerate.
8895 * aclocal.m4: Regenerate.
8896 * config.h.in: Regenerate.
8897 * configure: Regenerate.
8898 * testsuite/Makefile.in: Regenerate.
8900 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8902 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
8903 * Makefile.in: Regenerate.
8905 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
8907 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
8908 * Makefile.in: Regenerate.
8910 2009-08-19 Tobias Burnus <burnus@net-b.de>
8913 omp_lib.h.in: Fix -std=f95 errors.
8915 2009-08-14 David Edelsohn <edelsohn@gnu.org>
8917 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
8918 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
8919 * testsuite/libgomp.graphite/graphite.exp: New.
8921 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
8923 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
8926 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8928 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
8929 needed memory barrier semantics.
8930 * config/linux/mips/mutex.h: New file.
8932 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8934 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
8936 2009-07-16 Joseph Myers <joseph@codesourcery.com>
8938 * configure: Regenerate.
8940 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
8945 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
8946 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
8947 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
8949 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
8951 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
8952 options when choosing a multilib.
8954 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
8956 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
8957 ld_library_path. Use add_path. Add just find_libgcc_s to
8958 ld_library_path, not every libgcc multilib directory.
8959 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
8960 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
8961 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
8963 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
8965 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
8967 * Makefile.am (LTLDFLAGS): Define.
8969 * Makefile.in: Regenerate.
8971 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
8974 * testsuite/libgomp.fortran/fortran.exp: Don't link with
8975 libgfortranbegin, check existence of libgfortran.a instead of
8978 2009-05-20 Jakub Jelinek <jakub@redhat.com>
8981 * team.c (gomp_thread_start): Destroy thr->release semaphore.
8982 (gomp_free_pool_helper): Likewise.
8984 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
8985 Jakub Jelinek <jakub@redhat.com>
8988 * testsuite/libgomp.fortran/workshare2.f90: New test.
8990 2009-04-09 Nick Clifton <nickc@redhat.com>
8992 * iter.c: Change copyright header to refer to version 3 of the
8993 GNU General Public License with version 3.1 of the GCC Runtime
8994 Library Exception and to point readers at the COPYING3 and
8995 COPYING3.RUNTIME files and the FSF's license web page.
8996 * alloc.c: Likewise.
8997 * barrier.c: Likewise.
8998 * config/bsd/proc.c: Likewise.
8999 * config/linux/affinity.c: Likewise.
9000 * config/linux/alpha/futex.h: Likewise.
9001 * config/linux/bar.c: Likewise.
9002 * config/linux/bar.h: Likewise.
9003 * config/linux/ia64/futex.h: Likewise.
9004 * config/linux/ia64/mutex.h: Likewise.
9005 * config/linux/lock.c: Likewise.
9006 * config/linux/mips/futex.h: Likewise.
9007 * config/linux/mutex.c: Likewise.
9008 * config/linux/mutex.h: Likewise.
9009 * config/linux/powerpc/futex.h: Likewise.
9010 * config/linux/proc.c: Likewise.
9011 * config/linux/ptrlock.c: Likewise.
9012 * config/linux/ptrlock.h: Likewise.
9013 * config/linux/s390/futex.h: Likewise.
9014 * config/linux/sem.c: Likewise.
9015 * config/linux/sem.h: Likewise.
9016 * config/linux/sparc/futex.h: Likewise.
9017 * config/linux/wait.h: Likewise.
9018 * config/linux/x86/futex.h: Likewise.
9019 * config/mingw32/proc.c: Likewise.
9020 * config/mingw32/time.c: Likewise.
9021 * config/posix/affinity.c: Likewise.
9022 * config/posix/bar.c: Likewise.
9023 * config/posix/bar.h: Likewise.
9024 * config/posix/lock.c: Likewise.
9025 * config/posix/mutex.h: Likewise.
9026 * config/posix/proc.c: Likewise.
9027 * config/posix/ptrlock.h: Likewise.
9028 * config/posix/sem.c: Likewise.
9029 * config/posix/sem.h: Likewise.
9030 * config/posix/time.c: Likewise.
9031 * config/posix95/lock.c: Likewise.
9032 * critical.c: Likewise.
9034 * error.c: Likewise.
9035 * fortran.c: Likewise.
9036 * iter_ull.c: Likewise.
9037 * libgomp.h: Likewise.
9038 * libgomp_f.h.in: Likewise.
9039 * libgomp_g.h: Likewise.
9041 * loop_ull.c: Likewise.
9042 * omp.h.in: Likewise.
9043 * omp_lib.f90.in: Likewise.
9044 * omp_lib.h.in: Likewise.
9045 * ordered.c: Likewise.
9046 * parallel.c: Likewise.
9047 * sections.c: Likewise.
9048 * single.c: Likewise.
9053 2009-04-09 Jakub Jelinek <jakub@redhat.com>
9055 * testsuite/config/default.exp: Change copyright header to refer to
9056 version 3 of the GNU General Public License and to point readers
9057 at the COPYING3 file and the FSF's license web page.
9059 2009-04-08 Jakub Jelinek <jakub@redhat.com>
9062 * libgomp.c++/pr39573.C: New test.
9064 2009-04-01 Jakub Jelinek <jakub@redhat.com>
9067 * testsuite/libgomp.c/pr39591-1.c: New test.
9068 * testsuite/libgomp.c/pr39591-2.c: New test.
9069 * testsuite/libgomp.c/pr39591-3.c: New test.
9071 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
9073 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
9074 * testsuite/libgomp.c/atomic-6.c: Ditto.
9076 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9079 * testsuite/libgomp.c/loop-12.c: New test.
9080 * testsuite/libgomp.c/loop-11.c: New test.
9081 * testsuite/libgomp.c++/loop-11.C: New test.
9082 * testsuite/libgomp.c++/loop-12.C: New test.
9083 * testsuite/libgomp.c++/for-8.C: New test.
9085 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9087 * configure: Regenerate.
9089 2009-02-11 Jakub Jelinek <jakub@redhat.com>
9092 * testsuite/libgomp.c/pr39154.c: New test.
9094 2009-01-30 Ian Lance Taylor <iant@google.com>
9096 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9097 libgomp_ld_is_gold. Get gold version number.
9098 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9099 * configure: Rebuild.
9101 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9103 * testsuite/lib/libgomp.exp: Add -B option for targets that
9104 use libgfortran.a%s in their specs.
9106 2009-01-07 Jakub Jelinek <jakub@redhat.com>
9109 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9110 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9111 HAVE_AS_SYMVER_DIRECTIVE is not defined.
9112 * configure: Regenerated.
9113 * config.h.in: Likewise.
9115 2008-12-28 Jakub Jelinek <jakub@redhat.com>
9118 * testsuite/libgomp.c/pr38650.c: New test.
9119 * testsuite/libgomp.c++/pr38650.C: New test.
9121 2008-12-27 Jakub Jelinek <jakub@redhat.com>
9123 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9125 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
9127 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9129 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9131 * configure: Regenerate.
9133 2008-12-08 Jakub Jelinek <jakub@redhat.com>
9136 * testsuite/libgomp.c/pr36802-1.c: New test.
9137 * testsuite/libgomp.c/pr36802-2.c: New test.
9138 * testsuite/libgomp.c/pr36802-3.c: New test.
9140 2008-12-01 Janis Johnson <janis187@us.ibm.com>
9143 * config/linux/powerpc/mutex.h: New.
9145 2008-12-01 Jakub Jelinek <jakub@redhat.com>
9148 * testsuite/libgomp.c++/for-7.C: New test.
9151 * testsuite/libgomp.c++/for-6.C: New test.
9153 2008-11-26 Janis Johnson <janis187@us.ibm.com>
9156 * testsuite/lib/libgomp.exp: Include new timeout library files.
9157 (libgomp_target_compile): Set timeout value from new proc.
9159 2008-11-13 Steve Ellcey <sje@cup.hp.com>
9162 * config/linux/ia64/mutex.h: New.
9164 2008-11-04 Tobias Burnus <burnus@net-b.de>
9167 * libgomp.texi (Runtime library routines, environment variables):
9168 Update for OpenMP version 3.0.
9170 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
9171 Steve Ellcey <sje@cup.hp.com>
9173 * configure: Regenerate for new libtool.
9174 * Makefile.in: Ditto.
9175 * testsuite/Makefile.in: Ditto.
9177 2008-09-19 Jakub Jelinek <jakub@redhat.com>
9178 Andreas Tobler <a.tobler@schweiz.org>
9180 * config/bsd/proc.c: New file.
9181 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
9182 * configure.ac: Check for header <sys/sysctl.h>
9183 * configure: Regenerate.
9184 * config.h.in: Likewise.
9186 2008-09-05 Janis Johnson <janis187@us.ibm.com>
9188 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9190 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9192 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9193 * Makefile.in: Regenerated.
9194 * testsuite/Makefile.in: Regenerated.
9196 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
9198 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
9199 depend on blddir if blddir exists.
9200 (libgomp_target_compile): Likewise.
9201 * testsuite/libgomp.c++/c++.exp: Likewise.
9202 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9204 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9206 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
9207 Do not list GPL as Invariant Section.
9209 2008-07-28 Ilie Garbacea <ilie@mips.com>
9210 Chao-ying Fu <fu@mips.com>
9212 * configure.tgt: Enable futex for MIPS.
9213 * config/linux/mips/futex.h: New file.
9215 2008-07-16 Jakub Jelinek <jakub@redhat.com>
9217 * team.c (gomp_team_end): Free team immediately if it has
9220 2008-07-08 David Edelsohn <edelsohn@gnu.org>
9222 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9223 * testsuite/libgomp.fortran/fortran.exp: Same.
9224 * testsuite/libgomp.c/c.exp: Same.
9225 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9226 directory to library path first.
9228 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
9230 * env.c (parse_stacksize): Add cast to avoid warning.
9231 (parse_spincount): Likewise.
9233 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9235 * testsuite/libgomp.c/loop-10.c: New test.
9236 * libgomp.c/loop-3.c (main): Add lastprivate clause.
9237 * libgomp.c++/loop-6.C (main): Likewise.
9240 * testsuite/libgomp.c/debug-1.c: New test.
9242 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9244 * testsuite/libgomp.c/nqueens-1.c: New test.
9247 * testsuite/libgomp.c++/task-7.C: New function.
9249 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9251 * configure: Regenerate.
9253 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9255 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9256 mutex when HAVE_SYNC_BUILTINS isn't defined.
9258 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9260 * libgomp.texi (omp_test_lock): Fix typo.
9262 2008-06-12 Tobias Burnus <burnus@net-b.de>
9264 * omp_lib.f90.in: Add "implicit none".
9266 2008-06-12 Jakub Jelinek <jakub@redhat.com>
9269 * testsuite/libgomp.c/reduction-5.c: New test.
9271 2008-06-11 Jakub Jelinek <jakub@redhat.com>
9273 * libgomp.h (struct gomp_task): Add in_tied_task field.
9274 * task.c (gomp_init_task): Initialize it.
9275 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
9276 unconditionally. Don't call gomp_team_barrier_wake if
9277 current task is implicit or if(0) from implicit and number of
9278 running tasks is equal to nthreads - 1.
9281 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
9282 omp_get_team_size_8): Fix pastos.
9285 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
9286 * configure: Regenerated.
9287 * config.h.in: Regenerated.
9288 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
9291 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
9294 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
9295 (GOMP_loop_ull_dynamic_start): Likewise.
9296 (GOMP_loop_ull_guided_start): Likewise.
9297 (GOMP_loop_ull_ordered_static_start): Likewise.
9298 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
9299 (GOMP_loop_ull_ordered_guided_start): Likewise.
9301 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9302 Richard Henderson <rth@redhat.com>
9303 Ulrich Drepper <drepper@redhat.com>
9304 Jakob Blomer <jakob.blomer@ira.uka.de>
9306 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
9307 Substitute also OMP_*LOCK_25*.
9308 * configure: Regenerated.
9309 * config.h.in: Regenerated.
9310 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
9311 ptrlock.c and task.c.
9312 * Makefile.in: Regenerated.
9313 * testsuite/Makefile.in: Regenerated.
9315 * loop_ull.c: New file.
9316 * iter_ull.c: New file.
9317 * libgomp.h: Include ptrlock.h.
9318 (enum gomp_task_kind): New type.
9319 (struct gomp_team): Add task_lock, task_queue, task_count,
9320 task_running_count, single_count fields. Add
9321 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
9322 Remove work_share_lock, generation_mask,
9323 oldest_live_gen, num_live_gen and init_work_shares fields, add
9324 work work_share_list_alloc, work_share_list_free and work_share_chunk
9325 fields. Change work_shares from pointer to pointers into an array.
9326 Change ordered_release field into gomp_sem_t ** from flexible array
9327 member. Add implicit_task and initial_work_shares fields.
9328 Move close to the end of the struct.
9329 (struct gomp_team_state): Add single_count, last_work_share,
9330 active_level and level fields, remove work_share_generation.
9331 (gomp_barrier_handle_tasks): New prototype.
9332 (gomp_finish_task): New inline function.
9333 (struct gomp_work_share): Move chunk_size, end, incr into
9334 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
9335 next_ll fields. Reshuffle fields. Add next_alloc,
9336 next_ws, next_free and inline_ordered_team_ids fields, change
9337 ordered_team_ids into pointer from flexible array member.
9338 Add mode field. Put lock and next into a different cache line
9339 from most of the write-once fields.
9340 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
9341 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
9342 gomp_iter_ull_guided_next): New prototypes.
9343 (gomp_new_icv): New prototype.
9344 (struct gomp_thread): Add thread_pool and task fields.
9345 (struct gomp_thread_pool): New type.
9346 (gomp_new_team): New prototype.
9347 (gomp_team_start): Change type of last argument.
9348 (gomp_new_work_share): Removed.
9349 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
9350 (gomp_work_share_init_done): New static inline.
9351 (gomp_throttled_spin_count_var, gomp_available_cpus,
9352 gomp_managed_threads): New extern decls.
9353 (gomp_init_task): New prototype.
9354 (gomp_spin_count_var): New extern var decl.
9355 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
9356 or no alias support, or if not PIC.
9357 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
9358 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
9359 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
9360 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
9361 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
9362 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
9363 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
9364 gomp_test_nest_lock_25): New prototypes.
9365 (omp_lock_symver, strong_alias): Define.
9366 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
9368 (gomp_end_task): New.
9369 (struct gomp_task_icv, gomp_global_icv): New.
9370 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
9371 (struct gomp_task): New.
9372 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9373 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9375 (gomp_schedule_type): Reorder enum to match
9377 * team.c (struct gomp_thread_start_data): Add thread_pool and task
9379 (gomp_thread_start): Add gomp_team_barrier_wait call.
9380 For non-nested case remove clearing of docked thread thr fields.
9381 Use pool fields instead of global gomp_* variables. Use
9382 gomp_barrier_wait_last when needed. Initialize ts.active_level.
9383 Create tasks for each member thread.
9384 (free_team): Only destroy team barrier, task_lock here and free it.
9385 (gomp_free_thread): Free last_team if non-NULL.
9386 (gomp_team_end): Call gomp_team_barrier_wait instead of
9387 gomp_barrier_wait. For nested case call one extra
9388 gomp_barrier_wait. Move here some destruction from free_team.
9389 Call free_team on pool->last_team if any, rather than freeing
9390 current team. Destroy work_share_list_free_lock ifndef
9392 (gomp_new_icv): New function.
9393 (gomp_threads, gomp_threads_size, gomp_threads_used,
9394 gomp_threads_dock): Removed.
9395 (gomp_thread_destructor): New variable.
9396 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9398 (gomp_team_start): Create new pool if current thread doesn't have
9399 one. Use pool fields instead of global gomp_* variables.
9400 Initialize thread_pool field for new threads. Clear single_count.
9401 Change last argument from ws to team, don't create
9402 new team, set ts.work_share to &team->work_shares[0] and clear
9403 ts.last_work_share. Don't clear ts.work_share_generation.
9404 If number of threads changed, adjust atomically gomp_managed_threads.
9405 Use gomp_init_task instead of gomp_new_task,
9406 set thr->task to the corresponding implicit_task array entry.
9407 Create tasks for each member thread. Initialize ts.level.
9408 (initialize_team): Call pthread_key_create on
9409 gomp_thread_destructor.
9410 (team_destructor): New function.
9411 (new_team): Removed.
9412 (gomp_new_team): New function.
9413 (free_team): Free gomp_work_share blocks chained through next_alloc,
9414 instead of freeing work_shares and destroying work_share_lock.
9415 (gomp_team_end): Call gomp_fini_work_share. If number of threads
9416 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
9417 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9418 of gomp_barrier_wait.
9419 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9420 instead of gomp_barrier_wait. Call gomp_work_share_init_done
9421 if gomp_work_share_start returned true. Don't unlock ws->lock.
9422 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9423 of gomp_barrier_wait.
9424 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
9425 gomp_work_share_init_done if gomp_work_share_start returned true.
9426 Don't unlock ws->lock.
9427 * work.c: Include stddef.h.
9428 (free_work_share): Use work_share_list_free_lock instead
9429 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
9430 Call gomp_fini_work_share and then either free ws if orphaned, or
9431 put it into work_share_list_free list of the current team.
9432 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9434 (gomp_work_share_start, gomp_work_share_end,
9435 gomp_work_share_end_nowait): Rewritten.
9436 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9437 (openmp_version): Set to 200805.
9438 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9439 omp_sched_guided, omp_sched_auto): New parameters.
9440 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9441 omp_set_max_active_levels, omp_get_max_active_levels,
9442 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9443 omp_get_active_level): New interfaces.
9444 * omp_lib.h.in (openmp_version): Set to 200805.
9445 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9446 omp_sched_guided, omp_sched_auto): New parameters.
9447 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9448 omp_set_max_active_levels, omp_get_max_active_levels,
9449 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9450 omp_get_active_level): New externals.
9451 * loop.c: Include limits.h.
9452 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9454 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9455 Likewise. Use gomp_icv.
9456 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9457 ts.static_trip here.
9458 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9459 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
9460 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9461 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
9462 don't unlock ws->lock, otherwise lock it.
9463 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9464 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
9465 (gomp_parallel_loop_start): Call gomp_new_team instead of
9466 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
9467 Adjust gomp_team_start caller. Pass 0 as second argument to
9468 gomp_resolve_num_threads.
9469 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9470 If adding ws->chunk_size nthreads + 1 times after end won't
9471 overflow, set ws->mode to 1.
9472 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9473 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9474 GOMP_loop_ull_ordered_static_start,
9475 GOMP_loop_ull_ordered_dynamic_start,
9476 GOMP_loop_ull_ordered_guided_start,
9477 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9478 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9479 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9480 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9481 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9483 * libgomp.map: Export lock routines also @@OMP_2.0.
9484 (GOMP_loop_ordered_dynamic_first,
9485 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9486 GOMP_loop_ordered_static_first): Remove.
9487 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9488 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9489 GOMP_loop_ull_ordered_dynamic_next,
9490 GOMP_loop_ull_ordered_dynamic_start,
9491 GOMP_loop_ull_ordered_guided_next,
9492 GOMP_loop_ull_ordered_guided_start,
9493 GOMP_loop_ull_ordered_runtime_next,
9494 GOMP_loop_ull_ordered_runtime_start,
9495 GOMP_loop_ull_ordered_static_next,
9496 GOMP_loop_ull_ordered_static_start,
9497 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9498 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9499 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9500 (omp_set_schedule, omp_get_schedule,
9501 omp_get_thread_limit, omp_set_max_active_levels,
9502 omp_get_max_active_levels, omp_get_level,
9503 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9504 omp_set_schedule_, omp_set_schedule_8_,
9505 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9506 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9507 omp_get_max_active_levels_, omp_get_level_,
9508 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9509 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9510 New exports @@OMP_3.0.
9511 * omp.h.in (omp_sched_t): New type.
9512 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9513 omp_set_max_active_levels, omp_get_max_active_levels,
9514 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9515 omp_get_active_level): New prototypes.
9516 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9517 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9518 gomp_thread_limit_var, gomp_remaining_threads_count,
9519 gomp_remaining_threads_lock): New variables.
9520 (parse_spincount): New function.
9521 (initialize_env): Call gomp_init_num_threads unconditionally.
9522 Initialize gomp_available_cpus. Call parse_spincount,
9523 initialize gomp_{,throttled_}spin_count_var
9524 depending on presence and value of OMP_WAIT_POLICY and
9525 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
9526 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9527 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
9528 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
9529 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
9530 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9531 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9532 (gomp_global_icv): New.
9533 (parse_schedule): Use it. Parse "auto".
9534 (omp_set_num_threads): Use gomp_icv.
9535 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9537 (omp_get_max_threads): Move from parallel.c.
9538 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9539 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9541 (parse_stacksize, parse_wait_policy): New functions.
9542 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9543 both wrappers for compatibility and new locks.
9544 (omp_set_schedule, omp_get_schedule,
9545 omp_get_thread_limit, omp_set_max_active_levels,
9546 omp_get_max_active_levels, omp_get_level,
9547 omp_get_ancestor_thread_num, omp_get_team_size,
9548 omp_get_active_level): New ialias_redirect.
9549 (omp_set_schedule_, omp_set_schedule_8_,
9550 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9551 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9552 omp_get_max_active_levels_, omp_get_level_,
9553 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9554 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9556 * parallel.c: Include limits.h.
9557 (gomp_resolve_num_threads): Add count argument. Rewritten.
9558 (GOMP_parallel_start): Call gomp_new_team and pass that as last
9559 argument to gomp_team_start. Pass 0 as second argument to
9560 gomp_resolve_num_threads.
9561 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9562 if gomp_thread_limit_var != ULONG_MAX.
9563 (omp_in_parallel): Implement using ts.active_level.
9564 (omp_get_max_threads): Move to env.c.
9565 (omp_get_level, omp_get_ancestor_thread_num,
9566 omp_get_team_size, omp_get_active_level): New functions,
9568 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9569 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
9570 gomp_iter_dynamic_next instead of the _locked variant and don't take
9571 lock around it, otherwise acquire it before calling
9572 gomp_iter_dynamic_next_locked.
9573 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9574 gomp_iter_dynamic_next instead of the _locked variant and don't take
9576 (GOMP_parallel_sections_start): Call gomp_new_team instead of
9577 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
9578 Adjust gomp_team_start caller. Pass count as second argument to
9579 gomp_resolve_num_threads, don't adjust num_threads after the call.
9581 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9582 ws->chunk_size by incr.
9583 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
9585 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9587 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9588 (omp_check_defines): Check even the compat defines.
9589 * config/linux/ptrlock.c: New file.
9590 * config/linux/ptrlock.h: New file.
9591 * config/linux/wait.h: New file.
9592 * config/posix/ptrlock.c: New file.
9593 * config/posix/ptrlock.h: New file.
9594 * config/linux/bar.h (gomp_team_barrier_wait,
9595 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9596 (gomp_team_barrier_set_task_pending,
9597 gomp_team_barrier_clear_task_pending,
9598 gomp_team_barrier_set_waiting_for_tasks,
9599 gomp_team_barrier_waiting_for_tasks,
9600 gomp_team_barrier_done): New inlines.
9601 (gomp_barrier_t): Rewritten.
9602 (gomp_barrier_state_t): New typedef.
9603 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9604 gomp_barrier_wait_start): Rewritten.
9605 (gomp_barrier_wait_end): Change second argument to
9606 gomp_barrier_state_t.
9607 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9609 * config/linux/bar.c: Include wait.h instead of libgomp.h and
9611 (gomp_barrier_wait_end): Rewritten.
9612 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9613 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9614 * config/posix/bar.h (gomp_barrier_t): Add generation field.
9615 (gomp_barrier_state_t): New typedef.
9616 (gomp_team_barrier_wait,
9617 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9618 (gomp_barrier_wait_start): Or all but low 2 bits from generation
9619 into the return value. Return gomp_barrier_state_t.
9620 (gomp_team_barrier_set_task_pending,
9621 gomp_team_barrier_clear_task_pending,
9622 gomp_team_barrier_set_waiting_for_tasks,
9623 gomp_team_barrier_waiting_for_tasks,
9624 gomp_team_barrier_done): New inlines.
9625 (gomp_barrier_wait_end): Change second argument to
9626 gomp_barrier_state_t.
9627 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9629 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9630 (gomp_barrier_wait_end): Change second argument to
9631 gomp_barrier_state_t.
9632 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9633 gomp_team_barrier_wake): New functions.
9634 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9636 (gomp_futex_wake, gomp_futex_wait): New variables.
9637 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9638 * config/linux/lock.c: Rewrite to make locks task owned,
9639 for backwards compatibility provide the old entrypoints
9640 if symbol versioning. Include wait.h instead of libgomp.h and
9642 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9643 * config/posix95/lock.c: Rewrite to make locks task owned,
9644 for backwards compatibility provide the old entrypoints
9645 if symbol versioning.
9646 * config/posix/lock.c: Rewrite to make locks task owned,
9647 for backwards compatibility provide the old entrypoints
9648 if symbol versioning.
9649 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9650 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9651 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9652 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9653 (sys_futex0): Return error code.
9654 (futex_wake, futex_wait): If ENOSYS was returned, clear
9655 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9656 (cpu_relax, atomic_write_barrier): New static inlines.
9657 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9658 (futex_wake, futex_wait): If ENOSYS was returned, clear
9659 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9660 (cpu_relax, atomic_write_barrier): New static inlines.
9661 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9662 (sys_futex0): Return error code.
9663 (futex_wake, futex_wait): If ENOSYS was returned, clear
9664 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9665 (cpu_relax, atomic_write_barrier): New static inlines.
9666 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9667 (sys_futex0): Return error code.
9668 (futex_wake, futex_wait): If ENOSYS was returned, clear
9669 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9670 (cpu_relax, atomic_write_barrier): New static inlines.
9671 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9672 (sys_futex0): Return error code.
9673 (futex_wake, futex_wait): If ENOSYS was returned, clear
9674 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9675 (cpu_relax, atomic_write_barrier): New static inlines.
9676 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9677 (sys_futex0): Return error code.
9678 (futex_wake, futex_wait): If ENOSYS was returned, clear
9679 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9680 (cpu_relax, atomic_write_barrier): New static inlines.
9681 * config/linux/sem.c: Include wait.h instead of libgomp.h and
9683 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9684 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9685 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9687 (omp_nest_lock_t): Change owner into void *, add lock field.
9688 * config/posix95/omp-lock.h: Include semaphore.h.
9689 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9690 (omp_lock_t): Use sem_t instead of mutex if semaphores
9692 (omp_nest_lock_t): Likewise. Change owner to void *.
9693 * config/posix/omp-lock.h: Include semaphore.h.
9694 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9695 (omp_lock_t): Use sem_t instead of mutex if semaphores
9697 (omp_nest_lock_t): Likewise. Add owner field.
9699 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9701 * testsuite/libgomp.c/collapse-1.c: New test.
9702 * testsuite/libgomp.c/collapse-2.c: New test.
9703 * testsuite/libgomp.c/collapse-3.c: New test.
9704 * testsuite/libgomp.c/icv-1.c: New test.
9705 * testsuite/libgomp.c/icv-2.c: New test.
9706 * testsuite/libgomp.c/lib-2.c: New test.
9707 * testsuite/libgomp.c/lock-1.c: New test.
9708 * testsuite/libgomp.c/lock-2.c: New test.
9709 * testsuite/libgomp.c/lock-3.c: New test.
9710 * testsuite/libgomp.c/loop-4.c: New test.
9711 * testsuite/libgomp.c/loop-5.c: New test.
9712 * testsuite/libgomp.c/loop-6.c: New test.
9713 * testsuite/libgomp.c/loop-7.c: New test.
9714 * testsuite/libgomp.c/loop-8.c: New test.
9715 * testsuite/libgomp.c/loop-9.c: New test.
9716 * testsuite/libgomp.c/nested-3.c: New test.
9717 * testsuite/libgomp.c/nestedfn-6.c: New test.
9718 * testsuite/libgomp.c/sort-1.c: New test.
9719 * testsuite/libgomp.c/task-1.c: New test.
9720 * testsuite/libgomp.c/task-2.c: New test.
9721 * testsuite/libgomp.c/task-3.c: New test.
9722 * testsuite/libgomp.c/task-4.c: New test.
9723 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9724 to C++ testsuite default compiler options.
9725 * testsuite/libgomp.c++/collapse-1.C: New test.
9726 * testsuite/libgomp.c++/collapse-2.C: New test.
9727 * testsuite/libgomp.c++/ctor-10.C: New test.
9728 * testsuite/libgomp.c++/for-1.C: New test.
9729 * testsuite/libgomp.c++/for-2.C: New test.
9730 * testsuite/libgomp.c++/for-3.C: New test.
9731 * testsuite/libgomp.c++/for-4.C: New test.
9732 * testsuite/libgomp.c++/for-5.C: New test.
9733 * testsuite/libgomp.c++/loop-8.C: New test.
9734 * testsuite/libgomp.c++/loop-9.C: New test.
9735 * testsuite/libgomp.c++/loop-10.C: New test.
9736 * testsuite/libgomp.c++/task-1.C: New test.
9737 * testsuite/libgomp.c++/task-2.C: New test.
9738 * testsuite/libgomp.c++/task-3.C: New test.
9739 * testsuite/libgomp.c++/task-4.C: New test.
9740 * testsuite/libgomp.c++/task-5.C: New test.
9741 * testsuite/libgomp.c++/task-6.C: New test.
9742 * testsuite/libgomp.fortran/allocatable1.f90: New test.
9743 * testsuite/libgomp.fortran/allocatable2.f90: New test.
9744 * testsuite/libgomp.fortran/allocatable3.f90: New test.
9745 * testsuite/libgomp.fortran/allocatable4.f90: New test.
9746 * testsuite/libgomp.fortran/collapse1.f90: New test.
9747 * testsuite/libgomp.fortran/collapse2.f90: New test.
9748 * testsuite/libgomp.fortran/collapse3.f90: New test.
9749 * testsuite/libgomp.fortran/collapse4.f90: New test.
9750 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9751 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9752 * testsuite/libgomp.fortran/lib4.f90: New test.
9753 * testsuite/libgomp.fortran/lock-1.f90: New test.
9754 * testsuite/libgomp.fortran/lock-2.f90: New test.
9755 * testsuite/libgomp.fortran/nested1.f90: New test.
9756 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9757 * testsuite/libgomp.fortran/strassen.f90: New test.
9758 * testsuite/libgomp.fortran/tabs1.f90: New test.
9759 * testsuite/libgomp.fortran/tabs2.f: New test.
9760 * testsuite/libgomp.fortran/task1.f90: New test.
9761 * testsuite/libgomp.fortran/task2.f90: New test.
9762 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9763 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9764 * testsuite/libgomp.c/pr26943-2.c: Likewise.
9765 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9766 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9768 2008-05-23 Jakub Jelinek <jakub@redhat.com>
9771 * testsuite/libgomp.c++/ctor-11.C: New test.
9772 * testsuite/libgomp.c++/ctor-12.C: New test.
9774 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9776 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9778 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9781 * testsuite/libgomp.c/atomic-5.c: New test.
9782 * testsuite/libgomp.c/atomic-6.c: New test.
9783 * testsuite/libgomp.c/autopar-1.c: New test.
9785 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9787 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9788 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9789 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9790 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9791 * configure: Regenerate.
9792 * Makefile.in, testsuite/Makefile.in: Likewise.
9794 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9797 * aclocal.m4: Regenerate.
9798 * configure: Regenerate.
9800 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9803 * testsuite/libgomp.c/atomic-4.c: New test.
9806 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9807 (gomp_iter_guided_next): Likewise.
9808 * testsuite/libgomp.c/pr35625.c: New test.
9810 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9812 * aclocal.m4: Regenerate.
9813 * configure: Likewise.
9814 * Makefile.in: Likewise.
9815 * testsuite/Makefile.in: Likewise.
9817 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9820 * testsuite/libgomp.c++/pr35185.C: New test.
9822 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9825 * testsuite/libgomp.c/pr35549.c: New test.
9827 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9829 * testsuite/libgomp.c/atomic-3.c: New test.
9831 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9834 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9837 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9840 * configure.ac: Add ACX_HEADER_STRING.
9841 * env.c: Include strings.h.
9842 * aclocal.m4: Regenerate.
9843 * config.h.in: Regenerate.
9844 * configure: Regenerate.
9845 * Makefile.in: Regenerate.
9846 * testsuite/Makefile.in: Regenerate.
9848 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9851 * testsuite/libgomp.c/pr35196.c: New test.
9854 * testsuite/libgomp.fortran/pr35130.f90: New test.
9855 * testsuite/libgomp.c/pr35130.c: New test.
9857 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9860 * testsuite/libgomp.c/pr33880.c: New test.
9861 * testsuite/libgomp.fortran/pr33880.f90: New test.
9863 2008-01-24 David Edelsohn <edelsohn@gnu.org>
9865 * configure: Regenerate.
9867 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9869 * configure.ac: Move futex checking into ../config/futex.m4.
9870 * configure: Rebuilt.
9871 * aclocal.m4: Rebuilt.
9872 * Makefile.in: Rebuilt.
9874 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9875 2007-10-15 ../config/tls.m4 change.
9877 2007-12-19 Jakub Jelinek <jakub@redhat.com>
9880 * testsuite/libgomp.c/pr34513.c: New test.
9881 * testsuite/libgomp.c++/pr34513.C: New test.
9883 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
9886 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
9888 2007-12-04 Jakub Jelinek <jakub@redhat.com>
9890 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
9892 2007-12-03 Jakub Jelinek <jakub@redhat.com>
9894 * testsuite/libgomp.c/private-1.c: New test.
9896 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
9897 Paolo Bonzini <bonzini@gnu.org>
9899 * Makefile.am: Use space as vpath separator. Use 'vpath %'
9900 instead of 'VPATH ='.
9901 * Makefile.in: Regenerate.
9903 2007-11-23 Matthias Klose <doko@ubuntu.com>
9905 * configure.ac: Adjust makeinfo version check.
9906 * configure: Regenerate.
9908 2007-11-10 Jakub Jelinek <jakub@redhat.com>
9911 * testsuite/libgomp.fortran/pr34020.f90: New test.
9913 2007-11-06 Jakub Jelinek <jakub@redhat.com>
9916 * testsuite/libgomp.c++/atomic-1.C: New test.
9918 2007-10-25 Jakub Jelinek <jakub@redhat.com>
9921 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
9922 Make x and y integers rather than (implicit) reals. Add private (j)
9923 clause to the last omp parallel.
9925 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
9927 * configure: Regenerate following changes to ../config/tls.m4.
9929 2007-09-28 Jakub Jelinek <jakub@redhat.com>
9931 * testsuite/libgomp.fortran/stack.f90: New test.
9933 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
9935 * config/mingw32/proc.c: New file.
9937 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
9939 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
9940 (main): Use __get_cpuid to get i386 target fetaures.
9941 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
9942 (main): Use __get_cpuid to get x86_64 target fetaures.
9944 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
9947 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
9948 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
9950 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9953 * testsuite/libgomp.fortran/pr32550.f90: New test.
9954 * testsuite/libgomp.fortran/crayptr2.f90: New test.
9956 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
9958 * aclocal.m4: Regenerated.
9960 2007-07-05 Tobias Burnus <burnus@net-b.de>
9963 * testsuite/libgomp.fortran/pr32359.f90: New.
9965 2007-07-02 Jakub Jelinek <jakub@redhat.com>
9968 * sections.c (GOMP_parallel_sections_start): Only decrease
9969 number of threads to COUNT if dyn_var is true.
9970 * testsuite/libgomp.c/pr32468.c: New test.
9972 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9975 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
9977 2007-06-21 Jakub Jelinek <jakub@redhat.com>
9980 * testsuite/libgomp.c/pr32362-1.c: New test.
9981 * testsuite/libgomp.c/pr32362-2.c: New test.
9982 * testsuite/libgomp.c/pr32362-3.c: New test.
9984 2007-06-07 Jakub Jelinek <jakub@redhat.com>
9986 * team.c (gomp_team_start): Fix setting up thread_attr
9989 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
9991 * configure: Regenerate.
9993 2007-05-23 Steve Ellcey <sje@cup.hp.com>
9995 * Makefile.in: Regenerate.
9996 * configure: Regenerate.
9997 * aclocal.m4: Regenerate.
9998 * testsuite/Makefile.in: Regenerate.
10000 2007-05-04 Jakub Jelinek <jakub@redhat.com>
10002 * config/linux/proc.c: New file.
10005 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
10007 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
10009 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
10011 2007-04-16 Matthias Klose <doko@debian.org>
10013 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
10014 flags if not building with -m64.
10015 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
10016 flag for i?86-*-* targets, if current target matches -m64.
10018 2007-04-14 Steve Ellcey <sje@cup.hp.com>
10020 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
10021 * Makefile.in: Regenerate.
10023 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10026 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
10028 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10030 2007-04-04 Jakub Jelinek <jakub@redhat.com>
10032 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
10034 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
10035 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
10036 (parse_affinity): New function.
10037 (initialize_env): Call it and gomp_init_affinity.
10038 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
10039 create new pthread_attr_t and call gomp_init_thread_affinity
10040 on it for each thread before passing the attribute to pthread_create.
10041 * config/linux/affinity.c: New file.
10042 * config/posix/affinity.c: New file.
10043 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
10044 * configure: Rebuilt.
10045 * config.h.in: Rebuilt.
10046 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
10047 * Makefile.in: Rebuilt.
10049 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
10051 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
10053 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
10054 and use it if found.
10056 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
10058 * testsuite/config/default.exp: New file.
10059 * testsuite/lib/libgomp.exp: New file.
10060 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
10061 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
10062 load_lib *, load_gcc_lib *): Move to libgomp.exp.
10063 (libgomp_load): Remove.
10064 * testsuite/lib/libgomp.exp (libgomp_init): Compute
10065 always_ld_library_path, not ld_library_path. Set additional_flags
10066 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
10067 (target_compile): Do not call libgomp_init. Append lang_library_path
10068 and lang_link_flags to options.
10069 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
10070 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
10072 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
10073 always_ld_library_path. Set LD_LIBRARY_PATH here.
10074 * testsuite/libgomp.fortran/fortran.exp: Ditto.
10075 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
10076 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
10078 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
10079 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
10080 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
10081 * testsuite/libgomp.c/pr29947-1.c: Ditto.
10082 * testsuite/libgomp.c/atomic-10.c: Ditto.
10084 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10086 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10087 dg-final cleanup-modules line.
10088 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10089 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10090 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10091 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10092 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10093 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10094 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10096 2007-03-18 Andreas Schwab <schwab@suse.de>
10098 * acinclude.m4: Adjust regular expression for ld version
10100 * configure: Regenerate.
10102 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10104 * Makefile.am: Add install-pdf target as copied from
10105 automake v1.10 rules.
10106 * Makefile.in: Regenerate
10108 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10111 * configure: Regenerate.
10114 * testsuite/libgomp.c++/pr30703.C: New test.
10116 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10119 2006-07-05 Eric Christopher <echristo@apple.com>
10120 * configure.ac: Depend addition of -pthread on host OS.
10121 * configure: Regenerate.
10123 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10125 * libgomp.texi: Fix spacing after abbreviations.
10127 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
10130 * configure.ac: Add check for makeinfo
10131 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10132 if an appropiate version of makeinfo is found.
10133 * aclocal.m4: Regenerated.
10134 * configure: Regenerated.
10135 * Makefile.in: Regenerated.
10136 * testsuite/Makefile.in: Regenerated.
10138 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
10141 * libgomp.texi: More about implementation-dependent settings.
10143 2007-01-26 Tobias Burnus <burnus@net-b.de>
10145 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10147 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10149 PR middle-end/30494
10150 * testsuite/libgomp.c/pr30494.c: New test.
10152 2007-01-15 Tom Tromey <tromey@redhat.com>
10154 * configure: Rebuilt.
10155 * configure.ac: Fixed comment.
10157 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
10159 * libgomp.texi: Document implementation specific default values of
10160 environment variables.
10162 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
10165 * libgomp.texi: New file.
10166 * configure.ac: Add --enable-generated-files-in-srcdir option.
10167 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10169 * Makefile.in: Regenerated.
10170 * config.h.in: Regenerated.
10171 * testsuite/Makefile.in: Regenerated.
10174 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
10177 * env.c (omp_set_num_threads): Set illegal thread count to 1.
10179 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10181 * configure: Regenerate.
10183 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10186 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
10187 start if there shouldn't be any loop iterations.
10188 (gomp_loop_ordered_static_start): Remove start == end test.
10189 * testsuite/libgomp.c/pr29947-1.c: New test.
10190 * testsuite/libgomp.c/pr29947-2.c: New test.
10192 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10194 * configure.tgt: Force initial-exec TLS model on Linux only.
10196 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
10198 * configure: Regenerated.
10200 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
10202 * env.c (parse_schedule): Reject out of range values.
10203 (parse_unsigned_long): Reject out of range, negative or zero values.
10205 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10208 * testsuite/libgomp.fortran/pr29629.f90: New test.
10210 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10213 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10214 * config/posix95: New directory.
10215 * config/posix95/omp-lock.h: New file.
10216 * config/posix95/lock.c: Likewise.
10218 2006-10-14 Geoffrey Keating <geoffk@apple.com>
10220 * aclocal.m4: Regenerate.
10221 * configure: Regenerate.
10223 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10225 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10228 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10230 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10232 * configure: Regenerate.
10233 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10235 2006-09-26 Jakub Jelinek <jakub@redhat.com>
10237 PR middle-end/25261
10238 PR middle-end/28790
10239 * testsuite/libgomp.c/nestedfn-4.c: New test.
10240 * testsuite/libgomp.c/nestedfn-5.c: New test.
10241 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10244 * testsuite/libgomp.fortran/condinc1.f: New test.
10245 * testsuite/libgomp.fortran/condinc2.f: New test.
10246 * testsuite/libgomp.fortran/condinc3.f90: New test.
10247 * testsuite/libgomp.fortran/condinc4.f90: New test.
10248 * testsuite/libgomp.fortran/condinc1.inc: New file.
10250 2006-09-18 Tom Tromey <tromey@redhat.com>
10252 * configure: Rebuilt.
10254 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
10257 PR preprocessor/14634
10258 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10260 * configure: Regenerate.
10262 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
10264 * testsuite/libgomp.fortran/reduction3.f90: Change
10265 -2147483648 to -huge(i)-1 to avoid overflow.
10266 * testsuite/libgomp.fortran/reduction4.f90: Change
10267 Z'ffffffff' to not(0) to avoid overflow.
10269 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
10272 * Makefile.am (libsubincludedir): New.
10273 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
10274 * Makefile.in: Regenerate.
10276 2006-08-17 Jakub Jelinek <jakub@redhat.com>
10279 * env.c: Include ctype.h.
10280 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
10281 leading and/or trailing whitespace and compare strings case
10284 2006-07-16 Jakub Jelinek <jakub@redhat.com>
10287 * testsuite/libgomp.fortran/pr28390.f: New test.
10289 2006-07-05 Eric Christopher <echristo@apple.com>
10291 * configure.ac: Depend addition of -pthread on host OS.
10292 * configure: Regenerate.
10294 2006-06-21 Jakub Jelinek <jakub@redhat.com>
10296 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
10297 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
10300 2006-06-20 Jakub Jelinek <jakub@redhat.com>
10304 * configure.ac: If neither --enable-linux-futex nor
10305 --disable-linux-futex is passed, determine the default by checking
10306 for compiling and/or running against NPTL. With --enable-linux-futex,
10307 check if SYS_gettid and SYS_futex are defined.
10308 * configure: Rebuilt.
10310 2006-06-14 Richard Henderson <rth@redhat.com>
10313 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
10314 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
10316 2006-06-09 Richard Henderson <rth@redhat.com>
10318 * env.c (gomp_nthreads_var): Change to unsigned long.
10319 (gomp_run_sched_chunk): Likewise.
10320 (parse_unsigned_long): Rename from parse_num_threads and generalize.
10321 (initialize_env): Initialize gomp_thread_attr.
10322 * libgomp.h (gomp_nthreads_var): Update decl.
10323 (gomp_run_sched_chunk): Likewise.
10324 (gomp_thread_attr): Declare.
10325 * team.c (gomp_thread_attr): Export.
10326 (initialize_team): Don't initialize it.
10328 2006-06-09 Jakub Jelinek <jakub@redhat.com>
10331 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
10332 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
10334 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10336 * config/mingw32/time.c: New file.
10337 * configure.tgt: Use it.
10339 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
10341 * Makefile.am: Add install-html target. Add install-html to .PHONY
10342 * Makefile.in: Regenerate.
10344 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10347 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
10348 * testsuite/libgomp.c/critical-1.c: Likewise.
10349 * testsuite/libgomp.c/loop-1.c: Likewise.
10350 * testsuite/libgomp.c/loop-2.c: Likewise.
10351 * testsuite/libgomp.c/single-1.c: Likewise.
10352 * testsuite/libgomp.c/ordered-1.c: Likewise.
10353 * testsuite/libgomp.c/ordered-2.c: Likewise.
10355 2006-05-15 Jakub Jelinek <jakub@redhat.com>
10357 PR middle-end/27416
10358 * libgomp.fortran/pr27416-1.f90: New test.
10360 2006-05-03 Jakub Jelinek <jakub@redhat.com>
10363 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
10364 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
10366 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10369 * testsuite/libgomp.c/pr26943-1.c: New test.
10370 * testsuite/libgomp.c/pr26943-2.c: New test.
10371 * testsuite/libgomp.c/pr26943-3.c: New test.
10372 * testsuite/libgomp.c/pr26943-4.c: New test.
10373 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
10374 * testsuite/libgomp.c++/pr26943.C: New test.
10376 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10378 PR middle-end/27337
10379 * testsuite/libgomp.c++/pr27337.C: New test.
10381 2006-04-26 Jakub Jelinek <jakub@redhat.com>
10384 * testsuite/libgomp.c/pr26171.c: New test.
10386 2006-04-25 Richard Henderson <rth@redhat.com>
10389 * configure.ac: Use GCC_CHECK_TLS.
10390 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10391 * Makefile.in, aclocal.m4, configure: Regenerate.
10393 2006-04-10 Matthias Klose <doko@debian.org>
10395 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10396 directory names containing underscores.
10398 2006-03-21 Jakub Jelinek <jakub@redhat.com>
10401 * testsuite/libgomp.c++/pr26691.C: New test.
10403 2006-03-13 Jakub Jelinek <jakub@redhat.com>
10405 * testsuite/libgomp.fortran/retval2.f90: New test.
10407 2006-03-09 Diego Novillo <dnovillo@redhat.com>
10409 * testsuite/libgomp.c++: New directory.
10411 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
10413 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10414 * config/posix/sem.c: Implement the above.
10416 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
10418 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10419 define HAVE_BROKEN_POSIX_SEMAPHORES.
10420 * configure: Rebuilt.
10421 * config.h.in: Rebuilt.
10423 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10426 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10427 for the other pthread check.
10428 * configure: Regenerate.
10429 * config.h.in: Regenerate.
10431 2006-02-15 Jakub Jelinek <jakub@redhat.com>
10435 * Makefile.am (fincludedir): New variable.
10436 (nodist_include_HEADERS): Remove Fortran files.
10437 (nodist_finclude_HEADERS): New variable.
10438 * Makefile.in: Regenerated.
10440 2006-02-13 Jakub Jelinek <jakub@redhat.com>
10442 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10443 Remove tests for returning assumed character length arrays.
10445 2006-02-12 Roger Sayle <roger@eyesopen.com>
10446 John David Anglin <dave@hiauly1.hia.nrc.ca>
10449 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10451 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10453 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10455 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10457 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10458 part of LD_LIBRARY_PATH manually.
10460 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
10463 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10466 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
10469 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10470 * configure.ac (PERL): Don't set.
10471 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10472 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10473 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10474 * omp.h.in: Wrap the new configure substitutions with @ characters.
10475 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10476 * aclocal.m4, configure, Makefile.in: Regenerate.
10477 * mkomp_h.pl: Delete.
10479 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
10482 * configure.ac: Use GCC_HEADER_STDINT.
10483 * libgomp.h: Include gstdint.h.
10484 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10485 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10487 2006-01-24 Richard Henderson <rth@redhat.com>
10490 * configure.ac: Add AM_MAINTAINER_MODE.
10491 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10493 2006-01-24 Diego Novillo <dnovillo@redhat.com>
10495 * Makefile.in: Regenerate.
10496 * testsuite/Makefile.in: Regenerate.
10497 * aclocal.m4: Regenerate.
10499 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
10501 * config/posix/proc.c: Conditional include of sys/loadavg.h for
10503 * configure.ac: Add check for loadavg.h.
10504 (link_gomp): Adjust comment.
10505 * configure: Regenerate.
10506 * config.h.in: Regenerate.
10508 2006-01-21 Steve Ellcey <sje@cup.hp.com>
10511 * configure.ac: Remove check for alloca.h.
10512 * configure: Regenerate.
10513 * config.h.in: Regenerate.
10514 * libgomp.h: define gomp_alloca to be __builtin_alloca.
10515 * team.c: Remove use of alloca.h.
10516 Call gomp_alloca instead of alloca.
10518 2006-01-20 Steve Ellcey <sje@cup.hp.com>
10521 * team.c: Add include of alloca.h.
10522 * configure.ac: Add check for alloca.h.
10523 * configure: Regenerate.
10524 * config.h.in: Regenerate.
10526 2006-01-17 Jakub Jelinek <jakub@redhat.com>
10529 * testsuite/libgomp.fortran/pr25219.f90: New test.
10531 2005-12-05 Uros Bizjak <uros@kss-loka.si>
10533 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10534 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10535 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10536 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10537 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10538 testsuite/libgomp.fortran/threadprivate1.f90,
10539 testsuite/libgomp.fortran/threadprivate2.f90,
10540 testsuite/libgomp.fortran/threadprivate3.f90,
10541 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10542 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10543 testsuite/libgomp.fortran/omp_parse3.f90: Change required
10544 effective-target to TLS runtime.
10546 * testsuite/libgomp.fortran/pr25162.f: Require
10547 effective-target TLS runtime.
10549 2005-12-01 Jakub Jelinek <jakub@redhat.com>
10551 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10552 * testsuite/libgomp.c/nestedfn-3.c: New test.
10554 2005-11-30 Jakub Jelinek <jakub@redhat.com>
10557 * testsuite/libgomp.fortran/pr25162.f: New test.
10559 2005-11-28 Jakub Jelinek <jakub@redhat.com>
10561 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10562 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10564 2005-11-25 Jakub Jelinek <jakub@redhat.com>
10566 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10567 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10568 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10569 single.c, team.c, work.c, config/linux/alpha/futex.h,
10570 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10571 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10572 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10573 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10574 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10575 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10576 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10579 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10581 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10582 to nodist_noinst_HEADERS.
10583 * Makefile.in: Rebuilt.
10585 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10586 add integer count field.
10587 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10588 omp_nest_lock_t type change.
10589 (omp_init_nest_lock): Likewise. Initialize count to 0.
10590 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10592 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10594 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10595 Increment count if successful and return the new nesting level.
10596 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10597 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10598 * testsuite/libgomp.c/lib-1.c: New test.
10599 * testsuite/libgomp.fortran/lib1.f90: New test.
10600 * testsuite/libgomp.fortran/lib2.f: New test.
10601 * testsuite/libgomp.fortran/lib3.f: New test.
10603 2005-11-17 Richard Henderson <rth@redhat.com>
10606 * Makefile.am (nodist_toolexeclib_HEADERS): New.
10607 * configure.ac (link_gomp): New. Substitute it.
10608 (AC_CONFIG_FILES): Add libgomp.spec.
10609 * libgomp.spec.in: New file.
10610 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10611 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10613 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10615 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10616 reduction(-:var) behaving the same as reduction(+:var).
10617 * testsuite/libgomp.c/reduction-4.c: New test.
10619 2005-11-15 Uros Bizjak <uros@kss-loka.si>
10621 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10622 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10623 testsuite/libgomp.c/copyin-3.c,
10624 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10625 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10626 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10627 testsuite/libgomp.c++/pr24455.C,
10628 testsuite/libgomp.fortran/threadprivate1.f90,
10629 testsuite/libgomp.fortran/threadprivate2.f90,
10630 testsuite/libgomp.fortran/threadprivate3.f90,
10631 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10632 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10633 testsuite/libgomp.fortran/omp_parse3.f90: Require
10634 effective-target TLS.
10636 2005-11-14 Diego Novillo <dnovillo@redhat.com>
10640 2005-11-13 Jakub Jelinek <jakub@redhat.com>
10643 * team.c (initialize_team): Pass NULL rather than free as
10644 pthread_key_create destructor. Initialize thread specific data
10645 pointer in initial thread to a static local variable rather than
10648 2005-11-11 Uros Bizjak <uros@kss-loka.si>
10650 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10651 its location to ld_library_path.
10653 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10655 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10657 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10659 * testsuite/libgomp.c: Rename from libgomp.dg.
10661 2005-11-09 Diego Novillo <dnovillo@redhat.com>
10663 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10664 threadprivate variable 'i'.
10666 2005-11-09 Jakub Jelinek <jakub@redhat.com>
10668 * config/linux/s390/futex.h: New file.
10669 * configure.tgt: Use it.
10671 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10672 before the parallel.
10674 2005-11-08 Jakub Jelinek <jakub@redhat.com>
10677 * testsuite/libgomp.c++/master-1.C: New test.
10679 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10681 * testsuite/libgomp.dg/copyin-3.c: New test.
10683 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10685 * testsuite/libgomp.fortran/retval1.f90: New test.
10686 * testsuite/libgomp.fortran/vla7.f90: New test.
10688 2005-11-06 Jakub Jelinek <jakub@redhat.com>
10690 * testsuite/libgomp.fortran/vla2.f90: New test.
10691 * testsuite/libgomp.fortran/vla3.f90: New test.
10692 * testsuite/libgomp.fortran/vla4.f90: New test.
10693 * testsuite/libgomp.fortran/vla5.f90: New test.
10694 * testsuite/libgomp.fortran/vla6.f90: New test.
10696 2005-11-01 Jakub Jelinek <jakub@redhat.com>
10698 * config/linux/sparc/futex.h: New file.
10699 * configure.tgt: Use it.
10700 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10702 * critical.c: Include stdlib.h.
10703 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10704 ignoring return value.
10705 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10706 LIBGOMP_CHECK_SYNC_BUILTINS check.
10707 * configure: Rebuilt.
10709 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10711 * testsuite/libgomp.fortran/vla1.f90: New test.
10713 2005-10-31 Richard Henderson <rth@redhat.com>
10715 * testsuite/libgomp.fortran/character2.f90: Fix race condition
10716 setting 's' in different threads.
10718 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10720 * libgomp.h (attribute_hidden, ialias): Define.
10721 * config/posix/proc.c (omp_get_num_procs): Add ialias.
10722 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10723 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10724 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10725 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10726 omp_test_lock, omp_test_nest_lock): Likewise.
10727 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10728 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10729 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10730 omp_test_lock, omp_test_nest_lock): Likewise.
10731 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10732 omp_get_dynamic, omp_get_nested): Likewise.
10733 * parallel.c (omp_get_num_threads, omp_get_max_threads,
10734 omp_get_thread_num, omp_in_parallel): Likewise.
10735 * fortran.c (ialias_redirect): Define.
10736 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10737 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10738 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10739 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10740 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10741 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10742 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10743 omp_get_wtime): Add ialias_redirect.
10745 2005-10-30 Jakub Jelinek <jakub@redhat.com>
10747 * fortran.c: Include stdlib.h.
10749 2005-10-29 Jakub Jelinek <jakub@redhat.com>
10751 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10752 * Makefile.in: Regenerated.
10754 2005-10-28 Jakub Jelinek <jakub@redhat.com>
10756 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10757 * libgomp_f.h.in (omp_check_defines): New function.
10758 * env.c: Include libgomp_f.h.
10759 (initialize_env): Call omp_check_defines.
10761 * testsuite/libgomp.dg/copyin-2.c: New test.
10762 * testsuite/libgomp.c++/copyin-2.C: New test.
10763 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10765 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10766 * testsuite/libgomp.fortran/sharing2.f90: New test.
10768 * testsuite/libgomp.dg/copyin-1.c: New test.
10769 * testsuite/libgomp.c++/copyin-1.C: New test.
10771 2005-10-26 Jakub Jelinek <jakub@redhat.com>
10773 * testsuite/libgomp.fortran/crayptr1.f90: New test.
10775 * testsuite/libgomp.fortran/workshare1.f90: New test.
10777 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10779 * libgomp.fortran/sharing1.f90: New test.
10781 2005-10-24 Jakub Jelinek <jakub@redhat.com>
10784 * testsuite/libgomp.c++/loop-7.C: New test.
10786 * testsuite/libgomp.dg/nestedfn-2.c: New test.
10788 * testsuite/libgomp.dg/nestedfn-1.c: New test.
10789 * testsuite/libgomp.fortran/reduction6.f90: New test.
10790 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10792 2005-10-23 Richard Henderson <rth@redhat.com>
10794 * testsuite/libgomp.c++/ctor-1.C: New.
10795 * testsuite/libgomp.c++/ctor-2.C: New.
10796 * testsuite/libgomp.c++/ctor-3.C: New.
10797 * testsuite/libgomp.c++/ctor-4.C: New.
10798 * testsuite/libgomp.c++/ctor-5.C: New.
10799 * testsuite/libgomp.c++/ctor-6.C: New.
10800 * testsuite/libgomp.c++/ctor-7.C: New.
10801 * testsuite/libgomp.c++/ctor-8.C: New.
10802 * testsuite/libgomp.c++/ctor-9.C: New.
10804 2005-10-21 Diego Novillo <dnovillo@redhat.com>
10807 * testsuite/libgomp.c++/pr24455-1.C: New test.
10808 * testsuite/libgomp.c++/pr24455.C: New test.
10809 * testsuite/libgomp.dg/pr24455-1.c: New test.
10810 * testsuite/libgomp.dg/pr24455.c: New test.
10812 2005-10-20 Richard Henderson <rth@redhat.com>
10814 * testsuite/libgomp.c++/loop-6.C: New.
10815 * testsuite/libgomp.dg/loop-3.c: New.
10817 2005-10-20 Jakub Jelinek <jakub@redhat.com>
10819 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10820 explicitly private.
10821 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10824 2005-10-19 Diego Novillo <dnovillo@redhat.com>
10826 * testsuite/libgomp.fortran/jacobi.f: New test.
10828 2005-10-19 Richard Henderson <rth@redhat.com>
10830 * configure.tgt (i?86-linux): Default to with_arch instead of
10831 CFLAGS. Add -mtune to match target_cpu.
10832 (x86_64-linux): Tune to i686.
10834 * fortran.c (omp_test_nest_lock_): Fix typo.
10836 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10838 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10839 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10840 * testsuite/libgomp.dg/ordered-3.c: New test.
10842 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10843 Remove volatile keyword.
10845 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10846 in COMMON block to avoid warnings on 64-bit targets.
10848 2005-10-18 Diego Novillo <dnovillo@redhat.com>
10850 * testsuite/libgomp.dg/shared-3.c: New test.
10852 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10854 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10855 * testsuite/libgomp.fortran/reduction5.f90: New test.
10857 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10859 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10861 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
10862 flush loop now that __sync_synchronize has proper memory barrier.
10863 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10864 Add -ffixed-form to dg-options.
10866 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10868 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10869 from subdirectories.
10870 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10871 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10872 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10873 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10874 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10875 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10876 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10877 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10878 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10879 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10880 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10881 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10882 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10883 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10884 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10885 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10886 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
10887 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
10888 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
10889 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
10890 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
10891 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
10892 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
10893 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
10894 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
10896 2005-10-17 Jakub Jelinek <jakub@redhat.com>
10898 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
10899 lang_library_path exists. Use find instead of glob to gather tests.
10900 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
10902 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10904 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
10905 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
10906 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
10907 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
10908 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
10909 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
10910 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
10911 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
10912 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
10913 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
10914 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
10915 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
10916 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
10918 2005-10-15 Jakub Jelinek <jakub@redhat.com>
10920 * testsuite/libgomp.dg/vla-1.c: New test.
10922 * testsuite/libgomp.fortran/reference2.f90: New test.
10924 * testsuite/libgomp.fortran/character2.f90: Remove explicit
10925 declaration of omp_get_thread_num.
10926 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
10929 * testsuite/libgomp.fortran/reduction1.f90: New test.
10930 * testsuite/libgomp.fortran/reduction2.f90: New test.
10931 * testsuite/libgomp.fortran/reduction3.f90: New test.
10932 * testsuite/libgomp.fortran/reduction4.f90: New test.
10934 2005-10-13 Richard Henderson <rth@redhat.com>
10936 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
10937 * Makefile.in: Regenerate.
10938 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
10939 * libgomp.h: Include bar.h.
10940 (struct gomp_barrier): Remove.
10941 (struct gomp_team): Add barrier. Replace master_barrier with
10942 master_release. Replace threads with ordered_release.
10943 (struct gomp_thread): Replace barrier with release.
10944 * ordered.c (gomp_ordered_first): Update for ordered_release change.
10945 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
10946 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
10947 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
10948 (GOMP_single_copy_end): Likewise.
10949 * team.c (gomp_threads_dock): New.
10950 (gomp_barrier_init, gomp_barrier_destroy): Remove.
10951 (gomp_thread_start): Use gomp_barrier_wait.
10952 (new_team, free_team): Update for gomp_team changes.
10953 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
10954 (gomp_team_end): Use gomp_barrier_wait.
10955 (initialize_team): Update for gomp_thread changes.
10956 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
10957 (gomp_work_share_end_nowait): Use atomic ops when available.
10958 * config/linux/bar.c, config/linux/bar.h: New files.
10959 * config/posix/bar.c, config/posix/bar.h: New files.
10961 2005-10-13 Jakub Jelinek <jakub@redhat.com>
10963 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
10964 * testsuite/libgomp.dg/single-2.c: New test.
10966 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
10967 lang_link_flags): Unset, so that they aren't inherited from previously
10970 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
10972 2005-10-12 Richard Henderson <rth@redhat.com>
10974 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
10975 (libgomp_init): Use lang_test_file, lang_library_path, and
10976 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
10978 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
10979 (lang_test_file, lang_link_flags): New.
10980 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
10982 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
10983 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
10984 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
10985 testsuite/libgomp.c++/parallel-1.C,
10986 testsuite/libgomp.c++/reduction-1.C,
10987 testsuite/libgomp.c++/reduction-2.C,
10988 testsuite/libgomp.c++/reduction-3.C,
10989 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
10990 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
10991 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
10992 New files, largely cribbed from the C testsuite.
10994 2005-10-12 Jakub Jelinek <jakub@redhat.com>
10996 * testsuite/libgomp.fortran/character1.f90: New test.
10997 * testsuite/libgomp.fortran/character2.f90: New test.
10999 * testsuite/libgomp.dg/nested-1.c: New test.
11000 * testsuite/libgomp.dg/nested-2.c: New test.
11001 * testsuite/libgomp.fortran/do1.f90: New test.
11002 * testsuite/libgomp.fortran/do2.f90: New test.
11004 * testsuite/libgomp.fortran/reference1.f90: New test.
11006 2005-10-11 Jakub Jelinek <jakub@redhat.com>
11008 * testsuite/libgomp.dg/reduction-1.c: New test.
11009 * testsuite/libgomp.dg/reduction-2.c: New test.
11010 * testsuite/libgomp.dg/reduction-3.c: New test.
11012 2005-10-10 Jakub Jelinek <jakub@redhat.com>
11014 * testsuite/libgomp.dg/atomic-1.c: New test.
11015 * testsuite/libgomp.dg/atomic-2.c: New test.
11017 2005-10-09 Richard Henderson <rth@redhat.com>
11019 * critical.c (atomic_lock): New.
11020 (initialize_critical): Initialize it.
11021 (GOMP_atomic_start, GOMP_atomic_end): New.
11022 * libgomp.map: Export them.
11023 * libgomp_g.h: Declare them.
11025 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
11027 2005-10-02 Richard Henderson <rth@redhat.com>
11029 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
11030 to XCFLAGS instead of CFLAGS.
11032 2005-09-30 Richard Henderson <rth@redhat.com>
11034 * configure.ac: Determine whether -pthread or -lpthread is needed.
11035 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
11036 * Makefine.in, configure: Rebuild.
11038 2005-09-28 Richard Henderson <rth@redhat.com>
11040 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
11041 * testsuite/libgomp.dg/omp-single-3.c: New test.
11043 2005-09-28 Diego Novillo <dnovillo@redhat.com>
11045 * testsuite/libgomp.dg/omp-single-2.c: New test.
11046 * testsuite/libgomp.dg/shared-2.c: Fix return code.
11048 2005-09-27 Richard Henderson <rth@redhat.com>
11050 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
11051 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
11053 2005-09-27 Jakub Jelinek <jakub@redhat.com>
11055 * testsuite/libgomp.dg/omp-loop03.c: New test.
11057 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11059 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
11061 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11063 * testsuite/libgomp.dg/omp-single-1.c: New test.
11064 * testsuite/libgomp.dg/shared-1.c: Return 0.
11065 Add prototype for abort.
11066 * testsuite/libgomp.dg/shared-2.c: Likewise.
11068 2005-09-26 Jakub Jelinek <jakub@redhat.com>
11070 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
11073 2005-09-26 Diego Novillo <dnovillo@redhat.com>
11075 * testsuite/libgomp.dg/shared-1.c: New test.
11076 * testsuite/libgomp.dg/shared-2.c: New test.
11078 2005-09-24 Richard Henderson <rth@redhat.com>
11080 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
11082 2005-09-24 Richard Henderson <rth@redhat.com>
11084 * iter.c (gomp_iter_static_next): Round up when computing number
11085 of iterations. Don't bother distributing a remainder equally.
11087 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11088 Don't call srand. Zero b before testing.
11091 2005-09-24 Jakub Jelinek <jakub@redhat.com>
11093 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11094 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11096 2005-09-23 Jakub Jelinek <jakub@redhat.com>
11098 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11099 without !$omp end do, followed immediately by subroutine end.
11101 2005-09-23 Diego Novillo <dnovillo@redhat.com>
11103 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11105 2005-09-22 Richard Henderson <rth@redhat.com>
11107 * critical.c (GOMP_critical_name_start): Change argument to void**.
11108 Reuse the pointer space if the mutex fits.
11109 (GOMP_critical_name_end): Likewise.
11110 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11111 * libgomp_g.h (GOMP_critical_name_start): Update decl.
11112 (GOMP_critical_name_end): Likewise.
11113 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11114 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11116 2005-09-20 Richard Henderson <rth@redhat.com>
11118 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11119 (create_lock_lock): New.
11120 (initialize_critical): Initialize it.
11121 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11122 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11124 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11126 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11128 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11130 * testsuite/libgomp.dg/omp-loop01.c: New test.
11131 * testsuite/libgomp.dg/omp-loop02.c: New test.
11133 2005-09-20 Jakub Jelinek <jakub@redhat.com>
11135 * configure.ac (AC_PROG_FC): Add.
11136 (USE_FORTRAN): New automake conditional.
11137 * configure: Rebuilt.
11138 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11139 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11140 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11141 Add rules to build them.
11142 * Makefile.in: Rebuilt.
11143 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11144 OMP_NEST_LOCK_KIND.
11145 * libgomp.map: Add Fortran wrappers.
11146 * libgomp_f.h.in: New file.
11147 * omp_lib.h.in: New file.
11148 * omp_lib.f90.in: New file.
11149 * fortran.c: New file.
11150 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11151 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11152 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11153 libgfortran has been built.
11154 * testsuite/libgomp.fortran/fortran.exp: New file.
11155 * testsuite/libgomp.fortran/omp_cond1.f: New test.
11156 * testsuite/libgomp.fortran/omp_cond2.f: New test.
11157 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11158 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11159 * testsuite/libgomp.fortran/omp_hello.f: New test.
11160 * testsuite/libgomp.fortran/omp_orphan.f: New test.
11161 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11162 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11163 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11164 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11165 * testsuite/libgomp.fortran/omp_reduction.f: New test.
11166 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11167 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11169 2005-08-30 Richard Henderson <rth@redhat.com>
11171 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11172 function for when aliases are not usable.
11173 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11174 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11175 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11176 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11177 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11178 GOMP_loop_ordered_guided_next): Likewise.
11179 * ordered.c (GOMP_ordered_start): Likewise.
11181 2005-08-01 Diego Novillo <dnovillo@redhat.com>
11183 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11184 * testsuite/libgomp.dg/omp_hello.c: Fix return code
11185 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11186 * testsuite/libgomp.dg/omp_orphan.c: Likewise
11187 * testsuite/libgomp.dg/omp_reduction.c: Likewise
11188 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11189 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11190 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11191 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11193 2005-07-07 Eric Christopher <echristo@redhat.com>
11194 Diego Novillo <dnovillo@redhat.com>
11196 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11197 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11199 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11200 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11201 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11202 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11203 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11204 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11205 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11207 2005-06-13 Diego Novillo <dnovillo@redhat.com>
11209 * TOPLEVEL.patch: Remove.
11211 2005-05-16 Richard Henderson <rth@redhat.com>
11213 * configure.ac: Test for clock_gettime.
11214 * config.h.in, configure: Rebuild.
11215 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11216 (omp_get_wtime): Use clock_gettime if available.
11217 (omp_get_wtick): Use clock_getres if available.
11219 2005-05-11 Richard Henderson <rth@redhat.com>
11221 * config/linux/ia64/futex.h: New file.
11222 * configure.tgt: Use it.
11224 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11226 2005-05-07 Richard Henderson <rth@redhat.com>
11228 * config/linux/powerpc/futex.h: New file.
11229 * configure.tgt: Use it.
11231 * config/linux/i486/futex.h: Merge ...
11232 * config/linux/x86_64/futex.h: ... into ...
11233 * config/linux/x86/futex.h: ... here.
11234 * configure.tgt: Update to match.
11236 2005-05-06 Richard Henderson <rth@redhat.com>
11238 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11239 * config/linux/i486/futex.h: Likewise.
11240 * config/linux/x86_64/futex.h: Likewise.
11242 * config/linux/lock.c: New file.
11243 * config/linux/omp-lock.h: New file.
11245 * critical.c, env.h: Don't include omp.h
11246 * config/posix/lock.c: Include libgomp.h instead of omp.h.
11247 * config/posix/time.c: Likewise.
11248 * config/posix/omp-lock.h: New file.
11249 * libgomp.h: Include omp-lock.h and omp.h.
11250 * Makefile.am (nodist_include_HEADERS): New.
11252 * configure.ac (PERL): New.
11253 * mkomp_h.pl: New file.
11254 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11256 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11258 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11259 build directory. Re-add -march=i486 hack.
11261 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
11262 (libgomp_link_flags): Remove.
11263 (libgomp_initialized): Remove.
11264 (libgomp_init): Don't protect from reinitialization. Copy code
11265 from libstdc++ for getting the multilib set correctly.
11267 2005-05-05 Richard Henderson <rth@redhat.com>
11269 * config/linux/alpha/futex.h: New file.
11270 * configure.tgt (alpha*-*-linux*): Use it.
11272 * config/posix/mutex.c: New file.
11273 * config/posix/sem.c: Use libgomp.h.
11275 * configure.tgt (x86_64-linux): Also test CC for -m32.
11276 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
11278 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
11281 * Makefile.am (SUBDIRS): New.
11282 (libgomp_la_LDFLAGS): Add -lpthread.
11283 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
11284 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
11286 * libgomp_g.h: New file.
11287 * libgomp.h: Split out all public declarations to libgomp_g.h.
11288 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
11289 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
11290 * config/linux/sem.h: Likewise.
11291 * config/posix/sem.h: Likewise.
11293 * Makefile.am (AM_LDFLAGS): New.
11294 (libgomp_version_script): Split out from ...
11295 (libgomp_la_LDFLAGS): ... here.
11296 (libgomp_version_info): New.
11297 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
11298 (LIBGOMP_ENABLE): New.
11299 (LIBGOMP_CHECK_LINKER_FEATURES): New.
11300 (LIBGOMP_ENABLE_SYMVERS): New.
11301 * configure.ac (AC_INIT): Version 1.0.
11302 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
11303 (enable-linux-futex): Likewise. Rename from enable-futex.
11304 (libtool_VERSION): New.
11305 (LIBGOMP_ENABLE_SYMVERS): Use it.
11306 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
11307 * Makefile.in, aclocal.m4, configure: Rebuild.
11309 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
11310 (gomp_mutex_unlock_slow): Fix typo.
11311 * config/linux/sem.c: Similarly.
11312 (gomp_sem_post_slow): Fix typo.
11313 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
11314 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
11315 [__PIC__] (sys_futex0): Don't use tmp output in asm.
11317 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
11318 (libgomp_la_LDFLAGS): Add top_srcdir to path.
11319 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
11320 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
11321 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
11322 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
11323 LDFLAGS. Pull enable_futex check to top-level.
11324 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
11325 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
11327 First attempt at real configury.
11328 * Makefile, config.h: Remove file.
11329 * Makefile.am, Makefile.in: New file.
11330 * acinclude.m4 aclocal.m4: New file.
11331 * configure.ac, configure.tgt, configure: New file.
11333 * config/posix/lock.c: Rename from sys-lock.c.
11334 * config/posix/mutex.h: Rename from sys-mutex.h.
11335 * config/posix/sem.c: Rename from sys-sem.c.
11336 * config/posix/sem.h: Rename from sys-sem.h.
11337 * config/posix/proc.c: Rename from sys-proc.c.
11338 * config/posix/time.c: Rename from sys-proc.c.
11340 * config/linux/mutex.c: New file.
11341 * config/linux/mutex.h: New file.
11342 * config/linux/sem.c: New file.
11343 * config/linux/sem.h: New file.
11344 * config/linux/i486/futex.h: New file.
11345 * config/linux/x86_64/futex.h: New file.
11347 2005-05-04 Richard Henderson <rth@redhat.com>
11349 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
11350 * libgomp.h: Declare them.
11351 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
11352 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
11354 2005-05-04 Richard Henderson <rth@redhat.com>
11356 * libgomp-1 code drop
11358 2005-05-04 Richard Henderson <rth@redhat.com>
11360 * iter.c (gomp_iter_static_next): Return tri-state on 0.
11361 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
11362 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
11363 (gomp_iter_static_next): Update.
11364 (gomp_ordered_static_next): Update.
11365 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
11366 (gomp_loop_ordered_static_start): Likewise. Exit early for a
11367 totally empty range.
11368 (gomp_loop_ordered_static_next): Refine test for calling
11369 gomp_ordered_static_next.
11370 * testsuite/ordered-1.c: Add case for more threads than iterations.
11372 * iter.c (gomp_iter_runtime_next_locked): Remove.
11373 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
11374 gomp_loop_guided_start, gomp_loop_ordered_static_start,
11375 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
11376 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
11377 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
11378 gomp_loop_ordered_guided_next): Downcase name, make static, add
11379 an external alias with the old name.
11380 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11381 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
11382 switch and call one of the above static functions.
11383 * libgomp.h: Update.
11385 * work.c (gomp_work_share_start): Lock the mutex for !first too.
11386 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11387 GOMP_loop_guided_start, GOMP_loop_runtime_start,
11388 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11389 GOMP_loop_ordered_guided_start): Update to match.
11390 * sections.c (GOMP_sections_start): Likewise.
11391 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11393 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11394 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11395 Use bounds check instead of modulus.
11396 (gomp_ordered_sync): Split out of GOMP_ordered_start.
11397 (gomp_ordered_last): Don't sync with ordered_owner here.
11398 (gomp_ordered_next): Likewise.
11399 (gomp_ordered_static_loop_next): Likewise.
11400 * loop.c, libgomp.h: Update to match.
11402 * libgomp.h (GOMP_barrier): Declare.
11404 * testsuite/barrier-1.c: New file.
11405 * testsuite/critical-1.c: New file.
11406 * testsuite/ordered-2.c: New file.
11407 * testsuite/ordered-1.c: New file.
11408 * testsuite/sections-1.c: New file.
11409 * testsuite/single-1.c: New file.
11410 * testsuite/Makefile (TESTS): Add them.
11412 2005-05-04 Richard Henderson <rth@redhat.com>
11414 * libgomp.h (struct gomp_work_share): Add ordered_owner.
11415 * loop.c (GOMP_loop_static_start): If not the startup thread,
11416 acquire the mutex to wait for initialization complete.
11417 (GOMP_loop_ordered_static_start): Likewise.
11418 (GOMP_loop_ordered_runtime_start): Likewise.
11419 (GOMP_loop_ordered_static_first): Remove.
11420 (GOMP_loop_ordered_dynamic_first): Remove.
11421 (GOMP_loop_ordered_guided_first): Remove.
11422 (GOMP_loop_ordered_runtime_first): Remove.
11423 * ordered.c (gomp_ordered_loop_first): Post to own release when
11424 we're the first thread.
11425 (gomp_ordered_loop_last): Wait on release if not owner.
11426 (gomp_ordered_loop_next): Likewise.
11427 (gomp_ordered_static_loop_init): New.
11428 (gomp_ordered_static_loop_next): Use ordered_owner.
11429 (GOMP_ordered_start): Likewise.
11430 * work.c (gomp_new_work_share): Initialize ordered_owner.
11432 2005-05-03 Richard Henderson <rth@redhat.com>
11434 * Makefile (OPT): New.
11437 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11438 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11439 * libgomp.h, libgomp.map, NOTES: Update to match.
11441 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11442 Add initialized and thr members.
11443 (gomp_thread_start): Pause when initially spawned to wait for
11444 the whole team to be created.
11445 (gomp_team_start): Release team members at the end.
11447 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
11448 (f_foo_1): Use GOMP_loop_end.
11449 (f_foo_2): Use GOMP_loop_end_nowait.
11451 * testsuite/loop-2.c: New file.
11452 * testsuite/Makefile (TESTS): Add it.
11454 2005-05-03 Richard Henderson <rth@redhat.com>
11456 * iter.c (gomp_iter_static_next): Fix overflow check typo.
11457 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11458 * team.c (new_team): Initialize oldest_live_gen to 1 if no
11459 initial work_share.
11461 * testsuite/Makefile: New file.
11462 * testsuite/loop-1.c: New file.
11464 2005-05-03 Richard Henderson <rth@redhat.com>
11466 Initial implementation and checkin.
11468 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11470 Copying and distribution of this file, with or without modification,
11471 are permitted in any medium without royalty provided the copyright
11472 notice and this notice are preserved.