]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
[C++] Protect call to copy_attributes_to_builtin (PR91505)
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
2
3 PR fortran/91473
4 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
5 -std=legacy so invalid code in the test case is accepted.
6
7 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8
9 PR fortran/91422
10 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
11 dimension.
12
13 2019-08-08 Jakub Jelinek <jakub@redhat.com>
14
15 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
16 perform the lookup in the first loop only if !not_found_cnt, otherwise
17 perform lookups for it in the second loop guarded with
18 if (not_found_cnt || has_firstprivate).
19 * testsuite/libgomp.c/target-37.c: New test.
20 * testsuite/libgomp.c++/target-22.C: New test.
21
22 2019-08-07 Jakub Jelinek <jakub@redhat.com>
23
24 * testsuite/libgomp.c/target-18.c (struct S): New type.
25 (foo): Use use_device_addr clause instead of use_device_ptr clause
26 where required by OpenMP 5.0, add further tests for both use_device_ptr
27 and use_device_addr clauses.
28 * testsuite/libgomp.c++/target-9.C (struct S): New type.
29 (foo): Use use_device_addr clause instead of use_device_ptr clause
30 where required by OpenMP 5.0, add further tests for both use_device_ptr
31 and use_device_addr clauses. Add t and u arguments.
32 (main): Adjust caller.
33
34 2019-08-06 Jakub Jelinek <jakub@redhat.com>
35
36 * testsuite/libgomp.c++/loop-13.C: New test.
37 * testsuite/libgomp.c++/loop-14.C: New test.
38 * testsuite/libgomp.c++/loop-15.C: New test.
39
40 2019-07-31 Jakub Jelinek <jakub@redhat.com>
41
42 PR middle-end/91301
43 * testsuite/libgomp.c++/for-27.C: New test.
44
45 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
46
47 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
48 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
49
50 2019-07-20 Jakub Jelinek <jakub@redhat.com>
51
52 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
53
54 2019-07-08 Jakub Jelinek <jakub@redhat.com>
55
56 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
57 * testsuite/libgomp.c++/scan-16.C: Likewise.
58
59 2019-07-06 Jakub Jelinek <jakub@redhat.com>
60
61 * testsuite/libgomp.c/scan-19.c: New test.
62 * testsuite/libgomp.c/scan-20.c: New test.
63
64 * testsuite/libgomp.c/scan-11.c: New test.
65 * testsuite/libgomp.c/scan-12.c: New test.
66 * testsuite/libgomp.c/scan-13.c: New test.
67 * testsuite/libgomp.c/scan-14.c: New test.
68 * testsuite/libgomp.c/scan-15.c: New test.
69 * testsuite/libgomp.c/scan-16.c: New test.
70 * testsuite/libgomp.c/scan-17.c: New test.
71 * testsuite/libgomp.c/scan-18.c: New test.
72 * testsuite/libgomp.c++/scan-9.C: New test.
73 * testsuite/libgomp.c++/scan-10.C: New test.
74 * testsuite/libgomp.c++/scan-11.C: New test.
75 * testsuite/libgomp.c++/scan-12.C: New test.
76 * testsuite/libgomp.c++/scan-13.C: New test.
77 * testsuite/libgomp.c++/scan-14.C: New test.
78 * testsuite/libgomp.c++/scan-15.C: New test.
79 * testsuite/libgomp.c++/scan-16.C: New test.
80
81 2019-07-04 Jakub Jelinek <jakub@redhat.com>
82
83 * testsuite/libgomp.c/scan-9.c: New test.
84 * testsuite/libgomp.c/scan-10.c: New test.
85
86 2019-07-03 Jakub Jelinek <jakub@redhat.com>
87
88 * testsuite/libgomp.c++/scan-1.C: New test.
89 * testsuite/libgomp.c++/scan-2.C: New test.
90 * testsuite/libgomp.c++/scan-3.C: New test.
91 * testsuite/libgomp.c++/scan-4.C: New test.
92 * testsuite/libgomp.c++/scan-5.C: New test.
93 * testsuite/libgomp.c++/scan-6.C: New test.
94 * testsuite/libgomp.c++/scan-7.C: New test.
95 * testsuite/libgomp.c++/scan-8.C: New test.
96 * testsuite/libgomp.c/scan-1.c: New test.
97 * testsuite/libgomp.c/scan-2.c: New test.
98 * testsuite/libgomp.c/scan-3.c: New test.
99 * testsuite/libgomp.c/scan-4.c: New test.
100 * testsuite/libgomp.c/scan-5.c: New test.
101 * testsuite/libgomp.c/scan-6.c: New test.
102 * testsuite/libgomp.c/scan-7.c: New test.
103 * testsuite/libgomp.c/scan-8.c: New test.
104
105 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
106
107 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
108 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
109 Likewise.
110
111 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
112 check.
113
114 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
115
116 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
117 file.
118
119 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
120
121 PR fortran/90743
122 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
123 case.
124 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
125 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
126 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
127 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
128
129 PR testsuite/90861
130 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
131
132 PR middle-end/90862
133 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
134
135 2019-06-16 Tom de Vries <tdevries@suse.de>
136
137 PR tree-optimization/89376
138 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
139
140 2019-06-15 Tom de Vries <tdevries@suse.de>
141
142 PR tree-optimization/89713
143 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
144 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
145
146 2019-06-15 Jakub Jelinek <jakub@redhat.com>
147
148 PR middle-end/90779
149 * testsuite/libgomp.c/pr90779.c: New test.
150 * testsuite/libgomp.fortran/pr90779.f90: New test.
151
152 2019-06-15 Tom de Vries <tdevries@suse.de>
153
154 PR tree-optimization/90009
155 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
156
157 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
158
159 PR tree-optimization/89713
160 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
161
162 2019-06-11 Jakub Jelinek <jakub@redhat.com>
163
164 PR target/90811
165 * testsuite/libgomp.c/pr90811.c: New test.
166
167 2019-06-05 Jakub Jelinek <jakub@redhat.com>
168
169 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
170 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
171
172 2019-06-04 Jakub Jelinek <jakub@redhat.com>
173
174 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
175 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
176 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
177 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
178
179 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
180
181 * configure.ac: Call AX_COUNT_CPUS.
182 Substitute CPU_COUNT.
183 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
184 count fallback.
185 * aclocal.m4: Regenerate.
186 * configure: Regenerate.
187 * Makefile.in, testsuite/Makefile.in: Regenerate.
188
189 2019-05-29 Jakub Jelinek <jakub@redhat.com>
190
191 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
192 to ...
193 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
194 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
195 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
196
197 2019-05-27 Jakub Jelinek <jakub@redhat.com>
198
199 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
200
201 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
202
203 PR libgomp/90641
204 * work.c (gomp_init_work_share): Instead of aligning final ordered
205 value to multiples of long long alignment, align to that the
206 first part (ordered team ids) and if inline_ordered_team_ids
207 is not on a long long alignment boundary within the structure,
208 use __alignof__ (long long) - 1 pad size always.
209 * loop.c (GOMP_loop_start): Fix *mem computation if
210 inline_ordered_team_ids is not aligned on long long alignment boundary
211 within the structure.
212 * loop-ull.c (GOMP_loop_ull_start): Likewise.
213 * sections.c (GOMP_sections2_start): Likewise.
214
215 2019-05-24 Jakub Jelinek <jakub@redhat.com>
216
217 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
218 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
219
220 PR libgomp/90585
221 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
222 HAVE_INTTYPES_H is defined.
223 (print_uint64_t): New typedef.
224 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
225 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
226 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
227 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
228 before casting to void *.
229 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
230 * oacc-mem.c: Don't include config.h nor stdint.h.
231 * target.c: Don't include config.h.
232 * oacc-cuda.c: Likewise.
233 * oacc-host.c: Don't include stdint.h.
234
235 2019-05-20 Jakub Jelinek <jakub@redhat.com>
236
237 PR libgomp/90527
238 * alloc.c (_GNU_SOURCE): Define.
239
240 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
241
242 * acc_prof.h: New file.
243 * oacc-profiling.c: Likewise.
244 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
245 Add these, respectively.
246 * Makefile.in: Regenerate.
247 * env.c (initialize_env): Call goacc_profiling_initialize.
248 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
249 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
250 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
251 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
252 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
253 acc_prof_register, acc_prof_unregister, and acc_register_library.
254 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
255 GOMP_PLUGIN_goacc_thread.
256 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
257 prof_callbacks_enabled members.
258 (goacc_prof_enabled, goacc_profiling_initialize)
259 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
260 (goacc_profiling_dispatch): Declare.
261 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
262 (GOACC_PROFILING_SETUP_P): Define.
263 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
264 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
265 OpenACC Profiling Interface.
266 * oacc-cuda.c (acc_get_current_cuda_device)
267 (acc_get_current_cuda_context, acc_get_cuda_stream)
268 (acc_set_cuda_stream): Likewise.
269 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
270 (acc_init, acc_set_device_type, acc_get_device_type)
271 (acc_get_device_num, goacc_lazy_initialize): Likewise.
272 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
273 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
274 (acc_unmap_data, present_create_copy, delete_copyout)
275 (update_dev_host): Likewise.
276 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
277 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
278 Likewise.
279 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
280 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
281 Likewise.
282 * libgomp.texi: Update.
283 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
284 file.
285 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
286 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
287 Likewise.
288 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
289 Likewise.
290 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
291 Likewise.
292 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
293 Likewise.
294
295 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
296
297 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
298 (struct goacc_asyncqueue_list): Likewise.
299 (goacc_aq): Likewise.
300 (goacc_aq_list): Likewise.
301 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
302 (GOMP_OFFLOAD_openacc_async_test): Remove.
303 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
304 (GOMP_OFFLOAD_openacc_async_wait): Remove.
305 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
306 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
307 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
308 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
309 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
310 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
311 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
312 (GOMP_OFFLOAD_openacc_async_exec): Declare.
313 (GOMP_OFFLOAD_openacc_async_construct): Declare.
314 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
315 (GOMP_OFFLOAD_openacc_async_test): Declare.
316 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
317 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
318 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
319 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
320 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
321
322 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
323 (gomp_acc_insert_pointer): Adjust declaration.
324 (gomp_copy_host2dev): New declaration.
325 (gomp_copy_dev2host): Likewise.
326 (gomp_map_vars_async): Likewise.
327 (gomp_unmap_tgt): Likewise.
328 (gomp_unmap_vars_async): Likewise.
329 (gomp_fini_device): Likewise.
330
331 * oacc-async.c (get_goacc_thread): New function.
332 (get_goacc_thread_device): New function.
333 (lookup_goacc_asyncqueue): New function.
334 (get_goacc_asyncqueue): New function.
335 (acc_async_test): Adjust code to use new async design.
336 (acc_async_test_all): Likewise.
337 (acc_wait): Likewise.
338 (acc_wait_async): Likewise.
339 (acc_wait_all): Likewise.
340 (acc_wait_all_async): Likewise.
341 (goacc_async_free): New function.
342 (goacc_init_asyncqueues): Likewise.
343 (goacc_fini_asyncqueues): Likewise.
344 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
345 design.
346 (acc_set_cuda_stream): Likewise.
347 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
348 (host_openacc_register_async_cleanup): Remove.
349 (host_openacc_async_exec): New function.
350 (host_openacc_async_test): Adjust parameters.
351 (host_openacc_async_test_all): Remove.
352 (host_openacc_async_wait): Remove.
353 (host_openacc_async_wait_async): Remove.
354 (host_openacc_async_wait_all): Remove.
355 (host_openacc_async_wait_all_async): Remove.
356 (host_openacc_async_set_async): Remove.
357 (host_openacc_async_synchronize): New function.
358 (host_openacc_async_serialize): New function.
359 (host_openacc_async_host2dev): New function.
360 (host_openacc_async_dev2host): New function.
361 (host_openacc_async_queue_callback): New function.
362 (host_openacc_async_construct): New function.
363 (host_openacc_async_destruct): New function.
364 (struct gomp_device_descr host_dispatch): Remove initialization of old
365 interface, add intialization of new async sub-struct.
366 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
367 (goacc_attach_host_thread_to_device): Remove old async code usage.
368 * oacc-int.h (goacc_init_asyncqueues): New declaration.
369 (goacc_fini_asyncqueues): Likewise.
370 (goacc_async_copyout_unmap_vars): Likewise.
371 (goacc_async_free): Likewise.
372 (get_goacc_asyncqueue): Likewise.
373 (lookup_goacc_asyncqueue): Likewise.
374 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
375 design.
376 (present_create_copy): Adjust code to use new async design.
377 (delete_copyout): Likewise.
378 (update_dev_host): Likewise.
379 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
380 async design.
381 (gomp_acc_remove_pointer): Adjust code to use new async design.
382 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
383 design.
384 (GOACC_enter_exit_data): Likewise.
385 (goacc_wait): Likewise.
386 (GOACC_update): Likewise.
387 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
388 when called, warn as obsolete in comment.
389 * target.c (goacc_device_copy_async): New function.
390 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
391 add goacc_device_copy_async case.
392 (gomp_copy_dev2host): Likewise.
393 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
394 (gomp_map_pointer): Likewise.
395 (gomp_map_fields_existing): Likewise.
396 (gomp_map_vars_internal): New always_inline function, renamed from
397 gomp_map_vars.
398 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
399 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
400 passing goacc_asyncqueue argument.
401 (gomp_unmap_tgt): Remove static, add attribute_hidden.
402 (gomp_unref_tgt): New function.
403 (gomp_unmap_vars_internal): New always_inline function, renamed from
404 gomp_unmap_vars.
405 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
406 (gomp_unmap_vars_async): Implement by calling
407 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
408 (gomp_fini_device): New function.
409 (gomp_exit_data): Adjust gomp_copy_dev2host call.
410 (gomp_load_plugin_for_device): Remove old interface, adjust to load
411 new async interface.
412 (gomp_target_fini): Adjust code to call gomp_fini_device.
413
414 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
415 (struct ptx_stream): Remove.
416 (struct nvptx_thread): Remove current_stream field.
417 (cuda_map_create): Remove.
418 (cuda_map_destroy): Remove.
419 (map_init): Remove.
420 (map_fini): Remove.
421 (map_pop): Remove.
422 (map_push): Remove.
423 (struct goacc_asyncqueue): Define.
424 (struct nvptx_callback): Define.
425 (struct ptx_free_block): Define.
426 (struct ptx_device): Remove null_stream, active_streams, async_streams,
427 stream_lock, and next fields.
428 (enum ptx_event_type): Remove.
429 (struct ptx_event): Remove.
430 (ptx_event_lock): Remove.
431 (ptx_events): Remove.
432 (init_streams_for_device): Remove.
433 (fini_streams_for_device): Remove.
434 (select_stream_for_async): Remove.
435 (nvptx_init): Remove ptx_events and ptx_event_lock references.
436 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
437 case.
438 (nvptx_open_device): Add free_blocks initialization, remove
439 init_streams_for_device call.
440 (nvptx_close_device): Remove fini_streams_for_device call, add
441 free_blocks destruct code.
442 (event_gc): Remove.
443 (event_add): Remove.
444 (nvptx_exec): Adjust parameters and code.
445 (nvptx_free): Likewise.
446 (nvptx_host2dev): Remove.
447 (nvptx_dev2host): Remove.
448 (nvptx_set_async): Remove.
449 (nvptx_async_test): Remove.
450 (nvptx_async_test_all): Remove.
451 (nvptx_wait): Remove.
452 (nvptx_wait_async): Remove.
453 (nvptx_wait_all): Remove.
454 (nvptx_wait_all_async): Remove.
455 (nvptx_get_cuda_stream): Remove.
456 (nvptx_set_cuda_stream): Remove.
457 (GOMP_OFFLOAD_alloc): Adjust code.
458 (GOMP_OFFLOAD_free): Likewise.
459 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
460 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
461 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
462 (GOMP_OFFLOAD_openacc_async_wait): Remove.
463 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
464 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
465 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
466 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
467 (cuda_free_argmem): New function.
468 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
469 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
470 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
471 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
472 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
473 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
474 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
475 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
476 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
477 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
478 (cuda_callback_wrapper): New function.
479 (cuda_memcpy_sanity_check): New function.
480 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
481 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
482 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
483 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
484
485 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
486
487 PR target/87835
488 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
489
490 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
491
492 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
493
494 2019-03-27 Kevin Buettner <kevinb@redhat.com>
495
496 * team.c (gomp_team_start): Initialize pool->threads[0].
497
498 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
499
500 * testsuite/libgomp.oacc-c++/c++.exp: Specify
501 "-foffload=$offload_target".
502 * testsuite/libgomp.oacc-c/c.exp: Likewise.
503 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
504 * testsuite/lib/libgomp.exp
505 (check_effective_target_openacc_nvidia_accel_configured): Remove,
506 as (conceptually) merged into
507 check_effective_target_openacc_nvidia_accel_selected. Adjust all
508 users.
509
510 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
511 * testsuite/libgomp-test-support.exp.in: Adjust.
512 * testsuite/lib/libgomp.exp: Likewise. Don't populate
513 openacc_device_types_s.
514 (offload_target_to_openacc_device_type): New proc.
515 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
516 * testsuite/libgomp.oacc-c/c.exp: Likewise.
517 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
518 * Makefile.in: Regenerate.
519 * configure: Likewise.
520 * testsuite/Makefile.in: Likewise.
521
522 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
523 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
524 instead of OFFLOAD_TARGETS.
525 * target.c (gomp_target_init): Adjust.
526 * testsuite/libgomp-test-support.exp.in: Likewise.
527 * testsuite/lib/libgomp.exp: Likewise. Populate
528 openacc_device_types_s instead of offload_targets_s_openacc.
529 (check_effective_target_openacc_nvidia_accel_selected)
530 (check_effective_target_openacc_host_selected): Adjust.
531 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
532 * testsuite/libgomp.oacc-c/c.exp: Likewise.
533 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
534 * Makefile.in: Regenerate.
535 * config.h.in: Likewise.
536 * configure: Likewise.
537 * testsuite/Makefile.in: Likewise.
538
539 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
540 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
541 "offloading: supported, but hardware not accessible".
542 * testsuite/libgomp.oacc-c/c.exp: Likewise.
543 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
544
545 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
546
547 PR c/87924
548 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
549 goacc_wait().
550 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
551 and related adjustment.
552
553 2019-01-30 Jakub Jelinek <jakub@redhat.com>
554
555 PR c++/88988
556 * testsuite/libgomp.c++/pr88988.C: New test.
557
558 2019-01-28 Jakub Jelinek <jakub@redhat.com>
559
560 PR middle-end/89002
561 * testsuite/libgomp.c/pr89002.c: New test.
562
563 2019-01-28 Richard Biener <rguenther@suse.de>
564
565 PR testsuite/89064
566 PR tree-optimization/86865
567 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
568
569 2019-01-24 Tom de Vries <tdevries@suse.de>
570
571 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
572 once instantiated_devices drops to 0.
573
574 2019-01-23 Tom de Vries <tdevries@suse.de>
575
576 PR target/PR88946
577 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
578 cuMemFree.
579 (nvptx_exec): Don't call map_push if mapnum == 0.
580 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
581
582 2019-01-23 Tom de Vries <tdevries@suse.de>
583
584 PR target/88941
585 PR target/88939
586 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
587 (map_fini): Remove "assert (!s->map->active)".
588 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
589
590 2019-01-23 Tom de Vries <tdevries@suse.de>
591
592 PR target/87835
593 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
594 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
595
596 2019-01-15 Tom de Vries <tdevries@suse.de>
597
598 PR target/80547
599 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
600 New test.
601
602 2019-01-12 Tom de Vries <tdevries@suse.de>
603
604 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
605 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
606 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
607 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
608
609 2019-01-12 Tom de Vries <tdevries@suse.de>
610
611 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
612
613 2019-01-12 Tom de Vries <tdevries@suse.de>
614
615 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
616 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
617 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
618
619 2019-01-12 Tom de Vries <tdevries@suse.de>
620
621 PR target/85486
622 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
623 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
624
625 2019-01-12 Tom de Vries <tdevries@suse.de>
626
627 PR target/85381
628 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
629 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
630
631 2019-01-12 Tom de Vries <tdevries@suse.de>
632
633 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
634 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
635 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
636
637 2019-01-12 Tom de Vries <tdevries@suse.de>
638
639 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
640 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
641 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
642
643 2019-01-12 Tom de Vries <tdevries@suse.de>
644
645 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
646 resources diagnostic.
647
648 2019-01-12 Tom de Vries <tdevries@suse.de>
649
650 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
651 vector length to be 128.
652 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
653 length 2097152 to be reduced to 1024 instead of 32.
654
655 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
656 James Norris <jnorris@codesourcery.com>
657
658 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
659 Library Routines", and "Environment Variables".
660
661 2019-01-11 Tom de Vries <tdevries@suse.de>
662
663 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
664 num_workers 16.
665
666 2019-01-11 Tom de Vries <tdevries@suse.de>
667
668 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
669 -foffload=-w.
670 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
671 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
672 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
673 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
674
675 2019-01-11 Tom de Vries <tdevries@suse.de>
676
677 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
678 test.
679
680 2019-01-10 Nathan Sidwell <nathan@acm.org>
681 Julian Brown <julian@codesourcery.com>
682
683 PR lto/71959
684 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
685 * testsuite/libgomp.oacc-c++/pr71959.C: New.
686
687 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
688
689 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
690 and paste code.
691
692 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
693
694 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
695 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
696 write.
697
698 2019-01-09 Tom de Vries <tdevries@suse.de>
699
700 PR target/88756
701 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
702 #define instead of "const int".
703 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
704 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
705 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
706 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
707
708 2019-01-09 Tom de Vries <tdevries@suse.de>
709
710 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
711 one worker.
712
713 2019-01-07 Tom de Vries <tdevries@suse.de>
714
715 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
716 GOMP_OPENACC_DIM argument.
717
718 2019-01-03 Tom de Vries <tdevries@suse.de>
719
720 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
721 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
722
723 2019-01-01 Jakub Jelinek <jakub@redhat.com>
724
725 Update copyright years.
726
727 2019-01-01 Jakub Jelinek <jakub@redhat.com>
728
729 * libgomp.texi: Bump @copying's copyright year.
730
731 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
732
733 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
734 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
735 (GOACC_declare): Redefine the "device" argument to "flags".
736
737 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
738 Cesar Philippidis <cesar@codesourcery.com>
739
740 * target.c (struct gomp_coalesce_chunk): New structure.
741 (struct gomp_coalesce_buf): Update the chunks member to use that
742 type. Adjust all users.
743
744 2018-12-19 Tom de Vries <tdevries@suse.de>
745
746 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
747 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
748 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
749
750 2018-12-19 Tom de Vries <tdevries@suse.de>
751
752 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
753 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
754 gcc/testsuite/gcc.dg/goacc.
755 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
756
757 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
758 Chung-Lin Tang <cltang@codesourcery.com>
759
760 * oacc-mem.c (acc_present_or_create): Remove definition and change
761 to alias of acc_create.
762 (acc_present_or_copyin): Remove definition and change to alias of
763 acc_copyin.
764 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
765 of acc_present_or_create.
766 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
767 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
768 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
769 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
770 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
771 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
772 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
773 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
774 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
775 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
776 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
777 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
778 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
779 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
780 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
781 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
782
783 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
784
785 PR libgomp/88495
786 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
787 "identical parameters".
788 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
789 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
790
791 PR libgomp/88484
792 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
793 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
794
795 PR libgomp/88407
796 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
797 (nvptx_wait_async): Unseen async-argument is a no-op.
798 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
799 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
800 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
801 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
802 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
803 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
804 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
805 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
806 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
807
808 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
809 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
810
811 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
812
813 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
814 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
815 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
816
817 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
818
819 PR libgomp/88370
820 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
821 (acc_set_cuda_stream): Clarify.
822 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
823 "async_valid_p".
824 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
825 acc_async_sync".
826 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
827 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
828 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
829 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
830
831 2018-12-14 Tom de Vries <tdevries@suse.de>
832
833 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
834 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
835 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
836 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
837 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
838
839 2018-12-13 Tom de Vries <tdevries@suse.de>
840
841 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
842 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
843 * fortran.c (omp_display_affinity_): ... here.
844 * libgomp.h (gomp_print_string): Declare.
845 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
846 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
847 write.
848
849 2018-12-13 Jakub Jelinek <jakub@redhat.com>
850
851 PR libgomp/88460
852 * testsuite/libgomp.c++/for-24.C (results): Include it in
853 omp declare target region.
854 (main): Use map (always, tofrom: results) instead of
855 map (tofrom: results).
856
857 2018-12-12 Jakub Jelinek <jakub@redhat.com>
858
859 PR fortran/88463
860 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
861 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
862
863 * testsuite/libgomp.c-c++-common/for-16.c: New test.
864
865 2018-12-12 Andreas Schwab <schwab@suse.de>
866
867 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
868 clobbered.
869
870 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
871
872 PR fortran/88411
873 * testsuite/libgomp.fortran/async_io_8.f90: New test.
874
875 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
876 Jakub Jelinek <jakub@redhat.com>
877
878 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
879 devicep->host2dev_func.
880
881 2018-12-08 Jakub Jelinek <jakub@redhat.com>
882
883 PR libgomp/87995
884 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
885 tls_runtime effective target.
886 (t): New threadprivate variable.
887 (main): Set t in threads which execute iterations of the worksharing
888 loop. Propagate that to the task after the loop and don't abort
889 if the current taskgroup hasn't been cancelled.
890
891 2018-12-02 Jakub Jelinek <jakub@redhat.com>
892
893 * testsuite/libgomp.c/task-reduction-3.c: New test.
894
895 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
896
897 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
898
899 PR libgomp/88288
900 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
901 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
902
903 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
904
905 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
906
907 2018-10-19 Richard Biener <rguenther@suse.de>
908
909 PR tree-optimization/88182
910 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
911
912 2018-11-26 Jakub Jelinek <jakub@redhat.com>
913
914 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
915 (RUNTEST): Don't define.
916 (RUNTESTDEFAULTFLAGS): Add.
917 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
918 (distclean-am): Depend on distclean-DEJAGNU.
919 (check-am): If -j% option is present in MFLAGS and if
920 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
921 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
922 * testsuite/Makefile.in: Regenerated.
923
924 2018-11-26 Richard Biener <rguenther@suse.de>
925
926 PR tree-optimization/88182
927 * testsuite/libgomp.c++/pr88182.C: New testcase.
928
929 2018-11-20 Jakub Jelinek <jakub@redhat.com>
930
931 PR bootstrap/88106
932 * config/mingw32/affinity-fmt.c: New file.
933
934 2018-11-09 Jakub Jelinek <jakub@redhat.com>
935
936 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
937 (gomp_display_affinity): Use __builtin_choose_expr to handle
938 properly handle argument having integral, or pointer or some other
939 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
940 with uint64_t type instead of %llx and unsigned long long.
941
942 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
943 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
944
945 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
946
947 * affinity.c: Include <string.h>, <stdio.h>.
948 (gomp_display_affinity_place): Remove cpusetp.
949 * teams.c: Include <limits.h>.
950
951 2018-11-08 Jakub Jelinek <jakub@redhat.com>
952
953 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
954 in_reduction clause for s[0].
955
956 * affinity.c (gomp_display_affinity_place): New function.
957 * affinity-fmt.c: New file.
958 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
959 * config/linux/affinity.c (gomp_display_affinity_place): New function.
960 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
961 Move these functions to ...
962 * config/nvptx/teams.c: ... here. New file.
963 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
964 New functions.
965 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
966 functions.
967 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
968 and _aligned_malloc.
969 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
970 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
971 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
972 gomp_affinity_format_len): New variables.
973 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
974 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
975 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
976 modifiers. Display (non-default) chunk sizes. Print
977 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
978 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
979 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
980 * fortran.c: Include stdio.h and string.h.
981 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
982 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
983 (omp_set_affinity_format_, omp_get_affinity_format_,
984 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
985 omp_pause_resource_all_): New functions.
986 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
987 switch.
988 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
989 functions to ...
990 * teams.c: ... here. New file.
991 * libgomp_g.h: Include gstdint.h.
992 (GOMP_loop_nonmonotonic_runtime_start,
993 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
994 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
995 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
996 GOMP_parallel_loop_nonmonotonic_runtime,
997 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
998 GOMP_loop_ull_nonmonotonic_runtime_start,
999 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
1000 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
1001 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1002 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
1003 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
1004 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1005 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1006 GOMP_teams_reg): Declare.
1007 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
1008 gomp_aligned_alloc uses fallback implementation.
1009 (gomp_aligned_alloc, gomp_aligned_free): Declare.
1010 (enum gomp_schedule_type): Add GFS_MONOTONIC.
1011 (struct gomp_doacross_work_share): Add extra field.
1012 (struct gomp_work_share): Add task_reductions field.
1013 (struct gomp_taskgroup): Add workshare and reductions fields.
1014 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
1015 (gomp_thread_handle): New typedef.
1016 (gomp_display_affinity_place, gomp_set_affinity_format,
1017 gomp_display_string, gomp_display_affinity,
1018 gomp_display_affinity_thread): Declare.
1019 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
1020 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
1021 gomp_workshare_task_reduction_register): Declare.
1022 (gomp_team_start): Add taskgroup argument.
1023 (gomp_pause_host): Declare.
1024 (gomp_init_work_share, gomp_work_share_start): Change bool argument
1025 to size_t.
1026 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
1027 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
1028 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
1029 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1030 GOMP_loop_ull_doacross_start,
1031 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1032 GOMP_loop_maybe_nonmonotonic_runtime_next,
1033 GOMP_loop_maybe_nonmonotonic_runtime_start,
1034 GOMP_loop_nonmonotonic_runtime_next,
1035 GOMP_loop_nonmonotonic_runtime_start,
1036 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1037 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1038 GOMP_loop_ull_nonmonotonic_runtime_next,
1039 GOMP_loop_ull_nonmonotonic_runtime_start,
1040 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1041 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
1042 GOMP_taskgroup_reduction_register,
1043 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1044 GOMP_teams_reg and GOMP_taskwait_depend.
1045 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
1046 omp_{capture,display}_affinity{,_}, and
1047 omp_[gs]et_affinity_format{,_}.
1048 * loop.c: Include string.h.
1049 (GOMP_loop_runtime_next): Add ialias.
1050 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1051 (gomp_loop_static_start, gomp_loop_dynamic_start,
1052 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1053 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1054 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
1055 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
1056 or gomp_doacross_init callers.
1057 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
1058 GOMP_loop_doacross_start): New functions.
1059 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1060 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
1061 Mask off GFS_MONOTONIC bit.
1062 (GOMP_loop_maybe_nonmonotonic_runtime_next,
1063 GOMP_loop_maybe_nonmonotonic_runtime_start,
1064 GOMP_loop_nonmonotonic_runtime_next,
1065 GOMP_loop_nonmonotonic_runtime_start,
1066 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1067 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
1068 functions.
1069 (gomp_parallel_loop_start): Pass NULL as taskgroup to
1070 gomp_team_start.
1071 * loop_ull.c: Include string.h.
1072 (GOMP_loop_ull_runtime_next): Add ialias.
1073 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1074 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
1075 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
1076 gomp_loop_ull_ordered_dynamic_start,
1077 gomp_loop_ull_ordered_guided_start,
1078 gomp_loop_ull_doacross_static_start,
1079 gomp_loop_ull_doacross_dynamic_start,
1080 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
1081 and gomp_doacross_ull_init callers.
1082 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1083 GOMP_loop_ull_doacross_start): New functions.
1084 (GOMP_loop_ull_runtime_start,
1085 GOMP_loop_ull_ordered_runtime_start,
1086 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
1087 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1088 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1089 GOMP_loop_ull_nonmonotonic_runtime_next,
1090 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
1091 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
1092 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
1093 (omp_pause_resource_t, omp_depend_t): New typedefs.
1094 (enum omp_lock_hint_t): Renamed to ...
1095 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
1096 enumerators using numbers and omp_lock_hint_* as their aliases.
1097 (omp_lock_hint_t): New typedef. Rename to ...
1098 (omp_sync_hint_t): ... this.
1099 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
1100 omp_sync_hint_t instead of omp_lock_hint_t.
1101 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1102 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1103 Declare.
1104 (omp_target_is_present, omp_target_disassociate_ptr):
1105 Change first argument from void * to const void *.
1106 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
1107 from void * to const void *.
1108 (omp_target_associate_ptr): Change first and second arguments from
1109 void * to const void *.
1110 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
1111 omp_pause_hard): New parameters.
1112 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1113 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1114 New interfaces.
1115 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
1116 omp_pause_hard): New parameters.
1117 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1118 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1119 New externals.
1120 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
1121 EXTRA argument. If not needed to prepare array, if extra is 0,
1122 clear ws->doacross, otherwise allocate just doacross structure and
1123 extra payload. If array is needed, allocate also extra payload.
1124 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
1125 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
1126 doacross == NULL.
1127 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
1128 gomp_team_start.
1129 (GOMP_parallel): Likewise. Formatting fix.
1130 (GOMP_parallel_reductions): New function.
1131 (GOMP_cancellation_point): If taskgroup has workshare
1132 flag set, check cancelled of prev taskgroup if any.
1133 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
1134 on prev taskgroup if any.
1135 * sections.c: Include string.h.
1136 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1137 (GOMP_sections_start): Adjust gomp_work_share_start caller.
1138 (GOMP_sections2_start): New function.
1139 (GOMP_parallel_sections_start, GOMP_parallel_sections):
1140 Pass NULL as taskgroup to gomp_team_start.
1141 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
1142 gomp_work_share_start callers.
1143 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
1144 If taskgroup has workshare flag set, check cancelled on prev
1145 taskgroup if any. Guard all cancellation tests with
1146 gomp_cancel_var test.
1147 (omp_target_is_present, omp_target_disassociate_ptr):
1148 Change ptr argument from void * to const void *.
1149 (omp_target_memcpy): Change src argument from void * to const void *.
1150 (omp_target_memcpy_rect): Likewise.
1151 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
1152 instead of char * where needed.
1153 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
1154 from void * to const void *.
1155 (omp_pause_resource, omp_pause_resource_all): New functions.
1156 * task.c (gomp_task_handle_depend): Handle new depend array format
1157 in addition to the old. Handle mutexinoutset kinds the same as
1158 inout for now, handle unspecified kinds.
1159 (gomp_create_target_task): If taskgroup has workshare flag set, check
1160 cancelled on prev taskgroup if any. Guard all cancellation tests with
1161 gomp_cancel_var test. Handle new depend array format count in
1162 addition to the old.
1163 (GOMP_task): Likewise. Adjust function comment.
1164 (gomp_task_run_pre): If taskgroup has workshare flag set, check
1165 cancelled on prev taskgroup if any. Guard all cancellation tests with
1166 gomp_cancel_var test.
1167 (GOMP_taskwait_depend): New function.
1168 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
1169 format in addition to the old. Handle mutexinoutset kinds the same as
1170 inout for now, handle unspecified kinds. Fix a function comment typo.
1171 (gomp_taskgroup_init): New function.
1172 (GOMP_taskgroup_start): Use it.
1173 (gomp_reduction_register, gomp_create_artificial_team,
1174 GOMP_taskgroup_reduction_register,
1175 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1176 gomp_parallel_reduction_register,
1177 gomp_workshare_task_reduction_register,
1178 gomp_workshare_taskgroup_start,
1179 GOMP_workshare_task_reduction_unregister): New functions.
1180 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
1181 check cancelled on prev taskgroup if any. Guard all cancellation
1182 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
1183 by calling GOMP_taskgroup_reduction_register.
1184 * team.c (gomp_thread_attr): Remove comment.
1185 (struct gomp_thread_start_data): Add handle field.
1186 (gomp_thread_start): Call pthread_detach.
1187 (gomp_new_team): Adjust gomp_init_work_share caller.
1188 (gomp_free_pool_helper): Call pthread_detach.
1189 (gomp_team_start): Add taskgroup argument, initialize implicit
1190 tasks' taskgroup field to that. Don't call
1191 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
1192 (gomp_team_end): Determine nesting by thr->ts.level != 0
1193 rather than thr->ts.team != NULL.
1194 (gomp_pause_pool_helper, gomp_pause_host): New functions.
1195 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1196 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1197 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1198 if more than 1 allocate also extra payload at the end of array. Never
1199 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1200 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1201 return true instead of ws.
1202 * Makefile.in: Regenerated.
1203 * configure: Regenerated.
1204 * config.h.in: Regenerated.
1205 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1206 in some cases.
1207 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1208 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1209 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1210 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1211 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1212 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1213 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1214 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1215 * testsuite/libgomp.c-c++-common/for-10.c: New test.
1216 * testsuite/libgomp.c-c++-common/for-11.c: New test.
1217 * testsuite/libgomp.c-c++-common/for-12.c: New test.
1218 * testsuite/libgomp.c-c++-common/for-13.c: New test.
1219 * testsuite/libgomp.c-c++-common/for-14.c: New test.
1220 * testsuite/libgomp.c-c++-common/for-15.c: New test.
1221 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1222 define a different N(test), don't define N(f0) to N(f14), but instead
1223 define N(f20) to N(f34) using != comparisons.
1224 * testsuite/libgomp.c-c++-common/for-7.c: New test.
1225 * testsuite/libgomp.c-c++-common/for-8.c: New test.
1226 * testsuite/libgomp.c-c++-common/for-9.c: New test.
1227 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1228 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1229 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1230 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1231 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1232 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1233 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1234 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1235 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1236 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1237 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1238 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1239 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1240 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1241 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1242 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1243 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1244 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1245 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1246 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1247 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1248 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1249 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1250 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1251 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1252 * testsuite/libgomp.c++/depend-1.C: New test.
1253 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1254 * testsuite/libgomp.c++/depobj-1.C: New test.
1255 * testsuite/libgomp.c++/for-16.C: New test.
1256 * testsuite/libgomp.c++/for-21.C: New test.
1257 * testsuite/libgomp.c++/for-22.C: New test.
1258 * testsuite/libgomp.c++/for-23.C: New test.
1259 * testsuite/libgomp.c++/for-24.C: New test.
1260 * testsuite/libgomp.c++/for-25.C: New test.
1261 * testsuite/libgomp.c++/for-26.C: New test.
1262 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1263 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1264 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1265 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1266 * testsuite/libgomp.c++/task-reduction-10.C: New test.
1267 * testsuite/libgomp.c++/task-reduction-11.C: New test.
1268 * testsuite/libgomp.c++/task-reduction-12.C: New test.
1269 * testsuite/libgomp.c++/task-reduction-13.C: New test.
1270 * testsuite/libgomp.c++/task-reduction-14.C: New test.
1271 * testsuite/libgomp.c++/task-reduction-15.C: New test.
1272 * testsuite/libgomp.c++/task-reduction-16.C: New test.
1273 * testsuite/libgomp.c++/task-reduction-17.C: New test.
1274 * testsuite/libgomp.c++/task-reduction-18.C: New test.
1275 * testsuite/libgomp.c++/task-reduction-19.C: New test.
1276 * testsuite/libgomp.c/task-reduction-1.c: New test.
1277 * testsuite/libgomp.c++/task-reduction-1.C: New test.
1278 * testsuite/libgomp.c/task-reduction-2.c: New test.
1279 * testsuite/libgomp.c++/task-reduction-2.C: New test.
1280 * testsuite/libgomp.c++/task-reduction-3.C: New test.
1281 * testsuite/libgomp.c++/task-reduction-4.C: New test.
1282 * testsuite/libgomp.c++/task-reduction-5.C: New test.
1283 * testsuite/libgomp.c++/task-reduction-6.C: New test.
1284 * testsuite/libgomp.c++/task-reduction-7.C: New test.
1285 * testsuite/libgomp.c++/task-reduction-8.C: New test.
1286 * testsuite/libgomp.c++/task-reduction-9.C: New test.
1287 * testsuite/libgomp.c/teams-1.c: New test.
1288 * testsuite/libgomp.c/teams-2.c: New test.
1289 * testsuite/libgomp.c/thread-limit-4.c: New test.
1290 * testsuite/libgomp.c/thread-limit-5.c: New test.
1291 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1292
1293 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
1294
1295 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1296 acc_memcpy_to/from_device functions, now with async parameter.
1297 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1298 (acc_memcpy_from_device): Likewise.
1299 (acc_memcpy_to_device_async): New API function.
1300 (acc_memcpy_from_device_async): Likewise.
1301 (present_create_copy): Add async parameter and async setting/unsetting.
1302 (acc_create): Adjust present_create_copy call.
1303 (acc_copyin): Likewise.
1304 (acc_present_or_create): Likewise.
1305 (acc_present_or_copyin): Likewise.
1306 (acc_create_async): New API function.
1307 (acc_copyin_async): New API function.
1308 (delete_copyout): Add async parameter and async setting/unsetting.
1309 (acc_delete): Adjust delete_copyout call.
1310 (acc_copyout): Likewise.
1311 (acc_delete_async): New API function.
1312 (acc_copyout_async): Likewise.
1313 (update_dev_host): Add async parameter and async setting/unsetting.
1314 (acc_update_device): Adjust update_dev_host call.
1315 (acc_update_self): Likewise.
1316 (acc_update_device_async): New API function.
1317 (acc_update_self_async): Likewise.
1318 * openacc.h (acc_copyin_async): Declare new API function.
1319 (acc_create_async): Likewise.
1320 (acc_copyout_async): Likewise.
1321 (acc_delete_async): Likewise.
1322 (acc_update_device_async): Likewise.
1323 (acc_update_self_async): Likewise.
1324 (acc_memcpy_to_device_async): Likewise.
1325 (acc_memcpy_from_device_async): Likewise.
1326 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1327 (acc_copyin_async_64_h): New subroutine.
1328 (acc_copyin_async_array_h): New subroutine.
1329 (acc_create_async_32_h): New subroutine.
1330 (acc_create_async_64_h): New subroutine.
1331 (acc_create_async_array_h): New subroutine.
1332 (acc_copyout_async_32_h): New subroutine.
1333 (acc_copyout_async_64_h): New subroutine.
1334 (acc_copyout_async_array_h): New subroutine.
1335 (acc_delete_async_32_h): New subroutine.
1336 (acc_delete_async_64_h): New subroutine.
1337 (acc_delete_async_array_h): New subroutine.
1338 (acc_update_device_async_32_h): New subroutine.
1339 (acc_update_device_async_64_h): New subroutine.
1340 (acc_update_device_async_array_h): New subroutine.
1341 (acc_update_self_async_32_h): New subroutine.
1342 (acc_update_self_async_64_h): New subroutine.
1343 (acc_update_self_async_array_h): New subroutine.
1344 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1345 (acc_copyin_async_64_h): New subroutine.
1346 (acc_copyin_async_array_h): New subroutine.
1347 (acc_create_async_32_h): New subroutine.
1348 (acc_create_async_64_h): New subroutine.
1349 (acc_create_async_array_h): New subroutine.
1350 (acc_copyout_async_32_h): New subroutine.
1351 (acc_copyout_async_64_h): New subroutine.
1352 (acc_copyout_async_array_h): New subroutine.
1353 (acc_delete_async_32_h): New subroutine.
1354 (acc_delete_async_64_h): New subroutine.
1355 (acc_delete_async_array_h): New subroutine.
1356 (acc_update_device_async_32_h): New subroutine.
1357 (acc_update_device_async_64_h): New subroutine.
1358 (acc_update_device_async_array_h): New subroutine.
1359 (acc_update_self_async_32_h): New subroutine.
1360 (acc_update_self_async_64_h): New subroutine.
1361 (acc_update_self_async_array_h): New subroutine.
1362 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1363 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1364 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1365 acc_memcpy_to_device_async*, acc_update_device_async*, and
1366 acc_update_self_async* entries.
1367 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1368 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1369 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1370
1371 2018-10-31 Joseph Myers <joseph@codesourcery.com>
1372
1373 PR bootstrap/82856
1374 * Makefile.am: Include multilib.am
1375 (AUTOMAKE_OPTIONS): Add info-in-builddir.
1376 (CLEANFILES): Remove libgomp.info.
1377 * configure.ac: Remove AC_PREREQ.
1378 * testsuite/Makefile.am (RUNTEST): Remove quotes.
1379 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
1380 Regenerate.
1381
1382 2018-10-29 Joseph Myers <joseph@codesourcery.com>
1383 Julian Brown <julian@codesourcery.com>
1384
1385 * testsuite/libgomp.oacc-c++/this.C: New.
1386
1387 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
1388
1389 * plugin/plugin-nvptx.c (struct cuda_map): New.
1390 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
1391 h_tail with (cuda_map *) map.
1392 (cuda_map_create): New function.
1393 (cuda_map_destroy): New function.
1394 (map_init): Update to use a linked list of cuda_map objects.
1395 (map_fini): Likewise.
1396 (map_pop): Likewise.
1397 (map_push): Likewise. Return CUdeviceptr instead of void.
1398 (init_streams_for_device): Remove stales references to ptx_stream
1399 members.
1400 (select_stream_for_async): Likewise.
1401 (nvptx_exec): Update call to map_init.
1402
1403 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
1404 Julian Brown <julian@codesourcery.com>
1405
1406 PR middle-end/86336
1407 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
1408
1409 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
1410 Thomas Koenig <tkoenig@gcc.gnu.org>
1411
1412 PR fortran/25829
1413 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1414 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1415 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1416 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1417 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1418 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1419 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1420
1421 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
1422 Tom de Vries <tdevries@suse.de>
1423
1424 PR target/85590
1425 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
1426 (cuOccupancyMaxPotentialBlockSize): Declare.
1427 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
1428 CUDA_ONE_CALL_MAYBE_NULL.
1429 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
1430 CUoccupancyB2DSize and declare
1431 cuOccupancyMaxPotentialBlockSize.
1432 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
1433 default num_gangs and num_workers when the driver supports it.
1434
1435 2018-08-08 Tom de Vries <tdevries@suse.de>
1436
1437 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
1438 CUDA_ONE_CALL_MAYBE_NULL.
1439 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
1440 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
1441 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
1442 are not found.
1443
1444 2018-08-08 Tom de Vries <tdevries@suse.de>
1445
1446 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
1447 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
1448 present.
1449
1450 2018-08-08 Tom de Vries <tdevries@suse.de>
1451
1452 * plugin/plugin-nvptx.c
1453 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
1454 (nvptx_open_device): Use
1455 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
1456
1457 2018-08-08 Tom de Vries <tdevries@suse.de>
1458
1459 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
1460 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
1461
1462 2018-08-07 Tom de Vries <tdevries@suse.de>
1463
1464 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
1465 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
1466 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
1467 corresponding call in CUDA_ONE_CALL. Add def/undef of
1468 CUDA_ONE_CALL_MAYBE_NULL.
1469 (CUDA_CALL_EXISTS): Define.
1470
1471 2018-08-07 Tom de Vries <tdevries@suse.de>
1472
1473 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
1474 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
1475 corresponding undefs right after.
1476
1477 2018-08-04 Tom de Vries <tdevries@suse.de>
1478
1479 * plugin/configfrag.ac: For --without-cuda-driver, set
1480 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
1481 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
1482 * configure: Regenerate.
1483
1484 2018-08-02 Tom de Vries <tdevries@suse.de>
1485
1486 PR target/86660
1487 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
1488 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
1489 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
1490 Same.
1491 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
1492 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
1493 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
1494
1495 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1496 Thomas Schwinge <thomas@codesourcery.com>
1497
1498 * config/nvptx/oacc-parallel.c: Truncate.
1499
1500 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1501 James Norris <jnorris@codesourcery.com>
1502
1503 * plugin/plugin-nvptx.c (struct map): Removed.
1504 (map_init, map_pop): Remove use of struct map.
1505 (map_push): Likewise and change argument list.
1506 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1507
1508 2018-08-01 Tom de Vries <tdevries@suse.de>
1509
1510 * plugin/cuda-lib.def: New file. Factor out of ...
1511 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1512 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1513 using CUDA_CALLS.
1514
1515 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1516
1517 Revert 'AsyncI/O patch committed'.
1518 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1519 Thomas Koenig <tkoenig@gcc.gnu.org>
1520
1521 PR fortran/25829
1522 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1523 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1524 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1525 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1526 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1527 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1528 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1529
1530 2018-07-30 Tom de Vries <tdevries@suse.de>
1531
1532 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1533 (nvptx_exec): Ensure worker and vector default dims don't exceed
1534 targ_fn->max_threads_per_block.
1535
1536 2018-07-30 Tom de Vries <tdevries@suse.de>
1537
1538 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1539 (nvptx_open_device): Init default_dims for device.
1540 (nvptx_exec): Use default_dims from device.
1541
1542 2018-07-26 Jakub Jelinek <jakub@redhat.com>
1543
1544 PR testsuite/86660
1545 * testsuite/libgomp.c++/for-15.C (results): Include it in
1546 omp declare target region.
1547 (main): Use map (always, tofrom: results) instead of
1548 map (tofrom: results).
1549
1550 PR middle-end/86660
1551 * testsuite/libgomp.c/pr86660.c: New test.
1552
1553 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1554 Tom de Vries <tdevries@suse.de>
1555
1556 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1557 sufficient resources to launch a kernel, and give a hint on how to fix
1558 it.
1559
1560 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1561 Tom de Vries <tdevries@suse.de>
1562
1563 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1564 max_threads_per_block and max_threads_per_multiprocessor fields.
1565 (nvptx_open_device): Initialize new fields.
1566 (nvptx_exec): Use num_sms, and new fields.
1567
1568 2018-07-26 Tom de Vries <tdevries@suse.de>
1569
1570 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1571 to correct locations. Remove xfail.
1572
1573 2018-07-26 Tom de Vries <tdevries@suse.de>
1574
1575 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1576 acc_wait. Move acc_async_test calls to correct locations. Remove
1577 xfail.
1578
1579 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1580 Thomas Koenig <tkoenig@gcc.gnu.org>
1581
1582 PR fortran/25829
1583 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1584 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1585 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1586 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1587 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1588 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1589 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1590
1591 2018-07-17 Jakub Jelinek <jakub@redhat.com>
1592
1593 PR middle-end/86542
1594 * testsuite/libgomp.c++/pr86542.C: New test.
1595
1596 PR middle-end/86539
1597 * testsuite/libgomp.c++/pr86539.C: New test.
1598
1599 2018-07-11 Jakub Jelinek <jakub@redhat.com>
1600
1601 PR c++/86443
1602 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1603 (results): Make sure the variable is not inside declare target region.
1604 (qux): Remove unused function.
1605
1606 2018-07-10 Jakub Jelinek <jakub@redhat.com>
1607
1608 PR c++/86443
1609 * testsuite/libgomp.c++/for-15.C: New test.
1610
1611 2018-06-26 Jakub Jelinek <jakub@redhat.com>
1612
1613 PR c++/86291
1614 * testsuite/libgomp.c++/pr86291.C: New test.
1615
1616 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
1617
1618 * libgomp.texi (Top): Move www.openmp.org to https.
1619 (Enabling OpenMP): Ditto.
1620 (omp_get_active_level): Ditto.
1621 (omp_get_ancestor_thread_num): Ditto.
1622 (omp_get_cancellation): Ditto.
1623 (omp_get_default_device): Ditto.
1624 (omp_get_dynamic): Ditto.
1625 (omp_get_level): Ditto.
1626 (omp_get_max_active_levels): Ditto.
1627 (omp_get_max_task_priority): Ditto.
1628 (omp_get_max_threads): Ditto.
1629 (omp_get_nested): Ditto.
1630 (omp_get_num_devices): Ditto.
1631 (omp_get_num_procs): Ditto.
1632 (omp_get_num_teams): Ditto.
1633 (omp_get_num_threads): Ditto.
1634 (omp_get_proc_bind): Ditto.
1635 (omp_get_schedule): Ditto.
1636 (omp_get_team_num): Ditto.
1637 (omp_get_team_size): Ditto.
1638 (omp_get_thread_limit): Ditto.
1639 (omp_get_thread_num): Ditto.
1640 (omp_in_parallel): Ditto.
1641 (omp_in_final): Ditto.
1642 (omp_is_initial_device): Ditto.
1643 (omp_set_default_device): Ditto.
1644 (omp_set_dynamic): Ditto.
1645 (omp_set_max_active_levels): Ditto.
1646 (omp_set_nested): Ditto.
1647 (omp_set_num_threads): Ditto.
1648 (omp_set_schedule): Ditto.
1649 (omp_init_lock): Ditto.
1650 (omp_set_lock): Ditto.
1651 (omp_test_lock): Ditto.
1652 (omp_unset_lock): Ditto.
1653 (omp_destroy_lock): Ditto.
1654 (omp_init_nest_lock): Ditto.
1655 (omp_set_nest_lock): Ditto.
1656 (omp_test_nest_lock): Ditto.
1657 (omp_unset_nest_lock): Ditto.
1658 (omp_destroy_nest_lock): Ditto.
1659 (omp_get_wtick): Ditto.
1660 (omp_get_wtime): Ditto.
1661 (OMP_CANCELLATION): Ditto.
1662 (OMP_DISPLAY_ENV): Ditto.
1663 (OMP_DEFAULT_DEVICE): Ditto.
1664 (OMP_DYNAMIC): Ditto.
1665 (OMP_MAX_ACTIVE_LEVELS): Ditto.
1666 (OMP_MAX_TASK_PRIORITY): Ditto.
1667 (OMP_NESTED): Ditto.
1668 (OMP_NUM_THREADS): Ditto.
1669 (OMP_PROC_BIND): Ditto.
1670 (OMP_PLACES): Ditto.
1671 (OMP_STACKSIZE): Ditto.
1672 (OMP_SCHEDULE): Ditto.
1673 (OMP_THREAD_LIMIT): Ditto.
1674 (OMP_WAIT_POLICY): Ditto.
1675
1676 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
1677 James Norris <jnorris@codesourcery.com>
1678 Julian Brown <julian@codesourcery.com>
1679 Thomas Schwinge <thomas@codesourcery.com>
1680 Tom de Vries <tom@codesourcery.com>
1681
1682 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1683 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1684 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1685 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1686 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1687 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1688 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1689 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1690 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1691 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1692 Likewise.
1693 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1694 Likewise.
1695 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1696 Likewise.
1697 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1698 Likewise.
1699 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1700 Likewise.
1701 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1702 Likewise.
1703 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1704 Likewise.
1705 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1706 Likewise.
1707 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1708 Likewise.
1709 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1710 Likewise.
1711 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1712 Likewise.
1713 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1714 Likewise.
1715 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1716 Likewise.
1717 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1718 Likewise.
1719 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1720 Likewise.
1721 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1722 Likewise.
1723 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1724 Likewise.
1725 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1726 Likewise.
1727 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1728 Likewise.
1729 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1730 Likewise.
1731 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1732 Likewise.
1733 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1734 Likewise.
1735 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1736 Likewise.
1737 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1738 Likewise.
1739 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1740 Likewise.
1741 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1742 Likewise.
1743 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1744 Likewise.
1745 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1746 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1747 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1748 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1749 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1750 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1751 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1752 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1753 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1754 Likewise.
1755 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1756 Likewise.
1757 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1758 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1759 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1760 Likewise.
1761 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1762 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1763 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1764 Likewise.
1765 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1766 Likewise.
1767 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1768 Likewise.
1769 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1770 Likewise.
1771 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1772 Likewise.
1773 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1774 Likewise.
1775 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1776 Likewise.
1777 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1778 Likewise.
1779 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1780 Likewise.
1781 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1782 Likewise.
1783 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1784 Likewise.
1785 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1786 Likewise.
1787 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1788 Likewise.
1789 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1790 Likewise.
1791 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1792 Likewise.
1793 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1794 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1795 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1796 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1797 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1798 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1799 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1800
1801 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1802 Thomas Schwinge <thomas@codesourcery.com>
1803 Cesar Philippidis <cesar@codesourcery.com>
1804
1805 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1806 (gomp_acc_remove_pointer): Update declaration.
1807 (gomp_acc_declare_allocate): Declare.
1808 (gomp_remove_var): Declare.
1809 * libgomp.map (OACC_2.5): Define.
1810 * oacc-mem.c (acc_map_data): Update refcount.
1811 (acc_unmap_data): Likewise.
1812 (present_create_copy): Likewise.
1813 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1814 (acc_copyin): Likewise.
1815 (FLAG_FINALIZE): Define.
1816 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1817 (acc_delete_finalize): New function.
1818 (acc_delete_finalize_async): New function.
1819 (acc_copyout_finalize): New function.
1820 (acc_copyout_finalize_async): New function.
1821 (gomp_acc_insert_pointer): Update refcounts.
1822 (gomp_acc_remove_pointer): Return if data is not present on the
1823 accelerator.
1824 * oacc-parallel.c (find_pset): Rename to find_pointer.
1825 (find_pointer): Add support for GOMP_MAP_POINTER.
1826 (handle_ftn_pointers): New function.
1827 (GOACC_parallel_keyed): Update refcounts of variables.
1828 (GOACC_enter_exit_data): Add support for finalized data mappings.
1829 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1830 of fortran arrays.
1831 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1832 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1833 for GOMP_MAP_FORCE_FROM.
1834 * openacc.f90 (module openacc_internal): Add
1835 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1836 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1837 acc_copyout_finalize and acc_delete_finalize.
1838 (acc_copyout_finalize_32_h): New subroutine.
1839 (acc_copyout_finalize_64_h): New subroutine.
1840 (acc_copyout_finalize_array_h): New subroutine.
1841 (acc_delete_finalize_32_h): New subroutine.
1842 (acc_delete_finalize_64_h): New subroutine.
1843 (acc_delete_finalize_array_h): New subroutine.
1844 * openacc.h (acc_copyout_finalize): Declare.
1845 (acc_copyout_finalize_async): Declare.
1846 (acc_delete_finalize): Declare.
1847 (acc_delete_finalize_async): Declare.
1848 * openacc_lib.h (acc_copyout_finalize): New interface.
1849 (acc_delete_finalize): New interface.
1850 * target.c (gomp_map_vars): Update dynamic_refcount.
1851 (gomp_remove_var): New function.
1852 (gomp_unmap_vars): Use it.
1853 (gomp_unload_image_from_device): Likewise.
1854 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1855 case to utilize OpenACC 2.5 data clause semantics.
1856 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1857 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1858 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1859 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1860 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1861 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1862 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1863 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1864 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1865 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1866 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1867 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1868 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1869 utilize OpenACC 2.5 data clause semantics.
1870 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1871 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1872 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1873 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1874 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1875 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1876 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1877 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1878 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1879
1880 2018-05-21 Janus Weil <janus@gcc.gnu.org>
1881
1882 PR fortran/85841
1883 PR testsuite/85865
1884 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1885 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1886 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1887 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1888 * testsuite/libgomp.fortran/task2.f90: Ditto.
1889 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1890 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1891 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1892 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1893 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1894 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1895 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1896 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1897 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1898
1899 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
1900
1901 PR c++/85782
1902 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1903
1904 2018-05-09 Tom de Vries <tom@codesourcery.com>
1905
1906 PR libgomp/82901
1907 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1908 to GOACC_enter_exit_data.
1909
1910 2018-05-09 Tom de Vries <tom@codesourcery.com>
1911
1912 PR libgomp/83792
1913 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1914 (async_synchronous_p): New function.
1915 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1916 async_valid_p.
1917 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1918 async_valid_stream_id_p.
1919 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1920 * oacc-parallel.c (GOACC_parallel_keyed): Same.
1921
1922 2018-05-07 Tom de Vries <tom@codesourcery.com>
1923
1924 PR testsuite/85677
1925 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1926 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1927
1928 2018-05-03 Tom de Vries <tom@codesourcery.com>
1929
1930 PR testsuite/85106
1931 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1932 extra_tool_flags if it contains an -foffload=-fdump-* flag.
1933 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1934 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1935
1936 2018-05-02 Tom de Vries <tom@codesourcery.com>
1937
1938 PR libgomp/85411
1939 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1940 GOMP_OPENACC_DIM ...
1941 * env.c (parse_gomp_openacc_dim): ... here. New function.
1942 (initialize_env): Call parse_gomp_openacc_dim.
1943 (goacc_default_dims): Define.
1944 * libgomp.h (goacc_default_dims): Declare.
1945 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1946 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1947 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1948 GOMP_PLUGIN_acc_default_dim.
1949 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1950 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1951
1952 2018-05-02 Tom de Vries <tom@codesourcery.com>
1953
1954 PR testsuite/83791
1955 * testsuite/libgomp.c++/udr-9.C: Update.
1956 * testsuite/libgomp.c++/atomic-16.C: Remove.
1957 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1958 * testsuite/libgomp.c++/loop-13.C: Remove.
1959 * testsuite/libgomp.c++/loop-14.C: Remove.
1960 * testsuite/libgomp.c++/loop-15.C: Remove.
1961 * testsuite/libgomp.c++/monotonic-1.C: Remove.
1962 * testsuite/libgomp.c++/monotonic-2.C: Remove.
1963 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1964 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1965 * testsuite/libgomp.c++/ordered-1.C: Remove.
1966 * testsuite/libgomp.c++/pr45784.C: Remove.
1967 * testsuite/libgomp.c++/pr64824.C: Remove.
1968 * testsuite/libgomp.c++/pr64868.C: Remove.
1969 * testsuite/libgomp.c++/pr66199-1.C: Remove.
1970 * testsuite/libgomp.c++/pr66199-2.C: Remove.
1971 * testsuite/libgomp.c++/pr66199-3.C: Remove.
1972 * testsuite/libgomp.c++/pr66199-4.C: Remove.
1973 * testsuite/libgomp.c++/pr66199-5.C: Remove.
1974 * testsuite/libgomp.c++/pr66199-6.C: Remove.
1975 * testsuite/libgomp.c++/pr66199-7.C: Remove.
1976 * testsuite/libgomp.c++/pr66199-8.C: Remove.
1977 * testsuite/libgomp.c++/pr66199-9.C: Remove.
1978 * testsuite/libgomp.c++/pr69389.C: Remove.
1979 * testsuite/libgomp.c++/simd10.C: Remove.
1980 * testsuite/libgomp.c++/simd11.C: Remove.
1981 * testsuite/libgomp.c++/simd12.C: Remove.
1982 * testsuite/libgomp.c++/simd13.C: Remove.
1983 * testsuite/libgomp.c++/target-1.C: Remove.
1984 * testsuite/libgomp.c++/target-3.C: Remove.
1985 * testsuite/libgomp.c++/target-4.C: Remove.
1986 * testsuite/libgomp.c++/target-5.C: Remove.
1987 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1988 * testsuite/libgomp.c++/taskloop-1.C: Remove.
1989 * testsuite/libgomp.c++/taskloop-2.C: Remove.
1990 * testsuite/libgomp.c++/taskloop-3.C: Remove.
1991 * testsuite/libgomp.c++/taskloop-4.C: Remove.
1992 * testsuite/libgomp.c++/udr-9.C: Remove.
1993 * testsuite/libgomp.c++/for-10.C: Remove.
1994 * testsuite/libgomp.c++/for-11.C: Remove.
1995 * testsuite/libgomp.c++/for-12.C: Remove.
1996 * testsuite/libgomp.c++/for-13.C: Remove.
1997 * testsuite/libgomp.c++/for-14.C: Remove.
1998 * testsuite/libgomp.c++/for-9.C: Remove.
1999 * testsuite/libgomp.c/atomic-18.c: Move ...
2000 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
2001 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
2002 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
2003 * testsuite/libgomp.c/loop-13.c: Move ...
2004 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
2005 * testsuite/libgomp.c/loop-14.c: Move ...
2006 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
2007 * testsuite/libgomp.c/loop-15.c: Remove.
2008 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
2009 * testsuite/libgomp.c/monotonic-1.c: Move ...
2010 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
2011 * testsuite/libgomp.c/monotonic-2.c: Move ...
2012 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
2013 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
2014 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
2015 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
2016 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
2017 * testsuite/libgomp.c/ordered-4.c: Move ...
2018 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
2019 * testsuite/libgomp.c/pr45784.c: Move ...
2020 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
2021 * testsuite/libgomp.c/pr64824.c: Move ...
2022 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
2023 * testsuite/libgomp.c/pr64868.c: Move ...
2024 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
2025 * testsuite/libgomp.c/pr66199-1.c: Move ...
2026 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
2027 * testsuite/libgomp.c/pr66199-2.c: Move ...
2028 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
2029 * testsuite/libgomp.c/pr66199-3.c: Move ...
2030 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
2031 * testsuite/libgomp.c/pr66199-4.c: Move ...
2032 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
2033 * testsuite/libgomp.c/pr66199-5.c: Move ...
2034 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
2035 * testsuite/libgomp.c/pr66199-6.c: Move ...
2036 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
2037 * testsuite/libgomp.c/pr66199-7.c: Move ...
2038 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
2039 * testsuite/libgomp.c/pr66199-8.c: Move ...
2040 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
2041 * testsuite/libgomp.c/pr66199-9.c: Move ...
2042 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
2043 * testsuite/libgomp.c/pr69389.c: Move ...
2044 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
2045 * testsuite/libgomp.c/simd-14.c: Move ...
2046 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
2047 * testsuite/libgomp.c/simd-15.c: Move ...
2048 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
2049 * testsuite/libgomp.c/simd-16.c: Move ...
2050 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
2051 * testsuite/libgomp.c/simd-17.c: Move ...
2052 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
2053 * testsuite/libgomp.c/target-1.c: Move ...
2054 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
2055 * testsuite/libgomp.c/target-10.c: Move ...
2056 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
2057 * testsuite/libgomp.c/target-13.c: Move ...
2058 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
2059 * testsuite/libgomp.c/target-2.c: Move ...
2060 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
2061 * testsuite/libgomp.c/taskgroup-1.c: Move ...
2062 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
2063 * testsuite/libgomp.c/taskloop-1.c: Move ...
2064 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
2065 * testsuite/libgomp.c/taskloop-2.c: Move ...
2066 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
2067 * testsuite/libgomp.c/taskloop-3.c: Move ...
2068 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
2069 * testsuite/libgomp.c/taskloop-4.c: Move ...
2070 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
2071 * testsuite/libgomp.c/udr-1.c: Move ...
2072 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
2073 * testsuite/libgomp.c/for-1.c: Move ...
2074 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
2075 * testsuite/libgomp.c/for-1.h: Move ...
2076 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
2077 * testsuite/libgomp.c/for-2.c: Move ...
2078 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
2079 * testsuite/libgomp.c/for-2.h: Move ...
2080 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
2081 * testsuite/libgomp.c/for-3.c: Move ...
2082 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
2083 * testsuite/libgomp.c/for-4.c: Move ...
2084 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
2085 * testsuite/libgomp.c/for-5.c: Move ...
2086 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
2087 * testsuite/libgomp.c/for-6.c: Move ...
2088 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
2089
2090 2018-05-02 Tom de Vries <tom@codesourcery.com>
2091
2092 PR libgomp/82428
2093 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
2094 __builtin_goacc_parlevel_{id,size}.
2095 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
2096 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
2097 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
2098 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
2099 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
2100 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
2101 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
2102 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
2103 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
2104 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
2105 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
2106 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
2107 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
2108 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
2109 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
2110 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
2111 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
2112 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
2113 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
2114 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
2115 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
2116 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
2117 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
2118
2119 2018-05-02 Tom de Vries <tom@codesourcery.com>
2120
2121 PR testsuite/85106
2122 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
2123
2124 2018-05-02 Tom de Vries <tom@codesourcery.com>
2125
2126 PR testsuite/85106
2127 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
2128
2129 2018-04-29 Julian Brown <julian@codesourcery.com>
2130 Tom de Vries <tom@codesourcery.com>
2131
2132 PR testsuite/85527
2133 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
2134 arbitrary order for iterations of atomic subtract check.
2135
2136 2018-04-28 Tom de Vries <tom@codesourcery.com>
2137
2138 PR testsuite/85527
2139 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
2140 atomic capture results obtained in parallel loop to an array, instead of
2141 to a scalar.
2142
2143 2018-04-26 Tom de Vries <tom@codesourcery.com>
2144
2145 PR libgomp/84020
2146 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
2147 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
2148 (process_GOMP_NVPTX_JIT): New function.
2149 (link_ptx): Use process_GOMP_NVPTX_JIT.
2150
2151 2018-04-26 Richard Biener <rguenther@suse.de>
2152 Tom de Vries <tom@codesourcery.com>
2153
2154 PR lto/85422
2155 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
2156
2157 2018-04-26 Tom de Vries <tom@codesourcery.com>
2158
2159 PR target/85519
2160 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2161 recursion depth from 25 to 23.
2162 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2163
2164 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
2165
2166 * configure: Regenerated.
2167
2168 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
2169 Tom de Vries <tom@codesourcery.com>
2170
2171 PR target/85445
2172 * testsuite/libgomp.oacc-c++/ref-1.C: New.
2173
2174 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
2175
2176 PR libgomp/85463
2177 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
2178 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2179 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2180 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2181 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2182 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2183
2184 PR libfortran/85166
2185 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
2186 abort".
2187 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2188
2189 2018-04-19 Jakub Jelinek <jakub@redhat.com>
2190
2191 * configure: Regenerated.
2192
2193 2018-04-18 David Malcolm <dmalcolm@redhat.com>
2194
2195 PR jit/85384
2196 * configure: Regenerate.
2197
2198 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
2199 Tom de Vries <tom@codesourcery.com>
2200
2201 PR middle-end/84955
2202 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2203 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2204
2205 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2206
2207 PR fortran/83064
2208 PR testsuite/85346
2209 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2210 test from gfortran.dg to here.
2211
2212 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2213
2214 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2215 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2216
2217 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2218
2219 PR middle-end/84955
2220 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2221 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2222
2223 2018-04-05 Tom de Vries <tom@codesourcery.com>
2224
2225 PR target/85204
2226 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2227
2228 2018-03-26 Tom de Vries <tom@codesourcery.com>
2229
2230 PR tree-optimization/85063
2231 * testsuite/libgomp.c/switch-conversion-2.c: New test.
2232 * testsuite/libgomp.c/switch-conversion.c: New test.
2233 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2234 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2235
2236 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2237
2238 PR fortran/84381
2239 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2240 call abort by STOP n.
2241 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2242 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2243 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2244 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2245 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2246 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2247 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2248 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2249 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2250 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2251 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2252 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2253 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2254 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2255 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2256 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2257 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2258 * testsuite/libgomp.fortran/associate1.f90: Likewise.
2259 * testsuite/libgomp.fortran/associate2.f90: Likewise.
2260 * testsuite/libgomp.fortran/associate3.f90: Likewise.
2261 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2262 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2263 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2264 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2265 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2266 * testsuite/libgomp.fortran/character1.f90: Likewise.
2267 * testsuite/libgomp.fortran/character2.f90: Likewise.
2268 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2269 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2270 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2271 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2272 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2273 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2274 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2275 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2276 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2277 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2278 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2279 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2280 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2281 * testsuite/libgomp.fortran/do1.f90: Likewise.
2282 * testsuite/libgomp.fortran/do2.f90: Likewise.
2283 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2284 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2285 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2286 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2287 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2288 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2289 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2290 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2291 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2292 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2293 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2294 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2295 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2296 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2297 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2298 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2299 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2300 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2301 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2302 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2303 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2304 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2305 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2306 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2307 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2308 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2309 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2310 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2311 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2312 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2313 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2314 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2315 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2316 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2317 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2318 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2319 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2320 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2321 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2322 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2323 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2324 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2325 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2326 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2327 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2328 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2329 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2330 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2331 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2332 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2333 * testsuite/libgomp.fortran/lib2.f: Likewise.
2334 * testsuite/libgomp.fortran/lib3.f: Likewise.
2335 * testsuite/libgomp.fortran/lib4.f90: Likewise.
2336 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2337 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2338 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2339 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2340 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2341 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2342 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2343 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2344 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2345 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2346 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2347 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2348 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2349 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2350 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2351 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2352 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2353 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2354 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2355 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2356 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2357 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2358 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2359 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2360 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2361 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2362 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2363 * testsuite/libgomp.fortran/pr25162.f: Likewise.
2364 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2365 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2366 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2367 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2368 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2369 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2370 * testsuite/libgomp.fortran/pr28390.f: Likewise.
2371 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2372 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
2373 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
2374 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
2375 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
2376 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
2377 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
2378 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
2379 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
2380 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
2381 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
2382 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
2383 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
2384 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
2385 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
2386 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
2387 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
2388 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
2389 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
2390 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
2391 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
2392 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
2393 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
2394 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
2395 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
2396 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2397 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
2398 * testsuite/libgomp.fortran/reference1.f90: Likewise.
2399 * testsuite/libgomp.fortran/reference2.f90: Likewise.
2400 * testsuite/libgomp.fortran/retval1.f90: Likewise.
2401 * testsuite/libgomp.fortran/retval2.f90: Likewise.
2402 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
2403 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
2404 * testsuite/libgomp.fortran/simd1.f90: Likewise.
2405 * testsuite/libgomp.fortran/simd2.f90: Likewise.
2406 * testsuite/libgomp.fortran/simd3.f90: Likewise.
2407 * testsuite/libgomp.fortran/simd4.f90: Likewise.
2408 * testsuite/libgomp.fortran/simd5.f90: Likewise.
2409 * testsuite/libgomp.fortran/simd6.f90: Likewise.
2410 * testsuite/libgomp.fortran/simd7.f90: Likewise.
2411 * testsuite/libgomp.fortran/stack.f90: Likewise.
2412 * testsuite/libgomp.fortran/strassen.f90: Likewise.
2413 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
2414 * testsuite/libgomp.fortran/tabs2.f: Likewise.
2415 * testsuite/libgomp.fortran/target1.f90: Likewise.
2416 * testsuite/libgomp.fortran/target2.f90: Likewise.
2417 * testsuite/libgomp.fortran/target3.f90: Likewise.
2418 * testsuite/libgomp.fortran/target4.f90: Likewise.
2419 * testsuite/libgomp.fortran/target5.f90: Likewise.
2420 * testsuite/libgomp.fortran/target6.f90: Likewise.
2421 * testsuite/libgomp.fortran/target7.f90: Likewise.
2422 * testsuite/libgomp.fortran/target8.f90: Likewise.
2423 * testsuite/libgomp.fortran/task1.f90: Likewise.
2424 * testsuite/libgomp.fortran/task2.f90: Likewise.
2425 * testsuite/libgomp.fortran/task3.f90: Likewise.
2426 * testsuite/libgomp.fortran/task4.f90: Likewise.
2427 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
2428 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
2429 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
2430 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
2431 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
2432 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2433 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2434 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2435 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
2436 * testsuite/libgomp.fortran/udr1.f90: Likewise.
2437 * testsuite/libgomp.fortran/udr10.f90: Likewise.
2438 * testsuite/libgomp.fortran/udr11.f90: Likewise.
2439 * testsuite/libgomp.fortran/udr12.f90: Likewise.
2440 * testsuite/libgomp.fortran/udr13.f90: Likewise.
2441 * testsuite/libgomp.fortran/udr14.f90: Likewise.
2442 * testsuite/libgomp.fortran/udr15.f90: Likewise.
2443 * testsuite/libgomp.fortran/udr2.f90: Likewise.
2444 * testsuite/libgomp.fortran/udr3.f90: Likewise.
2445 * testsuite/libgomp.fortran/udr4.f90: Likewise.
2446 * testsuite/libgomp.fortran/udr5.f90: Likewise.
2447 * testsuite/libgomp.fortran/udr6.f90: Likewise.
2448 * testsuite/libgomp.fortran/udr7.f90: Likewise.
2449 * testsuite/libgomp.fortran/udr8.f90: Likewise.
2450 * testsuite/libgomp.fortran/udr9.f90: Likewise.
2451 * testsuite/libgomp.fortran/vla1.f90: Likewise.
2452 * testsuite/libgomp.fortran/vla2.f90: Likewise.
2453 * testsuite/libgomp.fortran/vla3.f90: Likewise.
2454 * testsuite/libgomp.fortran/vla4.f90: Likewise.
2455 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2456 * testsuite/libgomp.fortran/vla6.f90: Likewise.
2457 * testsuite/libgomp.fortran/vla7.f90: Likewise.
2458 * testsuite/libgomp.fortran/vla8.f90: Likewise.
2459 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
2460 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
2461 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2462 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2463 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2464 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2465 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2466 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2467 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2468 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2469 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2470 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
2471 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2472 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
2473 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
2474 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2475 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2476 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2477 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2478 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2479 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2480 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2481 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2482 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
2483 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
2484 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2485 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2486 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2487 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2488 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2489 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2490 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2491 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2492 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2493 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2494 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2495 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2496 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2497 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2498 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2499 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2500 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2501 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2502 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2503 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2504 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2505 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2506 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2507 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2508 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2509 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2510 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2511 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2512 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2513 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2514 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2515 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2516 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2517 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2518 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2519 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2520 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2521 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2522 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2523 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2524 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2525 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2526 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2527 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2528 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2529 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2530 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2531 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2532 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2533 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2534 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2535 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2536 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2537 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2538 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2539 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2540 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2541 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2542 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2543 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2544 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2545 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2546 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2547 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2548 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2549 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2550 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2551 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2552 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2553
2554 2018-03-20 Richard Biener <rguenther@suse.de>
2555
2556 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2557 parallelizable loop.
2558
2559 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2560
2561 PR target/84148
2562 * configure: Regenerate.
2563
2564 2018-02-16 Jakub Jelinek <jakub@redhat.com>
2565
2566 PR fortran/84418
2567 * libgomp.fortran/pr84418-1.f90: New test.
2568 * libgomp.fortran/pr84418-2.f90: New test.
2569
2570 2018-02-14 Jakub Jelinek <jakub@redhat.com>
2571
2572 PR fortran/84313
2573 * testsuite/libgomp.fortran/threadprivate4.f90: Add
2574 -std=f2003 -fall-intrinsics into dg-additional-options.
2575
2576 2018-02-08 Martin Jambor <mjambor@suse.cz>
2577
2578 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2579 clonable.
2580
2581 2018-02-08 Martin Jambor <mjambor@suse.cz>
2582
2583 * testsuite/libgomp.hsa.c/staticvar.c: New test.
2584
2585 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2586
2587 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2588 [__cplusplus]: Declare extern "C".
2589
2590 2018-02-07 Tom de Vries <tom@codesourcery.com>
2591
2592 PR libgomp/84217
2593 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2594
2595 2018-01-29 Christoph Spiel <cspiel@freenet.de>
2596 Jakub Jelinek <jakub@redhat.com>
2597
2598 PR libgomp/84096
2599 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2600 instead of omp_lock_t.
2601
2602 2018-01-25 Tom de Vries <tom@codesourcery.com>
2603
2604 PR target/84028
2605 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2606
2607 2018-01-24 Tom de Vries <tom@codesourcery.com>
2608
2609 PR target/83589
2610 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2611
2612 2018-01-24 Tom de Vries <tom@codesourcery.com>
2613
2614 PR target/81352
2615 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2616
2617 2018-01-19 Tom de Vries <tom@codesourcery.com>
2618 Cesar Philippidis <cesar@codesourcery.com>
2619
2620 PR target/83920
2621 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2622 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2623
2624 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2625
2626 Update copyright years.
2627
2628 * libgomp.texi: Bump @copying's copyright year.
2629
2630 2017-12-30 Tom de Vries <tom@codesourcery.com>
2631
2632 PR libgomp/83046
2633 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2634 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2635
2636 2017-12-27 Tom de Vries <tom@codesourcery.com>
2637
2638 PR c++/83046
2639 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2640 (test_nonstatic): Fix return type to workaround PR83046.
2641
2642 2017-12-05 Jakub Jelinek <jakub@redhat.com>
2643
2644 PR testsuite/83281
2645 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2646 j suffix instead of i.
2647 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2648 Likewise.
2649
2650 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
2651
2652 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2653 call to acc_wait (1).
2654
2655 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2656
2657 PR fortran/81304
2658 * testsuite/libgomp.fortran/pr81304.f90: New test.
2659
2660 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2661
2662 PR fortran/81841
2663 * libgomp.fortran/pr81841.f90: New test.
2664
2665 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2666
2667 PR libgomp/83106
2668 * target.c (gomp_target_init): Compute lengths just once and
2669 use them in both malloc size and subsequent copying.
2670
2671 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2672
2673 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2674 * acinclude.m4: Add cet.m4.
2675 * configure: Regenerate.
2676 * Makefile.in: Likewise.
2677 * testsuite/Makefile.in: Likewise.
2678
2679 2017-11-15 Tom de Vries <tom@codesourcery.com>
2680
2681 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2682 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
2683 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2684 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
2685 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2686 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
2687
2688 2017-11-14 Tom de Vries <tom@codesourcery.com>
2689
2690 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2691 non-nvidia devices.
2692
2693 2017-11-07 Jakub Jelinek <jakub@redhat.com>
2694
2695 PR c++/82835
2696 * testsuite/libgomp.c++/pr82835.C: New test.
2697
2698 2017-11-06 Martin Liska <mliska@suse.cz>
2699
2700 * testsuite/libgomp.c++/loop-2.C: Return a value
2701 for functions with non-void return type, or change type to void,
2702 or add -Wno-return-type for test.
2703 * testsuite/libgomp.c++/loop-4.C: Likewise.
2704 * testsuite/libgomp.c++/parallel-1.C: Likewise.
2705 * testsuite/libgomp.c++/shared-1.C: Likewise.
2706 * testsuite/libgomp.c++/single-1.C: Likewise.
2707 * testsuite/libgomp.c++/single-2.C: Likewise.
2708
2709 2017-10-31 Tom de Vries <tom@codesourcery.com>
2710
2711 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2712 "do {} while (false)".
2713 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2714 after HSA_DEBUG call.
2715
2716 2017-10-28 Jakub Jelinek <jakub@redhat.com>
2717
2718 * target.c (struct gomp_coalesce_buf): New type.
2719 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2720 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2721 (gomp_copy_host2dev): Add CBUF argument, if copying into
2722 the cached ranges, memcpy into buffer instead of copying
2723 into device.
2724 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2725 Add CBUF argument, pass it through to other calls.
2726 (gomp_map_vars): Aggregate copies from host to device if small enough
2727 and with small enough gaps in between into memcpy into a buffer and
2728 fewer host to device copies from the buffer.
2729 (gomp_update): Adjust gomp_copy_host2dev caller.
2730
2731 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
2732
2733 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2734 run" directive.
2735 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2736 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2737 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2738 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2739
2740 2017-10-16 Tom de Vries <tom@codesourcery.com>
2741
2742 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2743 openacc_nvidia_accel_selected.
2744 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2745 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2746 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2747 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2748 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2749 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2750 openacc_nvidia_accel_selected. Skip for shared memory device.
2751 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2752 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2753
2754 2017-10-09 Martin Jambor <mjambor@suse.cz>
2755
2756 PR hsa/82416
2757 * testsuite/libgomp.hsa.c/pr82416.c: New test.
2758
2759 2017-10-07 Tom de Vries <tom@codesourcery.com>
2760
2761 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2762 Remove acc_device_nvidia references.
2763 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2764 Same.
2765
2766 2017-10-05 Tom de Vries <tom@codesourcery.com>
2767
2768 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2769 vector_length(32) clause from acc parallel directive.
2770 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2771
2772 2017-10-04 Tom de Vries <tom@codesourcery.com>
2773
2774 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2775 (main): Reduce sum of arr elements. Assert that hres is exactly
2776 representable in 32-bit floating point.
2777 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2778 (main): Reduce sum of arr elements. Assert that hres and hmres are
2779 exactly representable in 32-bit floating point.
2780 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2781
2782 2017-09-28 Tom de Vries <tom@codesourcery.com>
2783
2784 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2785 setting.
2786 * testsuite/libgomp.c++/pr69393.C: Same.
2787 * testsuite/libgomp.c++/taskloop-1.C: Same.
2788 * testsuite/libgomp.c++/taskloop-3.C: Same.
2789 * testsuite/libgomp.c++/taskloop-4.C: Same.
2790 * testsuite/libgomp.c/for-4.c: Same.
2791 * testsuite/libgomp.c/pr66199-3.c: Same.
2792 * testsuite/libgomp.c/pr66199-4.c: Same.
2793 * testsuite/libgomp.c/pr66199-6.c: Same.
2794 * testsuite/libgomp.c/taskloop-1.c: Same.
2795 * testsuite/libgomp.c/taskloop-3.c: Same.
2796 * testsuite/libgomp.c/taskloop-4.c: Same.
2797 * testsuite/libgomp.fortran/aligned1.f03: Same.
2798 * testsuite/libgomp.fortran/condinc1.f: Same.
2799 * testsuite/libgomp.fortran/condinc3.f90: Same.
2800 * testsuite/libgomp.fortran/crayptr1.f90: Same.
2801 * testsuite/libgomp.fortran/crayptr2.f90: Same.
2802 * testsuite/libgomp.fortran/crayptr3.f90: Same.
2803 * testsuite/libgomp.fortran/omp_cond1.f: Same.
2804 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2805 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2806 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2807 * testsuite/libgomp.fortran/recursion1.f90: Same.
2808 * testsuite/libgomp.fortran/target2.f90: Same.
2809 * testsuite/libgomp.fortran/target5.f90: Same.
2810 * testsuite/libgomp.fortran/task3.f90: Same.
2811
2812 2017-09-28 Tom de Vries <tom@codesourcery.com>
2813
2814 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2815 vector_length(32) clause from acc parallel directive.
2816 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2817
2818 2017-09-27 Tom de Vries <tom@codesourcery.com>
2819
2820 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2821 Remove acc_device_nvidia references.
2822
2823 2017-09-16 Tom de Vries <tom@codesourcery.com>
2824
2825 PR c/81875
2826 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2827
2828 2017-09-14 Tom de Vries <tom@codesourcery.com>
2829
2830 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2831 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2832 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2833 * testsuite/libgomp.c/c.exp: Include test-cases from
2834 libgomp.c-c++-common.
2835 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
2836 files.
2837
2838 2017-09-14 Jakub Jelinek <jakub@redhat.com>
2839
2840 PR c++/81314
2841 * testsuite/libgomp.c++/pr81314.C: New test.
2842
2843 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
2844
2845 * libgomp.texi (Top): www.openacc.org now uses https.
2846 (Enabling OpenACC): Ditto.
2847 (acc_get_num_devices): Ditto.
2848 (acc_set_device_type): Ditto.
2849 (acc_get_device_type): Ditto.
2850 (acc_set_device_num): Ditto.
2851 (acc_get_device_num): Ditto.
2852 (acc_async_test): Ditto.
2853 (acc_async_test_all): Ditto.
2854 (acc_wait): Ditto.
2855 (acc_wait_all): Ditto.
2856 (acc_wait_all_async): Ditto.
2857 (acc_wait_async): Ditto.
2858 (acc_init): Ditto.
2859 (acc_shutdown): Ditto.
2860 (acc_on_device): Ditto.
2861 (acc_malloc): Ditto.
2862 (acc_free): Ditto.
2863 (acc_copyin): Ditto.
2864 (acc_present_or_copyin): Ditto.
2865 (acc_create): Ditto.
2866 (acc_present_or_create): Ditto.
2867 (acc_copyout): Ditto.
2868 (acc_delete): Ditto.
2869 (acc_update_device): Ditto.
2870 (acc_update_self): Ditto.
2871 (acc_map_data): Ditto.
2872 (acc_unmap_data): Ditto.
2873 (acc_deviceptr): Ditto.
2874 (acc_hostptr): Ditto.
2875 (acc_is_present): Ditto.
2876 (acc_memcpy_to_device): Ditto.
2877 (acc_memcpy_from_device): Ditto.
2878 (acc_get_current_cuda_device): Ditto.
2879 (acc_get_current_cuda_context): Ditto.
2880 (acc_get_cuda_stream): Ditto.
2881 (acc_set_cuda_stream): Ditto.
2882 (ACC_DEVICE_TYPE): Ditto.
2883 (ACC_DEVICE_NUM): Ditto.
2884 (OpenACC Library Interoperability): Ditto.
2885
2886 2017-08-09 Jakub Jelinek <jakub@redhat.com>
2887
2888 PR c/81687
2889 * testsuite/libgomp.c/pr81687-1.c: New test.
2890 * testsuite/libgomp.c/pr81687-2.c: New test.
2891
2892 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2893
2894 PR c/69389
2895 * testsuite/libgomp.c/pr69389.c: New test.
2896 * testsuite/libgomp.c++/pr69389.C: New test.
2897
2898 2017-08-07 Tom de Vries <tom@codesourcery.com>
2899
2900 PR middle-end/78266
2901 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2902 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2903
2904 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2905
2906 PR c/45784
2907 * testsuite/libgomp.c/pr45784.c: New test.
2908 * testsuite/libgomp.c++/pr45784.C: New test.
2909
2910 2017-07-19 Tom de Vries <tom@codesourcery.com>
2911
2912 * testsuite/libgomp.oacc-c/vec.c: New test.
2913
2914 2017-07-03 Tom de Vries <tom@codesourcery.com>
2915
2916 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2917
2918 2017-06-27 Tom de Vries <tom@codesourcery.com>
2919
2920 * plugin/plugin-nvptx.c (notify_var): New function.
2921 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2922
2923 2017-06-27 Tom de Vries <tom@codesourcery.com>
2924
2925 * env.c (parse_unsigned_long_1): Factor out of ...
2926 (parse_unsigned_long): ... here.
2927 (parse_int_1): Factor out of ...
2928 (parse_int): ... here.
2929 (parse_int_secure): New function.
2930 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2931 * secure_getenv.h: Factor out of ...
2932 * plugin/plugin-hsa.c: ... here.
2933 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2934
2935 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2936
2937 PR c++/81130
2938 * testsuite/libgomp.c++/pr81130.C: New test.
2939
2940 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2941
2942 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2943 default args.
2944 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2945 dg-xfail-run-if default args.
2946
2947 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2948
2949 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2950 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2951
2952 2017-05-30 Jakub Jelinek <jakub@redhat.com>
2953
2954 PR libgomp/80822
2955 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2956 (gomp_affinity_init_level): Use it. Always analyze the core and thread
2957 sibling lists, depending on level just pick up what CPUs to put
2958 together into a place vs. whether add multiple ordered places.
2959
2960 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
2961
2962 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2963 * libgomp.map (OACC_2.0.1): Add these.
2964 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2965 for "acc_wait", and "acc_wait_all", respectively.
2966 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2967 for "acc_wait", and "acc_wait_all", respectively.
2968 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2969 * libgomp.texi (acc_wait, acc_wait_all): Update.
2970 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2971 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2972 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2973
2974 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2975 acc_present_or_copyin and acc_present_or_create procedures,
2976 respectively.
2977 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2978 generally different variants of OpenACC Runtime Library functions.
2979 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2980
2981 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2982 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2983
2984 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2985 of preprocessor definitions.
2986 * libgomp.h (strong_alias): Guard by "#ifdef
2987 HAVE_ATTRIBUTE_ALIAS".
2988 * oacc-mem.c: Provide "acc_pcreate" as alias for
2989 "acc_present_or_create", and "acc_pcopyin" as alias for
2990 "acc_present_or_copyin".
2991 * libgomp.map: New version "OACC_2.0.1".
2992 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2993 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2994 its content into...
2995 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2996 Extend testing.
2997
2998 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2999 when disabling nvptx offloading.
3000
3001 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
3002
3003 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
3004 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3005 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3006
3007 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
3008 * testsuite/lib/libgomp.exp
3009 (check_effective_target_openacc_nvidia_accel_configured): New
3010 proc.
3011 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
3012 (check_effective_target_c++): New procs.
3013 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
3014 (check_effective_target_c++): Likewise.
3015
3016 2017-05-22 Jakub Jelinek <jakub@redhat.com>
3017
3018 PR middle-end/80809
3019 * testsuite/libgomp.c/pr80809-2.c: New test.
3020 * testsuite/libgomp.c/pr80809-3.c: New test.
3021
3022 PR middle-end/80809
3023 * testsuite/libgomp.c/pr80809-1.c: New test.
3024
3025 PR middle-end/80853
3026 * testsuite/libgomp.c/pr80853.c: New test.
3027
3028 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
3029
3030 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
3031 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
3032 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3033 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3034 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3035
3036 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
3037 Debug output for failure.
3038
3039 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3040
3041 * testsuite/lib/libgomp.exp: Load scanlang.exp.
3042
3043 2017-04-27 Jakub Jelinek <jakub@redhat.com>
3044
3045 PR bootstrap/80531
3046 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
3047 bootstrap compare failures.
3048
3049 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
3050
3051 * testsuite/libgomp.c/target-36.c: New testcase.
3052
3053 2017-04-13 Jakub Jelinek <jakub@redhat.com>
3054
3055 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
3056 instead of char.
3057
3058 2017-04-11 Jakub Jelinek <jakub@redhat.com>
3059
3060 PR libgomp/80394
3061 * testsuite/libgomp.c/pr80394.c: New test.
3062
3063 2017-04-04 Jakub Jelinek <jakub@redhat.com>
3064
3065 PR libgomp/79876
3066 * config/posix/thread-stacksize.h: New file.
3067 * config/darwin/thread-stacksize.h: New file.
3068 * config/nvptx/thread-stacksize.h: New file.
3069 * env.c: Include thread-stacksize.h.
3070 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
3071 instead of 0. Call pthread_attr_setstacksize even if
3072 GOMP_DEFAULT_STACKSIZE is non-zero.
3073
3074 2017-03-30 Jakub Jelinek <jakub@redhat.com>
3075
3076 * env.c (initialize_env): Initialize stacksize to 0.
3077
3078 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
3079
3080 PR c++/80029
3081 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
3082
3083 2017-03-08 Jakub Jelinek <jakub@redhat.com>
3084
3085 PR c/79940
3086 * testsuite/libgomp.c/pr79940.c: New test.
3087
3088 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3089
3090 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
3091 targets.
3092 Add __float128 options.
3093
3094 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
3095
3096 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
3097 hppa*-*-* dg-skip-if directive.
3098
3099 2017-02-09 Jakub Jelinek <jakub@redhat.com>
3100
3101 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
3102 dg-skip-if directive into a comment.
3103
3104 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
3105 Chung-Lin Tang <cltang@codesourcery.com>
3106
3107 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
3108 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
3109 add additional case.
3110 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
3111 "openacc_nvidia_accel_selected".
3112 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
3113 Add num_workers(8) clause.
3114
3115 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
3116
3117 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
3118 hppa*-*-*.
3119 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
3120 include complex.h on hppa*-*-hpux*.
3121 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3122
3123 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
3124
3125 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
3126
3127 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
3128 GOMP_OFFLOAD_openacc_exec. Adjust all users.
3129 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
3130 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
3131 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
3132 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
3133 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
3134 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
3135 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
3136 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
3137
3138 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
3139
3140 * libgomp-plugin.h: #include <stdbool.h>.
3141 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
3142 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
3143 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
3144 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
3145 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
3146 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
3147 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
3148 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
3149 (GOMP_OFFLOAD_openacc_register_async_cleanup)
3150 (GOMP_OFFLOAD_openacc_async_test)
3151 (GOMP_OFFLOAD_openacc_async_test_all)
3152 (GOMP_OFFLOAD_openacc_async_wait)
3153 (GOMP_OFFLOAD_openacc_async_wait_async)
3154 (GOMP_OFFLOAD_openacc_async_wait_all)
3155 (GOMP_OFFLOAD_openacc_async_wait_all_async)
3156 (GOMP_OFFLOAD_openacc_async_set_async)
3157 (GOMP_OFFLOAD_openacc_create_thread_data)
3158 (GOMP_OFFLOAD_openacc_destroy_thread_data)
3159 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
3160 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
3161 (GOMP_OFFLOAD_openacc_get_cuda_stream)
3162 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
3163 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
3164 these.
3165 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
3166 (GOMP_OFFLOAD_unload_image): Fix argument types.
3167
3168 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3169
3170 * testsuite/lib/libgomp.exp
3171 (check_effective_target_hsa_offloading_selected_nocache): Fix up
3172 check_compile invocation. Fix up removal of executable. Drop
3173 bogus "2>&1" argument.
3174
3175 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
3176 directive.
3177
3178 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
3179 Martin Jambor <mjambor@suse.cz>
3180
3181 * plugin/hsa.h: Moved to top level include.
3182 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
3183
3184 2017-01-21 Jakub Jelinek <jakub@redhat.com>
3185
3186 PR other/79046
3187 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
3188 of cat to get version from BASE-VER file.
3189 * testsuite/Makefile.in: Regenerated.
3190
3191 2017-01-19 Jakub Jelinek <jakub@redhat.com>
3192
3193 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3194 for _WIN64.
3195
3196 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3197
3198 * plugin/hsa.h: Add GCC runtime library exception.
3199 * plugin/hsa_ext_finalize.h: Likewise.
3200
3201 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3202 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
3203 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3204 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3205 plugin/include/cuda as include dir and -ldl instead of -lcuda as
3206 library to link ptx plugin against.
3207 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3208 (CUDA_CALLS): Define.
3209 (cuda_lib, cuda_lib_inited): New variables.
3210 (init_cuda_lib): New function.
3211 (CUDA_CALL_PREFIX): Define.
3212 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3213 (CUDA_CALL): Use FN instead of (FN).
3214 (CUDA_CALL_NOCHECK): Define.
3215 (cuda_error, fini_streams_for_device, select_stream_for_async,
3216 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3217 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3218 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3219 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3220 CUDA_CALL_NOCHECK.
3221 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
3222 CUDA_CALL_NOCHECK.
3223 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3224 Use CUDA_CALL_NOCHECK.
3225 * plugin/cuda/cuda.h: New file.
3226 * config.h.in: Regenerated.
3227 * configure: Regenerated.
3228
3229 PR other/79046
3230 * configure.ac: Add GCC_BASE_VER.
3231 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3232 get version from BASE-VER file.
3233 * testsuite/Makefile.in: Regenerated.
3234 * configure: Regenerated.
3235 * Makefile.in: Regenerated.
3236
3237 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3238
3239 PR libgomp/60670
3240 * Makefile.am: Make fincludedir multilib-aware.
3241 * Makefile.in: Regenerate.
3242
3243 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3244
3245 Update copyright years.
3246
3247 * libgomp.texi: Bump @copying's copyright year.
3248
3249 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3250
3251 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3252 pthread_spinlock_t instead of gomp_mutex_t lock.
3253 (gomp_get_thread_pool): Likewise.
3254 (gomp_release_thread_pool): Likewise.
3255 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3256 Likewise.
3257
3258 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3259
3260 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3261 thread pool in case nthreads == 1.
3262
3263 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3264
3265 * config/nvptx/env.c: Delete.
3266 * icv.c: Move definitions of ICV variables back ...
3267 * env.c: ...here. Do not compile environment-related functionality if
3268 LIBGOMP_OFFLOADED_ONLY is set.
3269
3270 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3271
3272 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3273 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3274 * configure: Regenerate.
3275 * config.h.in: Likewise.
3276
3277 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3278
3279 * Makefile.in: Regenerate with automake-1.11.6.
3280 * aclocal.m4: Likewise.
3281 * configure: Likewise.
3282 * testsuite/Makefile.in: Likewise.
3283
3284 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
3285
3286 * config/nvptx/critical.c: Delete to use generic implementation.
3287
3288 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3289
3290 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3291 ../../affinity.c as fallback.
3292 * config/nvptx/affinity.c: Delete to use fallback implementation.
3293
3294 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
3295 Jakub Jelinek <jakub@redhat.com>
3296 Dmitry Melnik <dm@ispras.ru>
3297
3298 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3299 * Makefile.in. Regenerate.
3300 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3301 (LIBGOMP_USE_PTHREADS): ...here; new define.
3302 * configure: Regenerate.
3303 * config.h.in: Likewise.
3304 * config/posix/affinity.c: Move to...
3305 * affinity.c: ...here (new file). Guard use of Pthreads-specific
3306 interface by LIBGOMP_USE_PTHREADS.
3307 * critical.c: Split out GOMP_atomic_{start,end} into...
3308 * atomic.c: ...here (new file).
3309 * env.c: Split out ICV definitions into...
3310 * icv.c: ...here (new file) and...
3311 * icv-device.c: ...here. New file.
3312 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3313 (gomp_destroy_lock_30): Ditto.
3314 (gomp_set_lock_30): Ditto.
3315 (gomp_unset_lock_30): Ditto.
3316 (gomp_test_lock_30): Ditto.
3317 (gomp_init_nest_lock_30): Ditto.
3318 (gomp_destroy_nest_lock_30): Ditto.
3319 (gomp_set_nest_lock_30): Ditto.
3320 (gomp_unset_nest_lock_30): Ditto.
3321 (gomp_test_nest_lock_30): Ditto.
3322 * lock.c: New.
3323 * config/nvptx/lock.c: New.
3324 * config/nvptx/bar.c: New.
3325 * config/nvptx/bar.h: New.
3326 * config/nvptx/doacross.h: New.
3327 * config/nvptx/error.c: New.
3328 * config/nvptx/icv-device.c: New.
3329 * config/nvptx/mutex.h: New.
3330 * config/nvptx/pool.h: New.
3331 * config/nvptx/proc.c: New.
3332 * config/nvptx/ptrlock.h: New.
3333 * config/nvptx/sem.h: New.
3334 * config/nvptx/simple-bar.h: New.
3335 * config/nvptx/target.c: New.
3336 * config/nvptx/task.c: New.
3337 * config/nvptx/team.c: New.
3338 * config/nvptx/time.c: New.
3339 * config/posix/simple-bar.h: New.
3340 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
3341 (gomp_num_teams_var): Declare.
3342 (struct gomp_thread_pool): Change threads_dock member to
3343 gomp_simple_barrier_t.
3344 [__nvptx__] (gomp_thread): New implementation.
3345 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3346 (gomp_thread_destructor): Ditto.
3347 (gomp_init_thread_affinity): Ditto.
3348 * team.c: Guard uses of Pthreads-specific interfaces by
3349 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
3350 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3351 * config/nvptx/alloc.c: Delete.
3352 * config/nvptx/barrier.c: Ditto.
3353 * config/nvptx/fortran.c: Ditto.
3354 * config/nvptx/iter.c: Ditto.
3355 * config/nvptx/iter_ull.c: Ditto.
3356 * config/nvptx/loop.c: Ditto.
3357 * config/nvptx/loop_ull.c: Ditto.
3358 * config/nvptx/ordered.c: Ditto.
3359 * config/nvptx/parallel.c: Ditto.
3360 * config/nvptx/priority_queue.c: Ditto.
3361 * config/nvptx/sections.c: Ditto.
3362 * config/nvptx/single.c: Ditto.
3363 * config/nvptx/splay-tree.c: Ditto.
3364 * config/nvptx/work.c: Ditto.
3365 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3366 -foffload=-lgfortran in addition to -lgfortran.
3367 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3368 * plugin/plugin-nvptx.c: Include <limits.h>.
3369 (struct targ_fn_descriptor): Add new fields.
3370 (struct ptx_device): Ditto. Set them...
3371 (nvptx_open_device): ...here.
3372 (nvptx_adjust_launch_bounds): New.
3373 (nvptx_host2dev): Allow NULL 'nvthd'.
3374 (nvptx_dev2host): Ditto.
3375 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
3376 (link_ptx): Adjust log sizes.
3377 (nvptx_host2dev): Allow NULL 'nvthd'.
3378 (nvptx_dev2host): Ditto.
3379 (nvptx_set_clocktick): New. Use it...
3380 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
3381 fields.
3382 (GOMP_OFFLOAD_dev2dev): New.
3383 (nvptx_adjust_launch_bounds): New.
3384 (nvptx_stacks_size): New.
3385 (nvptx_stacks_alloc): New.
3386 (nvptx_stacks_free): New.
3387 (GOMP_OFFLOAD_run): New.
3388 (GOMP_OFFLOAD_async_run): New (stub).
3389
3390 2016-11-23 Martin Jambor <mjambor@suse.cz>
3391
3392 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
3393 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
3394 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3395
3396 2016-11-23 Martin Liska <mliska@suse.cz>
3397 Martin Jambor <mjambor@suse.cz>
3398
3399 * plugin/hsa.h: New file.
3400 * plugin/hsa_ext_finalize.h: New file.
3401 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
3402 header file unistd.h, and functions secure_getenv, __secure_getenv,
3403 getuid, geteuid, getgid and getegid.
3404 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
3405 -D_GNU_SOURCE.
3406 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
3407 Handle various cases of secure_getenv presence, add an implementation
3408 when we can test effective UID and GID.
3409 (struct hsa_runtime_fn_info): New structure.
3410 (hsa_runtime_fn_info hsa_fns): New variable.
3411 (hsa_runtime_lib): Likewise.
3412 (support_cpu_devices): Likewise.
3413 (init_enviroment_variables): Load newly introduced ENV
3414 variables.
3415 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
3416 (hsa_fatal): Likewise.
3417 (DLSYM_FN): New macro.
3418 (init_hsa_runtime_functions): New function.
3419 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
3420 structure. Depending on environment, also allow CPU devices.
3421 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
3422 (get_kernarg_memory_region): Likewise.
3423 (GOMP_OFFLOAD_init_device): Likewise.
3424 (destroy_hsa_program): Likewise.
3425 (init_basic_kernel_info): New function.
3426 (GOMP_OFFLOAD_load_image): Use it.
3427 (create_and_finalize_hsa_program): Call hsa run-time functions via
3428 hsa_fns structure.
3429 (create_single_kernel_dispatch): Likewise.
3430 (release_kernel_dispatch): Likewise.
3431 (init_single_kernel): Likewise.
3432 (parse_target_attributes): Allow up multiple HSA grid dimensions.
3433 (get_group_size): New function.
3434 (run_kernel): Likewise.
3435 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
3436 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
3437 structure.
3438 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
3439 * testsuite/libgomp-test-support.exp.in: Likewise.
3440 * Makefile.in: Regenerated.
3441 * aclocal.m4: Likewise.
3442 * config.h.in: Likewise.
3443 * configure: Likewise.
3444 * testsuite/Makefile.in: Likewise.
3445
3446 2016-11-15 Martin Jambor <mjambor@suse.cz>
3447 Alexander Monakov <amonakov@ispras.ru>
3448
3449 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
3450 mapping clauses to target constructs.
3451 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
3452
3453 2016-11-15 Matthias Klose <doko@ubuntu.com>
3454
3455 * configure: Regenerate.
3456
3457 2016-11-10 Jakub Jelinek <jakub@redhat.com>
3458
3459 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
3460 * omp_lib.h.in (openmp_version): Likewise.
3461 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
3462 of 201307.
3463 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3464
3465 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
3466 (fib_wrapper): Add map(from: x) clause.
3467 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
3468 (e_53_2): Likewise.
3469 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
3470 (accum): Add map(tmp) clause.
3471 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
3472 (accum): Add map(tofrom: tmp) clause.
3473 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
3474 (gramSchmidt): Likewise.
3475 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
3476 map(tofrom: sum) clause.
3477 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
3478 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
3479 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
3480 only allowed on the loop iterator.
3481 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
3482 * testsuite/libgomp.fortran/taskloop2.f90: New test.
3483 * testsuite/libgomp.fortran/taskloop4.f90: New test.
3484 * testsuite/libgomp.fortran/doacross1.f90: New test.
3485 * testsuite/libgomp.fortran/doacross3.f90: New test.
3486 * testsuite/libgomp.fortran/taskloop1.f90: New test.
3487 * testsuite/libgomp.fortran/taskloop3.f90: New test.
3488 * testsuite/libgomp.fortran/doacross2.f90: New test.
3489 * testsuite/libgomp.c/doacross-1.c (main): Add missing
3490 #pragma omp atomic read.
3491 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3492 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
3493
3494 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3495 Nathan Sidwell <nathan@acm.org>
3496
3497 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3498 to determine default geometry.
3499 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3500 dimension.
3501
3502 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3503
3504 * hashtab.h: Use standard GPLv3 with runtime exception
3505 boilerplate.
3506
3507 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3508
3509 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3510 size when allocating new thread.
3511
3512 2016-09-14 Marek Polacek <polacek@redhat.com>
3513
3514 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3515
3516 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3517
3518 PR fortran/71014
3519 * testsuite/libgomp.fortran/pr71014.f90: New test.
3520
3521 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3522
3523 PR middle-end/70895
3524 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3525 firstprivate clauses.
3526 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3527 copy clauses.
3528 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3529 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3530 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3531 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3532 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3533 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3534 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3535 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3536 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3537 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3538 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3539 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3540
3541 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
3542
3543 PR fortran/70598
3544 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3545
3546 2016-08-08 Jakub Jelinek <jakub@redhat.com>
3547
3548 PR c++/58706
3549 * testsuite/libgomp.c++/pr58706.C: New test.
3550
3551 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
3552
3553 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3554 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3555 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3556 Likewise.
3557 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3558 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3559 Likewise.
3560 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3561
3562 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3563 test, and don't hardcode -O0.
3564
3565 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
3566
3567 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3568
3569 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
3570
3571 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3572 test.
3573
3574 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
3575
3576 PR middle-end/71734
3577 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3578 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3579
3580 2016-07-01 Jakub Jelinek <jakub@redhat.com>
3581
3582 PR fortran/71717
3583 * testsuite/libgomp.fortran/associate3.f90: New test.
3584
3585 2016-06-17 Jakub Jelinek <jakub@redhat.com>
3586
3587 * testsuite/libgomp.c++/target-21.C: New test.
3588
3589 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3590
3591 * testsuite/libgomp.c++/target-20.C: New test.
3592
3593 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3594 Cesar Philippidis <cesar@codesourcery.com>
3595
3596 PR middle-end/71373
3597 * libgomp.oacc-c/nested-function-1.c: New file.
3598 * libgomp.oacc-c/nested-function-2.c: Likewise.
3599 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3600 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3601 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3602
3603 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3604
3605 PR c/71381
3606 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3607 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3608 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3609
3610 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
3611
3612 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3613 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3614
3615 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
3616
3617 PR c/70688
3618 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3619
3620 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3621
3622 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3623 instead of invalid schedule(static, 0).
3624 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3625
3626 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3627
3628 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3629 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3630 parameter, use to set async stream around call to gomp_unmap_vars,
3631 call gomp_unmap_vars() with 'do_copyfrom' set to true.
3632 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3633 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3634 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3635 (event_add): Add int parameter, initialize 'val' field when
3636 adding new ptx_event struct.
3637 (nvptx_evec): Adjust event_add() call arguments.
3638 (nvptx_host2dev): Likewise.
3639 (nvptx_dev2host): Likewise.
3640 (nvptx_wait_async): Likewise.
3641 (nvptx_wait_all_async): Likewise.
3642 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3643 pass to event_add() call.
3644 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3645 parameter.
3646 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3647 call openacc.register_async_cleanup_func() hook.
3648 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3649 * target.c (gomp_copy_from_async): Delete function.
3650 (gomp_map_vars): Remove async_refcount.
3651 (gomp_unmap_vars): Likewise.
3652 (gomp_load_image_to_device): Likewise.
3653 (omp_target_associate_ptr): Likewise.
3654 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3655 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3656 (gomp_copy_from_async): Remove.
3657
3658 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3659
3660 * target.c (gomp_device_copy): New function.
3661 (gomp_copy_host2dev): Likewise.
3662 (gomp_copy_dev2host): Likewise.
3663 (gomp_free_device_memory): Likewise.
3664 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3665 (gomp_map_pointer): Likewise.
3666 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3667 NULL value from alloc_func plugin hook.
3668 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3669 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3670 (gomp_unmap_vars): Likewise.
3671 (gomp_update): Adjust to call gomp_copy_dev2host and
3672 gomp_copy_host2dev functions.
3673 (gomp_unload_image_from_device): Handle false value from
3674 unload_image_func plugin hook.
3675 (gomp_init_device): Handle false value from init_device_func
3676 plugin hook.
3677 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3678 (omp_target_free): Adjust to call gomp_free_device_memory.
3679 (omp_target_memcpy): Handle return values from host2dev_func,
3680 dev2host_func, and dev2dev_func plugin hooks.
3681 (omp_target_memcpy_rect_worker): Likewise.
3682 (gomp_target_fini): Handle false value from fini_device_func
3683 plugin hook.
3684 * libgomp.h (struct gomp_device_descr): Adjust return type of
3685 init_device_func, fini_device_func, unload_image_func, free_func,
3686 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3687 * oacc-init.c (acc_shutdown_1): Handle false value from
3688 fini_device_func plugin hook.
3689 * oacc-host.c (host_init_device): Change return type to bool.
3690 (host_fini_device): Likewise.
3691 (host_unload_image): Likewise.
3692 (host_free): Likewise.
3693 (host_dev2host): Likewise.
3694 (host_host2dev): Likewise.
3695 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3696 (acc_memcpy_to_device): Likewise.
3697 (acc_memcpy_from_device): Likewise.
3698 (delete_copyout): Add libfnname parameter, handle free_func
3699 hook fatal error case.
3700 (acc_delete): Adjust delete_copyout call.
3701 (acc_copyout): Likewise.
3702 (update_dev_host): Move gomp_mutex_unlock to after
3703 host2dev/dev2host hook calls.
3704
3705 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3706 to 'hsa_error_msg', for clarity.
3707 (hsa_fatal): Likewise.
3708 (hsa_error): New function.
3709 (init_hsa_context): Change return type to bool, adjust to return
3710 false on error.
3711 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3712 return value.
3713 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3714 return false on error.
3715 (get_agent_info): Adjust to return NULL on error.
3716 (destroy_hsa_program): Change return type to bool, adjust to
3717 return false on error.
3718 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3719 (destroy_module): Change return type to bool, adjust to
3720 return false on error.
3721 (GOMP_OFFLOAD_unload_image): Likewise.
3722 (GOMP_OFFLOAD_fini_device): Likewise.
3723 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3724 (GOMP_OFFLOAD_free): Change to return false when called.
3725 (GOMP_OFFLOAD_dev2host): Likewise.
3726 (GOMP_OFFLOAD_host2dev): Likewise.
3727 (GOMP_OFFLOAD_dev2dev): Likewise.
3728
3729 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3730 (CUDA_CALL): Likewise.
3731 (CUDA_CALL_ASSERT): Likewise.
3732 (map_init): Change return type to bool, use CUDA_CALL* macros.
3733 (map_fini): Likewise.
3734 (init_streams_for_device): Change return type to bool, adjust
3735 call to map_init.
3736 (fini_streams_for_device): Change return type to bool, adjust
3737 call to map_fini.
3738 (select_stream_for_async): Release stream_lock before calls to
3739 GOMP_PLUGIN_fatal, adjust call to map_init.
3740 (nvptx_init): Use CUDA_CALL* macros.
3741 (nvptx_attach_host_thread_to_device): Change return type to bool,
3742 use CUDA_CALL* macros.
3743 (nvptx_open_device): Use CUDA_CALL* macros.
3744 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3745 macros.
3746 (nvptx_get_num_devices): Use CUDA_CALL* macros.
3747 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3748 (nvptx_exec): Use CUDA_CALL* macros.
3749 (nvptx_alloc): Use CUDA_CALL* macros.
3750 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3751 (nvptx_host2dev): Likewise.
3752 (nvptx_dev2host): Likewise.
3753 (nvptx_wait): Use CUDA_CALL* macros.
3754 (nvptx_wait_async): Likewise.
3755 (nvptx_wait_all): Likewise.
3756 (nvptx_wait_all_async): Likewise.
3757 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3758 use CUDA_CALL* macros, adjust call to map_fini.
3759 (GOMP_OFFLOAD_init_device): Change return type to bool,
3760 adjust code accordingly.
3761 (GOMP_OFFLOAD_fini_device): Likewise.
3762 (GOMP_OFFLOAD_load_image): Adjust calls to
3763 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3764 use CUDA_CALL* macros.
3765 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3766 return code.
3767 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3768 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3769 handle error return.
3770 (GOMP_OFFLOAD_dev2host): Likewise.
3771 (GOMP_OFFLOAD_host2dev): Likewise.
3772 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3773 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3774
3775 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3776
3777 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3778 (acc_free): Likewise.
3779 (acc_memcpy_to_device): Likewise.
3780 (acc_memcpy_from_device): Likewise.
3781 (acc_deviceptr): Likewise.
3782 (acc_hostptr): Likewise.
3783 (acc_is_present): Likewise.
3784 (acc_map_data): Likewise.
3785 (acc_unmap_data): Likewise.
3786 (present_create_copy): Likewise.
3787 (delete_copyout): Likewise.
3788 (update_dev_host): Likewise.
3789 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3790 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3791 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3792 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3793 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3794 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3795 it only runs on nvptx targets.
3796 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3797 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3798 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3799 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3800 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3801 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3802 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3803 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3804 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3805 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3806 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3807 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3808 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3809 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3810 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3811 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3812 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3813 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3814 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3815 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3816 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3817 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3818 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3819
3820 2016-05-23 Martin Jambor <mjambor@suse.cz>
3821
3822 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3823
3824 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
3825
3826 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3827 to gomp_init_targets_once.
3828 (acc_set_device_type): Remove !cached_base_dev condition on call to
3829 gomp_init_targets_once, move call to before acc_device_lock acquire,
3830 to avoid deadlock.
3831 (acc_get_device_num): Remove !cached_base_dev condition on call to
3832 gomp_init_targets_once.
3833 (acc_set_device_num): Likewise.
3834
3835 2016-05-16 Martin Jambor <mjambor@suse.cz>
3836
3837 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3838
3839 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3840
3841 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3842 expected partitioning.
3843
3844 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3845
3846 PR middle-end/70626
3847 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3848 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3849 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3850
3851 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
3852
3853 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3854 non-fatal.
3855
3856 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3857
3858 PR middle-end/70680
3859 * testsuite/libgomp.c/pr70680-1.c: New test.
3860 * testsuite/libgomp.c/pr70680-2.c: New test.
3861
3862 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3863
3864 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3865 pass parameter variables to subroutines.
3866
3867 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3868
3869 PR middle-end/70643
3870 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3871
3872 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
3873
3874 PR testsuite/68242
3875 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3876 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3877
3878 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
3879
3880 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3881 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3882 GOACC_declare prototype.
3883
3884 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3885 Merge this file, and...
3886 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3887 ... this file, and...
3888 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3889 ... this file, and...
3890 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3891 ... this file, and...
3892 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3893 ... this file, and...
3894 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3895 ... this file, and...
3896 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3897 ... this file, and...
3898 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3899 ... this file, and...
3900 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3901 ... this file, and...
3902 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3903 ... this file, and...
3904 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3905 ... this file, and...
3906 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3907 ... this file, and...
3908 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3909 ... this file into...
3910 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3911 file.
3912
3913 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3914 Make failure observable.
3915
3916 2016-04-12 Jakub Jelinek <jakub@redhat.com>
3917
3918 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3919 field.
3920 * target.c (gomp_target_fallback_firstprivate,
3921 gomp_target_unshare_firstprivate): Removed.
3922 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3923 before waiting for dependencies.
3924 (gomp_target_task_fn): Don't copy firstprivate vars here.
3925 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3926 firstprivate_copies here.
3927 (gomp_create_target_task): Don't initialize firstprivate_copies field.
3928 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3929 explicit/implicit firstprivate.
3930
3931 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
3932
3933 PR lto/70289
3934 PR ipa/70348
3935 PR tree-optimization/70373
3936 PR middle-end/70533
3937 PR middle-end/70534
3938 PR middle-end/70535
3939 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3940 test.
3941 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3942 test.
3943 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3944 test.
3945 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3946 test.
3947 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3948 test.
3949 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3950 test.
3951 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3952 test.
3953 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3954 test.
3955 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3956 test.
3957 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3958 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3959 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3960 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3961 test.
3962 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3963 test.
3964 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3965 test.
3966 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3967 test.
3968 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3969 coverage.
3970 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3971 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3972 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3973 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3974 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3975 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3976 coverage.
3977 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3978 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3979 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3980 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3981 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3982 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3983 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3984 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3985 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3986 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3987 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3988 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3989 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3990 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3991 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3992
3993 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
3994 James Norris <jnorris@codesourcery.com>
3995 Nathan Sidwell <nathan@codesourcery.com>
3996 Julian Brown <julian@codesourcery.com>
3997 Cesar Philippidis <cesar@codesourcery.com>
3998 Chung-Lin Tang <cltang@codesourcery.com>
3999 Tom de Vries <tom@codesourcery.com>
4000
4001 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
4002 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
4003 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
4004 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
4005 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4006 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4007 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4008 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4009 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
4010 XFAIL.
4011 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4012 Incorporate...
4013 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
4014 file.
4015 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
4016 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
4017 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
4018 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
4019 Likewise.
4020 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4021 Likewise.
4022 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4023 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
4024 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4025 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4026 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4027 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4028 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4029 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4030 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4031 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
4032 Likewise.
4033 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
4034 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4035 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
4036 file...
4037 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
4038 file into...
4039 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
4040 file. Update.
4041 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
4042 file.
4043 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
4044 Likewise.
4045 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
4046 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
4047 ... this new file. Update.
4048 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
4049 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
4050 ... this new file. Update.
4051 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
4052 file. Incorporate...
4053 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
4054 file, and...
4055 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
4056 file, and...
4057 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
4058 file.
4059 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
4060
4061 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
4062
4063 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
4064 set-torture-options.
4065
4066 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
4067
4068 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
4069 gcc-dg-runtest.
4070 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4071 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
4072 -fno-builtin-acc_on_device instead of -O0.
4073 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
4074 -O0.
4075 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4076 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
4077 Likewise.
4078 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4079 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4080 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4081 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4082 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4083 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4084 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4085 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4086 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4087 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4088 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4089 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4090 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4091 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4092 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4093 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4094 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4095 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
4096 Don't specify -O2.
4097 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
4098 Likewise.
4099 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
4100 Likewise.
4101
4102 2016-03-24 Martin Liska <mliska@suse.cz>
4103
4104 * plugin/plugin-hsa.c (packet_store_release): New function
4105 that is taken from the HSA runtime manual.
4106 (GOMP_OFFLOAD_run): Use the function.
4107
4108 2016-03-23 Jakub Jelinek <jakub@redhat.com>
4109
4110 PR c++/70376
4111 * testsuite/libgomp.c++/pr70376.C: New test.
4112
4113 2016-03-23 Tom de Vries <tom@codesourcery.com>
4114
4115 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
4116 initialization of lresult and lvresult.
4117 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
4118
4119 2016-03-23 James Norris <jnorris@codesourcery.com>
4120 Daichi Fukuoka <dc-fukuoka@sgi.com>
4121
4122 PR libgomp/69414
4123 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
4124 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
4125 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4126 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
4127
4128 2016-03-23 Martin Liska <mliska@suse.cz>
4129
4130 PR hsa/70337
4131 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
4132 argument just in case a dispatched kernel uses that argument.
4133
4134 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
4135
4136 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
4137 -ftree-parallelize-loops/-fopenacc changes.
4138 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
4139 Likewise.
4140 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4141 Likewise.
4142 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
4143 Likewise.
4144 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
4145 Likewise.
4146 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4147 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4148
4149 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
4150
4151 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
4152 always_ld_library_path the path to libgcc_s.
4153
4154 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
4155
4156 PR testsuite/70009
4157 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
4158
4159 2016-03-09 Tom de Vries <tom@codesourcery.com>
4160
4161 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
4162 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
4163 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4164 Same.
4165 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
4166 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
4167 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
4168 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
4169
4170 2016-03-07 Martin Jambor <mjambor@suse.cz>
4171
4172 * testsuite/lib/libgomp.exp
4173 (check_effective_target_hsa_offloading_selected_nocache): New.
4174 (check_effective_target_hsa_offloading_selected): Likewise.
4175 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4176 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
4177 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4178 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4179 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4180 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4181 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4182 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4183 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4184 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4185 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4186 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4187 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4188 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4189 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4190 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4191 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4192
4193 2016-03-07 Martin Jambor <mjambor@suse.cz>
4194
4195 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4196 non-shared memory accelerators.
4197 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4198 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4199 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4200 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4201 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4202 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4203 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4204 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4205 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4206
4207 2016-03-07 Martin Jambor <mjambor@suse.cz>
4208
4209 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4210 ALWAYS_CFLAGS.
4211
4212 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4213
4214 PR libgomp/69555
4215 * testsuite/libgomp.c++/pr69555-1.C: New test.
4216 * testsuite/libgomp.c++/pr69555-2.C: New test.
4217
4218 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
4219 Martin Jambor <mjambor@suse.cz>
4220
4221 * testsuite/lib/libgomp.exp
4222 (check_effective_target_offload_device_shared_as): New proc.
4223 * testsuite/libgomp.c++/declare_target-1.C: New test.
4224
4225 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4226
4227 PR driver/68463
4228 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4229
4230 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4231
4232 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4233 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4234 dims.
4235 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4236 -ftree-parallelize-loops/-fopenacc changes.
4237 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4238 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4239 Likewise.
4240 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4241 Likewise.
4242 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4243 Likewise.
4244 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4245 Likewise.
4246 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4247 Likewise.
4248 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4249 Likewise.
4250 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4251 Likewise.
4252 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4253 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4254 Likewise.
4255 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4256 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4257 Likewise.
4258 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4259 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4260 Likewise.
4261
4262 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4263
4264 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4265
4266 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4267
4268 PR driver/69805
4269 * testsuite/libgomp.c/pr69805.c: New test.
4270
4271 2016-02-16 Tom de Vries <tom@codesourcery.com>
4272
4273 PR lto/67709
4274 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4275
4276 2016-02-09 Tom de Vries <tom@codesourcery.com>
4277
4278 PR tree-optimization/69599
4279 * testsuite/libgomp.c/omp-nested-3.c: New test.
4280 * testsuite/libgomp.c/pr46032-2.c: New test.
4281 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4282 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4283
4284 2016-02-09 Tom de Vries <tom@codesourcery.com>
4285
4286 PR lto/69707
4287 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4288
4289 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4290
4291 * testsuite/libgomp.c/target-31.c: Fix testcase.
4292
4293 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4294
4295 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4296 clause.
4297 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4298 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4299 reduction and map clauses.
4300 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4301
4302 2016-02-02 James Norris <jnorris@codesourcery.com>
4303
4304 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4305
4306 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4307
4308 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4309 * oacc-parallel.c (GOACC_host_data): Remove function definition.
4310
4311 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4312 cases.
4313
4314 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4315 variables.
4316 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4317 (hsa_kmt_lib): Set variables.
4318 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4319 always_ld_library_path.
4320 * Makefile.in: Regenerate.
4321 * configure: Likewise.
4322 * testsuite/Makefile.in: Likewise.
4323
4324 * plugin/configfrag.ac (offload_additional_options)
4325 (offload_additional_lib_paths): Don't amend for hsa offloading.
4326 * configure: Regenerate.
4327
4328 * plugin/configfrag.ac: Don't configure for offloading target if
4329 we don't build the corresponding plugin.
4330 * configure: Regenerate.
4331
4332 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4333
4334 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4335 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4336
4337 2016-01-26 Tom de Vries <tom@codesourcery.com>
4338
4339 PR tree-optimization/69110
4340 * testsuite/libgomp.c/pr69110.c: New test.
4341
4342 2016-01-25 Richard Biener <rguenther@suse.de>
4343
4344 PR lto/69393
4345 * testsuite/libgomp.c++/pr69393.C: New testcase.
4346
4347 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
4348
4349 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4350 function wasn't mapped to the device with non-shared memory.
4351
4352 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
4353
4354 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4355
4356 2016-01-19 Martin Jambor <mjambor@suse.cz>
4357 Martin Liska <mliska@suse.cz>
4358
4359 * plugin/Makefrag.am: Add HSA plugin requirements.
4360 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4361 (HSA_RUNTIME_LIB): Likewise.
4362 (HSA_RUNTIME_CPPFLAGS): Likewise.
4363 (HSA_RUNTIME_INCLUDE): New substitution.
4364 (HSA_RUNTIME_LIB): Likewise.
4365 (HSA_RUNTIME_LDFLAGS): Likewise.
4366 (hsa-runtime): New configure option.
4367 (hsa-runtime-include): Likewise.
4368 (hsa-runtime-lib): Likewise.
4369 (PLUGIN_HSA): New substitution variable.
4370 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4371 configure options.
4372 (PLUGIN_HSA_CPPFLAGS): Likewise.
4373 (PLUGIN_HSA_LDFLAGS): Likewise.
4374 (PLUGIN_HSA_LIBS): Likewise.
4375 Check that we have access to HSA run-time.
4376 * libgomp-plugin.h (offload_target_type): New element
4377 OFFLOAD_TARGET_TYPE_HSA.
4378 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
4379 args.
4380 (bool gomp_create_target_task): Updated.
4381 (gomp_device_descr): Extra parameter of run_func and async_run_func,
4382 new field can_run_func.
4383 * libgomp_g.h (GOMP_target_ext): Update prototype.
4384 * oacc-host.c (host_run): Added a new parameter args.
4385 * target.c (calculate_firstprivate_requirements): New function.
4386 (copy_firstprivate_data): Likewise.
4387 (gomp_target_fallback_firstprivate): Use them.
4388 (gomp_target_unshare_firstprivate): New function.
4389 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
4390 devices.
4391 (GOMP_target): Do host fallback for all shared memory devices. Do not
4392 pass any args to plugins.
4393 (GOMP_target_ext): Introduce device-specific argument parameter args.
4394 Allow host fallback if device shares memory. Do not remap data if
4395 device has shared memory.
4396 (gomp_target_task_fn): Likewise. Also treat shared memory devices
4397 like host fallback for mappings.
4398 (GOMP_target_data): Treat shared memory devices like host fallback.
4399 (GOMP_target_data_ext): Likewise.
4400 (GOMP_target_update): Likewise.
4401 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
4402 gomp_create_target_task.
4403 (GOMP_target_enter_exit_data): Likewise.
4404 (omp_target_alloc): Treat shared memory devices like host fallback.
4405 (omp_target_free): Likewise.
4406 (omp_target_is_present): Likewise.
4407 (omp_target_memcpy): Likewise.
4408 (omp_target_memcpy_rect): Likewise.
4409 (omp_target_associate_ptr): Likewise.
4410 (gomp_load_plugin_for_device): Also load can_run.
4411 * task.c (GOMP_PLUGIN_target_task_completion): Free
4412 firstprivate_copies.
4413 (gomp_create_target_task): Accept new argument args and store it to
4414 ttask.
4415 * plugin/plugin-hsa.c: New file.
4416
4417 2016-01-18 Tom de Vries <tom@codesourcery.com>
4418
4419 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
4420 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
4421 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
4422 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
4423 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
4424 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
4425 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
4426 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
4427 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
4428 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
4429 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4430 Same.
4431 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4432 Same.
4433 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
4434 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
4435 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
4436 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
4437 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
4438 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
4439 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
4440 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4441 Same.
4442 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
4443
4444 2016-01-15 Jakub Jelinek <jakub@redhat.com>
4445
4446 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
4447
4448 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
4449
4450 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
4451
4452 2016-01-12 James Norris <jnorris@codesourcery.com>
4453
4454 * libgomp.texi: Updates for OpenACC.
4455
4456 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
4457
4458 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
4459
4460 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4461
4462 PR fortran/66680
4463 * testsuite/libgomp.fortran/pr66680.f90: New test.
4464
4465 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4466
4467 PR middle-end/68960
4468 * testsuite/libgomp.c/pr68960.c: New test.
4469
4470 2016-01-06 Nathan Sidwell <nathan@acm.org>
4471
4472 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
4473 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
4474
4475 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4476
4477 Update copyright years.
4478
4479 * libgomp.texi: Bump @copying's copyright year.
4480
4481 2015-12-31 Nathan Sidwell <nathan@acm.org>
4482
4483 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
4484 dg-additional-options syntax.
4485 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4486 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4487 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4488 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4489 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4490 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4491 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4492 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4493 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4494 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4495 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4496 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4497 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4498 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4499 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4500 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4501 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4502 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4503
4504 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4505
4506 * libgomp.h (REFCOUNT_LINK): Define.
4507 (struct splay_tree_key_s): Add link_key.
4508 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4509 Replace target address of the pointer with target address of newly
4510 mapped object in the splay tree. Set link pointer on target to the
4511 device address of the mapped object.
4512 (gomp_unmap_vars): Restore target address of the pointer in the splay
4513 tree for REFCOUNT_LINK objects after unmapping.
4514 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4515 declare target link" objects.
4516 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
4517 "omp declare target link" objects, which were mapped for the image.
4518 (gomp_exit_data): Restore target address of the pointer in the splay
4519 tree for REFCOUNT_LINK objects after unmapping.
4520 * testsuite/libgomp.c/target-link-1.c: New file.
4521
4522 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
4523
4524 * libgomp.h (gomp_device_state): New enum.
4525 (struct gomp_device_descr): Replace is_initialized with state.
4526 (gomp_fini_device): Remove declaration.
4527 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4528 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4529 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
4530 (acc_set_device_type): Use state instead of is_initialized.
4531 (acc_set_device_num): Likewise.
4532 * target.c (resolve_device): Use state instead of is_initialized.
4533 Do not initialize finalized device.
4534 (gomp_map_vars): Do nothing if device is finalized.
4535 (gomp_unmap_vars): Likewise.
4536 (gomp_update): Likewise.
4537 (GOMP_offload_register_ver): Use state instead of is_initialized.
4538 (GOMP_offload_unregister_ver): Likewise.
4539 (gomp_init_device): Likewise.
4540 (gomp_unload_device): Likewise.
4541 (gomp_fini_device): Remove.
4542 (gomp_get_target_fn_addr): Do nothing if device is finalized.
4543 (GOMP_target): Go to host fallback if device is finalized.
4544 (GOMP_target_ext): Likewise.
4545 (gomp_exit_data): Do nothing if device is finalized.
4546 (gomp_target_task_fn): Go to host fallback if device is finalized.
4547 (gomp_target_fini): New static function.
4548 (gomp_target_init): Use state instead of is_initialized.
4549 Call gomp_target_fini at exit.
4550
4551 2015-12-09 Tom de Vries <tom@codesourcery.com>
4552
4553 PR tree-optimization/68716
4554 * testsuite/libgomp.c/omp-nested-2.c: New test.
4555
4556 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
4557
4558 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4559 target openacc_nvidia_accel_selected.
4560 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4561 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4562 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4563 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4564
4565 2015-12-01 Julian Brown <julian@codesourcery.com>
4566 James Norris <James_Norris@mentor.com>
4567
4568 * oacc-parallel.c (GOACC_host_data): New function.
4569 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4570 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4571 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4572 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4573 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4574 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4575 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4576
4577 2015-11-30 James Norris <jnorris@codesourcery.com>
4578 Cesar Philippidis <cesar@codesourcery.com>
4579
4580 libgomp/
4581 * libgomp.oacc-fortran/routine-5.f90: New test.
4582 * libgomp.oacc-fortran/routine-7.f90: New test.
4583 * libgomp.oacc-fortran/routine-9.f90: New test.
4584
4585 2015-11-30 Tom de Vries <tom@codesourcery.com>
4586
4587 PR tree-optimization/46032
4588 * testsuite/libgomp.c/pr46032.c: New test.
4589
4590 2015-11-27 Jakub Jelinek <jakub@redhat.com>
4591
4592 PR libgomp/68579
4593 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4594 (gomp_create_target_task): Call it before freeing
4595 GOMP_TARGET_TASK_DATA tasks.
4596
4597 PR c/63326
4598 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4599 in between case label and OpenMP standalone directives.
4600 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4601
4602 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
4603
4604 * configure: Regenerate.
4605
4606 2015-11-26 Jakub Jelinek <jakub@redhat.com>
4607
4608 * testsuite/libgomp.c/target-35.c: New test.
4609
4610 2015-11-22 James Norris <jnorris@codesourcery.com>
4611 Cesar Philippidis <cesar@codesourcery.com>
4612
4613 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4614 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4615 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4616 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4617 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4618
4619 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4620
4621 PR middle-end/68221
4622 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4623 * testsuite/libgomp.c/reduction-12.c: Likewise.
4624 * testsuite/libgomp.c++/reduction-11.C: Likewise.
4625 * testsuite/libgomp.c++/reduction-12.C: Likewise.
4626
4627 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
4628
4629 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4630 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4631 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4632 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4633 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4634 and fix.
4635 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4636 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4637
4638 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4639
4640 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4641 worker & gang cases.
4642 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4643
4644 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
4645
4646 * config/nvptx/priority_queue.c: New file.
4647
4648 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4649
4650 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4651 sections.
4652
4653 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4654 Aldy Hernandez <aldyh@redhat.com>
4655 Ilya Verbin <ilya.verbin@intel.com>
4656
4657 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4658 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4659 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4660 iterators or IV by chunk size.
4661 * parallel.c (gomp_resolve_num_threads): Don't assume that
4662 if thr->ts.team is non-NULL, then pool must be non-NULL.
4663 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4664 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4665 GOMP_PLUGIN_target_task_completion.
4666 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4667 * Makefile.in: Regenerate.
4668 * libgomp.h: Shuffle prototypes and forward definitions around so
4669 priority queues can be defined.
4670 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4671 (enum gomp_target_task_state): New enum.
4672 (struct gomp_target_task): Add state, tgt, task and team fields.
4673 (gomp_create_target_task): Change return type to bool, add
4674 state argument.
4675 (gomp_target_task_fn): Change return type to bool.
4676 (struct gomp_device_descr): Add async_run_func.
4677 (struct gomp_task): Remove children, next_child, prev_child,
4678 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4679 Add pnode field.
4680 (struct gomp_taskgroup): Remove children.
4681 Add taskgroup_queue.
4682 (struct gomp_team): Change task_queue type to a priority queue.
4683 (splay_compare): Define inline.
4684 (priority_queue_offset): New.
4685 (priority_node_to_task): New.
4686 (task_to_priority_node): New.
4687 * oacc-mem.c: Do not include splay-tree.h.
4688 * priority_queue.c: New file.
4689 * priority_queue.h: New file.
4690 * splay-tree.c: Do not include splay-tree.h.
4691 (splay_tree_foreach_internal): New.
4692 (splay_tree_foreach): New.
4693 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4694 (splay_tree_callback): Define typedef.
4695 * target.c (splay_compare): Move to libgomp.h.
4696 (GOMP_target): Don't adjust *thr in any way around running offloaded
4697 task.
4698 (GOMP_target_ext): Likewise. Handle target nowait.
4699 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4700 return value from gomp_create_target_task, if false, fallthrough
4701 as if no dependencies exist.
4702 (gomp_target_task_fn): Change return type to bool, return true
4703 if the task should have another part scheduled later. Handle
4704 target nowait.
4705 (gomp_load_plugin_for_device): Initialize async_run.
4706 * task.c (gomp_init_task): Initialize children_queue.
4707 (gomp_clear_parent_in_list): New.
4708 (gomp_clear_parent_in_tree): New.
4709 (gomp_clear_parent): Handle priorities.
4710 (GOMP_task): Likewise.
4711 (priority_queue_move_task_first,
4712 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4713 New functions.
4714 (gomp_create_target_task): Use priority queues. Change return type
4715 to bool, add state argument, return false if for async
4716 {{enter,exit} data,update} constructs no dependencies need to be
4717 waited for, handle target nowait. Set task->fn to NULL instead of
4718 gomp_target_task_fn.
4719 (verify_children_queue): Remove.
4720 (priority_list_upgrade_task): New.
4721 (priority_queue_upgrade_task): New.
4722 (verify_task_queue): Remove.
4723 (priority_list_downgrade_task): New.
4724 (priority_queue_downgrade_task): New.
4725 (gomp_task_run_pre): Use priority queues.
4726 Abstract code out to priority_queue_downgrade_task.
4727 (gomp_task_run_post_handle_dependers): Use priority queues.
4728 (gomp_task_run_post_remove_parent): Likewise.
4729 (gomp_task_run_post_remove_taskgroup): Likewise.
4730 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
4731 tasks specially.
4732 (GOMP_taskwait): Likewise.
4733 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
4734 priority-queue_upgrade_task.
4735 (GOMP_taskgroup_start): Use priority queues.
4736 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
4737 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
4738 barrier.
4739 * taskloop.c (GOMP_taskloop): Handle priorities.
4740 * team.c (gomp_new_team): Call priority_queue_init.
4741 (free_team): Call priority_queue_free.
4742 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4743 team created for target nowait in implicit parallel region.
4744 (gomp_team_start): For nested check, test thr->ts.level instead of
4745 thr->ts.team != NULL.
4746 * testsuite/libgomp.c/doacross-3.c: New test.
4747 * testsuite/libgomp.c/ordered-5.c: New test.
4748 * testsuite/libgomp.c/priority.c: New test.
4749 * testsuite/libgomp.c/target-31.c: New test.
4750 * testsuite/libgomp.c/target-32.c: New test.
4751 * testsuite/libgomp.c/target-33.c: New test.
4752 * testsuite/libgomp.c/target-34.c: New test.
4753
4754 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4755
4756 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4757
4758 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4759 loop is sequential.
4760
4761 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4762
4763 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4764 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4765
4766 2015-11-12 James Norris <jnorris@codesourcery.com>
4767 Joseph Myers <joseph@codesourcery.com>
4768
4769 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4770 * oacc-parallel.c (GOACC_declare): New function.
4771 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4772 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4773 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4774 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4775 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4776
4777 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4778
4779 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4780
4781 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
4782
4783 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4784 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4785
4786 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4787
4788 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4789 inadvertent commit.
4790
4791 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4792
4793 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4794 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4795 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4796 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4797 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4798
4799 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
4800
4801 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4802 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4803
4804 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4805 Ilya Verbin <ilya.verbin@intel.com>
4806
4807 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4808 GOMP_loop_nonmonotonic_dynamic_start,
4809 GOMP_loop_nonmonotonic_guided_next,
4810 GOMP_loop_nonmonotonic_guided_start,
4811 GOMP_loop_ull_nonmonotonic_dynamic_next,
4812 GOMP_loop_ull_nonmonotonic_dynamic_start,
4813 GOMP_loop_ull_nonmonotonic_guided_next,
4814 GOMP_loop_ull_nonmonotonic_guided_start,
4815 GOMP_parallel_loop_nonmonotonic_dynamic,
4816 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4817 (GOMP_target_41): Renamed to ...
4818 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4819 arguments.
4820 (GOMP_target_data_41): Renamed to ...
4821 (GOMP_target_data_ext): ... this.
4822 (GOMP_target_update_41): Renamed to ...
4823 (GOMP_target_update_ext): ... this.
4824 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4825 GOMP_target_data_ext and GOMP_target_update_ext instead of
4826 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4827 Export GOMP_loop_nonmonotonic_dynamic_next,
4828 GOMP_loop_nonmonotonic_dynamic_start,
4829 GOMP_loop_nonmonotonic_guided_next,
4830 GOMP_loop_nonmonotonic_guided_start,
4831 GOMP_loop_ull_nonmonotonic_dynamic_next,
4832 GOMP_loop_ull_nonmonotonic_dynamic_start,
4833 GOMP_loop_ull_nonmonotonic_guided_next,
4834 GOMP_loop_ull_nonmonotonic_guided_start,
4835 GOMP_parallel_loop_nonmonotonic_dynamic and
4836 GOMP_parallel_loop_nonmonotonic_guided.
4837 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4838 GOMP_parallel_loop_nonmonotonic_guided,
4839 GOMP_loop_nonmonotonic_dynamic_start,
4840 GOMP_loop_nonmonotonic_guided_start,
4841 GOMP_loop_nonmonotonic_dynamic_next,
4842 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4843 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4844 GOMP_loop_ull_nonmonotonic_guided_start,
4845 GOMP_loop_ull_nonmonotonic_dynamic_next,
4846 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4847 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4848 functions.
4849 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
4850 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4851 Use gomp_map_val function.
4852 (gomp_target_fallback_firstprivate): New static function.
4853 (GOMP_target_41): Renamed to ...
4854 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4855 arguments. Move firstprivate fallback handling into a new
4856 function.
4857 (GOMP_target_data_41): Renamed to ...
4858 (GOMP_target_data_ext): ... this.
4859 (GOMP_target_update_41): Renamed to ...
4860 (GOMP_target_update_ext): ... this.
4861 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4862 gomp_map_0len_lookup instead of gomp_map_lookup.
4863 (omp_target_is_present): Use gomp_map_0len_lookup instead of
4864 gomp_map_lookup.
4865 * testsuite/libgomp.c/target-28.c: Likewise.
4866 * testsuite/libgomp.c/monotonic-1.c: New test.
4867 * testsuite/libgomp.c/monotonic-2.c: New test.
4868 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4869 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4870 * testsuite/libgomp.c/pr66199-5.c: New test.
4871 * testsuite/libgomp.c/pr66199-6.c: New test.
4872 * testsuite/libgomp.c/pr66199-7.c: New test.
4873 * testsuite/libgomp.c/pr66199-8.c: New test.
4874 * testsuite/libgomp.c/pr66199-9.c: New test.
4875 * testsuite/libgomp.c/reduction-11.c: New test.
4876 * testsuite/libgomp.c/reduction-12.c: New test.
4877 * testsuite/libgomp.c/reduction-13.c: New test.
4878 * testsuite/libgomp.c/reduction-14.c: New test.
4879 * testsuite/libgomp.c/reduction-15.c: New test.
4880 * testsuite/libgomp.c/target-12.c (main): Adjust for
4881 omp_target_is_present change for one-past-last element.
4882 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4883 the same var is both mapped and privatized.
4884 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4885 handling of zero-length array sections.
4886 * testsuite/libgomp.c/target-28.c: New test.
4887 * testsuite/libgomp.c/target-29.c: New test.
4888 * testsuite/libgomp.c/target-30.c: New test.
4889 * testsuite/libgomp.c/target-teams-1.c: New test.
4890 * testsuite/libgomp.c++/member-6.C: New test.
4891 * testsuite/libgomp.c++/member-7.C: New test.
4892 * testsuite/libgomp.c++/monotonic-1.C: New test.
4893 * testsuite/libgomp.c++/monotonic-2.C: New test.
4894 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4895 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4896 * testsuite/libgomp.c++/pr66199-3.C: New test.
4897 * testsuite/libgomp.c++/pr66199-4.C: New test.
4898 * testsuite/libgomp.c++/pr66199-5.C: New test.
4899 * testsuite/libgomp.c++/pr66199-6.C: New test.
4900 * testsuite/libgomp.c++/pr66199-7.C: New test.
4901 * testsuite/libgomp.c++/pr66199-8.C: New test.
4902 * testsuite/libgomp.c++/pr66199-9.C: New test.
4903 * testsuite/libgomp.c++/reduction-11.C: New test.
4904 * testsuite/libgomp.c++/reduction-12.C: New test.
4905 * testsuite/libgomp.c++/target-13.C: New test.
4906 * testsuite/libgomp.c++/target-14.C: New test.
4907 * testsuite/libgomp.c++/target-15.C: New test.
4908 * testsuite/libgomp.c++/target-16.C: New test.
4909 * testsuite/libgomp.c++/target-17.C: New test.
4910 * testsuite/libgomp.c++/target-18.C: New test.
4911 * testsuite/libgomp.c++/target-19.C: New test.
4912
4913 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4914
4915 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4916 and reduction copy.
4917 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4918 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4919 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4920 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4921 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4922 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4923 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4924 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4925 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4926 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4927 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4928 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4929 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4930 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4931
4932 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4933
4934 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4935 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4936 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4937 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4938 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4939 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4940 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4941 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4942
4943 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4944
4945 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4946 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4947 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4948 * oacc-host.c (host_openacc_exec): Likewise.
4949 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4950
4951 2015-11-03 Julian Brown <julian@codesourcery.com>
4952 Thomas Schwinge <thomas@codesourcery.com>
4953
4954 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4955 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4956 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4957 Likewise.
4958 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4959 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4960
4961 2015-11-03 James Norris <jnorris@codesourcery.com>
4962
4963 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4964 file.
4965 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4966 Likewise.
4967 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4968 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4969 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4970 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4971 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4972
4973 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4974
4975 * openacc.h (enum acc_device_t): Reformat. Ensure layout
4976 compatibility.
4977 (enum acc_async_t): Reformat.
4978 (acc_on_device): Declare compatible with builtin and provide C++
4979 wrapper.
4980 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4981
4982 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
4983 Cesar Philippidis <cesar@codesourcery.com>
4984
4985 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4986 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4987 ... this. Add a description of the test at the top of the file.
4988 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4989 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4990 ... this. Add a description of the test at the top of the file.
4991
4992 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4993
4994 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4995 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4996 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4997 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4998 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4999 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
5000
5001 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
5002
5003 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
5004 dimensions.
5005
5006 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
5007
5008 PR testsuite/68063
5009 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
5010
5011 2015-10-27 James Norris <jnorris@codesourcery.com>
5012
5013 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
5014 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
5015
5016 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
5017
5018 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
5019 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5020
5021 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
5022 acc_device_nvidia usage.
5023 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
5024 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5025 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
5026
5027 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
5028 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
5029
5030 PR libgomp/66518
5031 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
5032
5033 PR libgomp/65437
5034 PR libgomp/66518
5035 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
5036 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
5037
5038 2015-10-23 Tom de Vries <tom@codesourcery.com>
5039
5040 PR testsuite/68063
5041 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
5042
5043 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
5044
5045 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
5046 vector_length.
5047 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5048
5049 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
5050 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
5051
5052 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
5053 to 0 when mapnum is 0.
5054
5055 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
5056
5057 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
5058 Cast to int from int32_t.
5059
5060 2015-10-13 Jakub Jelinek <jakub@redhat.com>
5061 Aldy Hernandez <aldyh@redhat.com>
5062 Ilya Verbin <ilya.verbin@intel.com>
5063
5064 * config/linux/affinity.c (omp_get_place_num_procs,
5065 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5066 * config/linux/doacross.h: New file.
5067 * config/posix/affinity.c (omp_get_place_num_procs,
5068 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5069 * config/posix/doacross.h: New file.
5070 * env.c: Include gomp-constants.h.
5071 (struct gomp_task_icv): Rename run_sched_modifier to
5072 run_sched_chunk_size.
5073 (gomp_max_task_priority_var): New variable.
5074 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
5075 (handle_omp_display_env): Change _OPENMP value from 201307 to
5076 201511. Print OMP_MAX_TASK_PRIORITY.
5077 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
5078 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
5079 chunk_size and run_sched_modifier to run_sched_chunk_size.
5080 (omp_get_max_task_priority, omp_get_initial_device,
5081 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
5082 omp_get_partition_place_nums): New functions.
5083 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
5084 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
5085 to chunk_size.
5086 (omp_get_num_places_, omp_get_place_num_procs_,
5087 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
5088 omp_get_place_proc_ids_8_, omp_get_place_num_,
5089 omp_get_partition_num_places_, omp_get_partition_place_nums_,
5090 omp_get_partition_place_nums_8_, omp_get_initial_device_,
5091 omp_get_max_task_priority_): New functions.
5092 * libgomp_g.h (GOMP_loop_doacross_static_start,
5093 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
5094 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
5095 GOMP_loop_ull_doacross_dynamic_start,
5096 GOMP_loop_ull_doacross_guided_start,
5097 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
5098 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
5099 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
5100 GOMP_target_data_41, GOMP_target_update_41,
5101 GOMP_target_enter_exit_data): New prototypes.
5102 (GOMP_task): Add prototype argument.
5103 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
5104 (struct gomp_doacross_work_share): New type.
5105 (struct gomp_work_share): Add doacross field.
5106 (struct gomp_task_icv): Rename run_sched_modifier to
5107 run_sched_chunk_size.
5108 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
5109 GOMP_TASK_UNDEFERRED. Add comments.
5110 (struct gomp_task_depend_entry): Add comments.
5111 (struct gomp_task): Likewise.
5112 (struct gomp_taskgroup): Likewise.
5113 (struct gomp_target_task): New type.
5114 (struct gomp_team): Add comment.
5115 (gomp_get_place_proc_ids_8, gomp_doacross_init,
5116 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
5117 gomp_create_target_task, gomp_target_task_fn): New prototypes.
5118 (struct target_var_desc): New type.
5119 (struct target_mem_desc): Adjust comment. Use struct
5120 target_var_desc instead of splay_tree_key for list.
5121 (REFCOUNT_INFINITY): Define.
5122 (struct splay_tree_key_s): Remove copy_from field.
5123 (struct gomp_device_descr): Add dev2dev_func field.
5124 (enum gomp_map_vars_kind): New enum.
5125 (gomp_map_vars): Add one argument.
5126 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
5127 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
5128 omp_get_place_num_procs, omp_get_place_num_procs_,
5129 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
5130 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
5131 omp_get_place_num_, omp_get_partition_num_places,
5132 omp_get_partition_num_places_, omp_get_partition_place_nums,
5133 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
5134 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
5135 omp_target_free, omp_target_is_present, omp_target_memcpy,
5136 omp_target_memcpy_rect, omp_target_associate_ptr and
5137 omp_target_disassociate_ptr.
5138 (GOMP_4.0.2): Renamed to ...
5139 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
5140 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
5141 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
5142 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5143 GOMP_loop_doacross_static_start, GOMP_doacross_post,
5144 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
5145 GOMP_loop_ull_doacross_guided_start,
5146 GOMP_loop_ull_doacross_runtime_start,
5147 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
5148 GOMP_doacross_ull_wait.
5149 * libgomp.texi: Document omp_get_max_task_priority.
5150 Rename modifier argument to chunk_size for omp_set_schedule and
5151 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
5152 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
5153 to run_sched_chunk_size renaming.
5154 (GOMP_loop_ordered_runtime_start): Likewise.
5155 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5156 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5157 GOMP_parallel_loop_runtime_start): New functions.
5158 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
5159 to run_sched_chunk_size renaming.
5160 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
5161 GOMP_loop_doacross_guided_start): New functions or aliases.
5162 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
5163 run_sched_modifier to run_sched_chunk_size renaming.
5164 (GOMP_loop_ull_ordered_runtime_start): Likewise.
5165 (gomp_loop_ull_doacross_static_start,
5166 gomp_loop_ull_doacross_dynamic_start,
5167 gomp_loop_ull_doacross_guided_start,
5168 GOMP_loop_ull_doacross_runtime_start): New functions.
5169 (GOMP_loop_ull_doacross_static_start,
5170 GOMP_loop_ull_doacross_dynamic_start,
5171 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
5172 * oacc-mem.c (acc_map_data, present_create_copy,
5173 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
5174 to gomp_map_vars.
5175 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
5176 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
5177 instead of false to gomp_map_vars.
5178 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
5179 * omp.h.in (omp_lock_hint_t): New type.
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, omp_target_alloc, omp_target_free,
5185 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
5186 omp_target_associate_ptr, omp_target_disassociate_ptr): New
5187 prototypes.
5188 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
5189 (omp_lock_hint_none, omp_lock_hint_uncontended,
5190 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5191 omp_lock_hint_speculative): New parameters.
5192 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5193 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5194 omp_get_place_num, omp_get_partition_num_places,
5195 omp_get_partition_place_nums, omp_get_initial_device,
5196 omp_get_max_task_priority): New interfaces.
5197 (omp_set_schedule, omp_get_schedule): Rename modifier argument
5198 to chunk_size.
5199 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5200 (omp_lock_hint_none, omp_lock_hint_uncontended,
5201 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5202 omp_lock_hint_speculative): New parameters.
5203 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5204 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5205 omp_get_place_num, omp_get_partition_num_places,
5206 omp_get_partition_place_nums, omp_get_initial_device,
5207 omp_get_max_task_priority): New functions and subroutines.
5208 * ordered.c: Include stdarg.h and string.h.
5209 (MAX_COLLAPSED_BITS): Define.
5210 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5211 gomp_doacross_ull_init, GOMP_doacross_ull_post,
5212 GOMP_doacross_ull_wait): New functions.
5213 * target.c: Include errno.h.
5214 (resolve_device): If device is not initialized, call
5215 gomp_init_device on it.
5216 (gomp_map_lookup): New function.
5217 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5218 Don't bump refcount if REFCOUNT_INFINITY. Handle
5219 GOMP_MAP_ALWAYS_TO_P.
5220 (get_kind): Rename is_openacc argument to short_mapkind.
5221 (gomp_map_pointer): Use gomp_map_lookup.
5222 (gomp_map_fields_existing): New function.
5223 (gomp_map_vars): Rename is_openacc argument to short_mapkind
5224 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
5225 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5226 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5227 Adjust for tgt->list changed type and copy_from living in there.
5228 (gomp_copy_from_async): Adjust for tgt->list changed type and
5229 copy_from living in there.
5230 (gomp_unmap_vars): Likewise.
5231 (gomp_update): Likewise. Rename is_openacc argument to
5232 short_mapkind. Don't fail if object is not mapped.
5233 (gomp_load_image_to_device): Initialize refcount to
5234 REFCOUNT_INFINITY.
5235 (gomp_target_fallback): New function.
5236 (gomp_get_target_fn_addr): Likewise.
5237 (GOMP_target): Adjust gomp_map_vars caller, use
5238 gomp_get_target_fn_addr and gomp_target_fallback.
5239 (GOMP_target_41): New function.
5240 (gomp_target_data_fallback): New function.
5241 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5242 (GOMP_target_data_41): New function.
5243 (GOMP_target_update): Adjust gomp_update caller.
5244 (GOMP_target_update_41): New function.
5245 (gomp_exit_data, GOMP_target_enter_exit_data,
5246 gomp_target_task_fn, omp_target_alloc, omp_target_free,
5247 omp_target_is_present, omp_target_memcpy,
5248 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5249 omp_target_associate_ptr, omp_target_disassociate_ptr,
5250 gomp_load_plugin_for_device): New functions.
5251 * task.c: Include gomp-constants.h. Include taskloop.c
5252 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5253 (gomp_task_handle_depend): New function.
5254 (GOMP_task): Use it. Add priority argument. Use
5255 gomp-constant.h constants instead of hardcoded numbers.
5256 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5257 (gomp_create_target_task): New function.
5258 (verify_children_queue, verify_taskgroup_queue,
5259 verify_task_queue): New functions.
5260 (gomp_task_run_pre): Call verify_*_queue functions.
5261 If an upcoming tied task is about to leave the sibling or
5262 taskgroup queues in an invalid state, adjust appropriately.
5263 Remove taskgroup argument. Add comments.
5264 (gomp_task_run_post_handle_dependers): Add comments.
5265 (gomp_task_run_post_remove_parent): Likewise.
5266 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5267 (GOMP_taskwait): Likewise. Add comments.
5268 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5269 problem such that the first non parent_depends_on task does not
5270 end up at the end of the children queue.
5271 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5272 GOMP_TASK_UNDEFERRED.
5273 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5274 * taskloop.c: New file.
5275 * testsuite/lib/libgomp.exp
5276 (check_effective_target_offload_device_nonshared_as): New proc.
5277 * testsuite/libgomp.c/affinity-2.c: New test.
5278 * testsuite/libgomp.c/doacross-1.c: New test.
5279 * testsuite/libgomp.c/doacross-2.c: New test.
5280 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5281 Add map clause to target.
5282 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5283 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5284 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5285 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5286 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5287 Likewise.
5288 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5289 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5290 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5291 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5292 not defined. Use those where needed.
5293 * testsuite/libgomp.c/for-4.c: New test.
5294 * testsuite/libgomp.c/for-5.c: New test.
5295 * testsuite/libgomp.c/for-6.c: New test.
5296 * testsuite/libgomp.c/linear-1.c: New test.
5297 * testsuite/libgomp.c/ordered-4.c: New test.
5298 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5299 only allowed on the loop iterator.
5300 * testsuite/libgomp.c/pr66199-3.c: New test.
5301 * testsuite/libgomp.c/pr66199-4.c: New test.
5302 * testsuite/libgomp.c/reduction-7.c: New test.
5303 * testsuite/libgomp.c/reduction-8.c: New test.
5304 * testsuite/libgomp.c/reduction-9.c: New test.
5305 * testsuite/libgomp.c/reduction-10.c: New test.
5306 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5307 map(tofrom:s).
5308 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5309 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5310 * testsuite/libgomp.c/target-11.c: New test.
5311 * testsuite/libgomp.c/target-12.c: New test.
5312 * testsuite/libgomp.c/target-13.c: New test.
5313 * testsuite/libgomp.c/target-14.c: New test.
5314 * testsuite/libgomp.c/target-15.c: New test.
5315 * testsuite/libgomp.c/target-16.c: New test.
5316 * testsuite/libgomp.c/target-17.c: New test.
5317 * testsuite/libgomp.c/target-18.c: New test.
5318 * testsuite/libgomp.c/target-19.c: New test.
5319 * testsuite/libgomp.c/target-20.c: New test.
5320 * testsuite/libgomp.c/target-21.c: New test.
5321 * testsuite/libgomp.c/target-22.c: New test.
5322 * testsuite/libgomp.c/target-23.c: New test.
5323 * testsuite/libgomp.c/target-24.c: New test.
5324 * testsuite/libgomp.c/target-25.c: New test.
5325 * testsuite/libgomp.c/target-26.c: New test.
5326 * testsuite/libgomp.c/target-27.c: New test.
5327 * testsuite/libgomp.c/taskloop-1.c: New test.
5328 * testsuite/libgomp.c/taskloop-2.c: New test.
5329 * testsuite/libgomp.c/taskloop-3.c: New test.
5330 * testsuite/libgomp.c/taskloop-4.c: New test.
5331 * testsuite/libgomp.c++/ctor-13.C: New test.
5332 * testsuite/libgomp.c++/doacross-1.C: New test.
5333 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5334 Replace offload_device with offload_device_nonshared_as.
5335 * testsuite/libgomp.c++/for-12.C: New test.
5336 * testsuite/libgomp.c++/for-13.C: New test.
5337 * testsuite/libgomp.c++/for-14.C: New test.
5338 * testsuite/libgomp.c++/linear-1.C: New test.
5339 * testsuite/libgomp.c++/member-1.C: New test.
5340 * testsuite/libgomp.c++/member-2.C: New test.
5341 * testsuite/libgomp.c++/member-3.C: New test.
5342 * testsuite/libgomp.c++/member-4.C: New test.
5343 * testsuite/libgomp.c++/member-5.C: New test.
5344 * testsuite/libgomp.c++/ordered-1.C: New test.
5345 * testsuite/libgomp.c++/reduction-5.C: New test.
5346 * testsuite/libgomp.c++/reduction-6.C: New test.
5347 * testsuite/libgomp.c++/reduction-7.C: New test.
5348 * testsuite/libgomp.c++/reduction-8.C: New test.
5349 * testsuite/libgomp.c++/reduction-9.C: New test.
5350 * testsuite/libgomp.c++/reduction-10.C: New test.
5351 * testsuite/libgomp.c++/reference-1.C: New test.
5352 * testsuite/libgomp.c++/simd14.C: New test.
5353 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5354 * testsuite/libgomp.c++/target-5.C: New test.
5355 * testsuite/libgomp.c++/target-6.C: New test.
5356 * testsuite/libgomp.c++/target-7.C: New test.
5357 * testsuite/libgomp.c++/target-8.C: New test.
5358 * testsuite/libgomp.c++/target-9.C: New test.
5359 * testsuite/libgomp.c++/target-10.C: New test.
5360 * testsuite/libgomp.c++/target-11.C: New test.
5361 * testsuite/libgomp.c++/target-12.C: New test.
5362 * testsuite/libgomp.c++/taskloop-1.C: New test.
5363 * testsuite/libgomp.c++/taskloop-2.C: New test.
5364 * testsuite/libgomp.c++/taskloop-3.C: New test.
5365 * testsuite/libgomp.c++/taskloop-4.C: New test.
5366 * testsuite/libgomp.c++/taskloop-5.C: New test.
5367 * testsuite/libgomp.c++/taskloop-6.C: New test.
5368 * testsuite/libgomp.c++/taskloop-7.C: New test.
5369 * testsuite/libgomp.c++/taskloop-8.C: New test.
5370 * testsuite/libgomp.c++/taskloop-9.C: New test.
5371 * testsuite/libgomp.fortran/affinity1.f90: New test.
5372 * testsuite/libgomp.fortran/affinity2.f90: New test.
5373
5374 2015-10-13 Tom de Vries <tom@codesourcery.com>
5375
5376 PR tree-optimization/67476
5377 * testsuite/libgomp.c/autopar-3.c: New test.
5378 * testsuite/libgomp.c/autopar-4.c: New test.
5379 * testsuite/libgomp.c/autopar-5.c: New test.
5380 * testsuite/libgomp.c/autopar-6.c: New test.
5381 * testsuite/libgomp.c/autopar-7.c: New test.
5382 * testsuite/libgomp.c/autopar-8.c: New test.
5383
5384 2015-10-12 James Norris <jnorris@codesourcery.com>
5385
5386 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
5387 initializer.
5388
5389 2015-10-09 David Malcolm <dmalcolm@redhat.com>
5390
5391 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
5392 using load_gcc_lib.
5393
5394 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5395
5396 * oacc-ptx.h: Remove file, moving its content into...
5397 * config/nvptx/fortran.c: ... here...
5398 * config/nvptx/oacc-init.c: ..., here...
5399 * config/nvptx/oacc-parallel.c: ..., and here.
5400 * config/nvptx/openacc.f90: New file.
5401 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
5402 (link_ptx): Don't link in predefined bits of PTX code.
5403
5404 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5405 Bernd Schmidt <bernds@codesourcery.com>
5406
5407 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
5408 (struct targ_ptx_obj): New.
5409 (nvptx_tdata): Move earlier, change data format.
5410 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
5411 objects.
5412 (GOMP_OFFLOAD_load_image): Adjust.
5413
5414 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5415
5416 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
5417 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5418 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5419 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5420 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5421 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5422 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5423 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5424 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5425 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5426 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5427 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5428 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5429 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5430 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5431 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5432 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5433 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5434 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5435 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5436 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5437 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5438 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5439 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5440 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5441 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5442 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5443 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5444 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5445 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5446 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5447 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5448 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5449 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5450 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5451 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5452 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5453 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5454 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5455 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5456 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5457 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5458 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5459 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5460 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5461 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5462 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5463 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5464 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5465 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5466 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5467 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5468 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5469 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5470 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5471 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5472 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5473 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5474 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5475 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5476 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5477 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5478 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5479
5480 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5481
5482 * oacc-init.c (acc_on_device): Force optimization level.
5483
5484 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5485
5486 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
5487 (cuda_errlist): Delete.
5488 (cuda_error): Reimplement.
5489
5490 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5491
5492 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
5493 array.
5494 * libgomp.map (GOACC_parallel_keyed): New.
5495 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
5496 all callers.
5497 (GOACC_parallel_keyed): New interface. Lose geometry arguments
5498 and take keyed varargs list. Adjust call to exec_func.
5499 (GOACC_parallel): Force host fallback.
5500 * libgomp_g.h (GOACC_parallel): Remove.
5501 (GOACC_parallel_keyed): Declare.
5502 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5503 (stuct targ_gn_descriptor): Replace name field with launch field.
5504 (nvptx_exec): Lose separate geometry args, take array. Process
5505 dynamic dimensions and adjust.
5506 (struct nvptx_tdata): Replace fn_names field with fn_descs.
5507 (GOMP_OFFLOAD_load_image): Adjust for change in function table
5508 data.
5509 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5510 passing.
5511 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5512 passing.
5513
5514 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5515
5516 PR libgomp/67141
5517 * oacc-int.h (goacc_host_init): Add declaration.
5518 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5519 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5520
5521 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5522 Sebastian Pop <s.pop@samsung.com>
5523
5524 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5525 match o/p.
5526 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5527 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5528 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5529 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5530 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5531
5532 2015-09-03 Jakub Jelinek <jakub@redhat.com>
5533
5534 * configure.tgt: Add missing ;; in between nvptx and rtems
5535 snippets.
5536
5537 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5538
5539 * config/posix/pool.h (gomp_adjust_thread_attr): New.
5540 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5541 (gomp_thread_pool_reservoir): Add priority member.
5542 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5543 priority.
5544 (parse_thread_pools): Likewise.
5545 * team.c (gomp_team_start): Call configuration provided
5546 gomp_adjust_thread_attr(). Destroy thread attributes if
5547 necessary.
5548 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5549
5550 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5551
5552 * config/posix/pool.h: New.
5553 * config/rtems/pool.h: Likewise.
5554 * config/rtems/proc.c: Likewise.
5555 * libgomp.h (gomp_thread_destructor): Declare.
5556 * team.c: Include configuration provided "pool.h".
5557 (gomp_get_thread_pool): Define in configuration.
5558 (gomp_team_end): Call configuration defined
5559 gomp_release_thread_pool().
5560
5561 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5562
5563 * config/rtems/bar.c: New.
5564 * config/rtems/bar.h: Likewise.
5565 * config/rtems/mutex.c: Likewise.
5566 * config/rtems/mutex.h: Likewise.
5567 * config/rtems/sem.c: Likewise.
5568 * config/rtems/sem.h: Likewise.
5569 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5570 <sys/lock.h> header file.
5571 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5572 supported by Newlib.
5573 * configure: Regenerate.
5574
5575 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5576
5577 * team.c (gomp_new_thread_pool): Delete and move content to ...
5578 (gomp_get_thread_pool): ... new function. Allocate and
5579 initialize thread pool on demand.
5580 (get_last_team): Use gomp_get_thread_pool().
5581 (gomp_team_start): Delete thread pool initialization.
5582
5583 2015-09-03 Tom de Vries <tom@codesourcery.com>
5584
5585 PR tree-optimization/65637
5586 * testsuite/libgomp.c/autopar-2.c: New test.
5587
5588 2015-08-29 Tom de Vries <tom@codesourcery.com>
5589
5590 PR tree-optimization/46193
5591 * testsuite/libgomp.c/pr46193.c: New test.
5592
5593 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
5594
5595 libgomp/
5596 * libgomp.map: Add 4.0.2 version.
5597 * target.c (offload_image_descr): Add version field.
5598 (gomp_load_image_to_device): Add version argument. Adjust plugin
5599 call. Improve load mismatch diagnostic.
5600 (gomp_unload_image_from_device): Add version argument. Adjust plugin
5601 call.
5602 (GOMP_offload_regster): Make stub function, move bulk to ...
5603 (GOMP_offload_register_ver): ... here. Process version argument.
5604 (GOMP_offload_unregister): Make stub function, move bulk to ...
5605 (GOMP_offload_unregister_ver): ... here. Process version argument.
5606 (gomp_init_device): Process version field.
5607 (gomp_unload_device): Process version field.
5608 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5609 macros. Check plugin version.
5610 * libgomp.h (gomp_device_descr): Add version function field. Adjust
5611 loader and unloader types.
5612 * oacc-host.c: Include gomp-constants.h.
5613 (host_version): New.
5614 (host_load_image, host_unload_image): Adjust.
5615 (host_dispatch): Add host_version.
5616 * plugin/plugin-nvptx.c: Include gomp-constants.h.
5617 (GOMP_OFFLOAD_version): New.
5618 (GOMP_OFFLOAD_load_image): Add version arg and check it.
5619 (GOMP_OFFLOAD_unload_image): Likewise.
5620 * plugin/plugin-host.c: Include gomp-constants.h.
5621 (GOMP_OFFLOAD_version): New.
5622 (GOMP_OFFLOAD_load_image): Add version arg.
5623 (GOMP_OFFLOAD_unload_image): Likewise.
5624
5625 2015-08-24 Tom de Vries <tom@codesourcery.com>
5626
5627 PR tree-optimization/65468
5628 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5629
5630 2015-08-24 Tom de Vries <tom@codesourcery.com>
5631
5632 PR tree-optimization/65468
5633 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5634
5635 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
5636
5637 PR libgomp/66761
5638 PR libgomp/67303
5639 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5640 (gomp_iter_guided_next): Idem.
5641 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5642 (gomp_iter_ull_guided_next): Idem.
5643 * config/linux/wait.h (do_spin): Idem.
5644
5645 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5646
5647 * libgomp-plugin.h (enum offload_target_type): Remove
5648 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5649 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5650 * openacc.h (enum acc_device_t): Likewise.
5651 * openacc_lib.h: Likewise.
5652 * oacc-init.c (name_of_acc_device_t): Don't handle it.
5653 (acc_on_device): Just use __builtin_acc_on_device.
5654 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5655 of acc_on_device builtin.
5656 * plugin/plugin-host.h: Remove file.
5657 * plugin/plugin-host.c: Likewise, but salvage some content into...
5658 * oacc-host.c: ... this file.
5659 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5660 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5661 * Makefile.in: Regenerate.
5662 * configure: Likewise.
5663 * testsuite/lib/libgomp.exp
5664 (check_effective_target_openacc_host_nonshm_selected): Remove.
5665 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5666 ACC_DEVICE_TYPE=host_nonshm.
5667 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5668 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5669 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5670 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5671 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5672 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5673
5674 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5675 Jakub Jelinek <jakub@redhat.com>
5676
5677 * config/nvptx/affinity.c: New file.
5678 * config/nvptx/alloc.c: Likewise.
5679 * config/nvptx/bar.c: Likewise.
5680 * config/nvptx/barrier.c: Likewise.
5681 * config/nvptx/critical.c: Likewise.
5682 * config/nvptx/env.c: Likewise.
5683 * config/nvptx/error.c: Likewise.
5684 * config/nvptx/fortran.c: Likewise.
5685 * config/nvptx/iter.c: Likewise.
5686 * config/nvptx/iter_ull.c: Likewise.
5687 * config/nvptx/libgomp-plugin.c: Likewise.
5688 * config/nvptx/lock.c: Likewise.
5689 * config/nvptx/loop.c: Likewise.
5690 * config/nvptx/loop_ull.c: Likewise.
5691 * config/nvptx/mutex.c: Likewise.
5692 * config/nvptx/oacc-async.c: Likewise.
5693 * config/nvptx/oacc-cuda.c: Likewise.
5694 * config/nvptx/oacc-host.c: Likewise.
5695 * config/nvptx/oacc-init.c: Likewise.
5696 * config/nvptx/oacc-mem.c: Likewise.
5697 * config/nvptx/oacc-parallel.c: Likewise.
5698 * config/nvptx/oacc-plugin.c: Likewise.
5699 * config/nvptx/omp-lock.h: Likewise.
5700 * config/nvptx/ordered.c: Likewise.
5701 * config/nvptx/parallel.c: Likewise.
5702 * config/nvptx/proc.c: Likewise.
5703 * config/nvptx/ptrlock.c: Likewise.
5704 * config/nvptx/sections.c: Likewise.
5705 * config/nvptx/sem.c: Likewise.
5706 * config/nvptx/single.c: Likewise.
5707 * config/nvptx/splay-tree.c: Likewise.
5708 * config/nvptx/target.c: Likewise.
5709 * config/nvptx/task.c: Likewise.
5710 * config/nvptx/team.c: Likewise.
5711 * config/nvptx/time.c: Likewise.
5712 * config/nvptx/work.c: Likewise.
5713 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5714 * configure: Regenerate.
5715 * configure.tgt (config_path): Set to "nvptx" for target
5716 nvptx*-*-*.
5717
5718 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5719
5720 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5721
5722 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
5723
5724 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5725 (cuda_errlist): Constify.
5726 (errmsg): Move into ...
5727 (cuda_error): ... here. Make smaller.
5728 (_XSTR, _STR): Delete.
5729 (cuda_synames): Delete.
5730 (verify_device_library): Delete.
5731 (nvptx_init): Don't call it.
5732
5733 2015-07-28 Tom de Vries <tom@codesourcery.com>
5734
5735 * testsuite/libgomp.c/uns-outer-4.c: New test.
5736
5737 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5738
5739 * testsuite/libgomp.c/pr66714.c: New test.
5740
5741 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
5742
5743 PR libgomp/66950
5744 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5745 (fib_ref): New function.
5746 (fib): Correct corner cases in the recursion.
5747 (main): Replace the non-simd loop with fib_ref call.
5748 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5749 subroutine.
5750 (fibonacci): Lower the parameter N to 30. Correct accordingly check
5751 for the last array element value. Replace the non-simd loop with
5752 fib_ref call. Remove redundant b_ref array. Remove the comparison
5753 of the last array element with according Fibonacci sequence element.
5754 (fib): Correct corner cases in the recursion.
5755
5756 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5757
5758 * target.c (gomp_offload_image_to_device): Rename to ...
5759 (gomp_load_image_to_device): ... here.
5760 (GOMP_offload_register): Adjust call.
5761 (gomp_init_device): Likewise.
5762 (gomp_unload_image_from_device): New. Broken out of ...
5763 (GOMP_offload_unregister): ... here. Call it.
5764 (gomp_unload_device): New.
5765 * libgomp.h (gomp_unload_device): Declare.
5766 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5767 mem maps.
5768
5769 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
5770
5771 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5772 wait=-specific if.
5773 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5774 !=0 condition.
5775 (goacc_waits): Move !num_waits handling to ...
5776 (GOACC_wait): ... here, the only caller that might have zero waits.
5777
5778 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5779 (struct ptx_image_data): Move earlier, add fns field.
5780 (struct ptx_device): Add images and image_lock fields.
5781 (ptx_images, ptx_image_lock): Delete.
5782 (nvptx_open_device): Initialize images and image_lock fields.
5783 (nvptx_close_device): Destroy image_lock.
5784 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5785 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5786 fields.
5787
5788 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5789
5790 * target.c (GOMP_offload_register): Use int for device type arg.
5791 (GOMP_offload_unregister): Likewise.
5792
5793 * target.c (struct_offload_image_descr): Constify host_table.
5794 (gomp_offload_image_to_device): Likewise.
5795 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5796
5797 * libgomp.h (gomp_device_descr): Constify target data arguments.
5798 * target.c (struct offload_image_descr): Constify target_data.
5799 (gomp_offload_image_to_device): Likewise.
5800 (GOMP_offload_register): Likewise.
5801 (GOMP_offload_unrefister): Likewise.
5802 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5803 GOMP_OFFLOAD_unload_image): Constify target data.
5804 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5805 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5806
5807 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5808
5809 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5810 Workaround driver library const error.
5811 (struct nvptx_tdata, nvptx_tdata_t): New.
5812 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5813 type.
5814
5815 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
5816
5817 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5818 of EPS parameter from integer to real.
5819 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5820 type of EPS parameter from integer to real.
5821
5822 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5823
5824 * team.c (get_last_team): New.
5825 (gomp_new_team): Recycle last non-nested team if possible.
5826 (gomp_team_end): Move team work share list free lock destruction
5827 to ...
5828 (free_team): ... here.
5829
5830 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
5831
5832 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5833 and ref from int to double. Replaced their comparison with
5834 an inequality of their difference and EPS.
5835 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5836 comparison of pri and a reference number with an inequality of their
5837 difference and EPS.
5838 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5839 the comparison of sum and sum_ref with an inequality of their
5840 difference and EPS.
5841 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5842 the comparison of pri and a reference number with an inequality of
5843 their difference and EPS.
5844
5845 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
5846
5847 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5848 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5849 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5850 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5851 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5852 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5853 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5854 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5855 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5856 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5857 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5858 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5859 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5860 variables.
5861 (vec_mult): Likewise. Add #pragma omp taskwait.
5862 (main): Adjust caller.
5863 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5864 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5865 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5866 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5867 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5868 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5869 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5870 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5871 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5872 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5873 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5874 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5875 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5876 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5877 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5878 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5879 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5880 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5881 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5882 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5883 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5884 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5885 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5886 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5887 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5888 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5889 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5890 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5891 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5892 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5893 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5894 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5895 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5896 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5897 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5898 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5899 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5900 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5901 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5902 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5903 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5904 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5905 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5906 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5907 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5908 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5909 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5910 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5911 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5912 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5913 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5914 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5915 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5916 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5917 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5918 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5919 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5920 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5921 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5922 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5923 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5924 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5925 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5926 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5927 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5928 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5929 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5930 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5931 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5932 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5933 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5934 (vec_mult): Add !$omp taskwait.
5935 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5936 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5937 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5938 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5939 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5940 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5941 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5942 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5943 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5944 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5945 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5946 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5947 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5948 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5949 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5950 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5951 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5952 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5953 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5954 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5955 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5956 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5957 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5958 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5959 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5960 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5961 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5962 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5963 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5964 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5965 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5966 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5967 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5968 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5969 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5970 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5971 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5972 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5973 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5974 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5975 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5976 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5977 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5978 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5979 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5980 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5981 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5982 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5983 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5984 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5985 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5986 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5987 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5988 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5989 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5990 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5991 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5992 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5993 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5994 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5995 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5996 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5997 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5998 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5999 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
6000 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
6001 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
6002
6003 2015-07-10 Tom de Vries <tom@codesourcery.com>
6004
6005 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
6006 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
6007
6008 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
6009
6010 PR libgomp/65099
6011 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
6012 in a 64-bit configuration.
6013 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
6014 offloading testing if no such device is available.
6015 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6016 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6017
6018 2015-07-08 Tom de Vries <tom@codesourcery.com>
6019
6020 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
6021 second call to f.
6022 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6023
6024 2015-07-07 Tom de Vries <tom@codesourcery.com>
6025
6026 PR tree-optimization/66642
6027 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
6028 iteration count case.
6029 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
6030 function, factor out of ...
6031 (main): ... here. Test low iteration count case.
6032
6033 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
6034
6035 * libgomp.h (gomp_thread_pool): Comment last_team field.
6036
6037 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
6038
6039 * testsuite/libgomp.c++/pr66702-1.C: Require
6040 vect_simd_clones effective target.
6041 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
6042
6043 2015-06-30 Tom de Vries <tom@codesourcery.com>
6044
6045 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6046 already set. Use DEFAULT_CFLAGS in dg-runtest.
6047 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
6048 "-O2".
6049
6050 2015-06-30 Tom de Vries <tom@codesourcery.com>
6051
6052 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6053 already set. Use DEFAULT_CFLAGS in dg-runtest.
6054 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
6055 * testsuite/libgomp.c++/pr64824.C: Same.
6056 * testsuite/libgomp.c++/pr64868.C: Same.
6057 * testsuite/libgomp.c++/pr66199-1.C: Same.
6058 * testsuite/libgomp.c++/pr66199-2.C: Same.
6059 * testsuite/libgomp.c++/target-2.C: Same.
6060 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
6061 -std=<standard> option.
6062 * testsuite/libgomp.c++/udr-11.C: Same.
6063 * testsuite/libgomp.c++/udr-12.C: Same.
6064 * testsuite/libgomp.c++/udr-13.C: Same.
6065 * testsuite/libgomp.c++/udr-14.C: Same.
6066 * testsuite/libgomp.c++/udr-15.C: Same.
6067 * testsuite/libgomp.c++/udr-16.C: Same.
6068 * testsuite/libgomp.c++/udr-17.C: Same.
6069 * testsuite/libgomp.c++/udr-18.C: Same.
6070 * testsuite/libgomp.c++/udr-19.C: Same.
6071 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
6072 * testsuite/libgomp.c++/simd-1.C: Same.
6073 * testsuite/libgomp.c++/simd-2.C: Same.
6074 * testsuite/libgomp.c++/simd-3.C: Same.
6075 * testsuite/libgomp.c++/simd-4.C: Same.
6076 * testsuite/libgomp.c++/simd-5.C: Same.
6077 * testsuite/libgomp.c++/simd-6.C: Same.
6078 * testsuite/libgomp.c++/simd-7.C: Same.
6079 * testsuite/libgomp.c++/simd-8.C: Same.
6080 * testsuite/libgomp.c++/simd-9.C: Same.
6081 * testsuite/libgomp.c++/simd10.C: Same.
6082 * testsuite/libgomp.c++/simd11.C: Same.
6083 * testsuite/libgomp.c++/simd12.C: Same.
6084 * testsuite/libgomp.c++/simd13.C: Same.
6085
6086 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6087
6088 PR middle-end/66702
6089 * testsuite/libgomp.c++/pr66702-1.C: New test.
6090 * testsuite/libgomp.c++/pr66702-2.C: New test.
6091
6092 2015-06-30 Tom de Vries <tom@codesourcery.com>
6093
6094 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
6095 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
6096 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
6097 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
6098
6099 2015-06-30 Tom de Vries <tom@codesourcery.com>
6100
6101 PR tree-optimization/66652
6102 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
6103 using restrict pointers.
6104 (main): Add arguments to calls to f.
6105 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6106
6107 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
6108
6109 * configure.ac: Fix check for header <sys/sysctl.h>.
6110 * configure: Regenerate.
6111 * config.h.in: Likewise.
6112
6113 2015-06-23 Tom de Vries <tom@codesourcery.com>
6114
6115 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
6116 abort.
6117 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
6118
6119 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
6120
6121 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
6122 acc_device_nvidia.
6123
6124 PR libgomp/66518
6125 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
6126 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6127
6128 2015-06-15 Tom de Vries <tom@codesourcery.com>
6129
6130 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
6131 dg-additional-options for any remaining options.
6132 * testsuite/libgomp.c/atomic-2.c: Same.
6133 * testsuite/libgomp.c/atomic-4.c: Same.
6134 * testsuite/libgomp.c/atomic-5.c: Same.
6135 * testsuite/libgomp.c/atomic-6.c: Same.
6136 * testsuite/libgomp.c/autopar-1.c: Same.
6137 * testsuite/libgomp.c/copyin-1.c: Same.
6138 * testsuite/libgomp.c/copyin-2.c: Same.
6139 * testsuite/libgomp.c/copyin-3.c: Same.
6140 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
6141 * testsuite/libgomp.c/nestedfn-5.c: Same.
6142 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
6143 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
6144 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
6145 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6146 * testsuite/libgomp.c/pr32362-1.c: Same.
6147 * testsuite/libgomp.c/pr32362-2.c: Same.
6148 * testsuite/libgomp.c/pr32362-3.c: Same.
6149 * testsuite/libgomp.c/pr39591-1.c: Same.
6150 * testsuite/libgomp.c/pr39591-2.c: Same.
6151 * testsuite/libgomp.c/pr39591-3.c: Same.
6152 * testsuite/libgomp.c/pr58392.c: Same.
6153 * testsuite/libgomp.c/pr58756.c: Same.
6154 * testsuite/libgomp.c/simd-1.c: Same.
6155 * testsuite/libgomp.c/simd-10.c: Same.
6156 * testsuite/libgomp.c/simd-11.c: Same.
6157 * testsuite/libgomp.c/simd-12.c: Same.
6158 * testsuite/libgomp.c/simd-13.c: Same.
6159 * testsuite/libgomp.c/simd-14.c: Same.
6160 * testsuite/libgomp.c/simd-15.c: Same.
6161 * testsuite/libgomp.c/simd-2.c: Same.
6162 * testsuite/libgomp.c/simd-3.c: Same.
6163 * testsuite/libgomp.c/simd-4.c: Same.
6164 * testsuite/libgomp.c/simd-5.c: Same.
6165 * testsuite/libgomp.c/simd-6.c: Same.
6166 * testsuite/libgomp.c/simd-7.c: Same.
6167 * testsuite/libgomp.c/simd-8.c: Same.
6168 * testsuite/libgomp.c/simd-9.c: Same.
6169
6170 2015-06-15 Tom de Vries <tom@codesourcery.com>
6171
6172 * testsuite/libgomp.c/pr35625.c: Fix typo.
6173
6174 2015-06-15 Tom de Vries <tom@codesourcery.com>
6175
6176 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
6177 in dg-options.
6178 * testsuite/libgomp.c/atomic-3.c: Same.
6179 * testsuite/libgomp.c/debug-1.c: Same.
6180 * testsuite/libgomp.c/nqueens-1.c: Same.
6181 * testsuite/libgomp.c/pr26171.c: Same.
6182 * testsuite/libgomp.c/pr48591.c: Same.
6183 * testsuite/libgomp.c/pr64824.c: Same.
6184 * testsuite/libgomp.c/pr64868.c: Same.
6185 * testsuite/libgomp.c/pr66133.c: Same.
6186 * testsuite/libgomp.c/pr66199-1.c: Same.
6187 * testsuite/libgomp.c/pr66199-2.c: Same.
6188 * testsuite/libgomp.c/target-8.c: Same.
6189
6190 2015-06-15 Tom de Vries <tom@codesourcery.com>
6191
6192 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
6193 -std={gnu99,c99}.
6194 * testsuite/libgomp.c/for-1.c: Same.
6195 * testsuite/libgomp.c/for-2.c: Same.
6196 * testsuite/libgomp.c/for-3.c: Same.
6197 * testsuite/libgomp.c/pr35625.c: Same.
6198 * testsuite/libgomp.c/pr39154.c: Same.
6199 * testsuite/libgomp.c/simd-16.c: Same.
6200 * testsuite/libgomp.c/simd-17.c: Same.
6201
6202 2015-06-13 Tom de Vries <tom@codesourcery.com>
6203
6204 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6205
6206 2015-06-13 Tom de Vries <tom@codesourcery.com>
6207
6208 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6209 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6210 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6211 (N): Define.
6212 (main): Use N instead of hardcoded constants.
6213
6214 2015-06-05 Tom de Vries <tom@codesourcery.com>
6215
6216 merge from gomp4 branch:
6217 2015-05-28 Tom de Vries <tom@codesourcery.com>
6218
6219 PR tree-optimization/65443
6220 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6221 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6222 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6223
6224 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6225
6226 * testsuite/libgomp.graphite/bounds.c: Adjust for
6227 cleanup-tree-dump removal.
6228 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6229 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6230 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6231 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6232 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6233 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6234 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6235 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6236 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6237 * testsuite/libgomp.graphite/pr41118.c: Likewise.
6238
6239 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
6240
6241 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6242 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6243 (futex_wake) [!__x86_64__]: Ditto.
6244
6245 2015-05-28 Julian Brown <julian@codesourcery.com>
6246
6247 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6248 function comment. Only call gomp_fatal if new argument is true.
6249 (acc_dev_num_out_of_range): New function.
6250 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6251 acc_dev_num_out_of_range as appropriate.
6252 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6253 (acc_get_device_num, acc_set_device_num): Update calls to
6254 resolve_device.
6255 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6256 output.
6257
6258 2015-05-28 Julian Brown <julian@codesourcery.com>
6259
6260 PR libgomp/65742
6261 * oacc-init.c (plugin/plugin-host.h): Include.
6262 (acc_on_device): Check whether we're in an offloaded region for
6263 host_nonshm
6264 plugin. Don't use __builtin_acc_on_device.
6265 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6266 nonshm_exec flag in thread-local data.
6267 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6268 data for host_nonshm plugin.
6269 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6270 for host_nonshm plugin.
6271 * plugin/plugin-host.h: New.
6272
6273 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6274
6275 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6276
6277 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6278
6279 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6280 Declare as int.
6281 (FUTEX_PRIVATE_FLAG): Remove L suffix.
6282 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6283 Declare as int.
6284
6285 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6286
6287 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
6288
6289 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
6290
6291 * target.c (gomp_map_pointer): New function abstracting out
6292 GOMP_MAP_POINTER handling.
6293 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6294 gomp_map_pointer().
6295
6296 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6297
6298 PR middle-end/66199
6299 * testsuite/libgomp.c/pr66199-1.c: New test.
6300 * testsuite/libgomp.c/pr66199-2.c: New test.
6301 * testsuite/libgomp.c++/pr66199-1.C: New test.
6302 * testsuite/libgomp.c++/pr66199-2.C: New test.
6303 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6304 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6305
6306 2015-05-19 Julian Brown <julian@codesourcery.com>
6307
6308 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6309 on cuInit failure.
6310
6311 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6312
6313 PR middle-end/66133
6314 * testsuite/libgomp.c/pr66133.c: New test.
6315
6316 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6317
6318 * Makefile.in: Regenerated with automake-1.11.6.
6319 * aclocal.m4: Likewise.
6320 * config.h.in: Likewise.
6321 * configure: Likewise.
6322 * testsuite/Makefile.in: Likewise.
6323
6324 2015-05-08 Jason Merrill <jason@redhat.com>
6325
6326 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6327 _Complex.
6328
6329 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6330
6331 2015-05-06 Julian Brown <julian@codesourcery.com>
6332
6333 * oacc-init.c (acc_device_lock): Add explanatory comment.
6334 (resolve_device): Add comment about locking requirement.
6335 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6336 gomp_init_device and gomp_fini_device calls.
6337 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6338 (acc_get_device_num, acc_set_device_num): Add locking around
6339 resolve_device and gomp_init_device calls.
6340
6341 2015-05-06 Julian Brown <julian@codesourcery.com>
6342
6343 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6344 goacc_thread_lock on error paths.
6345 * oacc-mem.c (lookup_host): Remove locking from function. Note
6346 locking requirement for caller in function comment.
6347 (lookup_dev): Likewise.
6348 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6349 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6350 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6351 Add locking.
6352
6353 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
6354
6355 PR testsuite/65205
6356 PR libgomp/65993
6357 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6358 don't expect "0x" prefix for "%p" format specifier, don't expect
6359 "(nil)" for NULL pointer.
6360 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6361 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6362 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6363 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6364 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6365 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6366 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6367 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6368 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6369 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6370 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6371 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6372 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6373 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6374 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6375 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6376 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6377 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6378 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6379 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6380 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6381 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6382 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6383 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6384 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6385 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6386 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6387 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6388 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
6389 accurately specify what we're looking for.
6390 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6391 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6392 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6393 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6394 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6395
6396 2015-04-30 James Norris <jnorris@codesourcery.com>
6397
6398 PR testsuite/65205
6399 * testsuite/lib/libgomp.exp
6400 (check_effective_target_openacc_host_selected)
6401 (check_effective_target_openacc_host_nonshm_selected): New
6402 procedures.
6403 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
6404 dg-shouldfail.
6405 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6406 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6407 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6408 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6409 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6410 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6411 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6412 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6413 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6414 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6415 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6416 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6417 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6418 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6419 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6420 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6421 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6422 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6423 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6424 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6425 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6426 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6427 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6428 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6429 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6430 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6431 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6432 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6433 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6434 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6435 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6436 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6437 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6438 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6439 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6440 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6441 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6442 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6443 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6444 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6445 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6446 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6447 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6448
6449 2015-04-08 Julian Brown <julian@codesourcery.com>
6450
6451 * libgomp.h (target_mem_desc: Remove mem_map field.
6452 (acc_dispatch_t): Remove open_device_func, close_device_func,
6453 get_device_num_func, set_device_num_func, target_data members.
6454 Change create_thread_data_func argument to device number instead of
6455 generic pointer.
6456 * oacc-async.c (assert.h): Include.
6457 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
6458 (acc_wait_all, acc_wait_all_async): Use current host thread's
6459 active device, not base_dev.
6460 * oacc-cuda.c (acc_get_current_cuda_device)
6461 (acc_get_current_cuda_context, acc_get_cuda_stream)
6462 (acc_set_cuda_stream): Likewise.
6463 * oacc-host.c (host_dispatch): Don't set open_device_func,
6464 close_device_func, get_device_num_func or set_device_num_func.
6465 * oacc-init.c (base_dev, init_key): Remove.
6466 (cached_base_dev): New.
6467 (name_of_acc_device_t): New.
6468 (acc_init_1): Initialise default-numbered device, not zeroth.
6469 (acc_shutdown_1): Close all devices of a given type.
6470 (goacc_destroy_thread): Don't use base_dev.
6471 (lazy_open, lazy_init, lazy_init_and_open): Remove.
6472 (goacc_attach_host_thread_to_device): New.
6473 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
6474 (acc_get_num_devices): Don't use base_dev.
6475 (acc_set_device_type): Reimplement.
6476 (acc_get_device_type): Don't use base_dev.
6477 (acc_get_device_num): Tweak logic.
6478 (acc_set_device_num): Likewise.
6479 (acc_on_device): Use acc_get_device_type.
6480 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
6481 (goacc_lazy_initialize): Reimplement with acc_init and
6482 goacc_attach_host_thread_to_device.
6483 * oacc-int.h (goacc_thread): Add base_dev field.
6484 (base_dev): Remove extern declaration.
6485 (goacc_attach_host_thread_to_device): Add prototype.
6486 * oacc-mem.c (acc_malloc): Use current thread's device instead of
6487 base_dev.
6488 (acc_free): Likewise.
6489 (acc_memcpy_to_device): Likewise.
6490 (acc_memcpy_from_device): Likewise.
6491 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
6492 goacc_lazy_initialize (throughout).
6493 (GOACC_parallel): Use tgt_offset to locate target functions.
6494 * target.c (gomp_map_vars): Don't set tgt->mem_map.
6495 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
6496 (gomp_load_plugin_for_device): Remove open_device, close_device,
6497 get_device_num, set_device_num openacc hook initialisation. Don't set
6498 openacc.target_data.
6499 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6500 (GOMP_OFFLOAD_openacc_close_device)
6501 (GOMP_OFFLOAD_openacc_get_device_num)
6502 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6503 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6504 to int.
6505 * plugin/plugin-nvptx.c (ptx_inited): Remove.
6506 (instantiated_devices, ptx_dev_lock): New.
6507 (struct ptx_image_data): New.
6508 (ptx_devices, ptx_images, ptx_image_lock): New.
6509 (fini_streams_for_device): Reorder cuStreamDestroy call.
6510 (nvptx_get_num_devices): Remove forward declaration.
6511 (nvptx_init): Change return type to bool.
6512 (nvptx_fini): Remove.
6513 (nvptx_attach_host_thread_to_device): New.
6514 (nvptx_open_device): Return struct ptx_device* instead of void*.
6515 (nvptx_close_device): Change argument type to struct ptx_device*,
6516 return type to void.
6517 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6518 (kernel_target_data, kernel_host_table): Remove static globals.
6519 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6520 (GOMP_OFFLOAD_init_device): Reimplement.
6521 (GOMP_OFFLOAD_fini_device): Likewise.
6522 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6523 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6524 (GOMP_OFFLOAD_host2dev): Use ORD argument.
6525 (GOMP_OFFLOAD_openacc_open_device)
6526 (GOMP_OFFLOAD_openacc_close_device)
6527 (GOMP_OFFLOAD_openacc_set_device_num)
6528 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6529 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6530 (device number).
6531
6532 testsuite/
6533 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6534
6535 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
6536
6537 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6538 * libgomp.h (struct gomp_memory_mapping): Remove.
6539 (struct target_mem_desc): Change type of mem_map from
6540 gomp_memory_mapping * to splay_tree_s *.
6541 (struct gomp_device_descr): Remove register_image_func, get_table_func.
6542 Add load_image_func, unload_image_func.
6543 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6544 Remove offload_regions_registered.
6545 (gomp_init_tables): Remove.
6546 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6547 to splay_tree_s *.
6548 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6549 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6550 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6551 offload_regions_registered.
6552 Initialize load_image_func, unload_image_func, mem_map.root.
6553 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6554 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6555 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6556 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6557 gomp_memory_mapping *. Use dev's lock and splay_tree.
6558 (lookup_dev): Use dev's lock.
6559 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6560 (acc_is_present): Likewise.
6561 (acc_map_data): Likewise.
6562 (acc_unmap_data): Likewise. Use dev's lock.
6563 (present_create_copy): Likewise.
6564 (delete_copyout): Pass dev to lookup_host instead of mem_map.
6565 (update_dev_host): Likewise.
6566 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
6567 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6568 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6569 (GOMP_OFFLOAD_get_table): Remove
6570 (GOMP_OFFLOAD_load_image): New function.
6571 (GOMP_OFFLOAD_unload_image): New function.
6572 * target.c (register_lock): New mutex for offload image registration.
6573 (num_devices): Do not guard with PLUGIN_SUPPORT.
6574 (gomp_realloc_unlock): New static function.
6575 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
6576 before gomp_fatal.
6577 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6578 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
6579 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6580 mem_map's.
6581 (gomp_unmap_vars): Likewise.
6582 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
6583 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
6584 (gomp_offload_image_to_device): New static function.
6585 (GOMP_offload_register): Add mutex lock.
6586 Call gomp_offload_image_to_device for all initialized devices.
6587 Replace gomp_realloc with gomp_realloc_unlock.
6588 (GOMP_offload_unregister): New function.
6589 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
6590 get_table_func from the plugin with calls to init_device_func and
6591 gomp_offload_image_to_device.
6592 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6593 to splay_tree_s *.
6594 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
6595 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
6596 (GOMP_target_data): Do not call gomp_init_tables.
6597 (GOMP_target_update): Likewise. Remove argument from gomp_update.
6598 (gomp_load_plugin_for_device): Replace register_image and get_table
6599 with load_image and unload_image in DLSYM ().
6600 (gomp_register_images_for_device): Remove function.
6601 (gomp_target_init): Do not initialize current_device.mem_map.*,
6602 current_device.offload_regions_registered.
6603 Remove call to gomp_register_images_for_device.
6604 Do not free offload_images and num_offload_images.
6605
6606 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6607
6608 PR fortran/65597
6609 * testsuite/libgomp.fortran/pr65597.f90: New test.
6610
6611 2015-03-27 Tom de Vries <tom@codesourcery.com>
6612
6613 PR testsuite/65594
6614 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6615 (init, check): New function.
6616 (foo): Change return type to void.
6617 (main): Call init and check.
6618
6619 2015-03-27 Tom de Vries <tom@codesourcery.com>
6620
6621 PR testsuite/65594
6622 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6623 (foo): Use M for non-inner loops to scale down test-case.
6624
6625 2015-03-25 Kai Tietz <ktietz@redhat.com>
6626
6627 PR libgomp/64972
6628 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6629 (GOACC_data_start): Likewise.
6630 * target.c (gomp_map_vars): Likewise.
6631
6632 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
6633
6634 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6635 hppa*-*-hpux*.
6636
6637 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6638
6639 * testsuite/libgomp.c/target-10.c: New test.
6640 * testsuite/libgomp.c++/target-4.C: New test.
6641
6642 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6643
6644 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6645 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6646
6647 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
6648
6649 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6650 * configure.ac (*-*-rtems*): Assume Pthread is supported.
6651 (pthread.h): Check for this header file.
6652 * configure: Regenerate.
6653
6654 2015-02-25 Tom de Vries <tom@codesourcery.com>
6655
6656 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6657 (check_reduction_op, check_reduction_macro, max, min):
6658 Declare.
6659 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6660 function.
6661 (main): Use new functions.
6662
6663 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
6664
6665 * target.c (gomp_load_plugin_for_device): Use const char * instead of
6666 char * for variables holding dlerror return values.
6667 (DLSYM_OPT): Ditto.
6668
6669 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6670
6671 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6672
6673 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6674 Cesar Philippidis <cesar@codesourcery.com>
6675
6676 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6677 GOACC_ctaid, and GOACC_nctaid routines.
6678
6679 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6680
6681 PR c/64824
6682 * testsuite/libgomp.c/atomic-18.c: New test.
6683 * testsuite/libgomp.c++/atomic-16.C: New test.
6684
6685 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6686
6687 PR c/64824
6688 PR c/64868
6689 * testsuite/libgomp.c/pr64824.c: New test.
6690 * testsuite/libgomp.c/pr64868.c: New test.
6691 * testsuite/libgomp.c++/pr64824.C: New test.
6692 * testsuite/libgomp.c++/pr64868.C: New test.
6693
6694 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6695
6696 PR libgomp/64635
6697 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6698 Link with -lpthread.
6699 * config/aix/plugin-suffix.h: Delete.
6700
6701 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
6702
6703 PR libgomp/64635
6704 * configure.tgt (*-*-aix*): Use config_path "aix posix".
6705 (*-*-darwin*): Use config_path "bsd darwin posix".
6706 (*-*-hpux*): Use config_path "hpux posix".
6707 * target.c: Add include of plugin-suffix.h and use
6708 SONAME_SUFFIX macro.
6709 * config/aix/plugin-suffix.h: New file.
6710 * config/darwin/plugin-suffix.h: New file.
6711 * config/hpux/plugin-suffix.h: New file.
6712 * config/posix/plugin-suffix.h: New file.
6713
6714 2015-01-23 Jakub Jelinek <jakub@redhat.com>
6715
6716 PR middle-end/64734
6717 * libgomp.c/pr64734.c: New test.
6718
6719 2015-01-23 Tom de Vries <tom@codesourcery.com>
6720
6721 PR libgomp/64672
6722 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6723
6724 2015-01-23 Tom de Vries <tom@codesourcery.com>
6725
6726 PR libgomp/64707
6727 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6728 dg-options.
6729
6730 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
6731
6732 PR libgomp/64625
6733 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6734 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6735 formal parameter. Update all users.
6736 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6737 Document unused formal parameter.
6738
6739 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
6740
6741 * oacc-parallel.c: Don't include <alloca.h>.
6742 (GOACC_parallel): Use gomp_alloca instead of alloca.
6743
6744 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
6745
6746 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6747
6748 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6749 James Norris <jnorris@codesourcery.com>
6750 Tom de Vries <tom@codesourcery.com>
6751 Julian Brown <julian@codesourcery.com>
6752 Cesar Philippidis <cesar@codesourcery.com>
6753 Nathan Sidwell <nathan@codesourcery.com>
6754 Tobias Burnus <burnus@net-b.de>
6755
6756 * Makefile.am (search_path): Add $(top_srcdir)/../include.
6757 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6758 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6759 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6760 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6761 Include $(top_srcdir)/plugin/Makefrag.am.
6762 (nodist_libsubinclude_HEADERS): Add openacc.h.
6763 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6764 openacc.f90, openacc.mod, openacc_kinds.mod.
6765 (omp_lib.mod): Generalize into...
6766 (%.mod): ... this new rule.
6767 (openacc_kinds.mod, openacc.mod): New rules.
6768 * plugin/configfrag.ac: New file.
6769 * configure.ac: Move plugin/offloading support into it. Include
6770 it. Instantiate testsuite/libgomp-test-support.pt.exp.
6771 * plugin/Makefrag.am: New file.
6772 * testsuite/Makefile.am (OFFLOAD_TARGETS)
6773 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6774 export.
6775 (libgomp-test-support.exp): New rule.
6776 (all-local): Depend on it.
6777 * Makefile.in: Regenerate.
6778 * testsuite/Makefile.in: Regenerate.
6779 * config.h.in: Likewise.
6780 * configure: Likewise.
6781 * configure.tgt: Harden shell syntax.
6782 * env.c: Include "oacc-int.h".
6783 (parse_acc_device_type): New function.
6784 (gomp_debug_var, goacc_device_type, goacc_device_num): New
6785 variables.
6786 (initialize_env): Initialize those. Call
6787 goacc_runtime_initialize.
6788 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6789 (gomp_fatal): Call gomp_vfatal.
6790 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6791 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6792 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6793 (splay_tree_node, splay_tree, splay_tree_key)
6794 (struct target_mem_desc, struct splay_tree_key_s)
6795 (struct gomp_memory_mapping, struct acc_dispatch_t)
6796 (struct gomp_device_descr, gomp_acc_insert_pointer)
6797 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6798 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6799 (gomp_free_memmap, gomp_fini_device): New declarations.
6800 (gomp_vdebug, gomp_debug): New macros.
6801 Include "splay-tree.h".
6802 * libgomp.map (OACC_2.0): New symbol version. Use for
6803 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6804 acc_set_device_type_h_, acc_get_device_type,
6805 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6806 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6807 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6808 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6809 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6810 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6811 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6812 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6813 acc_copyin_array_h_, acc_present_or_copyin,
6814 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6815 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6816 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6817 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6818 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6819 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6820 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6821 acc_update_device, acc_update_device_32_h_,
6822 acc_update_device_64_h_, acc_update_device_array_h_,
6823 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6824 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6825 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6826 acc_is_present_64_h_, acc_is_present_array_h_,
6827 acc_memcpy_to_device, acc_memcpy_from_device,
6828 acc_get_current_cuda_device, acc_get_current_cuda_context,
6829 acc_get_cuda_stream, acc_set_cuda_stream.
6830 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
6831 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6832 GOACC_update, GOACC_wait, GOACC_get_thread_num,
6833 GOACC_get_num_threads.
6834 (GOMP_PLUGIN_1.0): New symbol version. Use for
6835 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6836 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6837 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6838 GOMP_PLUGIN_acc_thread.
6839 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6840 environment variable.
6841 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6842 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6843 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6844 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6845 (splay_tree_remove): New declarations.
6846 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6847 (splay_tree_remove, splay_tree_lookup): Move into...
6848 * splay-tree.c: ... this new file.
6849 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6850 (splay_tree_node, splay_tree, splay_tree_key)
6851 (struct target_mem_desc, struct splay_tree_key_s)
6852 (struct gomp_device_descr): Don't declare.
6853 (num_devices_openmp): New variable.
6854 (gomp_get_num_devices ): Use it.
6855 (gomp_init_targets_once): New function.
6856 (gomp_get_num_devices ): Use it.
6857 (get_kind, gomp_copy_from_async, gomp_free_memmap)
6858 (gomp_fini_device, gomp_register_image_for_device): New functions.
6859 (gomp_map_vars): Add devaddrs parameter.
6860 (gomp_update): Add mm parameter.
6861 (gomp_init_device): Move most of it into...
6862 (gomp_init_tables): ... this new function.
6863 (gomp_register_images_for_device): Remove function.
6864 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6865 Make them hidden instead of static.
6866 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6867 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6868 (GOMP_target_end_data, GOMP_target_update)
6869 (gomp_load_plugin_for_device, gomp_target_init): Update for
6870 OpenACC changes.
6871 * oacc-async.c: New file.
6872 * oacc-cuda.c: Likewise.
6873 * oacc-host.c: Likewise.
6874 * oacc-init.c: Likewise.
6875 * oacc-int.h: Likewise.
6876 * oacc-mem.c: Likewise.
6877 * oacc-parallel.c: Likewise.
6878 * oacc-plugin.c: Likewise.
6879 * oacc-plugin.h: Likewise.
6880 * oacc-ptx.h: Likewise.
6881 * openacc.f90: Likewise.
6882 * openacc.h: Likewise.
6883 * openacc_lib.h: Likewise.
6884 * plugin/plugin-host.c: Likewise.
6885 * plugin/plugin-nvptx.c: Likewise.
6886 * libgomp-plugin.c: Likewise.
6887 * libgomp-plugin.h: Likewise.
6888 * libgomp_target.h: Remove file after merging content into the
6889 former file. Update all users.
6890 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6891 (offload_targets_s, offload_targets_s_openacc): New variables.
6892 (check_effective_target_openacc_nvidia_accel_present)
6893 (check_effective_target_openacc_nvidia_accel_selected): New
6894 procedures.
6895 (libgomp_init): Update for OpenACC changes.
6896 * testsuite/libgomp-test-support.exp.in: New file.
6897 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6898 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6899 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6900 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6901 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6902 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6903 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6904 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6905 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6906 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6907 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6908 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6909 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6910 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6911 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6912 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6913 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6914 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6915 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6916 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6917 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6918 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6919 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6920 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6921 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6922 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6923 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6924 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6925 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6926 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6927 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6928 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6929 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6930 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6931 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6932 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6933 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6934 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6935 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6936 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6937 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6938 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6939 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6940 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6941 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6942 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6943 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6944 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6945 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6946 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6947 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6948 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6949 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6950 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6951 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6952 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6953 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6954 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6955 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6956 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6957 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6958 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6959 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6960 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6961 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6962 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6963 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6964 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6965 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6966 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6967 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6968 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6969 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6970 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6971 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6972 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6973 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6974 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6975 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6976 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6977 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6978 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6979 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6980 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6981 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6982 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6983 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6984 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6985 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6986 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6987 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6988 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6989 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6990 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6991 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6992 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6993 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6994 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6995 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6996 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6997 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6998 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6999 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
7000 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7001 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
7002 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
7003 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
7004 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
7005 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
7006 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7007 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
7008 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7009 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7010 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
7011 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7012 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
7013 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
7014 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7015 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
7016 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
7017 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
7018 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
7019 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7020 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
7021 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7022 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
7023 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7024 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
7025 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
7026 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
7027 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
7028 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
7029 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7030 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
7031 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7032 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7033 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7034 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7035 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7036 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
7037 Likewise.
7038 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
7039 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
7040 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
7041 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
7042 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
7043 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7044 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7045 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7046 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7047 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7048 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7049 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7050 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7051 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7052 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7053 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7054 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7055 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7056 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7057 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7058 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7059 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7060 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7061 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7062 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7063 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7064 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7065 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7066 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7067 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7068 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7069 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7070 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7071 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7072 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7073 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7074 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7075 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7076 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7077 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7078 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7079 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7080 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7081 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7082 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7083 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7084 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7085 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7086 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7087 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7088 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7089 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7090 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7091 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7092 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7093 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7094 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7095 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7096 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7097 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7098
7099 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
7100 Julian Brown <julian@codesourcery.com>
7101 David Malcolm <dmalcolm@redhat.com>
7102
7103 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
7104 to "GNU Offloading and Multi Processing Runtime Library". Change
7105 all users.
7106 * configure: Regenerate.
7107 * libgomp.texi: Update.
7108
7109 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
7110
7111 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
7112 "$tgt_dir/lib32".
7113 * configure: Regenerate.
7114
7115 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
7116 "intelmic" in $offload_targets.
7117
7118 2015-01-05 Jakub Jelinek <jakub@redhat.com>
7119
7120 Update copyright years.
7121
7122 * libgomp.texi: Bump @copying's copyright year.
7123
7124 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7125
7126 * testsuite/lib/libgomp.exp: Load target-utils.exp.
7127 Move load of target-supportes.exp earlier.
7128
7129 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
7130
7131 * testsuite/libgomp.c/target-9.c: New test.
7132
7133 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
7134
7135 * config.h.in: Regenerate.
7136 * configure: Regenerate.
7137 * configure.ac: Add GCC_CHECK_EMUTLS.
7138 * libgomp.h: Add check for USE_EMUTLS: this case
7139 is equal to HAVE_TLS.
7140 * team.c: Likewise.
7141
7142 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
7143
7144 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
7145
7146 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
7147 Ilya Verbin <ilya.verbin@intel.com>
7148
7149 * testsuite/libgomp.c/target-critical-1.c: New test.
7150
7151 2014-11-26 Jakub Jelinek <jakub@redhat.com>
7152
7153 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
7154 to dg-options unless expensive testing is on.
7155 (TESTITERS): Define to N if not defined.
7156 (main): Use TESTITERS instead of N.
7157 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
7158 dg-additional-options depending on whether expensive testing is on.
7159 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
7160 Decrease N to 100000 and CHUNKSZ to 10000.
7161
7162 2014-11-24 Jakub Jelinek <jakub@redhat.com>
7163
7164 PR fortran/63938
7165 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
7166 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
7167
7168 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
7169
7170 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
7171
7172 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
7173
7174 PR bootstrap/63784
7175 * configure: Regenerated.
7176
7177 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
7178
7179 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
7180 vect_simd_clones effective target.
7181 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7182
7183 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7184
7185 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
7186 of 32 as block_size.
7187 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
7188 instead of 32 as block_size.
7189
7190 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7191 Ilya Verbin <ilya.verbin@intel.com>
7192
7193 * Makefile.in: Regenerate.
7194 * configure: Regenerate.
7195 * configure.ac: Set up offload_additional_options,
7196 offload_additional_lib_paths and offload_targets.
7197 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7198 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7199 * testsuite/Makefile.in: Regenerate.
7200 * testsuite/lib/libgomp.exp (libgomp_init): Append
7201 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
7202 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
7203 build directory to LD_LIBRARY_PATH for intelmic offload targets.
7204
7205 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7206 Ilya Verbin <ilya.verbin@intel.com>
7207 Kirill Yukhin <kirill.yukhin@intel.com>
7208 Ilya Tocar <ilya.tocar@intel.com>
7209
7210 * testsuite/lib/libgomp.exp
7211 (check_effective_target_offload_device): New.
7212 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7213 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7214 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7215 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7216 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7217 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7218 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7219 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7220 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7221 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7222 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7223 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7224 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7225 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7226 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7227 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7228 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7229 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7230 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7231 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7232 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7233 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7234 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7235 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7236 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7237 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7238 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7239 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7240 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7241 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7242 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7243 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7244 * testsuite/libgomp.c/target-7.c: Fix test.
7245 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7246 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7247 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7248 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7249 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7250 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7251 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7252 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7253 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7254 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7255 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7256 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7257 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7258 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7259 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7260 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7261 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7262 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7263 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7264 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7265 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7266 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7267 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7268 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7269 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7270 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7271 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7272 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7273 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7274 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7275 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7276
7277 2014-11-13 Jakub Jelinek <jakub@redhat.com>
7278 Ilya Verbin <ilya.verbin@intel.com>
7279 Thomas Schwinge <thomas@codesourcery.com>
7280 Andrey Turetskiy <andrey.turetskiy@intel.com>
7281
7282 * libgomp.map (GOMP_4.0.1): New symbol version.
7283 Add GOMP_offload_register.
7284 * libgomp_target.h: New file.
7285 * splay-tree.h: New file.
7286 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7287 (gomp_target_init): New forward declaration.
7288 (gomp_is_initialized): New static variable.
7289 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7290 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7291 New structures.
7292 (offload_images, num_offload_images, devices, num_devices): New static
7293 variables.
7294 (splay_compare): New static function.
7295 (struct gomp_device_descr): New structure.
7296 (gomp_get_num_devices): Call gomp_target_init.
7297 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7298 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7299 (GOMP_offload_register): New function.
7300 (GOMP_target): Arrange for host callback to be performed in a separate
7301 initial thread and contention group, inheriting ICVs from
7302 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
7303 Add device initialization and lookup for target function in splay tree.
7304 (GOMP_target_data): Add device initialization and call gomp_map_vars.
7305 (GOMP_target_end_data): Call gomp_unmap_vars.
7306 (GOMP_target_update): Add device initialization and call gomp_update.
7307 (gomp_load_plugin_for_device, gomp_register_images_for_device)
7308 (gomp_target_init): New static functions.
7309
7310 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7311 Thomas Schwinge <thomas@codesourcery.com>
7312 Ilya Verbin <ilya.verbin@intel.com>
7313 Andrey Turetskiy <andrey.turetskiy@intel.com>
7314
7315 * config.h.in: Regenerate.
7316 * configure: Regenerate.
7317 * configure.ac: Check for libdl, required for plugin support.
7318 (PLUGIN_SUPPORT): Define if plugins are supported.
7319 (enable_offload_targets): Support Intel MIC targets.
7320 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7321
7322 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7323
7324 PR target/63610
7325 * configure: Regenerate.
7326
7327 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7328
7329 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7330
7331 2014-10-06 Marek Polacek <polacek@redhat.com>
7332
7333 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7334 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7335 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7336 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7337
7338 2014-10-06 Marek Polacek <polacek@redhat.com>
7339
7340 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7341 * testsuite/libgomp.c/nqueens-1.c: Likewise.
7342 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7343 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7344 * testsuite/libgomp.c/pr36802-2.c: Likewise.
7345 * testsuite/libgomp.c/pr36802-3.c: Likewise.
7346 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7347 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7348 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7349 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7350 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7351 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7352 * testsuite/libgomp.c/omp-single-1.c: Likewise.
7353 * testsuite/libgomp.c/omp-single-2.c: Likewise.
7354 * testsuite/libgomp.c/omp_matvec.c: Likewise.
7355 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7356 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7357 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
7358 declarations.
7359
7360 2014-10-03 Jakub Jelinek <jakub@redhat.com>
7361
7362 PR libgomp/61200
7363 * testsuite/libgomp.c/pr61200.c: New test.
7364
7365 2014-09-18 Jakub Jelinek <jakub@redhat.com>
7366
7367 PR c++/63248
7368 * testsuite/libgomp.c++/pr63248.C: New test.
7369
7370 2014-08-04 Jakub Jelinek <jakub@redhat.com>
7371
7372 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
7373 is not zero, but taskgroup->children is NULL and there are
7374 any task->children, schedule those instead of waiting.
7375 * testsuite/libgomp.c/depend-6.c: New test.
7376 * testsuite/libgomp.c/depend-7.c: New test.
7377 * testsuite/libgomp.c/depend-8.c: New test.
7378 * testsuite/libgomp.c/depend-9.c: New test.
7379 * testsuite/libgomp.c/depend-10.c: New test.
7380
7381 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7382
7383 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
7384 (struct gomp_taskwait): New type.
7385 (struct gomp_task): Add taskwait and parent_depends_on, remove
7386 in_taskwait and taskwait_sem fields.
7387 (gomp_finish_task): Don't destroy taskwait_sem.
7388 * task.c (gomp_init_task): Don't init in_taskwait, instead init
7389 taskwait and parent_depends_on.
7390 (GOMP_task): For if (0) tasks with depend clause that depend on
7391 earlier tasks don't defer them, instead call
7392 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
7393 Initialize redundant_out field, for redundant out entries just
7394 move them at the end of linked list instead of removing them
7395 completely, and set redundant_out flag instead of redundant.
7396 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
7397 that task.
7398 (gomp_task_run_post_handle_dependers): If parent is in
7399 gomp_task_maybe_wait_for_dependencies and newly runnable task
7400 is not parent_depends_on, queue it in parent->children linked
7401 list after all runnable tasks with parent_depends_on set.
7402 Adjust for addition of taskwait indirection.
7403 (gomp_task_run_post_remove_parent): If parent is in
7404 gomp_task_maybe_wait_for_dependencies and task to be removed
7405 is parent_depends_on, decrement n_depend and if needed awake
7406 parent. Adjust for addition of taskwait indirection.
7407 (GOMP_taskwait): Adjust for addition of taskwait indirection.
7408 (gomp_task_maybe_wait_for_dependencies): New function.
7409 * testsuite/libgomp.c/depend-5.c: New test.
7410
7411 2014-07-13 Tobias Burnus <burnus@net-b.de>
7412
7413 * testsuite/libgomp.fortran/pr34020.f90: Make compile
7414 with TS 18508/Fortran 2015.
7415
7416 2014-07-06 Marek Polacek <polacek@redhat.com>
7417
7418 PR c/6940
7419 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
7420
7421 2014-07-03 Jakub Jelinek <jakub@redhat.com>
7422
7423 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
7424 matches regex $lang_source_re, add $lang_include_flags to options.
7425 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
7426 * testsuite/libgomp.c++/c++.exp: Likewise.
7427 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
7428 and lang_include_flags instead of adding -fintrinsic-modules-path= to
7429 ALWAYS_CFLAGS.
7430 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
7431
7432 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
7433
7434 * testsuite/libgomp.fortran/fortran.exp: Explain
7435 gfortran-dg-runtest usage.
7436
7437 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7438
7439 * testsuite/libgomp.fortran/simd5.f90: New test.
7440 * testsuite/libgomp.fortran/simd6.f90: New test.
7441 * testsuite/libgomp.fortran/simd7.f90: New test.
7442
7443 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7444
7445 * testsuite/libgomp.c/for-2.c: Define SC to static for
7446 #pragma omp for simd testing.
7447 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
7448 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
7449 SC macro.
7450 * testsuite/libgomp.c/simd-14.c: New test.
7451 * testsuite/libgomp.c/simd-15.c: New test.
7452 * testsuite/libgomp.c/simd-16.c: New test.
7453 * testsuite/libgomp.c/simd-17.c: New test.
7454 * testsuite/libgomp.c++/for-10.C: Define SC to static for
7455 #pragma omp for simd testing.
7456 * testsuite/libgomp.c++/simd10.C: New test.
7457 * testsuite/libgomp.c++/simd11.C: New test.
7458 * testsuite/libgomp.c++/simd12.C: New test.
7459 * testsuite/libgomp.c++/simd13.C: New test.
7460
7461 * testsuite/libgomp.fortran/aligned1.f03: New test.
7462 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
7463 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
7464 tasks with !$omp parallel !$omp single.
7465 * testsuite/libgomp.fortran/target8.f90: New test.
7466 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
7467 not to use trim in the combiner, instead call elemental function.
7468 (fn): New elemental function.
7469 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
7470 Make elemental.
7471 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
7472 omp_in): Likewise.
7473 * testsuite/libgomp.fortran/udr12.f90: New test.
7474 * testsuite/libgomp.fortran/udr13.f90: New test.
7475 * testsuite/libgomp.fortran/udr14.f90: New test.
7476 * testsuite/libgomp.fortran/udr15.f90: New test.
7477
7478 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7479
7480 * omp_lib.f90.in (openmp_version): Set to 201307.
7481 * omp_lib.h.in (openmp_version): Likewise.
7482 * testsuite/libgomp.c/target-8.c: New test.
7483 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
7484 and inbranch clauses.
7485 * testsuite/libgomp.fortran/depend-3.f90: New test.
7486 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
7487 openmp_version.
7488 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7489 * testsuite/libgomp.fortran/target1.f90: New test.
7490 * testsuite/libgomp.fortran/target2.f90: New test.
7491 * testsuite/libgomp.fortran/target3.f90: New test.
7492 * testsuite/libgomp.fortran/target4.f90: New test.
7493 * testsuite/libgomp.fortran/target5.f90: New test.
7494 * testsuite/libgomp.fortran/target6.f90: New test.
7495 * testsuite/libgomp.fortran/target7.f90: New test.
7496
7497 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7498
7499 PR fortran/60928
7500 * testsuite/libgomp.fortran/allocatable9.f90: New test.
7501 * testsuite/libgomp.fortran/allocatable10.f90: New test.
7502 * testsuite/libgomp.fortran/allocatable11.f90: New test.
7503 * testsuite/libgomp.fortran/allocatable12.f90: New test.
7504 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7505 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7506 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7507 * testsuite/libgomp.fortran/associate1.f90: New test.
7508 * testsuite/libgomp.fortran/associate2.f90: New test.
7509 * testsuite/libgomp.fortran/procptr1.f90: New test.
7510
7511 2014-06-06 Jakub Jelinek <jakub@redhat.com>
7512
7513 * testsuite/libgomp.fortran/simd1.f90: New test.
7514 * testsuite/libgomp.fortran/udr1.f90: New test.
7515 * testsuite/libgomp.fortran/udr2.f90: New test.
7516 * testsuite/libgomp.fortran/udr3.f90: New test.
7517 * testsuite/libgomp.fortran/udr4.f90: New test.
7518 * testsuite/libgomp.fortran/udr5.f90: New test.
7519 * testsuite/libgomp.fortran/udr6.f90: New test.
7520 * testsuite/libgomp.fortran/udr7.f90: New test.
7521 * testsuite/libgomp.fortran/udr8.f90: New test.
7522 * testsuite/libgomp.fortran/udr9.f90: New test.
7523 * testsuite/libgomp.fortran/udr10.f90: New test.
7524 * testsuite/libgomp.fortran/udr11.f90: New test.
7525
7526 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
7527
7528 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7529 vect_simd_clones effective target.
7530 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7531
7532 2014-05-21 Jakub Jelinek <jakub@redhat.com>
7533
7534 PR middle-end/61252
7535 * testsuite/libgomp.c++/simd-9.C: New test.
7536
7537 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
7538
7539 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7540 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7541 texts according to their @menu entry positions.
7542
7543 2014-05-11 Jakub Jelinek <jakub@redhat.com>
7544
7545 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7546 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7547 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7548 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7549 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7550 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7551 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7552 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7553 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7554 * testsuite/libgomp.fortran/depend-1.f90: New test.
7555 * testsuite/libgomp.fortran/depend-2.f90: New test.
7556 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7557 * testsuite/libgomp.fortran/simd1.f90: New test.
7558 * testsuite/libgomp.fortran/simd2.f90: New test.
7559 * testsuite/libgomp.fortran/simd3.f90: New test.
7560 * testsuite/libgomp.fortran/simd4.f90: New test.
7561 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7562
7563 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7564
7565 * testsuite/libgomp.c/simd-10.c: New test.
7566 * testsuite/libgomp.c/simd-11.c: New test.
7567 * testsuite/libgomp.c/simd-12.c: New test.
7568 * testsuite/libgomp.c/simd-13.c: New test.
7569
7570 2014-04-24 Jakub Jelinek <jakub@redhat.com>
7571
7572 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7573 atomic type clauses in any order and optional comma in between.
7574 * testsuite/libgomp.c++/atomic-15.C: Likewise.
7575 * testsuite/libgomp.c/atomic-17.c: Likewise.
7576
7577 * testsuite/libgomp.c/simd-7.c: New test.
7578 * testsuite/libgomp.c/simd-8.c: New test.
7579 * testsuite/libgomp.c/simd-9.c: New test.
7580 * testsuite/libgomp.c/loop-16.c: New test.
7581
7582 2014-04-02 Richard Henderson <rth@redhat.com>
7583
7584 * config/linux/futex.h (futex_wait): Get error value from errno.
7585 (futex_wake): Likewise.
7586
7587 2014-03-25 Jakub Jelinek <jakub@redhat.com>
7588
7589 PR c++/60331
7590 * testsuite/libgomp.c++/udr-11.C: New test.
7591 * testsuite/libgomp.c++/udr-12.C: New test.
7592 * testsuite/libgomp.c++/udr-13.C: New test.
7593 * testsuite/libgomp.c++/udr-14.C: New test.
7594 * testsuite/libgomp.c++/udr-15.C: New test.
7595 * testsuite/libgomp.c++/udr-16.C: New test.
7596 * testsuite/libgomp.c++/udr-17.C: New test.
7597 * testsuite/libgomp.c++/udr-18.C: New test.
7598 * testsuite/libgomp.c++/udr-19.C: New test.
7599
7600 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7601
7602 Update copyright years
7603
7604 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7605
7606 * hashtab.h: Use the standard form for the copyright notice.
7607
7608 2014-01-02 Tobias Burnus <burnus@net-b.de>
7609
7610 * libgomp.texi: Bump @copying's copyright year.
7611
7612 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7613
7614 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7615 alloca () with __builtin_alloca ().
7616 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7617 * testsuite/libgomp.c/lock-3.c: Likewise.
7618 * testsuite/libgomp.c/pr48591.c: Likewise.
7619
7620 2013-12-17 Jakub Jelinek <jakub@redhat.com>
7621
7622 PR testsuite/59534
7623 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7624 comparisons.
7625
7626 2013-12-16 Jakub Jelinek <jakub@redhat.com>
7627
7628 PR libgomp/58756
7629 * testsuite/libgomp.c/pr58756.c: New test.
7630
7631 2013-12-12 Jakub Jelinek <jakub@redhat.com>
7632
7633 PR libgomp/59467
7634 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7635 !$omp parallel.
7636
7637 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7638
7639 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7640 ALWAYS_CFLAGS.
7641 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7642 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7643 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7644 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7645 Likewise.
7646
7647 * libgomp_g.h: Include <stddef.h> for size_t.
7648
7649 * libgomp.spec.in: Update comment about libgomp's dependencies.
7650 * configure.ac: Likewise.
7651 * configure: Regenerate.
7652
7653 2013-10-16 Tobias Burnus <burnus@net-b.de>
7654
7655 * libgomp.texi: (Runtime Library Routines): Update references for
7656 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7657 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7658 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7659 (Environment Variables): Update references for OpenMP 4.0. Add
7660 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7661 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7662 order.
7663
7664 2013-10-14 Jakub Jelinek <jakub@redhat.com>
7665
7666 * env.c (parse_bind_var): Initialize value to avoid
7667 (false positive) warning.
7668
7669 2013-10-12 Jakub Jelinek <jakub@redhat.com>
7670
7671 PR libgomp/58691
7672 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7673 to check variable.
7674 (gomp_init_num_threads): Move i variable declaration into
7675 #ifdef CPU_ALLOC_SIZE block.
7676 * config/linux/affinity.c (gomp_affinity_init_level): Test
7677 gomp_places_list_len == 0 rather than gomp_places_list == 0
7678 when checking for topology reading error.
7679 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7680 * env.c (parse_affinity): Add ignore argument, if true, don't populate
7681 gomp_places_list, only parse env var and always return false.
7682 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
7683 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7684 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7685 and either of these variables were parsed correctly into a places
7686 list.
7687
7688 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7689 Jakub Jelinek <jakub@redhat.com>
7690
7691 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7692 of 5 loopfn matches.
7693 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7694 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7695 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7696 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7697 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7698 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7699 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7700 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7701
7702 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7703
7704 * Makefile.am (omp_lib.mod): Streamline rule.
7705 * Makefile.in: Regenerate.
7706
7707 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7708 exceptions.
7709
7710 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7711 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7712 * testsuite/libgomp.fortran/lib2.f: Likewise.
7713 * testsuite/libgomp.fortran/lib3.f: Likewise.
7714
7715 * configure.ac: Typo fix.
7716 * configure: Regenerate.
7717
7718 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7719 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7720
7721 * omp.h.in: Don't touch the user's namespace.
7722
7723 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7724 Tobias Burnus <burnus@net-b.de>
7725 Richard Henderson <rth@redhat.com>
7726
7727 * target.c: New file.
7728 * Makefile.am (libgomp_la_SOURCES): Add target.c.
7729 * Makefile.in: Regenerated.
7730 * libgomp_g.h (GOMP_task): Add depend argument.
7731 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7732 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7733 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7734 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7735 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7736 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7737 GOMP_taskgroup_start, GOMP_taskgroup_end,
7738 GOMP_parallel_sections): New prototypes.
7739 * fortran.c (omp_is_initial_device): Add ialias_redirect.
7740 (omp_is_initial_device_): New function.
7741 (ULP, STR1, STR2, ialias_redirect): Removed.
7742 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7743 omp_set_default_device_8_, omp_get_default_device_,
7744 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7745 functions.
7746 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7747 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7748 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7749 @@GOMP_4.0.
7750 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7751 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7752 omp_set_default_device, omp_set_default_device_,
7753 omp_set_default_device_8_, omp_get_default_device,
7754 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7755 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7756 omp_get_team_num_): Export @@OMP_4.0.
7757 * team.c (struct gomp_thread_start_data): Add place field.
7758 (gomp_thread_start): Clear thr->thread_pool and
7759 thr->task before returning. Use gomp_team_barrier_wait_final
7760 instead of gomp_team_barrier_wait. Initialize thr->place.
7761 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7762 team_cancelled and task_queued_count fields.
7763 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7764 before calling pthread_exit.
7765 (gomp_free_thread): No longer static. Use
7766 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7767 (gomp_team_start): Add flags argument. Set
7768 thr->thread_pool->threads_busy to nthreads immediately after creating
7769 new pool. Use gomp_managed_threads_lock instead of
7770 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
7771 (gomp_team_end): Use gomp_managed_threads_lock instead of
7772 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
7773 of gomp_team_barrier_wait. If team->team_cancelled, call
7774 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7775 rather than thr->ts.work_share.
7776 (initialize_team): Don't call gomp_sem_init here.
7777 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7778 caller.
7779 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7780 * env.c (gomp_global_icv): Add default_device_var, target_data and
7781 bind_var initializers.
7782 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7783 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7784 gomp_places_list_len): New variables.
7785 (parse_bind_var, parse_one_place, parse_places_var): New functions.
7786 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7787 sized places.
7788 (gomp_cancel_var): New global variable.
7789 (parse_int): New function.
7790 (handle_omp_display_env): New function.
7791 (initialize_env): Use it. Initialize default_device_var.
7792 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
7793 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
7794 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
7795 been successfully parsed (and call gomp_init_affinity in that case).
7796 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7797 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7798 omp_get_team_num, omp_is_initial_device): New functions.
7799 * libgomp.h: Include stdlib.h.
7800 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7801 Define.
7802 (struct target_mem_desc): Forward declare.
7803 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7804 and thread_limit_var fields.
7805 (gomp_get_num_devices): New prototype.
7806 (gomp_cancel_var): New extern decl.
7807 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7808 team_cancelled and task_queued_count fields. Add comments about
7809 task_{,queued_,running_}count.
7810 (gomp_cancel_kind): New enum.
7811 (gomp_work_share_end_cancel): New prototype.
7812 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7813 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7814 and depend fields.
7815 (struct gomp_taskgroup): New type.
7816 (struct gomp_task_depend_entry,
7817 struct gomp_dependers_vec): New types.
7818 (gomp_finish_task): Free depend_hash if non-NULL.
7819 (struct gomp_team_state): Add place_partition_off
7820 and place_partition_len fields.
7821 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7822 gomp_places_list_len): New extern decls.
7823 (struct gomp_thread): Add place field.
7824 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7825 (gomp_init_thread_affinity): Add place argument.
7826 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7827 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7828 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7829 gomp_affinity_init_level, gomp_affinity_print_place): New
7830 prototypes.
7831 (gomp_team_start): Add flags argument.
7832 (gomp_thread_limit_var, gomp_remaining_threads_count,
7833 gomp_remaining_threads_lock): Remove.
7834 (gomp_managed_threads_lock): New variable.
7835 (struct gomp_thread_pool): Add threads_busy field.
7836 (gomp_free_thread): New prototype.
7837 * task.c: Include hashtab.h.
7838 (hash_entry_type): New typedef.
7839 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7840 (gomp_init_task): Clear dependers, depend_hash, depend_count,
7841 copy_ctors_done and taskgroup fields.
7842 (GOMP_task): Add depend argument, handle depend clauses. If
7843 gomp_team_barrier_cancelled or if it's taskgroup has been
7844 cancelled, don't queue or start new tasks. Set copy_ctors_done
7845 field if needed. Initialize taskgroup field. If copy_ctors_done
7846 and already cancelled, don't discard the task. If taskgroup is
7847 non-NULL, enqueue the task into taskgroup queue. Increment
7848 num_children field in taskgroup. Increment task_queued_count.
7849 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7850 gomp_task_run_post_remove_taskgroup): New inline functions.
7851 (gomp_task_run_post_handle_depend_hash,
7852 gomp_task_run_post_handle_dependers,
7853 gomp_task_run_post_handle_depend): New functions.
7854 (GOMP_taskwait): Use them. If more than one new tasks
7855 have been queued, wake other threads if needed.
7856 (gomp_barrier_handle_tasks): Likewise. If
7857 gomp_team_barrier_cancelled, don't start any new tasks, just free
7858 all tasks.
7859 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7860 * omp_lib.f90.in
7861 (omp_proc_bind_kind, omp_proc_bind_false,
7862 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7863 omp_proc_bind_spread): New params.
7864 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7865 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7866 omp_get_team_num, omp_is_initial_device): New interfaces.
7867 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7868 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7869 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7870 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7871 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7872 useless use omp_lib_kinds.
7873 * omp.h.in (omp_proc_bind_t): New typedef.
7874 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7875 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7876 omp_get_team_num, omp_is_initial_device): New prototypes.
7877 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7878 through to gomp_team_start.
7879 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7880 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7881 Adjust gomp_parallel_loop_start callers.
7882 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7883 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7884 GOMP_loop_end_cancel): New functions.
7885 (GOMP_parallel_end): Add ialias_redirect.
7886 * hashtab.h: New file.
7887 * libgomp.texi (Environment Variables): Minor cleanup,
7888 update section refs to OpenMP 4.0rc2.
7889 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7890 environment variables.
7891 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7892 team->work_shares_to_free to thr->ts.work_share before calling
7893 free_work_share.
7894 (gomp_work_share_end_cancel): New function.
7895 * config/linux/proc.c: Include errno.h.
7896 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7897 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7898 sizeof (cpu_set_t) to determine number of iterations. Fix up check
7899 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
7900 gomp_cpuset_size is sizeof (cpu_set_t).
7901 (gomp_init_num_threads): Initialize gomp_cpuset_size,
7902 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7903 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7904 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
7905 contain any logical CPUs.
7906 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7907 is NULL. Use gomp_cpusetp instead of &cpuset and pass
7908 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7909 pthread_getaffinity_np. Check gomp_places_list instead of
7910 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
7911 * config/linux/bar.c (gomp_barrier_wait_end,
7912 gomp_barrier_wait_last): Use BAR_* defines.
7913 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
7914 from state where needed. Set work_share_cancelled to 0 on last
7915 thread.
7916 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7917 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7918 functions.
7919 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7920 Add cpusetsize argument.
7921 (gomp_cpuset_size, gomp_cpusetp): Declare.
7922 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7923 (affinity_counter): Remove.
7924 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7925 if CPU_ALLOC_SIZE isn't defined.
7926 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7927 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7928 bind current thread to the first place.
7929 (gomp_init_thread_affinity): Rewritten. Add place argument, just
7930 pthread_setaffinity_np to gomp_places_list[place].
7931 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7932 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7933 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7934 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7935 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7936 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7937 (gomp_barrier_t): Add awaited_final field.
7938 (gomp_barrier_init): Initialize awaited_final field.
7939 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7940 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7941 prototypes.
7942 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7943 defines.
7944 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7945 gomp_team_barrier_cancelled): New inline functions.
7946 (gomp_barrier_last_thread,
7947 gomp_team_barrier_set_task_pending,
7948 gomp_team_barrier_clear_task_pending,
7949 gomp_team_barrier_set_waiting_for_tasks,
7950 gomp_team_barrier_waiting_for_tasks,
7951 gomp_team_barrier_done): Use BAR_* defines.
7952 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7953 (gomp_barrier_wait_end): Use BAR_* defines.
7954 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7955 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7956 Use BAR_* defines.
7957 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7958 gomp_team_barrier_cancel): New functions.
7959 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7960 argument.
7961 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7962 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7963 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7964 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7965 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7966 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7967 (gomp_barrier_t): Add cancellable field.
7968 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7969 gomp_team_barrier_cancel): New prototypes.
7970 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7971 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7972 gomp_team_barrier_cancelled): New inline functions.
7973 (gomp_barrier_wait_start, gomp_barrier_last_thread,
7974 gomp_team_barrier_set_task_pending,
7975 gomp_team_barrier_clear_task_pending,
7976 gomp_team_barrier_set_waiting_for_tasks,
7977 gomp_team_barrier_waiting_for_tasks,
7978 gomp_team_barrier_done): Use BAR_* defines.
7979 * barrier.c (GOMP_barrier_cancel): New function.
7980 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7981 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7982 omp_proc_bind_spread): New params.
7983 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7984 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7985 omp_get_team_num, omp_is_initial_device): New externals.
7986 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7987 New functions.
7988 (gomp_resolve_num_threads): Adjust for thread_limit now being in
7989 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7990 infinity. If not nested, just return minimum of max_num_threads
7991 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7992 to the returned value. Otherwise, don't update atomically
7993 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7994 (GOMP_parallel_end): Adjust for thread_limit now being in
7995 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7996 infinity. Adjust threads_busy in the pool rather than
7997 gomp_remaining_threads_count. Remember team->nthreads and call
7998 gomp_team_end before adjusting threads_busy, if not nested
7999 afterwards, just set it to 1 non-atomically. Add ialias.
8000 (GOMP_parallel_start): Adjust gomp_team_start caller.
8001 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
8002 * testsuite/libgomp.c/affinity-1.c: New test.
8003 * testsuite/libgomp.c/atomic-15.c: New test.
8004 * testsuite/libgomp.c/atomic-16.c: New test.
8005 * testsuite/libgomp.c/atomic-17.c: New test.
8006 * testsuite/libgomp.c/cancel-for-1.c: New test.
8007 * testsuite/libgomp.c/cancel-for-2.c: New test.
8008 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
8009 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
8010 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
8011 * testsuite/libgomp.c/cancel-sections-1.c: New test.
8012 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
8013 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
8014 * testsuite/libgomp.c/depend-1.c: New test.
8015 * testsuite/libgomp.c/depend-2.c: New test.
8016 * testsuite/libgomp.c/depend-3.c: New test.
8017 * testsuite/libgomp.c/depend-4.c: New test.
8018 * testsuite/libgomp.c/for-1.c: New test.
8019 * testsuite/libgomp.c/for-1.h: New file.
8020 * testsuite/libgomp.c/for-2.c: New test.
8021 * testsuite/libgomp.c/for-2.h: New file.
8022 * testsuite/libgomp.c/for-3.c: New test.
8023 * testsuite/libgomp.c/pr58392.c: New test.
8024 * testsuite/libgomp.c/simd-1.c: New test.
8025 * testsuite/libgomp.c/simd-2.c: New test.
8026 * testsuite/libgomp.c/simd-3.c: New test.
8027 * testsuite/libgomp.c/simd-4.c: New test.
8028 * testsuite/libgomp.c/simd-5.c: New test.
8029 * testsuite/libgomp.c/simd-6.c: New test.
8030 * testsuite/libgomp.c/target-1.c: New test.
8031 * testsuite/libgomp.c/target-2.c: New test.
8032 * testsuite/libgomp.c/target-3.c: New test.
8033 * testsuite/libgomp.c/target-4.c: New test.
8034 * testsuite/libgomp.c/target-5.c: New test.
8035 * testsuite/libgomp.c/target-6.c: New test.
8036 * testsuite/libgomp.c/target-7.c: New test.
8037 * testsuite/libgomp.c/taskgroup-1.c: New test.
8038 * testsuite/libgomp.c/thread-limit-1.c: New test.
8039 * testsuite/libgomp.c/thread-limit-2.c: New test.
8040 * testsuite/libgomp.c/thread-limit-3.c: New test.
8041 * testsuite/libgomp.c/udr-1.c: New test.
8042 * testsuite/libgomp.c/udr-2.c: New test.
8043 * testsuite/libgomp.c/udr-3.c: New test.
8044 * testsuite/libgomp.c++/affinity-1.C: New test.
8045 * testsuite/libgomp.c++/atomic-10.C: New test.
8046 * testsuite/libgomp.c++/atomic-11.C: New test.
8047 * testsuite/libgomp.c++/atomic-12.C: New test.
8048 * testsuite/libgomp.c++/atomic-13.C: New test.
8049 * testsuite/libgomp.c++/atomic-14.C: New test.
8050 * testsuite/libgomp.c++/atomic-15.C: New test.
8051 * testsuite/libgomp.c++/cancel-for-1.C: New test.
8052 * testsuite/libgomp.c++/cancel-for-2.C: New test.
8053 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
8054 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
8055 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
8056 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
8057 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
8058 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
8059 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
8060 * testsuite/libgomp.c++/cancel-test.h: New file.
8061 * testsuite/libgomp.c++/for-9.C: New test.
8062 * testsuite/libgomp.c++/for-10.C: New test.
8063 * testsuite/libgomp.c++/for-11.C: New test.
8064 * testsuite/libgomp.c++/simd-1.C: New test.
8065 * testsuite/libgomp.c++/simd-2.C: New test.
8066 * testsuite/libgomp.c++/simd-3.C: New test.
8067 * testsuite/libgomp.c++/simd-4.C: New test.
8068 * testsuite/libgomp.c++/simd-5.C: New test.
8069 * testsuite/libgomp.c++/simd-6.C: New test.
8070 * testsuite/libgomp.c++/simd-7.C: New test.
8071 * testsuite/libgomp.c++/simd-8.C: New test.
8072 * testsuite/libgomp.c++/target-1.C: New test.
8073 * testsuite/libgomp.c++/target-2.C: New test.
8074 * testsuite/libgomp.c++/target-2-aux.cc: New file.
8075 * testsuite/libgomp.c++/target-3.C: New test.
8076 * testsuite/libgomp.c++/taskgroup-1.C: New test.
8077 * testsuite/libgomp.c++/udr-1.C: New test.
8078 * testsuite/libgomp.c++/udr-2.C: New test.
8079 * testsuite/libgomp.c++/udr-3.C: New test.
8080 * testsuite/libgomp.c++/udr-4.C: New test.
8081 * testsuite/libgomp.c++/udr-5.C: New test.
8082 * testsuite/libgomp.c++/udr-6.C: New test.
8083 * testsuite/libgomp.c++/udr-7.C: New test.
8084 * testsuite/libgomp.c++/udr-8.C: New test.
8085 * testsuite/libgomp.c++/udr-9.C: New test.
8086
8087 2013-09-20 Jakub Jelinek <jakub@redhat.com>
8088
8089 PR testsuite/57605
8090 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
8091 ALWAYS_CFLAGS.
8092
8093 2013-09-20 Alan Modra <amodra@gmail.com>
8094
8095 * configure: Regenerate.
8096
8097 2013-09-19 Jakub Jelinek <jakub@redhat.com>
8098
8099 * testsuite/libgomp.c/sections-2.c: New test.
8100
8101 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
8102
8103 * testsuite/libgomp.fortran/strassen.f90:
8104 Add dg-skip-if aarch64_tiny.
8105
8106 2013-06-20 Iain Sandoe <iain@codesourcery.com>
8107 Cesar Philippidis <cesar@codesourcery.com>
8108
8109 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
8110 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
8111 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
8112 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8113 * testsuite/libgomp.graphite/graphite.exp: Likewise.
8114 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
8115 Use dg-runtest rather than gfortran-dg-runtest.
8116
8117 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
8118
8119 * testsuite/libgomp.c/icv-2.c: Extend current handling of
8120 Linux-based x86 systems to cover all GNU systems.
8121 * testsuite/libgomp.c/lock-3.c: Likewise.
8122 * testsuite/libgomp.c/pr48591.c: Likewise.
8123
8124 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
8125
8126 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
8127 GNU/Hurd, as done for Linux-based systems.
8128
8129 * config/posix/ptrlock.h: Fix comment.
8130
8131 2013-05-27 Tobias Burnus <burnus@net-b.de>
8132
8133 PR fortran/57423
8134 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
8135 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
8136 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
8137 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
8138 omp_destroy_nest_lock): Correct arguments to match the one in
8139 the OpenMP spec.
8140 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
8141 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
8142 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
8143 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
8144
8145 2013-05-16 Jakub Jelinek <jakub@redhat.com>
8146
8147 * testsuite/libgomp.c/loop-13.c: New test.
8148 * testsuite/libgomp.c/loop-14.c: New test.
8149 * testsuite/libgomp.c/loop-15.c: New test.
8150 * testsuite/libgomp.c++/loop-13.C: New test.
8151 * testsuite/libgomp.c++/loop-14.C: New test.
8152 * testsuite/libgomp.c++/loop-15.C: New test.
8153
8154 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8155
8156 PR middle-end/56217
8157 * testsuite/libgomp.c++/pr56217.C: New test.
8158
8159 2013-02-01 Alan Modra <amodra@gmail.com>
8160
8161 * task.c (GOMP_task, GOMP_taskwait): Comment.
8162
8163 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
8164 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
8165
8166 PR libgomp/55561
8167 * config/linux/wait.h (do_spin): Use atomic load for addr.
8168 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
8169 for intptr and ptrlock.
8170 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
8171 for ptrlock.
8172
8173 2013-01-22 Alan Modra <amodra@gmail.com>
8174
8175 PR libgomp/51376
8176 PR libgomp/56073
8177 * task.c (GOMP_task): Revert 2011-12-09 change.
8178 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
8179 barrier to read task->children..
8180 (gomp_barrier_handle_tasks): ..and matching atomic store with
8181 release barrier here when setting parent->children to NULL.
8182
8183 2013-01-16 Jakub Jelinek <jakub@redhat.com>
8184 Tobias Burnus <burnus@net-b.de>
8185
8186 PR driver/55884
8187 * testsuite/libgomp.fortran/fortran.exp: Use
8188 -fintrinsic-modules-path= instead of
8189 -fintrinsic-modules-path.
8190
8191 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
8192
8193 Update copyright years.
8194
8195 2012-12-19 Tobias Burnus <burnus@net-b.de>
8196
8197 * testsuite/libgomp.fortran/fortran.exp: Set
8198 -fintrinsic-modules-path.
8199
8200 2012-12-19 Tobias Burnus <burnus@net-b.de>
8201
8202 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8203 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8204
8205 2012-11-21 Jakub Jelinek <jakub@redhat.com>
8206
8207 PR libgomp/55411
8208 * team.c (gomp_free_thread): Decrease gomp_managed_threads
8209 if pool had any threads_used.
8210
8211 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
8212
8213 * testsuite/libgomp.c++/pr24455.C: Use
8214 -Wl,-undefined,dynamic_lookup on darwin.
8215
8216 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
8217
8218 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8219
8220 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
8221
8222 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8223
8224 2012-10-23 Ian Bolton <ian.bolton@arm.com>
8225 Jim MacArthur <jim.macarthur@arm.com>
8226 Marcus Shawcroft <marcus.shawcroft@arm.com>
8227 Nigel Stephens <nigel.stephens@arm.com>
8228 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8229 Richard Earnshaw <rearnsha@arm.com>
8230 Sofiane Naci <sofiane.naci@arm.com>
8231 Stephen Thomas <stephen.thomas@arm.com>
8232 Tejas Belagod <tejas.belagod@arm.com>
8233 Yufeng Zhang <yufeng.zhang@arm.com>
8234
8235 * configure.tgt: Add AArch64.
8236
8237 2012-10-04 Jason Merrill <jason@redhat.com>
8238
8239 * testsuite/libgomp.c++/tls-init1.C: New.
8240
8241 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8242
8243 * configure: Regenerated.
8244
8245 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
8246
8247 * config/linux/mips/futex.h (sys_futex0): Change to static
8248 function with noinline, nomips16 attributes under MIPS16. Adjust
8249 asm statement to place 'li v0,SYS_futex' immediately before
8250 syscall insn.
8251
8252 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
8253
8254 * libgomp.texi (Library Index): Renamed from "Index" to prevent
8255 conflict with index.html on case-insensitive file systems.
8256
8257 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8258
8259 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8260 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8261
8262 2012-07-02 Richard Guenther <rguenther@suse.de>
8263 Michael Matz <matz@suse.de>
8264 Tobias Grosser <tobias@grosser.es>
8265 Sebastian Pop <sebpop@gmail.com>
8266
8267 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8268 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8269 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8270 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8271
8272 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8273
8274 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8275
8276 2012-06-22 Richard Guenther <rguenther@suse.de>
8277
8278 Merge from graphite branch
8279 2012-01-13 Tobias Grosser <tobias@grosser.es>
8280
8281 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8282 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8283
8284 2012-06-07 Jakub Jelinek <jakub@redhat.com>
8285
8286 PR middle-end/53580
8287 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8288 use GOMP_barrier () call instead.
8289 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8290 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8291 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8292 call GOMP_barrier instead.
8293 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8294
8295 2012-06-06 Jakub Jelinek <jakub@redhat.com>
8296
8297 PR libgomp/52993
8298 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8299 argument to memset call.
8300
8301 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8302
8303 * configure: Regenerated.
8304
8305 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8306
8307 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8308
8309 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8310
8311 PR bootstrap/52812
8312 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8313
8314 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8315
8316 PR middle-end/52547
8317 * testsuite/libgomp.c/pr52547.c: New test.
8318
8319 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8320
8321 * testsuite/lib/libgomp.exp: load fortran-modules.exp
8322
8323 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8324
8325 * configure.tgt (mips-sgi-irix6*): Remove.
8326
8327 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8328
8329 * configure.tgt (alpha*-dec-osf*): Remove.
8330
8331 * config/osf/sem.h: Remove.
8332 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8333
8334 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8335
8336 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8337
8338 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8339
8340 PR libstdc++/52188
8341 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8342 Remove ENABLE_SYMVERS_SOL2.
8343 * configure: Regenerate.
8344 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8345 (PREPROCESS): New variable.
8346 (libgomp.ver): New target.
8347 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8348 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8349 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8350 Use libgomp.ver.
8351 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8352 * Makefile.in: Regenerate.
8353
8354 2012-02-14 Walter Lee <walt@tilera.com>
8355
8356 * configure.tgt: Handle tilegx and tilepro.
8357 * config/linux/tile/futex.h: New file.
8358
8359 2012-02-08 Richard Guenther <rguenther@suse.de>
8360
8361 PR tree-optimization/46886
8362 * testsuite/libgomp.c/pr46886.c: New testcase.
8363
8364 2012-01-25 Matthias Klose <doko@ubuntu.com>
8365
8366 * config/linux/arm: Remove empty directory.
8367 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8368
8369 2011-12-09 Alan Modra <amodra@gmail.com>
8370
8371 PR libgomp/51376
8372 * task.c (GOMP_taskwait): Don't access task->children outside of
8373 task_lock mutex region.
8374 (GOMP_task): Likewise.
8375
8376 2011-12-06 Jakub Jelinek <jakub@redhat.com>
8377
8378 PR libgomp/51132
8379 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
8380 to file scope.
8381 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8382 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8383 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8384 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8385 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8386
8387 2011-12-02 Alan Modra <amodra@gmail.com>
8388
8389 * config/linux/affinity.c: Use atomic rather than sync builtin.
8390 * config/linux/lock.c: Likewise.
8391 * config/linux/ptrlock.h: Likewise.
8392 * config/linux/ptrlock.c: Likewise.
8393 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
8394 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
8395 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
8396 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
8397 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
8398 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
8399 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
8400 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
8401 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
8402 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
8403
8404 2011-11-30 Alan Modra <amodra@gmail.com>
8405
8406 PR libgomp/51298
8407 * config/linux/bar.h: Use atomic rather than sync builtins.
8408 * config/linux/bar.c: Likewise. Add missing acquire
8409 synchronisation on generation field.
8410 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
8411 double unlock.
8412
8413 2011-11-30 Alan Modra <amodra@gmail.com>
8414
8415 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
8416 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
8417 * config/linux/mutex.h: Use atomic rather than sync builtins.
8418 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
8419 * config/linux/omp-lock.h: Comment fix.
8420 * config/linux/arm/mutex.h: Delete.
8421 * config/linux/powerpc/mutex.h: Delete.
8422 * config/linux/ia64/mutex.h: Delete.
8423 * config/linux/mips/mutex.h: Delete.
8424
8425 2011-11-30 Alan Modra <amodra@gmail.com>
8426
8427 PR libgomp/51249
8428 * config/linux/sem.h: Rewrite.
8429 * config/linux/sem.c: Rewrite.
8430
8431 2011-11-28 Richard Henderson <rth@redhat.com>
8432
8433 * libgomp.h (enum memmodel): New.
8434
8435 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
8436
8437 * configure: Regenerate.
8438
8439 2011-10-10 Matthias Klose <doko@ubuntu.com>
8440
8441 * config/posix95: Remove empty directory.
8442
8443 2011-08-26 Jakub Jelinek <jakub@redhat.com>
8444
8445 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
8446
8447 2011-08-19 Jakub Jelinek <jakub@redhat.com>
8448
8449 PR fortran/49792
8450 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
8451 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
8452
8453 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8454
8455 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
8456
8457 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8458
8459 PR libgomp/49965
8460 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
8461
8462 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
8463
8464 * config/linux/proc.h: New.
8465 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
8466 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
8467 (gomp_init_num_threads): Update call to cpuset_popcount.
8468 (get_num_procs): Ditto.
8469 * config/linux/affinity.c (gomp_init_affinity): Call
8470 gomp_cpuset_popcount.
8471
8472 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8473
8474 PR fortran/42041
8475 PR fortran/46752
8476 * omp.h.in (omp_in_final): New prototype.
8477 * omp_lib.f90.in (omp_in_final): New interface.
8478 (omp_integer_kind, omp_logical_kind): Remove
8479 and replace all its uses in the module with 4.
8480 (openmp_version): Change to 201107.
8481 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
8482 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
8483 kind for the parameters.
8484 (omp_in_final): New external.
8485 (openmp_version): Change to 201107.
8486 * task.c (omp_in_final): New function.
8487 (gomp_init_task): Initialize final_task.
8488 (GOMP_task): Remove unused attribute from flags. Handle final
8489 tasks.
8490 (GOMP_taskyield): New function.
8491 (omp_in_final): Return true if if (false) or final (true) task
8492 or descendant of final (true).
8493 * fortran.c (omp_in_final_): New function.
8494 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
8495 (GOMP_3.0): Export GOMP_taskyield.
8496 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8497 variables.
8498 (parse_unsigned_long_list): New function.
8499 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
8500 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
8501 even if parse_affinity returned false.
8502 * config/linux/affinity.c (gomp_init_affinity): Handle
8503 gomp_cpu_affinity_len == 0.
8504 * libgomp_g.h (GOMP_taskyield): New prototype.
8505 * libgomp.h (struct gomp_task): Add final_task field.
8506 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8507 * team.c (gomp_team_start): Override new task's nthreads_var icv
8508 if list form OMP_NUM_THREADS has been used and it has value for
8509 the new nesting level.
8510
8511 * testsuite/libgomp.c/atomic-11.c: New test.
8512 * testsuite/libgomp.c/atomic-12.c: New test.
8513 * testsuite/libgomp.c/atomic-13.c: New test.
8514 * testsuite/libgomp.c/atomic-14.c: New test.
8515 * testsuite/libgomp.c/reduction-6.c: New test.
8516 * testsuite/libgomp.c/task-5.c: New test.
8517 * testsuite/libgomp.c++/atomic-2.C: New test.
8518 * testsuite/libgomp.c++/atomic-3.C: New test.
8519 * testsuite/libgomp.c++/atomic-4.C: New test.
8520 * testsuite/libgomp.c++/atomic-5.C: New test.
8521 * testsuite/libgomp.c++/atomic-6.C: New test.
8522 * testsuite/libgomp.c++/atomic-7.C: New test.
8523 * testsuite/libgomp.c++/atomic-8.C: New test.
8524 * testsuite/libgomp.c++/atomic-9.C: New test.
8525 * testsuite/libgomp.c++/task-8.C: New test.
8526 * testsuite/libgomp.c++/reduction-4.C: New test.
8527 * testsuite/libgomp.fortran/allocatable7.f90: New test.
8528 * testsuite/libgomp.fortran/allocatable8.f90: New test.
8529 * testsuite/libgomp.fortran/crayptr3.f90: New test.
8530 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8531 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8532 * testsuite/libgomp.fortran/pointer1.f90: New test.
8533 * testsuite/libgomp.fortran/pointer2.f90: New test.
8534 * testsuite/libgomp.fortran/task4.f90: New test.
8535
8536 2011-08-02 Tobias Burnus <burnus@net-b.de>
8537
8538 * libgomp.texi: Update OpenMP spec references to 3.1.
8539 (omp_in_final,OMP_PROC_BIND): New sections.
8540 (OMP_NUM_THREADS): Document that the value can be now a list.
8541 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8542
8543 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8544
8545 * config/linux/x86/futex.h: Check __x86_64__ instead of
8546 __LP64__.
8547
8548 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8549
8550 PR middle-end/49897
8551 PR middle-end/49898
8552 * testsuite/libgomp.c/pr49897-1.c: New test.
8553 * testsuite/libgomp.c/pr49897-2.c: New test.
8554 * testsuite/libgomp.c/pr49898-1.c: New test.
8555 * testsuite/libgomp.c/pr49898-2.c: New test.
8556
8557 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8558
8559 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8560 for ia32 instead of ilp32.
8561
8562 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8563 * testsuite/libgomp.c/atomic-6.c: Likewise.
8564
8565 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
8566
8567 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8568 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8569
8570 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8571
8572 PR libgomp/45351
8573 * config/osf/sem.h: New file.
8574 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8575
8576 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8577
8578 PR target/49541
8579 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8580 ldflags.
8581
8582 2011-07-15 Jakub Jelinek <jakub@redhat.com>
8583
8584 * config/linux/wait.h (do_spin): New inline, largely copied
8585 from do_wait, just don't do futex_wait here, instead return true if
8586 it should be done.
8587 (do_wait): Implement using do_spin.
8588 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8589 to prototype.
8590 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8591 __sync_bool_compare_and_swap, pass the oldval to
8592 gomp_mutex_lock_slow.
8593 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8594 If all mutex contenders are just spinning and not sleeping, don't
8595 change state to 2 unnecessarily. Optimize the loop when state has
8596 already become 2 to use just one atomic operation per loop instead
8597 of two.
8598 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8599 to prototype.
8600 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8601 __sync_bool_compare_and_swap, pass the oldval to
8602 gomp_mutex_lock_slow.
8603
8604 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8605
8606 PR libgomp/49490
8607 * iter.c (gomp_iter_static_next): For chunk size 0
8608 only use n ceil/ nthreads size for the first
8609 n % nthreads threads in the team instead of
8610 all threads except for the last few ones which
8611 get less work or none at all.
8612 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8613 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8614 chunk argument, set run_sched_modifier to 0 for static
8615 resp. 1 for other kinds. If chunk argument is 0
8616 and not static, set value to 1.
8617
8618 2011-05-19 Jakub Jelinek <jakub@redhat.com>
8619
8620 PR c++/49043
8621 * testsuite/libgomp.c++/pr49043.C: New test.
8622
8623 PR c++/48869
8624 * testsuite/libgomp.c++/pr48869.C: New test.
8625
8626 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8627
8628 PR fortran/48894
8629 * fortran.c: Include limits.h.
8630 (TO_INT): Define.
8631 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8632 *set.
8633 (omp_set_num_threads_8_, omp_set_schedule_8_,
8634 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8635 omp_get_team_size_8_): Use TO_INT macro.
8636 * testsuite/libgomp.fortran/pr48894.f90: New test.
8637
8638 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8639
8640 PR middle-end/48591
8641 * testsuite/libgomp.c/pr48591.c: New test.
8642
8643 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8644
8645 PR bootstrap/48135
8646 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8647 * configure: Regenerate.
8648
8649 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8650
8651 PR fortran/47886
8652 * testsuite/libgomp.fortran/task3.f90: New test.
8653
8654 2011-02-24 Tobias Burnus <burnus@net-b.de>
8655
8656 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8657
8658 2011-02-23 Jakub Jelinek <jakub@redhat.com>
8659
8660 PR libgomp/47854
8661 * libgomp.texi (omp_get_wtime): Don't say time in the past
8662 must be Unix Epoch.
8663
8664 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8665
8666 PR libgomp/47804
8667 * testsuite/libgomp.fortran/fortran.exp: Check for both
8668 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
8669 but $blddir != "", still append ${blddir}/${lang_library_path}
8670 to ld_library_path.
8671
8672 2011-02-16 Tobias Burnus <burnus@net-b.de>
8673
8674 PR libgomp/47758
8675 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8676 of libquadmath.a before adding its libpath to ldflags.
8677
8678 2011-02-14 Jakub Jelinek <jakub@redhat.com>
8679
8680 PR libgomp/47731
8681 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8682 to FUTEX_WAIT futex syscall.
8683 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8684
8685 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8686
8687 * configure: Regenerate.
8688
8689 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
8690
8691 PR libstdc++/36104
8692 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8693
8694 2011-01-16 Gerald Pfeifer
8695
8696 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8697
8698 2010-12-14 Jakub Jelinek <jakub@redhat.com>
8699
8700 PR fortran/46874
8701 * libgomp.fortran/allocatable6.f90: New test.
8702
8703 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8704
8705 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8706 * configure: Regenerate.
8707
8708 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
8709
8710 PR target/40125
8711 PR lto/46695
8712 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8713 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8714 * aclocal.m4: Regenerate.
8715 * configure: Regenerate.
8716 * Makefile.in: Regenerate.
8717 * testsuite/Makefile.in: Regenerate.
8718
8719 2010-12-02 Jakub Jelinek <jakub@redhat.com>
8720
8721 PR fortran/46753
8722 * libgomp.fortran/pr46753.f90: New test.
8723
8724 PR libgomp/43706
8725 * env.c (initialize_env): Default to spin count 300000
8726 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8727 is specified.
8728
8729 PR libgomp/45240
8730 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8731 at the end if sync builtins aren't supported.
8732
8733 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8734
8735 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8736
8737 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8738
8739 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8740
8741 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
8742
8743 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8744
8745 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8746 Tobias Burnus <burnus@net-b.de>
8747
8748 PR fortran/32049
8749 * configure.ac:
8750 * configure: Regenerate.
8751
8752 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
8753
8754 * config/linux/futex.h: New.
8755 * config/linux/arm/mutex.h: New.
8756 * configure.tgt (arm*-*-linux*): Add config path.
8757
8758 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8759
8760 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8761
8762 2010-09-23 Tobias Burnus <burnus@net-b.de>
8763
8764 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8765 Change Fortran datatype to LOGICAL.
8766 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8767 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8768
8769 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8770
8771 * configure: Regenerate.
8772
8773 2010-07-26 Jakub Jelinek <jakub@redhat.com>
8774
8775 * libgomp.texi: Add function keyword to a couple of Fortran
8776 interfaces, use integer instead of int for Fortran.
8777
8778 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8779
8780 * libgomp.texi: Fix spelling and pasto problems throughout.
8781 Adjust prototypes to match code.
8782
8783 2010-07-24 Tobias Burnus <burnus@net-b.de>
8784
8785 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8786 silence -fwhole-file warning.
8787
8788 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8789
8790 * configure.tgt (*-*-solaris2.[56]*): Removed.
8791
8792 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8793
8794 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8795 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8796 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8797 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8798 targetting solaris2*.
8799 * configure: Regenerate.
8800 * config.h.in: Regenerate.
8801
8802 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8803 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8804 Add libgomp_version_dep.
8805 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8806 versioning.
8807 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8808 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8809 * Makefile.in: Regenerate.
8810
8811 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8812 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8813 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8814 to common block, protected by
8815 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8816
8817 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8818
8819 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
8820
8821 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8822
8823 PR bootstrap/43170
8824 * configure: Regenerate.
8825
8826 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8827
8828 PR other/43620
8829 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8830 * configure: Regenerate.
8831 * Makefile.in: Regenerate.
8832 * testsuite/Makefile.in: Regenerate.
8833
8834 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8835
8836 PR c/43893
8837 * testsuite/libgomp.c/pr43893.c: New test.
8838 * testsuite/libgomp.c++/pr43893.C: New test.
8839
8840 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8841
8842 PR middle-end/43570
8843 * testsuite/libgomp.fortran/vla8.f90: New test.
8844
8845 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8846
8847 PR libgomp/43706
8848 * config/linux/affinity.c (gomp_init_affinity): Decrease
8849 gomp_available_cpus if affinity mask confines the process to fewer
8850 CPUs.
8851 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8852 non-NULL, just return gomp_available_cpus.
8853
8854 PR libgomp/43569
8855 * sections.c (gomp_sections_init): Initialize ws->mode.
8856
8857 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8858
8859 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8860 not unused bar variable.
8861 * configure: Regenerate.
8862
8863 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8864
8865 * Makefile.in: Regenerate.
8866 * aclocal.m4: Regenerate.
8867 * testsuite/Makefile.in: Regenerate.
8868
8869 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8870
8871 PR libgomp/42942
8872 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8873 (initialize_env): Adjust callers.
8874 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8875 when the argument is 0.
8876
8877 * testsuite/libgomp.c/pr42942.c: New test.
8878
8879 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8880
8881 PR middle-end/42644
8882 PR middle-end/42130
8883 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8884 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8885
8886 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8887
8888 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8889 * testsuite/libgomp.c++/task-6.C: Likewise.
8890
8891 2010-01-28 Steve Ellcey <sje@cup.hp.com>
8892
8893 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8894
8895 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
8896
8897 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8898 * configure: Regenerate.
8899
8900 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8901
8902 PR fortran/42866
8903 * testsuite/libgomp.fortran/allocatable5.f90: New test.
8904
8905 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
8906
8907 * configure.ac: Test for executability of GFORTRAN.
8908 * configure: Regenerate.
8909
8910 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8911
8912 * configure: Regenerate.
8913
8914 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8915
8916 PR libgomp/42602
8917 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8918
8919 2010-01-03 Richard Guenther <rguenther@suse.de>
8920
8921 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8922
8923 2009-12-23 Sebastian Pop <sebpop@gmail.com>
8924
8925 * testsuite/libgomp.graphite/pr4118.c: New.
8926
8927 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8928
8929 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8930 for darwin, protect the test with require-effective-target tls_runtime.
8931 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8932
8933 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8934
8935 PR target/41605
8936 * testsuite/lib/libgomp.exp: Provide -B options to allow for
8937 link spec %s substitutions for static libraries.
8938
8939 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
8940
8941 PR testsuite/42135
8942 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8943
8944 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8945
8946 * Makefile.in: Regenerate.
8947 * configure: Regenerate.
8948 * testsuite/Makefile.in: Regenerate.
8949
8950 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8951
8952 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8953 settings for LC_ALL and LANG.
8954
8955 2009-11-25 Jakub Jelinek <jakub@redhat.com>
8956
8957 PR fortran/42162
8958 * testsuite/libgomp.fortran/pr42162.f90: New test.
8959
8960 2009-11-13 Jakub Jelinek <jakub@redhat.com>
8961
8962 PR middle-end/42029
8963 * testsuite/libgomp.c/pr42029.c: New test.
8964
8965 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8966
8967 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8968 *s. Accept ld version without text in ()s.
8969 * configure: Regenerated.
8970
8971 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
8972
8973 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8974
8975 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8976
8977 PR libgomp/41418
8978 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8979 or a hyphen (happens with fortran language disabled).
8980 * configure: Regenerate.
8981
8982 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8983
8984 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8985 use sed script portable to Solaris /bin/sed for extracting ld
8986 version.
8987 * configure: Regenerate.
8988
8989 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8990
8991 * testsuite/libgomp.graphite/bounds.c: New test.
8992
8993 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8994
8995 * Makefile.am (libgomp_la_LINK): New.
8996 * Makefile.in: Regenerate.
8997
8998 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8999
9000 * configure.ac (AC_PREREQ): Bump to 2.64.
9001
9002 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9003
9004 * Makefile.am (install-html, install-pdf): Remove.
9005 * Makefile.in: Regenerate.
9006
9007 * Makefile.in: Regenerate.
9008 * aclocal.m4: Regenerate.
9009 * config.h.in: Regenerate.
9010 * configure: Regenerate.
9011 * testsuite/Makefile.in: Regenerate.
9012
9013 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9014
9015 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
9016 * Makefile.in: Regenerate.
9017
9018 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
9019
9020 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
9021 * Makefile.in: Regenerate.
9022
9023 2009-08-19 Tobias Burnus <burnus@net-b.de>
9024
9025 PR fortran/41102
9026 omp_lib.h.in: Fix -std=f95 errors.
9027
9028 2009-08-14 David Edelsohn <edelsohn@gnu.org>
9029
9030 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
9031 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
9032 * testsuite/libgomp.graphite/graphite.exp: New.
9033
9034 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
9035
9036 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
9037 only build.
9038
9039 2009-08-04 David Daney <ddaney@caviumnetworks.com>
9040
9041 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
9042 needed memory barrier semantics.
9043 * config/linux/mips/mutex.h: New file.
9044
9045 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9046
9047 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
9048
9049 2009-07-16 Joseph Myers <joseph@codesourcery.com>
9050
9051 * configure: Regenerate.
9052
9053 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
9054
9055 PR testsuite/40699
9056 PR testsuite/40707
9057 PR testsuite/40709
9058 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
9059 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
9060 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
9061
9062 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
9063
9064 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
9065 options when choosing a multilib.
9066
9067 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
9068
9069 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
9070 ld_library_path. Use add_path. Add just find_libgcc_s to
9071 ld_library_path, not every libgcc multilib directory.
9072 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
9073 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
9074 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
9075 Use add_path.
9076 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
9077
9078 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
9079
9080 * Makefile.am (LTLDFLAGS): Define.
9081 (LINK): Define.
9082 * Makefile.in: Regenerate.
9083
9084 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
9085
9086 PR fortran/39718
9087 * testsuite/libgomp.fortran/fortran.exp: Don't link with
9088 libgfortranbegin, check existence of libgfortran.a instead of
9089 libgfortranbegin.a.
9090
9091 2009-05-20 Jakub Jelinek <jakub@redhat.com>
9092
9093 PR libgomp/40174
9094 * team.c (gomp_thread_start): Destroy thr->release semaphore.
9095 (gomp_free_pool_helper): Likewise.
9096
9097 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
9098 Jakub Jelinek <jakub@redhat.com>
9099
9100 PR fortran/35423
9101 * testsuite/libgomp.fortran/workshare2.f90: New test.
9102
9103 2009-04-09 Nick Clifton <nickc@redhat.com>
9104
9105 * iter.c: Change copyright header to refer to version 3 of the
9106 GNU General Public License with version 3.1 of the GCC Runtime
9107 Library Exception and to point readers at the COPYING3 and
9108 COPYING3.RUNTIME files and the FSF's license web page.
9109 * alloc.c: Likewise.
9110 * barrier.c: Likewise.
9111 * config/bsd/proc.c: Likewise.
9112 * config/linux/affinity.c: Likewise.
9113 * config/linux/alpha/futex.h: Likewise.
9114 * config/linux/bar.c: Likewise.
9115 * config/linux/bar.h: Likewise.
9116 * config/linux/ia64/futex.h: Likewise.
9117 * config/linux/ia64/mutex.h: Likewise.
9118 * config/linux/lock.c: Likewise.
9119 * config/linux/mips/futex.h: Likewise.
9120 * config/linux/mutex.c: Likewise.
9121 * config/linux/mutex.h: Likewise.
9122 * config/linux/powerpc/futex.h: Likewise.
9123 * config/linux/proc.c: Likewise.
9124 * config/linux/ptrlock.c: Likewise.
9125 * config/linux/ptrlock.h: Likewise.
9126 * config/linux/s390/futex.h: Likewise.
9127 * config/linux/sem.c: Likewise.
9128 * config/linux/sem.h: Likewise.
9129 * config/linux/sparc/futex.h: Likewise.
9130 * config/linux/wait.h: Likewise.
9131 * config/linux/x86/futex.h: Likewise.
9132 * config/mingw32/proc.c: Likewise.
9133 * config/mingw32/time.c: Likewise.
9134 * config/posix/affinity.c: Likewise.
9135 * config/posix/bar.c: Likewise.
9136 * config/posix/bar.h: Likewise.
9137 * config/posix/lock.c: Likewise.
9138 * config/posix/mutex.h: Likewise.
9139 * config/posix/proc.c: Likewise.
9140 * config/posix/ptrlock.h: Likewise.
9141 * config/posix/sem.c: Likewise.
9142 * config/posix/sem.h: Likewise.
9143 * config/posix/time.c: Likewise.
9144 * config/posix95/lock.c: Likewise.
9145 * critical.c: Likewise.
9146 * env.c: Likewise.
9147 * error.c: Likewise.
9148 * fortran.c: Likewise.
9149 * iter_ull.c: Likewise.
9150 * libgomp.h: Likewise.
9151 * libgomp_f.h.in: Likewise.
9152 * libgomp_g.h: Likewise.
9153 * loop.c: Likewise.
9154 * loop_ull.c: Likewise.
9155 * omp.h.in: Likewise.
9156 * omp_lib.f90.in: Likewise.
9157 * omp_lib.h.in: Likewise.
9158 * ordered.c: Likewise.
9159 * parallel.c: Likewise.
9160 * sections.c: Likewise.
9161 * single.c: Likewise.
9162 * task.c: Likewise.
9163 * team.c: Likewise.
9164 * work.c: Likewise.
9165
9166 2009-04-09 Jakub Jelinek <jakub@redhat.com>
9167
9168 * testsuite/config/default.exp: Change copyright header to refer to
9169 version 3 of the GNU General Public License and to point readers
9170 at the COPYING3 file and the FSF's license web page.
9171
9172 2009-04-08 Jakub Jelinek <jakub@redhat.com>
9173
9174 PR middle-end/39573
9175 * libgomp.c++/pr39573.C: New test.
9176
9177 2009-04-01 Jakub Jelinek <jakub@redhat.com>
9178
9179 PR other/39591
9180 * testsuite/libgomp.c/pr39591-1.c: New test.
9181 * testsuite/libgomp.c/pr39591-2.c: New test.
9182 * testsuite/libgomp.c/pr39591-3.c: New test.
9183
9184 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
9185
9186 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
9187 * testsuite/libgomp.c/atomic-6.c: Ditto.
9188
9189 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9190
9191 PR c/39495
9192 * testsuite/libgomp.c/loop-12.c: New test.
9193 * testsuite/libgomp.c/loop-11.c: New test.
9194 * testsuite/libgomp.c++/loop-11.C: New test.
9195 * testsuite/libgomp.c++/loop-12.C: New test.
9196 * testsuite/libgomp.c++/for-8.C: New test.
9197
9198 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9199
9200 * configure: Regenerate.
9201
9202 2009-02-11 Jakub Jelinek <jakub@redhat.com>
9203
9204 PR middle-end/39154
9205 * testsuite/libgomp.c/pr39154.c: New test.
9206
9207 2009-01-30 Ian Lance Taylor <iant@google.com>
9208
9209 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9210 libgomp_ld_is_gold. Get gold version number.
9211 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9212 * configure: Rebuild.
9213
9214 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9215
9216 * testsuite/lib/libgomp.exp: Add -B option for targets that
9217 use libgfortran.a%s in their specs.
9218
9219 2009-01-07 Jakub Jelinek <jakub@redhat.com>
9220
9221 PR libgomp/38086
9222 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9223 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9224 HAVE_AS_SYMVER_DIRECTIVE is not defined.
9225 * configure: Regenerated.
9226 * config.h.in: Likewise.
9227
9228 2008-12-28 Jakub Jelinek <jakub@redhat.com>
9229
9230 PR c++/38650
9231 * testsuite/libgomp.c/pr38650.c: New test.
9232 * testsuite/libgomp.c++/pr38650.C: New test.
9233
9234 2008-12-27 Jakub Jelinek <jakub@redhat.com>
9235
9236 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9237
9238 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
9239
9240 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9241
9242 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9243
9244 * configure: Regenerate.
9245
9246 2008-12-08 Jakub Jelinek <jakub@redhat.com>
9247
9248 PR middle-end/36802
9249 * testsuite/libgomp.c/pr36802-1.c: New test.
9250 * testsuite/libgomp.c/pr36802-2.c: New test.
9251 * testsuite/libgomp.c/pr36802-3.c: New test.
9252
9253 2008-12-01 Janis Johnson <janis187@us.ibm.com>
9254
9255 PR libgomp/38270
9256 * config/linux/powerpc/mutex.h: New.
9257
9258 2008-12-01 Jakub Jelinek <jakub@redhat.com>
9259
9260 PR c++/38257
9261 * testsuite/libgomp.c++/for-7.C: New test.
9262
9263 PR c++/38348
9264 * testsuite/libgomp.c++/for-6.C: New test.
9265
9266 2008-11-26 Janis Johnson <janis187@us.ibm.com>
9267
9268 PR testsuite/28870
9269 * testsuite/lib/libgomp.exp: Include new timeout library files.
9270 (libgomp_target_compile): Set timeout value from new proc.
9271
9272 2008-11-13 Steve Ellcey <sje@cup.hp.com>
9273
9274 PR libgomp/37938
9275 * config/linux/ia64/mutex.h: New.
9276
9277 2008-11-04 Tobias Burnus <burnus@net-b.de>
9278
9279 PR libgomp/37935
9280 * libgomp.texi (Runtime library routines, environment variables):
9281 Update for OpenMP version 3.0.
9282
9283 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
9284 Steve Ellcey <sje@cup.hp.com>
9285
9286 * configure: Regenerate for new libtool.
9287 * Makefile.in: Ditto.
9288 * testsuite/Makefile.in: Ditto.
9289
9290 2008-09-19 Jakub Jelinek <jakub@redhat.com>
9291 Andreas Tobler <a.tobler@schweiz.org>
9292
9293 * config/bsd/proc.c: New file.
9294 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
9295 * configure.ac: Check for header <sys/sysctl.h>
9296 * configure: Regenerate.
9297 * config.h.in: Likewise.
9298
9299 2008-09-05 Janis Johnson <janis187@us.ibm.com>
9300
9301 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9302
9303 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9304
9305 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9306 * Makefile.in: Regenerated.
9307 * testsuite/Makefile.in: Regenerated.
9308
9309 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
9310
9311 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
9312 depend on blddir if blddir exists.
9313 (libgomp_target_compile): Likewise.
9314 * testsuite/libgomp.c++/c++.exp: Likewise.
9315 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9316
9317 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9318
9319 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
9320 Do not list GPL as Invariant Section.
9321
9322 2008-07-28 Ilie Garbacea <ilie@mips.com>
9323 Chao-ying Fu <fu@mips.com>
9324
9325 * configure.tgt: Enable futex for MIPS.
9326 * config/linux/mips/futex.h: New file.
9327
9328 2008-07-16 Jakub Jelinek <jakub@redhat.com>
9329
9330 * team.c (gomp_team_end): Free team immediately if it has
9331 just one thread.
9332
9333 2008-07-08 David Edelsohn <edelsohn@gnu.org>
9334
9335 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9336 * testsuite/libgomp.fortran/fortran.exp: Same.
9337 * testsuite/libgomp.c/c.exp: Same.
9338 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9339 directory to library path first.
9340
9341 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
9342
9343 * env.c (parse_stacksize): Add cast to avoid warning.
9344 (parse_spincount): Likewise.
9345
9346 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9347
9348 * testsuite/libgomp.c/loop-10.c: New test.
9349 * libgomp.c/loop-3.c (main): Add lastprivate clause.
9350 * libgomp.c++/loop-6.C (main): Likewise.
9351
9352 PR debug/36617
9353 * testsuite/libgomp.c/debug-1.c: New test.
9354
9355 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9356
9357 * testsuite/libgomp.c/nqueens-1.c: New test.
9358
9359 PR c++/36523
9360 * testsuite/libgomp.c++/task-7.C: New function.
9361
9362 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9363
9364 * configure: Regenerate.
9365
9366 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9367
9368 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9369 mutex when HAVE_SYNC_BUILTINS isn't defined.
9370
9371 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9372
9373 * libgomp.texi (omp_test_lock): Fix typo.
9374
9375 2008-06-12 Tobias Burnus <burnus@net-b.de>
9376
9377 * omp_lib.f90.in: Add "implicit none".
9378
9379 2008-06-12 Jakub Jelinek <jakub@redhat.com>
9380
9381 PR middle-end/36506
9382 * testsuite/libgomp.c/reduction-5.c: New test.
9383
9384 2008-06-11 Jakub Jelinek <jakub@redhat.com>
9385
9386 * libgomp.h (struct gomp_task): Add in_tied_task field.
9387 * task.c (gomp_init_task): Initialize it.
9388 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
9389 unconditionally. Don't call gomp_team_barrier_wake if
9390 current task is implicit or if(0) from implicit and number of
9391 running tasks is equal to nthreads - 1.
9392
9393 PR libgomp/36471
9394 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
9395 omp_get_team_size_8): Fix pastos.
9396
9397 PR libgomp/36469
9398 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
9399 * configure: Regenerated.
9400 * config.h.in: Regenerated.
9401 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
9402 defined.
9403
9404 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
9405
9406 PR bootstrap/36452
9407 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
9408 (GOMP_loop_ull_dynamic_start): Likewise.
9409 (GOMP_loop_ull_guided_start): Likewise.
9410 (GOMP_loop_ull_ordered_static_start): Likewise.
9411 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
9412 (GOMP_loop_ull_ordered_guided_start): Likewise.
9413
9414 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9415 Richard Henderson <rth@redhat.com>
9416 Ulrich Drepper <drepper@redhat.com>
9417 Jakob Blomer <jakob.blomer@ira.uka.de>
9418
9419 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
9420 Substitute also OMP_*LOCK_25*.
9421 * configure: Regenerated.
9422 * config.h.in: Regenerated.
9423 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
9424 ptrlock.c and task.c.
9425 * Makefile.in: Regenerated.
9426 * testsuite/Makefile.in: Regenerated.
9427 * task.c: New file.
9428 * loop_ull.c: New file.
9429 * iter_ull.c: New file.
9430 * libgomp.h: Include ptrlock.h.
9431 (enum gomp_task_kind): New type.
9432 (struct gomp_team): Add task_lock, task_queue, task_count,
9433 task_running_count, single_count fields. Add
9434 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
9435 Remove work_share_lock, generation_mask,
9436 oldest_live_gen, num_live_gen and init_work_shares fields, add
9437 work work_share_list_alloc, work_share_list_free and work_share_chunk
9438 fields. Change work_shares from pointer to pointers into an array.
9439 Change ordered_release field into gomp_sem_t ** from flexible array
9440 member. Add implicit_task and initial_work_shares fields.
9441 Move close to the end of the struct.
9442 (struct gomp_team_state): Add single_count, last_work_share,
9443 active_level and level fields, remove work_share_generation.
9444 (gomp_barrier_handle_tasks): New prototype.
9445 (gomp_finish_task): New inline function.
9446 (struct gomp_work_share): Move chunk_size, end, incr into
9447 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
9448 next_ll fields. Reshuffle fields. Add next_alloc,
9449 next_ws, next_free and inline_ordered_team_ids fields, change
9450 ordered_team_ids into pointer from flexible array member.
9451 Add mode field. Put lock and next into a different cache line
9452 from most of the write-once fields.
9453 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
9454 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
9455 gomp_iter_ull_guided_next): New prototypes.
9456 (gomp_new_icv): New prototype.
9457 (struct gomp_thread): Add thread_pool and task fields.
9458 (struct gomp_thread_pool): New type.
9459 (gomp_new_team): New prototype.
9460 (gomp_team_start): Change type of last argument.
9461 (gomp_new_work_share): Removed.
9462 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
9463 (gomp_work_share_init_done): New static inline.
9464 (gomp_throttled_spin_count_var, gomp_available_cpus,
9465 gomp_managed_threads): New extern decls.
9466 (gomp_init_task): New prototype.
9467 (gomp_spin_count_var): New extern var decl.
9468 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
9469 or no alias support, or if not PIC.
9470 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
9471 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
9472 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
9473 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
9474 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
9475 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
9476 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
9477 gomp_test_nest_lock_25): New prototypes.
9478 (omp_lock_symver, strong_alias): Define.
9479 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
9480 decls.
9481 (gomp_end_task): New.
9482 (struct gomp_task_icv, gomp_global_icv): New.
9483 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
9484 (struct gomp_task): New.
9485 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9486 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9487 (gomp_icv): New.
9488 (gomp_schedule_type): Reorder enum to match
9489 omp_sched_t.
9490 * team.c (struct gomp_thread_start_data): Add thread_pool and task
9491 fields.
9492 (gomp_thread_start): Add gomp_team_barrier_wait call.
9493 For non-nested case remove clearing of docked thread thr fields.
9494 Use pool fields instead of global gomp_* variables. Use
9495 gomp_barrier_wait_last when needed. Initialize ts.active_level.
9496 Create tasks for each member thread.
9497 (free_team): Only destroy team barrier, task_lock here and free it.
9498 (gomp_free_thread): Free last_team if non-NULL.
9499 (gomp_team_end): Call gomp_team_barrier_wait instead of
9500 gomp_barrier_wait. For nested case call one extra
9501 gomp_barrier_wait. Move here some destruction from free_team.
9502 Call free_team on pool->last_team if any, rather than freeing
9503 current team. Destroy work_share_list_free_lock ifndef
9504 HAVE_SYNC_BUILTINS.
9505 (gomp_new_icv): New function.
9506 (gomp_threads, gomp_threads_size, gomp_threads_used,
9507 gomp_threads_dock): Removed.
9508 (gomp_thread_destructor): New variable.
9509 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9510 functions.
9511 (gomp_team_start): Create new pool if current thread doesn't have
9512 one. Use pool fields instead of global gomp_* variables.
9513 Initialize thread_pool field for new threads. Clear single_count.
9514 Change last argument from ws to team, don't create
9515 new team, set ts.work_share to &team->work_shares[0] and clear
9516 ts.last_work_share. Don't clear ts.work_share_generation.
9517 If number of threads changed, adjust atomically gomp_managed_threads.
9518 Use gomp_init_task instead of gomp_new_task,
9519 set thr->task to the corresponding implicit_task array entry.
9520 Create tasks for each member thread. Initialize ts.level.
9521 (initialize_team): Call pthread_key_create on
9522 gomp_thread_destructor.
9523 (team_destructor): New function.
9524 (new_team): Removed.
9525 (gomp_new_team): New function.
9526 (free_team): Free gomp_work_share blocks chained through next_alloc,
9527 instead of freeing work_shares and destroying work_share_lock.
9528 (gomp_team_end): Call gomp_fini_work_share. If number of threads
9529 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
9530 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9531 of gomp_barrier_wait.
9532 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9533 instead of gomp_barrier_wait. Call gomp_work_share_init_done
9534 if gomp_work_share_start returned true. Don't unlock ws->lock.
9535 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9536 of gomp_barrier_wait.
9537 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
9538 gomp_work_share_init_done if gomp_work_share_start returned true.
9539 Don't unlock ws->lock.
9540 * work.c: Include stddef.h.
9541 (free_work_share): Use work_share_list_free_lock instead
9542 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
9543 Call gomp_fini_work_share and then either free ws if orphaned, or
9544 put it into work_share_list_free list of the current team.
9545 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9546 functions.
9547 (gomp_work_share_start, gomp_work_share_end,
9548 gomp_work_share_end_nowait): Rewritten.
9549 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9550 (openmp_version): Set to 200805.
9551 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9552 omp_sched_guided, omp_sched_auto): New parameters.
9553 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9554 omp_set_max_active_levels, omp_get_max_active_levels,
9555 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9556 omp_get_active_level): New interfaces.
9557 * omp_lib.h.in (openmp_version): Set to 200805.
9558 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9559 omp_sched_guided, omp_sched_auto): New parameters.
9560 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9561 omp_set_max_active_levels, omp_get_max_active_levels,
9562 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9563 omp_get_active_level): New externals.
9564 * loop.c: Include limits.h.
9565 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9566 GFS_AUTO.
9567 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9568 Likewise. Use gomp_icv.
9569 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9570 ts.static_trip here.
9571 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9572 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
9573 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9574 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
9575 don't unlock ws->lock, otherwise lock it.
9576 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9577 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
9578 (gomp_parallel_loop_start): Call gomp_new_team instead of
9579 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
9580 Adjust gomp_team_start caller. Pass 0 as second argument to
9581 gomp_resolve_num_threads.
9582 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9583 If adding ws->chunk_size nthreads + 1 times after end won't
9584 overflow, set ws->mode to 1.
9585 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9586 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9587 GOMP_loop_ull_ordered_static_start,
9588 GOMP_loop_ull_ordered_dynamic_start,
9589 GOMP_loop_ull_ordered_guided_start,
9590 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9591 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9592 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9593 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9594 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9595 prototypes.
9596 * libgomp.map: Export lock routines also @@OMP_2.0.
9597 (GOMP_loop_ordered_dynamic_first,
9598 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9599 GOMP_loop_ordered_static_first): Remove.
9600 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9601 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9602 GOMP_loop_ull_ordered_dynamic_next,
9603 GOMP_loop_ull_ordered_dynamic_start,
9604 GOMP_loop_ull_ordered_guided_next,
9605 GOMP_loop_ull_ordered_guided_start,
9606 GOMP_loop_ull_ordered_runtime_next,
9607 GOMP_loop_ull_ordered_runtime_start,
9608 GOMP_loop_ull_ordered_static_next,
9609 GOMP_loop_ull_ordered_static_start,
9610 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9611 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9612 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9613 (omp_set_schedule, omp_get_schedule,
9614 omp_get_thread_limit, omp_set_max_active_levels,
9615 omp_get_max_active_levels, omp_get_level,
9616 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9617 omp_set_schedule_, omp_set_schedule_8_,
9618 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9619 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9620 omp_get_max_active_levels_, omp_get_level_,
9621 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9622 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9623 New exports @@OMP_3.0.
9624 * omp.h.in (omp_sched_t): New type.
9625 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9626 omp_set_max_active_levels, omp_get_max_active_levels,
9627 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9628 omp_get_active_level): New prototypes.
9629 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9630 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9631 gomp_thread_limit_var, gomp_remaining_threads_count,
9632 gomp_remaining_threads_lock): New variables.
9633 (parse_spincount): New function.
9634 (initialize_env): Call gomp_init_num_threads unconditionally.
9635 Initialize gomp_available_cpus. Call parse_spincount,
9636 initialize gomp_{,throttled_}spin_count_var
9637 depending on presence and value of OMP_WAIT_POLICY and
9638 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
9639 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9640 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
9641 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
9642 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
9643 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9644 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9645 (gomp_global_icv): New.
9646 (parse_schedule): Use it. Parse "auto".
9647 (omp_set_num_threads): Use gomp_icv.
9648 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9649 Likewise.
9650 (omp_get_max_threads): Move from parallel.c.
9651 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9652 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9653 add ialias.
9654 (parse_stacksize, parse_wait_policy): New functions.
9655 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9656 both wrappers for compatibility and new locks.
9657 (omp_set_schedule, omp_get_schedule,
9658 omp_get_thread_limit, omp_set_max_active_levels,
9659 omp_get_max_active_levels, omp_get_level,
9660 omp_get_ancestor_thread_num, omp_get_team_size,
9661 omp_get_active_level): New ialias_redirect.
9662 (omp_set_schedule_, omp_set_schedule_8_,
9663 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9664 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9665 omp_get_max_active_levels_, omp_get_level_,
9666 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9667 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9668 New functions.
9669 * parallel.c: Include limits.h.
9670 (gomp_resolve_num_threads): Add count argument. Rewritten.
9671 (GOMP_parallel_start): Call gomp_new_team and pass that as last
9672 argument to gomp_team_start. Pass 0 as second argument to
9673 gomp_resolve_num_threads.
9674 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9675 if gomp_thread_limit_var != ULONG_MAX.
9676 (omp_in_parallel): Implement using ts.active_level.
9677 (omp_get_max_threads): Move to env.c.
9678 (omp_get_level, omp_get_ancestor_thread_num,
9679 omp_get_team_size, omp_get_active_level): New functions,
9680 add ialias.
9681 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9682 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
9683 gomp_iter_dynamic_next instead of the _locked variant and don't take
9684 lock around it, otherwise acquire it before calling
9685 gomp_iter_dynamic_next_locked.
9686 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9687 gomp_iter_dynamic_next instead of the _locked variant and don't take
9688 lock around it.
9689 (GOMP_parallel_sections_start): Call gomp_new_team instead of
9690 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
9691 Adjust gomp_team_start caller. Pass count as second argument to
9692 gomp_resolve_num_threads, don't adjust num_threads after the call.
9693 Use gomp_icv.
9694 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9695 ws->chunk_size by incr.
9696 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
9697 code.
9698 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9699 types.
9700 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9701 (omp_check_defines): Check even the compat defines.
9702 * config/linux/ptrlock.c: New file.
9703 * config/linux/ptrlock.h: New file.
9704 * config/linux/wait.h: New file.
9705 * config/posix/ptrlock.c: New file.
9706 * config/posix/ptrlock.h: New file.
9707 * config/linux/bar.h (gomp_team_barrier_wait,
9708 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9709 (gomp_team_barrier_set_task_pending,
9710 gomp_team_barrier_clear_task_pending,
9711 gomp_team_barrier_set_waiting_for_tasks,
9712 gomp_team_barrier_waiting_for_tasks,
9713 gomp_team_barrier_done): New inlines.
9714 (gomp_barrier_t): Rewritten.
9715 (gomp_barrier_state_t): New typedef.
9716 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9717 gomp_barrier_wait_start): Rewritten.
9718 (gomp_barrier_wait_end): Change second argument to
9719 gomp_barrier_state_t.
9720 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9721 inlines.
9722 * config/linux/bar.c: Include wait.h instead of libgomp.h and
9723 futex.h.
9724 (gomp_barrier_wait_end): Rewritten.
9725 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9726 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9727 * config/posix/bar.h (gomp_barrier_t): Add generation field.
9728 (gomp_barrier_state_t): New typedef.
9729 (gomp_team_barrier_wait,
9730 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9731 (gomp_barrier_wait_start): Or all but low 2 bits from generation
9732 into the return value. Return gomp_barrier_state_t.
9733 (gomp_team_barrier_set_task_pending,
9734 gomp_team_barrier_clear_task_pending,
9735 gomp_team_barrier_set_waiting_for_tasks,
9736 gomp_team_barrier_waiting_for_tasks,
9737 gomp_team_barrier_done): New inlines.
9738 (gomp_barrier_wait_end): Change second argument to
9739 gomp_barrier_state_t.
9740 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9741 inlines.
9742 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9743 (gomp_barrier_wait_end): Change second argument to
9744 gomp_barrier_state_t.
9745 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9746 gomp_team_barrier_wake): New functions.
9747 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9748 futex.h.
9749 (gomp_futex_wake, gomp_futex_wait): New variables.
9750 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9751 * config/linux/lock.c: Rewrite to make locks task owned,
9752 for backwards compatibility provide the old entrypoints
9753 if symbol versioning. Include wait.h instead of libgomp.h and
9754 futex.h.
9755 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9756 * config/posix95/lock.c: Rewrite to make locks task owned,
9757 for backwards compatibility provide the old entrypoints
9758 if symbol versioning.
9759 * config/posix/lock.c: Rewrite to make locks task owned,
9760 for backwards compatibility provide the old entrypoints
9761 if symbol versioning.
9762 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9763 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9764 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9765 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9766 (sys_futex0): Return error code.
9767 (futex_wake, futex_wait): If ENOSYS was returned, clear
9768 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9769 (cpu_relax, atomic_write_barrier): New static inlines.
9770 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9771 (futex_wake, futex_wait): If ENOSYS was returned, clear
9772 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9773 (cpu_relax, atomic_write_barrier): New static inlines.
9774 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9775 (sys_futex0): Return error code.
9776 (futex_wake, futex_wait): If ENOSYS was returned, clear
9777 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9778 (cpu_relax, atomic_write_barrier): New static inlines.
9779 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9780 (sys_futex0): Return error code.
9781 (futex_wake, futex_wait): If ENOSYS was returned, clear
9782 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9783 (cpu_relax, atomic_write_barrier): New static inlines.
9784 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9785 (sys_futex0): Return error code.
9786 (futex_wake, futex_wait): If ENOSYS was returned, clear
9787 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9788 (cpu_relax, atomic_write_barrier): New static inlines.
9789 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9790 (sys_futex0): Return error code.
9791 (futex_wake, futex_wait): If ENOSYS was returned, clear
9792 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9793 (cpu_relax, atomic_write_barrier): New static inlines.
9794 * config/linux/sem.c: Include wait.h instead of libgomp.h and
9795 futex.h.
9796 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9797 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9798 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9799 types.
9800 (omp_nest_lock_t): Change owner into void *, add lock field.
9801 * config/posix95/omp-lock.h: Include semaphore.h.
9802 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9803 (omp_lock_t): Use sem_t instead of mutex if semaphores
9804 aren't broken.
9805 (omp_nest_lock_t): Likewise. Change owner to void *.
9806 * config/posix/omp-lock.h: Include semaphore.h.
9807 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9808 (omp_lock_t): Use sem_t instead of mutex if semaphores
9809 aren't broken.
9810 (omp_nest_lock_t): Likewise. Add owner field.
9811
9812 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9813
9814 * testsuite/libgomp.c/collapse-1.c: New test.
9815 * testsuite/libgomp.c/collapse-2.c: New test.
9816 * testsuite/libgomp.c/collapse-3.c: New test.
9817 * testsuite/libgomp.c/icv-1.c: New test.
9818 * testsuite/libgomp.c/icv-2.c: New test.
9819 * testsuite/libgomp.c/lib-2.c: New test.
9820 * testsuite/libgomp.c/lock-1.c: New test.
9821 * testsuite/libgomp.c/lock-2.c: New test.
9822 * testsuite/libgomp.c/lock-3.c: New test.
9823 * testsuite/libgomp.c/loop-4.c: New test.
9824 * testsuite/libgomp.c/loop-5.c: New test.
9825 * testsuite/libgomp.c/loop-6.c: New test.
9826 * testsuite/libgomp.c/loop-7.c: New test.
9827 * testsuite/libgomp.c/loop-8.c: New test.
9828 * testsuite/libgomp.c/loop-9.c: New test.
9829 * testsuite/libgomp.c/nested-3.c: New test.
9830 * testsuite/libgomp.c/nestedfn-6.c: New test.
9831 * testsuite/libgomp.c/sort-1.c: New test.
9832 * testsuite/libgomp.c/task-1.c: New test.
9833 * testsuite/libgomp.c/task-2.c: New test.
9834 * testsuite/libgomp.c/task-3.c: New test.
9835 * testsuite/libgomp.c/task-4.c: New test.
9836 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9837 to C++ testsuite default compiler options.
9838 * testsuite/libgomp.c++/collapse-1.C: New test.
9839 * testsuite/libgomp.c++/collapse-2.C: New test.
9840 * testsuite/libgomp.c++/ctor-10.C: New test.
9841 * testsuite/libgomp.c++/for-1.C: New test.
9842 * testsuite/libgomp.c++/for-2.C: New test.
9843 * testsuite/libgomp.c++/for-3.C: New test.
9844 * testsuite/libgomp.c++/for-4.C: New test.
9845 * testsuite/libgomp.c++/for-5.C: New test.
9846 * testsuite/libgomp.c++/loop-8.C: New test.
9847 * testsuite/libgomp.c++/loop-9.C: New test.
9848 * testsuite/libgomp.c++/loop-10.C: New test.
9849 * testsuite/libgomp.c++/task-1.C: New test.
9850 * testsuite/libgomp.c++/task-2.C: New test.
9851 * testsuite/libgomp.c++/task-3.C: New test.
9852 * testsuite/libgomp.c++/task-4.C: New test.
9853 * testsuite/libgomp.c++/task-5.C: New test.
9854 * testsuite/libgomp.c++/task-6.C: New test.
9855 * testsuite/libgomp.fortran/allocatable1.f90: New test.
9856 * testsuite/libgomp.fortran/allocatable2.f90: New test.
9857 * testsuite/libgomp.fortran/allocatable3.f90: New test.
9858 * testsuite/libgomp.fortran/allocatable4.f90: New test.
9859 * testsuite/libgomp.fortran/collapse1.f90: New test.
9860 * testsuite/libgomp.fortran/collapse2.f90: New test.
9861 * testsuite/libgomp.fortran/collapse3.f90: New test.
9862 * testsuite/libgomp.fortran/collapse4.f90: New test.
9863 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9864 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9865 * testsuite/libgomp.fortran/lib4.f90: New test.
9866 * testsuite/libgomp.fortran/lock-1.f90: New test.
9867 * testsuite/libgomp.fortran/lock-2.f90: New test.
9868 * testsuite/libgomp.fortran/nested1.f90: New test.
9869 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9870 * testsuite/libgomp.fortran/strassen.f90: New test.
9871 * testsuite/libgomp.fortran/tabs1.f90: New test.
9872 * testsuite/libgomp.fortran/tabs2.f: New test.
9873 * testsuite/libgomp.fortran/task1.f90: New test.
9874 * testsuite/libgomp.fortran/task2.f90: New test.
9875 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9876 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9877 * testsuite/libgomp.c/pr26943-2.c: Likewise.
9878 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9879 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9880
9881 2008-05-23 Jakub Jelinek <jakub@redhat.com>
9882
9883 PR c++/36308
9884 * testsuite/libgomp.c++/ctor-11.C: New test.
9885 * testsuite/libgomp.c++/ctor-12.C: New test.
9886
9887 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9888
9889 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9890
9891 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9892
9893 PR middle-end/36106
9894 * testsuite/libgomp.c/atomic-5.c: New test.
9895 * testsuite/libgomp.c/atomic-6.c: New test.
9896 * testsuite/libgomp.c/autopar-1.c: New test.
9897
9898 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9899
9900 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9901 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9902 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9903 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9904 * configure: Regenerate.
9905 * Makefile.in, testsuite/Makefile.in: Likewise.
9906
9907 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9908
9909 PR bootstrap/35457
9910 * aclocal.m4: Regenerate.
9911 * configure: Regenerate.
9912
9913 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9914
9915 PR middle-end/35611
9916 * testsuite/libgomp.c/atomic-4.c: New test.
9917
9918 PR libgomp/35625
9919 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9920 (gomp_iter_guided_next): Likewise.
9921 * testsuite/libgomp.c/pr35625.c: New test.
9922
9923 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9924
9925 * aclocal.m4: Regenerate.
9926 * configure: Likewise.
9927 * Makefile.in: Likewise.
9928 * testsuite/Makefile.in: Likewise.
9929
9930 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9931
9932 PR middle-end/35185
9933 * testsuite/libgomp.c++/pr35185.C: New test.
9934
9935 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9936
9937 PR middle-end/35549
9938 * testsuite/libgomp.c/pr35549.c: New test.
9939
9940 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9941
9942 * testsuite/libgomp.c/atomic-3.c: New test.
9943
9944 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9945
9946 PR fortran/33197
9947 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9948 .F08 file suffixes.
9949
9950 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9951
9952 PR libgomp/33131
9953 * configure.ac: Add ACX_HEADER_STRING.
9954 * env.c: Include strings.h.
9955 * aclocal.m4: Regenerate.
9956 * config.h.in: Regenerate.
9957 * configure: Regenerate.
9958 * Makefile.in: Regenerate.
9959 * testsuite/Makefile.in: Regenerate.
9960
9961 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9962
9963 PR middle-end/35196
9964 * testsuite/libgomp.c/pr35196.c: New test.
9965
9966 PR middle-end/35130
9967 * testsuite/libgomp.fortran/pr35130.f90: New test.
9968 * testsuite/libgomp.c/pr35130.c: New test.
9969
9970 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9971
9972 PR middle-end/33880
9973 * testsuite/libgomp.c/pr33880.c: New test.
9974 * testsuite/libgomp.fortran/pr33880.f90: New test.
9975
9976 2008-01-24 David Edelsohn <edelsohn@gnu.org>
9977
9978 * configure: Regenerate.
9979
9980 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9981
9982 * configure.ac: Move futex checking into ../config/futex.m4.
9983 * configure: Rebuilt.
9984 * aclocal.m4: Rebuilt.
9985 * Makefile.in: Rebuilt.
9986
9987 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9988 2007-10-15 ../config/tls.m4 change.
9989
9990 2007-12-19 Jakub Jelinek <jakub@redhat.com>
9991
9992 PR c++/34513
9993 * testsuite/libgomp.c/pr34513.c: New test.
9994 * testsuite/libgomp.c++/pr34513.C: New test.
9995
9996 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
9997
9998 PR target/32765
9999 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
10000
10001 2007-12-04 Jakub Jelinek <jakub@redhat.com>
10002
10003 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
10004
10005 2007-12-03 Jakub Jelinek <jakub@redhat.com>
10006
10007 * testsuite/libgomp.c/private-1.c: New test.
10008
10009 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
10010 Paolo Bonzini <bonzini@gnu.org>
10011
10012 * Makefile.am: Use space as vpath separator. Use 'vpath %'
10013 instead of 'VPATH ='.
10014 * Makefile.in: Regenerate.
10015
10016 2007-11-23 Matthias Klose <doko@ubuntu.com>
10017
10018 * configure.ac: Adjust makeinfo version check.
10019 * configure: Regenerate.
10020
10021 2007-11-10 Jakub Jelinek <jakub@redhat.com>
10022
10023 PR fortran/34020
10024 * testsuite/libgomp.fortran/pr34020.f90: New test.
10025
10026 2007-11-06 Jakub Jelinek <jakub@redhat.com>
10027
10028 PR c++/33894
10029 * testsuite/libgomp.c++/atomic-1.C: New test.
10030
10031 2007-10-25 Jakub Jelinek <jakub@redhat.com>
10032
10033 PR libgomp/33275
10034 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
10035 Make x and y integers rather than (implicit) reals. Add private (j)
10036 clause to the last omp parallel.
10037
10038 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
10039
10040 * configure: Regenerate following changes to ../config/tls.m4.
10041
10042 2007-09-28 Jakub Jelinek <jakub@redhat.com>
10043
10044 * testsuite/libgomp.fortran/stack.f90: New test.
10045
10046 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
10047
10048 * config/mingw32/proc.c: New file.
10049
10050 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
10051
10052 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
10053 (main): Use __get_cpuid to get i386 target fetaures.
10054 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
10055 (main): Use __get_cpuid to get x86_64 target fetaures.
10056
10057 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
10058
10059 PR target/32765
10060 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
10061 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
10062
10063 2007-07-12 Jakub Jelinek <jakub@redhat.com>
10064
10065 PR fortran/32550
10066 * testsuite/libgomp.fortran/pr32550.f90: New test.
10067 * testsuite/libgomp.fortran/crayptr2.f90: New test.
10068
10069 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
10070
10071 * aclocal.m4: Regenerated.
10072
10073 2007-07-05 Tobias Burnus <burnus@net-b.de>
10074
10075 PR fortran/32359
10076 * testsuite/libgomp.fortran/pr32359.f90: New.
10077
10078 2007-07-02 Jakub Jelinek <jakub@redhat.com>
10079
10080 PR libgomp/32468
10081 * sections.c (GOMP_parallel_sections_start): Only decrease
10082 number of threads to COUNT if dyn_var is true.
10083 * testsuite/libgomp.c/pr32468.c: New test.
10084
10085 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10086
10087 PR libgomp/26308
10088 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
10089
10090 2007-06-21 Jakub Jelinek <jakub@redhat.com>
10091
10092 PR middle-end/32362
10093 * testsuite/libgomp.c/pr32362-1.c: New test.
10094 * testsuite/libgomp.c/pr32362-2.c: New test.
10095 * testsuite/libgomp.c/pr32362-3.c: New test.
10096
10097 2007-06-07 Jakub Jelinek <jakub@redhat.com>
10098
10099 * team.c (gomp_team_start): Fix setting up thread_attr
10100 stack size.
10101
10102 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
10103
10104 * configure: Regenerate.
10105
10106 2007-05-23 Steve Ellcey <sje@cup.hp.com>
10107
10108 * Makefile.in: Regenerate.
10109 * configure: Regenerate.
10110 * aclocal.m4: Regenerate.
10111 * testsuite/Makefile.in: Regenerate.
10112
10113 2007-05-04 Jakub Jelinek <jakub@redhat.com>
10114
10115 * config/linux/proc.c: New file.
10116
10117 PR libgomp/28482
10118 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
10119
10120 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
10121
10122 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
10123
10124 2007-04-16 Matthias Klose <doko@debian.org>
10125
10126 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
10127 flags if not building with -m64.
10128 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
10129 flag for i?86-*-* targets, if current target matches -m64.
10130
10131 2007-04-14 Steve Ellcey <sje@cup.hp.com>
10132
10133 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
10134 * Makefile.in: Regenerate.
10135
10136 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10137
10138 PR testsuite/31369
10139 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
10140 ld_library_path.
10141 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10142
10143 2007-04-04 Jakub Jelinek <jakub@redhat.com>
10144
10145 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
10146 decls.
10147 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
10148 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
10149 (parse_affinity): New function.
10150 (initialize_env): Call it and gomp_init_affinity.
10151 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
10152 create new pthread_attr_t and call gomp_init_thread_affinity
10153 on it for each thread before passing the attribute to pthread_create.
10154 * config/linux/affinity.c: New file.
10155 * config/posix/affinity.c: New file.
10156 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
10157 * configure: Rebuilt.
10158 * config.h.in: Rebuilt.
10159 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
10160 * Makefile.in: Rebuilt.
10161
10162 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
10163
10164 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
10165 *-*-darwin*.
10166 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
10167 and use it if found.
10168
10169 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
10170
10171 * testsuite/config/default.exp: New file.
10172 * testsuite/lib/libgomp.exp: New file.
10173 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
10174 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
10175 load_lib *, load_gcc_lib *): Move to libgomp.exp.
10176 (libgomp_load): Remove.
10177 * testsuite/lib/libgomp.exp (libgomp_init): Compute
10178 always_ld_library_path, not ld_library_path. Set additional_flags
10179 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
10180 (target_compile): Do not call libgomp_init. Append lang_library_path
10181 and lang_link_flags to options.
10182 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
10183 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
10184 here.
10185 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
10186 always_ld_library_path. Set LD_LIBRARY_PATH here.
10187 * testsuite/libgomp.fortran/fortran.exp: Ditto.
10188 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
10189 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
10190 CX8 flag.
10191 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
10192 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
10193 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
10194 * testsuite/libgomp.c/pr29947-1.c: Ditto.
10195 * testsuite/libgomp.c/atomic-10.c: Ditto.
10196
10197 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10198
10199 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10200 dg-final cleanup-modules line.
10201 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10202 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10203 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10204 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10205 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10206 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10207 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10208
10209 2007-03-18 Andreas Schwab <schwab@suse.de>
10210
10211 * acinclude.m4: Adjust regular expression for ld version
10212 extraction.
10213 * configure: Regenerate.
10214
10215 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10216
10217 * Makefile.am: Add install-pdf target as copied from
10218 automake v1.10 rules.
10219 * Makefile.in: Regenerate
10220
10221 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10222
10223 PR libgomp/28486
10224 * configure: Regenerate.
10225
10226 PR c++/30703
10227 * testsuite/libgomp.c++/pr30703.C: New test.
10228
10229 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10230
10231 Revert:
10232 2006-07-05 Eric Christopher <echristo@apple.com>
10233 * configure.ac: Depend addition of -pthread on host OS.
10234 * configure: Regenerate.
10235
10236 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10237
10238 * libgomp.texi: Fix spacing after abbreviations.
10239
10240 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
10241
10242 PR libgomp/30546
10243 * configure.ac: Add check for makeinfo
10244 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10245 if an appropiate version of makeinfo is found.
10246 * aclocal.m4: Regenerated.
10247 * configure: Regenerated.
10248 * Makefile.in: Regenerated.
10249 * testsuite/Makefile.in: Regenerated.
10250
10251 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
10252
10253 PR libgomp/30540
10254 * libgomp.texi: More about implementation-dependent settings.
10255
10256 2007-01-26 Tobias Burnus <burnus@net-b.de>
10257
10258 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10259
10260 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10261
10262 PR middle-end/30494
10263 * testsuite/libgomp.c/pr30494.c: New test.
10264
10265 2007-01-15 Tom Tromey <tromey@redhat.com>
10266
10267 * configure: Rebuilt.
10268 * configure.ac: Fixed comment.
10269
10270 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
10271
10272 * libgomp.texi: Document implementation specific default values of
10273 environment variables.
10274
10275 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
10276
10277 PR libgomp/28209
10278 * libgomp.texi: New file.
10279 * configure.ac: Add --enable-generated-files-in-srcdir option.
10280 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10281 files to srcdir.
10282 * Makefile.in: Regenerated.
10283 * config.h.in: Regenerated.
10284 * testsuite/Makefile.in: Regenerated.
10285 * NOTES: Removed.
10286
10287 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
10288
10289 PR libgomp/29949
10290 * env.c (omp_set_num_threads): Set illegal thread count to 1.
10291
10292 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10293
10294 * configure: Regenerate.
10295
10296 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10297
10298 PR libgomp/29947
10299 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
10300 start if there shouldn't be any loop iterations.
10301 (gomp_loop_ordered_static_start): Remove start == end test.
10302 * testsuite/libgomp.c/pr29947-1.c: New test.
10303 * testsuite/libgomp.c/pr29947-2.c: New test.
10304
10305 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10306
10307 * configure.tgt: Force initial-exec TLS model on Linux only.
10308
10309 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
10310
10311 * configure: Regenerated.
10312
10313 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
10314
10315 * env.c (parse_schedule): Reject out of range values.
10316 (parse_unsigned_long): Reject out of range, negative or zero values.
10317
10318 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10319
10320 PR fortran/29629
10321 * testsuite/libgomp.fortran/pr29629.f90: New test.
10322
10323 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10324
10325 PR libgomp/29494
10326 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10327 * config/posix95: New directory.
10328 * config/posix95/omp-lock.h: New file.
10329 * config/posix95/lock.c: Likewise.
10330
10331 2006-10-14 Geoffrey Keating <geoffk@apple.com>
10332
10333 * aclocal.m4: Regenerate.
10334 * configure: Regenerate.
10335
10336 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10337
10338 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10339 '<' to '<='.
10340
10341 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10342
10343 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10344 test.
10345 * configure: Regenerate.
10346 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10347
10348 2006-09-26 Jakub Jelinek <jakub@redhat.com>
10349
10350 PR middle-end/25261
10351 PR middle-end/28790
10352 * testsuite/libgomp.c/nestedfn-4.c: New test.
10353 * testsuite/libgomp.c/nestedfn-5.c: New test.
10354 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10355
10356 PR fortran/29097
10357 * testsuite/libgomp.fortran/condinc1.f: New test.
10358 * testsuite/libgomp.fortran/condinc2.f: New test.
10359 * testsuite/libgomp.fortran/condinc3.f90: New test.
10360 * testsuite/libgomp.fortran/condinc4.f90: New test.
10361 * testsuite/libgomp.fortran/condinc1.inc: New file.
10362
10363 2006-09-18 Tom Tromey <tromey@redhat.com>
10364
10365 * configure: Rebuilt.
10366
10367 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
10368
10369 PR c/28768
10370 PR preprocessor/14634
10371 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10372 to AC_DEFINE.
10373 * configure: Regenerate.
10374
10375 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
10376
10377 * testsuite/libgomp.fortran/reduction3.f90: Change
10378 -2147483648 to -huge(i)-1 to avoid overflow.
10379 * testsuite/libgomp.fortran/reduction4.f90: Change
10380 Z'ffffffff' to not(0) to avoid overflow.
10381
10382 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
10383
10384 PR libgomp/25938
10385 * Makefile.am (libsubincludedir): New.
10386 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
10387 * Makefile.in: Regenerate.
10388
10389 2006-08-17 Jakub Jelinek <jakub@redhat.com>
10390
10391 PR libgomp/28725
10392 * env.c: Include ctype.h.
10393 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
10394 leading and/or trailing whitespace and compare strings case
10395 insensitively.
10396
10397 2006-07-16 Jakub Jelinek <jakub@redhat.com>
10398
10399 PR fortran/28390
10400 * testsuite/libgomp.fortran/pr28390.f: New test.
10401
10402 2006-07-05 Eric Christopher <echristo@apple.com>
10403
10404 * configure.ac: Depend addition of -pthread on host OS.
10405 * configure: Regenerate.
10406
10407 2006-06-21 Jakub Jelinek <jakub@redhat.com>
10408
10409 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
10410 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
10411 defined.
10412
10413 2006-06-20 Jakub Jelinek <jakub@redhat.com>
10414
10415 PR libgomp/26175
10416 PR libgomp/26477
10417 * configure.ac: If neither --enable-linux-futex nor
10418 --disable-linux-futex is passed, determine the default by checking
10419 for compiling and/or running against NPTL. With --enable-linux-futex,
10420 check if SYS_gettid and SYS_futex are defined.
10421 * configure: Rebuilt.
10422
10423 2006-06-14 Richard Henderson <rth@redhat.com>
10424
10425 PR libgomp/28008
10426 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
10427 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
10428
10429 2006-06-09 Richard Henderson <rth@redhat.com>
10430
10431 * env.c (gomp_nthreads_var): Change to unsigned long.
10432 (gomp_run_sched_chunk): Likewise.
10433 (parse_unsigned_long): Rename from parse_num_threads and generalize.
10434 (initialize_env): Initialize gomp_thread_attr.
10435 * libgomp.h (gomp_nthreads_var): Update decl.
10436 (gomp_run_sched_chunk): Likewise.
10437 (gomp_thread_attr): Declare.
10438 * team.c (gomp_thread_attr): Export.
10439 (initialize_team): Don't initialize it.
10440
10441 2006-06-09 Jakub Jelinek <jakub@redhat.com>
10442
10443 PR fortran/27916
10444 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
10445 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
10446
10447 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10448
10449 * config/mingw32/time.c: New file.
10450 * configure.tgt: Use it.
10451
10452 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
10453
10454 * Makefile.am: Add install-html target. Add install-html to .PHONY
10455 * Makefile.in: Regenerate.
10456
10457 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10458
10459 PR libgomp/27612
10460 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
10461 * testsuite/libgomp.c/critical-1.c: Likewise.
10462 * testsuite/libgomp.c/loop-1.c: Likewise.
10463 * testsuite/libgomp.c/loop-2.c: Likewise.
10464 * testsuite/libgomp.c/single-1.c: Likewise.
10465 * testsuite/libgomp.c/ordered-1.c: Likewise.
10466 * testsuite/libgomp.c/ordered-2.c: Likewise.
10467
10468 2006-05-15 Jakub Jelinek <jakub@redhat.com>
10469
10470 PR middle-end/27416
10471 * libgomp.fortran/pr27416-1.f90: New test.
10472
10473 2006-05-03 Jakub Jelinek <jakub@redhat.com>
10474
10475 PR fortran/27395
10476 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
10477 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
10478
10479 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10480
10481 PR c++/26943
10482 * testsuite/libgomp.c/pr26943-1.c: New test.
10483 * testsuite/libgomp.c/pr26943-2.c: New test.
10484 * testsuite/libgomp.c/pr26943-3.c: New test.
10485 * testsuite/libgomp.c/pr26943-4.c: New test.
10486 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
10487 * testsuite/libgomp.c++/pr26943.C: New test.
10488
10489 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10490
10491 PR middle-end/27337
10492 * testsuite/libgomp.c++/pr27337.C: New test.
10493
10494 2006-04-26 Jakub Jelinek <jakub@redhat.com>
10495
10496 PR c/26171
10497 * testsuite/libgomp.c/pr26171.c: New test.
10498
10499 2006-04-25 Richard Henderson <rth@redhat.com>
10500
10501 PR libgomp/25865
10502 * configure.ac: Use GCC_CHECK_TLS.
10503 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10504 * Makefile.in, aclocal.m4, configure: Regenerate.
10505
10506 2006-04-10 Matthias Klose <doko@debian.org>
10507
10508 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10509 directory names containing underscores.
10510
10511 2006-03-21 Jakub Jelinek <jakub@redhat.com>
10512
10513 PR c++/26691
10514 * testsuite/libgomp.c++/pr26691.C: New test.
10515
10516 2006-03-13 Jakub Jelinek <jakub@redhat.com>
10517
10518 * testsuite/libgomp.fortran/retval2.f90: New test.
10519
10520 2006-03-09 Diego Novillo <dnovillo@redhat.com>
10521
10522 * testsuite/libgomp.c++: New directory.
10523
10524 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
10525
10526 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10527 * config/posix/sem.c: Implement the above.
10528
10529 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
10530
10531 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10532 define HAVE_BROKEN_POSIX_SEMAPHORES.
10533 * configure: Rebuilt.
10534 * config.h.in: Rebuilt.
10535
10536 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10537
10538 PR bootstrap/26161
10539 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10540 for the other pthread check.
10541 * configure: Regenerate.
10542 * config.h.in: Regenerate.
10543
10544 2006-02-15 Jakub Jelinek <jakub@redhat.com>
10545
10546 PR libgomp/25938
10547 PR libgomp/25984
10548 * Makefile.am (fincludedir): New variable.
10549 (nodist_include_HEADERS): Remove Fortran files.
10550 (nodist_finclude_HEADERS): New variable.
10551 * Makefile.in: Regenerated.
10552
10553 2006-02-13 Jakub Jelinek <jakub@redhat.com>
10554
10555 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10556 Remove tests for returning assumed character length arrays.
10557
10558 2006-02-12 Roger Sayle <roger@eyesopen.com>
10559 John David Anglin <dave@hiauly1.hia.nrc.ca>
10560
10561 PR libgomp/25936
10562 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10563
10564 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10565
10566 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10567
10568 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10569
10570 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10571 part of LD_LIBRARY_PATH manually.
10572
10573 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
10574
10575 PR libgomp/25852
10576 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10577 libgomp_init.
10578
10579 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
10580
10581 PR libgomp/25884
10582 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10583 * configure.ac (PERL): Don't set.
10584 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10585 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10586 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10587 * omp.h.in: Wrap the new configure substitutions with @ characters.
10588 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10589 * aclocal.m4, configure, Makefile.in: Regenerate.
10590 * mkomp_h.pl: Delete.
10591
10592 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
10593
10594 PR libgomp/25259
10595 * configure.ac: Use GCC_HEADER_STDINT.
10596 * libgomp.h: Include gstdint.h.
10597 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10598 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10599
10600 2006-01-24 Richard Henderson <rth@redhat.com>
10601
10602 PR libgomp/25942
10603 * configure.ac: Add AM_MAINTAINER_MODE.
10604 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10605
10606 2006-01-24 Diego Novillo <dnovillo@redhat.com>
10607
10608 * Makefile.in: Regenerate.
10609 * testsuite/Makefile.in: Regenerate.
10610 * aclocal.m4: Regenerate.
10611
10612 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
10613
10614 * config/posix/proc.c: Conditional include of sys/loadavg.h for
10615 Solaris.
10616 * configure.ac: Add check for loadavg.h.
10617 (link_gomp): Adjust comment.
10618 * configure: Regenerate.
10619 * config.h.in: Regenerate.
10620
10621 2006-01-21 Steve Ellcey <sje@cup.hp.com>
10622
10623 PR libgomp/25877
10624 * configure.ac: Remove check for alloca.h.
10625 * configure: Regenerate.
10626 * config.h.in: Regenerate.
10627 * libgomp.h: define gomp_alloca to be __builtin_alloca.
10628 * team.c: Remove use of alloca.h.
10629 Call gomp_alloca instead of alloca.
10630
10631 2006-01-20 Steve Ellcey <sje@cup.hp.com>
10632
10633 PR libgomp/25877
10634 * team.c: Add include of alloca.h.
10635 * configure.ac: Add check for alloca.h.
10636 * configure: Regenerate.
10637 * config.h.in: Regenerate.
10638
10639 2006-01-17 Jakub Jelinek <jakub@redhat.com>
10640
10641 PR fortran/25219
10642 * testsuite/libgomp.fortran/pr25219.f90: New test.
10643
10644 2005-12-05 Uros Bizjak <uros@kss-loka.si>
10645
10646 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10647 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10648 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10649 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10650 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10651 testsuite/libgomp.fortran/threadprivate1.f90,
10652 testsuite/libgomp.fortran/threadprivate2.f90,
10653 testsuite/libgomp.fortran/threadprivate3.f90,
10654 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10655 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10656 testsuite/libgomp.fortran/omp_parse3.f90: Change required
10657 effective-target to TLS runtime.
10658
10659 * testsuite/libgomp.fortran/pr25162.f: Require
10660 effective-target TLS runtime.
10661
10662 2005-12-01 Jakub Jelinek <jakub@redhat.com>
10663
10664 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10665 * testsuite/libgomp.c/nestedfn-3.c: New test.
10666
10667 2005-11-30 Jakub Jelinek <jakub@redhat.com>
10668
10669 PR fortran/25162
10670 * testsuite/libgomp.fortran/pr25162.f: New test.
10671
10672 2005-11-28 Jakub Jelinek <jakub@redhat.com>
10673
10674 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10675 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10676
10677 2005-11-25 Jakub Jelinek <jakub@redhat.com>
10678
10679 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10680 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10681 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10682 single.c, team.c, work.c, config/linux/alpha/futex.h,
10683 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10684 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10685 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10686 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10687 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10688 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10689 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10690 FSF address.
10691
10692 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10693
10694 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10695 to nodist_noinst_HEADERS.
10696 * Makefile.in: Rebuilt.
10697
10698 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10699 add integer count field.
10700 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10701 omp_nest_lock_t type change.
10702 (omp_init_nest_lock): Likewise. Initialize count to 0.
10703 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10704 Increment count.
10705 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10706 Decrement count.
10707 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10708 Increment count if successful and return the new nesting level.
10709 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10710 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10711 * testsuite/libgomp.c/lib-1.c: New test.
10712 * testsuite/libgomp.fortran/lib1.f90: New test.
10713 * testsuite/libgomp.fortran/lib2.f: New test.
10714 * testsuite/libgomp.fortran/lib3.f: New test.
10715
10716 2005-11-17 Richard Henderson <rth@redhat.com>
10717
10718 PR 24845
10719 * Makefile.am (nodist_toolexeclib_HEADERS): New.
10720 * configure.ac (link_gomp): New. Substitute it.
10721 (AC_CONFIG_FILES): Add libgomp.spec.
10722 * libgomp.spec.in: New file.
10723 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10724 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10725
10726 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10727
10728 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10729 reduction(-:var) behaving the same as reduction(+:var).
10730 * testsuite/libgomp.c/reduction-4.c: New test.
10731
10732 2005-11-15 Uros Bizjak <uros@kss-loka.si>
10733
10734 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10735 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10736 testsuite/libgomp.c/copyin-3.c,
10737 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10738 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10739 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10740 testsuite/libgomp.c++/pr24455.C,
10741 testsuite/libgomp.fortran/threadprivate1.f90,
10742 testsuite/libgomp.fortran/threadprivate2.f90,
10743 testsuite/libgomp.fortran/threadprivate3.f90,
10744 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10745 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10746 testsuite/libgomp.fortran/omp_parse3.f90: Require
10747 effective-target TLS.
10748
10749 2005-11-14 Diego Novillo <dnovillo@redhat.com>
10750
10751 * HEADER: Remove.
10752
10753 2005-11-13 Jakub Jelinek <jakub@redhat.com>
10754
10755 PR libgomp/24797
10756 * team.c (initialize_team): Pass NULL rather than free as
10757 pthread_key_create destructor. Initialize thread specific data
10758 pointer in initial thread to a static local variable rather than
10759 malloced memory.
10760
10761 2005-11-11 Uros Bizjak <uros@kss-loka.si>
10762
10763 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10764 its location to ld_library_path.
10765
10766 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10767
10768 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10769
10770 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10771
10772 * testsuite/libgomp.c: Rename from libgomp.dg.
10773
10774 2005-11-09 Diego Novillo <dnovillo@redhat.com>
10775
10776 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10777 threadprivate variable 'i'.
10778
10779 2005-11-09 Jakub Jelinek <jakub@redhat.com>
10780
10781 * config/linux/s390/futex.h: New file.
10782 * configure.tgt: Use it.
10783
10784 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10785 before the parallel.
10786
10787 2005-11-08 Jakub Jelinek <jakub@redhat.com>
10788
10789 PR c++/24734
10790 * testsuite/libgomp.c++/master-1.C: New test.
10791
10792 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10793
10794 * testsuite/libgomp.dg/copyin-3.c: New test.
10795
10796 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10797
10798 * testsuite/libgomp.fortran/retval1.f90: New test.
10799 * testsuite/libgomp.fortran/vla7.f90: New test.
10800
10801 2005-11-06 Jakub Jelinek <jakub@redhat.com>
10802
10803 * testsuite/libgomp.fortran/vla2.f90: New test.
10804 * testsuite/libgomp.fortran/vla3.f90: New test.
10805 * testsuite/libgomp.fortran/vla4.f90: New test.
10806 * testsuite/libgomp.fortran/vla5.f90: New test.
10807 * testsuite/libgomp.fortran/vla6.f90: New test.
10808
10809 2005-11-01 Jakub Jelinek <jakub@redhat.com>
10810
10811 * config/linux/sparc/futex.h: New file.
10812 * configure.tgt: Use it.
10813 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10814
10815 * critical.c: Include stdlib.h.
10816 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10817 ignoring return value.
10818 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10819 LIBGOMP_CHECK_SYNC_BUILTINS check.
10820 * configure: Rebuilt.
10821
10822 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10823
10824 * testsuite/libgomp.fortran/vla1.f90: New test.
10825
10826 2005-10-31 Richard Henderson <rth@redhat.com>
10827
10828 * testsuite/libgomp.fortran/character2.f90: Fix race condition
10829 setting 's' in different threads.
10830
10831 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10832
10833 * libgomp.h (attribute_hidden, ialias): Define.
10834 * config/posix/proc.c (omp_get_num_procs): Add ialias.
10835 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10836 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10837 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10838 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10839 omp_test_lock, omp_test_nest_lock): Likewise.
10840 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10841 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10842 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10843 omp_test_lock, omp_test_nest_lock): Likewise.
10844 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10845 omp_get_dynamic, omp_get_nested): Likewise.
10846 * parallel.c (omp_get_num_threads, omp_get_max_threads,
10847 omp_get_thread_num, omp_in_parallel): Likewise.
10848 * fortran.c (ialias_redirect): Define.
10849 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10850 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10851 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10852 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10853 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10854 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10855 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10856 omp_get_wtime): Add ialias_redirect.
10857
10858 2005-10-30 Jakub Jelinek <jakub@redhat.com>
10859
10860 * fortran.c: Include stdlib.h.
10861
10862 2005-10-29 Jakub Jelinek <jakub@redhat.com>
10863
10864 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10865 * Makefile.in: Regenerated.
10866
10867 2005-10-28 Jakub Jelinek <jakub@redhat.com>
10868
10869 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10870 * libgomp_f.h.in (omp_check_defines): New function.
10871 * env.c: Include libgomp_f.h.
10872 (initialize_env): Call omp_check_defines.
10873
10874 * testsuite/libgomp.dg/copyin-2.c: New test.
10875 * testsuite/libgomp.c++/copyin-2.C: New test.
10876 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10877
10878 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10879 * testsuite/libgomp.fortran/sharing2.f90: New test.
10880
10881 * testsuite/libgomp.dg/copyin-1.c: New test.
10882 * testsuite/libgomp.c++/copyin-1.C: New test.
10883
10884 2005-10-26 Jakub Jelinek <jakub@redhat.com>
10885
10886 * testsuite/libgomp.fortran/crayptr1.f90: New test.
10887
10888 * testsuite/libgomp.fortran/workshare1.f90: New test.
10889
10890 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10891 only test.
10892 * libgomp.fortran/sharing1.f90: New test.
10893
10894 2005-10-24 Jakub Jelinek <jakub@redhat.com>
10895
10896 PR c++/24502
10897 * testsuite/libgomp.c++/loop-7.C: New test.
10898
10899 * testsuite/libgomp.dg/nestedfn-2.c: New test.
10900
10901 * testsuite/libgomp.dg/nestedfn-1.c: New test.
10902 * testsuite/libgomp.fortran/reduction6.f90: New test.
10903 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10904
10905 2005-10-23 Richard Henderson <rth@redhat.com>
10906
10907 * testsuite/libgomp.c++/ctor-1.C: New.
10908 * testsuite/libgomp.c++/ctor-2.C: New.
10909 * testsuite/libgomp.c++/ctor-3.C: New.
10910 * testsuite/libgomp.c++/ctor-4.C: New.
10911 * testsuite/libgomp.c++/ctor-5.C: New.
10912 * testsuite/libgomp.c++/ctor-6.C: New.
10913 * testsuite/libgomp.c++/ctor-7.C: New.
10914 * testsuite/libgomp.c++/ctor-8.C: New.
10915 * testsuite/libgomp.c++/ctor-9.C: New.
10916
10917 2005-10-21 Diego Novillo <dnovillo@redhat.com>
10918
10919 PR 24455
10920 * testsuite/libgomp.c++/pr24455-1.C: New test.
10921 * testsuite/libgomp.c++/pr24455.C: New test.
10922 * testsuite/libgomp.dg/pr24455-1.c: New test.
10923 * testsuite/libgomp.dg/pr24455.c: New test.
10924
10925 2005-10-20 Richard Henderson <rth@redhat.com>
10926
10927 * testsuite/libgomp.c++/loop-6.C: New.
10928 * testsuite/libgomp.dg/loop-3.c: New.
10929
10930 2005-10-20 Jakub Jelinek <jakub@redhat.com>
10931
10932 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10933 explicitly private.
10934 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10935 explicitly shared.
10936
10937 2005-10-19 Diego Novillo <dnovillo@redhat.com>
10938
10939 * testsuite/libgomp.fortran/jacobi.f: New test.
10940
10941 2005-10-19 Richard Henderson <rth@redhat.com>
10942
10943 * configure.tgt (i?86-linux): Default to with_arch instead of
10944 CFLAGS. Add -mtune to match target_cpu.
10945 (x86_64-linux): Tune to i686.
10946
10947 * fortran.c (omp_test_nest_lock_): Fix typo.
10948
10949 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10950
10951 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10952 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10953 * testsuite/libgomp.dg/ordered-3.c: New test.
10954
10955 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10956 Remove volatile keyword.
10957
10958 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10959 in COMMON block to avoid warnings on 64-bit targets.
10960
10961 2005-10-18 Diego Novillo <dnovillo@redhat.com>
10962
10963 * testsuite/libgomp.dg/shared-3.c: New test.
10964
10965 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10966
10967 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10968 * testsuite/libgomp.fortran/reduction5.f90: New test.
10969
10970 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10971
10972 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10973 dg-options.
10974 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
10975 flush loop now that __sync_synchronize has proper memory barrier.
10976 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10977 Add -ffixed-form to dg-options.
10978
10979 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10980
10981 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10982 from subdirectories.
10983 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10984 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10985 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10986 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10987 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10988 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10989 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10990 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10991 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10992 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10993 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10994 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10995 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10996 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10997 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10998 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10999 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
11000 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
11001 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
11002 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
11003 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
11004 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
11005 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
11006 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
11007 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
11008
11009 2005-10-17 Jakub Jelinek <jakub@redhat.com>
11010
11011 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
11012 lang_library_path exists. Use find instead of glob to gather tests.
11013 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
11014
11015 2005-10-17 Diego Novillo <dnovillo@redhat.com>
11016
11017 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
11018 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
11019 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
11020 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
11021 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
11022 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
11023 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
11024 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
11025 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
11026 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
11027 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
11028 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
11029 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
11030
11031 2005-10-15 Jakub Jelinek <jakub@redhat.com>
11032
11033 * testsuite/libgomp.dg/vla-1.c: New test.
11034
11035 * testsuite/libgomp.fortran/reference2.f90: New test.
11036
11037 * testsuite/libgomp.fortran/character2.f90: Remove explicit
11038 declaration of omp_get_thread_num.
11039 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
11040 use omp_lib.
11041
11042 * testsuite/libgomp.fortran/reduction1.f90: New test.
11043 * testsuite/libgomp.fortran/reduction2.f90: New test.
11044 * testsuite/libgomp.fortran/reduction3.f90: New test.
11045 * testsuite/libgomp.fortran/reduction4.f90: New test.
11046
11047 2005-10-13 Richard Henderson <rth@redhat.com>
11048
11049 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
11050 * Makefile.in: Regenerate.
11051 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
11052 * libgomp.h: Include bar.h.
11053 (struct gomp_barrier): Remove.
11054 (struct gomp_team): Add barrier. Replace master_barrier with
11055 master_release. Replace threads with ordered_release.
11056 (struct gomp_thread): Replace barrier with release.
11057 * ordered.c (gomp_ordered_first): Update for ordered_release change.
11058 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
11059 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
11060 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
11061 (GOMP_single_copy_end): Likewise.
11062 * team.c (gomp_threads_dock): New.
11063 (gomp_barrier_init, gomp_barrier_destroy): Remove.
11064 (gomp_thread_start): Use gomp_barrier_wait.
11065 (new_team, free_team): Update for gomp_team changes.
11066 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
11067 (gomp_team_end): Use gomp_barrier_wait.
11068 (initialize_team): Update for gomp_thread changes.
11069 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
11070 (gomp_work_share_end_nowait): Use atomic ops when available.
11071 * config/linux/bar.c, config/linux/bar.h: New files.
11072 * config/posix/bar.c, config/posix/bar.h: New files.
11073
11074 2005-10-13 Jakub Jelinek <jakub@redhat.com>
11075
11076 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
11077 * testsuite/libgomp.dg/single-2.c: New test.
11078
11079 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
11080 lang_link_flags): Unset, so that they aren't inherited from previously
11081 sourced *.exp.
11082
11083 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
11084
11085 2005-10-12 Richard Henderson <rth@redhat.com>
11086
11087 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
11088 (libgomp_init): Use lang_test_file, lang_library_path, and
11089 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
11090
11091 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
11092 (lang_test_file, lang_link_flags): New.
11093 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
11094
11095 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
11096 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
11097 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
11098 testsuite/libgomp.c++/parallel-1.C,
11099 testsuite/libgomp.c++/reduction-1.C,
11100 testsuite/libgomp.c++/reduction-2.C,
11101 testsuite/libgomp.c++/reduction-3.C,
11102 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
11103 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
11104 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
11105 New files, largely cribbed from the C testsuite.
11106
11107 2005-10-12 Jakub Jelinek <jakub@redhat.com>
11108
11109 * testsuite/libgomp.fortran/character1.f90: New test.
11110 * testsuite/libgomp.fortran/character2.f90: New test.
11111
11112 * testsuite/libgomp.dg/nested-1.c: New test.
11113 * testsuite/libgomp.dg/nested-2.c: New test.
11114 * testsuite/libgomp.fortran/do1.f90: New test.
11115 * testsuite/libgomp.fortran/do2.f90: New test.
11116
11117 * testsuite/libgomp.fortran/reference1.f90: New test.
11118
11119 2005-10-11 Jakub Jelinek <jakub@redhat.com>
11120
11121 * testsuite/libgomp.dg/reduction-1.c: New test.
11122 * testsuite/libgomp.dg/reduction-2.c: New test.
11123 * testsuite/libgomp.dg/reduction-3.c: New test.
11124
11125 2005-10-10 Jakub Jelinek <jakub@redhat.com>
11126
11127 * testsuite/libgomp.dg/atomic-1.c: New test.
11128 * testsuite/libgomp.dg/atomic-2.c: New test.
11129
11130 2005-10-09 Richard Henderson <rth@redhat.com>
11131
11132 * critical.c (atomic_lock): New.
11133 (initialize_critical): Initialize it.
11134 (GOMP_atomic_start, GOMP_atomic_end): New.
11135 * libgomp.map: Export them.
11136 * libgomp_g.h: Declare them.
11137
11138 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
11139
11140 2005-10-02 Richard Henderson <rth@redhat.com>
11141
11142 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
11143 to XCFLAGS instead of CFLAGS.
11144
11145 2005-09-30 Richard Henderson <rth@redhat.com>
11146
11147 * configure.ac: Determine whether -pthread or -lpthread is needed.
11148 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
11149 * Makefine.in, configure: Rebuild.
11150
11151 2005-09-28 Richard Henderson <rth@redhat.com>
11152
11153 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
11154 * testsuite/libgomp.dg/omp-single-3.c: New test.
11155
11156 2005-09-28 Diego Novillo <dnovillo@redhat.com>
11157
11158 * testsuite/libgomp.dg/omp-single-2.c: New test.
11159 * testsuite/libgomp.dg/shared-2.c: Fix return code.
11160
11161 2005-09-27 Richard Henderson <rth@redhat.com>
11162
11163 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
11164 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
11165
11166 2005-09-27 Jakub Jelinek <jakub@redhat.com>
11167
11168 * testsuite/libgomp.dg/omp-loop03.c: New test.
11169
11170 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11171
11172 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
11173
11174 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11175
11176 * testsuite/libgomp.dg/omp-single-1.c: New test.
11177 * testsuite/libgomp.dg/shared-1.c: Return 0.
11178 Add prototype for abort.
11179 * testsuite/libgomp.dg/shared-2.c: Likewise.
11180
11181 2005-09-26 Jakub Jelinek <jakub@redhat.com>
11182
11183 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
11184 constructs.
11185
11186 2005-09-26 Diego Novillo <dnovillo@redhat.com>
11187
11188 * testsuite/libgomp.dg/shared-1.c: New test.
11189 * testsuite/libgomp.dg/shared-2.c: New test.
11190
11191 2005-09-24 Richard Henderson <rth@redhat.com>
11192
11193 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
11194
11195 2005-09-24 Richard Henderson <rth@redhat.com>
11196
11197 * iter.c (gomp_iter_static_next): Round up when computing number
11198 of iterations. Don't bother distributing a remainder equally.
11199
11200 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11201 Don't call srand. Zero b before testing.
11202 (main): New.
11203
11204 2005-09-24 Jakub Jelinek <jakub@redhat.com>
11205
11206 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11207 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11208
11209 2005-09-23 Jakub Jelinek <jakub@redhat.com>
11210
11211 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11212 without !$omp end do, followed immediately by subroutine end.
11213
11214 2005-09-23 Diego Novillo <dnovillo@redhat.com>
11215
11216 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11217
11218 2005-09-22 Richard Henderson <rth@redhat.com>
11219
11220 * critical.c (GOMP_critical_name_start): Change argument to void**.
11221 Reuse the pointer space if the mutex fits.
11222 (GOMP_critical_name_end): Likewise.
11223 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11224 * libgomp_g.h (GOMP_critical_name_start): Update decl.
11225 (GOMP_critical_name_end): Likewise.
11226 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11227 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11228
11229 2005-09-20 Richard Henderson <rth@redhat.com>
11230
11231 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11232 (create_lock_lock): New.
11233 (initialize_critical): Initialize it.
11234 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11235 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11236
11237 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11238
11239 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11240
11241 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11242
11243 * testsuite/libgomp.dg/omp-loop01.c: New test.
11244 * testsuite/libgomp.dg/omp-loop02.c: New test.
11245
11246 2005-09-20 Jakub Jelinek <jakub@redhat.com>
11247
11248 * configure.ac (AC_PROG_FC): Add.
11249 (USE_FORTRAN): New automake conditional.
11250 * configure: Rebuilt.
11251 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11252 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11253 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11254 Add rules to build them.
11255 * Makefile.in: Rebuilt.
11256 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11257 OMP_NEST_LOCK_KIND.
11258 * libgomp.map: Add Fortran wrappers.
11259 * libgomp_f.h.in: New file.
11260 * omp_lib.h.in: New file.
11261 * omp_lib.f90.in: New file.
11262 * fortran.c: New file.
11263 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11264 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11265 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11266 libgfortran has been built.
11267 * testsuite/libgomp.fortran/fortran.exp: New file.
11268 * testsuite/libgomp.fortran/omp_cond1.f: New test.
11269 * testsuite/libgomp.fortran/omp_cond2.f: New test.
11270 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11271 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11272 * testsuite/libgomp.fortran/omp_hello.f: New test.
11273 * testsuite/libgomp.fortran/omp_orphan.f: New test.
11274 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11275 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11276 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11277 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11278 * testsuite/libgomp.fortran/omp_reduction.f: New test.
11279 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11280 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11281
11282 2005-08-30 Richard Henderson <rth@redhat.com>
11283
11284 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11285 function for when aliases are not usable.
11286 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11287 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11288 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11289 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11290 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11291 GOMP_loop_ordered_guided_next): Likewise.
11292 * ordered.c (GOMP_ordered_start): Likewise.
11293
11294 2005-08-01 Diego Novillo <dnovillo@redhat.com>
11295
11296 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11297 * testsuite/libgomp.dg/omp_hello.c: Fix return code
11298 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11299 * testsuite/libgomp.dg/omp_orphan.c: Likewise
11300 * testsuite/libgomp.dg/omp_reduction.c: Likewise
11301 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11302 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11303 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11304 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11305
11306 2005-07-07 Eric Christopher <echristo@redhat.com>
11307 Diego Novillo <dnovillo@redhat.com>
11308
11309 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11310 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11311 up code.
11312 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11313 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11314 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11315 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11316 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11317 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11318 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11319
11320 2005-06-13 Diego Novillo <dnovillo@redhat.com>
11321
11322 * TOPLEVEL.patch: Remove.
11323
11324 2005-05-16 Richard Henderson <rth@redhat.com>
11325
11326 * configure.ac: Test for clock_gettime.
11327 * config.h.in, configure: Rebuild.
11328 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11329 (omp_get_wtime): Use clock_gettime if available.
11330 (omp_get_wtick): Use clock_getres if available.
11331
11332 2005-05-11 Richard Henderson <rth@redhat.com>
11333
11334 * config/linux/ia64/futex.h: New file.
11335 * configure.tgt: Use it.
11336
11337 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11338
11339 2005-05-07 Richard Henderson <rth@redhat.com>
11340
11341 * config/linux/powerpc/futex.h: New file.
11342 * configure.tgt: Use it.
11343
11344 * config/linux/i486/futex.h: Merge ...
11345 * config/linux/x86_64/futex.h: ... into ...
11346 * config/linux/x86/futex.h: ... here.
11347 * configure.tgt: Update to match.
11348
11349 2005-05-06 Richard Henderson <rth@redhat.com>
11350
11351 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11352 * config/linux/i486/futex.h: Likewise.
11353 * config/linux/x86_64/futex.h: Likewise.
11354
11355 * config/linux/lock.c: New file.
11356 * config/linux/omp-lock.h: New file.
11357
11358 * critical.c, env.h: Don't include omp.h
11359 * config/posix/lock.c: Include libgomp.h instead of omp.h.
11360 * config/posix/time.c: Likewise.
11361 * config/posix/omp-lock.h: New file.
11362 * libgomp.h: Include omp-lock.h and omp.h.
11363 * Makefile.am (nodist_include_HEADERS): New.
11364 (omp.h): New rule.
11365 * configure.ac (PERL): New.
11366 * mkomp_h.pl: New file.
11367 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11368 with templates.
11369 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11370
11371 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11372 build directory. Re-add -march=i486 hack.
11373
11374 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
11375 (libgomp_link_flags): Remove.
11376 (libgomp_initialized): Remove.
11377 (libgomp_init): Don't protect from reinitialization. Copy code
11378 from libstdc++ for getting the multilib set correctly.
11379
11380 2005-05-05 Richard Henderson <rth@redhat.com>
11381
11382 * config/linux/alpha/futex.h: New file.
11383 * configure.tgt (alpha*-*-linux*): Use it.
11384
11385 * config/posix/mutex.c: New file.
11386 * config/posix/sem.c: Use libgomp.h.
11387
11388 * configure.tgt (x86_64-linux): Also test CC for -m32.
11389 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
11390
11391 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
11392 after $gccpath.
11393
11394 * Makefile.am (SUBDIRS): New.
11395 (libgomp_la_LDFLAGS): Add -lpthread.
11396 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
11397 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
11398
11399 * libgomp_g.h: New file.
11400 * libgomp.h: Split out all public declarations to libgomp_g.h.
11401 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
11402 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
11403 * config/linux/sem.h: Likewise.
11404 * config/posix/sem.h: Likewise.
11405
11406 * Makefile.am (AM_LDFLAGS): New.
11407 (libgomp_version_script): Split out from ...
11408 (libgomp_la_LDFLAGS): ... here.
11409 (libgomp_version_info): New.
11410 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
11411 (LIBGOMP_ENABLE): New.
11412 (LIBGOMP_CHECK_LINKER_FEATURES): New.
11413 (LIBGOMP_ENABLE_SYMVERS): New.
11414 * configure.ac (AC_INIT): Version 1.0.
11415 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
11416 (enable-linux-futex): Likewise. Rename from enable-futex.
11417 (libtool_VERSION): New.
11418 (LIBGOMP_ENABLE_SYMVERS): Use it.
11419 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
11420 * Makefile.in, aclocal.m4, configure: Rebuild.
11421
11422 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
11423 (gomp_mutex_unlock_slow): Fix typo.
11424 * config/linux/sem.c: Similarly.
11425 (gomp_sem_post_slow): Fix typo.
11426 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
11427 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
11428 [__PIC__] (sys_futex0): Don't use tmp output in asm.
11429
11430 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
11431 (libgomp_la_LDFLAGS): Add top_srcdir to path.
11432 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
11433 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
11434 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
11435 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
11436 LDFLAGS. Pull enable_futex check to top-level.
11437 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
11438 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
11439
11440 First attempt at real configury.
11441 * Makefile, config.h: Remove file.
11442 * Makefile.am, Makefile.in: New file.
11443 * acinclude.m4 aclocal.m4: New file.
11444 * configure.ac, configure.tgt, configure: New file.
11445
11446 * config/posix/lock.c: Rename from sys-lock.c.
11447 * config/posix/mutex.h: Rename from sys-mutex.h.
11448 * config/posix/sem.c: Rename from sys-sem.c.
11449 * config/posix/sem.h: Rename from sys-sem.h.
11450 * config/posix/proc.c: Rename from sys-proc.c.
11451 * config/posix/time.c: Rename from sys-proc.c.
11452
11453 * config/linux/mutex.c: New file.
11454 * config/linux/mutex.h: New file.
11455 * config/linux/sem.c: New file.
11456 * config/linux/sem.h: New file.
11457 * config/linux/i486/futex.h: New file.
11458 * config/linux/x86_64/futex.h: New file.
11459
11460 2005-05-04 Richard Henderson <rth@redhat.com>
11461
11462 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
11463 * libgomp.h: Declare them.
11464 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
11465 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
11466
11467 2005-05-04 Richard Henderson <rth@redhat.com>
11468
11469 * libgomp-1 code drop
11470
11471 2005-05-04 Richard Henderson <rth@redhat.com>
11472
11473 * iter.c (gomp_iter_static_next): Return tri-state on 0.
11474 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
11475 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
11476 (gomp_iter_static_next): Update.
11477 (gomp_ordered_static_next): Update.
11478 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
11479 (gomp_loop_ordered_static_start): Likewise. Exit early for a
11480 totally empty range.
11481 (gomp_loop_ordered_static_next): Refine test for calling
11482 gomp_ordered_static_next.
11483 * testsuite/ordered-1.c: Add case for more threads than iterations.
11484
11485 * iter.c (gomp_iter_runtime_next_locked): Remove.
11486 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
11487 gomp_loop_guided_start, gomp_loop_ordered_static_start,
11488 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
11489 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
11490 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
11491 gomp_loop_ordered_guided_next): Downcase name, make static, add
11492 an external alias with the old name.
11493 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11494 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
11495 switch and call one of the above static functions.
11496 * libgomp.h: Update.
11497
11498 * work.c (gomp_work_share_start): Lock the mutex for !first too.
11499 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11500 GOMP_loop_guided_start, GOMP_loop_runtime_start,
11501 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11502 GOMP_loop_ordered_guided_start): Update to match.
11503 * sections.c (GOMP_sections_start): Likewise.
11504 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11505
11506 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11507 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11508 Use bounds check instead of modulus.
11509 (gomp_ordered_sync): Split out of GOMP_ordered_start.
11510 (gomp_ordered_last): Don't sync with ordered_owner here.
11511 (gomp_ordered_next): Likewise.
11512 (gomp_ordered_static_loop_next): Likewise.
11513 * loop.c, libgomp.h: Update to match.
11514
11515 * libgomp.h (GOMP_barrier): Declare.
11516
11517 * testsuite/barrier-1.c: New file.
11518 * testsuite/critical-1.c: New file.
11519 * testsuite/ordered-2.c: New file.
11520 * testsuite/ordered-1.c: New file.
11521 * testsuite/sections-1.c: New file.
11522 * testsuite/single-1.c: New file.
11523 * testsuite/Makefile (TESTS): Add them.
11524
11525 2005-05-04 Richard Henderson <rth@redhat.com>
11526
11527 * libgomp.h (struct gomp_work_share): Add ordered_owner.
11528 * loop.c (GOMP_loop_static_start): If not the startup thread,
11529 acquire the mutex to wait for initialization complete.
11530 (GOMP_loop_ordered_static_start): Likewise.
11531 (GOMP_loop_ordered_runtime_start): Likewise.
11532 (GOMP_loop_ordered_static_first): Remove.
11533 (GOMP_loop_ordered_dynamic_first): Remove.
11534 (GOMP_loop_ordered_guided_first): Remove.
11535 (GOMP_loop_ordered_runtime_first): Remove.
11536 * ordered.c (gomp_ordered_loop_first): Post to own release when
11537 we're the first thread.
11538 (gomp_ordered_loop_last): Wait on release if not owner.
11539 (gomp_ordered_loop_next): Likewise.
11540 (gomp_ordered_static_loop_init): New.
11541 (gomp_ordered_static_loop_next): Use ordered_owner.
11542 (GOMP_ordered_start): Likewise.
11543 * work.c (gomp_new_work_share): Initialize ordered_owner.
11544
11545 2005-05-03 Richard Henderson <rth@redhat.com>
11546
11547 * Makefile (OPT): New.
11548 (CFLAGS): Use it.
11549
11550 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11551 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11552 * libgomp.h, libgomp.map, NOTES: Update to match.
11553
11554 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11555 Add initialized and thr members.
11556 (gomp_thread_start): Pause when initially spawned to wait for
11557 the whole team to be created.
11558 (gomp_team_start): Release team members at the end.
11559
11560 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
11561 (f_foo_1): Use GOMP_loop_end.
11562 (f_foo_2): Use GOMP_loop_end_nowait.
11563
11564 * testsuite/loop-2.c: New file.
11565 * testsuite/Makefile (TESTS): Add it.
11566
11567 2005-05-03 Richard Henderson <rth@redhat.com>
11568
11569 * iter.c (gomp_iter_static_next): Fix overflow check typo.
11570 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11571 * team.c (new_team): Initialize oldest_live_gen to 1 if no
11572 initial work_share.
11573
11574 * testsuite/Makefile: New file.
11575 * testsuite/loop-1.c: New file.
11576
11577 2005-05-03 Richard Henderson <rth@redhat.com>
11578
11579 Initial implementation and checkin.
11580 \f
11581 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11582
11583 Copying and distribution of this file, with or without modification,
11584 are permitted in any medium without royalty provided the copyright
11585 notice and this notice are preserved.