5356d005ff75eab08d4a3207928d5107d6f61162
[gcc.git] / libgomp / ChangeLog
1 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2
3 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4 perform the lookup in the first loop only if !not_found_cnt, otherwise
5 perform lookups for it in the second loop guarded with
6 if (not_found_cnt || has_firstprivate).
7 * testsuite/libgomp.c/target-37.c: New test.
8 * testsuite/libgomp.c++/target-22.C: New test.
9
10 2019-08-07 Jakub Jelinek <jakub@redhat.com>
11
12 * testsuite/libgomp.c/target-18.c (struct S): New type.
13 (foo): Use use_device_addr clause instead of use_device_ptr clause
14 where required by OpenMP 5.0, add further tests for both use_device_ptr
15 and use_device_addr clauses.
16 * testsuite/libgomp.c++/target-9.C (struct S): New type.
17 (foo): Use use_device_addr clause instead of use_device_ptr clause
18 where required by OpenMP 5.0, add further tests for both use_device_ptr
19 and use_device_addr clauses. Add t and u arguments.
20 (main): Adjust caller.
21
22 2019-08-06 Jakub Jelinek <jakub@redhat.com>
23
24 * testsuite/libgomp.c++/loop-13.C: New test.
25 * testsuite/libgomp.c++/loop-14.C: New test.
26 * testsuite/libgomp.c++/loop-15.C: New test.
27
28 2019-07-31 Jakub Jelinek <jakub@redhat.com>
29
30 PR middle-end/91301
31 * testsuite/libgomp.c++/for-27.C: New test.
32
33 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
34
35 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage
36 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
37
38 2019-07-20 Jakub Jelinek <jakub@redhat.com>
39
40 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
41
42 2019-07-08 Jakub Jelinek <jakub@redhat.com>
43
44 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
45 * testsuite/libgomp.c++/scan-16.C: Likewise.
46
47 2019-07-06 Jakub Jelinek <jakub@redhat.com>
48
49 * testsuite/libgomp.c/scan-19.c: New test.
50 * testsuite/libgomp.c/scan-20.c: New test.
51
52 * testsuite/libgomp.c/scan-11.c: New test.
53 * testsuite/libgomp.c/scan-12.c: New test.
54 * testsuite/libgomp.c/scan-13.c: New test.
55 * testsuite/libgomp.c/scan-14.c: New test.
56 * testsuite/libgomp.c/scan-15.c: New test.
57 * testsuite/libgomp.c/scan-16.c: New test.
58 * testsuite/libgomp.c/scan-17.c: New test.
59 * testsuite/libgomp.c/scan-18.c: New test.
60 * testsuite/libgomp.c++/scan-9.C: New test.
61 * testsuite/libgomp.c++/scan-10.C: New test.
62 * testsuite/libgomp.c++/scan-11.C: New test.
63 * testsuite/libgomp.c++/scan-12.C: New test.
64 * testsuite/libgomp.c++/scan-13.C: New test.
65 * testsuite/libgomp.c++/scan-14.C: New test.
66 * testsuite/libgomp.c++/scan-15.C: New test.
67 * testsuite/libgomp.c++/scan-16.C: New test.
68
69 2019-07-04 Jakub Jelinek <jakub@redhat.com>
70
71 * testsuite/libgomp.c/scan-9.c: New test.
72 * testsuite/libgomp.c/scan-10.c: New test.
73
74 2019-07-03 Jakub Jelinek <jakub@redhat.com>
75
76 * testsuite/libgomp.c++/scan-1.C: New test.
77 * testsuite/libgomp.c++/scan-2.C: New test.
78 * testsuite/libgomp.c++/scan-3.C: New test.
79 * testsuite/libgomp.c++/scan-4.C: New test.
80 * testsuite/libgomp.c++/scan-5.C: New test.
81 * testsuite/libgomp.c++/scan-6.C: New test.
82 * testsuite/libgomp.c++/scan-7.C: New test.
83 * testsuite/libgomp.c++/scan-8.C: New test.
84 * testsuite/libgomp.c/scan-1.c: New test.
85 * testsuite/libgomp.c/scan-2.c: New test.
86 * testsuite/libgomp.c/scan-3.c: New test.
87 * testsuite/libgomp.c/scan-4.c: New test.
88 * testsuite/libgomp.c/scan-5.c: New test.
89 * testsuite/libgomp.c/scan-6.c: New test.
90 * testsuite/libgomp.c/scan-7.c: New test.
91 * testsuite/libgomp.c/scan-8.c: New test.
92
93 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
94
95 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
96 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
97 Likewise.
98
99 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
100 check.
101
102 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
103
104 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
105 file.
106
107 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
108
109 PR fortran/90743
110 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
111 case.
112 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
113 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
114 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
115 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
116
117 PR testsuite/90861
118 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
119
120 PR middle-end/90862
121 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
122
123 2019-06-16 Tom de Vries <tdevries@suse.de>
124
125 PR tree-optimization/89376
126 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
127
128 2019-06-15 Tom de Vries <tdevries@suse.de>
129
130 PR tree-optimization/89713
131 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
132 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
133
134 2019-06-15 Jakub Jelinek <jakub@redhat.com>
135
136 PR middle-end/90779
137 * testsuite/libgomp.c/pr90779.c: New test.
138 * testsuite/libgomp.fortran/pr90779.f90: New test.
139
140 2019-06-15 Tom de Vries <tdevries@suse.de>
141
142 PR tree-optimization/90009
143 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
144
145 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
146
147 PR tree-optimization/89713
148 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
149
150 2019-06-11 Jakub Jelinek <jakub@redhat.com>
151
152 PR target/90811
153 * testsuite/libgomp.c/pr90811.c: New test.
154
155 2019-06-05 Jakub Jelinek <jakub@redhat.com>
156
157 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
158 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
159
160 2019-06-04 Jakub Jelinek <jakub@redhat.com>
161
162 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
163 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
164 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
165 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
166
167 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
168
169 * configure.ac: Call AX_COUNT_CPUS.
170 Substitute CPU_COUNT.
171 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
172 count fallback.
173 * aclocal.m4: Regenerate.
174 * configure: Regenerate.
175 * Makefile.in, testsuite/Makefile.in: Regenerate.
176
177 2019-05-29 Jakub Jelinek <jakub@redhat.com>
178
179 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
180 to ...
181 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
182 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
183 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
184
185 2019-05-27 Jakub Jelinek <jakub@redhat.com>
186
187 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
188
189 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
190
191 PR libgomp/90641
192 * work.c (gomp_init_work_share): Instead of aligning final ordered
193 value to multiples of long long alignment, align to that the
194 first part (ordered team ids) and if inline_ordered_team_ids
195 is not on a long long alignment boundary within the structure,
196 use __alignof__ (long long) - 1 pad size always.
197 * loop.c (GOMP_loop_start): Fix *mem computation if
198 inline_ordered_team_ids is not aligned on long long alignment boundary
199 within the structure.
200 * loop-ull.c (GOMP_loop_ull_start): Likewise.
201 * sections.c (GOMP_sections2_start): Likewise.
202
203 2019-05-24 Jakub Jelinek <jakub@redhat.com>
204
205 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
206 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
207
208 PR libgomp/90585
209 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
210 HAVE_INTTYPES_H is defined.
211 (print_uint64_t): New typedef.
212 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
213 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
214 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
215 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
216 before casting to void *.
217 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
218 * oacc-mem.c: Don't include config.h nor stdint.h.
219 * target.c: Don't include config.h.
220 * oacc-cuda.c: Likewise.
221 * oacc-host.c: Don't include stdint.h.
222
223 2019-05-20 Jakub Jelinek <jakub@redhat.com>
224
225 PR libgomp/90527
226 * alloc.c (_GNU_SOURCE): Define.
227
228 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
229
230 * acc_prof.h: New file.
231 * oacc-profiling.c: Likewise.
232 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
233 Add these, respectively.
234 * Makefile.in: Regenerate.
235 * env.c (initialize_env): Call goacc_profiling_initialize.
236 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
237 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
238 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
239 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
240 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
241 acc_prof_register, acc_prof_unregister, and acc_register_library.
242 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
243 GOMP_PLUGIN_goacc_thread.
244 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
245 prof_callbacks_enabled members.
246 (goacc_prof_enabled, goacc_profiling_initialize)
247 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
248 (goacc_profiling_dispatch): Declare.
249 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
250 (GOACC_PROFILING_SETUP_P): Define.
251 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
252 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
253 OpenACC Profiling Interface.
254 * oacc-cuda.c (acc_get_current_cuda_device)
255 (acc_get_current_cuda_context, acc_get_cuda_stream)
256 (acc_set_cuda_stream): Likewise.
257 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
258 (acc_init, acc_set_device_type, acc_get_device_type)
259 (acc_get_device_num, goacc_lazy_initialize): Likewise.
260 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
261 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
262 (acc_unmap_data, present_create_copy, delete_copyout)
263 (update_dev_host): Likewise.
264 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
265 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
266 Likewise.
267 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
268 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
269 Likewise.
270 * libgomp.texi: Update.
271 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
272 file.
273 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
274 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
275 Likewise.
276 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
277 Likewise.
278 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
279 Likewise.
280 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
281 Likewise.
282
283 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
284
285 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
286 (struct goacc_asyncqueue_list): Likewise.
287 (goacc_aq): Likewise.
288 (goacc_aq_list): Likewise.
289 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
290 (GOMP_OFFLOAD_openacc_async_test): Remove.
291 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
292 (GOMP_OFFLOAD_openacc_async_wait): Remove.
293 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
294 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
295 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
296 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
297 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
298 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
299 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
300 (GOMP_OFFLOAD_openacc_async_exec): Declare.
301 (GOMP_OFFLOAD_openacc_async_construct): Declare.
302 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
303 (GOMP_OFFLOAD_openacc_async_test): Declare.
304 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
305 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
306 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
307 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
308 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
309
310 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
311 (gomp_acc_insert_pointer): Adjust declaration.
312 (gomp_copy_host2dev): New declaration.
313 (gomp_copy_dev2host): Likewise.
314 (gomp_map_vars_async): Likewise.
315 (gomp_unmap_tgt): Likewise.
316 (gomp_unmap_vars_async): Likewise.
317 (gomp_fini_device): Likewise.
318
319 * oacc-async.c (get_goacc_thread): New function.
320 (get_goacc_thread_device): New function.
321 (lookup_goacc_asyncqueue): New function.
322 (get_goacc_asyncqueue): New function.
323 (acc_async_test): Adjust code to use new async design.
324 (acc_async_test_all): Likewise.
325 (acc_wait): Likewise.
326 (acc_wait_async): Likewise.
327 (acc_wait_all): Likewise.
328 (acc_wait_all_async): Likewise.
329 (goacc_async_free): New function.
330 (goacc_init_asyncqueues): Likewise.
331 (goacc_fini_asyncqueues): Likewise.
332 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
333 design.
334 (acc_set_cuda_stream): Likewise.
335 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
336 (host_openacc_register_async_cleanup): Remove.
337 (host_openacc_async_exec): New function.
338 (host_openacc_async_test): Adjust parameters.
339 (host_openacc_async_test_all): Remove.
340 (host_openacc_async_wait): Remove.
341 (host_openacc_async_wait_async): Remove.
342 (host_openacc_async_wait_all): Remove.
343 (host_openacc_async_wait_all_async): Remove.
344 (host_openacc_async_set_async): Remove.
345 (host_openacc_async_synchronize): New function.
346 (host_openacc_async_serialize): New function.
347 (host_openacc_async_host2dev): New function.
348 (host_openacc_async_dev2host): New function.
349 (host_openacc_async_queue_callback): New function.
350 (host_openacc_async_construct): New function.
351 (host_openacc_async_destruct): New function.
352 (struct gomp_device_descr host_dispatch): Remove initialization of old
353 interface, add intialization of new async sub-struct.
354 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
355 (goacc_attach_host_thread_to_device): Remove old async code usage.
356 * oacc-int.h (goacc_init_asyncqueues): New declaration.
357 (goacc_fini_asyncqueues): Likewise.
358 (goacc_async_copyout_unmap_vars): Likewise.
359 (goacc_async_free): Likewise.
360 (get_goacc_asyncqueue): Likewise.
361 (lookup_goacc_asyncqueue): Likewise.
362 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
363 design.
364 (present_create_copy): Adjust code to use new async design.
365 (delete_copyout): Likewise.
366 (update_dev_host): Likewise.
367 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
368 async design.
369 (gomp_acc_remove_pointer): Adjust code to use new async design.
370 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
371 design.
372 (GOACC_enter_exit_data): Likewise.
373 (goacc_wait): Likewise.
374 (GOACC_update): Likewise.
375 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
376 when called, warn as obsolete in comment.
377 * target.c (goacc_device_copy_async): New function.
378 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
379 add goacc_device_copy_async case.
380 (gomp_copy_dev2host): Likewise.
381 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
382 (gomp_map_pointer): Likewise.
383 (gomp_map_fields_existing): Likewise.
384 (gomp_map_vars_internal): New always_inline function, renamed from
385 gomp_map_vars.
386 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
387 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
388 passing goacc_asyncqueue argument.
389 (gomp_unmap_tgt): Remove static, add attribute_hidden.
390 (gomp_unref_tgt): New function.
391 (gomp_unmap_vars_internal): New always_inline function, renamed from
392 gomp_unmap_vars.
393 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
394 (gomp_unmap_vars_async): Implement by calling
395 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
396 (gomp_fini_device): New function.
397 (gomp_exit_data): Adjust gomp_copy_dev2host call.
398 (gomp_load_plugin_for_device): Remove old interface, adjust to load
399 new async interface.
400 (gomp_target_fini): Adjust code to call gomp_fini_device.
401
402 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
403 (struct ptx_stream): Remove.
404 (struct nvptx_thread): Remove current_stream field.
405 (cuda_map_create): Remove.
406 (cuda_map_destroy): Remove.
407 (map_init): Remove.
408 (map_fini): Remove.
409 (map_pop): Remove.
410 (map_push): Remove.
411 (struct goacc_asyncqueue): Define.
412 (struct nvptx_callback): Define.
413 (struct ptx_free_block): Define.
414 (struct ptx_device): Remove null_stream, active_streams, async_streams,
415 stream_lock, and next fields.
416 (enum ptx_event_type): Remove.
417 (struct ptx_event): Remove.
418 (ptx_event_lock): Remove.
419 (ptx_events): Remove.
420 (init_streams_for_device): Remove.
421 (fini_streams_for_device): Remove.
422 (select_stream_for_async): Remove.
423 (nvptx_init): Remove ptx_events and ptx_event_lock references.
424 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
425 case.
426 (nvptx_open_device): Add free_blocks initialization, remove
427 init_streams_for_device call.
428 (nvptx_close_device): Remove fini_streams_for_device call, add
429 free_blocks destruct code.
430 (event_gc): Remove.
431 (event_add): Remove.
432 (nvptx_exec): Adjust parameters and code.
433 (nvptx_free): Likewise.
434 (nvptx_host2dev): Remove.
435 (nvptx_dev2host): Remove.
436 (nvptx_set_async): Remove.
437 (nvptx_async_test): Remove.
438 (nvptx_async_test_all): Remove.
439 (nvptx_wait): Remove.
440 (nvptx_wait_async): Remove.
441 (nvptx_wait_all): Remove.
442 (nvptx_wait_all_async): Remove.
443 (nvptx_get_cuda_stream): Remove.
444 (nvptx_set_cuda_stream): Remove.
445 (GOMP_OFFLOAD_alloc): Adjust code.
446 (GOMP_OFFLOAD_free): Likewise.
447 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
448 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
449 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
450 (GOMP_OFFLOAD_openacc_async_wait): Remove.
451 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
452 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
453 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
454 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
455 (cuda_free_argmem): New function.
456 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
457 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
458 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
459 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
460 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
461 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
462 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
463 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
464 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
465 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
466 (cuda_callback_wrapper): New function.
467 (cuda_memcpy_sanity_check): New function.
468 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
469 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
470 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
471 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
472
473 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
474
475 PR target/87835
476 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
477
478 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
479
480 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
481
482 2019-03-27 Kevin Buettner <kevinb@redhat.com>
483
484 * team.c (gomp_team_start): Initialize pool->threads[0].
485
486 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
487
488 * testsuite/libgomp.oacc-c++/c++.exp: Specify
489 "-foffload=$offload_target".
490 * testsuite/libgomp.oacc-c/c.exp: Likewise.
491 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
492 * testsuite/lib/libgomp.exp
493 (check_effective_target_openacc_nvidia_accel_configured): Remove,
494 as (conceptually) merged into
495 check_effective_target_openacc_nvidia_accel_selected. Adjust all
496 users.
497
498 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
499 * testsuite/libgomp-test-support.exp.in: Adjust.
500 * testsuite/lib/libgomp.exp: Likewise. Don't populate
501 openacc_device_types_s.
502 (offload_target_to_openacc_device_type): New proc.
503 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
504 * testsuite/libgomp.oacc-c/c.exp: Likewise.
505 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
506 * Makefile.in: Regenerate.
507 * configure: Likewise.
508 * testsuite/Makefile.in: Likewise.
509
510 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
511 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
512 instead of OFFLOAD_TARGETS.
513 * target.c (gomp_target_init): Adjust.
514 * testsuite/libgomp-test-support.exp.in: Likewise.
515 * testsuite/lib/libgomp.exp: Likewise. Populate
516 openacc_device_types_s instead of offload_targets_s_openacc.
517 (check_effective_target_openacc_nvidia_accel_selected)
518 (check_effective_target_openacc_host_selected): Adjust.
519 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
520 * testsuite/libgomp.oacc-c/c.exp: Likewise.
521 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
522 * Makefile.in: Regenerate.
523 * config.h.in: Likewise.
524 * configure: Likewise.
525 * testsuite/Makefile.in: Likewise.
526
527 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
528 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
529 "offloading: supported, but hardware not accessible".
530 * testsuite/libgomp.oacc-c/c.exp: Likewise.
531 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
532
533 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
534
535 PR c/87924
536 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
537 goacc_wait().
538 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
539 and related adjustment.
540
541 2019-01-30 Jakub Jelinek <jakub@redhat.com>
542
543 PR c++/88988
544 * testsuite/libgomp.c++/pr88988.C: New test.
545
546 2019-01-28 Jakub Jelinek <jakub@redhat.com>
547
548 PR middle-end/89002
549 * testsuite/libgomp.c/pr89002.c: New test.
550
551 2019-01-28 Richard Biener <rguenther@suse.de>
552
553 PR testsuite/89064
554 PR tree-optimization/86865
555 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
556
557 2019-01-24 Tom de Vries <tdevries@suse.de>
558
559 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
560 once instantiated_devices drops to 0.
561
562 2019-01-23 Tom de Vries <tdevries@suse.de>
563
564 PR target/PR88946
565 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
566 cuMemFree.
567 (nvptx_exec): Don't call map_push if mapnum == 0.
568 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
569
570 2019-01-23 Tom de Vries <tdevries@suse.de>
571
572 PR target/88941
573 PR target/88939
574 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
575 (map_fini): Remove "assert (!s->map->active)".
576 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
577
578 2019-01-23 Tom de Vries <tdevries@suse.de>
579
580 PR target/87835
581 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
582 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
583
584 2019-01-15 Tom de Vries <tdevries@suse.de>
585
586 PR target/80547
587 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
588 New test.
589
590 2019-01-12 Tom de Vries <tdevries@suse.de>
591
592 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
593 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
594 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
595 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
596
597 2019-01-12 Tom de Vries <tdevries@suse.de>
598
599 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
600
601 2019-01-12 Tom de Vries <tdevries@suse.de>
602
603 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
604 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
605 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
606
607 2019-01-12 Tom de Vries <tdevries@suse.de>
608
609 PR target/85486
610 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
611 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
612
613 2019-01-12 Tom de Vries <tdevries@suse.de>
614
615 PR target/85381
616 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
617 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
618
619 2019-01-12 Tom de Vries <tdevries@suse.de>
620
621 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
622 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
623 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
624
625 2019-01-12 Tom de Vries <tdevries@suse.de>
626
627 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
628 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
629 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
630
631 2019-01-12 Tom de Vries <tdevries@suse.de>
632
633 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
634 resources diagnostic.
635
636 2019-01-12 Tom de Vries <tdevries@suse.de>
637
638 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
639 vector length to be 128.
640 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
641 length 2097152 to be reduced to 1024 instead of 32.
642
643 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
644 James Norris <jnorris@codesourcery.com>
645
646 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
647 Library Routines", and "Environment Variables".
648
649 2019-01-11 Tom de Vries <tdevries@suse.de>
650
651 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
652 num_workers 16.
653
654 2019-01-11 Tom de Vries <tdevries@suse.de>
655
656 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
657 -foffload=-w.
658 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
659 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
660 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
661 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
662
663 2019-01-11 Tom de Vries <tdevries@suse.de>
664
665 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
666 test.
667
668 2019-01-10 Nathan Sidwell <nathan@acm.org>
669 Julian Brown <julian@codesourcery.com>
670
671 PR lto/71959
672 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
673 * testsuite/libgomp.oacc-c++/pr71959.C: New.
674
675 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
676
677 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
678 and paste code.
679
680 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
681
682 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
683 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
684 write.
685
686 2019-01-09 Tom de Vries <tdevries@suse.de>
687
688 PR target/88756
689 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
690 #define instead of "const int".
691 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
692 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
693 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
694 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
695
696 2019-01-09 Tom de Vries <tdevries@suse.de>
697
698 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
699 one worker.
700
701 2019-01-07 Tom de Vries <tdevries@suse.de>
702
703 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
704 GOMP_OPENACC_DIM argument.
705
706 2019-01-03 Tom de Vries <tdevries@suse.de>
707
708 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
709 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
710
711 2019-01-01 Jakub Jelinek <jakub@redhat.com>
712
713 Update copyright years.
714
715 2019-01-01 Jakub Jelinek <jakub@redhat.com>
716
717 * libgomp.texi: Bump @copying's copyright year.
718
719 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
720
721 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
722 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
723 (GOACC_declare): Redefine the "device" argument to "flags".
724
725 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
726 Cesar Philippidis <cesar@codesourcery.com>
727
728 * target.c (struct gomp_coalesce_chunk): New structure.
729 (struct gomp_coalesce_buf): Update the chunks member to use that
730 type. Adjust all users.
731
732 2018-12-19 Tom de Vries <tdevries@suse.de>
733
734 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
735 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
736 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
737
738 2018-12-19 Tom de Vries <tdevries@suse.de>
739
740 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
741 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
742 gcc/testsuite/gcc.dg/goacc.
743 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
744
745 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
746 Chung-Lin Tang <cltang@codesourcery.com>
747
748 * oacc-mem.c (acc_present_or_create): Remove definition and change
749 to alias of acc_create.
750 (acc_present_or_copyin): Remove definition and change to alias of
751 acc_copyin.
752 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
753 of acc_present_or_create.
754 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
755 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
756 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
757 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
758 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
759 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
760 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
761 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
762 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
763 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
764 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
765 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
766 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
767 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
768 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
769 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
770
771 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
772
773 PR libgomp/88495
774 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
775 "identical parameters".
776 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
777 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
778
779 PR libgomp/88484
780 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
781 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
782
783 PR libgomp/88407
784 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
785 (nvptx_wait_async): Unseen async-argument is a no-op.
786 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
787 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
788 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
789 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
790 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
791 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
792 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
793 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
794 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
795
796 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
797 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
798
799 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
800
801 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
802 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
803 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
804
805 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
806
807 PR libgomp/88370
808 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
809 (acc_set_cuda_stream): Clarify.
810 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
811 "async_valid_p".
812 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
813 acc_async_sync".
814 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
815 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
816 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
817 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
818
819 2018-12-14 Tom de Vries <tdevries@suse.de>
820
821 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
822 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
823 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
824 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
825 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
826
827 2018-12-13 Tom de Vries <tdevries@suse.de>
828
829 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
830 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
831 * fortran.c (omp_display_affinity_): ... here.
832 * libgomp.h (gomp_print_string): Declare.
833 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
834 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
835 write.
836
837 2018-12-13 Jakub Jelinek <jakub@redhat.com>
838
839 PR libgomp/88460
840 * testsuite/libgomp.c++/for-24.C (results): Include it in
841 omp declare target region.
842 (main): Use map (always, tofrom: results) instead of
843 map (tofrom: results).
844
845 2018-12-12 Jakub Jelinek <jakub@redhat.com>
846
847 PR fortran/88463
848 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
849 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
850
851 * testsuite/libgomp.c-c++-common/for-16.c: New test.
852
853 2018-12-12 Andreas Schwab <schwab@suse.de>
854
855 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
856 clobbered.
857
858 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
859
860 PR fortran/88411
861 * testsuite/libgomp.fortran/async_io_8.f90: New test.
862
863 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
864 Jakub Jelinek <jakub@redhat.com>
865
866 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
867 devicep->host2dev_func.
868
869 2018-12-08 Jakub Jelinek <jakub@redhat.com>
870
871 PR libgomp/87995
872 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
873 tls_runtime effective target.
874 (t): New threadprivate variable.
875 (main): Set t in threads which execute iterations of the worksharing
876 loop. Propagate that to the task after the loop and don't abort
877 if the current taskgroup hasn't been cancelled.
878
879 2018-12-02 Jakub Jelinek <jakub@redhat.com>
880
881 * testsuite/libgomp.c/task-reduction-3.c: New test.
882
883 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
884
885 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
886
887 PR libgomp/88288
888 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
889 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
890
891 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
892
893 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
894
895 2018-10-19 Richard Biener <rguenther@suse.de>
896
897 PR tree-optimization/88182
898 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
899
900 2018-11-26 Jakub Jelinek <jakub@redhat.com>
901
902 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
903 (RUNTEST): Don't define.
904 (RUNTESTDEFAULTFLAGS): Add.
905 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
906 (distclean-am): Depend on distclean-DEJAGNU.
907 (check-am): If -j% option is present in MFLAGS and if
908 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
909 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
910 * testsuite/Makefile.in: Regenerated.
911
912 2018-11-26 Richard Biener <rguenther@suse.de>
913
914 PR tree-optimization/88182
915 * testsuite/libgomp.c++/pr88182.C: New testcase.
916
917 2018-11-20 Jakub Jelinek <jakub@redhat.com>
918
919 PR bootstrap/88106
920 * config/mingw32/affinity-fmt.c: New file.
921
922 2018-11-09 Jakub Jelinek <jakub@redhat.com>
923
924 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
925 (gomp_display_affinity): Use __builtin_choose_expr to handle
926 properly handle argument having integral, or pointer or some other
927 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
928 with uint64_t type instead of %llx and unsigned long long.
929
930 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
931 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
932
933 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
934
935 * affinity.c: Include <string.h>, <stdio.h>.
936 (gomp_display_affinity_place): Remove cpusetp.
937 * teams.c: Include <limits.h>.
938
939 2018-11-08 Jakub Jelinek <jakub@redhat.com>
940
941 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
942 in_reduction clause for s[0].
943
944 * affinity.c (gomp_display_affinity_place): New function.
945 * affinity-fmt.c: New file.
946 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
947 * config/linux/affinity.c (gomp_display_affinity_place): New function.
948 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
949 Move these functions to ...
950 * config/nvptx/teams.c: ... here. New file.
951 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
952 New functions.
953 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
954 functions.
955 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
956 and _aligned_malloc.
957 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
958 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
959 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
960 gomp_affinity_format_len): New variables.
961 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
962 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
963 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
964 modifiers. Display (non-default) chunk sizes. Print
965 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
966 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
967 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
968 * fortran.c: Include stdio.h and string.h.
969 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
970 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
971 (omp_set_affinity_format_, omp_get_affinity_format_,
972 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
973 omp_pause_resource_all_): New functions.
974 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
975 switch.
976 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
977 functions to ...
978 * teams.c: ... here. New file.
979 * libgomp_g.h: Include gstdint.h.
980 (GOMP_loop_nonmonotonic_runtime_start,
981 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
982 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
983 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
984 GOMP_parallel_loop_nonmonotonic_runtime,
985 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
986 GOMP_loop_ull_nonmonotonic_runtime_start,
987 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
988 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
989 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
990 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
991 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
992 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
993 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
994 GOMP_teams_reg): Declare.
995 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
996 gomp_aligned_alloc uses fallback implementation.
997 (gomp_aligned_alloc, gomp_aligned_free): Declare.
998 (enum gomp_schedule_type): Add GFS_MONOTONIC.
999 (struct gomp_doacross_work_share): Add extra field.
1000 (struct gomp_work_share): Add task_reductions field.
1001 (struct gomp_taskgroup): Add workshare and reductions fields.
1002 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
1003 (gomp_thread_handle): New typedef.
1004 (gomp_display_affinity_place, gomp_set_affinity_format,
1005 gomp_display_string, gomp_display_affinity,
1006 gomp_display_affinity_thread): Declare.
1007 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
1008 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
1009 gomp_workshare_task_reduction_register): Declare.
1010 (gomp_team_start): Add taskgroup argument.
1011 (gomp_pause_host): Declare.
1012 (gomp_init_work_share, gomp_work_share_start): Change bool argument
1013 to size_t.
1014 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
1015 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
1016 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
1017 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1018 GOMP_loop_ull_doacross_start,
1019 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1020 GOMP_loop_maybe_nonmonotonic_runtime_next,
1021 GOMP_loop_maybe_nonmonotonic_runtime_start,
1022 GOMP_loop_nonmonotonic_runtime_next,
1023 GOMP_loop_nonmonotonic_runtime_start,
1024 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1025 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1026 GOMP_loop_ull_nonmonotonic_runtime_next,
1027 GOMP_loop_ull_nonmonotonic_runtime_start,
1028 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1029 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
1030 GOMP_taskgroup_reduction_register,
1031 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1032 GOMP_teams_reg and GOMP_taskwait_depend.
1033 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
1034 omp_{capture,display}_affinity{,_}, and
1035 omp_[gs]et_affinity_format{,_}.
1036 * loop.c: Include string.h.
1037 (GOMP_loop_runtime_next): Add ialias.
1038 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1039 (gomp_loop_static_start, gomp_loop_dynamic_start,
1040 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1041 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1042 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
1043 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
1044 or gomp_doacross_init callers.
1045 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
1046 GOMP_loop_doacross_start): New functions.
1047 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1048 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
1049 Mask off GFS_MONOTONIC bit.
1050 (GOMP_loop_maybe_nonmonotonic_runtime_next,
1051 GOMP_loop_maybe_nonmonotonic_runtime_start,
1052 GOMP_loop_nonmonotonic_runtime_next,
1053 GOMP_loop_nonmonotonic_runtime_start,
1054 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1055 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
1056 functions.
1057 (gomp_parallel_loop_start): Pass NULL as taskgroup to
1058 gomp_team_start.
1059 * loop_ull.c: Include string.h.
1060 (GOMP_loop_ull_runtime_next): Add ialias.
1061 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1062 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
1063 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
1064 gomp_loop_ull_ordered_dynamic_start,
1065 gomp_loop_ull_ordered_guided_start,
1066 gomp_loop_ull_doacross_static_start,
1067 gomp_loop_ull_doacross_dynamic_start,
1068 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
1069 and gomp_doacross_ull_init callers.
1070 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1071 GOMP_loop_ull_doacross_start): New functions.
1072 (GOMP_loop_ull_runtime_start,
1073 GOMP_loop_ull_ordered_runtime_start,
1074 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
1075 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1076 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1077 GOMP_loop_ull_nonmonotonic_runtime_next,
1078 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
1079 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
1080 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
1081 (omp_pause_resource_t, omp_depend_t): New typedefs.
1082 (enum omp_lock_hint_t): Renamed to ...
1083 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
1084 enumerators using numbers and omp_lock_hint_* as their aliases.
1085 (omp_lock_hint_t): New typedef. Rename to ...
1086 (omp_sync_hint_t): ... this.
1087 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
1088 omp_sync_hint_t instead of omp_lock_hint_t.
1089 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1090 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1091 Declare.
1092 (omp_target_is_present, omp_target_disassociate_ptr):
1093 Change first argument from void * to const void *.
1094 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
1095 from void * to const void *.
1096 (omp_target_associate_ptr): Change first and second arguments from
1097 void * to const void *.
1098 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
1099 omp_pause_hard): New parameters.
1100 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1101 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1102 New interfaces.
1103 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
1104 omp_pause_hard): New parameters.
1105 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1106 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1107 New externals.
1108 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
1109 EXTRA argument. If not needed to prepare array, if extra is 0,
1110 clear ws->doacross, otherwise allocate just doacross structure and
1111 extra payload. If array is needed, allocate also extra payload.
1112 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
1113 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
1114 doacross == NULL.
1115 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
1116 gomp_team_start.
1117 (GOMP_parallel): Likewise. Formatting fix.
1118 (GOMP_parallel_reductions): New function.
1119 (GOMP_cancellation_point): If taskgroup has workshare
1120 flag set, check cancelled of prev taskgroup if any.
1121 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
1122 on prev taskgroup if any.
1123 * sections.c: Include string.h.
1124 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1125 (GOMP_sections_start): Adjust gomp_work_share_start caller.
1126 (GOMP_sections2_start): New function.
1127 (GOMP_parallel_sections_start, GOMP_parallel_sections):
1128 Pass NULL as taskgroup to gomp_team_start.
1129 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
1130 gomp_work_share_start callers.
1131 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
1132 If taskgroup has workshare flag set, check cancelled on prev
1133 taskgroup if any. Guard all cancellation tests with
1134 gomp_cancel_var test.
1135 (omp_target_is_present, omp_target_disassociate_ptr):
1136 Change ptr argument from void * to const void *.
1137 (omp_target_memcpy): Change src argument from void * to const void *.
1138 (omp_target_memcpy_rect): Likewise.
1139 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
1140 instead of char * where needed.
1141 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
1142 from void * to const void *.
1143 (omp_pause_resource, omp_pause_resource_all): New functions.
1144 * task.c (gomp_task_handle_depend): Handle new depend array format
1145 in addition to the old. Handle mutexinoutset kinds the same as
1146 inout for now, handle unspecified kinds.
1147 (gomp_create_target_task): If taskgroup has workshare flag set, check
1148 cancelled on prev taskgroup if any. Guard all cancellation tests with
1149 gomp_cancel_var test. Handle new depend array format count in
1150 addition to the old.
1151 (GOMP_task): Likewise. Adjust function comment.
1152 (gomp_task_run_pre): If taskgroup has workshare flag set, check
1153 cancelled on prev taskgroup if any. Guard all cancellation tests with
1154 gomp_cancel_var test.
1155 (GOMP_taskwait_depend): New function.
1156 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
1157 format in addition to the old. Handle mutexinoutset kinds the same as
1158 inout for now, handle unspecified kinds. Fix a function comment typo.
1159 (gomp_taskgroup_init): New function.
1160 (GOMP_taskgroup_start): Use it.
1161 (gomp_reduction_register, gomp_create_artificial_team,
1162 GOMP_taskgroup_reduction_register,
1163 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1164 gomp_parallel_reduction_register,
1165 gomp_workshare_task_reduction_register,
1166 gomp_workshare_taskgroup_start,
1167 GOMP_workshare_task_reduction_unregister): New functions.
1168 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
1169 check cancelled on prev taskgroup if any. Guard all cancellation
1170 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
1171 by calling GOMP_taskgroup_reduction_register.
1172 * team.c (gomp_thread_attr): Remove comment.
1173 (struct gomp_thread_start_data): Add handle field.
1174 (gomp_thread_start): Call pthread_detach.
1175 (gomp_new_team): Adjust gomp_init_work_share caller.
1176 (gomp_free_pool_helper): Call pthread_detach.
1177 (gomp_team_start): Add taskgroup argument, initialize implicit
1178 tasks' taskgroup field to that. Don't call
1179 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
1180 (gomp_team_end): Determine nesting by thr->ts.level != 0
1181 rather than thr->ts.team != NULL.
1182 (gomp_pause_pool_helper, gomp_pause_host): New functions.
1183 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1184 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1185 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1186 if more than 1 allocate also extra payload at the end of array. Never
1187 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1188 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1189 return true instead of ws.
1190 * Makefile.in: Regenerated.
1191 * configure: Regenerated.
1192 * config.h.in: Regenerated.
1193 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1194 in some cases.
1195 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1196 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1197 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1198 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1199 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1200 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1201 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1202 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1203 * testsuite/libgomp.c-c++-common/for-10.c: New test.
1204 * testsuite/libgomp.c-c++-common/for-11.c: New test.
1205 * testsuite/libgomp.c-c++-common/for-12.c: New test.
1206 * testsuite/libgomp.c-c++-common/for-13.c: New test.
1207 * testsuite/libgomp.c-c++-common/for-14.c: New test.
1208 * testsuite/libgomp.c-c++-common/for-15.c: New test.
1209 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1210 define a different N(test), don't define N(f0) to N(f14), but instead
1211 define N(f20) to N(f34) using != comparisons.
1212 * testsuite/libgomp.c-c++-common/for-7.c: New test.
1213 * testsuite/libgomp.c-c++-common/for-8.c: New test.
1214 * testsuite/libgomp.c-c++-common/for-9.c: New test.
1215 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1216 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1217 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1218 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1219 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1220 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1221 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1222 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1223 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1224 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1225 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1226 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1227 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1228 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1229 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1230 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1231 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1232 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1233 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1234 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1235 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1236 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1237 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1238 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1239 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1240 * testsuite/libgomp.c++/depend-1.C: New test.
1241 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1242 * testsuite/libgomp.c++/depobj-1.C: New test.
1243 * testsuite/libgomp.c++/for-16.C: New test.
1244 * testsuite/libgomp.c++/for-21.C: New test.
1245 * testsuite/libgomp.c++/for-22.C: New test.
1246 * testsuite/libgomp.c++/for-23.C: New test.
1247 * testsuite/libgomp.c++/for-24.C: New test.
1248 * testsuite/libgomp.c++/for-25.C: New test.
1249 * testsuite/libgomp.c++/for-26.C: New test.
1250 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1251 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1252 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1253 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1254 * testsuite/libgomp.c++/task-reduction-10.C: New test.
1255 * testsuite/libgomp.c++/task-reduction-11.C: New test.
1256 * testsuite/libgomp.c++/task-reduction-12.C: New test.
1257 * testsuite/libgomp.c++/task-reduction-13.C: New test.
1258 * testsuite/libgomp.c++/task-reduction-14.C: New test.
1259 * testsuite/libgomp.c++/task-reduction-15.C: New test.
1260 * testsuite/libgomp.c++/task-reduction-16.C: New test.
1261 * testsuite/libgomp.c++/task-reduction-17.C: New test.
1262 * testsuite/libgomp.c++/task-reduction-18.C: New test.
1263 * testsuite/libgomp.c++/task-reduction-19.C: New test.
1264 * testsuite/libgomp.c/task-reduction-1.c: New test.
1265 * testsuite/libgomp.c++/task-reduction-1.C: New test.
1266 * testsuite/libgomp.c/task-reduction-2.c: New test.
1267 * testsuite/libgomp.c++/task-reduction-2.C: New test.
1268 * testsuite/libgomp.c++/task-reduction-3.C: New test.
1269 * testsuite/libgomp.c++/task-reduction-4.C: New test.
1270 * testsuite/libgomp.c++/task-reduction-5.C: New test.
1271 * testsuite/libgomp.c++/task-reduction-6.C: New test.
1272 * testsuite/libgomp.c++/task-reduction-7.C: New test.
1273 * testsuite/libgomp.c++/task-reduction-8.C: New test.
1274 * testsuite/libgomp.c++/task-reduction-9.C: New test.
1275 * testsuite/libgomp.c/teams-1.c: New test.
1276 * testsuite/libgomp.c/teams-2.c: New test.
1277 * testsuite/libgomp.c/thread-limit-4.c: New test.
1278 * testsuite/libgomp.c/thread-limit-5.c: New test.
1279 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1280
1281 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
1282
1283 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1284 acc_memcpy_to/from_device functions, now with async parameter.
1285 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1286 (acc_memcpy_from_device): Likewise.
1287 (acc_memcpy_to_device_async): New API function.
1288 (acc_memcpy_from_device_async): Likewise.
1289 (present_create_copy): Add async parameter and async setting/unsetting.
1290 (acc_create): Adjust present_create_copy call.
1291 (acc_copyin): Likewise.
1292 (acc_present_or_create): Likewise.
1293 (acc_present_or_copyin): Likewise.
1294 (acc_create_async): New API function.
1295 (acc_copyin_async): New API function.
1296 (delete_copyout): Add async parameter and async setting/unsetting.
1297 (acc_delete): Adjust delete_copyout call.
1298 (acc_copyout): Likewise.
1299 (acc_delete_async): New API function.
1300 (acc_copyout_async): Likewise.
1301 (update_dev_host): Add async parameter and async setting/unsetting.
1302 (acc_update_device): Adjust update_dev_host call.
1303 (acc_update_self): Likewise.
1304 (acc_update_device_async): New API function.
1305 (acc_update_self_async): Likewise.
1306 * openacc.h (acc_copyin_async): Declare new API function.
1307 (acc_create_async): Likewise.
1308 (acc_copyout_async): Likewise.
1309 (acc_delete_async): Likewise.
1310 (acc_update_device_async): Likewise.
1311 (acc_update_self_async): Likewise.
1312 (acc_memcpy_to_device_async): Likewise.
1313 (acc_memcpy_from_device_async): Likewise.
1314 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1315 (acc_copyin_async_64_h): New subroutine.
1316 (acc_copyin_async_array_h): New subroutine.
1317 (acc_create_async_32_h): New subroutine.
1318 (acc_create_async_64_h): New subroutine.
1319 (acc_create_async_array_h): New subroutine.
1320 (acc_copyout_async_32_h): New subroutine.
1321 (acc_copyout_async_64_h): New subroutine.
1322 (acc_copyout_async_array_h): New subroutine.
1323 (acc_delete_async_32_h): New subroutine.
1324 (acc_delete_async_64_h): New subroutine.
1325 (acc_delete_async_array_h): New subroutine.
1326 (acc_update_device_async_32_h): New subroutine.
1327 (acc_update_device_async_64_h): New subroutine.
1328 (acc_update_device_async_array_h): New subroutine.
1329 (acc_update_self_async_32_h): New subroutine.
1330 (acc_update_self_async_64_h): New subroutine.
1331 (acc_update_self_async_array_h): New subroutine.
1332 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1333 (acc_copyin_async_64_h): New subroutine.
1334 (acc_copyin_async_array_h): New subroutine.
1335 (acc_create_async_32_h): New subroutine.
1336 (acc_create_async_64_h): New subroutine.
1337 (acc_create_async_array_h): New subroutine.
1338 (acc_copyout_async_32_h): New subroutine.
1339 (acc_copyout_async_64_h): New subroutine.
1340 (acc_copyout_async_array_h): New subroutine.
1341 (acc_delete_async_32_h): New subroutine.
1342 (acc_delete_async_64_h): New subroutine.
1343 (acc_delete_async_array_h): New subroutine.
1344 (acc_update_device_async_32_h): New subroutine.
1345 (acc_update_device_async_64_h): New subroutine.
1346 (acc_update_device_async_array_h): New subroutine.
1347 (acc_update_self_async_32_h): New subroutine.
1348 (acc_update_self_async_64_h): New subroutine.
1349 (acc_update_self_async_array_h): New subroutine.
1350 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1351 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1352 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1353 acc_memcpy_to_device_async*, acc_update_device_async*, and
1354 acc_update_self_async* entries.
1355 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1356 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1357 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1358
1359 2018-10-31 Joseph Myers <joseph@codesourcery.com>
1360
1361 PR bootstrap/82856
1362 * Makefile.am: Include multilib.am
1363 (AUTOMAKE_OPTIONS): Add info-in-builddir.
1364 (CLEANFILES): Remove libgomp.info.
1365 * configure.ac: Remove AC_PREREQ.
1366 * testsuite/Makefile.am (RUNTEST): Remove quotes.
1367 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
1368 Regenerate.
1369
1370 2018-10-29 Joseph Myers <joseph@codesourcery.com>
1371 Julian Brown <julian@codesourcery.com>
1372
1373 * testsuite/libgomp.oacc-c++/this.C: New.
1374
1375 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
1376
1377 * plugin/plugin-nvptx.c (struct cuda_map): New.
1378 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
1379 h_tail with (cuda_map *) map.
1380 (cuda_map_create): New function.
1381 (cuda_map_destroy): New function.
1382 (map_init): Update to use a linked list of cuda_map objects.
1383 (map_fini): Likewise.
1384 (map_pop): Likewise.
1385 (map_push): Likewise. Return CUdeviceptr instead of void.
1386 (init_streams_for_device): Remove stales references to ptx_stream
1387 members.
1388 (select_stream_for_async): Likewise.
1389 (nvptx_exec): Update call to map_init.
1390
1391 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
1392 Julian Brown <julian@codesourcery.com>
1393
1394 PR middle-end/86336
1395 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
1396
1397 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
1398 Thomas Koenig <tkoenig@gcc.gnu.org>
1399
1400 PR fortran/25829
1401 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1402 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1403 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1404 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1405 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1406 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1407 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1408
1409 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
1410 Tom de Vries <tdevries@suse.de>
1411
1412 PR target/85590
1413 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
1414 (cuOccupancyMaxPotentialBlockSize): Declare.
1415 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
1416 CUDA_ONE_CALL_MAYBE_NULL.
1417 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
1418 CUoccupancyB2DSize and declare
1419 cuOccupancyMaxPotentialBlockSize.
1420 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
1421 default num_gangs and num_workers when the driver supports it.
1422
1423 2018-08-08 Tom de Vries <tdevries@suse.de>
1424
1425 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
1426 CUDA_ONE_CALL_MAYBE_NULL.
1427 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
1428 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
1429 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
1430 are not found.
1431
1432 2018-08-08 Tom de Vries <tdevries@suse.de>
1433
1434 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
1435 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
1436 present.
1437
1438 2018-08-08 Tom de Vries <tdevries@suse.de>
1439
1440 * plugin/plugin-nvptx.c
1441 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
1442 (nvptx_open_device): Use
1443 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
1444
1445 2018-08-08 Tom de Vries <tdevries@suse.de>
1446
1447 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
1448 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
1449
1450 2018-08-07 Tom de Vries <tdevries@suse.de>
1451
1452 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
1453 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
1454 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
1455 corresponding call in CUDA_ONE_CALL. Add def/undef of
1456 CUDA_ONE_CALL_MAYBE_NULL.
1457 (CUDA_CALL_EXISTS): Define.
1458
1459 2018-08-07 Tom de Vries <tdevries@suse.de>
1460
1461 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
1462 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
1463 corresponding undefs right after.
1464
1465 2018-08-04 Tom de Vries <tdevries@suse.de>
1466
1467 * plugin/configfrag.ac: For --without-cuda-driver, set
1468 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
1469 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
1470 * configure: Regenerate.
1471
1472 2018-08-02 Tom de Vries <tdevries@suse.de>
1473
1474 PR target/86660
1475 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
1476 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
1477 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
1478 Same.
1479 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
1480 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
1481 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
1482
1483 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1484 Thomas Schwinge <thomas@codesourcery.com>
1485
1486 * config/nvptx/oacc-parallel.c: Truncate.
1487
1488 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1489 James Norris <jnorris@codesourcery.com>
1490
1491 * plugin/plugin-nvptx.c (struct map): Removed.
1492 (map_init, map_pop): Remove use of struct map.
1493 (map_push): Likewise and change argument list.
1494 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1495
1496 2018-08-01 Tom de Vries <tdevries@suse.de>
1497
1498 * plugin/cuda-lib.def: New file. Factor out of ...
1499 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1500 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1501 using CUDA_CALLS.
1502
1503 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1504
1505 Revert 'AsyncI/O patch committed'.
1506 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1507 Thomas Koenig <tkoenig@gcc.gnu.org>
1508
1509 PR fortran/25829
1510 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1511 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1512 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1513 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1514 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1515 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1516 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1517
1518 2018-07-30 Tom de Vries <tdevries@suse.de>
1519
1520 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1521 (nvptx_exec): Ensure worker and vector default dims don't exceed
1522 targ_fn->max_threads_per_block.
1523
1524 2018-07-30 Tom de Vries <tdevries@suse.de>
1525
1526 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1527 (nvptx_open_device): Init default_dims for device.
1528 (nvptx_exec): Use default_dims from device.
1529
1530 2018-07-26 Jakub Jelinek <jakub@redhat.com>
1531
1532 PR testsuite/86660
1533 * testsuite/libgomp.c++/for-15.C (results): Include it in
1534 omp declare target region.
1535 (main): Use map (always, tofrom: results) instead of
1536 map (tofrom: results).
1537
1538 PR middle-end/86660
1539 * testsuite/libgomp.c/pr86660.c: New test.
1540
1541 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1542 Tom de Vries <tdevries@suse.de>
1543
1544 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1545 sufficient resources to launch a kernel, and give a hint on how to fix
1546 it.
1547
1548 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1549 Tom de Vries <tdevries@suse.de>
1550
1551 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1552 max_threads_per_block and max_threads_per_multiprocessor fields.
1553 (nvptx_open_device): Initialize new fields.
1554 (nvptx_exec): Use num_sms, and new fields.
1555
1556 2018-07-26 Tom de Vries <tdevries@suse.de>
1557
1558 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1559 to correct locations. Remove xfail.
1560
1561 2018-07-26 Tom de Vries <tdevries@suse.de>
1562
1563 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1564 acc_wait. Move acc_async_test calls to correct locations. Remove
1565 xfail.
1566
1567 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1568 Thomas Koenig <tkoenig@gcc.gnu.org>
1569
1570 PR fortran/25829
1571 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1572 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1573 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1574 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1575 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1576 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1577 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1578
1579 2018-07-17 Jakub Jelinek <jakub@redhat.com>
1580
1581 PR middle-end/86542
1582 * testsuite/libgomp.c++/pr86542.C: New test.
1583
1584 PR middle-end/86539
1585 * testsuite/libgomp.c++/pr86539.C: New test.
1586
1587 2018-07-11 Jakub Jelinek <jakub@redhat.com>
1588
1589 PR c++/86443
1590 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1591 (results): Make sure the variable is not inside declare target region.
1592 (qux): Remove unused function.
1593
1594 2018-07-10 Jakub Jelinek <jakub@redhat.com>
1595
1596 PR c++/86443
1597 * testsuite/libgomp.c++/for-15.C: New test.
1598
1599 2018-06-26 Jakub Jelinek <jakub@redhat.com>
1600
1601 PR c++/86291
1602 * testsuite/libgomp.c++/pr86291.C: New test.
1603
1604 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
1605
1606 * libgomp.texi (Top): Move www.openmp.org to https.
1607 (Enabling OpenMP): Ditto.
1608 (omp_get_active_level): Ditto.
1609 (omp_get_ancestor_thread_num): Ditto.
1610 (omp_get_cancellation): Ditto.
1611 (omp_get_default_device): Ditto.
1612 (omp_get_dynamic): Ditto.
1613 (omp_get_level): Ditto.
1614 (omp_get_max_active_levels): Ditto.
1615 (omp_get_max_task_priority): Ditto.
1616 (omp_get_max_threads): Ditto.
1617 (omp_get_nested): Ditto.
1618 (omp_get_num_devices): Ditto.
1619 (omp_get_num_procs): Ditto.
1620 (omp_get_num_teams): Ditto.
1621 (omp_get_num_threads): Ditto.
1622 (omp_get_proc_bind): Ditto.
1623 (omp_get_schedule): Ditto.
1624 (omp_get_team_num): Ditto.
1625 (omp_get_team_size): Ditto.
1626 (omp_get_thread_limit): Ditto.
1627 (omp_get_thread_num): Ditto.
1628 (omp_in_parallel): Ditto.
1629 (omp_in_final): Ditto.
1630 (omp_is_initial_device): Ditto.
1631 (omp_set_default_device): Ditto.
1632 (omp_set_dynamic): Ditto.
1633 (omp_set_max_active_levels): Ditto.
1634 (omp_set_nested): Ditto.
1635 (omp_set_num_threads): Ditto.
1636 (omp_set_schedule): Ditto.
1637 (omp_init_lock): Ditto.
1638 (omp_set_lock): Ditto.
1639 (omp_test_lock): Ditto.
1640 (omp_unset_lock): Ditto.
1641 (omp_destroy_lock): Ditto.
1642 (omp_init_nest_lock): Ditto.
1643 (omp_set_nest_lock): Ditto.
1644 (omp_test_nest_lock): Ditto.
1645 (omp_unset_nest_lock): Ditto.
1646 (omp_destroy_nest_lock): Ditto.
1647 (omp_get_wtick): Ditto.
1648 (omp_get_wtime): Ditto.
1649 (OMP_CANCELLATION): Ditto.
1650 (OMP_DISPLAY_ENV): Ditto.
1651 (OMP_DEFAULT_DEVICE): Ditto.
1652 (OMP_DYNAMIC): Ditto.
1653 (OMP_MAX_ACTIVE_LEVELS): Ditto.
1654 (OMP_MAX_TASK_PRIORITY): Ditto.
1655 (OMP_NESTED): Ditto.
1656 (OMP_NUM_THREADS): Ditto.
1657 (OMP_PROC_BIND): Ditto.
1658 (OMP_PLACES): Ditto.
1659 (OMP_STACKSIZE): Ditto.
1660 (OMP_SCHEDULE): Ditto.
1661 (OMP_THREAD_LIMIT): Ditto.
1662 (OMP_WAIT_POLICY): Ditto.
1663
1664 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
1665 James Norris <jnorris@codesourcery.com>
1666 Julian Brown <julian@codesourcery.com>
1667 Thomas Schwinge <thomas@codesourcery.com>
1668 Tom de Vries <tom@codesourcery.com>
1669
1670 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1671 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1672 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1673 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1674 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1675 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1676 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1677 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1678 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1679 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1680 Likewise.
1681 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1682 Likewise.
1683 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1684 Likewise.
1685 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1686 Likewise.
1687 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1688 Likewise.
1689 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1690 Likewise.
1691 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1692 Likewise.
1693 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1694 Likewise.
1695 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1696 Likewise.
1697 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1698 Likewise.
1699 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1700 Likewise.
1701 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1702 Likewise.
1703 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1704 Likewise.
1705 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1706 Likewise.
1707 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1708 Likewise.
1709 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1710 Likewise.
1711 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1712 Likewise.
1713 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1714 Likewise.
1715 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1716 Likewise.
1717 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1718 Likewise.
1719 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1720 Likewise.
1721 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1722 Likewise.
1723 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1724 Likewise.
1725 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1726 Likewise.
1727 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1728 Likewise.
1729 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1730 Likewise.
1731 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1732 Likewise.
1733 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1734 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1735 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1736 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1737 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1738 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1739 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1740 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1741 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1742 Likewise.
1743 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1744 Likewise.
1745 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1746 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1747 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1748 Likewise.
1749 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1750 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1751 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1752 Likewise.
1753 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1754 Likewise.
1755 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1756 Likewise.
1757 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1758 Likewise.
1759 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1760 Likewise.
1761 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1762 Likewise.
1763 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1764 Likewise.
1765 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1766 Likewise.
1767 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1768 Likewise.
1769 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1770 Likewise.
1771 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1772 Likewise.
1773 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1774 Likewise.
1775 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1776 Likewise.
1777 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1778 Likewise.
1779 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1780 Likewise.
1781 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1782 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1783 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1784 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1785 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1786 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1787 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1788
1789 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1790 Thomas Schwinge <thomas@codesourcery.com>
1791 Cesar Philippidis <cesar@codesourcery.com>
1792
1793 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1794 (gomp_acc_remove_pointer): Update declaration.
1795 (gomp_acc_declare_allocate): Declare.
1796 (gomp_remove_var): Declare.
1797 * libgomp.map (OACC_2.5): Define.
1798 * oacc-mem.c (acc_map_data): Update refcount.
1799 (acc_unmap_data): Likewise.
1800 (present_create_copy): Likewise.
1801 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1802 (acc_copyin): Likewise.
1803 (FLAG_FINALIZE): Define.
1804 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1805 (acc_delete_finalize): New function.
1806 (acc_delete_finalize_async): New function.
1807 (acc_copyout_finalize): New function.
1808 (acc_copyout_finalize_async): New function.
1809 (gomp_acc_insert_pointer): Update refcounts.
1810 (gomp_acc_remove_pointer): Return if data is not present on the
1811 accelerator.
1812 * oacc-parallel.c (find_pset): Rename to find_pointer.
1813 (find_pointer): Add support for GOMP_MAP_POINTER.
1814 (handle_ftn_pointers): New function.
1815 (GOACC_parallel_keyed): Update refcounts of variables.
1816 (GOACC_enter_exit_data): Add support for finalized data mappings.
1817 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1818 of fortran arrays.
1819 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1820 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1821 for GOMP_MAP_FORCE_FROM.
1822 * openacc.f90 (module openacc_internal): Add
1823 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1824 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1825 acc_copyout_finalize and acc_delete_finalize.
1826 (acc_copyout_finalize_32_h): New subroutine.
1827 (acc_copyout_finalize_64_h): New subroutine.
1828 (acc_copyout_finalize_array_h): New subroutine.
1829 (acc_delete_finalize_32_h): New subroutine.
1830 (acc_delete_finalize_64_h): New subroutine.
1831 (acc_delete_finalize_array_h): New subroutine.
1832 * openacc.h (acc_copyout_finalize): Declare.
1833 (acc_copyout_finalize_async): Declare.
1834 (acc_delete_finalize): Declare.
1835 (acc_delete_finalize_async): Declare.
1836 * openacc_lib.h (acc_copyout_finalize): New interface.
1837 (acc_delete_finalize): New interface.
1838 * target.c (gomp_map_vars): Update dynamic_refcount.
1839 (gomp_remove_var): New function.
1840 (gomp_unmap_vars): Use it.
1841 (gomp_unload_image_from_device): Likewise.
1842 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1843 case to utilize OpenACC 2.5 data clause semantics.
1844 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1845 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1846 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1847 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1848 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1849 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1850 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1851 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1852 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1853 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1854 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1855 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1856 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1857 utilize OpenACC 2.5 data clause semantics.
1858 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1859 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1860 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1861 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1862 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1863 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1864 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1865 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1866 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1867
1868 2018-05-21 Janus Weil <janus@gcc.gnu.org>
1869
1870 PR fortran/85841
1871 PR testsuite/85865
1872 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1873 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1874 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1875 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1876 * testsuite/libgomp.fortran/task2.f90: Ditto.
1877 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1878 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1879 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1880 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1881 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1882 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1883 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1884 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1885 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1886
1887 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
1888
1889 PR c++/85782
1890 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1891
1892 2018-05-09 Tom de Vries <tom@codesourcery.com>
1893
1894 PR libgomp/82901
1895 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1896 to GOACC_enter_exit_data.
1897
1898 2018-05-09 Tom de Vries <tom@codesourcery.com>
1899
1900 PR libgomp/83792
1901 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1902 (async_synchronous_p): New function.
1903 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1904 async_valid_p.
1905 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1906 async_valid_stream_id_p.
1907 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1908 * oacc-parallel.c (GOACC_parallel_keyed): Same.
1909
1910 2018-05-07 Tom de Vries <tom@codesourcery.com>
1911
1912 PR testsuite/85677
1913 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1914 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1915
1916 2018-05-03 Tom de Vries <tom@codesourcery.com>
1917
1918 PR testsuite/85106
1919 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1920 extra_tool_flags if it contains an -foffload=-fdump-* flag.
1921 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1922 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1923
1924 2018-05-02 Tom de Vries <tom@codesourcery.com>
1925
1926 PR libgomp/85411
1927 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1928 GOMP_OPENACC_DIM ...
1929 * env.c (parse_gomp_openacc_dim): ... here. New function.
1930 (initialize_env): Call parse_gomp_openacc_dim.
1931 (goacc_default_dims): Define.
1932 * libgomp.h (goacc_default_dims): Declare.
1933 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1934 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1935 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1936 GOMP_PLUGIN_acc_default_dim.
1937 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1938 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1939
1940 2018-05-02 Tom de Vries <tom@codesourcery.com>
1941
1942 PR testsuite/83791
1943 * testsuite/libgomp.c++/udr-9.C: Update.
1944 * testsuite/libgomp.c++/atomic-16.C: Remove.
1945 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1946 * testsuite/libgomp.c++/loop-13.C: Remove.
1947 * testsuite/libgomp.c++/loop-14.C: Remove.
1948 * testsuite/libgomp.c++/loop-15.C: Remove.
1949 * testsuite/libgomp.c++/monotonic-1.C: Remove.
1950 * testsuite/libgomp.c++/monotonic-2.C: Remove.
1951 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1952 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1953 * testsuite/libgomp.c++/ordered-1.C: Remove.
1954 * testsuite/libgomp.c++/pr45784.C: Remove.
1955 * testsuite/libgomp.c++/pr64824.C: Remove.
1956 * testsuite/libgomp.c++/pr64868.C: Remove.
1957 * testsuite/libgomp.c++/pr66199-1.C: Remove.
1958 * testsuite/libgomp.c++/pr66199-2.C: Remove.
1959 * testsuite/libgomp.c++/pr66199-3.C: Remove.
1960 * testsuite/libgomp.c++/pr66199-4.C: Remove.
1961 * testsuite/libgomp.c++/pr66199-5.C: Remove.
1962 * testsuite/libgomp.c++/pr66199-6.C: Remove.
1963 * testsuite/libgomp.c++/pr66199-7.C: Remove.
1964 * testsuite/libgomp.c++/pr66199-8.C: Remove.
1965 * testsuite/libgomp.c++/pr66199-9.C: Remove.
1966 * testsuite/libgomp.c++/pr69389.C: Remove.
1967 * testsuite/libgomp.c++/simd10.C: Remove.
1968 * testsuite/libgomp.c++/simd11.C: Remove.
1969 * testsuite/libgomp.c++/simd12.C: Remove.
1970 * testsuite/libgomp.c++/simd13.C: Remove.
1971 * testsuite/libgomp.c++/target-1.C: Remove.
1972 * testsuite/libgomp.c++/target-3.C: Remove.
1973 * testsuite/libgomp.c++/target-4.C: Remove.
1974 * testsuite/libgomp.c++/target-5.C: Remove.
1975 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1976 * testsuite/libgomp.c++/taskloop-1.C: Remove.
1977 * testsuite/libgomp.c++/taskloop-2.C: Remove.
1978 * testsuite/libgomp.c++/taskloop-3.C: Remove.
1979 * testsuite/libgomp.c++/taskloop-4.C: Remove.
1980 * testsuite/libgomp.c++/udr-9.C: Remove.
1981 * testsuite/libgomp.c++/for-10.C: Remove.
1982 * testsuite/libgomp.c++/for-11.C: Remove.
1983 * testsuite/libgomp.c++/for-12.C: Remove.
1984 * testsuite/libgomp.c++/for-13.C: Remove.
1985 * testsuite/libgomp.c++/for-14.C: Remove.
1986 * testsuite/libgomp.c++/for-9.C: Remove.
1987 * testsuite/libgomp.c/atomic-18.c: Move ...
1988 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
1989 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
1990 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
1991 * testsuite/libgomp.c/loop-13.c: Move ...
1992 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
1993 * testsuite/libgomp.c/loop-14.c: Move ...
1994 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
1995 * testsuite/libgomp.c/loop-15.c: Remove.
1996 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
1997 * testsuite/libgomp.c/monotonic-1.c: Move ...
1998 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
1999 * testsuite/libgomp.c/monotonic-2.c: Move ...
2000 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
2001 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
2002 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
2003 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
2004 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
2005 * testsuite/libgomp.c/ordered-4.c: Move ...
2006 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
2007 * testsuite/libgomp.c/pr45784.c: Move ...
2008 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
2009 * testsuite/libgomp.c/pr64824.c: Move ...
2010 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
2011 * testsuite/libgomp.c/pr64868.c: Move ...
2012 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
2013 * testsuite/libgomp.c/pr66199-1.c: Move ...
2014 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
2015 * testsuite/libgomp.c/pr66199-2.c: Move ...
2016 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
2017 * testsuite/libgomp.c/pr66199-3.c: Move ...
2018 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
2019 * testsuite/libgomp.c/pr66199-4.c: Move ...
2020 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
2021 * testsuite/libgomp.c/pr66199-5.c: Move ...
2022 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
2023 * testsuite/libgomp.c/pr66199-6.c: Move ...
2024 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
2025 * testsuite/libgomp.c/pr66199-7.c: Move ...
2026 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
2027 * testsuite/libgomp.c/pr66199-8.c: Move ...
2028 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
2029 * testsuite/libgomp.c/pr66199-9.c: Move ...
2030 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
2031 * testsuite/libgomp.c/pr69389.c: Move ...
2032 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
2033 * testsuite/libgomp.c/simd-14.c: Move ...
2034 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
2035 * testsuite/libgomp.c/simd-15.c: Move ...
2036 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
2037 * testsuite/libgomp.c/simd-16.c: Move ...
2038 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
2039 * testsuite/libgomp.c/simd-17.c: Move ...
2040 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
2041 * testsuite/libgomp.c/target-1.c: Move ...
2042 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
2043 * testsuite/libgomp.c/target-10.c: Move ...
2044 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
2045 * testsuite/libgomp.c/target-13.c: Move ...
2046 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
2047 * testsuite/libgomp.c/target-2.c: Move ...
2048 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
2049 * testsuite/libgomp.c/taskgroup-1.c: Move ...
2050 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
2051 * testsuite/libgomp.c/taskloop-1.c: Move ...
2052 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
2053 * testsuite/libgomp.c/taskloop-2.c: Move ...
2054 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
2055 * testsuite/libgomp.c/taskloop-3.c: Move ...
2056 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
2057 * testsuite/libgomp.c/taskloop-4.c: Move ...
2058 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
2059 * testsuite/libgomp.c/udr-1.c: Move ...
2060 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
2061 * testsuite/libgomp.c/for-1.c: Move ...
2062 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
2063 * testsuite/libgomp.c/for-1.h: Move ...
2064 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
2065 * testsuite/libgomp.c/for-2.c: Move ...
2066 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
2067 * testsuite/libgomp.c/for-2.h: Move ...
2068 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
2069 * testsuite/libgomp.c/for-3.c: Move ...
2070 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
2071 * testsuite/libgomp.c/for-4.c: Move ...
2072 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
2073 * testsuite/libgomp.c/for-5.c: Move ...
2074 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
2075 * testsuite/libgomp.c/for-6.c: Move ...
2076 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
2077
2078 2018-05-02 Tom de Vries <tom@codesourcery.com>
2079
2080 PR libgomp/82428
2081 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
2082 __builtin_goacc_parlevel_{id,size}.
2083 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
2084 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
2085 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
2086 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
2087 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
2088 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
2089 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
2090 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
2091 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
2092 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
2093 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
2094 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
2095 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
2096 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
2097 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
2098 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
2099 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
2100 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
2101 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
2102 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
2103 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
2104 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
2105 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
2106
2107 2018-05-02 Tom de Vries <tom@codesourcery.com>
2108
2109 PR testsuite/85106
2110 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
2111
2112 2018-05-02 Tom de Vries <tom@codesourcery.com>
2113
2114 PR testsuite/85106
2115 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
2116
2117 2018-04-29 Julian Brown <julian@codesourcery.com>
2118 Tom de Vries <tom@codesourcery.com>
2119
2120 PR testsuite/85527
2121 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
2122 arbitrary order for iterations of atomic subtract check.
2123
2124 2018-04-28 Tom de Vries <tom@codesourcery.com>
2125
2126 PR testsuite/85527
2127 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
2128 atomic capture results obtained in parallel loop to an array, instead of
2129 to a scalar.
2130
2131 2018-04-26 Tom de Vries <tom@codesourcery.com>
2132
2133 PR libgomp/84020
2134 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
2135 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
2136 (process_GOMP_NVPTX_JIT): New function.
2137 (link_ptx): Use process_GOMP_NVPTX_JIT.
2138
2139 2018-04-26 Richard Biener <rguenther@suse.de>
2140 Tom de Vries <tom@codesourcery.com>
2141
2142 PR lto/85422
2143 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
2144
2145 2018-04-26 Tom de Vries <tom@codesourcery.com>
2146
2147 PR target/85519
2148 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2149 recursion depth from 25 to 23.
2150 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2151
2152 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
2153
2154 * configure: Regenerated.
2155
2156 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
2157 Tom de Vries <tom@codesourcery.com>
2158
2159 PR target/85445
2160 * testsuite/libgomp.oacc-c++/ref-1.C: New.
2161
2162 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
2163
2164 PR libgomp/85463
2165 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
2166 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2167 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2168 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2169 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2170 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2171
2172 PR libfortran/85166
2173 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
2174 abort".
2175 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2176
2177 2018-04-19 Jakub Jelinek <jakub@redhat.com>
2178
2179 * configure: Regenerated.
2180
2181 2018-04-18 David Malcolm <dmalcolm@redhat.com>
2182
2183 PR jit/85384
2184 * configure: Regenerate.
2185
2186 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
2187 Tom de Vries <tom@codesourcery.com>
2188
2189 PR middle-end/84955
2190 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2191 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2192
2193 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2194
2195 PR fortran/83064
2196 PR testsuite/85346
2197 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2198 test from gfortran.dg to here.
2199
2200 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2201
2202 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2203 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2204
2205 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2206
2207 PR middle-end/84955
2208 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2209 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2210
2211 2018-04-05 Tom de Vries <tom@codesourcery.com>
2212
2213 PR target/85204
2214 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2215
2216 2018-03-26 Tom de Vries <tom@codesourcery.com>
2217
2218 PR tree-optimization/85063
2219 * testsuite/libgomp.c/switch-conversion-2.c: New test.
2220 * testsuite/libgomp.c/switch-conversion.c: New test.
2221 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2222 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2223
2224 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2225
2226 PR fortran/84381
2227 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2228 call abort by STOP n.
2229 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2230 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2231 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2232 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2233 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2234 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2235 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2236 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2237 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2238 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2239 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2240 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2241 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2242 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2243 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2244 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2245 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2246 * testsuite/libgomp.fortran/associate1.f90: Likewise.
2247 * testsuite/libgomp.fortran/associate2.f90: Likewise.
2248 * testsuite/libgomp.fortran/associate3.f90: Likewise.
2249 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2250 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2251 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2252 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2253 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2254 * testsuite/libgomp.fortran/character1.f90: Likewise.
2255 * testsuite/libgomp.fortran/character2.f90: Likewise.
2256 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2257 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2258 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2259 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2260 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2261 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2262 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2263 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2264 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2265 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2266 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2267 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2268 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2269 * testsuite/libgomp.fortran/do1.f90: Likewise.
2270 * testsuite/libgomp.fortran/do2.f90: Likewise.
2271 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2272 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2273 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2274 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2275 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2276 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2277 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2278 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2279 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2280 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2281 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2282 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2283 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2284 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2285 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2286 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2287 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2288 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2289 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2290 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2291 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2292 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2293 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2294 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2295 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2296 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2297 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2298 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2299 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2300 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2301 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2302 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2303 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2304 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2305 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2306 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2307 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2308 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2309 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2310 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2311 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2312 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2313 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2314 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2315 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2316 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2317 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2318 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2319 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2320 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2321 * testsuite/libgomp.fortran/lib2.f: Likewise.
2322 * testsuite/libgomp.fortran/lib3.f: Likewise.
2323 * testsuite/libgomp.fortran/lib4.f90: Likewise.
2324 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2325 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2326 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2327 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2328 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2329 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2330 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2331 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2332 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2333 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2334 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2335 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2336 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2337 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2338 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2339 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2340 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2341 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2342 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2343 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2344 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2345 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2346 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2347 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2348 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2349 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2350 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2351 * testsuite/libgomp.fortran/pr25162.f: Likewise.
2352 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2353 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2354 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2355 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2356 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2357 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2358 * testsuite/libgomp.fortran/pr28390.f: Likewise.
2359 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2360 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
2361 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
2362 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
2363 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
2364 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
2365 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
2366 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
2367 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
2368 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
2369 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
2370 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
2371 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
2372 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
2373 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
2374 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
2375 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
2376 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
2377 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
2378 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
2379 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
2380 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
2381 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
2382 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
2383 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
2384 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2385 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
2386 * testsuite/libgomp.fortran/reference1.f90: Likewise.
2387 * testsuite/libgomp.fortran/reference2.f90: Likewise.
2388 * testsuite/libgomp.fortran/retval1.f90: Likewise.
2389 * testsuite/libgomp.fortran/retval2.f90: Likewise.
2390 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
2391 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
2392 * testsuite/libgomp.fortran/simd1.f90: Likewise.
2393 * testsuite/libgomp.fortran/simd2.f90: Likewise.
2394 * testsuite/libgomp.fortran/simd3.f90: Likewise.
2395 * testsuite/libgomp.fortran/simd4.f90: Likewise.
2396 * testsuite/libgomp.fortran/simd5.f90: Likewise.
2397 * testsuite/libgomp.fortran/simd6.f90: Likewise.
2398 * testsuite/libgomp.fortran/simd7.f90: Likewise.
2399 * testsuite/libgomp.fortran/stack.f90: Likewise.
2400 * testsuite/libgomp.fortran/strassen.f90: Likewise.
2401 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
2402 * testsuite/libgomp.fortran/tabs2.f: Likewise.
2403 * testsuite/libgomp.fortran/target1.f90: Likewise.
2404 * testsuite/libgomp.fortran/target2.f90: Likewise.
2405 * testsuite/libgomp.fortran/target3.f90: Likewise.
2406 * testsuite/libgomp.fortran/target4.f90: Likewise.
2407 * testsuite/libgomp.fortran/target5.f90: Likewise.
2408 * testsuite/libgomp.fortran/target6.f90: Likewise.
2409 * testsuite/libgomp.fortran/target7.f90: Likewise.
2410 * testsuite/libgomp.fortran/target8.f90: Likewise.
2411 * testsuite/libgomp.fortran/task1.f90: Likewise.
2412 * testsuite/libgomp.fortran/task2.f90: Likewise.
2413 * testsuite/libgomp.fortran/task3.f90: Likewise.
2414 * testsuite/libgomp.fortran/task4.f90: Likewise.
2415 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
2416 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
2417 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
2418 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
2419 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
2420 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2421 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2422 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2423 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
2424 * testsuite/libgomp.fortran/udr1.f90: Likewise.
2425 * testsuite/libgomp.fortran/udr10.f90: Likewise.
2426 * testsuite/libgomp.fortran/udr11.f90: Likewise.
2427 * testsuite/libgomp.fortran/udr12.f90: Likewise.
2428 * testsuite/libgomp.fortran/udr13.f90: Likewise.
2429 * testsuite/libgomp.fortran/udr14.f90: Likewise.
2430 * testsuite/libgomp.fortran/udr15.f90: Likewise.
2431 * testsuite/libgomp.fortran/udr2.f90: Likewise.
2432 * testsuite/libgomp.fortran/udr3.f90: Likewise.
2433 * testsuite/libgomp.fortran/udr4.f90: Likewise.
2434 * testsuite/libgomp.fortran/udr5.f90: Likewise.
2435 * testsuite/libgomp.fortran/udr6.f90: Likewise.
2436 * testsuite/libgomp.fortran/udr7.f90: Likewise.
2437 * testsuite/libgomp.fortran/udr8.f90: Likewise.
2438 * testsuite/libgomp.fortran/udr9.f90: Likewise.
2439 * testsuite/libgomp.fortran/vla1.f90: Likewise.
2440 * testsuite/libgomp.fortran/vla2.f90: Likewise.
2441 * testsuite/libgomp.fortran/vla3.f90: Likewise.
2442 * testsuite/libgomp.fortran/vla4.f90: Likewise.
2443 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2444 * testsuite/libgomp.fortran/vla6.f90: Likewise.
2445 * testsuite/libgomp.fortran/vla7.f90: Likewise.
2446 * testsuite/libgomp.fortran/vla8.f90: Likewise.
2447 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
2448 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
2449 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2450 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2451 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2452 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2453 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2454 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2455 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2456 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2457 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2458 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
2459 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2460 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
2461 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
2462 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2463 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2464 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2465 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2466 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2467 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2468 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2469 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2470 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
2471 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
2472 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2473 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2474 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2475 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2476 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2477 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2478 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2479 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2480 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2481 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2482 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2483 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2484 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2485 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2486 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2487 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2488 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2489 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2490 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2491 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2492 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2493 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2494 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2495 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2496 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2497 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2498 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2499 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2500 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2501 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2502 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2503 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2504 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2505 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2506 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2507 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2508 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2509 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2510 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2511 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2512 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2513 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2514 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2515 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2516 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2517 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2518 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2519 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2520 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2521 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2522 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2523 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2524 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2525 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2526 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2527 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2528 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2529 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2530 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2531 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2532 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2533 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2534 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2535 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2536 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2537 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2538 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2539 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2540 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2541
2542 2018-03-20 Richard Biener <rguenther@suse.de>
2543
2544 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2545 parallelizable loop.
2546
2547 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2548
2549 PR target/84148
2550 * configure: Regenerate.
2551
2552 2018-02-16 Jakub Jelinek <jakub@redhat.com>
2553
2554 PR fortran/84418
2555 * libgomp.fortran/pr84418-1.f90: New test.
2556 * libgomp.fortran/pr84418-2.f90: New test.
2557
2558 2018-02-14 Jakub Jelinek <jakub@redhat.com>
2559
2560 PR fortran/84313
2561 * testsuite/libgomp.fortran/threadprivate4.f90: Add
2562 -std=f2003 -fall-intrinsics into dg-additional-options.
2563
2564 2018-02-08 Martin Jambor <mjambor@suse.cz>
2565
2566 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2567 clonable.
2568
2569 2018-02-08 Martin Jambor <mjambor@suse.cz>
2570
2571 * testsuite/libgomp.hsa.c/staticvar.c: New test.
2572
2573 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2574
2575 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2576 [__cplusplus]: Declare extern "C".
2577
2578 2018-02-07 Tom de Vries <tom@codesourcery.com>
2579
2580 PR libgomp/84217
2581 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2582
2583 2018-01-29 Christoph Spiel <cspiel@freenet.de>
2584 Jakub Jelinek <jakub@redhat.com>
2585
2586 PR libgomp/84096
2587 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2588 instead of omp_lock_t.
2589
2590 2018-01-25 Tom de Vries <tom@codesourcery.com>
2591
2592 PR target/84028
2593 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2594
2595 2018-01-24 Tom de Vries <tom@codesourcery.com>
2596
2597 PR target/83589
2598 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2599
2600 2018-01-24 Tom de Vries <tom@codesourcery.com>
2601
2602 PR target/81352
2603 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2604
2605 2018-01-19 Tom de Vries <tom@codesourcery.com>
2606 Cesar Philippidis <cesar@codesourcery.com>
2607
2608 PR target/83920
2609 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2610 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2611
2612 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2613
2614 Update copyright years.
2615
2616 * libgomp.texi: Bump @copying's copyright year.
2617
2618 2017-12-30 Tom de Vries <tom@codesourcery.com>
2619
2620 PR libgomp/83046
2621 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2622 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2623
2624 2017-12-27 Tom de Vries <tom@codesourcery.com>
2625
2626 PR c++/83046
2627 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2628 (test_nonstatic): Fix return type to workaround PR83046.
2629
2630 2017-12-05 Jakub Jelinek <jakub@redhat.com>
2631
2632 PR testsuite/83281
2633 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2634 j suffix instead of i.
2635 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2636 Likewise.
2637
2638 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
2639
2640 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2641 call to acc_wait (1).
2642
2643 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2644
2645 PR fortran/81304
2646 * testsuite/libgomp.fortran/pr81304.f90: New test.
2647
2648 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2649
2650 PR fortran/81841
2651 * libgomp.fortran/pr81841.f90: New test.
2652
2653 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2654
2655 PR libgomp/83106
2656 * target.c (gomp_target_init): Compute lengths just once and
2657 use them in both malloc size and subsequent copying.
2658
2659 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2660
2661 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2662 * acinclude.m4: Add cet.m4.
2663 * configure: Regenerate.
2664 * Makefile.in: Likewise.
2665 * testsuite/Makefile.in: Likewise.
2666
2667 2017-11-15 Tom de Vries <tom@codesourcery.com>
2668
2669 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2670 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
2671 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2672 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
2673 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2674 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
2675
2676 2017-11-14 Tom de Vries <tom@codesourcery.com>
2677
2678 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2679 non-nvidia devices.
2680
2681 2017-11-07 Jakub Jelinek <jakub@redhat.com>
2682
2683 PR c++/82835
2684 * testsuite/libgomp.c++/pr82835.C: New test.
2685
2686 2017-11-06 Martin Liska <mliska@suse.cz>
2687
2688 * testsuite/libgomp.c++/loop-2.C: Return a value
2689 for functions with non-void return type, or change type to void,
2690 or add -Wno-return-type for test.
2691 * testsuite/libgomp.c++/loop-4.C: Likewise.
2692 * testsuite/libgomp.c++/parallel-1.C: Likewise.
2693 * testsuite/libgomp.c++/shared-1.C: Likewise.
2694 * testsuite/libgomp.c++/single-1.C: Likewise.
2695 * testsuite/libgomp.c++/single-2.C: Likewise.
2696
2697 2017-10-31 Tom de Vries <tom@codesourcery.com>
2698
2699 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2700 "do {} while (false)".
2701 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2702 after HSA_DEBUG call.
2703
2704 2017-10-28 Jakub Jelinek <jakub@redhat.com>
2705
2706 * target.c (struct gomp_coalesce_buf): New type.
2707 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2708 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2709 (gomp_copy_host2dev): Add CBUF argument, if copying into
2710 the cached ranges, memcpy into buffer instead of copying
2711 into device.
2712 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2713 Add CBUF argument, pass it through to other calls.
2714 (gomp_map_vars): Aggregate copies from host to device if small enough
2715 and with small enough gaps in between into memcpy into a buffer and
2716 fewer host to device copies from the buffer.
2717 (gomp_update): Adjust gomp_copy_host2dev caller.
2718
2719 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
2720
2721 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2722 run" directive.
2723 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2724 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2725 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2726 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2727
2728 2017-10-16 Tom de Vries <tom@codesourcery.com>
2729
2730 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2731 openacc_nvidia_accel_selected.
2732 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2733 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2734 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2735 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2736 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2737 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2738 openacc_nvidia_accel_selected. Skip for shared memory device.
2739 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2740 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2741
2742 2017-10-09 Martin Jambor <mjambor@suse.cz>
2743
2744 PR hsa/82416
2745 * testsuite/libgomp.hsa.c/pr82416.c: New test.
2746
2747 2017-10-07 Tom de Vries <tom@codesourcery.com>
2748
2749 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2750 Remove acc_device_nvidia references.
2751 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2752 Same.
2753
2754 2017-10-05 Tom de Vries <tom@codesourcery.com>
2755
2756 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2757 vector_length(32) clause from acc parallel directive.
2758 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2759
2760 2017-10-04 Tom de Vries <tom@codesourcery.com>
2761
2762 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2763 (main): Reduce sum of arr elements. Assert that hres is exactly
2764 representable in 32-bit floating point.
2765 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2766 (main): Reduce sum of arr elements. Assert that hres and hmres are
2767 exactly representable in 32-bit floating point.
2768 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2769
2770 2017-09-28 Tom de Vries <tom@codesourcery.com>
2771
2772 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2773 setting.
2774 * testsuite/libgomp.c++/pr69393.C: Same.
2775 * testsuite/libgomp.c++/taskloop-1.C: Same.
2776 * testsuite/libgomp.c++/taskloop-3.C: Same.
2777 * testsuite/libgomp.c++/taskloop-4.C: Same.
2778 * testsuite/libgomp.c/for-4.c: Same.
2779 * testsuite/libgomp.c/pr66199-3.c: Same.
2780 * testsuite/libgomp.c/pr66199-4.c: Same.
2781 * testsuite/libgomp.c/pr66199-6.c: Same.
2782 * testsuite/libgomp.c/taskloop-1.c: Same.
2783 * testsuite/libgomp.c/taskloop-3.c: Same.
2784 * testsuite/libgomp.c/taskloop-4.c: Same.
2785 * testsuite/libgomp.fortran/aligned1.f03: Same.
2786 * testsuite/libgomp.fortran/condinc1.f: Same.
2787 * testsuite/libgomp.fortran/condinc3.f90: Same.
2788 * testsuite/libgomp.fortran/crayptr1.f90: Same.
2789 * testsuite/libgomp.fortran/crayptr2.f90: Same.
2790 * testsuite/libgomp.fortran/crayptr3.f90: Same.
2791 * testsuite/libgomp.fortran/omp_cond1.f: Same.
2792 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2793 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2794 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2795 * testsuite/libgomp.fortran/recursion1.f90: Same.
2796 * testsuite/libgomp.fortran/target2.f90: Same.
2797 * testsuite/libgomp.fortran/target5.f90: Same.
2798 * testsuite/libgomp.fortran/task3.f90: Same.
2799
2800 2017-09-28 Tom de Vries <tom@codesourcery.com>
2801
2802 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2803 vector_length(32) clause from acc parallel directive.
2804 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2805
2806 2017-09-27 Tom de Vries <tom@codesourcery.com>
2807
2808 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2809 Remove acc_device_nvidia references.
2810
2811 2017-09-16 Tom de Vries <tom@codesourcery.com>
2812
2813 PR c/81875
2814 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2815
2816 2017-09-14 Tom de Vries <tom@codesourcery.com>
2817
2818 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2819 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2820 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2821 * testsuite/libgomp.c/c.exp: Include test-cases from
2822 libgomp.c-c++-common.
2823 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
2824 files.
2825
2826 2017-09-14 Jakub Jelinek <jakub@redhat.com>
2827
2828 PR c++/81314
2829 * testsuite/libgomp.c++/pr81314.C: New test.
2830
2831 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
2832
2833 * libgomp.texi (Top): www.openacc.org now uses https.
2834 (Enabling OpenACC): Ditto.
2835 (acc_get_num_devices): Ditto.
2836 (acc_set_device_type): Ditto.
2837 (acc_get_device_type): Ditto.
2838 (acc_set_device_num): Ditto.
2839 (acc_get_device_num): Ditto.
2840 (acc_async_test): Ditto.
2841 (acc_async_test_all): Ditto.
2842 (acc_wait): Ditto.
2843 (acc_wait_all): Ditto.
2844 (acc_wait_all_async): Ditto.
2845 (acc_wait_async): Ditto.
2846 (acc_init): Ditto.
2847 (acc_shutdown): Ditto.
2848 (acc_on_device): Ditto.
2849 (acc_malloc): Ditto.
2850 (acc_free): Ditto.
2851 (acc_copyin): Ditto.
2852 (acc_present_or_copyin): Ditto.
2853 (acc_create): Ditto.
2854 (acc_present_or_create): Ditto.
2855 (acc_copyout): Ditto.
2856 (acc_delete): Ditto.
2857 (acc_update_device): Ditto.
2858 (acc_update_self): Ditto.
2859 (acc_map_data): Ditto.
2860 (acc_unmap_data): Ditto.
2861 (acc_deviceptr): Ditto.
2862 (acc_hostptr): Ditto.
2863 (acc_is_present): Ditto.
2864 (acc_memcpy_to_device): Ditto.
2865 (acc_memcpy_from_device): Ditto.
2866 (acc_get_current_cuda_device): Ditto.
2867 (acc_get_current_cuda_context): Ditto.
2868 (acc_get_cuda_stream): Ditto.
2869 (acc_set_cuda_stream): Ditto.
2870 (ACC_DEVICE_TYPE): Ditto.
2871 (ACC_DEVICE_NUM): Ditto.
2872 (OpenACC Library Interoperability): Ditto.
2873
2874 2017-08-09 Jakub Jelinek <jakub@redhat.com>
2875
2876 PR c/81687
2877 * testsuite/libgomp.c/pr81687-1.c: New test.
2878 * testsuite/libgomp.c/pr81687-2.c: New test.
2879
2880 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2881
2882 PR c/69389
2883 * testsuite/libgomp.c/pr69389.c: New test.
2884 * testsuite/libgomp.c++/pr69389.C: New test.
2885
2886 2017-08-07 Tom de Vries <tom@codesourcery.com>
2887
2888 PR middle-end/78266
2889 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2890 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2891
2892 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2893
2894 PR c/45784
2895 * testsuite/libgomp.c/pr45784.c: New test.
2896 * testsuite/libgomp.c++/pr45784.C: New test.
2897
2898 2017-07-19 Tom de Vries <tom@codesourcery.com>
2899
2900 * testsuite/libgomp.oacc-c/vec.c: New test.
2901
2902 2017-07-03 Tom de Vries <tom@codesourcery.com>
2903
2904 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2905
2906 2017-06-27 Tom de Vries <tom@codesourcery.com>
2907
2908 * plugin/plugin-nvptx.c (notify_var): New function.
2909 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2910
2911 2017-06-27 Tom de Vries <tom@codesourcery.com>
2912
2913 * env.c (parse_unsigned_long_1): Factor out of ...
2914 (parse_unsigned_long): ... here.
2915 (parse_int_1): Factor out of ...
2916 (parse_int): ... here.
2917 (parse_int_secure): New function.
2918 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2919 * secure_getenv.h: Factor out of ...
2920 * plugin/plugin-hsa.c: ... here.
2921 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2922
2923 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2924
2925 PR c++/81130
2926 * testsuite/libgomp.c++/pr81130.C: New test.
2927
2928 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2929
2930 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2931 default args.
2932 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2933 dg-xfail-run-if default args.
2934
2935 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2936
2937 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2938 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2939
2940 2017-05-30 Jakub Jelinek <jakub@redhat.com>
2941
2942 PR libgomp/80822
2943 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2944 (gomp_affinity_init_level): Use it. Always analyze the core and thread
2945 sibling lists, depending on level just pick up what CPUs to put
2946 together into a place vs. whether add multiple ordered places.
2947
2948 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
2949
2950 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2951 * libgomp.map (OACC_2.0.1): Add these.
2952 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2953 for "acc_wait", and "acc_wait_all", respectively.
2954 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2955 for "acc_wait", and "acc_wait_all", respectively.
2956 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2957 * libgomp.texi (acc_wait, acc_wait_all): Update.
2958 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2959 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2960 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2961
2962 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2963 acc_present_or_copyin and acc_present_or_create procedures,
2964 respectively.
2965 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2966 generally different variants of OpenACC Runtime Library functions.
2967 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2968
2969 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2970 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2971
2972 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2973 of preprocessor definitions.
2974 * libgomp.h (strong_alias): Guard by "#ifdef
2975 HAVE_ATTRIBUTE_ALIAS".
2976 * oacc-mem.c: Provide "acc_pcreate" as alias for
2977 "acc_present_or_create", and "acc_pcopyin" as alias for
2978 "acc_present_or_copyin".
2979 * libgomp.map: New version "OACC_2.0.1".
2980 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2981 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2982 its content into...
2983 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2984 Extend testing.
2985
2986 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2987 when disabling nvptx offloading.
2988
2989 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
2990
2991 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
2992 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2993 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2994
2995 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
2996 * testsuite/lib/libgomp.exp
2997 (check_effective_target_openacc_nvidia_accel_configured): New
2998 proc.
2999 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
3000 (check_effective_target_c++): New procs.
3001 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
3002 (check_effective_target_c++): Likewise.
3003
3004 2017-05-22 Jakub Jelinek <jakub@redhat.com>
3005
3006 PR middle-end/80809
3007 * testsuite/libgomp.c/pr80809-2.c: New test.
3008 * testsuite/libgomp.c/pr80809-3.c: New test.
3009
3010 PR middle-end/80809
3011 * testsuite/libgomp.c/pr80809-1.c: New test.
3012
3013 PR middle-end/80853
3014 * testsuite/libgomp.c/pr80853.c: New test.
3015
3016 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
3017
3018 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
3019 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
3020 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3021 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3022 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3023
3024 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
3025 Debug output for failure.
3026
3027 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3028
3029 * testsuite/lib/libgomp.exp: Load scanlang.exp.
3030
3031 2017-04-27 Jakub Jelinek <jakub@redhat.com>
3032
3033 PR bootstrap/80531
3034 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
3035 bootstrap compare failures.
3036
3037 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
3038
3039 * testsuite/libgomp.c/target-36.c: New testcase.
3040
3041 2017-04-13 Jakub Jelinek <jakub@redhat.com>
3042
3043 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
3044 instead of char.
3045
3046 2017-04-11 Jakub Jelinek <jakub@redhat.com>
3047
3048 PR libgomp/80394
3049 * testsuite/libgomp.c/pr80394.c: New test.
3050
3051 2017-04-04 Jakub Jelinek <jakub@redhat.com>
3052
3053 PR libgomp/79876
3054 * config/posix/thread-stacksize.h: New file.
3055 * config/darwin/thread-stacksize.h: New file.
3056 * config/nvptx/thread-stacksize.h: New file.
3057 * env.c: Include thread-stacksize.h.
3058 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
3059 instead of 0. Call pthread_attr_setstacksize even if
3060 GOMP_DEFAULT_STACKSIZE is non-zero.
3061
3062 2017-03-30 Jakub Jelinek <jakub@redhat.com>
3063
3064 * env.c (initialize_env): Initialize stacksize to 0.
3065
3066 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
3067
3068 PR c++/80029
3069 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
3070
3071 2017-03-08 Jakub Jelinek <jakub@redhat.com>
3072
3073 PR c/79940
3074 * testsuite/libgomp.c/pr79940.c: New test.
3075
3076 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3077
3078 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
3079 targets.
3080 Add __float128 options.
3081
3082 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
3083
3084 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
3085 hppa*-*-* dg-skip-if directive.
3086
3087 2017-02-09 Jakub Jelinek <jakub@redhat.com>
3088
3089 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
3090 dg-skip-if directive into a comment.
3091
3092 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
3093 Chung-Lin Tang <cltang@codesourcery.com>
3094
3095 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
3096 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
3097 add additional case.
3098 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
3099 "openacc_nvidia_accel_selected".
3100 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
3101 Add num_workers(8) clause.
3102
3103 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
3104
3105 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
3106 hppa*-*-*.
3107 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
3108 include complex.h on hppa*-*-hpux*.
3109 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3110
3111 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
3112
3113 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
3114
3115 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
3116 GOMP_OFFLOAD_openacc_exec. Adjust all users.
3117 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
3118 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
3119 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
3120 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
3121 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
3122 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
3123 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
3124 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
3125
3126 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
3127
3128 * libgomp-plugin.h: #include <stdbool.h>.
3129 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
3130 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
3131 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
3132 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
3133 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
3134 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
3135 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
3136 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
3137 (GOMP_OFFLOAD_openacc_register_async_cleanup)
3138 (GOMP_OFFLOAD_openacc_async_test)
3139 (GOMP_OFFLOAD_openacc_async_test_all)
3140 (GOMP_OFFLOAD_openacc_async_wait)
3141 (GOMP_OFFLOAD_openacc_async_wait_async)
3142 (GOMP_OFFLOAD_openacc_async_wait_all)
3143 (GOMP_OFFLOAD_openacc_async_wait_all_async)
3144 (GOMP_OFFLOAD_openacc_async_set_async)
3145 (GOMP_OFFLOAD_openacc_create_thread_data)
3146 (GOMP_OFFLOAD_openacc_destroy_thread_data)
3147 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
3148 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
3149 (GOMP_OFFLOAD_openacc_get_cuda_stream)
3150 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
3151 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
3152 these.
3153 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
3154 (GOMP_OFFLOAD_unload_image): Fix argument types.
3155
3156 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3157
3158 * testsuite/lib/libgomp.exp
3159 (check_effective_target_hsa_offloading_selected_nocache): Fix up
3160 check_compile invocation. Fix up removal of executable. Drop
3161 bogus "2>&1" argument.
3162
3163 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
3164 directive.
3165
3166 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
3167 Martin Jambor <mjambor@suse.cz>
3168
3169 * plugin/hsa.h: Moved to top level include.
3170 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
3171
3172 2017-01-21 Jakub Jelinek <jakub@redhat.com>
3173
3174 PR other/79046
3175 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
3176 of cat to get version from BASE-VER file.
3177 * testsuite/Makefile.in: Regenerated.
3178
3179 2017-01-19 Jakub Jelinek <jakub@redhat.com>
3180
3181 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3182 for _WIN64.
3183
3184 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3185
3186 * plugin/hsa.h: Add GCC runtime library exception.
3187 * plugin/hsa_ext_finalize.h: Likewise.
3188
3189 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3190 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
3191 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3192 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3193 plugin/include/cuda as include dir and -ldl instead of -lcuda as
3194 library to link ptx plugin against.
3195 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3196 (CUDA_CALLS): Define.
3197 (cuda_lib, cuda_lib_inited): New variables.
3198 (init_cuda_lib): New function.
3199 (CUDA_CALL_PREFIX): Define.
3200 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3201 (CUDA_CALL): Use FN instead of (FN).
3202 (CUDA_CALL_NOCHECK): Define.
3203 (cuda_error, fini_streams_for_device, select_stream_for_async,
3204 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3205 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3206 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3207 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3208 CUDA_CALL_NOCHECK.
3209 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
3210 CUDA_CALL_NOCHECK.
3211 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3212 Use CUDA_CALL_NOCHECK.
3213 * plugin/cuda/cuda.h: New file.
3214 * config.h.in: Regenerated.
3215 * configure: Regenerated.
3216
3217 PR other/79046
3218 * configure.ac: Add GCC_BASE_VER.
3219 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3220 get version from BASE-VER file.
3221 * testsuite/Makefile.in: Regenerated.
3222 * configure: Regenerated.
3223 * Makefile.in: Regenerated.
3224
3225 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3226
3227 PR libgomp/60670
3228 * Makefile.am: Make fincludedir multilib-aware.
3229 * Makefile.in: Regenerate.
3230
3231 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3232
3233 Update copyright years.
3234
3235 * libgomp.texi: Bump @copying's copyright year.
3236
3237 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3238
3239 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3240 pthread_spinlock_t instead of gomp_mutex_t lock.
3241 (gomp_get_thread_pool): Likewise.
3242 (gomp_release_thread_pool): Likewise.
3243 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3244 Likewise.
3245
3246 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3247
3248 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3249 thread pool in case nthreads == 1.
3250
3251 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3252
3253 * config/nvptx/env.c: Delete.
3254 * icv.c: Move definitions of ICV variables back ...
3255 * env.c: ...here. Do not compile environment-related functionality if
3256 LIBGOMP_OFFLOADED_ONLY is set.
3257
3258 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3259
3260 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3261 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3262 * configure: Regenerate.
3263 * config.h.in: Likewise.
3264
3265 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3266
3267 * Makefile.in: Regenerate with automake-1.11.6.
3268 * aclocal.m4: Likewise.
3269 * configure: Likewise.
3270 * testsuite/Makefile.in: Likewise.
3271
3272 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
3273
3274 * config/nvptx/critical.c: Delete to use generic implementation.
3275
3276 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3277
3278 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3279 ../../affinity.c as fallback.
3280 * config/nvptx/affinity.c: Delete to use fallback implementation.
3281
3282 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
3283 Jakub Jelinek <jakub@redhat.com>
3284 Dmitry Melnik <dm@ispras.ru>
3285
3286 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3287 * Makefile.in. Regenerate.
3288 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3289 (LIBGOMP_USE_PTHREADS): ...here; new define.
3290 * configure: Regenerate.
3291 * config.h.in: Likewise.
3292 * config/posix/affinity.c: Move to...
3293 * affinity.c: ...here (new file). Guard use of Pthreads-specific
3294 interface by LIBGOMP_USE_PTHREADS.
3295 * critical.c: Split out GOMP_atomic_{start,end} into...
3296 * atomic.c: ...here (new file).
3297 * env.c: Split out ICV definitions into...
3298 * icv.c: ...here (new file) and...
3299 * icv-device.c: ...here. New file.
3300 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3301 (gomp_destroy_lock_30): Ditto.
3302 (gomp_set_lock_30): Ditto.
3303 (gomp_unset_lock_30): Ditto.
3304 (gomp_test_lock_30): Ditto.
3305 (gomp_init_nest_lock_30): Ditto.
3306 (gomp_destroy_nest_lock_30): Ditto.
3307 (gomp_set_nest_lock_30): Ditto.
3308 (gomp_unset_nest_lock_30): Ditto.
3309 (gomp_test_nest_lock_30): Ditto.
3310 * lock.c: New.
3311 * config/nvptx/lock.c: New.
3312 * config/nvptx/bar.c: New.
3313 * config/nvptx/bar.h: New.
3314 * config/nvptx/doacross.h: New.
3315 * config/nvptx/error.c: New.
3316 * config/nvptx/icv-device.c: New.
3317 * config/nvptx/mutex.h: New.
3318 * config/nvptx/pool.h: New.
3319 * config/nvptx/proc.c: New.
3320 * config/nvptx/ptrlock.h: New.
3321 * config/nvptx/sem.h: New.
3322 * config/nvptx/simple-bar.h: New.
3323 * config/nvptx/target.c: New.
3324 * config/nvptx/task.c: New.
3325 * config/nvptx/team.c: New.
3326 * config/nvptx/time.c: New.
3327 * config/posix/simple-bar.h: New.
3328 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
3329 (gomp_num_teams_var): Declare.
3330 (struct gomp_thread_pool): Change threads_dock member to
3331 gomp_simple_barrier_t.
3332 [__nvptx__] (gomp_thread): New implementation.
3333 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3334 (gomp_thread_destructor): Ditto.
3335 (gomp_init_thread_affinity): Ditto.
3336 * team.c: Guard uses of Pthreads-specific interfaces by
3337 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
3338 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3339 * config/nvptx/alloc.c: Delete.
3340 * config/nvptx/barrier.c: Ditto.
3341 * config/nvptx/fortran.c: Ditto.
3342 * config/nvptx/iter.c: Ditto.
3343 * config/nvptx/iter_ull.c: Ditto.
3344 * config/nvptx/loop.c: Ditto.
3345 * config/nvptx/loop_ull.c: Ditto.
3346 * config/nvptx/ordered.c: Ditto.
3347 * config/nvptx/parallel.c: Ditto.
3348 * config/nvptx/priority_queue.c: Ditto.
3349 * config/nvptx/sections.c: Ditto.
3350 * config/nvptx/single.c: Ditto.
3351 * config/nvptx/splay-tree.c: Ditto.
3352 * config/nvptx/work.c: Ditto.
3353 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3354 -foffload=-lgfortran in addition to -lgfortran.
3355 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3356 * plugin/plugin-nvptx.c: Include <limits.h>.
3357 (struct targ_fn_descriptor): Add new fields.
3358 (struct ptx_device): Ditto. Set them...
3359 (nvptx_open_device): ...here.
3360 (nvptx_adjust_launch_bounds): New.
3361 (nvptx_host2dev): Allow NULL 'nvthd'.
3362 (nvptx_dev2host): Ditto.
3363 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
3364 (link_ptx): Adjust log sizes.
3365 (nvptx_host2dev): Allow NULL 'nvthd'.
3366 (nvptx_dev2host): Ditto.
3367 (nvptx_set_clocktick): New. Use it...
3368 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
3369 fields.
3370 (GOMP_OFFLOAD_dev2dev): New.
3371 (nvptx_adjust_launch_bounds): New.
3372 (nvptx_stacks_size): New.
3373 (nvptx_stacks_alloc): New.
3374 (nvptx_stacks_free): New.
3375 (GOMP_OFFLOAD_run): New.
3376 (GOMP_OFFLOAD_async_run): New (stub).
3377
3378 2016-11-23 Martin Jambor <mjambor@suse.cz>
3379
3380 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
3381 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
3382 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3383
3384 2016-11-23 Martin Liska <mliska@suse.cz>
3385 Martin Jambor <mjambor@suse.cz>
3386
3387 * plugin/hsa.h: New file.
3388 * plugin/hsa_ext_finalize.h: New file.
3389 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
3390 header file unistd.h, and functions secure_getenv, __secure_getenv,
3391 getuid, geteuid, getgid and getegid.
3392 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
3393 -D_GNU_SOURCE.
3394 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
3395 Handle various cases of secure_getenv presence, add an implementation
3396 when we can test effective UID and GID.
3397 (struct hsa_runtime_fn_info): New structure.
3398 (hsa_runtime_fn_info hsa_fns): New variable.
3399 (hsa_runtime_lib): Likewise.
3400 (support_cpu_devices): Likewise.
3401 (init_enviroment_variables): Load newly introduced ENV
3402 variables.
3403 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
3404 (hsa_fatal): Likewise.
3405 (DLSYM_FN): New macro.
3406 (init_hsa_runtime_functions): New function.
3407 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
3408 structure. Depending on environment, also allow CPU devices.
3409 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
3410 (get_kernarg_memory_region): Likewise.
3411 (GOMP_OFFLOAD_init_device): Likewise.
3412 (destroy_hsa_program): Likewise.
3413 (init_basic_kernel_info): New function.
3414 (GOMP_OFFLOAD_load_image): Use it.
3415 (create_and_finalize_hsa_program): Call hsa run-time functions via
3416 hsa_fns structure.
3417 (create_single_kernel_dispatch): Likewise.
3418 (release_kernel_dispatch): Likewise.
3419 (init_single_kernel): Likewise.
3420 (parse_target_attributes): Allow up multiple HSA grid dimensions.
3421 (get_group_size): New function.
3422 (run_kernel): Likewise.
3423 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
3424 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
3425 structure.
3426 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
3427 * testsuite/libgomp-test-support.exp.in: Likewise.
3428 * Makefile.in: Regenerated.
3429 * aclocal.m4: Likewise.
3430 * config.h.in: Likewise.
3431 * configure: Likewise.
3432 * testsuite/Makefile.in: Likewise.
3433
3434 2016-11-15 Martin Jambor <mjambor@suse.cz>
3435 Alexander Monakov <amonakov@ispras.ru>
3436
3437 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
3438 mapping clauses to target constructs.
3439 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
3440
3441 2016-11-15 Matthias Klose <doko@ubuntu.com>
3442
3443 * configure: Regenerate.
3444
3445 2016-11-10 Jakub Jelinek <jakub@redhat.com>
3446
3447 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
3448 * omp_lib.h.in (openmp_version): Likewise.
3449 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
3450 of 201307.
3451 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3452
3453 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
3454 (fib_wrapper): Add map(from: x) clause.
3455 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
3456 (e_53_2): Likewise.
3457 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
3458 (accum): Add map(tmp) clause.
3459 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
3460 (accum): Add map(tofrom: tmp) clause.
3461 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
3462 (gramSchmidt): Likewise.
3463 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
3464 map(tofrom: sum) clause.
3465 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
3466 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
3467 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
3468 only allowed on the loop iterator.
3469 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
3470 * testsuite/libgomp.fortran/taskloop2.f90: New test.
3471 * testsuite/libgomp.fortran/taskloop4.f90: New test.
3472 * testsuite/libgomp.fortran/doacross1.f90: New test.
3473 * testsuite/libgomp.fortran/doacross3.f90: New test.
3474 * testsuite/libgomp.fortran/taskloop1.f90: New test.
3475 * testsuite/libgomp.fortran/taskloop3.f90: New test.
3476 * testsuite/libgomp.fortran/doacross2.f90: New test.
3477 * testsuite/libgomp.c/doacross-1.c (main): Add missing
3478 #pragma omp atomic read.
3479 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3480 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
3481
3482 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3483 Nathan Sidwell <nathan@acm.org>
3484
3485 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3486 to determine default geometry.
3487 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3488 dimension.
3489
3490 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3491
3492 * hashtab.h: Use standard GPLv3 with runtime exception
3493 boilerplate.
3494
3495 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3496
3497 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3498 size when allocating new thread.
3499
3500 2016-09-14 Marek Polacek <polacek@redhat.com>
3501
3502 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3503
3504 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3505
3506 PR fortran/71014
3507 * testsuite/libgomp.fortran/pr71014.f90: New test.
3508
3509 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3510
3511 PR middle-end/70895
3512 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3513 firstprivate clauses.
3514 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3515 copy clauses.
3516 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3517 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3518 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3519 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3520 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3521 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3522 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3523 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3524 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3525 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3526 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3527 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3528
3529 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
3530
3531 PR fortran/70598
3532 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3533
3534 2016-08-08 Jakub Jelinek <jakub@redhat.com>
3535
3536 PR c++/58706
3537 * testsuite/libgomp.c++/pr58706.C: New test.
3538
3539 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
3540
3541 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3542 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3543 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3544 Likewise.
3545 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3546 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3547 Likewise.
3548 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3549
3550 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3551 test, and don't hardcode -O0.
3552
3553 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
3554
3555 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3556
3557 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
3558
3559 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3560 test.
3561
3562 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
3563
3564 PR middle-end/71734
3565 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3566 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3567
3568 2016-07-01 Jakub Jelinek <jakub@redhat.com>
3569
3570 PR fortran/71717
3571 * testsuite/libgomp.fortran/associate3.f90: New test.
3572
3573 2016-06-17 Jakub Jelinek <jakub@redhat.com>
3574
3575 * testsuite/libgomp.c++/target-21.C: New test.
3576
3577 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3578
3579 * testsuite/libgomp.c++/target-20.C: New test.
3580
3581 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3582 Cesar Philippidis <cesar@codesourcery.com>
3583
3584 PR middle-end/71373
3585 * libgomp.oacc-c/nested-function-1.c: New file.
3586 * libgomp.oacc-c/nested-function-2.c: Likewise.
3587 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3588 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3589 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3590
3591 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3592
3593 PR c/71381
3594 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3595 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3596 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3597
3598 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
3599
3600 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3601 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3602
3603 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
3604
3605 PR c/70688
3606 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3607
3608 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3609
3610 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3611 instead of invalid schedule(static, 0).
3612 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3613
3614 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3615
3616 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3617 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3618 parameter, use to set async stream around call to gomp_unmap_vars,
3619 call gomp_unmap_vars() with 'do_copyfrom' set to true.
3620 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3621 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3622 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3623 (event_add): Add int parameter, initialize 'val' field when
3624 adding new ptx_event struct.
3625 (nvptx_evec): Adjust event_add() call arguments.
3626 (nvptx_host2dev): Likewise.
3627 (nvptx_dev2host): Likewise.
3628 (nvptx_wait_async): Likewise.
3629 (nvptx_wait_all_async): Likewise.
3630 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3631 pass to event_add() call.
3632 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3633 parameter.
3634 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3635 call openacc.register_async_cleanup_func() hook.
3636 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3637 * target.c (gomp_copy_from_async): Delete function.
3638 (gomp_map_vars): Remove async_refcount.
3639 (gomp_unmap_vars): Likewise.
3640 (gomp_load_image_to_device): Likewise.
3641 (omp_target_associate_ptr): Likewise.
3642 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3643 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3644 (gomp_copy_from_async): Remove.
3645
3646 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3647
3648 * target.c (gomp_device_copy): New function.
3649 (gomp_copy_host2dev): Likewise.
3650 (gomp_copy_dev2host): Likewise.
3651 (gomp_free_device_memory): Likewise.
3652 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3653 (gomp_map_pointer): Likewise.
3654 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3655 NULL value from alloc_func plugin hook.
3656 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3657 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3658 (gomp_unmap_vars): Likewise.
3659 (gomp_update): Adjust to call gomp_copy_dev2host and
3660 gomp_copy_host2dev functions.
3661 (gomp_unload_image_from_device): Handle false value from
3662 unload_image_func plugin hook.
3663 (gomp_init_device): Handle false value from init_device_func
3664 plugin hook.
3665 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3666 (omp_target_free): Adjust to call gomp_free_device_memory.
3667 (omp_target_memcpy): Handle return values from host2dev_func,
3668 dev2host_func, and dev2dev_func plugin hooks.
3669 (omp_target_memcpy_rect_worker): Likewise.
3670 (gomp_target_fini): Handle false value from fini_device_func
3671 plugin hook.
3672 * libgomp.h (struct gomp_device_descr): Adjust return type of
3673 init_device_func, fini_device_func, unload_image_func, free_func,
3674 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3675 * oacc-init.c (acc_shutdown_1): Handle false value from
3676 fini_device_func plugin hook.
3677 * oacc-host.c (host_init_device): Change return type to bool.
3678 (host_fini_device): Likewise.
3679 (host_unload_image): Likewise.
3680 (host_free): Likewise.
3681 (host_dev2host): Likewise.
3682 (host_host2dev): Likewise.
3683 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3684 (acc_memcpy_to_device): Likewise.
3685 (acc_memcpy_from_device): Likewise.
3686 (delete_copyout): Add libfnname parameter, handle free_func
3687 hook fatal error case.
3688 (acc_delete): Adjust delete_copyout call.
3689 (acc_copyout): Likewise.
3690 (update_dev_host): Move gomp_mutex_unlock to after
3691 host2dev/dev2host hook calls.
3692
3693 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3694 to 'hsa_error_msg', for clarity.
3695 (hsa_fatal): Likewise.
3696 (hsa_error): New function.
3697 (init_hsa_context): Change return type to bool, adjust to return
3698 false on error.
3699 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3700 return value.
3701 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3702 return false on error.
3703 (get_agent_info): Adjust to return NULL on error.
3704 (destroy_hsa_program): Change return type to bool, adjust to
3705 return false on error.
3706 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3707 (destroy_module): Change return type to bool, adjust to
3708 return false on error.
3709 (GOMP_OFFLOAD_unload_image): Likewise.
3710 (GOMP_OFFLOAD_fini_device): Likewise.
3711 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3712 (GOMP_OFFLOAD_free): Change to return false when called.
3713 (GOMP_OFFLOAD_dev2host): Likewise.
3714 (GOMP_OFFLOAD_host2dev): Likewise.
3715 (GOMP_OFFLOAD_dev2dev): Likewise.
3716
3717 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3718 (CUDA_CALL): Likewise.
3719 (CUDA_CALL_ASSERT): Likewise.
3720 (map_init): Change return type to bool, use CUDA_CALL* macros.
3721 (map_fini): Likewise.
3722 (init_streams_for_device): Change return type to bool, adjust
3723 call to map_init.
3724 (fini_streams_for_device): Change return type to bool, adjust
3725 call to map_fini.
3726 (select_stream_for_async): Release stream_lock before calls to
3727 GOMP_PLUGIN_fatal, adjust call to map_init.
3728 (nvptx_init): Use CUDA_CALL* macros.
3729 (nvptx_attach_host_thread_to_device): Change return type to bool,
3730 use CUDA_CALL* macros.
3731 (nvptx_open_device): Use CUDA_CALL* macros.
3732 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3733 macros.
3734 (nvptx_get_num_devices): Use CUDA_CALL* macros.
3735 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3736 (nvptx_exec): Use CUDA_CALL* macros.
3737 (nvptx_alloc): Use CUDA_CALL* macros.
3738 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3739 (nvptx_host2dev): Likewise.
3740 (nvptx_dev2host): Likewise.
3741 (nvptx_wait): Use CUDA_CALL* macros.
3742 (nvptx_wait_async): Likewise.
3743 (nvptx_wait_all): Likewise.
3744 (nvptx_wait_all_async): Likewise.
3745 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3746 use CUDA_CALL* macros, adjust call to map_fini.
3747 (GOMP_OFFLOAD_init_device): Change return type to bool,
3748 adjust code accordingly.
3749 (GOMP_OFFLOAD_fini_device): Likewise.
3750 (GOMP_OFFLOAD_load_image): Adjust calls to
3751 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3752 use CUDA_CALL* macros.
3753 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3754 return code.
3755 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3756 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3757 handle error return.
3758 (GOMP_OFFLOAD_dev2host): Likewise.
3759 (GOMP_OFFLOAD_host2dev): Likewise.
3760 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3761 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3762
3763 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3764
3765 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3766 (acc_free): Likewise.
3767 (acc_memcpy_to_device): Likewise.
3768 (acc_memcpy_from_device): Likewise.
3769 (acc_deviceptr): Likewise.
3770 (acc_hostptr): Likewise.
3771 (acc_is_present): Likewise.
3772 (acc_map_data): Likewise.
3773 (acc_unmap_data): Likewise.
3774 (present_create_copy): Likewise.
3775 (delete_copyout): Likewise.
3776 (update_dev_host): Likewise.
3777 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3778 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3779 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3780 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3781 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3782 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3783 it only runs on nvptx targets.
3784 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3785 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3786 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3787 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3788 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3789 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3790 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3791 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3792 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3793 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3794 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3795 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3796 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3797 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3798 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3799 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3800 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3801 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3802 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3803 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3804 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3805 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3806 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3807
3808 2016-05-23 Martin Jambor <mjambor@suse.cz>
3809
3810 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3811
3812 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
3813
3814 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3815 to gomp_init_targets_once.
3816 (acc_set_device_type): Remove !cached_base_dev condition on call to
3817 gomp_init_targets_once, move call to before acc_device_lock acquire,
3818 to avoid deadlock.
3819 (acc_get_device_num): Remove !cached_base_dev condition on call to
3820 gomp_init_targets_once.
3821 (acc_set_device_num): Likewise.
3822
3823 2016-05-16 Martin Jambor <mjambor@suse.cz>
3824
3825 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3826
3827 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3828
3829 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3830 expected partitioning.
3831
3832 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3833
3834 PR middle-end/70626
3835 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3836 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3837 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3838
3839 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
3840
3841 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3842 non-fatal.
3843
3844 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3845
3846 PR middle-end/70680
3847 * testsuite/libgomp.c/pr70680-1.c: New test.
3848 * testsuite/libgomp.c/pr70680-2.c: New test.
3849
3850 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3851
3852 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3853 pass parameter variables to subroutines.
3854
3855 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3856
3857 PR middle-end/70643
3858 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3859
3860 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
3861
3862 PR testsuite/68242
3863 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3864 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3865
3866 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
3867
3868 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3869 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3870 GOACC_declare prototype.
3871
3872 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3873 Merge this file, and...
3874 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3875 ... this file, and...
3876 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3877 ... this file, and...
3878 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3879 ... this file, and...
3880 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3881 ... this file, and...
3882 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3883 ... this file, and...
3884 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3885 ... this file, and...
3886 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3887 ... this file, and...
3888 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3889 ... this file, and...
3890 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3891 ... this file, and...
3892 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3893 ... this file, and...
3894 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3895 ... this file, and...
3896 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3897 ... this file into...
3898 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3899 file.
3900
3901 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3902 Make failure observable.
3903
3904 2016-04-12 Jakub Jelinek <jakub@redhat.com>
3905
3906 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3907 field.
3908 * target.c (gomp_target_fallback_firstprivate,
3909 gomp_target_unshare_firstprivate): Removed.
3910 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3911 before waiting for dependencies.
3912 (gomp_target_task_fn): Don't copy firstprivate vars here.
3913 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3914 firstprivate_copies here.
3915 (gomp_create_target_task): Don't initialize firstprivate_copies field.
3916 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3917 explicit/implicit firstprivate.
3918
3919 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
3920
3921 PR lto/70289
3922 PR ipa/70348
3923 PR tree-optimization/70373
3924 PR middle-end/70533
3925 PR middle-end/70534
3926 PR middle-end/70535
3927 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3928 test.
3929 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3930 test.
3931 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3932 test.
3933 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3934 test.
3935 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3936 test.
3937 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3938 test.
3939 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3940 test.
3941 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3942 test.
3943 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3944 test.
3945 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3946 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3947 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3948 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3949 test.
3950 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3951 test.
3952 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3953 test.
3954 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3955 test.
3956 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3957 coverage.
3958 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3959 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3960 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3961 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3962 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3963 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3964 coverage.
3965 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3966 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3967 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3968 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3969 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3970 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3971 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3972 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3973 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3974 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3975 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3976 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3977 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3978 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3979 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3980
3981 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
3982 James Norris <jnorris@codesourcery.com>
3983 Nathan Sidwell <nathan@codesourcery.com>
3984 Julian Brown <julian@codesourcery.com>
3985 Cesar Philippidis <cesar@codesourcery.com>
3986 Chung-Lin Tang <cltang@codesourcery.com>
3987 Tom de Vries <tom@codesourcery.com>
3988
3989 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
3990 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3991 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3992 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
3993 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3994 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3995 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3996 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3997 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3998 XFAIL.
3999 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4000 Incorporate...
4001 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
4002 file.
4003 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
4004 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
4005 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
4006 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
4007 Likewise.
4008 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4009 Likewise.
4010 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4011 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
4012 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4013 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4014 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4015 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4016 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4017 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4018 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4019 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
4020 Likewise.
4021 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
4022 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4023 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
4024 file...
4025 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
4026 file into...
4027 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
4028 file. Update.
4029 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
4030 file.
4031 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
4032 Likewise.
4033 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
4034 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
4035 ... this new file. Update.
4036 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
4037 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
4038 ... this new file. Update.
4039 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
4040 file. Incorporate...
4041 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
4042 file, and...
4043 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
4044 file, and...
4045 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
4046 file.
4047 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
4048
4049 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
4050
4051 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
4052 set-torture-options.
4053
4054 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
4055
4056 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
4057 gcc-dg-runtest.
4058 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4059 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
4060 -fno-builtin-acc_on_device instead of -O0.
4061 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
4062 -O0.
4063 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4064 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
4065 Likewise.
4066 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4067 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4068 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4069 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4070 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4071 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4072 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4073 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4074 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4075 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4076 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4077 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4078 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4079 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4080 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4081 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4082 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4083 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
4084 Don't specify -O2.
4085 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
4086 Likewise.
4087 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
4088 Likewise.
4089
4090 2016-03-24 Martin Liska <mliska@suse.cz>
4091
4092 * plugin/plugin-hsa.c (packet_store_release): New function
4093 that is taken from the HSA runtime manual.
4094 (GOMP_OFFLOAD_run): Use the function.
4095
4096 2016-03-23 Jakub Jelinek <jakub@redhat.com>
4097
4098 PR c++/70376
4099 * testsuite/libgomp.c++/pr70376.C: New test.
4100
4101 2016-03-23 Tom de Vries <tom@codesourcery.com>
4102
4103 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
4104 initialization of lresult and lvresult.
4105 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
4106
4107 2016-03-23 James Norris <jnorris@codesourcery.com>
4108 Daichi Fukuoka <dc-fukuoka@sgi.com>
4109
4110 PR libgomp/69414
4111 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
4112 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
4113 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4114 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
4115
4116 2016-03-23 Martin Liska <mliska@suse.cz>
4117
4118 PR hsa/70337
4119 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
4120 argument just in case a dispatched kernel uses that argument.
4121
4122 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
4123
4124 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
4125 -ftree-parallelize-loops/-fopenacc changes.
4126 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
4127 Likewise.
4128 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4129 Likewise.
4130 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
4131 Likewise.
4132 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
4133 Likewise.
4134 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4135 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4136
4137 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
4138
4139 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
4140 always_ld_library_path the path to libgcc_s.
4141
4142 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
4143
4144 PR testsuite/70009
4145 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
4146
4147 2016-03-09 Tom de Vries <tom@codesourcery.com>
4148
4149 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
4150 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
4151 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4152 Same.
4153 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
4154 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
4155 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
4156 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
4157
4158 2016-03-07 Martin Jambor <mjambor@suse.cz>
4159
4160 * testsuite/lib/libgomp.exp
4161 (check_effective_target_hsa_offloading_selected_nocache): New.
4162 (check_effective_target_hsa_offloading_selected): Likewise.
4163 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4164 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
4165 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4166 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4167 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4168 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4169 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4170 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4171 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4172 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4173 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4174 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4175 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4176 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4177 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4178 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4179 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4180
4181 2016-03-07 Martin Jambor <mjambor@suse.cz>
4182
4183 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4184 non-shared memory accelerators.
4185 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4186 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4187 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4188 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4189 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4190 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4191 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4192 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4193 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4194
4195 2016-03-07 Martin Jambor <mjambor@suse.cz>
4196
4197 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4198 ALWAYS_CFLAGS.
4199
4200 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4201
4202 PR libgomp/69555
4203 * testsuite/libgomp.c++/pr69555-1.C: New test.
4204 * testsuite/libgomp.c++/pr69555-2.C: New test.
4205
4206 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
4207 Martin Jambor <mjambor@suse.cz>
4208
4209 * testsuite/lib/libgomp.exp
4210 (check_effective_target_offload_device_shared_as): New proc.
4211 * testsuite/libgomp.c++/declare_target-1.C: New test.
4212
4213 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4214
4215 PR driver/68463
4216 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4217
4218 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4219
4220 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4221 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4222 dims.
4223 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4224 -ftree-parallelize-loops/-fopenacc changes.
4225 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4226 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4227 Likewise.
4228 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4229 Likewise.
4230 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4231 Likewise.
4232 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4233 Likewise.
4234 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4235 Likewise.
4236 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4237 Likewise.
4238 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4239 Likewise.
4240 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4241 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4242 Likewise.
4243 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4244 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4245 Likewise.
4246 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4247 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4248 Likewise.
4249
4250 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4251
4252 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4253
4254 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4255
4256 PR driver/69805
4257 * testsuite/libgomp.c/pr69805.c: New test.
4258
4259 2016-02-16 Tom de Vries <tom@codesourcery.com>
4260
4261 PR lto/67709
4262 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4263
4264 2016-02-09 Tom de Vries <tom@codesourcery.com>
4265
4266 PR tree-optimization/69599
4267 * testsuite/libgomp.c/omp-nested-3.c: New test.
4268 * testsuite/libgomp.c/pr46032-2.c: New test.
4269 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4270 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4271
4272 2016-02-09 Tom de Vries <tom@codesourcery.com>
4273
4274 PR lto/69707
4275 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4276
4277 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4278
4279 * testsuite/libgomp.c/target-31.c: Fix testcase.
4280
4281 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4282
4283 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4284 clause.
4285 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4286 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4287 reduction and map clauses.
4288 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4289
4290 2016-02-02 James Norris <jnorris@codesourcery.com>
4291
4292 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4293
4294 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4295
4296 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4297 * oacc-parallel.c (GOACC_host_data): Remove function definition.
4298
4299 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4300 cases.
4301
4302 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4303 variables.
4304 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4305 (hsa_kmt_lib): Set variables.
4306 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4307 always_ld_library_path.
4308 * Makefile.in: Regenerate.
4309 * configure: Likewise.
4310 * testsuite/Makefile.in: Likewise.
4311
4312 * plugin/configfrag.ac (offload_additional_options)
4313 (offload_additional_lib_paths): Don't amend for hsa offloading.
4314 * configure: Regenerate.
4315
4316 * plugin/configfrag.ac: Don't configure for offloading target if
4317 we don't build the corresponding plugin.
4318 * configure: Regenerate.
4319
4320 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4321
4322 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4323 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4324
4325 2016-01-26 Tom de Vries <tom@codesourcery.com>
4326
4327 PR tree-optimization/69110
4328 * testsuite/libgomp.c/pr69110.c: New test.
4329
4330 2016-01-25 Richard Biener <rguenther@suse.de>
4331
4332 PR lto/69393
4333 * testsuite/libgomp.c++/pr69393.C: New testcase.
4334
4335 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
4336
4337 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4338 function wasn't mapped to the device with non-shared memory.
4339
4340 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
4341
4342 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4343
4344 2016-01-19 Martin Jambor <mjambor@suse.cz>
4345 Martin Liska <mliska@suse.cz>
4346
4347 * plugin/Makefrag.am: Add HSA plugin requirements.
4348 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4349 (HSA_RUNTIME_LIB): Likewise.
4350 (HSA_RUNTIME_CPPFLAGS): Likewise.
4351 (HSA_RUNTIME_INCLUDE): New substitution.
4352 (HSA_RUNTIME_LIB): Likewise.
4353 (HSA_RUNTIME_LDFLAGS): Likewise.
4354 (hsa-runtime): New configure option.
4355 (hsa-runtime-include): Likewise.
4356 (hsa-runtime-lib): Likewise.
4357 (PLUGIN_HSA): New substitution variable.
4358 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4359 configure options.
4360 (PLUGIN_HSA_CPPFLAGS): Likewise.
4361 (PLUGIN_HSA_LDFLAGS): Likewise.
4362 (PLUGIN_HSA_LIBS): Likewise.
4363 Check that we have access to HSA run-time.
4364 * libgomp-plugin.h (offload_target_type): New element
4365 OFFLOAD_TARGET_TYPE_HSA.
4366 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
4367 args.
4368 (bool gomp_create_target_task): Updated.
4369 (gomp_device_descr): Extra parameter of run_func and async_run_func,
4370 new field can_run_func.
4371 * libgomp_g.h (GOMP_target_ext): Update prototype.
4372 * oacc-host.c (host_run): Added a new parameter args.
4373 * target.c (calculate_firstprivate_requirements): New function.
4374 (copy_firstprivate_data): Likewise.
4375 (gomp_target_fallback_firstprivate): Use them.
4376 (gomp_target_unshare_firstprivate): New function.
4377 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
4378 devices.
4379 (GOMP_target): Do host fallback for all shared memory devices. Do not
4380 pass any args to plugins.
4381 (GOMP_target_ext): Introduce device-specific argument parameter args.
4382 Allow host fallback if device shares memory. Do not remap data if
4383 device has shared memory.
4384 (gomp_target_task_fn): Likewise. Also treat shared memory devices
4385 like host fallback for mappings.
4386 (GOMP_target_data): Treat shared memory devices like host fallback.
4387 (GOMP_target_data_ext): Likewise.
4388 (GOMP_target_update): Likewise.
4389 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
4390 gomp_create_target_task.
4391 (GOMP_target_enter_exit_data): Likewise.
4392 (omp_target_alloc): Treat shared memory devices like host fallback.
4393 (omp_target_free): Likewise.
4394 (omp_target_is_present): Likewise.
4395 (omp_target_memcpy): Likewise.
4396 (omp_target_memcpy_rect): Likewise.
4397 (omp_target_associate_ptr): Likewise.
4398 (gomp_load_plugin_for_device): Also load can_run.
4399 * task.c (GOMP_PLUGIN_target_task_completion): Free
4400 firstprivate_copies.
4401 (gomp_create_target_task): Accept new argument args and store it to
4402 ttask.
4403 * plugin/plugin-hsa.c: New file.
4404
4405 2016-01-18 Tom de Vries <tom@codesourcery.com>
4406
4407 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
4408 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
4409 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
4410 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
4411 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
4412 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
4413 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
4414 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
4415 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
4416 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
4417 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4418 Same.
4419 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4420 Same.
4421 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
4422 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
4423 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
4424 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
4425 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
4426 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
4427 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
4428 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4429 Same.
4430 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
4431
4432 2016-01-15 Jakub Jelinek <jakub@redhat.com>
4433
4434 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
4435
4436 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
4437
4438 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
4439
4440 2016-01-12 James Norris <jnorris@codesourcery.com>
4441
4442 * libgomp.texi: Updates for OpenACC.
4443
4444 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
4445
4446 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
4447
4448 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4449
4450 PR fortran/66680
4451 * testsuite/libgomp.fortran/pr66680.f90: New test.
4452
4453 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4454
4455 PR middle-end/68960
4456 * testsuite/libgomp.c/pr68960.c: New test.
4457
4458 2016-01-06 Nathan Sidwell <nathan@acm.org>
4459
4460 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
4461 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
4462
4463 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4464
4465 Update copyright years.
4466
4467 * libgomp.texi: Bump @copying's copyright year.
4468
4469 2015-12-31 Nathan Sidwell <nathan@acm.org>
4470
4471 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
4472 dg-additional-options syntax.
4473 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4474 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4475 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4476 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4477 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4478 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4479 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4480 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4481 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4482 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4483 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4484 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4485 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4486 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4487 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4488 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4489 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4490 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4491
4492 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4493
4494 * libgomp.h (REFCOUNT_LINK): Define.
4495 (struct splay_tree_key_s): Add link_key.
4496 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4497 Replace target address of the pointer with target address of newly
4498 mapped object in the splay tree. Set link pointer on target to the
4499 device address of the mapped object.
4500 (gomp_unmap_vars): Restore target address of the pointer in the splay
4501 tree for REFCOUNT_LINK objects after unmapping.
4502 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4503 declare target link" objects.
4504 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
4505 "omp declare target link" objects, which were mapped for the image.
4506 (gomp_exit_data): Restore target address of the pointer in the splay
4507 tree for REFCOUNT_LINK objects after unmapping.
4508 * testsuite/libgomp.c/target-link-1.c: New file.
4509
4510 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
4511
4512 * libgomp.h (gomp_device_state): New enum.
4513 (struct gomp_device_descr): Replace is_initialized with state.
4514 (gomp_fini_device): Remove declaration.
4515 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4516 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4517 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
4518 (acc_set_device_type): Use state instead of is_initialized.
4519 (acc_set_device_num): Likewise.
4520 * target.c (resolve_device): Use state instead of is_initialized.
4521 Do not initialize finalized device.
4522 (gomp_map_vars): Do nothing if device is finalized.
4523 (gomp_unmap_vars): Likewise.
4524 (gomp_update): Likewise.
4525 (GOMP_offload_register_ver): Use state instead of is_initialized.
4526 (GOMP_offload_unregister_ver): Likewise.
4527 (gomp_init_device): Likewise.
4528 (gomp_unload_device): Likewise.
4529 (gomp_fini_device): Remove.
4530 (gomp_get_target_fn_addr): Do nothing if device is finalized.
4531 (GOMP_target): Go to host fallback if device is finalized.
4532 (GOMP_target_ext): Likewise.
4533 (gomp_exit_data): Do nothing if device is finalized.
4534 (gomp_target_task_fn): Go to host fallback if device is finalized.
4535 (gomp_target_fini): New static function.
4536 (gomp_target_init): Use state instead of is_initialized.
4537 Call gomp_target_fini at exit.
4538
4539 2015-12-09 Tom de Vries <tom@codesourcery.com>
4540
4541 PR tree-optimization/68716
4542 * testsuite/libgomp.c/omp-nested-2.c: New test.
4543
4544 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
4545
4546 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4547 target openacc_nvidia_accel_selected.
4548 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4549 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4550 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4551 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4552
4553 2015-12-01 Julian Brown <julian@codesourcery.com>
4554 James Norris <James_Norris@mentor.com>
4555
4556 * oacc-parallel.c (GOACC_host_data): New function.
4557 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4558 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4559 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4560 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4561 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4562 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4563 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4564
4565 2015-11-30 James Norris <jnorris@codesourcery.com>
4566 Cesar Philippidis <cesar@codesourcery.com>
4567
4568 libgomp/
4569 * libgomp.oacc-fortran/routine-5.f90: New test.
4570 * libgomp.oacc-fortran/routine-7.f90: New test.
4571 * libgomp.oacc-fortran/routine-9.f90: New test.
4572
4573 2015-11-30 Tom de Vries <tom@codesourcery.com>
4574
4575 PR tree-optimization/46032
4576 * testsuite/libgomp.c/pr46032.c: New test.
4577
4578 2015-11-27 Jakub Jelinek <jakub@redhat.com>
4579
4580 PR libgomp/68579
4581 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4582 (gomp_create_target_task): Call it before freeing
4583 GOMP_TARGET_TASK_DATA tasks.
4584
4585 PR c/63326
4586 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4587 in between case label and OpenMP standalone directives.
4588 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4589
4590 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
4591
4592 * configure: Regenerate.
4593
4594 2015-11-26 Jakub Jelinek <jakub@redhat.com>
4595
4596 * testsuite/libgomp.c/target-35.c: New test.
4597
4598 2015-11-22 James Norris <jnorris@codesourcery.com>
4599 Cesar Philippidis <cesar@codesourcery.com>
4600
4601 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4602 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4603 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4604 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4605 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4606
4607 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4608
4609 PR middle-end/68221
4610 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4611 * testsuite/libgomp.c/reduction-12.c: Likewise.
4612 * testsuite/libgomp.c++/reduction-11.C: Likewise.
4613 * testsuite/libgomp.c++/reduction-12.C: Likewise.
4614
4615 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
4616
4617 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4618 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4619 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4620 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4621 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4622 and fix.
4623 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4624 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4625
4626 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4627
4628 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4629 worker & gang cases.
4630 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4631
4632 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
4633
4634 * config/nvptx/priority_queue.c: New file.
4635
4636 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4637
4638 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4639 sections.
4640
4641 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4642 Aldy Hernandez <aldyh@redhat.com>
4643 Ilya Verbin <ilya.verbin@intel.com>
4644
4645 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4646 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4647 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4648 iterators or IV by chunk size.
4649 * parallel.c (gomp_resolve_num_threads): Don't assume that
4650 if thr->ts.team is non-NULL, then pool must be non-NULL.
4651 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4652 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4653 GOMP_PLUGIN_target_task_completion.
4654 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4655 * Makefile.in: Regenerate.
4656 * libgomp.h: Shuffle prototypes and forward definitions around so
4657 priority queues can be defined.
4658 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4659 (enum gomp_target_task_state): New enum.
4660 (struct gomp_target_task): Add state, tgt, task and team fields.
4661 (gomp_create_target_task): Change return type to bool, add
4662 state argument.
4663 (gomp_target_task_fn): Change return type to bool.
4664 (struct gomp_device_descr): Add async_run_func.
4665 (struct gomp_task): Remove children, next_child, prev_child,
4666 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4667 Add pnode field.
4668 (struct gomp_taskgroup): Remove children.
4669 Add taskgroup_queue.
4670 (struct gomp_team): Change task_queue type to a priority queue.
4671 (splay_compare): Define inline.
4672 (priority_queue_offset): New.
4673 (priority_node_to_task): New.
4674 (task_to_priority_node): New.
4675 * oacc-mem.c: Do not include splay-tree.h.
4676 * priority_queue.c: New file.
4677 * priority_queue.h: New file.
4678 * splay-tree.c: Do not include splay-tree.h.
4679 (splay_tree_foreach_internal): New.
4680 (splay_tree_foreach): New.
4681 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4682 (splay_tree_callback): Define typedef.
4683 * target.c (splay_compare): Move to libgomp.h.
4684 (GOMP_target): Don't adjust *thr in any way around running offloaded
4685 task.
4686 (GOMP_target_ext): Likewise. Handle target nowait.
4687 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4688 return value from gomp_create_target_task, if false, fallthrough
4689 as if no dependencies exist.
4690 (gomp_target_task_fn): Change return type to bool, return true
4691 if the task should have another part scheduled later. Handle
4692 target nowait.
4693 (gomp_load_plugin_for_device): Initialize async_run.
4694 * task.c (gomp_init_task): Initialize children_queue.
4695 (gomp_clear_parent_in_list): New.
4696 (gomp_clear_parent_in_tree): New.
4697 (gomp_clear_parent): Handle priorities.
4698 (GOMP_task): Likewise.
4699 (priority_queue_move_task_first,
4700 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4701 New functions.
4702 (gomp_create_target_task): Use priority queues. Change return type
4703 to bool, add state argument, return false if for async
4704 {{enter,exit} data,update} constructs no dependencies need to be
4705 waited for, handle target nowait. Set task->fn to NULL instead of
4706 gomp_target_task_fn.
4707 (verify_children_queue): Remove.
4708 (priority_list_upgrade_task): New.
4709 (priority_queue_upgrade_task): New.
4710 (verify_task_queue): Remove.
4711 (priority_list_downgrade_task): New.
4712 (priority_queue_downgrade_task): New.
4713 (gomp_task_run_pre): Use priority queues.
4714 Abstract code out to priority_queue_downgrade_task.
4715 (gomp_task_run_post_handle_dependers): Use priority queues.
4716 (gomp_task_run_post_remove_parent): Likewise.
4717 (gomp_task_run_post_remove_taskgroup): Likewise.
4718 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
4719 tasks specially.
4720 (GOMP_taskwait): Likewise.
4721 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
4722 priority-queue_upgrade_task.
4723 (GOMP_taskgroup_start): Use priority queues.
4724 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
4725 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
4726 barrier.
4727 * taskloop.c (GOMP_taskloop): Handle priorities.
4728 * team.c (gomp_new_team): Call priority_queue_init.
4729 (free_team): Call priority_queue_free.
4730 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4731 team created for target nowait in implicit parallel region.
4732 (gomp_team_start): For nested check, test thr->ts.level instead of
4733 thr->ts.team != NULL.
4734 * testsuite/libgomp.c/doacross-3.c: New test.
4735 * testsuite/libgomp.c/ordered-5.c: New test.
4736 * testsuite/libgomp.c/priority.c: New test.
4737 * testsuite/libgomp.c/target-31.c: New test.
4738 * testsuite/libgomp.c/target-32.c: New test.
4739 * testsuite/libgomp.c/target-33.c: New test.
4740 * testsuite/libgomp.c/target-34.c: New test.
4741
4742 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4743
4744 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4745
4746 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4747 loop is sequential.
4748
4749 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4750
4751 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4752 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4753
4754 2015-11-12 James Norris <jnorris@codesourcery.com>
4755 Joseph Myers <joseph@codesourcery.com>
4756
4757 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4758 * oacc-parallel.c (GOACC_declare): New function.
4759 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4760 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4761 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4762 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4763 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4764
4765 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4766
4767 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4768
4769 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
4770
4771 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4772 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4773
4774 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4775
4776 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4777 inadvertent commit.
4778
4779 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4780
4781 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4782 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4783 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4784 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4785 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4786
4787 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
4788
4789 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4790 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4791
4792 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4793 Ilya Verbin <ilya.verbin@intel.com>
4794
4795 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4796 GOMP_loop_nonmonotonic_dynamic_start,
4797 GOMP_loop_nonmonotonic_guided_next,
4798 GOMP_loop_nonmonotonic_guided_start,
4799 GOMP_loop_ull_nonmonotonic_dynamic_next,
4800 GOMP_loop_ull_nonmonotonic_dynamic_start,
4801 GOMP_loop_ull_nonmonotonic_guided_next,
4802 GOMP_loop_ull_nonmonotonic_guided_start,
4803 GOMP_parallel_loop_nonmonotonic_dynamic,
4804 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4805 (GOMP_target_41): Renamed to ...
4806 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4807 arguments.
4808 (GOMP_target_data_41): Renamed to ...
4809 (GOMP_target_data_ext): ... this.
4810 (GOMP_target_update_41): Renamed to ...
4811 (GOMP_target_update_ext): ... this.
4812 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4813 GOMP_target_data_ext and GOMP_target_update_ext instead of
4814 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4815 Export GOMP_loop_nonmonotonic_dynamic_next,
4816 GOMP_loop_nonmonotonic_dynamic_start,
4817 GOMP_loop_nonmonotonic_guided_next,
4818 GOMP_loop_nonmonotonic_guided_start,
4819 GOMP_loop_ull_nonmonotonic_dynamic_next,
4820 GOMP_loop_ull_nonmonotonic_dynamic_start,
4821 GOMP_loop_ull_nonmonotonic_guided_next,
4822 GOMP_loop_ull_nonmonotonic_guided_start,
4823 GOMP_parallel_loop_nonmonotonic_dynamic and
4824 GOMP_parallel_loop_nonmonotonic_guided.
4825 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4826 GOMP_parallel_loop_nonmonotonic_guided,
4827 GOMP_loop_nonmonotonic_dynamic_start,
4828 GOMP_loop_nonmonotonic_guided_start,
4829 GOMP_loop_nonmonotonic_dynamic_next,
4830 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4831 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4832 GOMP_loop_ull_nonmonotonic_guided_start,
4833 GOMP_loop_ull_nonmonotonic_dynamic_next,
4834 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4835 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4836 functions.
4837 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
4838 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4839 Use gomp_map_val function.
4840 (gomp_target_fallback_firstprivate): New static function.
4841 (GOMP_target_41): Renamed to ...
4842 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4843 arguments. Move firstprivate fallback handling into a new
4844 function.
4845 (GOMP_target_data_41): Renamed to ...
4846 (GOMP_target_data_ext): ... this.
4847 (GOMP_target_update_41): Renamed to ...
4848 (GOMP_target_update_ext): ... this.
4849 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4850 gomp_map_0len_lookup instead of gomp_map_lookup.
4851 (omp_target_is_present): Use gomp_map_0len_lookup instead of
4852 gomp_map_lookup.
4853 * testsuite/libgomp.c/target-28.c: Likewise.
4854 * testsuite/libgomp.c/monotonic-1.c: New test.
4855 * testsuite/libgomp.c/monotonic-2.c: New test.
4856 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4857 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4858 * testsuite/libgomp.c/pr66199-5.c: New test.
4859 * testsuite/libgomp.c/pr66199-6.c: New test.
4860 * testsuite/libgomp.c/pr66199-7.c: New test.
4861 * testsuite/libgomp.c/pr66199-8.c: New test.
4862 * testsuite/libgomp.c/pr66199-9.c: New test.
4863 * testsuite/libgomp.c/reduction-11.c: New test.
4864 * testsuite/libgomp.c/reduction-12.c: New test.
4865 * testsuite/libgomp.c/reduction-13.c: New test.
4866 * testsuite/libgomp.c/reduction-14.c: New test.
4867 * testsuite/libgomp.c/reduction-15.c: New test.
4868 * testsuite/libgomp.c/target-12.c (main): Adjust for
4869 omp_target_is_present change for one-past-last element.
4870 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4871 the same var is both mapped and privatized.
4872 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4873 handling of zero-length array sections.
4874 * testsuite/libgomp.c/target-28.c: New test.
4875 * testsuite/libgomp.c/target-29.c: New test.
4876 * testsuite/libgomp.c/target-30.c: New test.
4877 * testsuite/libgomp.c/target-teams-1.c: New test.
4878 * testsuite/libgomp.c++/member-6.C: New test.
4879 * testsuite/libgomp.c++/member-7.C: New test.
4880 * testsuite/libgomp.c++/monotonic-1.C: New test.
4881 * testsuite/libgomp.c++/monotonic-2.C: New test.
4882 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4883 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4884 * testsuite/libgomp.c++/pr66199-3.C: New test.
4885 * testsuite/libgomp.c++/pr66199-4.C: New test.
4886 * testsuite/libgomp.c++/pr66199-5.C: New test.
4887 * testsuite/libgomp.c++/pr66199-6.C: New test.
4888 * testsuite/libgomp.c++/pr66199-7.C: New test.
4889 * testsuite/libgomp.c++/pr66199-8.C: New test.
4890 * testsuite/libgomp.c++/pr66199-9.C: New test.
4891 * testsuite/libgomp.c++/reduction-11.C: New test.
4892 * testsuite/libgomp.c++/reduction-12.C: New test.
4893 * testsuite/libgomp.c++/target-13.C: New test.
4894 * testsuite/libgomp.c++/target-14.C: New test.
4895 * testsuite/libgomp.c++/target-15.C: New test.
4896 * testsuite/libgomp.c++/target-16.C: New test.
4897 * testsuite/libgomp.c++/target-17.C: New test.
4898 * testsuite/libgomp.c++/target-18.C: New test.
4899 * testsuite/libgomp.c++/target-19.C: New test.
4900
4901 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4902
4903 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4904 and reduction copy.
4905 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4906 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4907 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4908 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4909 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4910 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4911 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4912 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4913 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4914 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4915 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4916 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4917 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4918 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4919
4920 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4921
4922 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4923 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4924 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4925 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4926 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4927 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4928 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4929 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4930
4931 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4932
4933 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4934 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4935 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4936 * oacc-host.c (host_openacc_exec): Likewise.
4937 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4938
4939 2015-11-03 Julian Brown <julian@codesourcery.com>
4940 Thomas Schwinge <thomas@codesourcery.com>
4941
4942 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4943 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4944 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4945 Likewise.
4946 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4947 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4948
4949 2015-11-03 James Norris <jnorris@codesourcery.com>
4950
4951 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4952 file.
4953 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4954 Likewise.
4955 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4956 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4957 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4958 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4959 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4960
4961 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4962
4963 * openacc.h (enum acc_device_t): Reformat. Ensure layout
4964 compatibility.
4965 (enum acc_async_t): Reformat.
4966 (acc_on_device): Declare compatible with builtin and provide C++
4967 wrapper.
4968 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4969
4970 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
4971 Cesar Philippidis <cesar@codesourcery.com>
4972
4973 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4974 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4975 ... this. Add a description of the test at the top of the file.
4976 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4977 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4978 ... this. Add a description of the test at the top of the file.
4979
4980 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4981
4982 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4983 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4984 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4985 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4986 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4987 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
4988
4989 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4990
4991 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
4992 dimensions.
4993
4994 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4995
4996 PR testsuite/68063
4997 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
4998
4999 2015-10-27 James Norris <jnorris@codesourcery.com>
5000
5001 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
5002 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
5003
5004 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
5005
5006 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
5007 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5008
5009 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
5010 acc_device_nvidia usage.
5011 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
5012 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5013 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
5014
5015 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
5016 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
5017
5018 PR libgomp/66518
5019 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
5020
5021 PR libgomp/65437
5022 PR libgomp/66518
5023 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
5024 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
5025
5026 2015-10-23 Tom de Vries <tom@codesourcery.com>
5027
5028 PR testsuite/68063
5029 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
5030
5031 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
5032
5033 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
5034 vector_length.
5035 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5036
5037 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
5038 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
5039
5040 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
5041 to 0 when mapnum is 0.
5042
5043 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
5044
5045 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
5046 Cast to int from int32_t.
5047
5048 2015-10-13 Jakub Jelinek <jakub@redhat.com>
5049 Aldy Hernandez <aldyh@redhat.com>
5050 Ilya Verbin <ilya.verbin@intel.com>
5051
5052 * config/linux/affinity.c (omp_get_place_num_procs,
5053 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5054 * config/linux/doacross.h: New file.
5055 * config/posix/affinity.c (omp_get_place_num_procs,
5056 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5057 * config/posix/doacross.h: New file.
5058 * env.c: Include gomp-constants.h.
5059 (struct gomp_task_icv): Rename run_sched_modifier to
5060 run_sched_chunk_size.
5061 (gomp_max_task_priority_var): New variable.
5062 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
5063 (handle_omp_display_env): Change _OPENMP value from 201307 to
5064 201511. Print OMP_MAX_TASK_PRIORITY.
5065 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
5066 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
5067 chunk_size and run_sched_modifier to run_sched_chunk_size.
5068 (omp_get_max_task_priority, omp_get_initial_device,
5069 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
5070 omp_get_partition_place_nums): New functions.
5071 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
5072 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
5073 to chunk_size.
5074 (omp_get_num_places_, omp_get_place_num_procs_,
5075 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
5076 omp_get_place_proc_ids_8_, omp_get_place_num_,
5077 omp_get_partition_num_places_, omp_get_partition_place_nums_,
5078 omp_get_partition_place_nums_8_, omp_get_initial_device_,
5079 omp_get_max_task_priority_): New functions.
5080 * libgomp_g.h (GOMP_loop_doacross_static_start,
5081 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
5082 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
5083 GOMP_loop_ull_doacross_dynamic_start,
5084 GOMP_loop_ull_doacross_guided_start,
5085 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
5086 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
5087 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
5088 GOMP_target_data_41, GOMP_target_update_41,
5089 GOMP_target_enter_exit_data): New prototypes.
5090 (GOMP_task): Add prototype argument.
5091 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
5092 (struct gomp_doacross_work_share): New type.
5093 (struct gomp_work_share): Add doacross field.
5094 (struct gomp_task_icv): Rename run_sched_modifier to
5095 run_sched_chunk_size.
5096 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
5097 GOMP_TASK_UNDEFERRED. Add comments.
5098 (struct gomp_task_depend_entry): Add comments.
5099 (struct gomp_task): Likewise.
5100 (struct gomp_taskgroup): Likewise.
5101 (struct gomp_target_task): New type.
5102 (struct gomp_team): Add comment.
5103 (gomp_get_place_proc_ids_8, gomp_doacross_init,
5104 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
5105 gomp_create_target_task, gomp_target_task_fn): New prototypes.
5106 (struct target_var_desc): New type.
5107 (struct target_mem_desc): Adjust comment. Use struct
5108 target_var_desc instead of splay_tree_key for list.
5109 (REFCOUNT_INFINITY): Define.
5110 (struct splay_tree_key_s): Remove copy_from field.
5111 (struct gomp_device_descr): Add dev2dev_func field.
5112 (enum gomp_map_vars_kind): New enum.
5113 (gomp_map_vars): Add one argument.
5114 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
5115 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
5116 omp_get_place_num_procs, omp_get_place_num_procs_,
5117 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
5118 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
5119 omp_get_place_num_, omp_get_partition_num_places,
5120 omp_get_partition_num_places_, omp_get_partition_place_nums,
5121 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
5122 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
5123 omp_target_free, omp_target_is_present, omp_target_memcpy,
5124 omp_target_memcpy_rect, omp_target_associate_ptr and
5125 omp_target_disassociate_ptr.
5126 (GOMP_4.0.2): Renamed to ...
5127 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
5128 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
5129 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
5130 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5131 GOMP_loop_doacross_static_start, GOMP_doacross_post,
5132 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
5133 GOMP_loop_ull_doacross_guided_start,
5134 GOMP_loop_ull_doacross_runtime_start,
5135 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
5136 GOMP_doacross_ull_wait.
5137 * libgomp.texi: Document omp_get_max_task_priority.
5138 Rename modifier argument to chunk_size for omp_set_schedule and
5139 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
5140 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
5141 to run_sched_chunk_size renaming.
5142 (GOMP_loop_ordered_runtime_start): Likewise.
5143 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5144 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5145 GOMP_parallel_loop_runtime_start): New functions.
5146 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
5147 to run_sched_chunk_size renaming.
5148 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
5149 GOMP_loop_doacross_guided_start): New functions or aliases.
5150 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
5151 run_sched_modifier to run_sched_chunk_size renaming.
5152 (GOMP_loop_ull_ordered_runtime_start): Likewise.
5153 (gomp_loop_ull_doacross_static_start,
5154 gomp_loop_ull_doacross_dynamic_start,
5155 gomp_loop_ull_doacross_guided_start,
5156 GOMP_loop_ull_doacross_runtime_start): New functions.
5157 (GOMP_loop_ull_doacross_static_start,
5158 GOMP_loop_ull_doacross_dynamic_start,
5159 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
5160 * oacc-mem.c (acc_map_data, present_create_copy,
5161 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
5162 to gomp_map_vars.
5163 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
5164 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
5165 instead of false to gomp_map_vars.
5166 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
5167 * omp.h.in (omp_lock_hint_t): New type.
5168 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5169 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5170 omp_get_place_num, omp_get_partition_num_places,
5171 omp_get_partition_place_nums, omp_get_initial_device,
5172 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
5173 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
5174 omp_target_associate_ptr, omp_target_disassociate_ptr): New
5175 prototypes.
5176 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
5177 (omp_lock_hint_none, omp_lock_hint_uncontended,
5178 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5179 omp_lock_hint_speculative): New parameters.
5180 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5181 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5182 omp_get_place_num, omp_get_partition_num_places,
5183 omp_get_partition_place_nums, omp_get_initial_device,
5184 omp_get_max_task_priority): New interfaces.
5185 (omp_set_schedule, omp_get_schedule): Rename modifier argument
5186 to chunk_size.
5187 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5188 (omp_lock_hint_none, omp_lock_hint_uncontended,
5189 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5190 omp_lock_hint_speculative): New parameters.
5191 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5192 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5193 omp_get_place_num, omp_get_partition_num_places,
5194 omp_get_partition_place_nums, omp_get_initial_device,
5195 omp_get_max_task_priority): New functions and subroutines.
5196 * ordered.c: Include stdarg.h and string.h.
5197 (MAX_COLLAPSED_BITS): Define.
5198 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5199 gomp_doacross_ull_init, GOMP_doacross_ull_post,
5200 GOMP_doacross_ull_wait): New functions.
5201 * target.c: Include errno.h.
5202 (resolve_device): If device is not initialized, call
5203 gomp_init_device on it.
5204 (gomp_map_lookup): New function.
5205 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5206 Don't bump refcount if REFCOUNT_INFINITY. Handle
5207 GOMP_MAP_ALWAYS_TO_P.
5208 (get_kind): Rename is_openacc argument to short_mapkind.
5209 (gomp_map_pointer): Use gomp_map_lookup.
5210 (gomp_map_fields_existing): New function.
5211 (gomp_map_vars): Rename is_openacc argument to short_mapkind
5212 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
5213 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5214 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5215 Adjust for tgt->list changed type and copy_from living in there.
5216 (gomp_copy_from_async): Adjust for tgt->list changed type and
5217 copy_from living in there.
5218 (gomp_unmap_vars): Likewise.
5219 (gomp_update): Likewise. Rename is_openacc argument to
5220 short_mapkind. Don't fail if object is not mapped.
5221 (gomp_load_image_to_device): Initialize refcount to
5222 REFCOUNT_INFINITY.
5223 (gomp_target_fallback): New function.
5224 (gomp_get_target_fn_addr): Likewise.
5225 (GOMP_target): Adjust gomp_map_vars caller, use
5226 gomp_get_target_fn_addr and gomp_target_fallback.
5227 (GOMP_target_41): New function.
5228 (gomp_target_data_fallback): New function.
5229 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5230 (GOMP_target_data_41): New function.
5231 (GOMP_target_update): Adjust gomp_update caller.
5232 (GOMP_target_update_41): New function.
5233 (gomp_exit_data, GOMP_target_enter_exit_data,
5234 gomp_target_task_fn, omp_target_alloc, omp_target_free,
5235 omp_target_is_present, omp_target_memcpy,
5236 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5237 omp_target_associate_ptr, omp_target_disassociate_ptr,
5238 gomp_load_plugin_for_device): New functions.
5239 * task.c: Include gomp-constants.h. Include taskloop.c
5240 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5241 (gomp_task_handle_depend): New function.
5242 (GOMP_task): Use it. Add priority argument. Use
5243 gomp-constant.h constants instead of hardcoded numbers.
5244 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5245 (gomp_create_target_task): New function.
5246 (verify_children_queue, verify_taskgroup_queue,
5247 verify_task_queue): New functions.
5248 (gomp_task_run_pre): Call verify_*_queue functions.
5249 If an upcoming tied task is about to leave the sibling or
5250 taskgroup queues in an invalid state, adjust appropriately.
5251 Remove taskgroup argument. Add comments.
5252 (gomp_task_run_post_handle_dependers): Add comments.
5253 (gomp_task_run_post_remove_parent): Likewise.
5254 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5255 (GOMP_taskwait): Likewise. Add comments.
5256 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5257 problem such that the first non parent_depends_on task does not
5258 end up at the end of the children queue.
5259 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5260 GOMP_TASK_UNDEFERRED.
5261 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5262 * taskloop.c: New file.
5263 * testsuite/lib/libgomp.exp
5264 (check_effective_target_offload_device_nonshared_as): New proc.
5265 * testsuite/libgomp.c/affinity-2.c: New test.
5266 * testsuite/libgomp.c/doacross-1.c: New test.
5267 * testsuite/libgomp.c/doacross-2.c: New test.
5268 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5269 Add map clause to target.
5270 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5271 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5272 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5273 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5274 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5275 Likewise.
5276 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5277 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5278 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5279 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5280 not defined. Use those where needed.
5281 * testsuite/libgomp.c/for-4.c: New test.
5282 * testsuite/libgomp.c/for-5.c: New test.
5283 * testsuite/libgomp.c/for-6.c: New test.
5284 * testsuite/libgomp.c/linear-1.c: New test.
5285 * testsuite/libgomp.c/ordered-4.c: New test.
5286 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5287 only allowed on the loop iterator.
5288 * testsuite/libgomp.c/pr66199-3.c: New test.
5289 * testsuite/libgomp.c/pr66199-4.c: New test.
5290 * testsuite/libgomp.c/reduction-7.c: New test.
5291 * testsuite/libgomp.c/reduction-8.c: New test.
5292 * testsuite/libgomp.c/reduction-9.c: New test.
5293 * testsuite/libgomp.c/reduction-10.c: New test.
5294 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5295 map(tofrom:s).
5296 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5297 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5298 * testsuite/libgomp.c/target-11.c: New test.
5299 * testsuite/libgomp.c/target-12.c: New test.
5300 * testsuite/libgomp.c/target-13.c: New test.
5301 * testsuite/libgomp.c/target-14.c: New test.
5302 * testsuite/libgomp.c/target-15.c: New test.
5303 * testsuite/libgomp.c/target-16.c: New test.
5304 * testsuite/libgomp.c/target-17.c: New test.
5305 * testsuite/libgomp.c/target-18.c: New test.
5306 * testsuite/libgomp.c/target-19.c: New test.
5307 * testsuite/libgomp.c/target-20.c: New test.
5308 * testsuite/libgomp.c/target-21.c: New test.
5309 * testsuite/libgomp.c/target-22.c: New test.
5310 * testsuite/libgomp.c/target-23.c: New test.
5311 * testsuite/libgomp.c/target-24.c: New test.
5312 * testsuite/libgomp.c/target-25.c: New test.
5313 * testsuite/libgomp.c/target-26.c: New test.
5314 * testsuite/libgomp.c/target-27.c: New test.
5315 * testsuite/libgomp.c/taskloop-1.c: New test.
5316 * testsuite/libgomp.c/taskloop-2.c: New test.
5317 * testsuite/libgomp.c/taskloop-3.c: New test.
5318 * testsuite/libgomp.c/taskloop-4.c: New test.
5319 * testsuite/libgomp.c++/ctor-13.C: New test.
5320 * testsuite/libgomp.c++/doacross-1.C: New test.
5321 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5322 Replace offload_device with offload_device_nonshared_as.
5323 * testsuite/libgomp.c++/for-12.C: New test.
5324 * testsuite/libgomp.c++/for-13.C: New test.
5325 * testsuite/libgomp.c++/for-14.C: New test.
5326 * testsuite/libgomp.c++/linear-1.C: New test.
5327 * testsuite/libgomp.c++/member-1.C: New test.
5328 * testsuite/libgomp.c++/member-2.C: New test.
5329 * testsuite/libgomp.c++/member-3.C: New test.
5330 * testsuite/libgomp.c++/member-4.C: New test.
5331 * testsuite/libgomp.c++/member-5.C: New test.
5332 * testsuite/libgomp.c++/ordered-1.C: New test.
5333 * testsuite/libgomp.c++/reduction-5.C: New test.
5334 * testsuite/libgomp.c++/reduction-6.C: New test.
5335 * testsuite/libgomp.c++/reduction-7.C: New test.
5336 * testsuite/libgomp.c++/reduction-8.C: New test.
5337 * testsuite/libgomp.c++/reduction-9.C: New test.
5338 * testsuite/libgomp.c++/reduction-10.C: New test.
5339 * testsuite/libgomp.c++/reference-1.C: New test.
5340 * testsuite/libgomp.c++/simd14.C: New test.
5341 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5342 * testsuite/libgomp.c++/target-5.C: New test.
5343 * testsuite/libgomp.c++/target-6.C: New test.
5344 * testsuite/libgomp.c++/target-7.C: New test.
5345 * testsuite/libgomp.c++/target-8.C: New test.
5346 * testsuite/libgomp.c++/target-9.C: New test.
5347 * testsuite/libgomp.c++/target-10.C: New test.
5348 * testsuite/libgomp.c++/target-11.C: New test.
5349 * testsuite/libgomp.c++/target-12.C: New test.
5350 * testsuite/libgomp.c++/taskloop-1.C: New test.
5351 * testsuite/libgomp.c++/taskloop-2.C: New test.
5352 * testsuite/libgomp.c++/taskloop-3.C: New test.
5353 * testsuite/libgomp.c++/taskloop-4.C: New test.
5354 * testsuite/libgomp.c++/taskloop-5.C: New test.
5355 * testsuite/libgomp.c++/taskloop-6.C: New test.
5356 * testsuite/libgomp.c++/taskloop-7.C: New test.
5357 * testsuite/libgomp.c++/taskloop-8.C: New test.
5358 * testsuite/libgomp.c++/taskloop-9.C: New test.
5359 * testsuite/libgomp.fortran/affinity1.f90: New test.
5360 * testsuite/libgomp.fortran/affinity2.f90: New test.
5361
5362 2015-10-13 Tom de Vries <tom@codesourcery.com>
5363
5364 PR tree-optimization/67476
5365 * testsuite/libgomp.c/autopar-3.c: New test.
5366 * testsuite/libgomp.c/autopar-4.c: New test.
5367 * testsuite/libgomp.c/autopar-5.c: New test.
5368 * testsuite/libgomp.c/autopar-6.c: New test.
5369 * testsuite/libgomp.c/autopar-7.c: New test.
5370 * testsuite/libgomp.c/autopar-8.c: New test.
5371
5372 2015-10-12 James Norris <jnorris@codesourcery.com>
5373
5374 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
5375 initializer.
5376
5377 2015-10-09 David Malcolm <dmalcolm@redhat.com>
5378
5379 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
5380 using load_gcc_lib.
5381
5382 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5383
5384 * oacc-ptx.h: Remove file, moving its content into...
5385 * config/nvptx/fortran.c: ... here...
5386 * config/nvptx/oacc-init.c: ..., here...
5387 * config/nvptx/oacc-parallel.c: ..., and here.
5388 * config/nvptx/openacc.f90: New file.
5389 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
5390 (link_ptx): Don't link in predefined bits of PTX code.
5391
5392 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5393 Bernd Schmidt <bernds@codesourcery.com>
5394
5395 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
5396 (struct targ_ptx_obj): New.
5397 (nvptx_tdata): Move earlier, change data format.
5398 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
5399 objects.
5400 (GOMP_OFFLOAD_load_image): Adjust.
5401
5402 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5403
5404 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
5405 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5406 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5407 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5408 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5409 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5410 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5411 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5412 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5413 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5414 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5415 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5416 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5417 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5418 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5419 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5420 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5421 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5422 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5423 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5424 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5425 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5426 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5427 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5428 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5429 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5430 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5431 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5432 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5433 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5434 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5435 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5436 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5437 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5438 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5439 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5440 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5441 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5442 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5443 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5444 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5445 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5446 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5447 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5448 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5449 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5450 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5451 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5452 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5453 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5454 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5455 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5456 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5457 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5458 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5459 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5460 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5461 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5462 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5463 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5464 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5465 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5466 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5467
5468 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5469
5470 * oacc-init.c (acc_on_device): Force optimization level.
5471
5472 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5473
5474 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
5475 (cuda_errlist): Delete.
5476 (cuda_error): Reimplement.
5477
5478 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5479
5480 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
5481 array.
5482 * libgomp.map (GOACC_parallel_keyed): New.
5483 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
5484 all callers.
5485 (GOACC_parallel_keyed): New interface. Lose geometry arguments
5486 and take keyed varargs list. Adjust call to exec_func.
5487 (GOACC_parallel): Force host fallback.
5488 * libgomp_g.h (GOACC_parallel): Remove.
5489 (GOACC_parallel_keyed): Declare.
5490 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5491 (stuct targ_gn_descriptor): Replace name field with launch field.
5492 (nvptx_exec): Lose separate geometry args, take array. Process
5493 dynamic dimensions and adjust.
5494 (struct nvptx_tdata): Replace fn_names field with fn_descs.
5495 (GOMP_OFFLOAD_load_image): Adjust for change in function table
5496 data.
5497 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5498 passing.
5499 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5500 passing.
5501
5502 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5503
5504 PR libgomp/67141
5505 * oacc-int.h (goacc_host_init): Add declaration.
5506 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5507 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5508
5509 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5510 Sebastian Pop <s.pop@samsung.com>
5511
5512 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5513 match o/p.
5514 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5515 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5516 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5517 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5518 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5519
5520 2015-09-03 Jakub Jelinek <jakub@redhat.com>
5521
5522 * configure.tgt: Add missing ;; in between nvptx and rtems
5523 snippets.
5524
5525 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5526
5527 * config/posix/pool.h (gomp_adjust_thread_attr): New.
5528 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5529 (gomp_thread_pool_reservoir): Add priority member.
5530 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5531 priority.
5532 (parse_thread_pools): Likewise.
5533 * team.c (gomp_team_start): Call configuration provided
5534 gomp_adjust_thread_attr(). Destroy thread attributes if
5535 necessary.
5536 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5537
5538 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5539
5540 * config/posix/pool.h: New.
5541 * config/rtems/pool.h: Likewise.
5542 * config/rtems/proc.c: Likewise.
5543 * libgomp.h (gomp_thread_destructor): Declare.
5544 * team.c: Include configuration provided "pool.h".
5545 (gomp_get_thread_pool): Define in configuration.
5546 (gomp_team_end): Call configuration defined
5547 gomp_release_thread_pool().
5548
5549 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5550
5551 * config/rtems/bar.c: New.
5552 * config/rtems/bar.h: Likewise.
5553 * config/rtems/mutex.c: Likewise.
5554 * config/rtems/mutex.h: Likewise.
5555 * config/rtems/sem.c: Likewise.
5556 * config/rtems/sem.h: Likewise.
5557 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5558 <sys/lock.h> header file.
5559 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5560 supported by Newlib.
5561 * configure: Regenerate.
5562
5563 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5564
5565 * team.c (gomp_new_thread_pool): Delete and move content to ...
5566 (gomp_get_thread_pool): ... new function. Allocate and
5567 initialize thread pool on demand.
5568 (get_last_team): Use gomp_get_thread_pool().
5569 (gomp_team_start): Delete thread pool initialization.
5570
5571 2015-09-03 Tom de Vries <tom@codesourcery.com>
5572
5573 PR tree-optimization/65637
5574 * testsuite/libgomp.c/autopar-2.c: New test.
5575
5576 2015-08-29 Tom de Vries <tom@codesourcery.com>
5577
5578 PR tree-optimization/46193
5579 * testsuite/libgomp.c/pr46193.c: New test.
5580
5581 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
5582
5583 libgomp/
5584 * libgomp.map: Add 4.0.2 version.
5585 * target.c (offload_image_descr): Add version field.
5586 (gomp_load_image_to_device): Add version argument. Adjust plugin
5587 call. Improve load mismatch diagnostic.
5588 (gomp_unload_image_from_device): Add version argument. Adjust plugin
5589 call.
5590 (GOMP_offload_regster): Make stub function, move bulk to ...
5591 (GOMP_offload_register_ver): ... here. Process version argument.
5592 (GOMP_offload_unregister): Make stub function, move bulk to ...
5593 (GOMP_offload_unregister_ver): ... here. Process version argument.
5594 (gomp_init_device): Process version field.
5595 (gomp_unload_device): Process version field.
5596 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5597 macros. Check plugin version.
5598 * libgomp.h (gomp_device_descr): Add version function field. Adjust
5599 loader and unloader types.
5600 * oacc-host.c: Include gomp-constants.h.
5601 (host_version): New.
5602 (host_load_image, host_unload_image): Adjust.
5603 (host_dispatch): Add host_version.
5604 * plugin/plugin-nvptx.c: Include gomp-constants.h.
5605 (GOMP_OFFLOAD_version): New.
5606 (GOMP_OFFLOAD_load_image): Add version arg and check it.
5607 (GOMP_OFFLOAD_unload_image): Likewise.
5608 * plugin/plugin-host.c: Include gomp-constants.h.
5609 (GOMP_OFFLOAD_version): New.
5610 (GOMP_OFFLOAD_load_image): Add version arg.
5611 (GOMP_OFFLOAD_unload_image): Likewise.
5612
5613 2015-08-24 Tom de Vries <tom@codesourcery.com>
5614
5615 PR tree-optimization/65468
5616 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5617
5618 2015-08-24 Tom de Vries <tom@codesourcery.com>
5619
5620 PR tree-optimization/65468
5621 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5622
5623 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
5624
5625 PR libgomp/66761
5626 PR libgomp/67303
5627 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5628 (gomp_iter_guided_next): Idem.
5629 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5630 (gomp_iter_ull_guided_next): Idem.
5631 * config/linux/wait.h (do_spin): Idem.
5632
5633 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5634
5635 * libgomp-plugin.h (enum offload_target_type): Remove
5636 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5637 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5638 * openacc.h (enum acc_device_t): Likewise.
5639 * openacc_lib.h: Likewise.
5640 * oacc-init.c (name_of_acc_device_t): Don't handle it.
5641 (acc_on_device): Just use __builtin_acc_on_device.
5642 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5643 of acc_on_device builtin.
5644 * plugin/plugin-host.h: Remove file.
5645 * plugin/plugin-host.c: Likewise, but salvage some content into...
5646 * oacc-host.c: ... this file.
5647 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5648 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5649 * Makefile.in: Regenerate.
5650 * configure: Likewise.
5651 * testsuite/lib/libgomp.exp
5652 (check_effective_target_openacc_host_nonshm_selected): Remove.
5653 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5654 ACC_DEVICE_TYPE=host_nonshm.
5655 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5656 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5657 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5658 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5659 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5660 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5661
5662 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5663 Jakub Jelinek <jakub@redhat.com>
5664
5665 * config/nvptx/affinity.c: New file.
5666 * config/nvptx/alloc.c: Likewise.
5667 * config/nvptx/bar.c: Likewise.
5668 * config/nvptx/barrier.c: Likewise.
5669 * config/nvptx/critical.c: Likewise.
5670 * config/nvptx/env.c: Likewise.
5671 * config/nvptx/error.c: Likewise.
5672 * config/nvptx/fortran.c: Likewise.
5673 * config/nvptx/iter.c: Likewise.
5674 * config/nvptx/iter_ull.c: Likewise.
5675 * config/nvptx/libgomp-plugin.c: Likewise.
5676 * config/nvptx/lock.c: Likewise.
5677 * config/nvptx/loop.c: Likewise.
5678 * config/nvptx/loop_ull.c: Likewise.
5679 * config/nvptx/mutex.c: Likewise.
5680 * config/nvptx/oacc-async.c: Likewise.
5681 * config/nvptx/oacc-cuda.c: Likewise.
5682 * config/nvptx/oacc-host.c: Likewise.
5683 * config/nvptx/oacc-init.c: Likewise.
5684 * config/nvptx/oacc-mem.c: Likewise.
5685 * config/nvptx/oacc-parallel.c: Likewise.
5686 * config/nvptx/oacc-plugin.c: Likewise.
5687 * config/nvptx/omp-lock.h: Likewise.
5688 * config/nvptx/ordered.c: Likewise.
5689 * config/nvptx/parallel.c: Likewise.
5690 * config/nvptx/proc.c: Likewise.
5691 * config/nvptx/ptrlock.c: Likewise.
5692 * config/nvptx/sections.c: Likewise.
5693 * config/nvptx/sem.c: Likewise.
5694 * config/nvptx/single.c: Likewise.
5695 * config/nvptx/splay-tree.c: Likewise.
5696 * config/nvptx/target.c: Likewise.
5697 * config/nvptx/task.c: Likewise.
5698 * config/nvptx/team.c: Likewise.
5699 * config/nvptx/time.c: Likewise.
5700 * config/nvptx/work.c: Likewise.
5701 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5702 * configure: Regenerate.
5703 * configure.tgt (config_path): Set to "nvptx" for target
5704 nvptx*-*-*.
5705
5706 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5707
5708 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5709
5710 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
5711
5712 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5713 (cuda_errlist): Constify.
5714 (errmsg): Move into ...
5715 (cuda_error): ... here. Make smaller.
5716 (_XSTR, _STR): Delete.
5717 (cuda_synames): Delete.
5718 (verify_device_library): Delete.
5719 (nvptx_init): Don't call it.
5720
5721 2015-07-28 Tom de Vries <tom@codesourcery.com>
5722
5723 * testsuite/libgomp.c/uns-outer-4.c: New test.
5724
5725 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5726
5727 * testsuite/libgomp.c/pr66714.c: New test.
5728
5729 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
5730
5731 PR libgomp/66950
5732 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5733 (fib_ref): New function.
5734 (fib): Correct corner cases in the recursion.
5735 (main): Replace the non-simd loop with fib_ref call.
5736 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5737 subroutine.
5738 (fibonacci): Lower the parameter N to 30. Correct accordingly check
5739 for the last array element value. Replace the non-simd loop with
5740 fib_ref call. Remove redundant b_ref array. Remove the comparison
5741 of the last array element with according Fibonacci sequence element.
5742 (fib): Correct corner cases in the recursion.
5743
5744 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5745
5746 * target.c (gomp_offload_image_to_device): Rename to ...
5747 (gomp_load_image_to_device): ... here.
5748 (GOMP_offload_register): Adjust call.
5749 (gomp_init_device): Likewise.
5750 (gomp_unload_image_from_device): New. Broken out of ...
5751 (GOMP_offload_unregister): ... here. Call it.
5752 (gomp_unload_device): New.
5753 * libgomp.h (gomp_unload_device): Declare.
5754 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5755 mem maps.
5756
5757 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
5758
5759 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5760 wait=-specific if.
5761 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5762 !=0 condition.
5763 (goacc_waits): Move !num_waits handling to ...
5764 (GOACC_wait): ... here, the only caller that might have zero waits.
5765
5766 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5767 (struct ptx_image_data): Move earlier, add fns field.
5768 (struct ptx_device): Add images and image_lock fields.
5769 (ptx_images, ptx_image_lock): Delete.
5770 (nvptx_open_device): Initialize images and image_lock fields.
5771 (nvptx_close_device): Destroy image_lock.
5772 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5773 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5774 fields.
5775
5776 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5777
5778 * target.c (GOMP_offload_register): Use int for device type arg.
5779 (GOMP_offload_unregister): Likewise.
5780
5781 * target.c (struct_offload_image_descr): Constify host_table.
5782 (gomp_offload_image_to_device): Likewise.
5783 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5784
5785 * libgomp.h (gomp_device_descr): Constify target data arguments.
5786 * target.c (struct offload_image_descr): Constify target_data.
5787 (gomp_offload_image_to_device): Likewise.
5788 (GOMP_offload_register): Likewise.
5789 (GOMP_offload_unrefister): Likewise.
5790 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5791 GOMP_OFFLOAD_unload_image): Constify target data.
5792 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5793 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5794
5795 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5796
5797 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5798 Workaround driver library const error.
5799 (struct nvptx_tdata, nvptx_tdata_t): New.
5800 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5801 type.
5802
5803 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
5804
5805 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5806 of EPS parameter from integer to real.
5807 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5808 type of EPS parameter from integer to real.
5809
5810 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5811
5812 * team.c (get_last_team): New.
5813 (gomp_new_team): Recycle last non-nested team if possible.
5814 (gomp_team_end): Move team work share list free lock destruction
5815 to ...
5816 (free_team): ... here.
5817
5818 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
5819
5820 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5821 and ref from int to double. Replaced their comparison with
5822 an inequality of their difference and EPS.
5823 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5824 comparison of pri and a reference number with an inequality of their
5825 difference and EPS.
5826 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5827 the comparison of sum and sum_ref with an inequality of their
5828 difference and EPS.
5829 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5830 the comparison of pri and a reference number with an inequality of
5831 their difference and EPS.
5832
5833 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
5834
5835 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5836 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5837 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5838 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5839 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5840 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5841 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5842 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5843 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5844 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5845 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5846 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5847 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5848 variables.
5849 (vec_mult): Likewise. Add #pragma omp taskwait.
5850 (main): Adjust caller.
5851 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5852 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5853 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5854 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5855 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5856 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5857 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5858 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5859 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5860 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5861 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5862 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5863 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5864 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5865 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5866 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5867 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5868 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5869 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5870 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5871 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5872 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5873 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5874 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5875 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5876 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5877 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5878 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5879 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5880 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5881 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5882 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5883 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5884 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5885 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5886 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5887 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5888 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5889 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5890 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5891 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5892 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5893 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5894 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5895 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5896 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5897 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5898 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5899 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5900 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5901 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5902 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5903 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5904 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5905 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5906 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5907 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5908 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5909 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5910 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5911 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5912 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5913 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5914 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5915 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5916 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5917 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5918 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5919 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5920 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5921 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5922 (vec_mult): Add !$omp taskwait.
5923 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5924 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5925 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5926 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5927 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5928 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5929 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5930 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5931 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5932 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5933 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5934 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5935 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5936 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5937 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5938 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5939 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5940 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5941 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5942 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5943 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5944 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5945 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5946 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5947 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5948 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5949 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5950 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5951 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5952 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5953 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5954 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5955 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5956 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5957 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5958 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5959 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5960 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5961 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5962 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5963 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5964 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5965 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5966 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5967 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5968 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5969 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5970 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5971 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5972 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5973 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5974 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5975 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5976 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5977 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5978 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5979 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5980 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5981 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5982 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5983 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5984 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5985 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5986 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5987 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
5988 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
5989 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
5990
5991 2015-07-10 Tom de Vries <tom@codesourcery.com>
5992
5993 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
5994 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
5995
5996 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5997
5998 PR libgomp/65099
5999 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
6000 in a 64-bit configuration.
6001 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
6002 offloading testing if no such device is available.
6003 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6004 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6005
6006 2015-07-08 Tom de Vries <tom@codesourcery.com>
6007
6008 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
6009 second call to f.
6010 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6011
6012 2015-07-07 Tom de Vries <tom@codesourcery.com>
6013
6014 PR tree-optimization/66642
6015 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
6016 iteration count case.
6017 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
6018 function, factor out of ...
6019 (main): ... here. Test low iteration count case.
6020
6021 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
6022
6023 * libgomp.h (gomp_thread_pool): Comment last_team field.
6024
6025 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
6026
6027 * testsuite/libgomp.c++/pr66702-1.C: Require
6028 vect_simd_clones effective target.
6029 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
6030
6031 2015-06-30 Tom de Vries <tom@codesourcery.com>
6032
6033 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6034 already set. Use DEFAULT_CFLAGS in dg-runtest.
6035 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
6036 "-O2".
6037
6038 2015-06-30 Tom de Vries <tom@codesourcery.com>
6039
6040 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6041 already set. Use DEFAULT_CFLAGS in dg-runtest.
6042 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
6043 * testsuite/libgomp.c++/pr64824.C: Same.
6044 * testsuite/libgomp.c++/pr64868.C: Same.
6045 * testsuite/libgomp.c++/pr66199-1.C: Same.
6046 * testsuite/libgomp.c++/pr66199-2.C: Same.
6047 * testsuite/libgomp.c++/target-2.C: Same.
6048 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
6049 -std=<standard> option.
6050 * testsuite/libgomp.c++/udr-11.C: Same.
6051 * testsuite/libgomp.c++/udr-12.C: Same.
6052 * testsuite/libgomp.c++/udr-13.C: Same.
6053 * testsuite/libgomp.c++/udr-14.C: Same.
6054 * testsuite/libgomp.c++/udr-15.C: Same.
6055 * testsuite/libgomp.c++/udr-16.C: Same.
6056 * testsuite/libgomp.c++/udr-17.C: Same.
6057 * testsuite/libgomp.c++/udr-18.C: Same.
6058 * testsuite/libgomp.c++/udr-19.C: Same.
6059 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
6060 * testsuite/libgomp.c++/simd-1.C: Same.
6061 * testsuite/libgomp.c++/simd-2.C: Same.
6062 * testsuite/libgomp.c++/simd-3.C: Same.
6063 * testsuite/libgomp.c++/simd-4.C: Same.
6064 * testsuite/libgomp.c++/simd-5.C: Same.
6065 * testsuite/libgomp.c++/simd-6.C: Same.
6066 * testsuite/libgomp.c++/simd-7.C: Same.
6067 * testsuite/libgomp.c++/simd-8.C: Same.
6068 * testsuite/libgomp.c++/simd-9.C: Same.
6069 * testsuite/libgomp.c++/simd10.C: Same.
6070 * testsuite/libgomp.c++/simd11.C: Same.
6071 * testsuite/libgomp.c++/simd12.C: Same.
6072 * testsuite/libgomp.c++/simd13.C: Same.
6073
6074 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6075
6076 PR middle-end/66702
6077 * testsuite/libgomp.c++/pr66702-1.C: New test.
6078 * testsuite/libgomp.c++/pr66702-2.C: New test.
6079
6080 2015-06-30 Tom de Vries <tom@codesourcery.com>
6081
6082 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
6083 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
6084 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
6085 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
6086
6087 2015-06-30 Tom de Vries <tom@codesourcery.com>
6088
6089 PR tree-optimization/66652
6090 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
6091 using restrict pointers.
6092 (main): Add arguments to calls to f.
6093 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6094
6095 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
6096
6097 * configure.ac: Fix check for header <sys/sysctl.h>.
6098 * configure: Regenerate.
6099 * config.h.in: Likewise.
6100
6101 2015-06-23 Tom de Vries <tom@codesourcery.com>
6102
6103 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
6104 abort.
6105 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
6106
6107 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
6108
6109 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
6110 acc_device_nvidia.
6111
6112 PR libgomp/66518
6113 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
6114 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6115
6116 2015-06-15 Tom de Vries <tom@codesourcery.com>
6117
6118 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
6119 dg-additional-options for any remaining options.
6120 * testsuite/libgomp.c/atomic-2.c: Same.
6121 * testsuite/libgomp.c/atomic-4.c: Same.
6122 * testsuite/libgomp.c/atomic-5.c: Same.
6123 * testsuite/libgomp.c/atomic-6.c: Same.
6124 * testsuite/libgomp.c/autopar-1.c: Same.
6125 * testsuite/libgomp.c/copyin-1.c: Same.
6126 * testsuite/libgomp.c/copyin-2.c: Same.
6127 * testsuite/libgomp.c/copyin-3.c: Same.
6128 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
6129 * testsuite/libgomp.c/nestedfn-5.c: Same.
6130 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
6131 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
6132 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
6133 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6134 * testsuite/libgomp.c/pr32362-1.c: Same.
6135 * testsuite/libgomp.c/pr32362-2.c: Same.
6136 * testsuite/libgomp.c/pr32362-3.c: Same.
6137 * testsuite/libgomp.c/pr39591-1.c: Same.
6138 * testsuite/libgomp.c/pr39591-2.c: Same.
6139 * testsuite/libgomp.c/pr39591-3.c: Same.
6140 * testsuite/libgomp.c/pr58392.c: Same.
6141 * testsuite/libgomp.c/pr58756.c: Same.
6142 * testsuite/libgomp.c/simd-1.c: Same.
6143 * testsuite/libgomp.c/simd-10.c: Same.
6144 * testsuite/libgomp.c/simd-11.c: Same.
6145 * testsuite/libgomp.c/simd-12.c: Same.
6146 * testsuite/libgomp.c/simd-13.c: Same.
6147 * testsuite/libgomp.c/simd-14.c: Same.
6148 * testsuite/libgomp.c/simd-15.c: Same.
6149 * testsuite/libgomp.c/simd-2.c: Same.
6150 * testsuite/libgomp.c/simd-3.c: Same.
6151 * testsuite/libgomp.c/simd-4.c: Same.
6152 * testsuite/libgomp.c/simd-5.c: Same.
6153 * testsuite/libgomp.c/simd-6.c: Same.
6154 * testsuite/libgomp.c/simd-7.c: Same.
6155 * testsuite/libgomp.c/simd-8.c: Same.
6156 * testsuite/libgomp.c/simd-9.c: Same.
6157
6158 2015-06-15 Tom de Vries <tom@codesourcery.com>
6159
6160 * testsuite/libgomp.c/pr35625.c: Fix typo.
6161
6162 2015-06-15 Tom de Vries <tom@codesourcery.com>
6163
6164 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
6165 in dg-options.
6166 * testsuite/libgomp.c/atomic-3.c: Same.
6167 * testsuite/libgomp.c/debug-1.c: Same.
6168 * testsuite/libgomp.c/nqueens-1.c: Same.
6169 * testsuite/libgomp.c/pr26171.c: Same.
6170 * testsuite/libgomp.c/pr48591.c: Same.
6171 * testsuite/libgomp.c/pr64824.c: Same.
6172 * testsuite/libgomp.c/pr64868.c: Same.
6173 * testsuite/libgomp.c/pr66133.c: Same.
6174 * testsuite/libgomp.c/pr66199-1.c: Same.
6175 * testsuite/libgomp.c/pr66199-2.c: Same.
6176 * testsuite/libgomp.c/target-8.c: Same.
6177
6178 2015-06-15 Tom de Vries <tom@codesourcery.com>
6179
6180 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
6181 -std={gnu99,c99}.
6182 * testsuite/libgomp.c/for-1.c: Same.
6183 * testsuite/libgomp.c/for-2.c: Same.
6184 * testsuite/libgomp.c/for-3.c: Same.
6185 * testsuite/libgomp.c/pr35625.c: Same.
6186 * testsuite/libgomp.c/pr39154.c: Same.
6187 * testsuite/libgomp.c/simd-16.c: Same.
6188 * testsuite/libgomp.c/simd-17.c: Same.
6189
6190 2015-06-13 Tom de Vries <tom@codesourcery.com>
6191
6192 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6193
6194 2015-06-13 Tom de Vries <tom@codesourcery.com>
6195
6196 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6197 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6198 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6199 (N): Define.
6200 (main): Use N instead of hardcoded constants.
6201
6202 2015-06-05 Tom de Vries <tom@codesourcery.com>
6203
6204 merge from gomp4 branch:
6205 2015-05-28 Tom de Vries <tom@codesourcery.com>
6206
6207 PR tree-optimization/65443
6208 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6209 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6210 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6211
6212 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6213
6214 * testsuite/libgomp.graphite/bounds.c: Adjust for
6215 cleanup-tree-dump removal.
6216 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6217 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6218 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6219 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6220 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6221 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6222 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6223 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6224 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6225 * testsuite/libgomp.graphite/pr41118.c: Likewise.
6226
6227 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
6228
6229 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6230 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6231 (futex_wake) [!__x86_64__]: Ditto.
6232
6233 2015-05-28 Julian Brown <julian@codesourcery.com>
6234
6235 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6236 function comment. Only call gomp_fatal if new argument is true.
6237 (acc_dev_num_out_of_range): New function.
6238 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6239 acc_dev_num_out_of_range as appropriate.
6240 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6241 (acc_get_device_num, acc_set_device_num): Update calls to
6242 resolve_device.
6243 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6244 output.
6245
6246 2015-05-28 Julian Brown <julian@codesourcery.com>
6247
6248 PR libgomp/65742
6249 * oacc-init.c (plugin/plugin-host.h): Include.
6250 (acc_on_device): Check whether we're in an offloaded region for
6251 host_nonshm
6252 plugin. Don't use __builtin_acc_on_device.
6253 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6254 nonshm_exec flag in thread-local data.
6255 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6256 data for host_nonshm plugin.
6257 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6258 for host_nonshm plugin.
6259 * plugin/plugin-host.h: New.
6260
6261 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6262
6263 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6264
6265 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6266
6267 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6268 Declare as int.
6269 (FUTEX_PRIVATE_FLAG): Remove L suffix.
6270 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6271 Declare as int.
6272
6273 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6274
6275 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
6276
6277 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
6278
6279 * target.c (gomp_map_pointer): New function abstracting out
6280 GOMP_MAP_POINTER handling.
6281 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6282 gomp_map_pointer().
6283
6284 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6285
6286 PR middle-end/66199
6287 * testsuite/libgomp.c/pr66199-1.c: New test.
6288 * testsuite/libgomp.c/pr66199-2.c: New test.
6289 * testsuite/libgomp.c++/pr66199-1.C: New test.
6290 * testsuite/libgomp.c++/pr66199-2.C: New test.
6291 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6292 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6293
6294 2015-05-19 Julian Brown <julian@codesourcery.com>
6295
6296 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6297 on cuInit failure.
6298
6299 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6300
6301 PR middle-end/66133
6302 * testsuite/libgomp.c/pr66133.c: New test.
6303
6304 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6305
6306 * Makefile.in: Regenerated with automake-1.11.6.
6307 * aclocal.m4: Likewise.
6308 * config.h.in: Likewise.
6309 * configure: Likewise.
6310 * testsuite/Makefile.in: Likewise.
6311
6312 2015-05-08 Jason Merrill <jason@redhat.com>
6313
6314 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6315 _Complex.
6316
6317 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6318
6319 2015-05-06 Julian Brown <julian@codesourcery.com>
6320
6321 * oacc-init.c (acc_device_lock): Add explanatory comment.
6322 (resolve_device): Add comment about locking requirement.
6323 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6324 gomp_init_device and gomp_fini_device calls.
6325 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6326 (acc_get_device_num, acc_set_device_num): Add locking around
6327 resolve_device and gomp_init_device calls.
6328
6329 2015-05-06 Julian Brown <julian@codesourcery.com>
6330
6331 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6332 goacc_thread_lock on error paths.
6333 * oacc-mem.c (lookup_host): Remove locking from function. Note
6334 locking requirement for caller in function comment.
6335 (lookup_dev): Likewise.
6336 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6337 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6338 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6339 Add locking.
6340
6341 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
6342
6343 PR testsuite/65205
6344 PR libgomp/65993
6345 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6346 don't expect "0x" prefix for "%p" format specifier, don't expect
6347 "(nil)" for NULL pointer.
6348 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6349 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6350 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6351 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6352 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6353 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6354 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6355 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6356 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6357 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6358 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6359 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6360 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6361 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6362 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6363 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6364 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6365 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6366 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6367 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6368 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6369 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6370 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6371 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6372 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6373 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6374 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6375 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6376 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
6377 accurately specify what we're looking for.
6378 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6379 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6380 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6381 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6382 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6383
6384 2015-04-30 James Norris <jnorris@codesourcery.com>
6385
6386 PR testsuite/65205
6387 * testsuite/lib/libgomp.exp
6388 (check_effective_target_openacc_host_selected)
6389 (check_effective_target_openacc_host_nonshm_selected): New
6390 procedures.
6391 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
6392 dg-shouldfail.
6393 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6394 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6395 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6396 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6397 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6398 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6399 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6400 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6401 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6402 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6403 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6404 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6405 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6406 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6407 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6408 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6409 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6410 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6411 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6412 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6413 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6414 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6415 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6416 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6417 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6418 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6419 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6420 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6421 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6422 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6423 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6424 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6425 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6426 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6427 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6428 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6429 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6430 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6431 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6432 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6433 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6434 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6435 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6436
6437 2015-04-08 Julian Brown <julian@codesourcery.com>
6438
6439 * libgomp.h (target_mem_desc: Remove mem_map field.
6440 (acc_dispatch_t): Remove open_device_func, close_device_func,
6441 get_device_num_func, set_device_num_func, target_data members.
6442 Change create_thread_data_func argument to device number instead of
6443 generic pointer.
6444 * oacc-async.c (assert.h): Include.
6445 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
6446 (acc_wait_all, acc_wait_all_async): Use current host thread's
6447 active device, not base_dev.
6448 * oacc-cuda.c (acc_get_current_cuda_device)
6449 (acc_get_current_cuda_context, acc_get_cuda_stream)
6450 (acc_set_cuda_stream): Likewise.
6451 * oacc-host.c (host_dispatch): Don't set open_device_func,
6452 close_device_func, get_device_num_func or set_device_num_func.
6453 * oacc-init.c (base_dev, init_key): Remove.
6454 (cached_base_dev): New.
6455 (name_of_acc_device_t): New.
6456 (acc_init_1): Initialise default-numbered device, not zeroth.
6457 (acc_shutdown_1): Close all devices of a given type.
6458 (goacc_destroy_thread): Don't use base_dev.
6459 (lazy_open, lazy_init, lazy_init_and_open): Remove.
6460 (goacc_attach_host_thread_to_device): New.
6461 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
6462 (acc_get_num_devices): Don't use base_dev.
6463 (acc_set_device_type): Reimplement.
6464 (acc_get_device_type): Don't use base_dev.
6465 (acc_get_device_num): Tweak logic.
6466 (acc_set_device_num): Likewise.
6467 (acc_on_device): Use acc_get_device_type.
6468 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
6469 (goacc_lazy_initialize): Reimplement with acc_init and
6470 goacc_attach_host_thread_to_device.
6471 * oacc-int.h (goacc_thread): Add base_dev field.
6472 (base_dev): Remove extern declaration.
6473 (goacc_attach_host_thread_to_device): Add prototype.
6474 * oacc-mem.c (acc_malloc): Use current thread's device instead of
6475 base_dev.
6476 (acc_free): Likewise.
6477 (acc_memcpy_to_device): Likewise.
6478 (acc_memcpy_from_device): Likewise.
6479 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
6480 goacc_lazy_initialize (throughout).
6481 (GOACC_parallel): Use tgt_offset to locate target functions.
6482 * target.c (gomp_map_vars): Don't set tgt->mem_map.
6483 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
6484 (gomp_load_plugin_for_device): Remove open_device, close_device,
6485 get_device_num, set_device_num openacc hook initialisation. Don't set
6486 openacc.target_data.
6487 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6488 (GOMP_OFFLOAD_openacc_close_device)
6489 (GOMP_OFFLOAD_openacc_get_device_num)
6490 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6491 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6492 to int.
6493 * plugin/plugin-nvptx.c (ptx_inited): Remove.
6494 (instantiated_devices, ptx_dev_lock): New.
6495 (struct ptx_image_data): New.
6496 (ptx_devices, ptx_images, ptx_image_lock): New.
6497 (fini_streams_for_device): Reorder cuStreamDestroy call.
6498 (nvptx_get_num_devices): Remove forward declaration.
6499 (nvptx_init): Change return type to bool.
6500 (nvptx_fini): Remove.
6501 (nvptx_attach_host_thread_to_device): New.
6502 (nvptx_open_device): Return struct ptx_device* instead of void*.
6503 (nvptx_close_device): Change argument type to struct ptx_device*,
6504 return type to void.
6505 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6506 (kernel_target_data, kernel_host_table): Remove static globals.
6507 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6508 (GOMP_OFFLOAD_init_device): Reimplement.
6509 (GOMP_OFFLOAD_fini_device): Likewise.
6510 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6511 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6512 (GOMP_OFFLOAD_host2dev): Use ORD argument.
6513 (GOMP_OFFLOAD_openacc_open_device)
6514 (GOMP_OFFLOAD_openacc_close_device)
6515 (GOMP_OFFLOAD_openacc_set_device_num)
6516 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6517 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6518 (device number).
6519
6520 testsuite/
6521 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6522
6523 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
6524
6525 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6526 * libgomp.h (struct gomp_memory_mapping): Remove.
6527 (struct target_mem_desc): Change type of mem_map from
6528 gomp_memory_mapping * to splay_tree_s *.
6529 (struct gomp_device_descr): Remove register_image_func, get_table_func.
6530 Add load_image_func, unload_image_func.
6531 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6532 Remove offload_regions_registered.
6533 (gomp_init_tables): Remove.
6534 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6535 to splay_tree_s *.
6536 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6537 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6538 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6539 offload_regions_registered.
6540 Initialize load_image_func, unload_image_func, mem_map.root.
6541 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6542 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6543 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6544 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6545 gomp_memory_mapping *. Use dev's lock and splay_tree.
6546 (lookup_dev): Use dev's lock.
6547 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6548 (acc_is_present): Likewise.
6549 (acc_map_data): Likewise.
6550 (acc_unmap_data): Likewise. Use dev's lock.
6551 (present_create_copy): Likewise.
6552 (delete_copyout): Pass dev to lookup_host instead of mem_map.
6553 (update_dev_host): Likewise.
6554 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
6555 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6556 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6557 (GOMP_OFFLOAD_get_table): Remove
6558 (GOMP_OFFLOAD_load_image): New function.
6559 (GOMP_OFFLOAD_unload_image): New function.
6560 * target.c (register_lock): New mutex for offload image registration.
6561 (num_devices): Do not guard with PLUGIN_SUPPORT.
6562 (gomp_realloc_unlock): New static function.
6563 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
6564 before gomp_fatal.
6565 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6566 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
6567 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6568 mem_map's.
6569 (gomp_unmap_vars): Likewise.
6570 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
6571 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
6572 (gomp_offload_image_to_device): New static function.
6573 (GOMP_offload_register): Add mutex lock.
6574 Call gomp_offload_image_to_device for all initialized devices.
6575 Replace gomp_realloc with gomp_realloc_unlock.
6576 (GOMP_offload_unregister): New function.
6577 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
6578 get_table_func from the plugin with calls to init_device_func and
6579 gomp_offload_image_to_device.
6580 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6581 to splay_tree_s *.
6582 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
6583 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
6584 (GOMP_target_data): Do not call gomp_init_tables.
6585 (GOMP_target_update): Likewise. Remove argument from gomp_update.
6586 (gomp_load_plugin_for_device): Replace register_image and get_table
6587 with load_image and unload_image in DLSYM ().
6588 (gomp_register_images_for_device): Remove function.
6589 (gomp_target_init): Do not initialize current_device.mem_map.*,
6590 current_device.offload_regions_registered.
6591 Remove call to gomp_register_images_for_device.
6592 Do not free offload_images and num_offload_images.
6593
6594 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6595
6596 PR fortran/65597
6597 * testsuite/libgomp.fortran/pr65597.f90: New test.
6598
6599 2015-03-27 Tom de Vries <tom@codesourcery.com>
6600
6601 PR testsuite/65594
6602 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6603 (init, check): New function.
6604 (foo): Change return type to void.
6605 (main): Call init and check.
6606
6607 2015-03-27 Tom de Vries <tom@codesourcery.com>
6608
6609 PR testsuite/65594
6610 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6611 (foo): Use M for non-inner loops to scale down test-case.
6612
6613 2015-03-25 Kai Tietz <ktietz@redhat.com>
6614
6615 PR libgomp/64972
6616 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6617 (GOACC_data_start): Likewise.
6618 * target.c (gomp_map_vars): Likewise.
6619
6620 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
6621
6622 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6623 hppa*-*-hpux*.
6624
6625 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6626
6627 * testsuite/libgomp.c/target-10.c: New test.
6628 * testsuite/libgomp.c++/target-4.C: New test.
6629
6630 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6631
6632 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6633 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6634
6635 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
6636
6637 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6638 * configure.ac (*-*-rtems*): Assume Pthread is supported.
6639 (pthread.h): Check for this header file.
6640 * configure: Regenerate.
6641
6642 2015-02-25 Tom de Vries <tom@codesourcery.com>
6643
6644 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6645 (check_reduction_op, check_reduction_macro, max, min):
6646 Declare.
6647 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6648 function.
6649 (main): Use new functions.
6650
6651 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
6652
6653 * target.c (gomp_load_plugin_for_device): Use const char * instead of
6654 char * for variables holding dlerror return values.
6655 (DLSYM_OPT): Ditto.
6656
6657 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6658
6659 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6660
6661 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6662 Cesar Philippidis <cesar@codesourcery.com>
6663
6664 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6665 GOACC_ctaid, and GOACC_nctaid routines.
6666
6667 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6668
6669 PR c/64824
6670 * testsuite/libgomp.c/atomic-18.c: New test.
6671 * testsuite/libgomp.c++/atomic-16.C: New test.
6672
6673 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6674
6675 PR c/64824
6676 PR c/64868
6677 * testsuite/libgomp.c/pr64824.c: New test.
6678 * testsuite/libgomp.c/pr64868.c: New test.
6679 * testsuite/libgomp.c++/pr64824.C: New test.
6680 * testsuite/libgomp.c++/pr64868.C: New test.
6681
6682 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6683
6684 PR libgomp/64635
6685 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6686 Link with -lpthread.
6687 * config/aix/plugin-suffix.h: Delete.
6688
6689 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
6690
6691 PR libgomp/64635
6692 * configure.tgt (*-*-aix*): Use config_path "aix posix".
6693 (*-*-darwin*): Use config_path "bsd darwin posix".
6694 (*-*-hpux*): Use config_path "hpux posix".
6695 * target.c: Add include of plugin-suffix.h and use
6696 SONAME_SUFFIX macro.
6697 * config/aix/plugin-suffix.h: New file.
6698 * config/darwin/plugin-suffix.h: New file.
6699 * config/hpux/plugin-suffix.h: New file.
6700 * config/posix/plugin-suffix.h: New file.
6701
6702 2015-01-23 Jakub Jelinek <jakub@redhat.com>
6703
6704 PR middle-end/64734
6705 * libgomp.c/pr64734.c: New test.
6706
6707 2015-01-23 Tom de Vries <tom@codesourcery.com>
6708
6709 PR libgomp/64672
6710 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6711
6712 2015-01-23 Tom de Vries <tom@codesourcery.com>
6713
6714 PR libgomp/64707
6715 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6716 dg-options.
6717
6718 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
6719
6720 PR libgomp/64625
6721 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6722 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6723 formal parameter. Update all users.
6724 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6725 Document unused formal parameter.
6726
6727 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
6728
6729 * oacc-parallel.c: Don't include <alloca.h>.
6730 (GOACC_parallel): Use gomp_alloca instead of alloca.
6731
6732 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
6733
6734 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6735
6736 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6737 James Norris <jnorris@codesourcery.com>
6738 Tom de Vries <tom@codesourcery.com>
6739 Julian Brown <julian@codesourcery.com>
6740 Cesar Philippidis <cesar@codesourcery.com>
6741 Nathan Sidwell <nathan@codesourcery.com>
6742 Tobias Burnus <burnus@net-b.de>
6743
6744 * Makefile.am (search_path): Add $(top_srcdir)/../include.
6745 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6746 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6747 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6748 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6749 Include $(top_srcdir)/plugin/Makefrag.am.
6750 (nodist_libsubinclude_HEADERS): Add openacc.h.
6751 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6752 openacc.f90, openacc.mod, openacc_kinds.mod.
6753 (omp_lib.mod): Generalize into...
6754 (%.mod): ... this new rule.
6755 (openacc_kinds.mod, openacc.mod): New rules.
6756 * plugin/configfrag.ac: New file.
6757 * configure.ac: Move plugin/offloading support into it. Include
6758 it. Instantiate testsuite/libgomp-test-support.pt.exp.
6759 * plugin/Makefrag.am: New file.
6760 * testsuite/Makefile.am (OFFLOAD_TARGETS)
6761 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6762 export.
6763 (libgomp-test-support.exp): New rule.
6764 (all-local): Depend on it.
6765 * Makefile.in: Regenerate.
6766 * testsuite/Makefile.in: Regenerate.
6767 * config.h.in: Likewise.
6768 * configure: Likewise.
6769 * configure.tgt: Harden shell syntax.
6770 * env.c: Include "oacc-int.h".
6771 (parse_acc_device_type): New function.
6772 (gomp_debug_var, goacc_device_type, goacc_device_num): New
6773 variables.
6774 (initialize_env): Initialize those. Call
6775 goacc_runtime_initialize.
6776 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6777 (gomp_fatal): Call gomp_vfatal.
6778 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6779 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6780 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6781 (splay_tree_node, splay_tree, splay_tree_key)
6782 (struct target_mem_desc, struct splay_tree_key_s)
6783 (struct gomp_memory_mapping, struct acc_dispatch_t)
6784 (struct gomp_device_descr, gomp_acc_insert_pointer)
6785 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6786 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6787 (gomp_free_memmap, gomp_fini_device): New declarations.
6788 (gomp_vdebug, gomp_debug): New macros.
6789 Include "splay-tree.h".
6790 * libgomp.map (OACC_2.0): New symbol version. Use for
6791 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6792 acc_set_device_type_h_, acc_get_device_type,
6793 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6794 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6795 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6796 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6797 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6798 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6799 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6800 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6801 acc_copyin_array_h_, acc_present_or_copyin,
6802 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6803 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6804 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6805 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6806 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6807 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6808 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6809 acc_update_device, acc_update_device_32_h_,
6810 acc_update_device_64_h_, acc_update_device_array_h_,
6811 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6812 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6813 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6814 acc_is_present_64_h_, acc_is_present_array_h_,
6815 acc_memcpy_to_device, acc_memcpy_from_device,
6816 acc_get_current_cuda_device, acc_get_current_cuda_context,
6817 acc_get_cuda_stream, acc_set_cuda_stream.
6818 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
6819 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6820 GOACC_update, GOACC_wait, GOACC_get_thread_num,
6821 GOACC_get_num_threads.
6822 (GOMP_PLUGIN_1.0): New symbol version. Use for
6823 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6824 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6825 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6826 GOMP_PLUGIN_acc_thread.
6827 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6828 environment variable.
6829 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6830 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6831 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6832 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6833 (splay_tree_remove): New declarations.
6834 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6835 (splay_tree_remove, splay_tree_lookup): Move into...
6836 * splay-tree.c: ... this new file.
6837 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6838 (splay_tree_node, splay_tree, splay_tree_key)
6839 (struct target_mem_desc, struct splay_tree_key_s)
6840 (struct gomp_device_descr): Don't declare.
6841 (num_devices_openmp): New variable.
6842 (gomp_get_num_devices ): Use it.
6843 (gomp_init_targets_once): New function.
6844 (gomp_get_num_devices ): Use it.
6845 (get_kind, gomp_copy_from_async, gomp_free_memmap)
6846 (gomp_fini_device, gomp_register_image_for_device): New functions.
6847 (gomp_map_vars): Add devaddrs parameter.
6848 (gomp_update): Add mm parameter.
6849 (gomp_init_device): Move most of it into...
6850 (gomp_init_tables): ... this new function.
6851 (gomp_register_images_for_device): Remove function.
6852 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6853 Make them hidden instead of static.
6854 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6855 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6856 (GOMP_target_end_data, GOMP_target_update)
6857 (gomp_load_plugin_for_device, gomp_target_init): Update for
6858 OpenACC changes.
6859 * oacc-async.c: New file.
6860 * oacc-cuda.c: Likewise.
6861 * oacc-host.c: Likewise.
6862 * oacc-init.c: Likewise.
6863 * oacc-int.h: Likewise.
6864 * oacc-mem.c: Likewise.
6865 * oacc-parallel.c: Likewise.
6866 * oacc-plugin.c: Likewise.
6867 * oacc-plugin.h: Likewise.
6868 * oacc-ptx.h: Likewise.
6869 * openacc.f90: Likewise.
6870 * openacc.h: Likewise.
6871 * openacc_lib.h: Likewise.
6872 * plugin/plugin-host.c: Likewise.
6873 * plugin/plugin-nvptx.c: Likewise.
6874 * libgomp-plugin.c: Likewise.
6875 * libgomp-plugin.h: Likewise.
6876 * libgomp_target.h: Remove file after merging content into the
6877 former file. Update all users.
6878 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6879 (offload_targets_s, offload_targets_s_openacc): New variables.
6880 (check_effective_target_openacc_nvidia_accel_present)
6881 (check_effective_target_openacc_nvidia_accel_selected): New
6882 procedures.
6883 (libgomp_init): Update for OpenACC changes.
6884 * testsuite/libgomp-test-support.exp.in: New file.
6885 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6886 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6887 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6888 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6889 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6890 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6891 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6892 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6893 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6894 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6895 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6896 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6897 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6898 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6899 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6900 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6901 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6902 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6903 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6904 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6905 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6906 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6907 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6908 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6909 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6910 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6911 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6912 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6913 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6914 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6915 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6916 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6917 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6918 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6919 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6920 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6921 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6922 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6923 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6924 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6925 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6926 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6927 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6928 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6929 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6930 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6931 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6932 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6933 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6934 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6935 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6936 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6937 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6938 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6939 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6940 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6941 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6942 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6943 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6944 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6945 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6946 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6947 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6948 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6949 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6950 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6951 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6952 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6953 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6954 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6955 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6956 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6957 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6958 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6959 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6960 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6961 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6962 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6963 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6964 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6965 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6966 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6967 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6968 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6969 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6970 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6971 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6972 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6973 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6974 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6975 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6976 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6977 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6978 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6979 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6980 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6981 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6982 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6983 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6984 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6985 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6986 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6987 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6988 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6989 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6990 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6991 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6992 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6993 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6994 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6995 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6996 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6997 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6998 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6999 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7000 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
7001 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
7002 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7003 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
7004 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
7005 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
7006 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
7007 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7008 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
7009 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7010 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
7011 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7012 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
7013 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
7014 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
7015 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
7016 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
7017 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7018 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
7019 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7020 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7021 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7022 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7023 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7024 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
7025 Likewise.
7026 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
7027 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
7028 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
7029 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
7030 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
7031 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7032 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7033 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7034 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7035 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7036 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7037 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7038 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7039 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7040 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7041 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7042 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7043 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7044 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7045 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7046 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7047 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7048 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7049 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7050 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7051 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7052 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7053 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7054 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7055 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7056 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7057 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7058 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7059 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7060 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7061 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7062 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7063 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7064 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7065 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7066 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7067 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7068 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7069 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7070 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7071 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7072 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7073 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7074 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7075 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7076 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7077 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7078 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7079 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7080 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7081 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7082 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7083 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7084 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7085 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7086
7087 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
7088 Julian Brown <julian@codesourcery.com>
7089 David Malcolm <dmalcolm@redhat.com>
7090
7091 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
7092 to "GNU Offloading and Multi Processing Runtime Library". Change
7093 all users.
7094 * configure: Regenerate.
7095 * libgomp.texi: Update.
7096
7097 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
7098
7099 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
7100 "$tgt_dir/lib32".
7101 * configure: Regenerate.
7102
7103 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
7104 "intelmic" in $offload_targets.
7105
7106 2015-01-05 Jakub Jelinek <jakub@redhat.com>
7107
7108 Update copyright years.
7109
7110 * libgomp.texi: Bump @copying's copyright year.
7111
7112 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7113
7114 * testsuite/lib/libgomp.exp: Load target-utils.exp.
7115 Move load of target-supportes.exp earlier.
7116
7117 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
7118
7119 * testsuite/libgomp.c/target-9.c: New test.
7120
7121 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
7122
7123 * config.h.in: Regenerate.
7124 * configure: Regenerate.
7125 * configure.ac: Add GCC_CHECK_EMUTLS.
7126 * libgomp.h: Add check for USE_EMUTLS: this case
7127 is equal to HAVE_TLS.
7128 * team.c: Likewise.
7129
7130 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
7131
7132 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
7133
7134 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
7135 Ilya Verbin <ilya.verbin@intel.com>
7136
7137 * testsuite/libgomp.c/target-critical-1.c: New test.
7138
7139 2014-11-26 Jakub Jelinek <jakub@redhat.com>
7140
7141 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
7142 to dg-options unless expensive testing is on.
7143 (TESTITERS): Define to N if not defined.
7144 (main): Use TESTITERS instead of N.
7145 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
7146 dg-additional-options depending on whether expensive testing is on.
7147 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
7148 Decrease N to 100000 and CHUNKSZ to 10000.
7149
7150 2014-11-24 Jakub Jelinek <jakub@redhat.com>
7151
7152 PR fortran/63938
7153 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
7154 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
7155
7156 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
7157
7158 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
7159
7160 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
7161
7162 PR bootstrap/63784
7163 * configure: Regenerated.
7164
7165 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
7166
7167 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
7168 vect_simd_clones effective target.
7169 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7170
7171 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7172
7173 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
7174 of 32 as block_size.
7175 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
7176 instead of 32 as block_size.
7177
7178 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7179 Ilya Verbin <ilya.verbin@intel.com>
7180
7181 * Makefile.in: Regenerate.
7182 * configure: Regenerate.
7183 * configure.ac: Set up offload_additional_options,
7184 offload_additional_lib_paths and offload_targets.
7185 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7186 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7187 * testsuite/Makefile.in: Regenerate.
7188 * testsuite/lib/libgomp.exp (libgomp_init): Append
7189 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
7190 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
7191 build directory to LD_LIBRARY_PATH for intelmic offload targets.
7192
7193 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7194 Ilya Verbin <ilya.verbin@intel.com>
7195 Kirill Yukhin <kirill.yukhin@intel.com>
7196 Ilya Tocar <ilya.tocar@intel.com>
7197
7198 * testsuite/lib/libgomp.exp
7199 (check_effective_target_offload_device): New.
7200 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7201 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7202 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7203 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7204 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7205 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7206 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7207 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7208 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7209 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7210 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7211 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7212 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7213 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7214 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7215 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7216 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7217 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7218 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7219 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7220 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7221 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7222 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7223 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7224 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7225 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7226 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7227 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7228 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7229 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7230 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7231 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7232 * testsuite/libgomp.c/target-7.c: Fix test.
7233 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7234 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7235 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7236 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7237 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7238 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7239 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7240 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7241 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7242 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7243 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7244 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7245 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7246 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7247 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7248 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7249 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7250 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7251 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7252 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7253 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7254 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7255 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7256 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7257 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7258 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7259 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7260 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7261 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7262 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7263 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7264
7265 2014-11-13 Jakub Jelinek <jakub@redhat.com>
7266 Ilya Verbin <ilya.verbin@intel.com>
7267 Thomas Schwinge <thomas@codesourcery.com>
7268 Andrey Turetskiy <andrey.turetskiy@intel.com>
7269
7270 * libgomp.map (GOMP_4.0.1): New symbol version.
7271 Add GOMP_offload_register.
7272 * libgomp_target.h: New file.
7273 * splay-tree.h: New file.
7274 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7275 (gomp_target_init): New forward declaration.
7276 (gomp_is_initialized): New static variable.
7277 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7278 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7279 New structures.
7280 (offload_images, num_offload_images, devices, num_devices): New static
7281 variables.
7282 (splay_compare): New static function.
7283 (struct gomp_device_descr): New structure.
7284 (gomp_get_num_devices): Call gomp_target_init.
7285 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7286 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7287 (GOMP_offload_register): New function.
7288 (GOMP_target): Arrange for host callback to be performed in a separate
7289 initial thread and contention group, inheriting ICVs from
7290 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
7291 Add device initialization and lookup for target function in splay tree.
7292 (GOMP_target_data): Add device initialization and call gomp_map_vars.
7293 (GOMP_target_end_data): Call gomp_unmap_vars.
7294 (GOMP_target_update): Add device initialization and call gomp_update.
7295 (gomp_load_plugin_for_device, gomp_register_images_for_device)
7296 (gomp_target_init): New static functions.
7297
7298 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7299 Thomas Schwinge <thomas@codesourcery.com>
7300 Ilya Verbin <ilya.verbin@intel.com>
7301 Andrey Turetskiy <andrey.turetskiy@intel.com>
7302
7303 * config.h.in: Regenerate.
7304 * configure: Regenerate.
7305 * configure.ac: Check for libdl, required for plugin support.
7306 (PLUGIN_SUPPORT): Define if plugins are supported.
7307 (enable_offload_targets): Support Intel MIC targets.
7308 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7309
7310 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7311
7312 PR target/63610
7313 * configure: Regenerate.
7314
7315 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7316
7317 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7318
7319 2014-10-06 Marek Polacek <polacek@redhat.com>
7320
7321 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7322 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7323 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7324 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7325
7326 2014-10-06 Marek Polacek <polacek@redhat.com>
7327
7328 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7329 * testsuite/libgomp.c/nqueens-1.c: Likewise.
7330 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7331 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7332 * testsuite/libgomp.c/pr36802-2.c: Likewise.
7333 * testsuite/libgomp.c/pr36802-3.c: Likewise.
7334 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7335 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7336 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7337 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7338 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7339 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7340 * testsuite/libgomp.c/omp-single-1.c: Likewise.
7341 * testsuite/libgomp.c/omp-single-2.c: Likewise.
7342 * testsuite/libgomp.c/omp_matvec.c: Likewise.
7343 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7344 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7345 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
7346 declarations.
7347
7348 2014-10-03 Jakub Jelinek <jakub@redhat.com>
7349
7350 PR libgomp/61200
7351 * testsuite/libgomp.c/pr61200.c: New test.
7352
7353 2014-09-18 Jakub Jelinek <jakub@redhat.com>
7354
7355 PR c++/63248
7356 * testsuite/libgomp.c++/pr63248.C: New test.
7357
7358 2014-08-04 Jakub Jelinek <jakub@redhat.com>
7359
7360 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
7361 is not zero, but taskgroup->children is NULL and there are
7362 any task->children, schedule those instead of waiting.
7363 * testsuite/libgomp.c/depend-6.c: New test.
7364 * testsuite/libgomp.c/depend-7.c: New test.
7365 * testsuite/libgomp.c/depend-8.c: New test.
7366 * testsuite/libgomp.c/depend-9.c: New test.
7367 * testsuite/libgomp.c/depend-10.c: New test.
7368
7369 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7370
7371 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
7372 (struct gomp_taskwait): New type.
7373 (struct gomp_task): Add taskwait and parent_depends_on, remove
7374 in_taskwait and taskwait_sem fields.
7375 (gomp_finish_task): Don't destroy taskwait_sem.
7376 * task.c (gomp_init_task): Don't init in_taskwait, instead init
7377 taskwait and parent_depends_on.
7378 (GOMP_task): For if (0) tasks with depend clause that depend on
7379 earlier tasks don't defer them, instead call
7380 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
7381 Initialize redundant_out field, for redundant out entries just
7382 move them at the end of linked list instead of removing them
7383 completely, and set redundant_out flag instead of redundant.
7384 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
7385 that task.
7386 (gomp_task_run_post_handle_dependers): If parent is in
7387 gomp_task_maybe_wait_for_dependencies and newly runnable task
7388 is not parent_depends_on, queue it in parent->children linked
7389 list after all runnable tasks with parent_depends_on set.
7390 Adjust for addition of taskwait indirection.
7391 (gomp_task_run_post_remove_parent): If parent is in
7392 gomp_task_maybe_wait_for_dependencies and task to be removed
7393 is parent_depends_on, decrement n_depend and if needed awake
7394 parent. Adjust for addition of taskwait indirection.
7395 (GOMP_taskwait): Adjust for addition of taskwait indirection.
7396 (gomp_task_maybe_wait_for_dependencies): New function.
7397 * testsuite/libgomp.c/depend-5.c: New test.
7398
7399 2014-07-13 Tobias Burnus <burnus@net-b.de>
7400
7401 * testsuite/libgomp.fortran/pr34020.f90: Make compile
7402 with TS 18508/Fortran 2015.
7403
7404 2014-07-06 Marek Polacek <polacek@redhat.com>
7405
7406 PR c/6940
7407 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
7408
7409 2014-07-03 Jakub Jelinek <jakub@redhat.com>
7410
7411 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
7412 matches regex $lang_source_re, add $lang_include_flags to options.
7413 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
7414 * testsuite/libgomp.c++/c++.exp: Likewise.
7415 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
7416 and lang_include_flags instead of adding -fintrinsic-modules-path= to
7417 ALWAYS_CFLAGS.
7418 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
7419
7420 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
7421
7422 * testsuite/libgomp.fortran/fortran.exp: Explain
7423 gfortran-dg-runtest usage.
7424
7425 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7426
7427 * testsuite/libgomp.fortran/simd5.f90: New test.
7428 * testsuite/libgomp.fortran/simd6.f90: New test.
7429 * testsuite/libgomp.fortran/simd7.f90: New test.
7430
7431 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7432
7433 * testsuite/libgomp.c/for-2.c: Define SC to static for
7434 #pragma omp for simd testing.
7435 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
7436 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
7437 SC macro.
7438 * testsuite/libgomp.c/simd-14.c: New test.
7439 * testsuite/libgomp.c/simd-15.c: New test.
7440 * testsuite/libgomp.c/simd-16.c: New test.
7441 * testsuite/libgomp.c/simd-17.c: New test.
7442 * testsuite/libgomp.c++/for-10.C: Define SC to static for
7443 #pragma omp for simd testing.
7444 * testsuite/libgomp.c++/simd10.C: New test.
7445 * testsuite/libgomp.c++/simd11.C: New test.
7446 * testsuite/libgomp.c++/simd12.C: New test.
7447 * testsuite/libgomp.c++/simd13.C: New test.
7448
7449 * testsuite/libgomp.fortran/aligned1.f03: New test.
7450 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
7451 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
7452 tasks with !$omp parallel !$omp single.
7453 * testsuite/libgomp.fortran/target8.f90: New test.
7454 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
7455 not to use trim in the combiner, instead call elemental function.
7456 (fn): New elemental function.
7457 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
7458 Make elemental.
7459 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
7460 omp_in): Likewise.
7461 * testsuite/libgomp.fortran/udr12.f90: New test.
7462 * testsuite/libgomp.fortran/udr13.f90: New test.
7463 * testsuite/libgomp.fortran/udr14.f90: New test.
7464 * testsuite/libgomp.fortran/udr15.f90: New test.
7465
7466 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7467
7468 * omp_lib.f90.in (openmp_version): Set to 201307.
7469 * omp_lib.h.in (openmp_version): Likewise.
7470 * testsuite/libgomp.c/target-8.c: New test.
7471 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
7472 and inbranch clauses.
7473 * testsuite/libgomp.fortran/depend-3.f90: New test.
7474 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
7475 openmp_version.
7476 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7477 * testsuite/libgomp.fortran/target1.f90: New test.
7478 * testsuite/libgomp.fortran/target2.f90: New test.
7479 * testsuite/libgomp.fortran/target3.f90: New test.
7480 * testsuite/libgomp.fortran/target4.f90: New test.
7481 * testsuite/libgomp.fortran/target5.f90: New test.
7482 * testsuite/libgomp.fortran/target6.f90: New test.
7483 * testsuite/libgomp.fortran/target7.f90: New test.
7484
7485 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7486
7487 PR fortran/60928
7488 * testsuite/libgomp.fortran/allocatable9.f90: New test.
7489 * testsuite/libgomp.fortran/allocatable10.f90: New test.
7490 * testsuite/libgomp.fortran/allocatable11.f90: New test.
7491 * testsuite/libgomp.fortran/allocatable12.f90: New test.
7492 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7493 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7494 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7495 * testsuite/libgomp.fortran/associate1.f90: New test.
7496 * testsuite/libgomp.fortran/associate2.f90: New test.
7497 * testsuite/libgomp.fortran/procptr1.f90: New test.
7498
7499 2014-06-06 Jakub Jelinek <jakub@redhat.com>
7500
7501 * testsuite/libgomp.fortran/simd1.f90: New test.
7502 * testsuite/libgomp.fortran/udr1.f90: New test.
7503 * testsuite/libgomp.fortran/udr2.f90: New test.
7504 * testsuite/libgomp.fortran/udr3.f90: New test.
7505 * testsuite/libgomp.fortran/udr4.f90: New test.
7506 * testsuite/libgomp.fortran/udr5.f90: New test.
7507 * testsuite/libgomp.fortran/udr6.f90: New test.
7508 * testsuite/libgomp.fortran/udr7.f90: New test.
7509 * testsuite/libgomp.fortran/udr8.f90: New test.
7510 * testsuite/libgomp.fortran/udr9.f90: New test.
7511 * testsuite/libgomp.fortran/udr10.f90: New test.
7512 * testsuite/libgomp.fortran/udr11.f90: New test.
7513
7514 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
7515
7516 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7517 vect_simd_clones effective target.
7518 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7519
7520 2014-05-21 Jakub Jelinek <jakub@redhat.com>
7521
7522 PR middle-end/61252
7523 * testsuite/libgomp.c++/simd-9.C: New test.
7524
7525 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
7526
7527 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7528 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7529 texts according to their @menu entry positions.
7530
7531 2014-05-11 Jakub Jelinek <jakub@redhat.com>
7532
7533 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7534 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7535 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7536 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7537 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7538 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7539 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7540 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7541 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7542 * testsuite/libgomp.fortran/depend-1.f90: New test.
7543 * testsuite/libgomp.fortran/depend-2.f90: New test.
7544 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7545 * testsuite/libgomp.fortran/simd1.f90: New test.
7546 * testsuite/libgomp.fortran/simd2.f90: New test.
7547 * testsuite/libgomp.fortran/simd3.f90: New test.
7548 * testsuite/libgomp.fortran/simd4.f90: New test.
7549 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7550
7551 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7552
7553 * testsuite/libgomp.c/simd-10.c: New test.
7554 * testsuite/libgomp.c/simd-11.c: New test.
7555 * testsuite/libgomp.c/simd-12.c: New test.
7556 * testsuite/libgomp.c/simd-13.c: New test.
7557
7558 2014-04-24 Jakub Jelinek <jakub@redhat.com>
7559
7560 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7561 atomic type clauses in any order and optional comma in between.
7562 * testsuite/libgomp.c++/atomic-15.C: Likewise.
7563 * testsuite/libgomp.c/atomic-17.c: Likewise.
7564
7565 * testsuite/libgomp.c/simd-7.c: New test.
7566 * testsuite/libgomp.c/simd-8.c: New test.
7567 * testsuite/libgomp.c/simd-9.c: New test.
7568 * testsuite/libgomp.c/loop-16.c: New test.
7569
7570 2014-04-02 Richard Henderson <rth@redhat.com>
7571
7572 * config/linux/futex.h (futex_wait): Get error value from errno.
7573 (futex_wake): Likewise.
7574
7575 2014-03-25 Jakub Jelinek <jakub@redhat.com>
7576
7577 PR c++/60331
7578 * testsuite/libgomp.c++/udr-11.C: New test.
7579 * testsuite/libgomp.c++/udr-12.C: New test.
7580 * testsuite/libgomp.c++/udr-13.C: New test.
7581 * testsuite/libgomp.c++/udr-14.C: New test.
7582 * testsuite/libgomp.c++/udr-15.C: New test.
7583 * testsuite/libgomp.c++/udr-16.C: New test.
7584 * testsuite/libgomp.c++/udr-17.C: New test.
7585 * testsuite/libgomp.c++/udr-18.C: New test.
7586 * testsuite/libgomp.c++/udr-19.C: New test.
7587
7588 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7589
7590 Update copyright years
7591
7592 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7593
7594 * hashtab.h: Use the standard form for the copyright notice.
7595
7596 2014-01-02 Tobias Burnus <burnus@net-b.de>
7597
7598 * libgomp.texi: Bump @copying's copyright year.
7599
7600 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7601
7602 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7603 alloca () with __builtin_alloca ().
7604 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7605 * testsuite/libgomp.c/lock-3.c: Likewise.
7606 * testsuite/libgomp.c/pr48591.c: Likewise.
7607
7608 2013-12-17 Jakub Jelinek <jakub@redhat.com>
7609
7610 PR testsuite/59534
7611 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7612 comparisons.
7613
7614 2013-12-16 Jakub Jelinek <jakub@redhat.com>
7615
7616 PR libgomp/58756
7617 * testsuite/libgomp.c/pr58756.c: New test.
7618
7619 2013-12-12 Jakub Jelinek <jakub@redhat.com>
7620
7621 PR libgomp/59467
7622 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7623 !$omp parallel.
7624
7625 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7626
7627 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7628 ALWAYS_CFLAGS.
7629 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7630 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7631 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7632 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7633 Likewise.
7634
7635 * libgomp_g.h: Include <stddef.h> for size_t.
7636
7637 * libgomp.spec.in: Update comment about libgomp's dependencies.
7638 * configure.ac: Likewise.
7639 * configure: Regenerate.
7640
7641 2013-10-16 Tobias Burnus <burnus@net-b.de>
7642
7643 * libgomp.texi: (Runtime Library Routines): Update references for
7644 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7645 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7646 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7647 (Environment Variables): Update references for OpenMP 4.0. Add
7648 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7649 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7650 order.
7651
7652 2013-10-14 Jakub Jelinek <jakub@redhat.com>
7653
7654 * env.c (parse_bind_var): Initialize value to avoid
7655 (false positive) warning.
7656
7657 2013-10-12 Jakub Jelinek <jakub@redhat.com>
7658
7659 PR libgomp/58691
7660 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7661 to check variable.
7662 (gomp_init_num_threads): Move i variable declaration into
7663 #ifdef CPU_ALLOC_SIZE block.
7664 * config/linux/affinity.c (gomp_affinity_init_level): Test
7665 gomp_places_list_len == 0 rather than gomp_places_list == 0
7666 when checking for topology reading error.
7667 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7668 * env.c (parse_affinity): Add ignore argument, if true, don't populate
7669 gomp_places_list, only parse env var and always return false.
7670 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
7671 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7672 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7673 and either of these variables were parsed correctly into a places
7674 list.
7675
7676 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7677 Jakub Jelinek <jakub@redhat.com>
7678
7679 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7680 of 5 loopfn matches.
7681 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7682 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7683 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7684 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7685 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7686 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7687 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7688 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7689
7690 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7691
7692 * Makefile.am (omp_lib.mod): Streamline rule.
7693 * Makefile.in: Regenerate.
7694
7695 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7696 exceptions.
7697
7698 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7699 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7700 * testsuite/libgomp.fortran/lib2.f: Likewise.
7701 * testsuite/libgomp.fortran/lib3.f: Likewise.
7702
7703 * configure.ac: Typo fix.
7704 * configure: Regenerate.
7705
7706 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7707 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7708
7709 * omp.h.in: Don't touch the user's namespace.
7710
7711 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7712 Tobias Burnus <burnus@net-b.de>
7713 Richard Henderson <rth@redhat.com>
7714
7715 * target.c: New file.
7716 * Makefile.am (libgomp_la_SOURCES): Add target.c.
7717 * Makefile.in: Regenerated.
7718 * libgomp_g.h (GOMP_task): Add depend argument.
7719 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7720 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7721 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7722 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7723 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7724 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7725 GOMP_taskgroup_start, GOMP_taskgroup_end,
7726 GOMP_parallel_sections): New prototypes.
7727 * fortran.c (omp_is_initial_device): Add ialias_redirect.
7728 (omp_is_initial_device_): New function.
7729 (ULP, STR1, STR2, ialias_redirect): Removed.
7730 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7731 omp_set_default_device_8_, omp_get_default_device_,
7732 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7733 functions.
7734 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7735 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7736 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7737 @@GOMP_4.0.
7738 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7739 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7740 omp_set_default_device, omp_set_default_device_,
7741 omp_set_default_device_8_, omp_get_default_device,
7742 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7743 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7744 omp_get_team_num_): Export @@OMP_4.0.
7745 * team.c (struct gomp_thread_start_data): Add place field.
7746 (gomp_thread_start): Clear thr->thread_pool and
7747 thr->task before returning. Use gomp_team_barrier_wait_final
7748 instead of gomp_team_barrier_wait. Initialize thr->place.
7749 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7750 team_cancelled and task_queued_count fields.
7751 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7752 before calling pthread_exit.
7753 (gomp_free_thread): No longer static. Use
7754 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7755 (gomp_team_start): Add flags argument. Set
7756 thr->thread_pool->threads_busy to nthreads immediately after creating
7757 new pool. Use gomp_managed_threads_lock instead of
7758 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
7759 (gomp_team_end): Use gomp_managed_threads_lock instead of
7760 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
7761 of gomp_team_barrier_wait. If team->team_cancelled, call
7762 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7763 rather than thr->ts.work_share.
7764 (initialize_team): Don't call gomp_sem_init here.
7765 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7766 caller.
7767 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7768 * env.c (gomp_global_icv): Add default_device_var, target_data and
7769 bind_var initializers.
7770 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7771 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7772 gomp_places_list_len): New variables.
7773 (parse_bind_var, parse_one_place, parse_places_var): New functions.
7774 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7775 sized places.
7776 (gomp_cancel_var): New global variable.
7777 (parse_int): New function.
7778 (handle_omp_display_env): New function.
7779 (initialize_env): Use it. Initialize default_device_var.
7780 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
7781 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
7782 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
7783 been successfully parsed (and call gomp_init_affinity in that case).
7784 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7785 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7786 omp_get_team_num, omp_is_initial_device): New functions.
7787 * libgomp.h: Include stdlib.h.
7788 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7789 Define.
7790 (struct target_mem_desc): Forward declare.
7791 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7792 and thread_limit_var fields.
7793 (gomp_get_num_devices): New prototype.
7794 (gomp_cancel_var): New extern decl.
7795 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7796 team_cancelled and task_queued_count fields. Add comments about
7797 task_{,queued_,running_}count.
7798 (gomp_cancel_kind): New enum.
7799 (gomp_work_share_end_cancel): New prototype.
7800 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7801 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7802 and depend fields.
7803 (struct gomp_taskgroup): New type.
7804 (struct gomp_task_depend_entry,
7805 struct gomp_dependers_vec): New types.
7806 (gomp_finish_task): Free depend_hash if non-NULL.
7807 (struct gomp_team_state): Add place_partition_off
7808 and place_partition_len fields.
7809 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7810 gomp_places_list_len): New extern decls.
7811 (struct gomp_thread): Add place field.
7812 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7813 (gomp_init_thread_affinity): Add place argument.
7814 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7815 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7816 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7817 gomp_affinity_init_level, gomp_affinity_print_place): New
7818 prototypes.
7819 (gomp_team_start): Add flags argument.
7820 (gomp_thread_limit_var, gomp_remaining_threads_count,
7821 gomp_remaining_threads_lock): Remove.
7822 (gomp_managed_threads_lock): New variable.
7823 (struct gomp_thread_pool): Add threads_busy field.
7824 (gomp_free_thread): New prototype.
7825 * task.c: Include hashtab.h.
7826 (hash_entry_type): New typedef.
7827 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7828 (gomp_init_task): Clear dependers, depend_hash, depend_count,
7829 copy_ctors_done and taskgroup fields.
7830 (GOMP_task): Add depend argument, handle depend clauses. If
7831 gomp_team_barrier_cancelled or if it's taskgroup has been
7832 cancelled, don't queue or start new tasks. Set copy_ctors_done
7833 field if needed. Initialize taskgroup field. If copy_ctors_done
7834 and already cancelled, don't discard the task. If taskgroup is
7835 non-NULL, enqueue the task into taskgroup queue. Increment
7836 num_children field in taskgroup. Increment task_queued_count.
7837 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7838 gomp_task_run_post_remove_taskgroup): New inline functions.
7839 (gomp_task_run_post_handle_depend_hash,
7840 gomp_task_run_post_handle_dependers,
7841 gomp_task_run_post_handle_depend): New functions.
7842 (GOMP_taskwait): Use them. If more than one new tasks
7843 have been queued, wake other threads if needed.
7844 (gomp_barrier_handle_tasks): Likewise. If
7845 gomp_team_barrier_cancelled, don't start any new tasks, just free
7846 all tasks.
7847 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7848 * omp_lib.f90.in
7849 (omp_proc_bind_kind, omp_proc_bind_false,
7850 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7851 omp_proc_bind_spread): New params.
7852 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7853 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7854 omp_get_team_num, omp_is_initial_device): New interfaces.
7855 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7856 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7857 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7858 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7859 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7860 useless use omp_lib_kinds.
7861 * omp.h.in (omp_proc_bind_t): New typedef.
7862 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7863 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7864 omp_get_team_num, omp_is_initial_device): New prototypes.
7865 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7866 through to gomp_team_start.
7867 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7868 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7869 Adjust gomp_parallel_loop_start callers.
7870 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7871 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7872 GOMP_loop_end_cancel): New functions.
7873 (GOMP_parallel_end): Add ialias_redirect.
7874 * hashtab.h: New file.
7875 * libgomp.texi (Environment Variables): Minor cleanup,
7876 update section refs to OpenMP 4.0rc2.
7877 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7878 environment variables.
7879 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7880 team->work_shares_to_free to thr->ts.work_share before calling
7881 free_work_share.
7882 (gomp_work_share_end_cancel): New function.
7883 * config/linux/proc.c: Include errno.h.
7884 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7885 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7886 sizeof (cpu_set_t) to determine number of iterations. Fix up check
7887 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
7888 gomp_cpuset_size is sizeof (cpu_set_t).
7889 (gomp_init_num_threads): Initialize gomp_cpuset_size,
7890 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7891 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7892 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
7893 contain any logical CPUs.
7894 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7895 is NULL. Use gomp_cpusetp instead of &cpuset and pass
7896 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7897 pthread_getaffinity_np. Check gomp_places_list instead of
7898 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
7899 * config/linux/bar.c (gomp_barrier_wait_end,
7900 gomp_barrier_wait_last): Use BAR_* defines.
7901 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
7902 from state where needed. Set work_share_cancelled to 0 on last
7903 thread.
7904 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7905 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7906 functions.
7907 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7908 Add cpusetsize argument.
7909 (gomp_cpuset_size, gomp_cpusetp): Declare.
7910 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7911 (affinity_counter): Remove.
7912 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7913 if CPU_ALLOC_SIZE isn't defined.
7914 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7915 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7916 bind current thread to the first place.
7917 (gomp_init_thread_affinity): Rewritten. Add place argument, just
7918 pthread_setaffinity_np to gomp_places_list[place].
7919 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7920 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7921 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7922 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7923 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7924 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7925 (gomp_barrier_t): Add awaited_final field.
7926 (gomp_barrier_init): Initialize awaited_final field.
7927 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7928 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7929 prototypes.
7930 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7931 defines.
7932 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7933 gomp_team_barrier_cancelled): New inline functions.
7934 (gomp_barrier_last_thread,
7935 gomp_team_barrier_set_task_pending,
7936 gomp_team_barrier_clear_task_pending,
7937 gomp_team_barrier_set_waiting_for_tasks,
7938 gomp_team_barrier_waiting_for_tasks,
7939 gomp_team_barrier_done): Use BAR_* defines.
7940 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7941 (gomp_barrier_wait_end): Use BAR_* defines.
7942 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7943 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7944 Use BAR_* defines.
7945 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7946 gomp_team_barrier_cancel): New functions.
7947 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7948 argument.
7949 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7950 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7951 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7952 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7953 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7954 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7955 (gomp_barrier_t): Add cancellable field.
7956 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7957 gomp_team_barrier_cancel): New prototypes.
7958 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7959 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7960 gomp_team_barrier_cancelled): New inline functions.
7961 (gomp_barrier_wait_start, gomp_barrier_last_thread,
7962 gomp_team_barrier_set_task_pending,
7963 gomp_team_barrier_clear_task_pending,
7964 gomp_team_barrier_set_waiting_for_tasks,
7965 gomp_team_barrier_waiting_for_tasks,
7966 gomp_team_barrier_done): Use BAR_* defines.
7967 * barrier.c (GOMP_barrier_cancel): New function.
7968 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7969 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7970 omp_proc_bind_spread): New params.
7971 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7972 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7973 omp_get_team_num, omp_is_initial_device): New externals.
7974 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7975 New functions.
7976 (gomp_resolve_num_threads): Adjust for thread_limit now being in
7977 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7978 infinity. If not nested, just return minimum of max_num_threads
7979 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7980 to the returned value. Otherwise, don't update atomically
7981 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7982 (GOMP_parallel_end): Adjust for thread_limit now being in
7983 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7984 infinity. Adjust threads_busy in the pool rather than
7985 gomp_remaining_threads_count. Remember team->nthreads and call
7986 gomp_team_end before adjusting threads_busy, if not nested
7987 afterwards, just set it to 1 non-atomically. Add ialias.
7988 (GOMP_parallel_start): Adjust gomp_team_start caller.
7989 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
7990 * testsuite/libgomp.c/affinity-1.c: New test.
7991 * testsuite/libgomp.c/atomic-15.c: New test.
7992 * testsuite/libgomp.c/atomic-16.c: New test.
7993 * testsuite/libgomp.c/atomic-17.c: New test.
7994 * testsuite/libgomp.c/cancel-for-1.c: New test.
7995 * testsuite/libgomp.c/cancel-for-2.c: New test.
7996 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
7997 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
7998 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
7999 * testsuite/libgomp.c/cancel-sections-1.c: New test.
8000 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
8001 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
8002 * testsuite/libgomp.c/depend-1.c: New test.
8003 * testsuite/libgomp.c/depend-2.c: New test.
8004 * testsuite/libgomp.c/depend-3.c: New test.
8005 * testsuite/libgomp.c/depend-4.c: New test.
8006 * testsuite/libgomp.c/for-1.c: New test.
8007 * testsuite/libgomp.c/for-1.h: New file.
8008 * testsuite/libgomp.c/for-2.c: New test.
8009 * testsuite/libgomp.c/for-2.h: New file.
8010 * testsuite/libgomp.c/for-3.c: New test.
8011 * testsuite/libgomp.c/pr58392.c: New test.
8012 * testsuite/libgomp.c/simd-1.c: New test.
8013 * testsuite/libgomp.c/simd-2.c: New test.
8014 * testsuite/libgomp.c/simd-3.c: New test.
8015 * testsuite/libgomp.c/simd-4.c: New test.
8016 * testsuite/libgomp.c/simd-5.c: New test.
8017 * testsuite/libgomp.c/simd-6.c: New test.
8018 * testsuite/libgomp.c/target-1.c: New test.
8019 * testsuite/libgomp.c/target-2.c: New test.
8020 * testsuite/libgomp.c/target-3.c: New test.
8021 * testsuite/libgomp.c/target-4.c: New test.
8022 * testsuite/libgomp.c/target-5.c: New test.
8023 * testsuite/libgomp.c/target-6.c: New test.
8024 * testsuite/libgomp.c/target-7.c: New test.
8025 * testsuite/libgomp.c/taskgroup-1.c: New test.
8026 * testsuite/libgomp.c/thread-limit-1.c: New test.
8027 * testsuite/libgomp.c/thread-limit-2.c: New test.
8028 * testsuite/libgomp.c/thread-limit-3.c: New test.
8029 * testsuite/libgomp.c/udr-1.c: New test.
8030 * testsuite/libgomp.c/udr-2.c: New test.
8031 * testsuite/libgomp.c/udr-3.c: New test.
8032 * testsuite/libgomp.c++/affinity-1.C: New test.
8033 * testsuite/libgomp.c++/atomic-10.C: New test.
8034 * testsuite/libgomp.c++/atomic-11.C: New test.
8035 * testsuite/libgomp.c++/atomic-12.C: New test.
8036 * testsuite/libgomp.c++/atomic-13.C: New test.
8037 * testsuite/libgomp.c++/atomic-14.C: New test.
8038 * testsuite/libgomp.c++/atomic-15.C: New test.
8039 * testsuite/libgomp.c++/cancel-for-1.C: New test.
8040 * testsuite/libgomp.c++/cancel-for-2.C: New test.
8041 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
8042 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
8043 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
8044 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
8045 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
8046 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
8047 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
8048 * testsuite/libgomp.c++/cancel-test.h: New file.
8049 * testsuite/libgomp.c++/for-9.C: New test.
8050 * testsuite/libgomp.c++/for-10.C: New test.
8051 * testsuite/libgomp.c++/for-11.C: New test.
8052 * testsuite/libgomp.c++/simd-1.C: New test.
8053 * testsuite/libgomp.c++/simd-2.C: New test.
8054 * testsuite/libgomp.c++/simd-3.C: New test.
8055 * testsuite/libgomp.c++/simd-4.C: New test.
8056 * testsuite/libgomp.c++/simd-5.C: New test.
8057 * testsuite/libgomp.c++/simd-6.C: New test.
8058 * testsuite/libgomp.c++/simd-7.C: New test.
8059 * testsuite/libgomp.c++/simd-8.C: New test.
8060 * testsuite/libgomp.c++/target-1.C: New test.
8061 * testsuite/libgomp.c++/target-2.C: New test.
8062 * testsuite/libgomp.c++/target-2-aux.cc: New file.
8063 * testsuite/libgomp.c++/target-3.C: New test.
8064 * testsuite/libgomp.c++/taskgroup-1.C: New test.
8065 * testsuite/libgomp.c++/udr-1.C: New test.
8066 * testsuite/libgomp.c++/udr-2.C: New test.
8067 * testsuite/libgomp.c++/udr-3.C: New test.
8068 * testsuite/libgomp.c++/udr-4.C: New test.
8069 * testsuite/libgomp.c++/udr-5.C: New test.
8070 * testsuite/libgomp.c++/udr-6.C: New test.
8071 * testsuite/libgomp.c++/udr-7.C: New test.
8072 * testsuite/libgomp.c++/udr-8.C: New test.
8073 * testsuite/libgomp.c++/udr-9.C: New test.
8074
8075 2013-09-20 Jakub Jelinek <jakub@redhat.com>
8076
8077 PR testsuite/57605
8078 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
8079 ALWAYS_CFLAGS.
8080
8081 2013-09-20 Alan Modra <amodra@gmail.com>
8082
8083 * configure: Regenerate.
8084
8085 2013-09-19 Jakub Jelinek <jakub@redhat.com>
8086
8087 * testsuite/libgomp.c/sections-2.c: New test.
8088
8089 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
8090
8091 * testsuite/libgomp.fortran/strassen.f90:
8092 Add dg-skip-if aarch64_tiny.
8093
8094 2013-06-20 Iain Sandoe <iain@codesourcery.com>
8095 Cesar Philippidis <cesar@codesourcery.com>
8096
8097 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
8098 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
8099 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
8100 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8101 * testsuite/libgomp.graphite/graphite.exp: Likewise.
8102 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
8103 Use dg-runtest rather than gfortran-dg-runtest.
8104
8105 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
8106
8107 * testsuite/libgomp.c/icv-2.c: Extend current handling of
8108 Linux-based x86 systems to cover all GNU systems.
8109 * testsuite/libgomp.c/lock-3.c: Likewise.
8110 * testsuite/libgomp.c/pr48591.c: Likewise.
8111
8112 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
8113
8114 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
8115 GNU/Hurd, as done for Linux-based systems.
8116
8117 * config/posix/ptrlock.h: Fix comment.
8118
8119 2013-05-27 Tobias Burnus <burnus@net-b.de>
8120
8121 PR fortran/57423
8122 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
8123 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
8124 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
8125 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
8126 omp_destroy_nest_lock): Correct arguments to match the one in
8127 the OpenMP spec.
8128 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
8129 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
8130 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
8131 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
8132
8133 2013-05-16 Jakub Jelinek <jakub@redhat.com>
8134
8135 * testsuite/libgomp.c/loop-13.c: New test.
8136 * testsuite/libgomp.c/loop-14.c: New test.
8137 * testsuite/libgomp.c/loop-15.c: New test.
8138 * testsuite/libgomp.c++/loop-13.C: New test.
8139 * testsuite/libgomp.c++/loop-14.C: New test.
8140 * testsuite/libgomp.c++/loop-15.C: New test.
8141
8142 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8143
8144 PR middle-end/56217
8145 * testsuite/libgomp.c++/pr56217.C: New test.
8146
8147 2013-02-01 Alan Modra <amodra@gmail.com>
8148
8149 * task.c (GOMP_task, GOMP_taskwait): Comment.
8150
8151 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
8152 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
8153
8154 PR libgomp/55561
8155 * config/linux/wait.h (do_spin): Use atomic load for addr.
8156 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
8157 for intptr and ptrlock.
8158 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
8159 for ptrlock.
8160
8161 2013-01-22 Alan Modra <amodra@gmail.com>
8162
8163 PR libgomp/51376
8164 PR libgomp/56073
8165 * task.c (GOMP_task): Revert 2011-12-09 change.
8166 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
8167 barrier to read task->children..
8168 (gomp_barrier_handle_tasks): ..and matching atomic store with
8169 release barrier here when setting parent->children to NULL.
8170
8171 2013-01-16 Jakub Jelinek <jakub@redhat.com>
8172 Tobias Burnus <burnus@net-b.de>
8173
8174 PR driver/55884
8175 * testsuite/libgomp.fortran/fortran.exp: Use
8176 -fintrinsic-modules-path= instead of
8177 -fintrinsic-modules-path.
8178
8179 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
8180
8181 Update copyright years.
8182
8183 2012-12-19 Tobias Burnus <burnus@net-b.de>
8184
8185 * testsuite/libgomp.fortran/fortran.exp: Set
8186 -fintrinsic-modules-path.
8187
8188 2012-12-19 Tobias Burnus <burnus@net-b.de>
8189
8190 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8191 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8192
8193 2012-11-21 Jakub Jelinek <jakub@redhat.com>
8194
8195 PR libgomp/55411
8196 * team.c (gomp_free_thread): Decrease gomp_managed_threads
8197 if pool had any threads_used.
8198
8199 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
8200
8201 * testsuite/libgomp.c++/pr24455.C: Use
8202 -Wl,-undefined,dynamic_lookup on darwin.
8203
8204 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
8205
8206 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8207
8208 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
8209
8210 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8211
8212 2012-10-23 Ian Bolton <ian.bolton@arm.com>
8213 Jim MacArthur <jim.macarthur@arm.com>
8214 Marcus Shawcroft <marcus.shawcroft@arm.com>
8215 Nigel Stephens <nigel.stephens@arm.com>
8216 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8217 Richard Earnshaw <rearnsha@arm.com>
8218 Sofiane Naci <sofiane.naci@arm.com>
8219 Stephen Thomas <stephen.thomas@arm.com>
8220 Tejas Belagod <tejas.belagod@arm.com>
8221 Yufeng Zhang <yufeng.zhang@arm.com>
8222
8223 * configure.tgt: Add AArch64.
8224
8225 2012-10-04 Jason Merrill <jason@redhat.com>
8226
8227 * testsuite/libgomp.c++/tls-init1.C: New.
8228
8229 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8230
8231 * configure: Regenerated.
8232
8233 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
8234
8235 * config/linux/mips/futex.h (sys_futex0): Change to static
8236 function with noinline, nomips16 attributes under MIPS16. Adjust
8237 asm statement to place 'li v0,SYS_futex' immediately before
8238 syscall insn.
8239
8240 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
8241
8242 * libgomp.texi (Library Index): Renamed from "Index" to prevent
8243 conflict with index.html on case-insensitive file systems.
8244
8245 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8246
8247 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8248 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8249
8250 2012-07-02 Richard Guenther <rguenther@suse.de>
8251 Michael Matz <matz@suse.de>
8252 Tobias Grosser <tobias@grosser.es>
8253 Sebastian Pop <sebpop@gmail.com>
8254
8255 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8256 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8257 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8258 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8259
8260 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8261
8262 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8263
8264 2012-06-22 Richard Guenther <rguenther@suse.de>
8265
8266 Merge from graphite branch
8267 2012-01-13 Tobias Grosser <tobias@grosser.es>
8268
8269 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8270 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8271
8272 2012-06-07 Jakub Jelinek <jakub@redhat.com>
8273
8274 PR middle-end/53580
8275 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8276 use GOMP_barrier () call instead.
8277 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8278 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8279 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8280 call GOMP_barrier instead.
8281 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8282
8283 2012-06-06 Jakub Jelinek <jakub@redhat.com>
8284
8285 PR libgomp/52993
8286 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8287 argument to memset call.
8288
8289 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8290
8291 * configure: Regenerated.
8292
8293 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8294
8295 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8296
8297 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8298
8299 PR bootstrap/52812
8300 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8301
8302 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8303
8304 PR middle-end/52547
8305 * testsuite/libgomp.c/pr52547.c: New test.
8306
8307 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8308
8309 * testsuite/lib/libgomp.exp: load fortran-modules.exp
8310
8311 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8312
8313 * configure.tgt (mips-sgi-irix6*): Remove.
8314
8315 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8316
8317 * configure.tgt (alpha*-dec-osf*): Remove.
8318
8319 * config/osf/sem.h: Remove.
8320 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8321
8322 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8323
8324 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8325
8326 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8327
8328 PR libstdc++/52188
8329 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8330 Remove ENABLE_SYMVERS_SOL2.
8331 * configure: Regenerate.
8332 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8333 (PREPROCESS): New variable.
8334 (libgomp.ver): New target.
8335 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8336 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8337 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8338 Use libgomp.ver.
8339 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8340 * Makefile.in: Regenerate.
8341
8342 2012-02-14 Walter Lee <walt@tilera.com>
8343
8344 * configure.tgt: Handle tilegx and tilepro.
8345 * config/linux/tile/futex.h: New file.
8346
8347 2012-02-08 Richard Guenther <rguenther@suse.de>
8348
8349 PR tree-optimization/46886
8350 * testsuite/libgomp.c/pr46886.c: New testcase.
8351
8352 2012-01-25 Matthias Klose <doko@ubuntu.com>
8353
8354 * config/linux/arm: Remove empty directory.
8355 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8356
8357 2011-12-09 Alan Modra <amodra@gmail.com>
8358
8359 PR libgomp/51376
8360 * task.c (GOMP_taskwait): Don't access task->children outside of
8361 task_lock mutex region.
8362 (GOMP_task): Likewise.
8363
8364 2011-12-06 Jakub Jelinek <jakub@redhat.com>
8365
8366 PR libgomp/51132
8367 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
8368 to file scope.
8369 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8370 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8371 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8372 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8373 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8374
8375 2011-12-02 Alan Modra <amodra@gmail.com>
8376
8377 * config/linux/affinity.c: Use atomic rather than sync builtin.
8378 * config/linux/lock.c: Likewise.
8379 * config/linux/ptrlock.h: Likewise.
8380 * config/linux/ptrlock.c: Likewise.
8381 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
8382 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
8383 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
8384 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
8385 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
8386 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
8387 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
8388 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
8389 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
8390 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
8391
8392 2011-11-30 Alan Modra <amodra@gmail.com>
8393
8394 PR libgomp/51298
8395 * config/linux/bar.h: Use atomic rather than sync builtins.
8396 * config/linux/bar.c: Likewise. Add missing acquire
8397 synchronisation on generation field.
8398 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
8399 double unlock.
8400
8401 2011-11-30 Alan Modra <amodra@gmail.com>
8402
8403 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
8404 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
8405 * config/linux/mutex.h: Use atomic rather than sync builtins.
8406 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
8407 * config/linux/omp-lock.h: Comment fix.
8408 * config/linux/arm/mutex.h: Delete.
8409 * config/linux/powerpc/mutex.h: Delete.
8410 * config/linux/ia64/mutex.h: Delete.
8411 * config/linux/mips/mutex.h: Delete.
8412
8413 2011-11-30 Alan Modra <amodra@gmail.com>
8414
8415 PR libgomp/51249
8416 * config/linux/sem.h: Rewrite.
8417 * config/linux/sem.c: Rewrite.
8418
8419 2011-11-28 Richard Henderson <rth@redhat.com>
8420
8421 * libgomp.h (enum memmodel): New.
8422
8423 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
8424
8425 * configure: Regenerate.
8426
8427 2011-10-10 Matthias Klose <doko@ubuntu.com>
8428
8429 * config/posix95: Remove empty directory.
8430
8431 2011-08-26 Jakub Jelinek <jakub@redhat.com>
8432
8433 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
8434
8435 2011-08-19 Jakub Jelinek <jakub@redhat.com>
8436
8437 PR fortran/49792
8438 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
8439 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
8440
8441 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8442
8443 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
8444
8445 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8446
8447 PR libgomp/49965
8448 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
8449
8450 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
8451
8452 * config/linux/proc.h: New.
8453 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
8454 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
8455 (gomp_init_num_threads): Update call to cpuset_popcount.
8456 (get_num_procs): Ditto.
8457 * config/linux/affinity.c (gomp_init_affinity): Call
8458 gomp_cpuset_popcount.
8459
8460 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8461
8462 PR fortran/42041
8463 PR fortran/46752
8464 * omp.h.in (omp_in_final): New prototype.
8465 * omp_lib.f90.in (omp_in_final): New interface.
8466 (omp_integer_kind, omp_logical_kind): Remove
8467 and replace all its uses in the module with 4.
8468 (openmp_version): Change to 201107.
8469 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
8470 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
8471 kind for the parameters.
8472 (omp_in_final): New external.
8473 (openmp_version): Change to 201107.
8474 * task.c (omp_in_final): New function.
8475 (gomp_init_task): Initialize final_task.
8476 (GOMP_task): Remove unused attribute from flags. Handle final
8477 tasks.
8478 (GOMP_taskyield): New function.
8479 (omp_in_final): Return true if if (false) or final (true) task
8480 or descendant of final (true).
8481 * fortran.c (omp_in_final_): New function.
8482 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
8483 (GOMP_3.0): Export GOMP_taskyield.
8484 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8485 variables.
8486 (parse_unsigned_long_list): New function.
8487 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
8488 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
8489 even if parse_affinity returned false.
8490 * config/linux/affinity.c (gomp_init_affinity): Handle
8491 gomp_cpu_affinity_len == 0.
8492 * libgomp_g.h (GOMP_taskyield): New prototype.
8493 * libgomp.h (struct gomp_task): Add final_task field.
8494 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8495 * team.c (gomp_team_start): Override new task's nthreads_var icv
8496 if list form OMP_NUM_THREADS has been used and it has value for
8497 the new nesting level.
8498
8499 * testsuite/libgomp.c/atomic-11.c: New test.
8500 * testsuite/libgomp.c/atomic-12.c: New test.
8501 * testsuite/libgomp.c/atomic-13.c: New test.
8502 * testsuite/libgomp.c/atomic-14.c: New test.
8503 * testsuite/libgomp.c/reduction-6.c: New test.
8504 * testsuite/libgomp.c/task-5.c: New test.
8505 * testsuite/libgomp.c++/atomic-2.C: New test.
8506 * testsuite/libgomp.c++/atomic-3.C: New test.
8507 * testsuite/libgomp.c++/atomic-4.C: New test.
8508 * testsuite/libgomp.c++/atomic-5.C: New test.
8509 * testsuite/libgomp.c++/atomic-6.C: New test.
8510 * testsuite/libgomp.c++/atomic-7.C: New test.
8511 * testsuite/libgomp.c++/atomic-8.C: New test.
8512 * testsuite/libgomp.c++/atomic-9.C: New test.
8513 * testsuite/libgomp.c++/task-8.C: New test.
8514 * testsuite/libgomp.c++/reduction-4.C: New test.
8515 * testsuite/libgomp.fortran/allocatable7.f90: New test.
8516 * testsuite/libgomp.fortran/allocatable8.f90: New test.
8517 * testsuite/libgomp.fortran/crayptr3.f90: New test.
8518 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8519 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8520 * testsuite/libgomp.fortran/pointer1.f90: New test.
8521 * testsuite/libgomp.fortran/pointer2.f90: New test.
8522 * testsuite/libgomp.fortran/task4.f90: New test.
8523
8524 2011-08-02 Tobias Burnus <burnus@net-b.de>
8525
8526 * libgomp.texi: Update OpenMP spec references to 3.1.
8527 (omp_in_final,OMP_PROC_BIND): New sections.
8528 (OMP_NUM_THREADS): Document that the value can be now a list.
8529 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8530
8531 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8532
8533 * config/linux/x86/futex.h: Check __x86_64__ instead of
8534 __LP64__.
8535
8536 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8537
8538 PR middle-end/49897
8539 PR middle-end/49898
8540 * testsuite/libgomp.c/pr49897-1.c: New test.
8541 * testsuite/libgomp.c/pr49897-2.c: New test.
8542 * testsuite/libgomp.c/pr49898-1.c: New test.
8543 * testsuite/libgomp.c/pr49898-2.c: New test.
8544
8545 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8546
8547 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8548 for ia32 instead of ilp32.
8549
8550 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8551 * testsuite/libgomp.c/atomic-6.c: Likewise.
8552
8553 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
8554
8555 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8556 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8557
8558 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8559
8560 PR libgomp/45351
8561 * config/osf/sem.h: New file.
8562 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8563
8564 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8565
8566 PR target/49541
8567 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8568 ldflags.
8569
8570 2011-07-15 Jakub Jelinek <jakub@redhat.com>
8571
8572 * config/linux/wait.h (do_spin): New inline, largely copied
8573 from do_wait, just don't do futex_wait here, instead return true if
8574 it should be done.
8575 (do_wait): Implement using do_spin.
8576 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8577 to prototype.
8578 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8579 __sync_bool_compare_and_swap, pass the oldval to
8580 gomp_mutex_lock_slow.
8581 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8582 If all mutex contenders are just spinning and not sleeping, don't
8583 change state to 2 unnecessarily. Optimize the loop when state has
8584 already become 2 to use just one atomic operation per loop instead
8585 of two.
8586 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8587 to prototype.
8588 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8589 __sync_bool_compare_and_swap, pass the oldval to
8590 gomp_mutex_lock_slow.
8591
8592 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8593
8594 PR libgomp/49490
8595 * iter.c (gomp_iter_static_next): For chunk size 0
8596 only use n ceil/ nthreads size for the first
8597 n % nthreads threads in the team instead of
8598 all threads except for the last few ones which
8599 get less work or none at all.
8600 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8601 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8602 chunk argument, set run_sched_modifier to 0 for static
8603 resp. 1 for other kinds. If chunk argument is 0
8604 and not static, set value to 1.
8605
8606 2011-05-19 Jakub Jelinek <jakub@redhat.com>
8607
8608 PR c++/49043
8609 * testsuite/libgomp.c++/pr49043.C: New test.
8610
8611 PR c++/48869
8612 * testsuite/libgomp.c++/pr48869.C: New test.
8613
8614 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8615
8616 PR fortran/48894
8617 * fortran.c: Include limits.h.
8618 (TO_INT): Define.
8619 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8620 *set.
8621 (omp_set_num_threads_8_, omp_set_schedule_8_,
8622 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8623 omp_get_team_size_8_): Use TO_INT macro.
8624 * testsuite/libgomp.fortran/pr48894.f90: New test.
8625
8626 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8627
8628 PR middle-end/48591
8629 * testsuite/libgomp.c/pr48591.c: New test.
8630
8631 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8632
8633 PR bootstrap/48135
8634 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8635 * configure: Regenerate.
8636
8637 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8638
8639 PR fortran/47886
8640 * testsuite/libgomp.fortran/task3.f90: New test.
8641
8642 2011-02-24 Tobias Burnus <burnus@net-b.de>
8643
8644 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8645
8646 2011-02-23 Jakub Jelinek <jakub@redhat.com>
8647
8648 PR libgomp/47854
8649 * libgomp.texi (omp_get_wtime): Don't say time in the past
8650 must be Unix Epoch.
8651
8652 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8653
8654 PR libgomp/47804
8655 * testsuite/libgomp.fortran/fortran.exp: Check for both
8656 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
8657 but $blddir != "", still append ${blddir}/${lang_library_path}
8658 to ld_library_path.
8659
8660 2011-02-16 Tobias Burnus <burnus@net-b.de>
8661
8662 PR libgomp/47758
8663 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8664 of libquadmath.a before adding its libpath to ldflags.
8665
8666 2011-02-14 Jakub Jelinek <jakub@redhat.com>
8667
8668 PR libgomp/47731
8669 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8670 to FUTEX_WAIT futex syscall.
8671 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8672
8673 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8674
8675 * configure: Regenerate.
8676
8677 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
8678
8679 PR libstdc++/36104
8680 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8681
8682 2011-01-16 Gerald Pfeifer
8683
8684 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8685
8686 2010-12-14 Jakub Jelinek <jakub@redhat.com>
8687
8688 PR fortran/46874
8689 * libgomp.fortran/allocatable6.f90: New test.
8690
8691 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8692
8693 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8694 * configure: Regenerate.
8695
8696 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
8697
8698 PR target/40125
8699 PR lto/46695
8700 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8701 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8702 * aclocal.m4: Regenerate.
8703 * configure: Regenerate.
8704 * Makefile.in: Regenerate.
8705 * testsuite/Makefile.in: Regenerate.
8706
8707 2010-12-02 Jakub Jelinek <jakub@redhat.com>
8708
8709 PR fortran/46753
8710 * libgomp.fortran/pr46753.f90: New test.
8711
8712 PR libgomp/43706
8713 * env.c (initialize_env): Default to spin count 300000
8714 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8715 is specified.
8716
8717 PR libgomp/45240
8718 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8719 at the end if sync builtins aren't supported.
8720
8721 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8722
8723 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8724
8725 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8726
8727 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8728
8729 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
8730
8731 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8732
8733 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8734 Tobias Burnus <burnus@net-b.de>
8735
8736 PR fortran/32049
8737 * configure.ac:
8738 * configure: Regenerate.
8739
8740 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
8741
8742 * config/linux/futex.h: New.
8743 * config/linux/arm/mutex.h: New.
8744 * configure.tgt (arm*-*-linux*): Add config path.
8745
8746 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8747
8748 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8749
8750 2010-09-23 Tobias Burnus <burnus@net-b.de>
8751
8752 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8753 Change Fortran datatype to LOGICAL.
8754 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8755 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8756
8757 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8758
8759 * configure: Regenerate.
8760
8761 2010-07-26 Jakub Jelinek <jakub@redhat.com>
8762
8763 * libgomp.texi: Add function keyword to a couple of Fortran
8764 interfaces, use integer instead of int for Fortran.
8765
8766 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8767
8768 * libgomp.texi: Fix spelling and pasto problems throughout.
8769 Adjust prototypes to match code.
8770
8771 2010-07-24 Tobias Burnus <burnus@net-b.de>
8772
8773 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8774 silence -fwhole-file warning.
8775
8776 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8777
8778 * configure.tgt (*-*-solaris2.[56]*): Removed.
8779
8780 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8781
8782 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8783 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8784 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8785 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8786 targetting solaris2*.
8787 * configure: Regenerate.
8788 * config.h.in: Regenerate.
8789
8790 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8791 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8792 Add libgomp_version_dep.
8793 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8794 versioning.
8795 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8796 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8797 * Makefile.in: Regenerate.
8798
8799 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8800 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8801 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8802 to common block, protected by
8803 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8804
8805 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8806
8807 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
8808
8809 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8810
8811 PR bootstrap/43170
8812 * configure: Regenerate.
8813
8814 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8815
8816 PR other/43620
8817 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8818 * configure: Regenerate.
8819 * Makefile.in: Regenerate.
8820 * testsuite/Makefile.in: Regenerate.
8821
8822 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8823
8824 PR c/43893
8825 * testsuite/libgomp.c/pr43893.c: New test.
8826 * testsuite/libgomp.c++/pr43893.C: New test.
8827
8828 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8829
8830 PR middle-end/43570
8831 * testsuite/libgomp.fortran/vla8.f90: New test.
8832
8833 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8834
8835 PR libgomp/43706
8836 * config/linux/affinity.c (gomp_init_affinity): Decrease
8837 gomp_available_cpus if affinity mask confines the process to fewer
8838 CPUs.
8839 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8840 non-NULL, just return gomp_available_cpus.
8841
8842 PR libgomp/43569
8843 * sections.c (gomp_sections_init): Initialize ws->mode.
8844
8845 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8846
8847 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8848 not unused bar variable.
8849 * configure: Regenerate.
8850
8851 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8852
8853 * Makefile.in: Regenerate.
8854 * aclocal.m4: Regenerate.
8855 * testsuite/Makefile.in: Regenerate.
8856
8857 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8858
8859 PR libgomp/42942
8860 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8861 (initialize_env): Adjust callers.
8862 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8863 when the argument is 0.
8864
8865 * testsuite/libgomp.c/pr42942.c: New test.
8866
8867 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8868
8869 PR middle-end/42644
8870 PR middle-end/42130
8871 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8872 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8873
8874 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8875
8876 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8877 * testsuite/libgomp.c++/task-6.C: Likewise.
8878
8879 2010-01-28 Steve Ellcey <sje@cup.hp.com>
8880
8881 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8882
8883 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
8884
8885 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8886 * configure: Regenerate.
8887
8888 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8889
8890 PR fortran/42866
8891 * testsuite/libgomp.fortran/allocatable5.f90: New test.
8892
8893 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
8894
8895 * configure.ac: Test for executability of GFORTRAN.
8896 * configure: Regenerate.
8897
8898 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8899
8900 * configure: Regenerate.
8901
8902 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8903
8904 PR libgomp/42602
8905 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8906
8907 2010-01-03 Richard Guenther <rguenther@suse.de>
8908
8909 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8910
8911 2009-12-23 Sebastian Pop <sebpop@gmail.com>
8912
8913 * testsuite/libgomp.graphite/pr4118.c: New.
8914
8915 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8916
8917 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8918 for darwin, protect the test with require-effective-target tls_runtime.
8919 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8920
8921 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8922
8923 PR target/41605
8924 * testsuite/lib/libgomp.exp: Provide -B options to allow for
8925 link spec %s substitutions for static libraries.
8926
8927 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
8928
8929 PR testsuite/42135
8930 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8931
8932 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8933
8934 * Makefile.in: Regenerate.
8935 * configure: Regenerate.
8936 * testsuite/Makefile.in: Regenerate.
8937
8938 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8939
8940 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8941 settings for LC_ALL and LANG.
8942
8943 2009-11-25 Jakub Jelinek <jakub@redhat.com>
8944
8945 PR fortran/42162
8946 * testsuite/libgomp.fortran/pr42162.f90: New test.
8947
8948 2009-11-13 Jakub Jelinek <jakub@redhat.com>
8949
8950 PR middle-end/42029
8951 * testsuite/libgomp.c/pr42029.c: New test.
8952
8953 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8954
8955 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8956 *s. Accept ld version without text in ()s.
8957 * configure: Regenerated.
8958
8959 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
8960
8961 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8962
8963 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8964
8965 PR libgomp/41418
8966 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8967 or a hyphen (happens with fortran language disabled).
8968 * configure: Regenerate.
8969
8970 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8971
8972 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8973 use sed script portable to Solaris /bin/sed for extracting ld
8974 version.
8975 * configure: Regenerate.
8976
8977 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8978
8979 * testsuite/libgomp.graphite/bounds.c: New test.
8980
8981 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8982
8983 * Makefile.am (libgomp_la_LINK): New.
8984 * Makefile.in: Regenerate.
8985
8986 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8987
8988 * configure.ac (AC_PREREQ): Bump to 2.64.
8989
8990 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8991
8992 * Makefile.am (install-html, install-pdf): Remove.
8993 * Makefile.in: Regenerate.
8994
8995 * Makefile.in: Regenerate.
8996 * aclocal.m4: Regenerate.
8997 * config.h.in: Regenerate.
8998 * configure: Regenerate.
8999 * testsuite/Makefile.in: Regenerate.
9000
9001 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9002
9003 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
9004 * Makefile.in: Regenerate.
9005
9006 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
9007
9008 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
9009 * Makefile.in: Regenerate.
9010
9011 2009-08-19 Tobias Burnus <burnus@net-b.de>
9012
9013 PR fortran/41102
9014 omp_lib.h.in: Fix -std=f95 errors.
9015
9016 2009-08-14 David Edelsohn <edelsohn@gnu.org>
9017
9018 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
9019 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
9020 * testsuite/libgomp.graphite/graphite.exp: New.
9021
9022 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
9023
9024 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
9025 only build.
9026
9027 2009-08-04 David Daney <ddaney@caviumnetworks.com>
9028
9029 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
9030 needed memory barrier semantics.
9031 * config/linux/mips/mutex.h: New file.
9032
9033 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9034
9035 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
9036
9037 2009-07-16 Joseph Myers <joseph@codesourcery.com>
9038
9039 * configure: Regenerate.
9040
9041 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
9042
9043 PR testsuite/40699
9044 PR testsuite/40707
9045 PR testsuite/40709
9046 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
9047 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
9048 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
9049
9050 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
9051
9052 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
9053 options when choosing a multilib.
9054
9055 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
9056
9057 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
9058 ld_library_path. Use add_path. Add just find_libgcc_s to
9059 ld_library_path, not every libgcc multilib directory.
9060 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
9061 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
9062 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
9063 Use add_path.
9064 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
9065
9066 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
9067
9068 * Makefile.am (LTLDFLAGS): Define.
9069 (LINK): Define.
9070 * Makefile.in: Regenerate.
9071
9072 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
9073
9074 PR fortran/39718
9075 * testsuite/libgomp.fortran/fortran.exp: Don't link with
9076 libgfortranbegin, check existence of libgfortran.a instead of
9077 libgfortranbegin.a.
9078
9079 2009-05-20 Jakub Jelinek <jakub@redhat.com>
9080
9081 PR libgomp/40174
9082 * team.c (gomp_thread_start): Destroy thr->release semaphore.
9083 (gomp_free_pool_helper): Likewise.
9084
9085 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
9086 Jakub Jelinek <jakub@redhat.com>
9087
9088 PR fortran/35423
9089 * testsuite/libgomp.fortran/workshare2.f90: New test.
9090
9091 2009-04-09 Nick Clifton <nickc@redhat.com>
9092
9093 * iter.c: Change copyright header to refer to version 3 of the
9094 GNU General Public License with version 3.1 of the GCC Runtime
9095 Library Exception and to point readers at the COPYING3 and
9096 COPYING3.RUNTIME files and the FSF's license web page.
9097 * alloc.c: Likewise.
9098 * barrier.c: Likewise.
9099 * config/bsd/proc.c: Likewise.
9100 * config/linux/affinity.c: Likewise.
9101 * config/linux/alpha/futex.h: Likewise.
9102 * config/linux/bar.c: Likewise.
9103 * config/linux/bar.h: Likewise.
9104 * config/linux/ia64/futex.h: Likewise.
9105 * config/linux/ia64/mutex.h: Likewise.
9106 * config/linux/lock.c: Likewise.
9107 * config/linux/mips/futex.h: Likewise.
9108 * config/linux/mutex.c: Likewise.
9109 * config/linux/mutex.h: Likewise.
9110 * config/linux/powerpc/futex.h: Likewise.
9111 * config/linux/proc.c: Likewise.
9112 * config/linux/ptrlock.c: Likewise.
9113 * config/linux/ptrlock.h: Likewise.
9114 * config/linux/s390/futex.h: Likewise.
9115 * config/linux/sem.c: Likewise.
9116 * config/linux/sem.h: Likewise.
9117 * config/linux/sparc/futex.h: Likewise.
9118 * config/linux/wait.h: Likewise.
9119 * config/linux/x86/futex.h: Likewise.
9120 * config/mingw32/proc.c: Likewise.
9121 * config/mingw32/time.c: Likewise.
9122 * config/posix/affinity.c: Likewise.
9123 * config/posix/bar.c: Likewise.
9124 * config/posix/bar.h: Likewise.
9125 * config/posix/lock.c: Likewise.
9126 * config/posix/mutex.h: Likewise.
9127 * config/posix/proc.c: Likewise.
9128 * config/posix/ptrlock.h: Likewise.
9129 * config/posix/sem.c: Likewise.
9130 * config/posix/sem.h: Likewise.
9131 * config/posix/time.c: Likewise.
9132 * config/posix95/lock.c: Likewise.
9133 * critical.c: Likewise.
9134 * env.c: Likewise.
9135 * error.c: Likewise.
9136 * fortran.c: Likewise.
9137 * iter_ull.c: Likewise.
9138 * libgomp.h: Likewise.
9139 * libgomp_f.h.in: Likewise.
9140 * libgomp_g.h: Likewise.
9141 * loop.c: Likewise.
9142 * loop_ull.c: Likewise.
9143 * omp.h.in: Likewise.
9144 * omp_lib.f90.in: Likewise.
9145 * omp_lib.h.in: Likewise.
9146 * ordered.c: Likewise.
9147 * parallel.c: Likewise.
9148 * sections.c: Likewise.
9149 * single.c: Likewise.
9150 * task.c: Likewise.
9151 * team.c: Likewise.
9152 * work.c: Likewise.
9153
9154 2009-04-09 Jakub Jelinek <jakub@redhat.com>
9155
9156 * testsuite/config/default.exp: Change copyright header to refer to
9157 version 3 of the GNU General Public License and to point readers
9158 at the COPYING3 file and the FSF's license web page.
9159
9160 2009-04-08 Jakub Jelinek <jakub@redhat.com>
9161
9162 PR middle-end/39573
9163 * libgomp.c++/pr39573.C: New test.
9164
9165 2009-04-01 Jakub Jelinek <jakub@redhat.com>
9166
9167 PR other/39591
9168 * testsuite/libgomp.c/pr39591-1.c: New test.
9169 * testsuite/libgomp.c/pr39591-2.c: New test.
9170 * testsuite/libgomp.c/pr39591-3.c: New test.
9171
9172 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
9173
9174 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
9175 * testsuite/libgomp.c/atomic-6.c: Ditto.
9176
9177 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9178
9179 PR c/39495
9180 * testsuite/libgomp.c/loop-12.c: New test.
9181 * testsuite/libgomp.c/loop-11.c: New test.
9182 * testsuite/libgomp.c++/loop-11.C: New test.
9183 * testsuite/libgomp.c++/loop-12.C: New test.
9184 * testsuite/libgomp.c++/for-8.C: New test.
9185
9186 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9187
9188 * configure: Regenerate.
9189
9190 2009-02-11 Jakub Jelinek <jakub@redhat.com>
9191
9192 PR middle-end/39154
9193 * testsuite/libgomp.c/pr39154.c: New test.
9194
9195 2009-01-30 Ian Lance Taylor <iant@google.com>
9196
9197 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9198 libgomp_ld_is_gold. Get gold version number.
9199 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9200 * configure: Rebuild.
9201
9202 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9203
9204 * testsuite/lib/libgomp.exp: Add -B option for targets that
9205 use libgfortran.a%s in their specs.
9206
9207 2009-01-07 Jakub Jelinek <jakub@redhat.com>
9208
9209 PR libgomp/38086
9210 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9211 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9212 HAVE_AS_SYMVER_DIRECTIVE is not defined.
9213 * configure: Regenerated.
9214 * config.h.in: Likewise.
9215
9216 2008-12-28 Jakub Jelinek <jakub@redhat.com>
9217
9218 PR c++/38650
9219 * testsuite/libgomp.c/pr38650.c: New test.
9220 * testsuite/libgomp.c++/pr38650.C: New test.
9221
9222 2008-12-27 Jakub Jelinek <jakub@redhat.com>
9223
9224 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9225
9226 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
9227
9228 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9229
9230 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9231
9232 * configure: Regenerate.
9233
9234 2008-12-08 Jakub Jelinek <jakub@redhat.com>
9235
9236 PR middle-end/36802
9237 * testsuite/libgomp.c/pr36802-1.c: New test.
9238 * testsuite/libgomp.c/pr36802-2.c: New test.
9239 * testsuite/libgomp.c/pr36802-3.c: New test.
9240
9241 2008-12-01 Janis Johnson <janis187@us.ibm.com>
9242
9243 PR libgomp/38270
9244 * config/linux/powerpc/mutex.h: New.
9245
9246 2008-12-01 Jakub Jelinek <jakub@redhat.com>
9247
9248 PR c++/38257
9249 * testsuite/libgomp.c++/for-7.C: New test.
9250
9251 PR c++/38348
9252 * testsuite/libgomp.c++/for-6.C: New test.
9253
9254 2008-11-26 Janis Johnson <janis187@us.ibm.com>
9255
9256 PR testsuite/28870
9257 * testsuite/lib/libgomp.exp: Include new timeout library files.
9258 (libgomp_target_compile): Set timeout value from new proc.
9259
9260 2008-11-13 Steve Ellcey <sje@cup.hp.com>
9261
9262 PR libgomp/37938
9263 * config/linux/ia64/mutex.h: New.
9264
9265 2008-11-04 Tobias Burnus <burnus@net-b.de>
9266
9267 PR libgomp/37935
9268 * libgomp.texi (Runtime library routines, environment variables):
9269 Update for OpenMP version 3.0.
9270
9271 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
9272 Steve Ellcey <sje@cup.hp.com>
9273
9274 * configure: Regenerate for new libtool.
9275 * Makefile.in: Ditto.
9276 * testsuite/Makefile.in: Ditto.
9277
9278 2008-09-19 Jakub Jelinek <jakub@redhat.com>
9279 Andreas Tobler <a.tobler@schweiz.org>
9280
9281 * config/bsd/proc.c: New file.
9282 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
9283 * configure.ac: Check for header <sys/sysctl.h>
9284 * configure: Regenerate.
9285 * config.h.in: Likewise.
9286
9287 2008-09-05 Janis Johnson <janis187@us.ibm.com>
9288
9289 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9290
9291 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9292
9293 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9294 * Makefile.in: Regenerated.
9295 * testsuite/Makefile.in: Regenerated.
9296
9297 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
9298
9299 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
9300 depend on blddir if blddir exists.
9301 (libgomp_target_compile): Likewise.
9302 * testsuite/libgomp.c++/c++.exp: Likewise.
9303 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9304
9305 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9306
9307 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
9308 Do not list GPL as Invariant Section.
9309
9310 2008-07-28 Ilie Garbacea <ilie@mips.com>
9311 Chao-ying Fu <fu@mips.com>
9312
9313 * configure.tgt: Enable futex for MIPS.
9314 * config/linux/mips/futex.h: New file.
9315
9316 2008-07-16 Jakub Jelinek <jakub@redhat.com>
9317
9318 * team.c (gomp_team_end): Free team immediately if it has
9319 just one thread.
9320
9321 2008-07-08 David Edelsohn <edelsohn@gnu.org>
9322
9323 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9324 * testsuite/libgomp.fortran/fortran.exp: Same.
9325 * testsuite/libgomp.c/c.exp: Same.
9326 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9327 directory to library path first.
9328
9329 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
9330
9331 * env.c (parse_stacksize): Add cast to avoid warning.
9332 (parse_spincount): Likewise.
9333
9334 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9335
9336 * testsuite/libgomp.c/loop-10.c: New test.
9337 * libgomp.c/loop-3.c (main): Add lastprivate clause.
9338 * libgomp.c++/loop-6.C (main): Likewise.
9339
9340 PR debug/36617
9341 * testsuite/libgomp.c/debug-1.c: New test.
9342
9343 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9344
9345 * testsuite/libgomp.c/nqueens-1.c: New test.
9346
9347 PR c++/36523
9348 * testsuite/libgomp.c++/task-7.C: New function.
9349
9350 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9351
9352 * configure: Regenerate.
9353
9354 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9355
9356 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9357 mutex when HAVE_SYNC_BUILTINS isn't defined.
9358
9359 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9360
9361 * libgomp.texi (omp_test_lock): Fix typo.
9362
9363 2008-06-12 Tobias Burnus <burnus@net-b.de>
9364
9365 * omp_lib.f90.in: Add "implicit none".
9366
9367 2008-06-12 Jakub Jelinek <jakub@redhat.com>
9368
9369 PR middle-end/36506
9370 * testsuite/libgomp.c/reduction-5.c: New test.
9371
9372 2008-06-11 Jakub Jelinek <jakub@redhat.com>
9373
9374 * libgomp.h (struct gomp_task): Add in_tied_task field.
9375 * task.c (gomp_init_task): Initialize it.
9376 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
9377 unconditionally. Don't call gomp_team_barrier_wake if
9378 current task is implicit or if(0) from implicit and number of
9379 running tasks is equal to nthreads - 1.
9380
9381 PR libgomp/36471
9382 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
9383 omp_get_team_size_8): Fix pastos.
9384
9385 PR libgomp/36469
9386 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
9387 * configure: Regenerated.
9388 * config.h.in: Regenerated.
9389 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
9390 defined.
9391
9392 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
9393
9394 PR bootstrap/36452
9395 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
9396 (GOMP_loop_ull_dynamic_start): Likewise.
9397 (GOMP_loop_ull_guided_start): Likewise.
9398 (GOMP_loop_ull_ordered_static_start): Likewise.
9399 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
9400 (GOMP_loop_ull_ordered_guided_start): Likewise.
9401
9402 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9403 Richard Henderson <rth@redhat.com>
9404 Ulrich Drepper <drepper@redhat.com>
9405 Jakob Blomer <jakob.blomer@ira.uka.de>
9406
9407 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
9408 Substitute also OMP_*LOCK_25*.
9409 * configure: Regenerated.
9410 * config.h.in: Regenerated.
9411 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
9412 ptrlock.c and task.c.
9413 * Makefile.in: Regenerated.
9414 * testsuite/Makefile.in: Regenerated.
9415 * task.c: New file.
9416 * loop_ull.c: New file.
9417 * iter_ull.c: New file.
9418 * libgomp.h: Include ptrlock.h.
9419 (enum gomp_task_kind): New type.
9420 (struct gomp_team): Add task_lock, task_queue, task_count,
9421 task_running_count, single_count fields. Add
9422 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
9423 Remove work_share_lock, generation_mask,
9424 oldest_live_gen, num_live_gen and init_work_shares fields, add
9425 work work_share_list_alloc, work_share_list_free and work_share_chunk
9426 fields. Change work_shares from pointer to pointers into an array.
9427 Change ordered_release field into gomp_sem_t ** from flexible array
9428 member. Add implicit_task and initial_work_shares fields.
9429 Move close to the end of the struct.
9430 (struct gomp_team_state): Add single_count, last_work_share,
9431 active_level and level fields, remove work_share_generation.
9432 (gomp_barrier_handle_tasks): New prototype.
9433 (gomp_finish_task): New inline function.
9434 (struct gomp_work_share): Move chunk_size, end, incr into
9435 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
9436 next_ll fields. Reshuffle fields. Add next_alloc,
9437 next_ws, next_free and inline_ordered_team_ids fields, change
9438 ordered_team_ids into pointer from flexible array member.
9439 Add mode field. Put lock and next into a different cache line
9440 from most of the write-once fields.
9441 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
9442 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
9443 gomp_iter_ull_guided_next): New prototypes.
9444 (gomp_new_icv): New prototype.
9445 (struct gomp_thread): Add thread_pool and task fields.
9446 (struct gomp_thread_pool): New type.
9447 (gomp_new_team): New prototype.
9448 (gomp_team_start): Change type of last argument.
9449 (gomp_new_work_share): Removed.
9450 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
9451 (gomp_work_share_init_done): New static inline.
9452 (gomp_throttled_spin_count_var, gomp_available_cpus,
9453 gomp_managed_threads): New extern decls.
9454 (gomp_init_task): New prototype.
9455 (gomp_spin_count_var): New extern var decl.
9456 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
9457 or no alias support, or if not PIC.
9458 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
9459 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
9460 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
9461 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
9462 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
9463 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
9464 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
9465 gomp_test_nest_lock_25): New prototypes.
9466 (omp_lock_symver, strong_alias): Define.
9467 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
9468 decls.
9469 (gomp_end_task): New.
9470 (struct gomp_task_icv, gomp_global_icv): New.
9471 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
9472 (struct gomp_task): New.
9473 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9474 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9475 (gomp_icv): New.
9476 (gomp_schedule_type): Reorder enum to match
9477 omp_sched_t.
9478 * team.c (struct gomp_thread_start_data): Add thread_pool and task
9479 fields.
9480 (gomp_thread_start): Add gomp_team_barrier_wait call.
9481 For non-nested case remove clearing of docked thread thr fields.
9482 Use pool fields instead of global gomp_* variables. Use
9483 gomp_barrier_wait_last when needed. Initialize ts.active_level.
9484 Create tasks for each member thread.
9485 (free_team): Only destroy team barrier, task_lock here and free it.
9486 (gomp_free_thread): Free last_team if non-NULL.
9487 (gomp_team_end): Call gomp_team_barrier_wait instead of
9488 gomp_barrier_wait. For nested case call one extra
9489 gomp_barrier_wait. Move here some destruction from free_team.
9490 Call free_team on pool->last_team if any, rather than freeing
9491 current team. Destroy work_share_list_free_lock ifndef
9492 HAVE_SYNC_BUILTINS.
9493 (gomp_new_icv): New function.
9494 (gomp_threads, gomp_threads_size, gomp_threads_used,
9495 gomp_threads_dock): Removed.
9496 (gomp_thread_destructor): New variable.
9497 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9498 functions.
9499 (gomp_team_start): Create new pool if current thread doesn't have
9500 one. Use pool fields instead of global gomp_* variables.
9501 Initialize thread_pool field for new threads. Clear single_count.
9502 Change last argument from ws to team, don't create
9503 new team, set ts.work_share to &team->work_shares[0] and clear
9504 ts.last_work_share. Don't clear ts.work_share_generation.
9505 If number of threads changed, adjust atomically gomp_managed_threads.
9506 Use gomp_init_task instead of gomp_new_task,
9507 set thr->task to the corresponding implicit_task array entry.
9508 Create tasks for each member thread. Initialize ts.level.
9509 (initialize_team): Call pthread_key_create on
9510 gomp_thread_destructor.
9511 (team_destructor): New function.
9512 (new_team): Removed.
9513 (gomp_new_team): New function.
9514 (free_team): Free gomp_work_share blocks chained through next_alloc,
9515 instead of freeing work_shares and destroying work_share_lock.
9516 (gomp_team_end): Call gomp_fini_work_share. If number of threads
9517 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
9518 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9519 of gomp_barrier_wait.
9520 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9521 instead of gomp_barrier_wait. Call gomp_work_share_init_done
9522 if gomp_work_share_start returned true. Don't unlock ws->lock.
9523 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9524 of gomp_barrier_wait.
9525 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
9526 gomp_work_share_init_done if gomp_work_share_start returned true.
9527 Don't unlock ws->lock.
9528 * work.c: Include stddef.h.
9529 (free_work_share): Use work_share_list_free_lock instead
9530 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
9531 Call gomp_fini_work_share and then either free ws if orphaned, or
9532 put it into work_share_list_free list of the current team.
9533 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9534 functions.
9535 (gomp_work_share_start, gomp_work_share_end,
9536 gomp_work_share_end_nowait): Rewritten.
9537 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9538 (openmp_version): Set to 200805.
9539 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9540 omp_sched_guided, omp_sched_auto): New parameters.
9541 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9542 omp_set_max_active_levels, omp_get_max_active_levels,
9543 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9544 omp_get_active_level): New interfaces.
9545 * omp_lib.h.in (openmp_version): Set to 200805.
9546 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9547 omp_sched_guided, omp_sched_auto): New parameters.
9548 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9549 omp_set_max_active_levels, omp_get_max_active_levels,
9550 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9551 omp_get_active_level): New externals.
9552 * loop.c: Include limits.h.
9553 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9554 GFS_AUTO.
9555 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9556 Likewise. Use gomp_icv.
9557 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9558 ts.static_trip here.
9559 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9560 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
9561 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9562 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
9563 don't unlock ws->lock, otherwise lock it.
9564 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9565 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
9566 (gomp_parallel_loop_start): Call gomp_new_team instead of
9567 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
9568 Adjust gomp_team_start caller. Pass 0 as second argument to
9569 gomp_resolve_num_threads.
9570 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9571 If adding ws->chunk_size nthreads + 1 times after end won't
9572 overflow, set ws->mode to 1.
9573 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9574 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9575 GOMP_loop_ull_ordered_static_start,
9576 GOMP_loop_ull_ordered_dynamic_start,
9577 GOMP_loop_ull_ordered_guided_start,
9578 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9579 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9580 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9581 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9582 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9583 prototypes.
9584 * libgomp.map: Export lock routines also @@OMP_2.0.
9585 (GOMP_loop_ordered_dynamic_first,
9586 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9587 GOMP_loop_ordered_static_first): Remove.
9588 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9589 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9590 GOMP_loop_ull_ordered_dynamic_next,
9591 GOMP_loop_ull_ordered_dynamic_start,
9592 GOMP_loop_ull_ordered_guided_next,
9593 GOMP_loop_ull_ordered_guided_start,
9594 GOMP_loop_ull_ordered_runtime_next,
9595 GOMP_loop_ull_ordered_runtime_start,
9596 GOMP_loop_ull_ordered_static_next,
9597 GOMP_loop_ull_ordered_static_start,
9598 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9599 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9600 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9601 (omp_set_schedule, omp_get_schedule,
9602 omp_get_thread_limit, omp_set_max_active_levels,
9603 omp_get_max_active_levels, omp_get_level,
9604 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9605 omp_set_schedule_, omp_set_schedule_8_,
9606 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9607 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9608 omp_get_max_active_levels_, omp_get_level_,
9609 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9610 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9611 New exports @@OMP_3.0.
9612 * omp.h.in (omp_sched_t): New type.
9613 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9614 omp_set_max_active_levels, omp_get_max_active_levels,
9615 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9616 omp_get_active_level): New prototypes.
9617 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9618 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9619 gomp_thread_limit_var, gomp_remaining_threads_count,
9620 gomp_remaining_threads_lock): New variables.
9621 (parse_spincount): New function.
9622 (initialize_env): Call gomp_init_num_threads unconditionally.
9623 Initialize gomp_available_cpus. Call parse_spincount,
9624 initialize gomp_{,throttled_}spin_count_var
9625 depending on presence and value of OMP_WAIT_POLICY and
9626 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
9627 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9628 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
9629 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
9630 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
9631 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9632 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9633 (gomp_global_icv): New.
9634 (parse_schedule): Use it. Parse "auto".
9635 (omp_set_num_threads): Use gomp_icv.
9636 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9637 Likewise.
9638 (omp_get_max_threads): Move from parallel.c.
9639 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9640 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9641 add ialias.
9642 (parse_stacksize, parse_wait_policy): New functions.
9643 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9644 both wrappers for compatibility and new locks.
9645 (omp_set_schedule, omp_get_schedule,
9646 omp_get_thread_limit, omp_set_max_active_levels,
9647 omp_get_max_active_levels, omp_get_level,
9648 omp_get_ancestor_thread_num, omp_get_team_size,
9649 omp_get_active_level): New ialias_redirect.
9650 (omp_set_schedule_, omp_set_schedule_8_,
9651 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9652 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9653 omp_get_max_active_levels_, omp_get_level_,
9654 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9655 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9656 New functions.
9657 * parallel.c: Include limits.h.
9658 (gomp_resolve_num_threads): Add count argument. Rewritten.
9659 (GOMP_parallel_start): Call gomp_new_team and pass that as last
9660 argument to gomp_team_start. Pass 0 as second argument to
9661 gomp_resolve_num_threads.
9662 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9663 if gomp_thread_limit_var != ULONG_MAX.
9664 (omp_in_parallel): Implement using ts.active_level.
9665 (omp_get_max_threads): Move to env.c.
9666 (omp_get_level, omp_get_ancestor_thread_num,
9667 omp_get_team_size, omp_get_active_level): New functions,
9668 add ialias.
9669 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9670 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
9671 gomp_iter_dynamic_next instead of the _locked variant and don't take
9672 lock around it, otherwise acquire it before calling
9673 gomp_iter_dynamic_next_locked.
9674 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9675 gomp_iter_dynamic_next instead of the _locked variant and don't take
9676 lock around it.
9677 (GOMP_parallel_sections_start): Call gomp_new_team instead of
9678 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
9679 Adjust gomp_team_start caller. Pass count as second argument to
9680 gomp_resolve_num_threads, don't adjust num_threads after the call.
9681 Use gomp_icv.
9682 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9683 ws->chunk_size by incr.
9684 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
9685 code.
9686 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9687 types.
9688 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9689 (omp_check_defines): Check even the compat defines.
9690 * config/linux/ptrlock.c: New file.
9691 * config/linux/ptrlock.h: New file.
9692 * config/linux/wait.h: New file.
9693 * config/posix/ptrlock.c: New file.
9694 * config/posix/ptrlock.h: New file.
9695 * config/linux/bar.h (gomp_team_barrier_wait,
9696 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9697 (gomp_team_barrier_set_task_pending,
9698 gomp_team_barrier_clear_task_pending,
9699 gomp_team_barrier_set_waiting_for_tasks,
9700 gomp_team_barrier_waiting_for_tasks,
9701 gomp_team_barrier_done): New inlines.
9702 (gomp_barrier_t): Rewritten.
9703 (gomp_barrier_state_t): New typedef.
9704 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9705 gomp_barrier_wait_start): Rewritten.
9706 (gomp_barrier_wait_end): Change second argument to
9707 gomp_barrier_state_t.
9708 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9709 inlines.
9710 * config/linux/bar.c: Include wait.h instead of libgomp.h and
9711 futex.h.
9712 (gomp_barrier_wait_end): Rewritten.
9713 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9714 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9715 * config/posix/bar.h (gomp_barrier_t): Add generation field.
9716 (gomp_barrier_state_t): New typedef.
9717 (gomp_team_barrier_wait,
9718 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9719 (gomp_barrier_wait_start): Or all but low 2 bits from generation
9720 into the return value. Return gomp_barrier_state_t.
9721 (gomp_team_barrier_set_task_pending,
9722 gomp_team_barrier_clear_task_pending,
9723 gomp_team_barrier_set_waiting_for_tasks,
9724 gomp_team_barrier_waiting_for_tasks,
9725 gomp_team_barrier_done): New inlines.
9726 (gomp_barrier_wait_end): Change second argument to
9727 gomp_barrier_state_t.
9728 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9729 inlines.
9730 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9731 (gomp_barrier_wait_end): Change second argument to
9732 gomp_barrier_state_t.
9733 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9734 gomp_team_barrier_wake): New functions.
9735 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9736 futex.h.
9737 (gomp_futex_wake, gomp_futex_wait): New variables.
9738 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9739 * config/linux/lock.c: Rewrite to make locks task owned,
9740 for backwards compatibility provide the old entrypoints
9741 if symbol versioning. Include wait.h instead of libgomp.h and
9742 futex.h.
9743 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9744 * config/posix95/lock.c: Rewrite to make locks task owned,
9745 for backwards compatibility provide the old entrypoints
9746 if symbol versioning.
9747 * config/posix/lock.c: Rewrite to make locks task owned,
9748 for backwards compatibility provide the old entrypoints
9749 if symbol versioning.
9750 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9751 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9752 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9753 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9754 (sys_futex0): Return error code.
9755 (futex_wake, futex_wait): If ENOSYS was returned, clear
9756 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9757 (cpu_relax, atomic_write_barrier): New static inlines.
9758 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9759 (futex_wake, futex_wait): If ENOSYS was returned, clear
9760 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9761 (cpu_relax, atomic_write_barrier): New static inlines.
9762 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9763 (sys_futex0): Return error code.
9764 (futex_wake, futex_wait): If ENOSYS was returned, clear
9765 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9766 (cpu_relax, atomic_write_barrier): New static inlines.
9767 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9768 (sys_futex0): Return error code.
9769 (futex_wake, futex_wait): If ENOSYS was returned, clear
9770 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9771 (cpu_relax, atomic_write_barrier): New static inlines.
9772 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9773 (sys_futex0): Return error code.
9774 (futex_wake, futex_wait): If ENOSYS was returned, clear
9775 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9776 (cpu_relax, atomic_write_barrier): New static inlines.
9777 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9778 (sys_futex0): Return error code.
9779 (futex_wake, futex_wait): If ENOSYS was returned, clear
9780 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9781 (cpu_relax, atomic_write_barrier): New static inlines.
9782 * config/linux/sem.c: Include wait.h instead of libgomp.h and
9783 futex.h.
9784 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9785 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9786 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9787 types.
9788 (omp_nest_lock_t): Change owner into void *, add lock field.
9789 * config/posix95/omp-lock.h: Include semaphore.h.
9790 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9791 (omp_lock_t): Use sem_t instead of mutex if semaphores
9792 aren't broken.
9793 (omp_nest_lock_t): Likewise. Change owner to void *.
9794 * config/posix/omp-lock.h: Include semaphore.h.
9795 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9796 (omp_lock_t): Use sem_t instead of mutex if semaphores
9797 aren't broken.
9798 (omp_nest_lock_t): Likewise. Add owner field.
9799
9800 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9801
9802 * testsuite/libgomp.c/collapse-1.c: New test.
9803 * testsuite/libgomp.c/collapse-2.c: New test.
9804 * testsuite/libgomp.c/collapse-3.c: New test.
9805 * testsuite/libgomp.c/icv-1.c: New test.
9806 * testsuite/libgomp.c/icv-2.c: New test.
9807 * testsuite/libgomp.c/lib-2.c: New test.
9808 * testsuite/libgomp.c/lock-1.c: New test.
9809 * testsuite/libgomp.c/lock-2.c: New test.
9810 * testsuite/libgomp.c/lock-3.c: New test.
9811 * testsuite/libgomp.c/loop-4.c: New test.
9812 * testsuite/libgomp.c/loop-5.c: New test.
9813 * testsuite/libgomp.c/loop-6.c: New test.
9814 * testsuite/libgomp.c/loop-7.c: New test.
9815 * testsuite/libgomp.c/loop-8.c: New test.
9816 * testsuite/libgomp.c/loop-9.c: New test.
9817 * testsuite/libgomp.c/nested-3.c: New test.
9818 * testsuite/libgomp.c/nestedfn-6.c: New test.
9819 * testsuite/libgomp.c/sort-1.c: New test.
9820 * testsuite/libgomp.c/task-1.c: New test.
9821 * testsuite/libgomp.c/task-2.c: New test.
9822 * testsuite/libgomp.c/task-3.c: New test.
9823 * testsuite/libgomp.c/task-4.c: New test.
9824 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9825 to C++ testsuite default compiler options.
9826 * testsuite/libgomp.c++/collapse-1.C: New test.
9827 * testsuite/libgomp.c++/collapse-2.C: New test.
9828 * testsuite/libgomp.c++/ctor-10.C: New test.
9829 * testsuite/libgomp.c++/for-1.C: New test.
9830 * testsuite/libgomp.c++/for-2.C: New test.
9831 * testsuite/libgomp.c++/for-3.C: New test.
9832 * testsuite/libgomp.c++/for-4.C: New test.
9833 * testsuite/libgomp.c++/for-5.C: New test.
9834 * testsuite/libgomp.c++/loop-8.C: New test.
9835 * testsuite/libgomp.c++/loop-9.C: New test.
9836 * testsuite/libgomp.c++/loop-10.C: New test.
9837 * testsuite/libgomp.c++/task-1.C: New test.
9838 * testsuite/libgomp.c++/task-2.C: New test.
9839 * testsuite/libgomp.c++/task-3.C: New test.
9840 * testsuite/libgomp.c++/task-4.C: New test.
9841 * testsuite/libgomp.c++/task-5.C: New test.
9842 * testsuite/libgomp.c++/task-6.C: New test.
9843 * testsuite/libgomp.fortran/allocatable1.f90: New test.
9844 * testsuite/libgomp.fortran/allocatable2.f90: New test.
9845 * testsuite/libgomp.fortran/allocatable3.f90: New test.
9846 * testsuite/libgomp.fortran/allocatable4.f90: New test.
9847 * testsuite/libgomp.fortran/collapse1.f90: New test.
9848 * testsuite/libgomp.fortran/collapse2.f90: New test.
9849 * testsuite/libgomp.fortran/collapse3.f90: New test.
9850 * testsuite/libgomp.fortran/collapse4.f90: New test.
9851 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9852 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9853 * testsuite/libgomp.fortran/lib4.f90: New test.
9854 * testsuite/libgomp.fortran/lock-1.f90: New test.
9855 * testsuite/libgomp.fortran/lock-2.f90: New test.
9856 * testsuite/libgomp.fortran/nested1.f90: New test.
9857 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9858 * testsuite/libgomp.fortran/strassen.f90: New test.
9859 * testsuite/libgomp.fortran/tabs1.f90: New test.
9860 * testsuite/libgomp.fortran/tabs2.f: New test.
9861 * testsuite/libgomp.fortran/task1.f90: New test.
9862 * testsuite/libgomp.fortran/task2.f90: New test.
9863 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9864 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9865 * testsuite/libgomp.c/pr26943-2.c: Likewise.
9866 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9867 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9868
9869 2008-05-23 Jakub Jelinek <jakub@redhat.com>
9870
9871 PR c++/36308
9872 * testsuite/libgomp.c++/ctor-11.C: New test.
9873 * testsuite/libgomp.c++/ctor-12.C: New test.
9874
9875 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9876
9877 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9878
9879 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9880
9881 PR middle-end/36106
9882 * testsuite/libgomp.c/atomic-5.c: New test.
9883 * testsuite/libgomp.c/atomic-6.c: New test.
9884 * testsuite/libgomp.c/autopar-1.c: New test.
9885
9886 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9887
9888 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9889 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9890 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9891 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9892 * configure: Regenerate.
9893 * Makefile.in, testsuite/Makefile.in: Likewise.
9894
9895 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9896
9897 PR bootstrap/35457
9898 * aclocal.m4: Regenerate.
9899 * configure: Regenerate.
9900
9901 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9902
9903 PR middle-end/35611
9904 * testsuite/libgomp.c/atomic-4.c: New test.
9905
9906 PR libgomp/35625
9907 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9908 (gomp_iter_guided_next): Likewise.
9909 * testsuite/libgomp.c/pr35625.c: New test.
9910
9911 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9912
9913 * aclocal.m4: Regenerate.
9914 * configure: Likewise.
9915 * Makefile.in: Likewise.
9916 * testsuite/Makefile.in: Likewise.
9917
9918 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9919
9920 PR middle-end/35185
9921 * testsuite/libgomp.c++/pr35185.C: New test.
9922
9923 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9924
9925 PR middle-end/35549
9926 * testsuite/libgomp.c/pr35549.c: New test.
9927
9928 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9929
9930 * testsuite/libgomp.c/atomic-3.c: New test.
9931
9932 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9933
9934 PR fortran/33197
9935 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9936 .F08 file suffixes.
9937
9938 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9939
9940 PR libgomp/33131
9941 * configure.ac: Add ACX_HEADER_STRING.
9942 * env.c: Include strings.h.
9943 * aclocal.m4: Regenerate.
9944 * config.h.in: Regenerate.
9945 * configure: Regenerate.
9946 * Makefile.in: Regenerate.
9947 * testsuite/Makefile.in: Regenerate.
9948
9949 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9950
9951 PR middle-end/35196
9952 * testsuite/libgomp.c/pr35196.c: New test.
9953
9954 PR middle-end/35130
9955 * testsuite/libgomp.fortran/pr35130.f90: New test.
9956 * testsuite/libgomp.c/pr35130.c: New test.
9957
9958 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9959
9960 PR middle-end/33880
9961 * testsuite/libgomp.c/pr33880.c: New test.
9962 * testsuite/libgomp.fortran/pr33880.f90: New test.
9963
9964 2008-01-24 David Edelsohn <edelsohn@gnu.org>
9965
9966 * configure: Regenerate.
9967
9968 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9969
9970 * configure.ac: Move futex checking into ../config/futex.m4.
9971 * configure: Rebuilt.
9972 * aclocal.m4: Rebuilt.
9973 * Makefile.in: Rebuilt.
9974
9975 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9976 2007-10-15 ../config/tls.m4 change.
9977
9978 2007-12-19 Jakub Jelinek <jakub@redhat.com>
9979
9980 PR c++/34513
9981 * testsuite/libgomp.c/pr34513.c: New test.
9982 * testsuite/libgomp.c++/pr34513.C: New test.
9983
9984 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
9985
9986 PR target/32765
9987 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
9988
9989 2007-12-04 Jakub Jelinek <jakub@redhat.com>
9990
9991 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
9992
9993 2007-12-03 Jakub Jelinek <jakub@redhat.com>
9994
9995 * testsuite/libgomp.c/private-1.c: New test.
9996
9997 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
9998 Paolo Bonzini <bonzini@gnu.org>
9999
10000 * Makefile.am: Use space as vpath separator. Use 'vpath %'
10001 instead of 'VPATH ='.
10002 * Makefile.in: Regenerate.
10003
10004 2007-11-23 Matthias Klose <doko@ubuntu.com>
10005
10006 * configure.ac: Adjust makeinfo version check.
10007 * configure: Regenerate.
10008
10009 2007-11-10 Jakub Jelinek <jakub@redhat.com>
10010
10011 PR fortran/34020
10012 * testsuite/libgomp.fortran/pr34020.f90: New test.
10013
10014 2007-11-06 Jakub Jelinek <jakub@redhat.com>
10015
10016 PR c++/33894
10017 * testsuite/libgomp.c++/atomic-1.C: New test.
10018
10019 2007-10-25 Jakub Jelinek <jakub@redhat.com>
10020
10021 PR libgomp/33275
10022 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
10023 Make x and y integers rather than (implicit) reals. Add private (j)
10024 clause to the last omp parallel.
10025
10026 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
10027
10028 * configure: Regenerate following changes to ../config/tls.m4.
10029
10030 2007-09-28 Jakub Jelinek <jakub@redhat.com>
10031
10032 * testsuite/libgomp.fortran/stack.f90: New test.
10033
10034 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
10035
10036 * config/mingw32/proc.c: New file.
10037
10038 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
10039
10040 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
10041 (main): Use __get_cpuid to get i386 target fetaures.
10042 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
10043 (main): Use __get_cpuid to get x86_64 target fetaures.
10044
10045 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
10046
10047 PR target/32765
10048 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
10049 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
10050
10051 2007-07-12 Jakub Jelinek <jakub@redhat.com>
10052
10053 PR fortran/32550
10054 * testsuite/libgomp.fortran/pr32550.f90: New test.
10055 * testsuite/libgomp.fortran/crayptr2.f90: New test.
10056
10057 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
10058
10059 * aclocal.m4: Regenerated.
10060
10061 2007-07-05 Tobias Burnus <burnus@net-b.de>
10062
10063 PR fortran/32359
10064 * testsuite/libgomp.fortran/pr32359.f90: New.
10065
10066 2007-07-02 Jakub Jelinek <jakub@redhat.com>
10067
10068 PR libgomp/32468
10069 * sections.c (GOMP_parallel_sections_start): Only decrease
10070 number of threads to COUNT if dyn_var is true.
10071 * testsuite/libgomp.c/pr32468.c: New test.
10072
10073 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10074
10075 PR libgomp/26308
10076 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
10077
10078 2007-06-21 Jakub Jelinek <jakub@redhat.com>
10079
10080 PR middle-end/32362
10081 * testsuite/libgomp.c/pr32362-1.c: New test.
10082 * testsuite/libgomp.c/pr32362-2.c: New test.
10083 * testsuite/libgomp.c/pr32362-3.c: New test.
10084
10085 2007-06-07 Jakub Jelinek <jakub@redhat.com>
10086
10087 * team.c (gomp_team_start): Fix setting up thread_attr
10088 stack size.
10089
10090 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
10091
10092 * configure: Regenerate.
10093
10094 2007-05-23 Steve Ellcey <sje@cup.hp.com>
10095
10096 * Makefile.in: Regenerate.
10097 * configure: Regenerate.
10098 * aclocal.m4: Regenerate.
10099 * testsuite/Makefile.in: Regenerate.
10100
10101 2007-05-04 Jakub Jelinek <jakub@redhat.com>
10102
10103 * config/linux/proc.c: New file.
10104
10105 PR libgomp/28482
10106 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
10107
10108 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
10109
10110 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
10111
10112 2007-04-16 Matthias Klose <doko@debian.org>
10113
10114 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
10115 flags if not building with -m64.
10116 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
10117 flag for i?86-*-* targets, if current target matches -m64.
10118
10119 2007-04-14 Steve Ellcey <sje@cup.hp.com>
10120
10121 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
10122 * Makefile.in: Regenerate.
10123
10124 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10125
10126 PR testsuite/31369
10127 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
10128 ld_library_path.
10129 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10130
10131 2007-04-04 Jakub Jelinek <jakub@redhat.com>
10132
10133 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
10134 decls.
10135 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
10136 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
10137 (parse_affinity): New function.
10138 (initialize_env): Call it and gomp_init_affinity.
10139 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
10140 create new pthread_attr_t and call gomp_init_thread_affinity
10141 on it for each thread before passing the attribute to pthread_create.
10142 * config/linux/affinity.c: New file.
10143 * config/posix/affinity.c: New file.
10144 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
10145 * configure: Rebuilt.
10146 * config.h.in: Rebuilt.
10147 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
10148 * Makefile.in: Rebuilt.
10149
10150 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
10151
10152 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
10153 *-*-darwin*.
10154 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
10155 and use it if found.
10156
10157 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
10158
10159 * testsuite/config/default.exp: New file.
10160 * testsuite/lib/libgomp.exp: New file.
10161 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
10162 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
10163 load_lib *, load_gcc_lib *): Move to libgomp.exp.
10164 (libgomp_load): Remove.
10165 * testsuite/lib/libgomp.exp (libgomp_init): Compute
10166 always_ld_library_path, not ld_library_path. Set additional_flags
10167 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
10168 (target_compile): Do not call libgomp_init. Append lang_library_path
10169 and lang_link_flags to options.
10170 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
10171 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
10172 here.
10173 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
10174 always_ld_library_path. Set LD_LIBRARY_PATH here.
10175 * testsuite/libgomp.fortran/fortran.exp: Ditto.
10176 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
10177 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
10178 CX8 flag.
10179 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
10180 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
10181 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
10182 * testsuite/libgomp.c/pr29947-1.c: Ditto.
10183 * testsuite/libgomp.c/atomic-10.c: Ditto.
10184
10185 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10186
10187 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10188 dg-final cleanup-modules line.
10189 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10190 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10191 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10192 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10193 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10194 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10195 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10196
10197 2007-03-18 Andreas Schwab <schwab@suse.de>
10198
10199 * acinclude.m4: Adjust regular expression for ld version
10200 extraction.
10201 * configure: Regenerate.
10202
10203 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10204
10205 * Makefile.am: Add install-pdf target as copied from
10206 automake v1.10 rules.
10207 * Makefile.in: Regenerate
10208
10209 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10210
10211 PR libgomp/28486
10212 * configure: Regenerate.
10213
10214 PR c++/30703
10215 * testsuite/libgomp.c++/pr30703.C: New test.
10216
10217 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10218
10219 Revert:
10220 2006-07-05 Eric Christopher <echristo@apple.com>
10221 * configure.ac: Depend addition of -pthread on host OS.
10222 * configure: Regenerate.
10223
10224 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10225
10226 * libgomp.texi: Fix spacing after abbreviations.
10227
10228 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
10229
10230 PR libgomp/30546
10231 * configure.ac: Add check for makeinfo
10232 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10233 if an appropiate version of makeinfo is found.
10234 * aclocal.m4: Regenerated.
10235 * configure: Regenerated.
10236 * Makefile.in: Regenerated.
10237 * testsuite/Makefile.in: Regenerated.
10238
10239 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
10240
10241 PR libgomp/30540
10242 * libgomp.texi: More about implementation-dependent settings.
10243
10244 2007-01-26 Tobias Burnus <burnus@net-b.de>
10245
10246 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10247
10248 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10249
10250 PR middle-end/30494
10251 * testsuite/libgomp.c/pr30494.c: New test.
10252
10253 2007-01-15 Tom Tromey <tromey@redhat.com>
10254
10255 * configure: Rebuilt.
10256 * configure.ac: Fixed comment.
10257
10258 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
10259
10260 * libgomp.texi: Document implementation specific default values of
10261 environment variables.
10262
10263 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
10264
10265 PR libgomp/28209
10266 * libgomp.texi: New file.
10267 * configure.ac: Add --enable-generated-files-in-srcdir option.
10268 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10269 files to srcdir.
10270 * Makefile.in: Regenerated.
10271 * config.h.in: Regenerated.
10272 * testsuite/Makefile.in: Regenerated.
10273 * NOTES: Removed.
10274
10275 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
10276
10277 PR libgomp/29949
10278 * env.c (omp_set_num_threads): Set illegal thread count to 1.
10279
10280 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10281
10282 * configure: Regenerate.
10283
10284 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10285
10286 PR libgomp/29947
10287 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
10288 start if there shouldn't be any loop iterations.
10289 (gomp_loop_ordered_static_start): Remove start == end test.
10290 * testsuite/libgomp.c/pr29947-1.c: New test.
10291 * testsuite/libgomp.c/pr29947-2.c: New test.
10292
10293 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10294
10295 * configure.tgt: Force initial-exec TLS model on Linux only.
10296
10297 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
10298
10299 * configure: Regenerated.
10300
10301 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
10302
10303 * env.c (parse_schedule): Reject out of range values.
10304 (parse_unsigned_long): Reject out of range, negative or zero values.
10305
10306 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10307
10308 PR fortran/29629
10309 * testsuite/libgomp.fortran/pr29629.f90: New test.
10310
10311 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10312
10313 PR libgomp/29494
10314 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10315 * config/posix95: New directory.
10316 * config/posix95/omp-lock.h: New file.
10317 * config/posix95/lock.c: Likewise.
10318
10319 2006-10-14 Geoffrey Keating <geoffk@apple.com>
10320
10321 * aclocal.m4: Regenerate.
10322 * configure: Regenerate.
10323
10324 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10325
10326 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10327 '<' to '<='.
10328
10329 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10330
10331 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10332 test.
10333 * configure: Regenerate.
10334 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10335
10336 2006-09-26 Jakub Jelinek <jakub@redhat.com>
10337
10338 PR middle-end/25261
10339 PR middle-end/28790
10340 * testsuite/libgomp.c/nestedfn-4.c: New test.
10341 * testsuite/libgomp.c/nestedfn-5.c: New test.
10342 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10343
10344 PR fortran/29097
10345 * testsuite/libgomp.fortran/condinc1.f: New test.
10346 * testsuite/libgomp.fortran/condinc2.f: New test.
10347 * testsuite/libgomp.fortran/condinc3.f90: New test.
10348 * testsuite/libgomp.fortran/condinc4.f90: New test.
10349 * testsuite/libgomp.fortran/condinc1.inc: New file.
10350
10351 2006-09-18 Tom Tromey <tromey@redhat.com>
10352
10353 * configure: Rebuilt.
10354
10355 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
10356
10357 PR c/28768
10358 PR preprocessor/14634
10359 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10360 to AC_DEFINE.
10361 * configure: Regenerate.
10362
10363 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
10364
10365 * testsuite/libgomp.fortran/reduction3.f90: Change
10366 -2147483648 to -huge(i)-1 to avoid overflow.
10367 * testsuite/libgomp.fortran/reduction4.f90: Change
10368 Z'ffffffff' to not(0) to avoid overflow.
10369
10370 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
10371
10372 PR libgomp/25938
10373 * Makefile.am (libsubincludedir): New.
10374 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
10375 * Makefile.in: Regenerate.
10376
10377 2006-08-17 Jakub Jelinek <jakub@redhat.com>
10378
10379 PR libgomp/28725
10380 * env.c: Include ctype.h.
10381 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
10382 leading and/or trailing whitespace and compare strings case
10383 insensitively.
10384
10385 2006-07-16 Jakub Jelinek <jakub@redhat.com>
10386
10387 PR fortran/28390
10388 * testsuite/libgomp.fortran/pr28390.f: New test.
10389
10390 2006-07-05 Eric Christopher <echristo@apple.com>
10391
10392 * configure.ac: Depend addition of -pthread on host OS.
10393 * configure: Regenerate.
10394
10395 2006-06-21 Jakub Jelinek <jakub@redhat.com>
10396
10397 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
10398 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
10399 defined.
10400
10401 2006-06-20 Jakub Jelinek <jakub@redhat.com>
10402
10403 PR libgomp/26175
10404 PR libgomp/26477
10405 * configure.ac: If neither --enable-linux-futex nor
10406 --disable-linux-futex is passed, determine the default by checking
10407 for compiling and/or running against NPTL. With --enable-linux-futex,
10408 check if SYS_gettid and SYS_futex are defined.
10409 * configure: Rebuilt.
10410
10411 2006-06-14 Richard Henderson <rth@redhat.com>
10412
10413 PR libgomp/28008
10414 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
10415 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
10416
10417 2006-06-09 Richard Henderson <rth@redhat.com>
10418
10419 * env.c (gomp_nthreads_var): Change to unsigned long.
10420 (gomp_run_sched_chunk): Likewise.
10421 (parse_unsigned_long): Rename from parse_num_threads and generalize.
10422 (initialize_env): Initialize gomp_thread_attr.
10423 * libgomp.h (gomp_nthreads_var): Update decl.
10424 (gomp_run_sched_chunk): Likewise.
10425 (gomp_thread_attr): Declare.
10426 * team.c (gomp_thread_attr): Export.
10427 (initialize_team): Don't initialize it.
10428
10429 2006-06-09 Jakub Jelinek <jakub@redhat.com>
10430
10431 PR fortran/27916
10432 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
10433 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
10434
10435 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10436
10437 * config/mingw32/time.c: New file.
10438 * configure.tgt: Use it.
10439
10440 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
10441
10442 * Makefile.am: Add install-html target. Add install-html to .PHONY
10443 * Makefile.in: Regenerate.
10444
10445 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10446
10447 PR libgomp/27612
10448 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
10449 * testsuite/libgomp.c/critical-1.c: Likewise.
10450 * testsuite/libgomp.c/loop-1.c: Likewise.
10451 * testsuite/libgomp.c/loop-2.c: Likewise.
10452 * testsuite/libgomp.c/single-1.c: Likewise.
10453 * testsuite/libgomp.c/ordered-1.c: Likewise.
10454 * testsuite/libgomp.c/ordered-2.c: Likewise.
10455
10456 2006-05-15 Jakub Jelinek <jakub@redhat.com>
10457
10458 PR middle-end/27416
10459 * libgomp.fortran/pr27416-1.f90: New test.
10460
10461 2006-05-03 Jakub Jelinek <jakub@redhat.com>
10462
10463 PR fortran/27395
10464 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
10465 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
10466
10467 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10468
10469 PR c++/26943
10470 * testsuite/libgomp.c/pr26943-1.c: New test.
10471 * testsuite/libgomp.c/pr26943-2.c: New test.
10472 * testsuite/libgomp.c/pr26943-3.c: New test.
10473 * testsuite/libgomp.c/pr26943-4.c: New test.
10474 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
10475 * testsuite/libgomp.c++/pr26943.C: New test.
10476
10477 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10478
10479 PR middle-end/27337
10480 * testsuite/libgomp.c++/pr27337.C: New test.
10481
10482 2006-04-26 Jakub Jelinek <jakub@redhat.com>
10483
10484 PR c/26171
10485 * testsuite/libgomp.c/pr26171.c: New test.
10486
10487 2006-04-25 Richard Henderson <rth@redhat.com>
10488
10489 PR libgomp/25865
10490 * configure.ac: Use GCC_CHECK_TLS.
10491 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10492 * Makefile.in, aclocal.m4, configure: Regenerate.
10493
10494 2006-04-10 Matthias Klose <doko@debian.org>
10495
10496 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10497 directory names containing underscores.
10498
10499 2006-03-21 Jakub Jelinek <jakub@redhat.com>
10500
10501 PR c++/26691
10502 * testsuite/libgomp.c++/pr26691.C: New test.
10503
10504 2006-03-13 Jakub Jelinek <jakub@redhat.com>
10505
10506 * testsuite/libgomp.fortran/retval2.f90: New test.
10507
10508 2006-03-09 Diego Novillo <dnovillo@redhat.com>
10509
10510 * testsuite/libgomp.c++: New directory.
10511
10512 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
10513
10514 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10515 * config/posix/sem.c: Implement the above.
10516
10517 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
10518
10519 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10520 define HAVE_BROKEN_POSIX_SEMAPHORES.
10521 * configure: Rebuilt.
10522 * config.h.in: Rebuilt.
10523
10524 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10525
10526 PR bootstrap/26161
10527 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10528 for the other pthread check.
10529 * configure: Regenerate.
10530 * config.h.in: Regenerate.
10531
10532 2006-02-15 Jakub Jelinek <jakub@redhat.com>
10533
10534 PR libgomp/25938
10535 PR libgomp/25984
10536 * Makefile.am (fincludedir): New variable.
10537 (nodist_include_HEADERS): Remove Fortran files.
10538 (nodist_finclude_HEADERS): New variable.
10539 * Makefile.in: Regenerated.
10540
10541 2006-02-13 Jakub Jelinek <jakub@redhat.com>
10542
10543 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10544 Remove tests for returning assumed character length arrays.
10545
10546 2006-02-12 Roger Sayle <roger@eyesopen.com>
10547 John David Anglin <dave@hiauly1.hia.nrc.ca>
10548
10549 PR libgomp/25936
10550 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10551
10552 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10553
10554 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10555
10556 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10557
10558 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10559 part of LD_LIBRARY_PATH manually.
10560
10561 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
10562
10563 PR libgomp/25852
10564 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10565 libgomp_init.
10566
10567 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
10568
10569 PR libgomp/25884
10570 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10571 * configure.ac (PERL): Don't set.
10572 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10573 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10574 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10575 * omp.h.in: Wrap the new configure substitutions with @ characters.
10576 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10577 * aclocal.m4, configure, Makefile.in: Regenerate.
10578 * mkomp_h.pl: Delete.
10579
10580 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
10581
10582 PR libgomp/25259
10583 * configure.ac: Use GCC_HEADER_STDINT.
10584 * libgomp.h: Include gstdint.h.
10585 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10586 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10587
10588 2006-01-24 Richard Henderson <rth@redhat.com>
10589
10590 PR libgomp/25942
10591 * configure.ac: Add AM_MAINTAINER_MODE.
10592 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10593
10594 2006-01-24 Diego Novillo <dnovillo@redhat.com>
10595
10596 * Makefile.in: Regenerate.
10597 * testsuite/Makefile.in: Regenerate.
10598 * aclocal.m4: Regenerate.
10599
10600 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
10601
10602 * config/posix/proc.c: Conditional include of sys/loadavg.h for
10603 Solaris.
10604 * configure.ac: Add check for loadavg.h.
10605 (link_gomp): Adjust comment.
10606 * configure: Regenerate.
10607 * config.h.in: Regenerate.
10608
10609 2006-01-21 Steve Ellcey <sje@cup.hp.com>
10610
10611 PR libgomp/25877
10612 * configure.ac: Remove check for alloca.h.
10613 * configure: Regenerate.
10614 * config.h.in: Regenerate.
10615 * libgomp.h: define gomp_alloca to be __builtin_alloca.
10616 * team.c: Remove use of alloca.h.
10617 Call gomp_alloca instead of alloca.
10618
10619 2006-01-20 Steve Ellcey <sje@cup.hp.com>
10620
10621 PR libgomp/25877
10622 * team.c: Add include of alloca.h.
10623 * configure.ac: Add check for alloca.h.
10624 * configure: Regenerate.
10625 * config.h.in: Regenerate.
10626
10627 2006-01-17 Jakub Jelinek <jakub@redhat.com>
10628
10629 PR fortran/25219
10630 * testsuite/libgomp.fortran/pr25219.f90: New test.
10631
10632 2005-12-05 Uros Bizjak <uros@kss-loka.si>
10633
10634 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10635 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10636 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10637 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10638 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10639 testsuite/libgomp.fortran/threadprivate1.f90,
10640 testsuite/libgomp.fortran/threadprivate2.f90,
10641 testsuite/libgomp.fortran/threadprivate3.f90,
10642 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10643 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10644 testsuite/libgomp.fortran/omp_parse3.f90: Change required
10645 effective-target to TLS runtime.
10646
10647 * testsuite/libgomp.fortran/pr25162.f: Require
10648 effective-target TLS runtime.
10649
10650 2005-12-01 Jakub Jelinek <jakub@redhat.com>
10651
10652 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10653 * testsuite/libgomp.c/nestedfn-3.c: New test.
10654
10655 2005-11-30 Jakub Jelinek <jakub@redhat.com>
10656
10657 PR fortran/25162
10658 * testsuite/libgomp.fortran/pr25162.f: New test.
10659
10660 2005-11-28 Jakub Jelinek <jakub@redhat.com>
10661
10662 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10663 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10664
10665 2005-11-25 Jakub Jelinek <jakub@redhat.com>
10666
10667 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10668 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10669 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10670 single.c, team.c, work.c, config/linux/alpha/futex.h,
10671 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10672 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10673 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10674 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10675 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10676 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10677 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10678 FSF address.
10679
10680 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10681
10682 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10683 to nodist_noinst_HEADERS.
10684 * Makefile.in: Rebuilt.
10685
10686 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10687 add integer count field.
10688 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10689 omp_nest_lock_t type change.
10690 (omp_init_nest_lock): Likewise. Initialize count to 0.
10691 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10692 Increment count.
10693 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10694 Decrement count.
10695 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10696 Increment count if successful and return the new nesting level.
10697 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10698 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10699 * testsuite/libgomp.c/lib-1.c: New test.
10700 * testsuite/libgomp.fortran/lib1.f90: New test.
10701 * testsuite/libgomp.fortran/lib2.f: New test.
10702 * testsuite/libgomp.fortran/lib3.f: New test.
10703
10704 2005-11-17 Richard Henderson <rth@redhat.com>
10705
10706 PR 24845
10707 * Makefile.am (nodist_toolexeclib_HEADERS): New.
10708 * configure.ac (link_gomp): New. Substitute it.
10709 (AC_CONFIG_FILES): Add libgomp.spec.
10710 * libgomp.spec.in: New file.
10711 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10712 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10713
10714 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10715
10716 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10717 reduction(-:var) behaving the same as reduction(+:var).
10718 * testsuite/libgomp.c/reduction-4.c: New test.
10719
10720 2005-11-15 Uros Bizjak <uros@kss-loka.si>
10721
10722 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10723 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10724 testsuite/libgomp.c/copyin-3.c,
10725 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10726 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10727 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10728 testsuite/libgomp.c++/pr24455.C,
10729 testsuite/libgomp.fortran/threadprivate1.f90,
10730 testsuite/libgomp.fortran/threadprivate2.f90,
10731 testsuite/libgomp.fortran/threadprivate3.f90,
10732 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10733 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10734 testsuite/libgomp.fortran/omp_parse3.f90: Require
10735 effective-target TLS.
10736
10737 2005-11-14 Diego Novillo <dnovillo@redhat.com>
10738
10739 * HEADER: Remove.
10740
10741 2005-11-13 Jakub Jelinek <jakub@redhat.com>
10742
10743 PR libgomp/24797
10744 * team.c (initialize_team): Pass NULL rather than free as
10745 pthread_key_create destructor. Initialize thread specific data
10746 pointer in initial thread to a static local variable rather than
10747 malloced memory.
10748
10749 2005-11-11 Uros Bizjak <uros@kss-loka.si>
10750
10751 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10752 its location to ld_library_path.
10753
10754 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10755
10756 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10757
10758 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10759
10760 * testsuite/libgomp.c: Rename from libgomp.dg.
10761
10762 2005-11-09 Diego Novillo <dnovillo@redhat.com>
10763
10764 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10765 threadprivate variable 'i'.
10766
10767 2005-11-09 Jakub Jelinek <jakub@redhat.com>
10768
10769 * config/linux/s390/futex.h: New file.
10770 * configure.tgt: Use it.
10771
10772 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10773 before the parallel.
10774
10775 2005-11-08 Jakub Jelinek <jakub@redhat.com>
10776
10777 PR c++/24734
10778 * testsuite/libgomp.c++/master-1.C: New test.
10779
10780 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10781
10782 * testsuite/libgomp.dg/copyin-3.c: New test.
10783
10784 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10785
10786 * testsuite/libgomp.fortran/retval1.f90: New test.
10787 * testsuite/libgomp.fortran/vla7.f90: New test.
10788
10789 2005-11-06 Jakub Jelinek <jakub@redhat.com>
10790
10791 * testsuite/libgomp.fortran/vla2.f90: New test.
10792 * testsuite/libgomp.fortran/vla3.f90: New test.
10793 * testsuite/libgomp.fortran/vla4.f90: New test.
10794 * testsuite/libgomp.fortran/vla5.f90: New test.
10795 * testsuite/libgomp.fortran/vla6.f90: New test.
10796
10797 2005-11-01 Jakub Jelinek <jakub@redhat.com>
10798
10799 * config/linux/sparc/futex.h: New file.
10800 * configure.tgt: Use it.
10801 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10802
10803 * critical.c: Include stdlib.h.
10804 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10805 ignoring return value.
10806 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10807 LIBGOMP_CHECK_SYNC_BUILTINS check.
10808 * configure: Rebuilt.
10809
10810 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10811
10812 * testsuite/libgomp.fortran/vla1.f90: New test.
10813
10814 2005-10-31 Richard Henderson <rth@redhat.com>
10815
10816 * testsuite/libgomp.fortran/character2.f90: Fix race condition
10817 setting 's' in different threads.
10818
10819 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10820
10821 * libgomp.h (attribute_hidden, ialias): Define.
10822 * config/posix/proc.c (omp_get_num_procs): Add ialias.
10823 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10824 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10825 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10826 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10827 omp_test_lock, omp_test_nest_lock): Likewise.
10828 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10829 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10830 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10831 omp_test_lock, omp_test_nest_lock): Likewise.
10832 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10833 omp_get_dynamic, omp_get_nested): Likewise.
10834 * parallel.c (omp_get_num_threads, omp_get_max_threads,
10835 omp_get_thread_num, omp_in_parallel): Likewise.
10836 * fortran.c (ialias_redirect): Define.
10837 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10838 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10839 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10840 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10841 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10842 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10843 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10844 omp_get_wtime): Add ialias_redirect.
10845
10846 2005-10-30 Jakub Jelinek <jakub@redhat.com>
10847
10848 * fortran.c: Include stdlib.h.
10849
10850 2005-10-29 Jakub Jelinek <jakub@redhat.com>
10851
10852 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10853 * Makefile.in: Regenerated.
10854
10855 2005-10-28 Jakub Jelinek <jakub@redhat.com>
10856
10857 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10858 * libgomp_f.h.in (omp_check_defines): New function.
10859 * env.c: Include libgomp_f.h.
10860 (initialize_env): Call omp_check_defines.
10861
10862 * testsuite/libgomp.dg/copyin-2.c: New test.
10863 * testsuite/libgomp.c++/copyin-2.C: New test.
10864 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10865
10866 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10867 * testsuite/libgomp.fortran/sharing2.f90: New test.
10868
10869 * testsuite/libgomp.dg/copyin-1.c: New test.
10870 * testsuite/libgomp.c++/copyin-1.C: New test.
10871
10872 2005-10-26 Jakub Jelinek <jakub@redhat.com>
10873
10874 * testsuite/libgomp.fortran/crayptr1.f90: New test.
10875
10876 * testsuite/libgomp.fortran/workshare1.f90: New test.
10877
10878 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10879 only test.
10880 * libgomp.fortran/sharing1.f90: New test.
10881
10882 2005-10-24 Jakub Jelinek <jakub@redhat.com>
10883
10884 PR c++/24502
10885 * testsuite/libgomp.c++/loop-7.C: New test.
10886
10887 * testsuite/libgomp.dg/nestedfn-2.c: New test.
10888
10889 * testsuite/libgomp.dg/nestedfn-1.c: New test.
10890 * testsuite/libgomp.fortran/reduction6.f90: New test.
10891 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10892
10893 2005-10-23 Richard Henderson <rth@redhat.com>
10894
10895 * testsuite/libgomp.c++/ctor-1.C: New.
10896 * testsuite/libgomp.c++/ctor-2.C: New.
10897 * testsuite/libgomp.c++/ctor-3.C: New.
10898 * testsuite/libgomp.c++/ctor-4.C: New.
10899 * testsuite/libgomp.c++/ctor-5.C: New.
10900 * testsuite/libgomp.c++/ctor-6.C: New.
10901 * testsuite/libgomp.c++/ctor-7.C: New.
10902 * testsuite/libgomp.c++/ctor-8.C: New.
10903 * testsuite/libgomp.c++/ctor-9.C: New.
10904
10905 2005-10-21 Diego Novillo <dnovillo@redhat.com>
10906
10907 PR 24455
10908 * testsuite/libgomp.c++/pr24455-1.C: New test.
10909 * testsuite/libgomp.c++/pr24455.C: New test.
10910 * testsuite/libgomp.dg/pr24455-1.c: New test.
10911 * testsuite/libgomp.dg/pr24455.c: New test.
10912
10913 2005-10-20 Richard Henderson <rth@redhat.com>
10914
10915 * testsuite/libgomp.c++/loop-6.C: New.
10916 * testsuite/libgomp.dg/loop-3.c: New.
10917
10918 2005-10-20 Jakub Jelinek <jakub@redhat.com>
10919
10920 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10921 explicitly private.
10922 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10923 explicitly shared.
10924
10925 2005-10-19 Diego Novillo <dnovillo@redhat.com>
10926
10927 * testsuite/libgomp.fortran/jacobi.f: New test.
10928
10929 2005-10-19 Richard Henderson <rth@redhat.com>
10930
10931 * configure.tgt (i?86-linux): Default to with_arch instead of
10932 CFLAGS. Add -mtune to match target_cpu.
10933 (x86_64-linux): Tune to i686.
10934
10935 * fortran.c (omp_test_nest_lock_): Fix typo.
10936
10937 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10938
10939 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10940 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10941 * testsuite/libgomp.dg/ordered-3.c: New test.
10942
10943 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10944 Remove volatile keyword.
10945
10946 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10947 in COMMON block to avoid warnings on 64-bit targets.
10948
10949 2005-10-18 Diego Novillo <dnovillo@redhat.com>
10950
10951 * testsuite/libgomp.dg/shared-3.c: New test.
10952
10953 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10954
10955 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10956 * testsuite/libgomp.fortran/reduction5.f90: New test.
10957
10958 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10959
10960 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10961 dg-options.
10962 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
10963 flush loop now that __sync_synchronize has proper memory barrier.
10964 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10965 Add -ffixed-form to dg-options.
10966
10967 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10968
10969 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10970 from subdirectories.
10971 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10972 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10973 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10974 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10975 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10976 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10977 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10978 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10979 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10980 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10981 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10982 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10983 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10984 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10985 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10986 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10987 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
10988 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
10989 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
10990 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
10991 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
10992 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
10993 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
10994 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
10995 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
10996
10997 2005-10-17 Jakub Jelinek <jakub@redhat.com>
10998
10999 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
11000 lang_library_path exists. Use find instead of glob to gather tests.
11001 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
11002
11003 2005-10-17 Diego Novillo <dnovillo@redhat.com>
11004
11005 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
11006 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
11007 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
11008 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
11009 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
11010 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
11011 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
11012 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
11013 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
11014 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
11015 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
11016 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
11017 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
11018
11019 2005-10-15 Jakub Jelinek <jakub@redhat.com>
11020
11021 * testsuite/libgomp.dg/vla-1.c: New test.
11022
11023 * testsuite/libgomp.fortran/reference2.f90: New test.
11024
11025 * testsuite/libgomp.fortran/character2.f90: Remove explicit
11026 declaration of omp_get_thread_num.
11027 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
11028 use omp_lib.
11029
11030 * testsuite/libgomp.fortran/reduction1.f90: New test.
11031 * testsuite/libgomp.fortran/reduction2.f90: New test.
11032 * testsuite/libgomp.fortran/reduction3.f90: New test.
11033 * testsuite/libgomp.fortran/reduction4.f90: New test.
11034
11035 2005-10-13 Richard Henderson <rth@redhat.com>
11036
11037 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
11038 * Makefile.in: Regenerate.
11039 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
11040 * libgomp.h: Include bar.h.
11041 (struct gomp_barrier): Remove.
11042 (struct gomp_team): Add barrier. Replace master_barrier with
11043 master_release. Replace threads with ordered_release.
11044 (struct gomp_thread): Replace barrier with release.
11045 * ordered.c (gomp_ordered_first): Update for ordered_release change.
11046 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
11047 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
11048 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
11049 (GOMP_single_copy_end): Likewise.
11050 * team.c (gomp_threads_dock): New.
11051 (gomp_barrier_init, gomp_barrier_destroy): Remove.
11052 (gomp_thread_start): Use gomp_barrier_wait.
11053 (new_team, free_team): Update for gomp_team changes.
11054 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
11055 (gomp_team_end): Use gomp_barrier_wait.
11056 (initialize_team): Update for gomp_thread changes.
11057 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
11058 (gomp_work_share_end_nowait): Use atomic ops when available.
11059 * config/linux/bar.c, config/linux/bar.h: New files.
11060 * config/posix/bar.c, config/posix/bar.h: New files.
11061
11062 2005-10-13 Jakub Jelinek <jakub@redhat.com>
11063
11064 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
11065 * testsuite/libgomp.dg/single-2.c: New test.
11066
11067 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
11068 lang_link_flags): Unset, so that they aren't inherited from previously
11069 sourced *.exp.
11070
11071 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
11072
11073 2005-10-12 Richard Henderson <rth@redhat.com>
11074
11075 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
11076 (libgomp_init): Use lang_test_file, lang_library_path, and
11077 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
11078
11079 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
11080 (lang_test_file, lang_link_flags): New.
11081 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
11082
11083 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
11084 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
11085 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
11086 testsuite/libgomp.c++/parallel-1.C,
11087 testsuite/libgomp.c++/reduction-1.C,
11088 testsuite/libgomp.c++/reduction-2.C,
11089 testsuite/libgomp.c++/reduction-3.C,
11090 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
11091 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
11092 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
11093 New files, largely cribbed from the C testsuite.
11094
11095 2005-10-12 Jakub Jelinek <jakub@redhat.com>
11096
11097 * testsuite/libgomp.fortran/character1.f90: New test.
11098 * testsuite/libgomp.fortran/character2.f90: New test.
11099
11100 * testsuite/libgomp.dg/nested-1.c: New test.
11101 * testsuite/libgomp.dg/nested-2.c: New test.
11102 * testsuite/libgomp.fortran/do1.f90: New test.
11103 * testsuite/libgomp.fortran/do2.f90: New test.
11104
11105 * testsuite/libgomp.fortran/reference1.f90: New test.
11106
11107 2005-10-11 Jakub Jelinek <jakub@redhat.com>
11108
11109 * testsuite/libgomp.dg/reduction-1.c: New test.
11110 * testsuite/libgomp.dg/reduction-2.c: New test.
11111 * testsuite/libgomp.dg/reduction-3.c: New test.
11112
11113 2005-10-10 Jakub Jelinek <jakub@redhat.com>
11114
11115 * testsuite/libgomp.dg/atomic-1.c: New test.
11116 * testsuite/libgomp.dg/atomic-2.c: New test.
11117
11118 2005-10-09 Richard Henderson <rth@redhat.com>
11119
11120 * critical.c (atomic_lock): New.
11121 (initialize_critical): Initialize it.
11122 (GOMP_atomic_start, GOMP_atomic_end): New.
11123 * libgomp.map: Export them.
11124 * libgomp_g.h: Declare them.
11125
11126 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
11127
11128 2005-10-02 Richard Henderson <rth@redhat.com>
11129
11130 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
11131 to XCFLAGS instead of CFLAGS.
11132
11133 2005-09-30 Richard Henderson <rth@redhat.com>
11134
11135 * configure.ac: Determine whether -pthread or -lpthread is needed.
11136 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
11137 * Makefine.in, configure: Rebuild.
11138
11139 2005-09-28 Richard Henderson <rth@redhat.com>
11140
11141 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
11142 * testsuite/libgomp.dg/omp-single-3.c: New test.
11143
11144 2005-09-28 Diego Novillo <dnovillo@redhat.com>
11145
11146 * testsuite/libgomp.dg/omp-single-2.c: New test.
11147 * testsuite/libgomp.dg/shared-2.c: Fix return code.
11148
11149 2005-09-27 Richard Henderson <rth@redhat.com>
11150
11151 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
11152 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
11153
11154 2005-09-27 Jakub Jelinek <jakub@redhat.com>
11155
11156 * testsuite/libgomp.dg/omp-loop03.c: New test.
11157
11158 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11159
11160 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
11161
11162 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11163
11164 * testsuite/libgomp.dg/omp-single-1.c: New test.
11165 * testsuite/libgomp.dg/shared-1.c: Return 0.
11166 Add prototype for abort.
11167 * testsuite/libgomp.dg/shared-2.c: Likewise.
11168
11169 2005-09-26 Jakub Jelinek <jakub@redhat.com>
11170
11171 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
11172 constructs.
11173
11174 2005-09-26 Diego Novillo <dnovillo@redhat.com>
11175
11176 * testsuite/libgomp.dg/shared-1.c: New test.
11177 * testsuite/libgomp.dg/shared-2.c: New test.
11178
11179 2005-09-24 Richard Henderson <rth@redhat.com>
11180
11181 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
11182
11183 2005-09-24 Richard Henderson <rth@redhat.com>
11184
11185 * iter.c (gomp_iter_static_next): Round up when computing number
11186 of iterations. Don't bother distributing a remainder equally.
11187
11188 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11189 Don't call srand. Zero b before testing.
11190 (main): New.
11191
11192 2005-09-24 Jakub Jelinek <jakub@redhat.com>
11193
11194 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11195 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11196
11197 2005-09-23 Jakub Jelinek <jakub@redhat.com>
11198
11199 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11200 without !$omp end do, followed immediately by subroutine end.
11201
11202 2005-09-23 Diego Novillo <dnovillo@redhat.com>
11203
11204 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11205
11206 2005-09-22 Richard Henderson <rth@redhat.com>
11207
11208 * critical.c (GOMP_critical_name_start): Change argument to void**.
11209 Reuse the pointer space if the mutex fits.
11210 (GOMP_critical_name_end): Likewise.
11211 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11212 * libgomp_g.h (GOMP_critical_name_start): Update decl.
11213 (GOMP_critical_name_end): Likewise.
11214 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11215 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11216
11217 2005-09-20 Richard Henderson <rth@redhat.com>
11218
11219 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11220 (create_lock_lock): New.
11221 (initialize_critical): Initialize it.
11222 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11223 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11224
11225 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11226
11227 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11228
11229 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11230
11231 * testsuite/libgomp.dg/omp-loop01.c: New test.
11232 * testsuite/libgomp.dg/omp-loop02.c: New test.
11233
11234 2005-09-20 Jakub Jelinek <jakub@redhat.com>
11235
11236 * configure.ac (AC_PROG_FC): Add.
11237 (USE_FORTRAN): New automake conditional.
11238 * configure: Rebuilt.
11239 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11240 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11241 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11242 Add rules to build them.
11243 * Makefile.in: Rebuilt.
11244 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11245 OMP_NEST_LOCK_KIND.
11246 * libgomp.map: Add Fortran wrappers.
11247 * libgomp_f.h.in: New file.
11248 * omp_lib.h.in: New file.
11249 * omp_lib.f90.in: New file.
11250 * fortran.c: New file.
11251 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11252 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11253 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11254 libgfortran has been built.
11255 * testsuite/libgomp.fortran/fortran.exp: New file.
11256 * testsuite/libgomp.fortran/omp_cond1.f: New test.
11257 * testsuite/libgomp.fortran/omp_cond2.f: New test.
11258 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11259 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11260 * testsuite/libgomp.fortran/omp_hello.f: New test.
11261 * testsuite/libgomp.fortran/omp_orphan.f: New test.
11262 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11263 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11264 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11265 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11266 * testsuite/libgomp.fortran/omp_reduction.f: New test.
11267 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11268 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11269
11270 2005-08-30 Richard Henderson <rth@redhat.com>
11271
11272 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11273 function for when aliases are not usable.
11274 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11275 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11276 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11277 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11278 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11279 GOMP_loop_ordered_guided_next): Likewise.
11280 * ordered.c (GOMP_ordered_start): Likewise.
11281
11282 2005-08-01 Diego Novillo <dnovillo@redhat.com>
11283
11284 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11285 * testsuite/libgomp.dg/omp_hello.c: Fix return code
11286 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11287 * testsuite/libgomp.dg/omp_orphan.c: Likewise
11288 * testsuite/libgomp.dg/omp_reduction.c: Likewise
11289 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11290 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11291 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11292 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11293
11294 2005-07-07 Eric Christopher <echristo@redhat.com>
11295 Diego Novillo <dnovillo@redhat.com>
11296
11297 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11298 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11299 up code.
11300 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11301 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11302 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11303 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11304 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11305 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11306 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11307
11308 2005-06-13 Diego Novillo <dnovillo@redhat.com>
11309
11310 * TOPLEVEL.patch: Remove.
11311
11312 2005-05-16 Richard Henderson <rth@redhat.com>
11313
11314 * configure.ac: Test for clock_gettime.
11315 * config.h.in, configure: Rebuild.
11316 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11317 (omp_get_wtime): Use clock_gettime if available.
11318 (omp_get_wtick): Use clock_getres if available.
11319
11320 2005-05-11 Richard Henderson <rth@redhat.com>
11321
11322 * config/linux/ia64/futex.h: New file.
11323 * configure.tgt: Use it.
11324
11325 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11326
11327 2005-05-07 Richard Henderson <rth@redhat.com>
11328
11329 * config/linux/powerpc/futex.h: New file.
11330 * configure.tgt: Use it.
11331
11332 * config/linux/i486/futex.h: Merge ...
11333 * config/linux/x86_64/futex.h: ... into ...
11334 * config/linux/x86/futex.h: ... here.
11335 * configure.tgt: Update to match.
11336
11337 2005-05-06 Richard Henderson <rth@redhat.com>
11338
11339 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11340 * config/linux/i486/futex.h: Likewise.
11341 * config/linux/x86_64/futex.h: Likewise.
11342
11343 * config/linux/lock.c: New file.
11344 * config/linux/omp-lock.h: New file.
11345
11346 * critical.c, env.h: Don't include omp.h
11347 * config/posix/lock.c: Include libgomp.h instead of omp.h.
11348 * config/posix/time.c: Likewise.
11349 * config/posix/omp-lock.h: New file.
11350 * libgomp.h: Include omp-lock.h and omp.h.
11351 * Makefile.am (nodist_include_HEADERS): New.
11352 (omp.h): New rule.
11353 * configure.ac (PERL): New.
11354 * mkomp_h.pl: New file.
11355 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11356 with templates.
11357 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11358
11359 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11360 build directory. Re-add -march=i486 hack.
11361
11362 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
11363 (libgomp_link_flags): Remove.
11364 (libgomp_initialized): Remove.
11365 (libgomp_init): Don't protect from reinitialization. Copy code
11366 from libstdc++ for getting the multilib set correctly.
11367
11368 2005-05-05 Richard Henderson <rth@redhat.com>
11369
11370 * config/linux/alpha/futex.h: New file.
11371 * configure.tgt (alpha*-*-linux*): Use it.
11372
11373 * config/posix/mutex.c: New file.
11374 * config/posix/sem.c: Use libgomp.h.
11375
11376 * configure.tgt (x86_64-linux): Also test CC for -m32.
11377 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
11378
11379 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
11380 after $gccpath.
11381
11382 * Makefile.am (SUBDIRS): New.
11383 (libgomp_la_LDFLAGS): Add -lpthread.
11384 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
11385 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
11386
11387 * libgomp_g.h: New file.
11388 * libgomp.h: Split out all public declarations to libgomp_g.h.
11389 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
11390 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
11391 * config/linux/sem.h: Likewise.
11392 * config/posix/sem.h: Likewise.
11393
11394 * Makefile.am (AM_LDFLAGS): New.
11395 (libgomp_version_script): Split out from ...
11396 (libgomp_la_LDFLAGS): ... here.
11397 (libgomp_version_info): New.
11398 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
11399 (LIBGOMP_ENABLE): New.
11400 (LIBGOMP_CHECK_LINKER_FEATURES): New.
11401 (LIBGOMP_ENABLE_SYMVERS): New.
11402 * configure.ac (AC_INIT): Version 1.0.
11403 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
11404 (enable-linux-futex): Likewise. Rename from enable-futex.
11405 (libtool_VERSION): New.
11406 (LIBGOMP_ENABLE_SYMVERS): Use it.
11407 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
11408 * Makefile.in, aclocal.m4, configure: Rebuild.
11409
11410 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
11411 (gomp_mutex_unlock_slow): Fix typo.
11412 * config/linux/sem.c: Similarly.
11413 (gomp_sem_post_slow): Fix typo.
11414 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
11415 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
11416 [__PIC__] (sys_futex0): Don't use tmp output in asm.
11417
11418 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
11419 (libgomp_la_LDFLAGS): Add top_srcdir to path.
11420 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
11421 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
11422 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
11423 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
11424 LDFLAGS. Pull enable_futex check to top-level.
11425 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
11426 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
11427
11428 First attempt at real configury.
11429 * Makefile, config.h: Remove file.
11430 * Makefile.am, Makefile.in: New file.
11431 * acinclude.m4 aclocal.m4: New file.
11432 * configure.ac, configure.tgt, configure: New file.
11433
11434 * config/posix/lock.c: Rename from sys-lock.c.
11435 * config/posix/mutex.h: Rename from sys-mutex.h.
11436 * config/posix/sem.c: Rename from sys-sem.c.
11437 * config/posix/sem.h: Rename from sys-sem.h.
11438 * config/posix/proc.c: Rename from sys-proc.c.
11439 * config/posix/time.c: Rename from sys-proc.c.
11440
11441 * config/linux/mutex.c: New file.
11442 * config/linux/mutex.h: New file.
11443 * config/linux/sem.c: New file.
11444 * config/linux/sem.h: New file.
11445 * config/linux/i486/futex.h: New file.
11446 * config/linux/x86_64/futex.h: New file.
11447
11448 2005-05-04 Richard Henderson <rth@redhat.com>
11449
11450 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
11451 * libgomp.h: Declare them.
11452 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
11453 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
11454
11455 2005-05-04 Richard Henderson <rth@redhat.com>
11456
11457 * libgomp-1 code drop
11458
11459 2005-05-04 Richard Henderson <rth@redhat.com>
11460
11461 * iter.c (gomp_iter_static_next): Return tri-state on 0.
11462 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
11463 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
11464 (gomp_iter_static_next): Update.
11465 (gomp_ordered_static_next): Update.
11466 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
11467 (gomp_loop_ordered_static_start): Likewise. Exit early for a
11468 totally empty range.
11469 (gomp_loop_ordered_static_next): Refine test for calling
11470 gomp_ordered_static_next.
11471 * testsuite/ordered-1.c: Add case for more threads than iterations.
11472
11473 * iter.c (gomp_iter_runtime_next_locked): Remove.
11474 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
11475 gomp_loop_guided_start, gomp_loop_ordered_static_start,
11476 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
11477 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
11478 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
11479 gomp_loop_ordered_guided_next): Downcase name, make static, add
11480 an external alias with the old name.
11481 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11482 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
11483 switch and call one of the above static functions.
11484 * libgomp.h: Update.
11485
11486 * work.c (gomp_work_share_start): Lock the mutex for !first too.
11487 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11488 GOMP_loop_guided_start, GOMP_loop_runtime_start,
11489 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11490 GOMP_loop_ordered_guided_start): Update to match.
11491 * sections.c (GOMP_sections_start): Likewise.
11492 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11493
11494 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11495 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11496 Use bounds check instead of modulus.
11497 (gomp_ordered_sync): Split out of GOMP_ordered_start.
11498 (gomp_ordered_last): Don't sync with ordered_owner here.
11499 (gomp_ordered_next): Likewise.
11500 (gomp_ordered_static_loop_next): Likewise.
11501 * loop.c, libgomp.h: Update to match.
11502
11503 * libgomp.h (GOMP_barrier): Declare.
11504
11505 * testsuite/barrier-1.c: New file.
11506 * testsuite/critical-1.c: New file.
11507 * testsuite/ordered-2.c: New file.
11508 * testsuite/ordered-1.c: New file.
11509 * testsuite/sections-1.c: New file.
11510 * testsuite/single-1.c: New file.
11511 * testsuite/Makefile (TESTS): Add them.
11512
11513 2005-05-04 Richard Henderson <rth@redhat.com>
11514
11515 * libgomp.h (struct gomp_work_share): Add ordered_owner.
11516 * loop.c (GOMP_loop_static_start): If not the startup thread,
11517 acquire the mutex to wait for initialization complete.
11518 (GOMP_loop_ordered_static_start): Likewise.
11519 (GOMP_loop_ordered_runtime_start): Likewise.
11520 (GOMP_loop_ordered_static_first): Remove.
11521 (GOMP_loop_ordered_dynamic_first): Remove.
11522 (GOMP_loop_ordered_guided_first): Remove.
11523 (GOMP_loop_ordered_runtime_first): Remove.
11524 * ordered.c (gomp_ordered_loop_first): Post to own release when
11525 we're the first thread.
11526 (gomp_ordered_loop_last): Wait on release if not owner.
11527 (gomp_ordered_loop_next): Likewise.
11528 (gomp_ordered_static_loop_init): New.
11529 (gomp_ordered_static_loop_next): Use ordered_owner.
11530 (GOMP_ordered_start): Likewise.
11531 * work.c (gomp_new_work_share): Initialize ordered_owner.
11532
11533 2005-05-03 Richard Henderson <rth@redhat.com>
11534
11535 * Makefile (OPT): New.
11536 (CFLAGS): Use it.
11537
11538 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11539 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11540 * libgomp.h, libgomp.map, NOTES: Update to match.
11541
11542 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11543 Add initialized and thr members.
11544 (gomp_thread_start): Pause when initially spawned to wait for
11545 the whole team to be created.
11546 (gomp_team_start): Release team members at the end.
11547
11548 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
11549 (f_foo_1): Use GOMP_loop_end.
11550 (f_foo_2): Use GOMP_loop_end_nowait.
11551
11552 * testsuite/loop-2.c: New file.
11553 * testsuite/Makefile (TESTS): Add it.
11554
11555 2005-05-03 Richard Henderson <rth@redhat.com>
11556
11557 * iter.c (gomp_iter_static_next): Fix overflow check typo.
11558 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11559 * team.c (new_team): Initialize oldest_live_gen to 1 if no
11560 initial work_share.
11561
11562 * testsuite/Makefile: New file.
11563 * testsuite/loop-1.c: New file.
11564
11565 2005-05-03 Richard Henderson <rth@redhat.com>
11566
11567 Initial implementation and checkin.
11568 \f
11569 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11570
11571 Copying and distribution of this file, with or without modification,
11572 are permitted in any medium without royalty provided the copyright
11573 notice and this notice are preserved.