re PR testsuite/91884 (libgomp testsuite: (not) using a specific driver for C++,...
[official-gcc.git] / libgomp / ChangeLog
blob1b43c456741e26396fe51a9bfb1ca9b681f82798
1 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
3         PR testsuite/91884
4         * testsuite/libgomp.fortran/fortran.exp: Conditionally
5         add -lquadmath.
6         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
10         PR libgomp/92028
11         * target.c (gomp_map_vars_internal): Readd the previous
12         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
13         though do that just in the !not_found_cnt case.
15 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
17         * gfortran.dg/gomp/target-simd.f90: New.
19 2019-10-02  Julian Brown  <julian@codesourcery.com>
20             Cesar Philippidis  <cesar@codesourcery.com>
22         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
23         * target.c (FIELD_TGT_EMPTY): Define.
24         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
25         as switch instead of list of ifs.
26         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
28 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
30         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
31         include. Replace alloca () with __builtin_alloca ().
32         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
34 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
36         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
37         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
38         * oacc-parallel.c: Don't include "libgomp_g.h".
39         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
40         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
41         * aclocal.m4: Regenerated.
42         * config.h.in: Regenerated.
43         * configure: Regenerated.
44         * Makefile.in: Regenerated.
46 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
48         * libgomp_g.h: Include stdint.h instead of gstdint.h.
50 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
52         * configure: Regenerate.
54 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
56         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
57         string is initialized.
59 2019-09-06  Florian Weimer  <fweimer@redhat.com>
61         * configure: Regenerate.
63 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
65         PR other/79543
66         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
67         scanning to conform to the GNU Coding Standards.
68         * configure: Regenerate.
70 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
72         PR libgomp/91530
73         * testsuite/libgomp.c/scan-21.c: New test.
74         * testsuite/libgomp.c/scan-22.c: New test.
76 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
78         PR libgomp/91530
79         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
80         targets.
81         * testsuite/libgomp.c/scan-12.c: Likewise.
82         * testsuite/libgomp.c/scan-13.c: Likewise.
83         * testsuite/libgomp.c/scan-14.c: Likewise.
84         * testsuite/libgomp.c/scan-15.c: Likewise.
85         * testsuite/libgomp.c/scan-16.c: Likewise.
86         * testsuite/libgomp.c/scan-17.c: Likewise.
87         * testsuite/libgomp.c/scan-18.c: Likewise.
88         * testsuite/libgomp.c/scan-19.c: Likewise.
89         * testsuite/libgomp.c/scan-20.c: Likewise.
90         * testsuite/libgomp.c++/scan-9.C: Likewise.
91         * testsuite/libgomp.c++/scan-10.C: Likewise.
92         * testsuite/libgomp.c++/scan-11.C: Likewise.
93         * testsuite/libgomp.c++/scan-12.C: Likewise.
94         * testsuite/libgomp.c++/scan-14.C: Likewise.
95         * testsuite/libgomp.c++/scan-15.C: Likewise.
96         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
97         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
98         * testsuite/libgomp.c++/scan-16.C: Likewise.
100 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
102         PR fortran/91473
103         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
104         -std=legacy so invalid code in the test case is accepted.
106 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
108         PR fortran/91422
109         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
110         dimension.
112 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
114         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
115         perform the lookup in the first loop only if !not_found_cnt, otherwise
116         perform lookups for it in the second loop guarded with
117         if (not_found_cnt || has_firstprivate).
118         * testsuite/libgomp.c/target-37.c: New test.
119         * testsuite/libgomp.c++/target-22.C: New test.
121 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
123         * testsuite/libgomp.c/target-18.c (struct S): New type.
124         (foo): Use use_device_addr clause instead of use_device_ptr clause
125         where required by OpenMP 5.0, add further tests for both use_device_ptr
126         and use_device_addr clauses.
127         * testsuite/libgomp.c++/target-9.C (struct S): New type.
128         (foo): Use use_device_addr clause instead of use_device_ptr clause
129         where required by OpenMP 5.0, add further tests for both use_device_ptr
130         and use_device_addr clauses.  Add t and u arguments.
131         (main): Adjust caller.
133 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
135         * testsuite/libgomp.c++/loop-13.C: New test.
136         * testsuite/libgomp.c++/loop-14.C: New test.
137         * testsuite/libgomp.c++/loop-15.C: New test.
139 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
141         PR middle-end/91301
142         * testsuite/libgomp.c++/for-27.C: New test.
144 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
146         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
147         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
149 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
151         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
153 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
155         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
156         * testsuite/libgomp.c++/scan-16.C: Likewise.
158 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
160         * testsuite/libgomp.c/scan-19.c: New test.
161         * testsuite/libgomp.c/scan-20.c: New test.
163         * testsuite/libgomp.c/scan-11.c: New test.
164         * testsuite/libgomp.c/scan-12.c: New test.
165         * testsuite/libgomp.c/scan-13.c: New test.
166         * testsuite/libgomp.c/scan-14.c: New test.
167         * testsuite/libgomp.c/scan-15.c: New test.
168         * testsuite/libgomp.c/scan-16.c: New test.
169         * testsuite/libgomp.c/scan-17.c: New test.
170         * testsuite/libgomp.c/scan-18.c: New test.
171         * testsuite/libgomp.c++/scan-9.C: New test.
172         * testsuite/libgomp.c++/scan-10.C: New test.
173         * testsuite/libgomp.c++/scan-11.C: New test.
174         * testsuite/libgomp.c++/scan-12.C: New test.
175         * testsuite/libgomp.c++/scan-13.C: New test.
176         * testsuite/libgomp.c++/scan-14.C: New test.
177         * testsuite/libgomp.c++/scan-15.C: New test.
178         * testsuite/libgomp.c++/scan-16.C: New test.
180 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
182         * testsuite/libgomp.c/scan-9.c: New test.
183         * testsuite/libgomp.c/scan-10.c: New test.
185 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
187         * testsuite/libgomp.c++/scan-1.C: New test.
188         * testsuite/libgomp.c++/scan-2.C: New test.
189         * testsuite/libgomp.c++/scan-3.C: New test.
190         * testsuite/libgomp.c++/scan-4.C: New test.
191         * testsuite/libgomp.c++/scan-5.C: New test.
192         * testsuite/libgomp.c++/scan-6.C: New test.
193         * testsuite/libgomp.c++/scan-7.C: New test.
194         * testsuite/libgomp.c++/scan-8.C: New test.
195         * testsuite/libgomp.c/scan-1.c: New test.
196         * testsuite/libgomp.c/scan-2.c: New test.
197         * testsuite/libgomp.c/scan-3.c: New test.
198         * testsuite/libgomp.c/scan-4.c: New test.
199         * testsuite/libgomp.c/scan-5.c: New test.
200         * testsuite/libgomp.c/scan-6.c: New test.
201         * testsuite/libgomp.c/scan-7.c: New test.
202         * testsuite/libgomp.c/scan-8.c: New test.
204 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
206         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
207         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
208         Likewise.
210         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
211         check.
213 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
215         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
216         file.
218 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
220         PR fortran/90743
221         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
222         case.
223         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
224         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
225         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
226         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
228         PR testsuite/90861
229         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
231         PR middle-end/90862
232         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
234 2019-06-16  Tom de Vries  <tdevries@suse.de>
236         PR tree-optimization/89376
237         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
239 2019-06-15  Tom de Vries  <tdevries@suse.de>
241         PR tree-optimization/89713
242         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
243         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
245 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
247         PR middle-end/90779
248         * testsuite/libgomp.c/pr90779.c: New test.
249         * testsuite/libgomp.fortran/pr90779.f90: New test.
251 2019-06-15  Tom de Vries  <tdevries@suse.de>
253         PR tree-optimization/90009
254         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
256 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
258         PR tree-optimization/89713
259         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
261 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
263         PR target/90811
264         * testsuite/libgomp.c/pr90811.c: New test.
266 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
268         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
269         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
271 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
273         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
274         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
275         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
276         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
278 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
280         * configure.ac: Call AX_COUNT_CPUS.
281         Substitute CPU_COUNT.
282         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
283         count fallback.
284         * aclocal.m4: Regenerate.
285         * configure: Regenerate.
286         * Makefile.in, testsuite/Makefile.in: Regenerate.
288 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
290         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
291         to ...
292         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
293         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
294         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
296 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
298         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
300         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
302         PR libgomp/90641
303         * work.c (gomp_init_work_share): Instead of aligning final ordered
304         value to multiples of long long alignment, align to that the
305         first part (ordered team ids) and if inline_ordered_team_ids
306         is not on a long long alignment boundary within the structure,
307         use __alignof__ (long long) - 1 pad size always.
308         * loop.c (GOMP_loop_start): Fix *mem computation if
309         inline_ordered_team_ids is not aligned on long long alignment boundary
310         within the structure.
311         * loop-ull.c (GOMP_loop_ull_start): Likewise.
312         * sections.c (GOMP_sections2_start): Likewise.
314 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
316         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
317         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
319         PR libgomp/90585
320         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
321         HAVE_INTTYPES_H is defined.
322         (print_uint64_t): New typedef.
323         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
324         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
325         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
326         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
327         before casting to void *.
328         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
329         * oacc-mem.c: Don't include config.h nor stdint.h.
330         * target.c: Don't include config.h.
331         * oacc-cuda.c: Likewise.
332         * oacc-host.c: Don't include stdint.h.
334 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
336         PR libgomp/90527
337         * alloc.c (_GNU_SOURCE): Define.
339 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
341         * acc_prof.h: New file.
342         * oacc-profiling.c: Likewise.
343         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
344         Add these, respectively.
345         * Makefile.in: Regenerate.
346         * env.c (initialize_env): Call goacc_profiling_initialize.
347         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
348         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
349         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
350         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
351         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
352         acc_prof_register, acc_prof_unregister, and acc_register_library.
353         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
354         GOMP_PLUGIN_goacc_thread.
355         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
356         prof_callbacks_enabled members.
357         (goacc_prof_enabled, goacc_profiling_initialize)
358         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
359         (goacc_profiling_dispatch): Declare.
360         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
361         (GOACC_PROFILING_SETUP_P): Define.
362         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
363         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
364         OpenACC Profiling Interface.
365         * oacc-cuda.c (acc_get_current_cuda_device)
366         (acc_get_current_cuda_context, acc_get_cuda_stream)
367         (acc_set_cuda_stream): Likewise.
368         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
369         (acc_init, acc_set_device_type, acc_get_device_type)
370         (acc_get_device_num, goacc_lazy_initialize): Likewise.
371         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
372         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
373         (acc_unmap_data, present_create_copy, delete_copyout)
374         (update_dev_host): Likewise.
375         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
376         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
377         Likewise.
378         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
379         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
380         Likewise.
381         * libgomp.texi: Update.
382         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
383         file.
384         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
385         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
386         Likewise.
387         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
388         Likewise.
389         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
390         Likewise.
391         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
392         Likewise.
394 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
396         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
397         (struct goacc_asyncqueue_list): Likewise.
398         (goacc_aq): Likewise.
399         (goacc_aq_list): Likewise.
400         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
401         (GOMP_OFFLOAD_openacc_async_test): Remove.
402         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
403         (GOMP_OFFLOAD_openacc_async_wait): Remove.
404         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
405         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
406         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
407         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
408         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
409         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
410         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
411         (GOMP_OFFLOAD_openacc_async_exec): Declare.
412         (GOMP_OFFLOAD_openacc_async_construct): Declare.
413         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
414         (GOMP_OFFLOAD_openacc_async_test): Declare.
415         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
416         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
417         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
418         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
419         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
421         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
422         (gomp_acc_insert_pointer): Adjust declaration.
423         (gomp_copy_host2dev): New declaration.
424         (gomp_copy_dev2host): Likewise.
425         (gomp_map_vars_async): Likewise.
426         (gomp_unmap_tgt): Likewise.
427         (gomp_unmap_vars_async): Likewise.
428         (gomp_fini_device): Likewise.
430         * oacc-async.c (get_goacc_thread): New function.
431         (get_goacc_thread_device): New function.
432         (lookup_goacc_asyncqueue): New function.
433         (get_goacc_asyncqueue): New function.
434         (acc_async_test): Adjust code to use new async design.
435         (acc_async_test_all): Likewise.
436         (acc_wait): Likewise.
437         (acc_wait_async): Likewise.
438         (acc_wait_all): Likewise.
439         (acc_wait_all_async): Likewise.
440         (goacc_async_free): New function.
441         (goacc_init_asyncqueues): Likewise.
442         (goacc_fini_asyncqueues): Likewise.
443         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
444         design.
445         (acc_set_cuda_stream): Likewise.
446         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
447         (host_openacc_register_async_cleanup): Remove.
448         (host_openacc_async_exec): New function.
449         (host_openacc_async_test): Adjust parameters.
450         (host_openacc_async_test_all): Remove.
451         (host_openacc_async_wait): Remove.
452         (host_openacc_async_wait_async): Remove.
453         (host_openacc_async_wait_all): Remove.
454         (host_openacc_async_wait_all_async): Remove.
455         (host_openacc_async_set_async): Remove.
456         (host_openacc_async_synchronize): New function.
457         (host_openacc_async_serialize): New function.
458         (host_openacc_async_host2dev): New function.
459         (host_openacc_async_dev2host): New function.
460         (host_openacc_async_queue_callback): New function.
461         (host_openacc_async_construct): New function.
462         (host_openacc_async_destruct): New function.
463         (struct gomp_device_descr host_dispatch): Remove initialization of old
464         interface, add intialization of new async sub-struct.
465         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
466         (goacc_attach_host_thread_to_device): Remove old async code usage.
467         * oacc-int.h (goacc_init_asyncqueues): New declaration.
468         (goacc_fini_asyncqueues): Likewise.
469         (goacc_async_copyout_unmap_vars): Likewise.
470         (goacc_async_free): Likewise.
471         (get_goacc_asyncqueue): Likewise.
472         (lookup_goacc_asyncqueue): Likewise.
473         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
474         design.
475         (present_create_copy): Adjust code to use new async design.
476         (delete_copyout): Likewise.
477         (update_dev_host): Likewise.
478         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
479         async design.
480         (gomp_acc_remove_pointer): Adjust code to use new async design.
481         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
482         design.
483         (GOACC_enter_exit_data): Likewise.
484         (goacc_wait): Likewise.
485         (GOACC_update): Likewise.
486         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
487         when called, warn as obsolete in comment.
488         * target.c (goacc_device_copy_async): New function.
489         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
490         add goacc_device_copy_async case.
491         (gomp_copy_dev2host): Likewise.
492         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
493         (gomp_map_pointer): Likewise.
494         (gomp_map_fields_existing): Likewise.
495         (gomp_map_vars_internal): New always_inline function, renamed from
496         gomp_map_vars.
497         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
498         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
499         passing goacc_asyncqueue argument.
500         (gomp_unmap_tgt): Remove static, add attribute_hidden.
501         (gomp_unref_tgt): New function.
502         (gomp_unmap_vars_internal): New always_inline function, renamed from
503         gomp_unmap_vars.
504         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
505         (gomp_unmap_vars_async): Implement by calling
506         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
507         (gomp_fini_device): New function.
508         (gomp_exit_data): Adjust gomp_copy_dev2host call.
509         (gomp_load_plugin_for_device): Remove old interface, adjust to load
510         new async interface.
511         (gomp_target_fini): Adjust code to call gomp_fini_device.
513         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
514         (struct ptx_stream): Remove.
515         (struct nvptx_thread): Remove current_stream field.
516         (cuda_map_create): Remove.
517         (cuda_map_destroy): Remove.
518         (map_init): Remove.
519         (map_fini): Remove.
520         (map_pop): Remove.
521         (map_push): Remove.
522         (struct goacc_asyncqueue): Define.
523         (struct nvptx_callback): Define.
524         (struct ptx_free_block): Define.
525         (struct ptx_device): Remove null_stream, active_streams, async_streams,
526         stream_lock, and next fields.
527         (enum ptx_event_type): Remove.
528         (struct ptx_event): Remove.
529         (ptx_event_lock): Remove.
530         (ptx_events): Remove.
531         (init_streams_for_device): Remove.
532         (fini_streams_for_device): Remove.
533         (select_stream_for_async): Remove.
534         (nvptx_init): Remove ptx_events and ptx_event_lock references.
535         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
536         case.
537         (nvptx_open_device): Add free_blocks initialization, remove
538         init_streams_for_device call.
539         (nvptx_close_device): Remove fini_streams_for_device call, add
540         free_blocks destruct code.
541         (event_gc): Remove.
542         (event_add): Remove.
543         (nvptx_exec): Adjust parameters and code.
544         (nvptx_free): Likewise.
545         (nvptx_host2dev): Remove.
546         (nvptx_dev2host): Remove.
547         (nvptx_set_async): Remove.
548         (nvptx_async_test): Remove.
549         (nvptx_async_test_all): Remove.
550         (nvptx_wait): Remove.
551         (nvptx_wait_async): Remove.
552         (nvptx_wait_all): Remove.
553         (nvptx_wait_all_async): Remove.
554         (nvptx_get_cuda_stream): Remove.
555         (nvptx_set_cuda_stream): Remove.
556         (GOMP_OFFLOAD_alloc): Adjust code.
557         (GOMP_OFFLOAD_free): Likewise.
558         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
559         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
560         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
561         (GOMP_OFFLOAD_openacc_async_wait): Remove.
562         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
563         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
564         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
565         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
566         (cuda_free_argmem): New function.
567         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
568         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
569         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
570         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
571         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
572         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
573         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
574         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
575         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
576         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
577         (cuda_callback_wrapper): New function.
578         (cuda_memcpy_sanity_check): New function.
579         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
580         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
581         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
582         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
584 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
586         PR target/87835
587         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
589 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
591         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
593 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
595         * team.c (gomp_team_start): Initialize pool->threads[0].
597 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
599         * testsuite/libgomp.oacc-c++/c++.exp: Specify
600         "-foffload=$offload_target".
601         * testsuite/libgomp.oacc-c/c.exp: Likewise.
602         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
603         * testsuite/lib/libgomp.exp
604         (check_effective_target_openacc_nvidia_accel_configured): Remove,
605         as (conceptually) merged into
606         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
607         users.
609         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
610         * testsuite/libgomp-test-support.exp.in: Adjust.
611         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
612         openacc_device_types_s.
613         (offload_target_to_openacc_device_type): New proc.
614         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
615         * testsuite/libgomp.oacc-c/c.exp: Likewise.
616         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
617         * Makefile.in: Regenerate.
618         * configure: Likewise.
619         * testsuite/Makefile.in: Likewise.
621         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
622         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
623         instead of OFFLOAD_TARGETS.
624         * target.c (gomp_target_init): Adjust.
625         * testsuite/libgomp-test-support.exp.in: Likewise.
626         * testsuite/lib/libgomp.exp: Likewise.  Populate
627         openacc_device_types_s instead of offload_targets_s_openacc.
628         (check_effective_target_openacc_nvidia_accel_selected)
629         (check_effective_target_openacc_host_selected): Adjust.
630         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
631         * testsuite/libgomp.oacc-c/c.exp: Likewise.
632         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
633         * Makefile.in: Regenerate.
634         * config.h.in: Likewise.
635         * configure: Likewise.
636         * testsuite/Makefile.in: Likewise.
638         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
639         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
640         "offloading: supported, but hardware not accessible".
641         * testsuite/libgomp.oacc-c/c.exp: Likewise.
642         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
644 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
646         PR c/87924
647         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
648         goacc_wait().
649         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
650         and related adjustment.
652 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
654         PR c++/88988
655         * testsuite/libgomp.c++/pr88988.C: New test.
657 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
659         PR middle-end/89002
660         * testsuite/libgomp.c/pr89002.c: New test.
662 2019-01-28  Richard Biener  <rguenther@suse.de>
664         PR testsuite/89064
665         PR tree-optimization/86865
666         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
668 2019-01-24  Tom de Vries  <tdevries@suse.de>
670         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
671         once instantiated_devices drops to 0.
673 2019-01-23  Tom de Vries  <tdevries@suse.de>
675         PR target/PR88946
676         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
677         cuMemFree.
678         (nvptx_exec): Don't call map_push if mapnum == 0.
679         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
681 2019-01-23  Tom de Vries  <tdevries@suse.de>
683         PR target/88941
684         PR target/88939
685         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
686         (map_fini): Remove "assert (!s->map->active)".
687         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
689 2019-01-23  Tom de Vries  <tdevries@suse.de>
691         PR target/87835
692         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
693         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
695 2019-01-15  Tom de Vries  <tdevries@suse.de>
697         PR target/80547
698         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
699         New test.
701 2019-01-12  Tom de Vries  <tdevries@suse.de>
703         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
704         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
705         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
706         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
708 2019-01-12  Tom de Vries  <tdevries@suse.de>
710         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
712 2019-01-12  Tom de Vries  <tdevries@suse.de>
714         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
715         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
716         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
718 2019-01-12  Tom de Vries  <tdevries@suse.de>
720         PR target/85486
721         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
722         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
724 2019-01-12  Tom de Vries  <tdevries@suse.de>
726         PR target/85381
727         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
728         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
730 2019-01-12  Tom de Vries  <tdevries@suse.de>
732         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
733         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
734         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
736 2019-01-12  Tom de Vries  <tdevries@suse.de>
738         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
739         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
740         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
742 2019-01-12  Tom de Vries  <tdevries@suse.de>
744         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
745         resources diagnostic.
747 2019-01-12  Tom de Vries  <tdevries@suse.de>
749         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
750         vector length to be 128.
751         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
752         length 2097152 to be reduced to 1024 instead of 32.
754 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
755             James Norris  <jnorris@codesourcery.com>
757         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
758         Library Routines", and "Environment Variables".
760 2019-01-11  Tom de Vries  <tdevries@suse.de>
762         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
763         num_workers 16.
765 2019-01-11  Tom de Vries  <tdevries@suse.de>
767         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
768         -foffload=-w.
769         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
770         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
771         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
772         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
774 2019-01-11  Tom de Vries  <tdevries@suse.de>
776         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
777         test.
779 2019-01-10  Nathan Sidwell  <nathan@acm.org>
780             Julian Brown  <julian@codesourcery.com>
782         PR lto/71959
783         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
784         * testsuite/libgomp.oacc-c++/pr71959.C: New.
786 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
788         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
789         and paste code.
791 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
793         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
794         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
795         write.
797 2019-01-09  Tom de Vries  <tdevries@suse.de>
799         PR target/88756
800         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
801         #define instead of "const int".
802         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
803         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
804         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
805         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
807 2019-01-09  Tom de Vries  <tdevries@suse.de>
809         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
810         one worker.
812 2019-01-07  Tom de Vries  <tdevries@suse.de>
814         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
815         GOMP_OPENACC_DIM argument.
817 2019-01-03  Tom de Vries  <tdevries@suse.de>
819         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
820         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
822 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
824         Update copyright years.
826 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
828         * libgomp.texi: Bump @copying's copyright year.
830 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
832         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
833         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
834         (GOACC_declare): Redefine the "device" argument to "flags".
836 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
837             Cesar Philippidis  <cesar@codesourcery.com>
839         * target.c (struct gomp_coalesce_chunk): New structure.
840         (struct gomp_coalesce_buf): Update the chunks member to use that
841         type.  Adjust all users.
843 2018-12-19  Tom de Vries  <tdevries@suse.de>
845         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
846         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
847         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
849 2018-12-19  Tom de Vries  <tdevries@suse.de>
851         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
852         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
853         gcc/testsuite/gcc.dg/goacc.
854         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
856 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
857             Chung-Lin Tang  <cltang@codesourcery.com>
859         * oacc-mem.c (acc_present_or_create): Remove definition and change
860         to alias of acc_create.
861         (acc_present_or_copyin): Remove definition and change to alias of
862         acc_copyin.
863         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
864         of acc_present_or_create.
865         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
866         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
867         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
868         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
869         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
870         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
871         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
872         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
873         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
874         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
875         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
876         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
877         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
878         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
879         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
880         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
882 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
884         PR libgomp/88495
885         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
886         "identical parameters".
887         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
888         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
890         PR libgomp/88484
891         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
892         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
894         PR libgomp/88407
895         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
896         (nvptx_wait_async): Unseen async-argument is a no-op.
897         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
898         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
899         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
900         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
901         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
902         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
903         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
904         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
905         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
907         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
908         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
910 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
912         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
913         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
914         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
916 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
918         PR libgomp/88370
919         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
920         (acc_set_cuda_stream): Clarify.
921         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
922         "async_valid_p".
923         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
924         acc_async_sync".
925         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
926         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
927         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
928         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
930 2018-12-14  Tom de Vries  <tdevries@suse.de>
932         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
933         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
934         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
935         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
936         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
938 2018-12-13  Tom de Vries  <tdevries@suse.de>
940         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
941         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
942         * fortran.c (omp_display_affinity_): ... here.
943         * libgomp.h (gomp_print_string): Declare.
944         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
945         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
946         write.
948 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
950         PR libgomp/88460
951         * testsuite/libgomp.c++/for-24.C (results): Include it in
952         omp declare target region.
953         (main): Use map (always, tofrom: results) instead of
954         map (tofrom: results).
956 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
958         PR fortran/88463
959         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
960         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
962         * testsuite/libgomp.c-c++-common/for-16.c: New test.
964 2018-12-12  Andreas Schwab  <schwab@suse.de>
966         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
967         clobbered.
969 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
971         PR fortran/88411
972         * testsuite/libgomp.fortran/async_io_8.f90: New test.
974 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
975             Jakub Jelinek  <jakub@redhat.com>
977         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
978         devicep->host2dev_func.
980 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
982         PR libgomp/87995
983         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
984         tls_runtime effective target.
985         (t): New threadprivate variable.
986         (main): Set t in threads which execute iterations of the worksharing
987         loop.  Propagate that to the task after the loop and don't abort
988         if the current taskgroup hasn't been cancelled.
990 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
992         * testsuite/libgomp.c/task-reduction-3.c: New test.
994         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
996 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
998         PR libgomp/88288
999         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
1000         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
1002 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
1004         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
1006 2018-10-19  Richard Biener  <rguenther@suse.de>
1008         PR tree-optimization/88182
1009         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
1011 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
1013         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
1014         (RUNTEST): Don't define.
1015         (RUNTESTDEFAULTFLAGS): Add.
1016         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
1017         (distclean-am): Depend on distclean-DEJAGNU.
1018         (check-am): If -j% option is present in MFLAGS and if
1019         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
1020         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
1021         * testsuite/Makefile.in: Regenerated.
1023 2018-11-26  Richard Biener  <rguenther@suse.de>
1025         PR tree-optimization/88182
1026         * testsuite/libgomp.c++/pr88182.C: New testcase.
1028 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
1030         PR bootstrap/88106
1031         * config/mingw32/affinity-fmt.c: New file.
1033 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
1035         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
1036         (gomp_display_affinity): Use __builtin_choose_expr to handle
1037         properly handle argument having integral, or pointer or some other
1038         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
1039         with uint64_t type instead of %llx and unsigned long long.
1041         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
1042         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
1044 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1046         * affinity.c: Include <string.h>, <stdio.h>.
1047         (gomp_display_affinity_place): Remove cpusetp.
1048         * teams.c: Include <limits.h>.
1050 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
1052         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
1053         in_reduction clause for s[0].
1055         * affinity.c (gomp_display_affinity_place): New function.
1056         * affinity-fmt.c: New file.
1057         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
1058         * config/linux/affinity.c (gomp_display_affinity_place): New function.
1059         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
1060         Move these functions to ...
1061         * config/nvptx/teams.c: ... here.  New file.
1062         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
1063         New functions.
1064         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
1065         functions.
1066         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
1067         and _aligned_malloc.
1068         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
1069         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
1070         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
1071         gomp_affinity_format_len): New variables.
1072         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
1073         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
1074         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
1075         modifiers.  Display (non-default) chunk sizes.  Print
1076         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
1077         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
1078         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
1079         * fortran.c: Include stdio.h and string.h.
1080         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
1081         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
1082         (omp_set_affinity_format_, omp_get_affinity_format_,
1083         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
1084         omp_pause_resource_all_): New functions.
1085         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
1086         switch.
1087         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
1088         functions to ...
1089         * teams.c: ... here.  New file.
1090         * libgomp_g.h: Include gstdint.h.
1091         (GOMP_loop_nonmonotonic_runtime_start,
1092         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
1093         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
1094         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
1095         GOMP_parallel_loop_nonmonotonic_runtime,
1096         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1097         GOMP_loop_ull_nonmonotonic_runtime_start,
1098         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
1099         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
1100         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1101         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
1102         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
1103         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1104         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1105         GOMP_teams_reg): Declare.
1106         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
1107         gomp_aligned_alloc uses fallback implementation.
1108         (gomp_aligned_alloc, gomp_aligned_free): Declare.
1109         (enum gomp_schedule_type): Add GFS_MONOTONIC.
1110         (struct gomp_doacross_work_share): Add extra field.
1111         (struct gomp_work_share): Add task_reductions field.
1112         (struct gomp_taskgroup): Add workshare and reductions fields.
1113         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
1114         (gomp_thread_handle): New typedef.
1115         (gomp_display_affinity_place, gomp_set_affinity_format,
1116         gomp_display_string, gomp_display_affinity,
1117         gomp_display_affinity_thread): Declare.
1118         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
1119         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
1120         gomp_workshare_task_reduction_register): Declare.
1121         (gomp_team_start): Add taskgroup argument.
1122         (gomp_pause_host): Declare.
1123         (gomp_init_work_share, gomp_work_share_start): Change bool argument
1124         to size_t.
1125         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
1126         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
1127         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
1128         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1129         GOMP_loop_ull_doacross_start,
1130         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
1131         GOMP_loop_maybe_nonmonotonic_runtime_next,
1132         GOMP_loop_maybe_nonmonotonic_runtime_start,
1133         GOMP_loop_nonmonotonic_runtime_next,
1134         GOMP_loop_nonmonotonic_runtime_start,
1135         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1136         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1137         GOMP_loop_ull_nonmonotonic_runtime_next,
1138         GOMP_loop_ull_nonmonotonic_runtime_start,
1139         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1140         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
1141         GOMP_taskgroup_reduction_register,
1142         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1143         GOMP_teams_reg and GOMP_taskwait_depend.
1144         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
1145         omp_{capture,display}_affinity{,_}, and
1146         omp_[gs]et_affinity_format{,_}.
1147         * loop.c: Include string.h.
1148         (GOMP_loop_runtime_next): Add ialias.
1149         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1150         (gomp_loop_static_start, gomp_loop_dynamic_start,
1151         gomp_loop_guided_start, gomp_loop_ordered_static_start,
1152         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1153         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
1154         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
1155         or gomp_doacross_init callers.
1156         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
1157         GOMP_loop_doacross_start): New functions.
1158         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1159         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
1160         Mask off GFS_MONOTONIC bit.
1161         (GOMP_loop_maybe_nonmonotonic_runtime_next,
1162         GOMP_loop_maybe_nonmonotonic_runtime_start,
1163         GOMP_loop_nonmonotonic_runtime_next,
1164         GOMP_loop_nonmonotonic_runtime_start,
1165         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1166         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
1167         functions.
1168         (gomp_parallel_loop_start): Pass NULL as taskgroup to
1169         gomp_team_start.
1170         * loop_ull.c: Include string.h.
1171         (GOMP_loop_ull_runtime_next): Add ialias.
1172         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1173         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
1174         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
1175         gomp_loop_ull_ordered_dynamic_start,
1176         gomp_loop_ull_ordered_guided_start,
1177         gomp_loop_ull_doacross_static_start,
1178         gomp_loop_ull_doacross_dynamic_start,
1179         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
1180         and gomp_doacross_ull_init callers.
1181         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
1182         GOMP_loop_ull_doacross_start): New functions.
1183         (GOMP_loop_ull_runtime_start,
1184         GOMP_loop_ull_ordered_runtime_start,
1185         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
1186         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
1187         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
1188         GOMP_loop_ull_nonmonotonic_runtime_next,
1189         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
1190         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
1191         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
1192         (omp_pause_resource_t, omp_depend_t): New typedefs.
1193         (enum omp_lock_hint_t): Renamed to ...
1194         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
1195         enumerators using numbers and omp_lock_hint_* as their aliases.
1196         (omp_lock_hint_t): New typedef.  Rename to ...
1197         (omp_sync_hint_t): ... this.
1198         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
1199         omp_sync_hint_t instead of omp_lock_hint_t.
1200         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1201         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1202         Declare.
1203         (omp_target_is_present, omp_target_disassociate_ptr):
1204         Change first argument from void * to const void *.
1205         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
1206         from void * to const void *.
1207         (omp_target_associate_ptr): Change first and second arguments from
1208         void * to const void *.
1209         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
1210         omp_pause_hard): New parameters.
1211         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1212         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1213         New interfaces.
1214         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
1215         omp_pause_hard): New parameters.
1216         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
1217         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
1218         New externals.
1219         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
1220         EXTRA argument.  If not needed to prepare array, if extra is 0,
1221         clear ws->doacross, otherwise allocate just doacross structure and
1222         extra payload.  If array is needed, allocate also extra payload.
1223         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
1224         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
1225         doacross == NULL.
1226         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
1227         gomp_team_start.
1228         (GOMP_parallel): Likewise.  Formatting fix.
1229         (GOMP_parallel_reductions): New function.
1230         (GOMP_cancellation_point): If taskgroup has workshare
1231         flag set, check cancelled of prev taskgroup if any.
1232         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
1233         on prev taskgroup if any.
1234         * sections.c: Include string.h.
1235         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
1236         (GOMP_sections_start): Adjust gomp_work_share_start caller.
1237         (GOMP_sections2_start): New function.
1238         (GOMP_parallel_sections_start, GOMP_parallel_sections):
1239         Pass NULL as taskgroup to gomp_team_start.
1240         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
1241         gomp_work_share_start callers.
1242         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
1243         If taskgroup has workshare flag set, check cancelled on prev
1244         taskgroup if any.  Guard all cancellation tests with
1245         gomp_cancel_var test.
1246         (omp_target_is_present, omp_target_disassociate_ptr):
1247         Change ptr argument from void * to const void *.
1248         (omp_target_memcpy): Change src argument from void * to const void *.
1249         (omp_target_memcpy_rect): Likewise.
1250         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
1251         instead of char * where needed.
1252         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
1253         from void * to const void *.
1254         (omp_pause_resource, omp_pause_resource_all): New functions.
1255         * task.c (gomp_task_handle_depend): Handle new depend array format
1256         in addition to the old.  Handle mutexinoutset kinds the same as
1257         inout for now, handle unspecified kinds.
1258         (gomp_create_target_task): If taskgroup has workshare flag set, check
1259         cancelled on prev taskgroup if any.  Guard all cancellation tests with
1260         gomp_cancel_var test.  Handle new depend array format count in
1261         addition to the old.
1262         (GOMP_task): Likewise.  Adjust function comment.
1263         (gomp_task_run_pre): If taskgroup has workshare flag set, check
1264         cancelled on prev taskgroup if any.  Guard all cancellation tests with
1265         gomp_cancel_var test.
1266         (GOMP_taskwait_depend): New function.
1267         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
1268         format in addition to the old.  Handle mutexinoutset kinds the same as
1269         inout for now, handle unspecified kinds.  Fix a function comment typo.
1270         (gomp_taskgroup_init): New function.
1271         (GOMP_taskgroup_start): Use it.
1272         (gomp_reduction_register, gomp_create_artificial_team,
1273         GOMP_taskgroup_reduction_register,
1274         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1275         gomp_parallel_reduction_register,
1276         gomp_workshare_task_reduction_register,
1277         gomp_workshare_taskgroup_start,
1278         GOMP_workshare_task_reduction_unregister): New functions.
1279         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
1280         check cancelled on prev taskgroup if any.  Guard all cancellation
1281         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
1282         by calling GOMP_taskgroup_reduction_register.
1283         * team.c (gomp_thread_attr): Remove comment.
1284         (struct gomp_thread_start_data): Add handle field.
1285         (gomp_thread_start): Call pthread_detach.
1286         (gomp_new_team): Adjust gomp_init_work_share caller.
1287         (gomp_free_pool_helper): Call pthread_detach.
1288         (gomp_team_start): Add taskgroup argument, initialize implicit
1289         tasks' taskgroup field to that.  Don't call
1290         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
1291         (gomp_team_end): Determine nesting by thr->ts.level != 0
1292         rather than thr->ts.team != NULL.
1293         (gomp_pause_pool_helper, gomp_pause_host): New functions.
1294         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1295         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1296         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1297         if more than 1 allocate also extra payload at the end of array.  Never
1298         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1299         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1300         return true instead of ws.
1301         * Makefile.in: Regenerated.
1302         * configure: Regenerated.
1303         * config.h.in: Regenerated.
1304         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1305         in some cases.
1306         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1307         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1308         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1309         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1310         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1311         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1312         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1313         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1314         * testsuite/libgomp.c-c++-common/for-10.c: New test.
1315         * testsuite/libgomp.c-c++-common/for-11.c: New test.
1316         * testsuite/libgomp.c-c++-common/for-12.c: New test.
1317         * testsuite/libgomp.c-c++-common/for-13.c: New test.
1318         * testsuite/libgomp.c-c++-common/for-14.c: New test.
1319         * testsuite/libgomp.c-c++-common/for-15.c: New test.
1320         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1321         define a different N(test), don't define N(f0) to N(f14), but instead
1322         define N(f20) to N(f34) using != comparisons.
1323         * testsuite/libgomp.c-c++-common/for-7.c: New test.
1324         * testsuite/libgomp.c-c++-common/for-8.c: New test.
1325         * testsuite/libgomp.c-c++-common/for-9.c: New test.
1326         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1327         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1328         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1329         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1330         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1331         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1332         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1333         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1334         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1335         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1336         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1337         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1338         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1339         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1340         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1341         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1342         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1343         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1344         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1345         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1346         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1347         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1348         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1349         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1350         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1351         * testsuite/libgomp.c++/depend-1.C: New test.
1352         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1353         * testsuite/libgomp.c++/depobj-1.C: New test.
1354         * testsuite/libgomp.c++/for-16.C: New test.
1355         * testsuite/libgomp.c++/for-21.C: New test.
1356         * testsuite/libgomp.c++/for-22.C: New test.
1357         * testsuite/libgomp.c++/for-23.C: New test.
1358         * testsuite/libgomp.c++/for-24.C: New test.
1359         * testsuite/libgomp.c++/for-25.C: New test.
1360         * testsuite/libgomp.c++/for-26.C: New test.
1361         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1362         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1363         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1364         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1365         * testsuite/libgomp.c++/task-reduction-10.C: New test.
1366         * testsuite/libgomp.c++/task-reduction-11.C: New test.
1367         * testsuite/libgomp.c++/task-reduction-12.C: New test.
1368         * testsuite/libgomp.c++/task-reduction-13.C: New test.
1369         * testsuite/libgomp.c++/task-reduction-14.C: New test.
1370         * testsuite/libgomp.c++/task-reduction-15.C: New test.
1371         * testsuite/libgomp.c++/task-reduction-16.C: New test.
1372         * testsuite/libgomp.c++/task-reduction-17.C: New test.
1373         * testsuite/libgomp.c++/task-reduction-18.C: New test.
1374         * testsuite/libgomp.c++/task-reduction-19.C: New test.
1375         * testsuite/libgomp.c/task-reduction-1.c: New test.
1376         * testsuite/libgomp.c++/task-reduction-1.C: New test.
1377         * testsuite/libgomp.c/task-reduction-2.c: New test.
1378         * testsuite/libgomp.c++/task-reduction-2.C: New test.
1379         * testsuite/libgomp.c++/task-reduction-3.C: New test.
1380         * testsuite/libgomp.c++/task-reduction-4.C: New test.
1381         * testsuite/libgomp.c++/task-reduction-5.C: New test.
1382         * testsuite/libgomp.c++/task-reduction-6.C: New test.
1383         * testsuite/libgomp.c++/task-reduction-7.C: New test.
1384         * testsuite/libgomp.c++/task-reduction-8.C: New test.
1385         * testsuite/libgomp.c++/task-reduction-9.C: New test.
1386         * testsuite/libgomp.c/teams-1.c: New test.
1387         * testsuite/libgomp.c/teams-2.c: New test.
1388         * testsuite/libgomp.c/thread-limit-4.c: New test.
1389         * testsuite/libgomp.c/thread-limit-5.c: New test.
1390         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1392 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
1394         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1395         acc_memcpy_to/from_device functions, now with async parameter.
1396         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1397         (acc_memcpy_from_device): Likewise.
1398         (acc_memcpy_to_device_async): New API function.
1399         (acc_memcpy_from_device_async): Likewise.
1400         (present_create_copy): Add async parameter and async setting/unsetting.
1401         (acc_create): Adjust present_create_copy call.
1402         (acc_copyin): Likewise.
1403         (acc_present_or_create): Likewise.
1404         (acc_present_or_copyin): Likewise.
1405         (acc_create_async): New API function.
1406         (acc_copyin_async): New API function.
1407         (delete_copyout): Add async parameter and async setting/unsetting.
1408         (acc_delete): Adjust delete_copyout call.
1409         (acc_copyout): Likewise.
1410         (acc_delete_async): New API function.
1411         (acc_copyout_async): Likewise.
1412         (update_dev_host): Add async parameter and async setting/unsetting.
1413         (acc_update_device): Adjust update_dev_host call.
1414         (acc_update_self): Likewise.
1415         (acc_update_device_async): New API function.
1416         (acc_update_self_async): Likewise.
1417         * openacc.h (acc_copyin_async): Declare new API function.
1418         (acc_create_async): Likewise.
1419         (acc_copyout_async): Likewise.
1420         (acc_delete_async): Likewise.
1421         (acc_update_device_async): Likewise.
1422         (acc_update_self_async): Likewise.
1423         (acc_memcpy_to_device_async): Likewise.
1424         (acc_memcpy_from_device_async): Likewise.
1425         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1426         (acc_copyin_async_64_h): New subroutine.
1427         (acc_copyin_async_array_h): New subroutine.
1428         (acc_create_async_32_h): New subroutine.
1429         (acc_create_async_64_h): New subroutine.
1430         (acc_create_async_array_h): New subroutine.
1431         (acc_copyout_async_32_h): New subroutine.
1432         (acc_copyout_async_64_h): New subroutine.
1433         (acc_copyout_async_array_h): New subroutine.
1434         (acc_delete_async_32_h): New subroutine.
1435         (acc_delete_async_64_h): New subroutine.
1436         (acc_delete_async_array_h): New subroutine.
1437         (acc_update_device_async_32_h): New subroutine.
1438         (acc_update_device_async_64_h): New subroutine.
1439         (acc_update_device_async_array_h): New subroutine.
1440         (acc_update_self_async_32_h): New subroutine.
1441         (acc_update_self_async_64_h): New subroutine.
1442         (acc_update_self_async_array_h): New subroutine.
1443         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1444         (acc_copyin_async_64_h): New subroutine.
1445         (acc_copyin_async_array_h): New subroutine.
1446         (acc_create_async_32_h): New subroutine.
1447         (acc_create_async_64_h): New subroutine.
1448         (acc_create_async_array_h): New subroutine.
1449         (acc_copyout_async_32_h): New subroutine.
1450         (acc_copyout_async_64_h): New subroutine.
1451         (acc_copyout_async_array_h): New subroutine.
1452         (acc_delete_async_32_h): New subroutine.
1453         (acc_delete_async_64_h): New subroutine.
1454         (acc_delete_async_array_h): New subroutine.
1455         (acc_update_device_async_32_h): New subroutine.
1456         (acc_update_device_async_64_h): New subroutine.
1457         (acc_update_device_async_array_h): New subroutine.
1458         (acc_update_self_async_32_h): New subroutine.
1459         (acc_update_self_async_64_h): New subroutine.
1460         (acc_update_self_async_array_h): New subroutine.
1461         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1462         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1463         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1464         acc_memcpy_to_device_async*, acc_update_device_async*, and
1465         acc_update_self_async* entries.
1466         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1467         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1468         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1470 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
1472         PR bootstrap/82856
1473         * Makefile.am: Include multilib.am
1474         (AUTOMAKE_OPTIONS): Add info-in-builddir.
1475         (CLEANFILES): Remove libgomp.info.
1476         * configure.ac: Remove AC_PREREQ.
1477         * testsuite/Makefile.am (RUNTEST): Remove quotes.
1478         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
1479         Regenerate.
1481 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
1482             Julian Brown  <julian@codesourcery.com>
1484         * testsuite/libgomp.oacc-c++/this.C: New.
1486 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
1488         * plugin/plugin-nvptx.c (struct cuda_map): New.
1489         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
1490         h_tail with (cuda_map *) map.
1491         (cuda_map_create): New function.
1492         (cuda_map_destroy): New function.
1493         (map_init): Update to use a linked list of cuda_map objects.
1494         (map_fini): Likewise.
1495         (map_pop): Likewise.
1496         (map_push): Likewise.  Return CUdeviceptr instead of void.
1497         (init_streams_for_device): Remove stales references to ptx_stream
1498         members.
1499         (select_stream_for_async): Likewise.
1500         (nvptx_exec): Update call to map_init.
1502 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
1503             Julian Brown  <julian@codesourcery.com>
1505         PR middle-end/86336
1506         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
1508 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
1509         Thomas Koenig <tkoenig@gcc.gnu.org>
1511         PR fortran/25829
1512         * testsuite/libgomp.fortran/async_io_1.f90: New test.
1513         * testsuite/libgomp.fortran/async_io_2.f90: New test.
1514         * testsuite/libgomp.fortran/async_io_3.f90: New test.
1515         * testsuite/libgomp.fortran/async_io_4.f90: New test.
1516         * testsuite/libgomp.fortran/async_io_5.f90: New test.
1517         * testsuite/libgomp.fortran/async_io_6.f90: New test.
1518         * testsuite/libgomp.fortran/async_io_7.f90: New test.
1520 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
1521             Tom de Vries  <tdevries@suse.de>
1523         PR target/85590
1524         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
1525         (cuOccupancyMaxPotentialBlockSize): Declare.
1526         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
1527         CUDA_ONE_CALL_MAYBE_NULL.
1528         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
1529         CUoccupancyB2DSize and declare
1530         cuOccupancyMaxPotentialBlockSize.
1531         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
1532         default num_gangs and num_workers when the driver supports it.
1534 2018-08-08  Tom de Vries  <tdevries@suse.de>
1536         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
1537         CUDA_ONE_CALL_MAYBE_NULL.
1538         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
1539         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
1540         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
1541         are not found.
1543 2018-08-08  Tom de Vries  <tdevries@suse.de>
1545         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
1546         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
1547         present.
1549 2018-08-08  Tom de Vries  <tdevries@suse.de>
1551         * plugin/plugin-nvptx.c
1552         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
1553         (nvptx_open_device): Use
1554         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
1556 2018-08-08  Tom de Vries  <tdevries@suse.de>
1558         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
1559         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
1561 2018-08-07  Tom de Vries  <tdevries@suse.de>
1563         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
1564         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
1565         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
1566         corresponding call in CUDA_ONE_CALL.  Add def/undef of
1567         CUDA_ONE_CALL_MAYBE_NULL.
1568         (CUDA_CALL_EXISTS): Define.
1570 2018-08-07  Tom de Vries  <tdevries@suse.de>
1572         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
1573         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
1574         corresponding undefs right after.
1576 2018-08-04  Tom de Vries  <tdevries@suse.de>
1578         * plugin/configfrag.ac: For --without-cuda-driver, set
1579         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
1580         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
1581         * configure: Regenerate.
1583 2018-08-02  Tom de Vries  <tdevries@suse.de>
1585         PR target/86660
1586         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
1587         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
1588         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
1589         Same.
1590         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
1591         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
1592         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
1594 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
1595             Thomas Schwinge <thomas@codesourcery.com>
1597         * config/nvptx/oacc-parallel.c: Truncate.
1599 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
1600             James Norris <jnorris@codesourcery.com>
1602         * plugin/plugin-nvptx.c (struct map): Removed.
1603         (map_init, map_pop): Remove use of struct map.
1604         (map_push): Likewise and change argument list.
1605         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1607 2018-08-01  Tom de Vries  <tdevries@suse.de>
1609         * plugin/cuda-lib.def: New file.  Factor out of ...
1610         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1611         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1612         using CUDA_CALLS.
1614 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1616         Revert 'AsyncI/O patch committed'.
1617         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
1618                 Thomas Koenig <tkoenig@gcc.gnu.org>
1620         PR fortran/25829
1621         * testsuite/libgomp.fortran/async_io_1.f90: New test.
1622         * testsuite/libgomp.fortran/async_io_2.f90: New test.
1623         * testsuite/libgomp.fortran/async_io_3.f90: New test.
1624         * testsuite/libgomp.fortran/async_io_4.f90: New test.
1625         * testsuite/libgomp.fortran/async_io_5.f90: New test.
1626         * testsuite/libgomp.fortran/async_io_6.f90: New test.
1627         * testsuite/libgomp.fortran/async_io_7.f90: New test.
1629 2018-07-30  Tom de Vries  <tdevries@suse.de>
1631         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1632         (nvptx_exec): Ensure worker and vector default dims don't exceed
1633         targ_fn->max_threads_per_block.
1635 2018-07-30  Tom de Vries  <tdevries@suse.de>
1637         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1638         (nvptx_open_device): Init default_dims for device.
1639         (nvptx_exec): Use default_dims from device.
1641 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
1643         PR testsuite/86660
1644         * testsuite/libgomp.c++/for-15.C (results): Include it in
1645         omp declare target region.
1646         (main): Use map (always, tofrom: results) instead of
1647         map (tofrom: results).
1649         PR middle-end/86660
1650         * testsuite/libgomp.c/pr86660.c: New test.
1652 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
1653             Tom de Vries  <tdevries@suse.de>
1655         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1656         sufficient resources to launch a kernel, and give a hint on how to fix
1657         it.
1659 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
1660             Tom de Vries  <tdevries@suse.de>
1662         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1663         max_threads_per_block and max_threads_per_multiprocessor fields.
1664         (nvptx_open_device): Initialize new fields.
1665         (nvptx_exec): Use num_sms, and new fields.
1667 2018-07-26  Tom de Vries  <tdevries@suse.de>
1669         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1670         to correct locations.  Remove xfail.
1672 2018-07-26  Tom de Vries  <tdevries@suse.de>
1674         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1675         acc_wait.  Move acc_async_test calls to correct locations.  Remove
1676         xfail.
1678 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
1679         Thomas Koenig <tkoenig@gcc.gnu.org>
1681         PR fortran/25829
1682         * testsuite/libgomp.fortran/async_io_1.f90: New test.
1683         * testsuite/libgomp.fortran/async_io_2.f90: New test.
1684         * testsuite/libgomp.fortran/async_io_3.f90: New test.
1685         * testsuite/libgomp.fortran/async_io_4.f90: New test.
1686         * testsuite/libgomp.fortran/async_io_5.f90: New test.
1687         * testsuite/libgomp.fortran/async_io_6.f90: New test.
1688         * testsuite/libgomp.fortran/async_io_7.f90: New test.
1690 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
1692         PR middle-end/86542
1693         * testsuite/libgomp.c++/pr86542.C: New test.
1695         PR middle-end/86539
1696         * testsuite/libgomp.c++/pr86539.C: New test.
1698 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
1700         PR c++/86443
1701         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1702         (results): Make sure the variable is not inside declare target region.
1703         (qux): Remove unused function.
1705 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
1707         PR c++/86443
1708         * testsuite/libgomp.c++/for-15.C: New test.
1710 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
1712         PR c++/86291
1713         * testsuite/libgomp.c++/pr86291.C: New test.
1715 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
1717         * libgomp.texi (Top): Move www.openmp.org to https.
1718         (Enabling OpenMP): Ditto.
1719         (omp_get_active_level): Ditto.
1720         (omp_get_ancestor_thread_num): Ditto.
1721         (omp_get_cancellation): Ditto.
1722         (omp_get_default_device): Ditto.
1723         (omp_get_dynamic): Ditto.
1724         (omp_get_level): Ditto.
1725         (omp_get_max_active_levels): Ditto.
1726         (omp_get_max_task_priority): Ditto.
1727         (omp_get_max_threads): Ditto.
1728         (omp_get_nested): Ditto.
1729         (omp_get_num_devices): Ditto.
1730         (omp_get_num_procs): Ditto.
1731         (omp_get_num_teams): Ditto.
1732         (omp_get_num_threads): Ditto.
1733         (omp_get_proc_bind): Ditto.
1734         (omp_get_schedule): Ditto.
1735         (omp_get_team_num): Ditto.
1736         (omp_get_team_size): Ditto.
1737         (omp_get_thread_limit): Ditto.
1738         (omp_get_thread_num): Ditto.
1739         (omp_in_parallel): Ditto.
1740         (omp_in_final): Ditto.
1741         (omp_is_initial_device): Ditto.
1742         (omp_set_default_device): Ditto.
1743         (omp_set_dynamic): Ditto.
1744         (omp_set_max_active_levels): Ditto.
1745         (omp_set_nested): Ditto.
1746         (omp_set_num_threads): Ditto.
1747         (omp_set_schedule): Ditto.
1748         (omp_init_lock): Ditto.
1749         (omp_set_lock): Ditto.
1750         (omp_test_lock): Ditto.
1751         (omp_unset_lock): Ditto.
1752         (omp_destroy_lock): Ditto.
1753         (omp_init_nest_lock): Ditto.
1754         (omp_set_nest_lock): Ditto.
1755         (omp_test_nest_lock): Ditto.
1756         (omp_unset_nest_lock): Ditto.
1757         (omp_destroy_nest_lock): Ditto.
1758         (omp_get_wtick): Ditto.
1759         (omp_get_wtime): Ditto.
1760         (OMP_CANCELLATION): Ditto.
1761         (OMP_DISPLAY_ENV): Ditto.
1762         (OMP_DEFAULT_DEVICE): Ditto.
1763         (OMP_DYNAMIC): Ditto.
1764         (OMP_MAX_ACTIVE_LEVELS): Ditto.
1765         (OMP_MAX_TASK_PRIORITY): Ditto.
1766         (OMP_NESTED): Ditto.
1767         (OMP_NUM_THREADS): Ditto.
1768         (OMP_PROC_BIND): Ditto.
1769         (OMP_PLACES): Ditto.
1770         (OMP_STACKSIZE): Ditto.
1771         (OMP_SCHEDULE): Ditto.
1772         (OMP_THREAD_LIMIT): Ditto.
1773         (OMP_WAIT_POLICY): Ditto.
1775 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
1776             James Norris  <jnorris@codesourcery.com>
1777             Julian Brown  <julian@codesourcery.com>
1778             Thomas Schwinge  <thomas@codesourcery.com>
1779             Tom de Vries  <tom@codesourcery.com>
1781         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1782         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1783         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1784         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1785         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1786         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1787         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1788         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1789         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1790         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1791         Likewise.
1792         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1793         Likewise.
1794         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1795         Likewise.
1796         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1797         Likewise.
1798         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1799         Likewise.
1800         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1801         Likewise.
1802         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1803         Likewise.
1804         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1805         Likewise.
1806         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1807         Likewise.
1808         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1809         Likewise.
1810         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1811         Likewise.
1812         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1813         Likewise.
1814         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1815         Likewise.
1816         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1817         Likewise.
1818         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1819         Likewise.
1820         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1821         Likewise.
1822         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1823         Likewise.
1824         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1825         Likewise.
1826         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1827         Likewise.
1828         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1829         Likewise.
1830         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1831         Likewise.
1832         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1833         Likewise.
1834         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1835         Likewise.
1836         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1837         Likewise.
1838         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1839         Likewise.
1840         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1841         Likewise.
1842         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1843         Likewise.
1844         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1845         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1846         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1847         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1848         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1849         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1850         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1851         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1852         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1853         Likewise.
1854         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1855         Likewise.
1856         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1857         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1858         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1859         Likewise.
1860         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1861         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1862         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1863         Likewise.
1864         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1865         Likewise.
1866         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1867         Likewise.
1868         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1869         Likewise.
1870         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1871         Likewise.
1872         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1873         Likewise.
1874         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1875         Likewise.
1876         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1877         Likewise.
1878         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1879         Likewise.
1880         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1881         Likewise.
1882         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1883         Likewise.
1884         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1885         Likewise.
1886         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1887         Likewise.
1888         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1889         Likewise.
1890         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1891         Likewise.
1892         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1893         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1894         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1895         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1896         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1897         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1898         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1900 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
1901             Thomas Schwinge <thomas@codesourcery.com>
1902             Cesar Philippidis  <cesar@codesourcery.com>
1904         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1905         (gomp_acc_remove_pointer): Update declaration.
1906         (gomp_acc_declare_allocate): Declare.
1907         (gomp_remove_var): Declare.
1908         * libgomp.map (OACC_2.5): Define.
1909         * oacc-mem.c (acc_map_data): Update refcount.
1910         (acc_unmap_data): Likewise.
1911         (present_create_copy): Likewise.
1912         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1913         (acc_copyin): Likewise.
1914         (FLAG_FINALIZE): Define.
1915         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1916         (acc_delete_finalize): New function.
1917         (acc_delete_finalize_async): New function.
1918         (acc_copyout_finalize): New function.
1919         (acc_copyout_finalize_async): New function.
1920         (gomp_acc_insert_pointer): Update refcounts.
1921         (gomp_acc_remove_pointer): Return if data is not present on the
1922         accelerator.
1923         * oacc-parallel.c (find_pset): Rename to find_pointer.
1924         (find_pointer): Add support for GOMP_MAP_POINTER.
1925         (handle_ftn_pointers): New function.
1926         (GOACC_parallel_keyed): Update refcounts of variables.
1927         (GOACC_enter_exit_data): Add support for finalized data mappings.
1928         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1929         of fortran arrays.
1930         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1931         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1932         for GOMP_MAP_FORCE_FROM.
1933         * openacc.f90 (module openacc_internal): Add
1934         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1935         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1936         acc_copyout_finalize and acc_delete_finalize.
1937         (acc_copyout_finalize_32_h): New subroutine.
1938         (acc_copyout_finalize_64_h): New subroutine.
1939         (acc_copyout_finalize_array_h): New subroutine.
1940         (acc_delete_finalize_32_h): New subroutine.
1941         (acc_delete_finalize_64_h): New subroutine.
1942         (acc_delete_finalize_array_h): New subroutine.
1943         * openacc.h (acc_copyout_finalize): Declare.
1944         (acc_copyout_finalize_async): Declare.
1945         (acc_delete_finalize): Declare.
1946         (acc_delete_finalize_async): Declare.
1947         * openacc_lib.h (acc_copyout_finalize): New interface.
1948         (acc_delete_finalize): New interface.
1949         * target.c (gomp_map_vars): Update dynamic_refcount.
1950         (gomp_remove_var): New function.
1951         (gomp_unmap_vars): Use it.
1952         (gomp_unload_image_from_device): Likewise.
1953         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1954         case to utilize OpenACC 2.5 data clause semantics.
1955         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1956         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1957         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1958         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1959         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1960         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1961         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1962         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1963         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1964         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1965         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1966         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1967         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1968         utilize OpenACC 2.5 data clause semantics.
1969         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1970         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1971         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1972         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1973         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1974         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1975         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1976         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1977         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1979 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
1981         PR fortran/85841
1982         PR testsuite/85865
1983         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1984         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1985         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1986         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1987         * testsuite/libgomp.fortran/task2.f90: Ditto.
1988         * testsuite/libgomp.fortran/vla1.f90: Ditto.
1989         * testsuite/libgomp.fortran/vla2.f90: Ditto.
1990         * testsuite/libgomp.fortran/vla3.f90: Ditto.
1991         * testsuite/libgomp.fortran/vla4.f90: Ditto.
1992         * testsuite/libgomp.fortran/vla5.f90: Ditto.
1993         * testsuite/libgomp.fortran/vla6.f90: Ditto.
1994         * testsuite/libgomp.fortran/vla8.f90: Ditto.
1995         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1996         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1998 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
2000         PR c++/85782
2001         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
2003 2018-05-09  Tom de Vries  <tom@codesourcery.com>
2005         PR libgomp/82901
2006         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
2007         to GOACC_enter_exit_data.
2009 2018-05-09  Tom de Vries  <tom@codesourcery.com>
2011         PR libgomp/83792
2012         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
2013         (async_synchronous_p): New function.
2014         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
2015         async_valid_p.
2016         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2017         async_valid_stream_id_p.
2018         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
2019         * oacc-parallel.c (GOACC_parallel_keyed): Same.
2021 2018-05-07  Tom de Vries  <tom@codesourcery.com>
2023         PR testsuite/85677
2024         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
2025         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
2027 2018-05-03  Tom de Vries  <tom@codesourcery.com>
2029         PR testsuite/85106
2030         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
2031         extra_tool_flags if it contains an -foffload=-fdump-* flag.
2032         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
2033         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
2035 2018-05-02  Tom de Vries  <tom@codesourcery.com>
2037         PR libgomp/85411
2038         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
2039         GOMP_OPENACC_DIM ...
2040         * env.c (parse_gomp_openacc_dim): ... here.  New function.
2041         (initialize_env): Call parse_gomp_openacc_dim.
2042         (goacc_default_dims): Define.
2043         * libgomp.h (goacc_default_dims): Declare.
2044         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
2045         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
2046         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
2047         GOMP_PLUGIN_acc_default_dim.
2048         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
2049         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
2051 2018-05-02  Tom de Vries  <tom@codesourcery.com>
2053         PR testsuite/83791
2054         * testsuite/libgomp.c++/udr-9.C: Update.
2055         * testsuite/libgomp.c++/atomic-16.C: Remove.
2056         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
2057         * testsuite/libgomp.c++/loop-13.C: Remove.
2058         * testsuite/libgomp.c++/loop-14.C: Remove.
2059         * testsuite/libgomp.c++/loop-15.C: Remove.
2060         * testsuite/libgomp.c++/monotonic-1.C: Remove.
2061         * testsuite/libgomp.c++/monotonic-2.C: Remove.
2062         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
2063         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
2064         * testsuite/libgomp.c++/ordered-1.C: Remove.
2065         * testsuite/libgomp.c++/pr45784.C: Remove.
2066         * testsuite/libgomp.c++/pr64824.C: Remove.
2067         * testsuite/libgomp.c++/pr64868.C: Remove.
2068         * testsuite/libgomp.c++/pr66199-1.C: Remove.
2069         * testsuite/libgomp.c++/pr66199-2.C: Remove.
2070         * testsuite/libgomp.c++/pr66199-3.C: Remove.
2071         * testsuite/libgomp.c++/pr66199-4.C: Remove.
2072         * testsuite/libgomp.c++/pr66199-5.C: Remove.
2073         * testsuite/libgomp.c++/pr66199-6.C: Remove.
2074         * testsuite/libgomp.c++/pr66199-7.C: Remove.
2075         * testsuite/libgomp.c++/pr66199-8.C: Remove.
2076         * testsuite/libgomp.c++/pr66199-9.C: Remove.
2077         * testsuite/libgomp.c++/pr69389.C: Remove.
2078         * testsuite/libgomp.c++/simd10.C: Remove.
2079         * testsuite/libgomp.c++/simd11.C: Remove.
2080         * testsuite/libgomp.c++/simd12.C: Remove.
2081         * testsuite/libgomp.c++/simd13.C: Remove.
2082         * testsuite/libgomp.c++/target-1.C: Remove.
2083         * testsuite/libgomp.c++/target-3.C: Remove.
2084         * testsuite/libgomp.c++/target-4.C: Remove.
2085         * testsuite/libgomp.c++/target-5.C: Remove.
2086         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
2087         * testsuite/libgomp.c++/taskloop-1.C: Remove.
2088         * testsuite/libgomp.c++/taskloop-2.C: Remove.
2089         * testsuite/libgomp.c++/taskloop-3.C: Remove.
2090         * testsuite/libgomp.c++/taskloop-4.C: Remove.
2091         * testsuite/libgomp.c++/udr-9.C: Remove.
2092         * testsuite/libgomp.c++/for-10.C: Remove.
2093         * testsuite/libgomp.c++/for-11.C: Remove.
2094         * testsuite/libgomp.c++/for-12.C: Remove.
2095         * testsuite/libgomp.c++/for-13.C: Remove.
2096         * testsuite/libgomp.c++/for-14.C: Remove.
2097         * testsuite/libgomp.c++/for-9.C: Remove.
2098         * testsuite/libgomp.c/atomic-18.c: Move ...
2099         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
2100         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
2101         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
2102         * testsuite/libgomp.c/loop-13.c: Move ...
2103         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
2104         * testsuite/libgomp.c/loop-14.c: Move ...
2105         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
2106         * testsuite/libgomp.c/loop-15.c: Remove.
2107         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
2108         * testsuite/libgomp.c/monotonic-1.c: Move ...
2109         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
2110         * testsuite/libgomp.c/monotonic-2.c: Move ...
2111         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
2112         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
2113         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
2114         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
2115         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
2116         * testsuite/libgomp.c/ordered-4.c: Move ...
2117         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
2118         * testsuite/libgomp.c/pr45784.c: Move ...
2119         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
2120         * testsuite/libgomp.c/pr64824.c: Move ...
2121         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
2122         * testsuite/libgomp.c/pr64868.c: Move ...
2123         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
2124         * testsuite/libgomp.c/pr66199-1.c: Move ...
2125         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
2126         * testsuite/libgomp.c/pr66199-2.c: Move ...
2127         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
2128         * testsuite/libgomp.c/pr66199-3.c: Move ...
2129         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
2130         * testsuite/libgomp.c/pr66199-4.c: Move ...
2131         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
2132         * testsuite/libgomp.c/pr66199-5.c: Move ...
2133         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
2134         * testsuite/libgomp.c/pr66199-6.c: Move ...
2135         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
2136         * testsuite/libgomp.c/pr66199-7.c: Move ...
2137         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
2138         * testsuite/libgomp.c/pr66199-8.c: Move ...
2139         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
2140         * testsuite/libgomp.c/pr66199-9.c: Move ...
2141         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
2142         * testsuite/libgomp.c/pr69389.c: Move ...
2143         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
2144         * testsuite/libgomp.c/simd-14.c: Move ...
2145         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
2146         * testsuite/libgomp.c/simd-15.c: Move ...
2147         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
2148         * testsuite/libgomp.c/simd-16.c: Move ...
2149         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
2150         * testsuite/libgomp.c/simd-17.c: Move ...
2151         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
2152         * testsuite/libgomp.c/target-1.c: Move ...
2153         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
2154         * testsuite/libgomp.c/target-10.c: Move ...
2155         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
2156         * testsuite/libgomp.c/target-13.c: Move ...
2157         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
2158         * testsuite/libgomp.c/target-2.c: Move ...
2159         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
2160         * testsuite/libgomp.c/taskgroup-1.c: Move ...
2161         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
2162         * testsuite/libgomp.c/taskloop-1.c: Move ...
2163         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
2164         * testsuite/libgomp.c/taskloop-2.c: Move ...
2165         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
2166         * testsuite/libgomp.c/taskloop-3.c: Move ...
2167         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
2168         * testsuite/libgomp.c/taskloop-4.c: Move ...
2169         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
2170         * testsuite/libgomp.c/udr-1.c: Move ...
2171         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
2172         * testsuite/libgomp.c/for-1.c: Move ...
2173         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
2174         * testsuite/libgomp.c/for-1.h: Move ...
2175         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
2176         * testsuite/libgomp.c/for-2.c: Move ...
2177         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
2178         * testsuite/libgomp.c/for-2.h: Move ...
2179         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
2180         * testsuite/libgomp.c/for-3.c: Move ...
2181         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
2182         * testsuite/libgomp.c/for-4.c: Move ...
2183         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
2184         * testsuite/libgomp.c/for-5.c: Move ...
2185         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
2186         * testsuite/libgomp.c/for-6.c: Move ...
2187         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
2189 2018-05-02  Tom de Vries  <tom@codesourcery.com>
2191         PR libgomp/82428
2192         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
2193         __builtin_goacc_parlevel_{id,size}.
2194         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
2195         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
2196         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
2197         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
2198         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
2199         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
2200         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
2201         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
2202         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
2203         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
2204         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
2205         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
2206         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
2207         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
2208         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
2209         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
2210         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
2211         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
2212         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
2213         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
2214         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
2215         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
2216         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
2218 2018-05-02  Tom de Vries  <tom@codesourcery.com>
2220         PR testsuite/85106
2221         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
2223 2018-05-02  Tom de Vries  <tom@codesourcery.com>
2225         PR testsuite/85106
2226         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
2228 2018-04-29  Julian Brown  <julian@codesourcery.com>
2229             Tom de Vries  <tom@codesourcery.com>
2231         PR testsuite/85527
2232         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
2233         arbitrary order for iterations of atomic subtract check.
2235 2018-04-28  Tom de Vries  <tom@codesourcery.com>
2237         PR testsuite/85527
2238         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
2239         atomic capture results obtained in parallel loop to an array, instead of
2240         to a scalar.
2242 2018-04-26  Tom de Vries  <tom@codesourcery.com>
2244         PR libgomp/84020
2245         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
2246         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
2247         (process_GOMP_NVPTX_JIT): New function.
2248         (link_ptx): Use process_GOMP_NVPTX_JIT.
2250 2018-04-26  Richard Biener <rguenther@suse.de>
2251             Tom de Vries  <tom@codesourcery.com>
2253         PR lto/85422
2254         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
2256 2018-04-26  Tom de Vries  <tom@codesourcery.com>
2258         PR target/85519
2259         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2260         recursion depth from 25 to 23.
2261         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2263 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
2265         * configure: Regenerated.
2267 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
2268             Tom de Vries  <tom@codesourcery.com>
2270         PR target/85445
2271         * testsuite/libgomp.oacc-c++/ref-1.C: New.
2273 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
2275         PR libgomp/85463
2276         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
2277         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2278         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2279         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2280         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2281         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2283         PR libfortran/85166
2284         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
2285         abort".
2286         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2288 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
2290         * configure: Regenerated.
2292 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
2294         PR jit/85384
2295         * configure: Regenerate.
2297 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
2298             Tom de Vries  <tom@codesourcery.com>
2300         PR middle-end/84955
2301         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2302         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2304 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
2306         PR fortran/83064
2307         PR testsuite/85346
2308         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2309         test from gfortran.dg to here.
2311 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
2313         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2314         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2316 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
2318         PR middle-end/84955
2319         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2320         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2322 2018-04-05  Tom de Vries  <tom@codesourcery.com>
2324         PR target/85204
2325         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2327 2018-03-26  Tom de Vries  <tom@codesourcery.com>
2329         PR tree-optimization/85063
2330         * testsuite/libgomp.c/switch-conversion-2.c: New test.
2331         * testsuite/libgomp.c/switch-conversion.c: New test.
2332         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2333         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2335 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
2337         PR fortran/84381
2338         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2339         call abort by STOP n.
2340         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2341         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2342         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2343         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2344         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2345         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2346         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2347         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2348         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2349         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2350         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2351         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2352         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2353         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2354         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2355         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2356         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2357         * testsuite/libgomp.fortran/associate1.f90: Likewise.
2358         * testsuite/libgomp.fortran/associate2.f90: Likewise.
2359         * testsuite/libgomp.fortran/associate3.f90: Likewise.
2360         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2361         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2362         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2363         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2364         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2365         * testsuite/libgomp.fortran/character1.f90: Likewise.
2366         * testsuite/libgomp.fortran/character2.f90: Likewise.
2367         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2368         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2369         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2370         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2371         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2372         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2373         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2374         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2375         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2376         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2377         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2378         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2379         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2380         * testsuite/libgomp.fortran/do1.f90: Likewise.
2381         * testsuite/libgomp.fortran/do2.f90: Likewise.
2382         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2383         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2384         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2385         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2386         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2387         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2388         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2389         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2390         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2391         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2392         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2393         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2394         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2395         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2396         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2397         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2398         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2399         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2400         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2401         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2402         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2403         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2404         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2405         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2406         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2407         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2408         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2409         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2410         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2411         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2412         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2413         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2414         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2415         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2416         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2417         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2418         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2419         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2420         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2421         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2422         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2423         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2424         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2425         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2426         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2427         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2428         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2429         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2430         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2431         * testsuite/libgomp.fortran/lib1.f90: Likewise.
2432         * testsuite/libgomp.fortran/lib2.f: Likewise.
2433         * testsuite/libgomp.fortran/lib3.f: Likewise.
2434         * testsuite/libgomp.fortran/lib4.f90: Likewise.
2435         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2436         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2437         * testsuite/libgomp.fortran/nested1.f90: Likewise.
2438         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2439         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2440         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2441         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2442         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2443         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2444         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2445         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2446         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2447         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2448         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2449         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2450         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2451         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2452         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2453         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2454         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2455         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2456         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2457         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2458         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2459         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2460         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2461         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2462         * testsuite/libgomp.fortran/pr25162.f: Likewise.
2463         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2464         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2465         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2466         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2467         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2468         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2469         * testsuite/libgomp.fortran/pr28390.f: Likewise.
2470         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2471         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
2472         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
2473         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
2474         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
2475         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
2476         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
2477         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
2478         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
2479         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
2480         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
2481         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
2482         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
2483         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
2484         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
2485         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
2486         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
2487         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
2488         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
2489         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
2490         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
2491         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
2492         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
2493         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
2494         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
2495         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2496         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
2497         * testsuite/libgomp.fortran/reference1.f90: Likewise.
2498         * testsuite/libgomp.fortran/reference2.f90: Likewise.
2499         * testsuite/libgomp.fortran/retval1.f90: Likewise.
2500         * testsuite/libgomp.fortran/retval2.f90: Likewise.
2501         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
2502         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
2503         * testsuite/libgomp.fortran/simd1.f90: Likewise.
2504         * testsuite/libgomp.fortran/simd2.f90: Likewise.
2505         * testsuite/libgomp.fortran/simd3.f90: Likewise.
2506         * testsuite/libgomp.fortran/simd4.f90: Likewise.
2507         * testsuite/libgomp.fortran/simd5.f90: Likewise.
2508         * testsuite/libgomp.fortran/simd6.f90: Likewise.
2509         * testsuite/libgomp.fortran/simd7.f90: Likewise.
2510         * testsuite/libgomp.fortran/stack.f90: Likewise.
2511         * testsuite/libgomp.fortran/strassen.f90: Likewise.
2512         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
2513         * testsuite/libgomp.fortran/tabs2.f: Likewise.
2514         * testsuite/libgomp.fortran/target1.f90: Likewise.
2515         * testsuite/libgomp.fortran/target2.f90: Likewise.
2516         * testsuite/libgomp.fortran/target3.f90: Likewise.
2517         * testsuite/libgomp.fortran/target4.f90: Likewise.
2518         * testsuite/libgomp.fortran/target5.f90: Likewise.
2519         * testsuite/libgomp.fortran/target6.f90: Likewise.
2520         * testsuite/libgomp.fortran/target7.f90: Likewise.
2521         * testsuite/libgomp.fortran/target8.f90: Likewise.
2522         * testsuite/libgomp.fortran/task1.f90: Likewise.
2523         * testsuite/libgomp.fortran/task2.f90: Likewise.
2524         * testsuite/libgomp.fortran/task3.f90: Likewise.
2525         * testsuite/libgomp.fortran/task4.f90: Likewise.
2526         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
2527         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
2528         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
2529         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
2530         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
2531         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2532         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2533         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2534         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
2535         * testsuite/libgomp.fortran/udr1.f90: Likewise.
2536         * testsuite/libgomp.fortran/udr10.f90: Likewise.
2537         * testsuite/libgomp.fortran/udr11.f90: Likewise.
2538         * testsuite/libgomp.fortran/udr12.f90: Likewise.
2539         * testsuite/libgomp.fortran/udr13.f90: Likewise.
2540         * testsuite/libgomp.fortran/udr14.f90: Likewise.
2541         * testsuite/libgomp.fortran/udr15.f90: Likewise.
2542         * testsuite/libgomp.fortran/udr2.f90: Likewise.
2543         * testsuite/libgomp.fortran/udr3.f90: Likewise.
2544         * testsuite/libgomp.fortran/udr4.f90: Likewise.
2545         * testsuite/libgomp.fortran/udr5.f90: Likewise.
2546         * testsuite/libgomp.fortran/udr6.f90: Likewise.
2547         * testsuite/libgomp.fortran/udr7.f90: Likewise.
2548         * testsuite/libgomp.fortran/udr8.f90: Likewise.
2549         * testsuite/libgomp.fortran/udr9.f90: Likewise.
2550         * testsuite/libgomp.fortran/vla1.f90: Likewise.
2551         * testsuite/libgomp.fortran/vla2.f90: Likewise.
2552         * testsuite/libgomp.fortran/vla3.f90: Likewise.
2553         * testsuite/libgomp.fortran/vla4.f90: Likewise.
2554         * testsuite/libgomp.fortran/vla5.f90: Likewise.
2555         * testsuite/libgomp.fortran/vla6.f90: Likewise.
2556         * testsuite/libgomp.fortran/vla7.f90: Likewise.
2557         * testsuite/libgomp.fortran/vla8.f90: Likewise.
2558         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
2559         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
2560         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2561         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2562         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2563         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2564         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2565         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2566         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2567         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2568         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2569         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
2570         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2571         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
2572         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
2573         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2574         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2575         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2576         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2577         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2578         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2579         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2580         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2581         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
2582         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
2583         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2584         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2585         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2586         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2587         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2588         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2589         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2590         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2591         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2592         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2593         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2594         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2595         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2596         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2597         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2598         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2599         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2600         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2601         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2602         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2603         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2604         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2605         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2606         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2607         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2608         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2609         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2610         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2611         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2612         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2613         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2614         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2615         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2616         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2617         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2618         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2619         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2620         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2621         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2622         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2623         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2624         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2625         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2626         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2627         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2628         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2629         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2630         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2631         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2632         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2633         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2634         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2635         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2636         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2637         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2638         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2639         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2640         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2641         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2642         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2643         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2644         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2645         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2646         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2647         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2648         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2649         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2650         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2651         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2653 2018-03-20  Richard Biener  <rguenther@suse.de>
2655         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2656         parallelizable loop.
2658 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2660         PR target/84148
2661         * configure: Regenerate.
2663 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
2665         PR fortran/84418
2666         * libgomp.fortran/pr84418-1.f90: New test.
2667         * libgomp.fortran/pr84418-2.f90: New test.
2669 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
2671         PR fortran/84313
2672         * testsuite/libgomp.fortran/threadprivate4.f90: Add
2673         -std=f2003 -fall-intrinsics into dg-additional-options.
2675 2018-02-08  Martin Jambor  <mjambor@suse.cz>
2677         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2678         clonable.
2680 2018-02-08  Martin Jambor  <mjambor@suse.cz>
2682         * testsuite/libgomp.hsa.c/staticvar.c: New test.
2684 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2686         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2687         [__cplusplus]: Declare extern "C".
2689 2018-02-07  Tom de Vries  <tom@codesourcery.com>
2691         PR libgomp/84217
2692         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2694 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
2695             Jakub Jelinek  <jakub@redhat.com>
2697         PR libgomp/84096
2698         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2699         instead of omp_lock_t.
2701 2018-01-25  Tom de Vries  <tom@codesourcery.com>
2703         PR target/84028
2704         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2706 2018-01-24  Tom de Vries  <tom@codesourcery.com>
2708         PR target/83589
2709         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2711 2018-01-24  Tom de Vries  <tom@codesourcery.com>
2713         PR target/81352
2714         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2716 2018-01-19  Tom de Vries  <tom@codesourcery.com>
2717             Cesar Philippidis  <cesar@codesourcery.com>
2719         PR target/83920
2720         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2721         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2723 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
2725         Update copyright years.
2727         * libgomp.texi: Bump @copying's copyright year.
2729 2017-12-30  Tom de Vries  <tom@codesourcery.com>
2731         PR libgomp/83046
2732         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2733         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2735 2017-12-27  Tom de Vries  <tom@codesourcery.com>
2737         PR c++/83046
2738         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2739         (test_nonstatic): Fix return type to workaround PR83046.
2741 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
2743         PR testsuite/83281
2744         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2745         j suffix instead of i.
2746         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2747         Likewise.
2749 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
2751         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2752         call to acc_wait (1).
2754 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
2756         PR fortran/81304
2757         * testsuite/libgomp.fortran/pr81304.f90: New test.
2759 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
2761         PR fortran/81841
2762         * libgomp.fortran/pr81841.f90: New test.
2764 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
2766         PR libgomp/83106
2767         * target.c (gomp_target_init): Compute lengths just once and
2768         use them in both malloc size and subsequent copying.
2770 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2772         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2773         * acinclude.m4: Add cet.m4.
2774         * configure: Regenerate.
2775         * Makefile.in: Likewise.
2776         * testsuite/Makefile.in: Likewise.
2778 2017-11-15  Tom de Vries  <tom@codesourcery.com>
2780         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2781         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
2782         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2783         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
2784         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2785         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
2787 2017-11-14  Tom de Vries  <tom@codesourcery.com>
2789         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2790         non-nvidia devices.
2792 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
2794         PR c++/82835
2795         * testsuite/libgomp.c++/pr82835.C: New test.
2797 2017-11-06  Martin Liska  <mliska@suse.cz>
2799         * testsuite/libgomp.c++/loop-2.C: Return a value
2800         for functions with non-void return type, or change type to void,
2801         or add -Wno-return-type for test.
2802         * testsuite/libgomp.c++/loop-4.C: Likewise.
2803         * testsuite/libgomp.c++/parallel-1.C: Likewise.
2804         * testsuite/libgomp.c++/shared-1.C: Likewise.
2805         * testsuite/libgomp.c++/single-1.C: Likewise.
2806         * testsuite/libgomp.c++/single-2.C: Likewise.
2808 2017-10-31  Tom de Vries  <tom@codesourcery.com>
2810         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2811         "do {} while (false)".
2812         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2813         after HSA_DEBUG call.
2815 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
2817         * target.c (struct gomp_coalesce_buf): New type.
2818         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2819         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2820         (gomp_copy_host2dev): Add CBUF argument, if copying into
2821         the cached ranges, memcpy into buffer instead of copying
2822         into device.
2823         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2824         Add CBUF argument, pass it through to other calls.
2825         (gomp_map_vars): Aggregate copies from host to device if small enough
2826         and with small enough gaps in between into memcpy into a buffer and
2827         fewer host to device copies from the buffer.
2828         (gomp_update): Adjust gomp_copy_host2dev caller.
2830 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2832         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2833         run" directive.
2834         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2835         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2836         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2837         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2839 2017-10-16  Tom de Vries  <tom@codesourcery.com>
2841         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2842         openacc_nvidia_accel_selected.
2843         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2844         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2845         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2846         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2847         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2848         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2849         openacc_nvidia_accel_selected. Skip for shared memory device.
2850         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2851         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2853 2017-10-09  Martin Jambor  <mjambor@suse.cz>
2855         PR hsa/82416
2856         * testsuite/libgomp.hsa.c/pr82416.c: New test.
2858 2017-10-07  Tom de Vries  <tom@codesourcery.com>
2860         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2861         Remove acc_device_nvidia references.
2862         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2863         Same.
2865 2017-10-05  Tom de Vries  <tom@codesourcery.com>
2867         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2868         vector_length(32) clause from acc parallel directive.
2869         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2871 2017-10-04  Tom de Vries  <tom@codesourcery.com>
2873         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2874         (main): Reduce sum of arr elements.  Assert that hres is exactly
2875         representable in 32-bit floating point.
2876         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2877         (main): Reduce sum of arr elements.  Assert that hres and hmres are
2878         exactly representable in 32-bit floating point.
2879         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2881 2017-09-28  Tom de Vries  <tom@codesourcery.com>
2883         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2884         setting.
2885         * testsuite/libgomp.c++/pr69393.C: Same.
2886         * testsuite/libgomp.c++/taskloop-1.C: Same.
2887         * testsuite/libgomp.c++/taskloop-3.C: Same.
2888         * testsuite/libgomp.c++/taskloop-4.C: Same.
2889         * testsuite/libgomp.c/for-4.c: Same.
2890         * testsuite/libgomp.c/pr66199-3.c: Same.
2891         * testsuite/libgomp.c/pr66199-4.c: Same.
2892         * testsuite/libgomp.c/pr66199-6.c: Same.
2893         * testsuite/libgomp.c/taskloop-1.c: Same.
2894         * testsuite/libgomp.c/taskloop-3.c: Same.
2895         * testsuite/libgomp.c/taskloop-4.c: Same.
2896         * testsuite/libgomp.fortran/aligned1.f03: Same.
2897         * testsuite/libgomp.fortran/condinc1.f: Same.
2898         * testsuite/libgomp.fortran/condinc3.f90: Same.
2899         * testsuite/libgomp.fortran/crayptr1.f90: Same.
2900         * testsuite/libgomp.fortran/crayptr2.f90: Same.
2901         * testsuite/libgomp.fortran/crayptr3.f90: Same.
2902         * testsuite/libgomp.fortran/omp_cond1.f: Same.
2903         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2904         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2905         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2906         * testsuite/libgomp.fortran/recursion1.f90: Same.
2907         * testsuite/libgomp.fortran/target2.f90: Same.
2908         * testsuite/libgomp.fortran/target5.f90: Same.
2909         * testsuite/libgomp.fortran/task3.f90: Same.
2911 2017-09-28  Tom de Vries  <tom@codesourcery.com>
2913         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2914         vector_length(32) clause from acc parallel directive.
2915         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2917 2017-09-27  Tom de Vries  <tom@codesourcery.com>
2919         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2920         Remove acc_device_nvidia references.
2922 2017-09-16  Tom de Vries  <tom@codesourcery.com>
2924         PR c/81875
2925         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2927 2017-09-14  Tom de Vries  <tom@codesourcery.com>
2929         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2930         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2931         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2932         * testsuite/libgomp.c/c.exp: Include test-cases from
2933         libgomp.c-c++-common.
2934         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
2935         files.
2937 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
2939         PR c++/81314
2940         * testsuite/libgomp.c++/pr81314.C: New test.
2942 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
2944         * libgomp.texi (Top): www.openacc.org now uses https.
2945         (Enabling OpenACC): Ditto.
2946         (acc_get_num_devices): Ditto.
2947         (acc_set_device_type): Ditto.
2948         (acc_get_device_type): Ditto.
2949         (acc_set_device_num): Ditto.
2950         (acc_get_device_num): Ditto.
2951         (acc_async_test): Ditto.
2952         (acc_async_test_all): Ditto.
2953         (acc_wait): Ditto.
2954         (acc_wait_all): Ditto.
2955         (acc_wait_all_async): Ditto.
2956         (acc_wait_async): Ditto.
2957         (acc_init): Ditto.
2958         (acc_shutdown): Ditto.
2959         (acc_on_device): Ditto.
2960         (acc_malloc): Ditto.
2961         (acc_free): Ditto.
2962         (acc_copyin): Ditto.
2963         (acc_present_or_copyin): Ditto.
2964         (acc_create): Ditto.
2965         (acc_present_or_create): Ditto.
2966         (acc_copyout): Ditto.
2967         (acc_delete): Ditto.
2968         (acc_update_device): Ditto.
2969         (acc_update_self): Ditto.
2970         (acc_map_data): Ditto.
2971         (acc_unmap_data): Ditto.
2972         (acc_deviceptr): Ditto.
2973         (acc_hostptr): Ditto.
2974         (acc_is_present): Ditto.
2975         (acc_memcpy_to_device): Ditto.
2976         (acc_memcpy_from_device): Ditto.
2977         (acc_get_current_cuda_device): Ditto.
2978         (acc_get_current_cuda_context): Ditto.
2979         (acc_get_cuda_stream): Ditto.
2980         (acc_set_cuda_stream): Ditto.
2981         (ACC_DEVICE_TYPE): Ditto.
2982         (ACC_DEVICE_NUM): Ditto.
2983         (OpenACC Library Interoperability): Ditto.
2985 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
2987         PR c/81687
2988         * testsuite/libgomp.c/pr81687-1.c: New test.
2989         * testsuite/libgomp.c/pr81687-2.c: New test.
2991 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
2993         PR c/69389
2994         * testsuite/libgomp.c/pr69389.c: New test.
2995         * testsuite/libgomp.c++/pr69389.C: New test.
2997 2017-08-07  Tom de Vries  <tom@codesourcery.com>
2999         PR middle-end/78266
3000         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
3001         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
3003 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
3005         PR c/45784
3006         * testsuite/libgomp.c/pr45784.c: New test.
3007         * testsuite/libgomp.c++/pr45784.C: New test.
3009 2017-07-19  Tom de Vries  <tom@codesourcery.com>
3011         * testsuite/libgomp.oacc-c/vec.c: New test.
3013 2017-07-03  Tom de Vries  <tom@codesourcery.com>
3015         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
3017 2017-06-27  Tom de Vries  <tom@codesourcery.com>
3019         * plugin/plugin-nvptx.c (notify_var): New function.
3020         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
3022 2017-06-27  Tom de Vries  <tom@codesourcery.com>
3024         * env.c (parse_unsigned_long_1): Factor out of ...
3025         (parse_unsigned_long): ... here.
3026         (parse_int_1): Factor out of ...
3027         (parse_int): ... here.
3028         (parse_int_secure): New function.
3029         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
3030         * secure_getenv.h: Factor out of ...
3031         * plugin/plugin-hsa.c: ... here.
3032         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
3034 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
3036         PR c++/81130
3037         * testsuite/libgomp.c++/pr81130.C: New test.
3039 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3041         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
3042         default args.
3043         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
3044         dg-xfail-run-if default args.
3046 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3048         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
3049         * testsuite/libgomp.c/pr39591-3.c: Likewise.
3051 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
3053         PR libgomp/80822
3054         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
3055         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
3056         sibling lists, depending on level just pick up what CPUs to put
3057         together into a place vs. whether add multiple ordered places.
3059 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
3061         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
3062         * libgomp.map (OACC_2.0.1): Add these.
3063         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
3064         for "acc_wait", and "acc_wait_all", respectively.
3065         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
3066         for "acc_wait", and "acc_wait_all", respectively.
3067         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
3068         * libgomp.texi (acc_wait, acc_wait_all): Update.
3069         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
3070         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
3071         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3073         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
3074         acc_present_or_copyin and acc_present_or_create procedures,
3075         respectively.
3076         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
3077         generally different variants of OpenACC Runtime Library functions.
3078         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3080         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
3081         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3083         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
3084         of preprocessor definitions.
3085         * libgomp.h (strong_alias): Guard by "#ifdef
3086         HAVE_ATTRIBUTE_ALIAS".
3087         * oacc-mem.c: Provide "acc_pcreate" as alias for
3088         "acc_present_or_create", and "acc_pcopyin" as alias for
3089         "acc_present_or_copyin".
3090         * libgomp.map: New version "OACC_2.0.1".
3091         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
3092         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
3093         its content into...
3094         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
3095         Extend testing.
3097         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
3098         when disabling nvptx offloading.
3100 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
3102         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
3103         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3104         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3106         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
3107         * testsuite/lib/libgomp.exp
3108         (check_effective_target_openacc_nvidia_accel_configured): New
3109         proc.
3110         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
3111         (check_effective_target_c++): New procs.
3112         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
3113         (check_effective_target_c++): Likewise.
3115 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
3117         PR middle-end/80809
3118         * testsuite/libgomp.c/pr80809-2.c: New test.
3119         * testsuite/libgomp.c/pr80809-3.c: New test.
3121         PR middle-end/80809
3122         * testsuite/libgomp.c/pr80809-1.c: New test.
3124         PR middle-end/80853
3125         * testsuite/libgomp.c/pr80853.c: New test.
3127 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
3129         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
3130         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
3131         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3132         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3133         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3135         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
3136         Debug output for failure.
3138 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3140         * testsuite/lib/libgomp.exp: Load scanlang.exp.
3142 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
3144         PR bootstrap/80531
3145         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
3146         bootstrap compare failures.
3148 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
3150         * testsuite/libgomp.c/target-36.c: New testcase.
3152 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
3154         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
3155         instead of char.
3157 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
3159         PR libgomp/80394
3160         * testsuite/libgomp.c/pr80394.c: New test.
3162 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
3164         PR libgomp/79876
3165         * config/posix/thread-stacksize.h: New file.
3166         * config/darwin/thread-stacksize.h: New file.
3167         * config/nvptx/thread-stacksize.h: New file.
3168         * env.c: Include thread-stacksize.h.
3169         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
3170         instead of 0.  Call pthread_attr_setstacksize even if
3171         GOMP_DEFAULT_STACKSIZE is non-zero.
3173 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
3175         * env.c (initialize_env): Initialize stacksize to 0.
3177 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
3179         PR c++/80029
3180         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
3182 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
3184         PR c/79940
3185         * testsuite/libgomp.c/pr79940.c: New test.
3187 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3189         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
3190         targets.
3191         Add __float128 options.
3193 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
3195         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
3196         hppa*-*-* dg-skip-if directive.
3198 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
3200         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
3201         dg-skip-if directive into a comment.
3203 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
3204             Chung-Lin Tang  <cltang@codesourcery.com>
3206         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
3207         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
3208         add additional case.
3209         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
3210         "openacc_nvidia_accel_selected".
3211         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
3212         Add num_workers(8) clause.
3214 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
3216         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
3217         hppa*-*-*.
3218         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
3219         include complex.h on hppa*-*-hpux*.
3220         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3222 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
3224         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
3226         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
3227         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
3228         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
3229         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
3230         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
3231         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
3232         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
3233         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
3234         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
3235         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
3237 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
3239         * libgomp-plugin.h: #include <stdbool.h>.
3240         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
3241         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
3242         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
3243         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
3244         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
3245         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
3246         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
3247         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
3248         (GOMP_OFFLOAD_openacc_register_async_cleanup)
3249         (GOMP_OFFLOAD_openacc_async_test)
3250         (GOMP_OFFLOAD_openacc_async_test_all)
3251         (GOMP_OFFLOAD_openacc_async_wait)
3252         (GOMP_OFFLOAD_openacc_async_wait_async)
3253         (GOMP_OFFLOAD_openacc_async_wait_all)
3254         (GOMP_OFFLOAD_openacc_async_wait_all_async)
3255         (GOMP_OFFLOAD_openacc_async_set_async)
3256         (GOMP_OFFLOAD_openacc_create_thread_data)
3257         (GOMP_OFFLOAD_openacc_destroy_thread_data)
3258         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
3259         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
3260         (GOMP_OFFLOAD_openacc_get_cuda_stream)
3261         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
3262         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
3263         these.
3264         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
3265         (GOMP_OFFLOAD_unload_image): Fix argument types.
3267 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3269         * testsuite/lib/libgomp.exp
3270         (check_effective_target_hsa_offloading_selected_nocache): Fix up
3271         check_compile invocation.  Fix up removal of executable.  Drop
3272         bogus "2>&1" argument.
3274         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
3275         directive.
3277 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
3278             Martin Jambor  <mjambor@suse.cz>
3280         * plugin/hsa.h: Moved to top level include.
3281         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
3283 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
3285         PR other/79046
3286         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
3287         of cat to get version from BASE-VER file.
3288         * testsuite/Makefile.in: Regenerated.
3290 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
3292         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3293         for _WIN64.
3295 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
3297         * plugin/hsa.h: Add GCC runtime library exception.
3298         * plugin/hsa_ext_finalize.h: Likewise.
3300         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3301         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
3302         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3303         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3304         plugin/include/cuda as include dir and -ldl instead of -lcuda as
3305         library to link ptx plugin against.
3306         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3307         (CUDA_CALLS): Define.
3308         (cuda_lib, cuda_lib_inited): New variables.
3309         (init_cuda_lib): New function.
3310         (CUDA_CALL_PREFIX): Define.
3311         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3312         (CUDA_CALL): Use FN instead of (FN).
3313         (CUDA_CALL_NOCHECK): Define.
3314         (cuda_error, fini_streams_for_device, select_stream_for_async,
3315         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3316         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3317         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3318         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3319         CUDA_CALL_NOCHECK.
3320         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
3321         CUDA_CALL_NOCHECK.
3322         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3323         Use CUDA_CALL_NOCHECK.
3324         * plugin/cuda/cuda.h: New file.
3325         * config.h.in: Regenerated.
3326         * configure: Regenerated.
3328         PR other/79046
3329         * configure.ac: Add GCC_BASE_VER.
3330         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3331         get version from BASE-VER file.
3332         * testsuite/Makefile.in: Regenerated.
3333         * configure: Regenerated.
3334         * Makefile.in: Regenerated.
3336 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3338         PR libgomp/60670
3339         * Makefile.am: Make fincludedir multilib-aware.
3340         * Makefile.in: Regenerate.
3342 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
3344         Update copyright years.
3346         * libgomp.texi: Bump @copying's copyright year.
3348 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3350         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3351         pthread_spinlock_t instead of gomp_mutex_t lock.
3352         (gomp_get_thread_pool): Likewise.
3353         (gomp_release_thread_pool): Likewise.
3354         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3355         Likewise.
3357 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3359         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3360         thread pool in case nthreads == 1.
3362 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
3364         * config/nvptx/env.c: Delete.
3365         * icv.c: Move definitions of ICV variables back ...
3366         * env.c: ...here.  Do not compile environment-related functionality if
3367         LIBGOMP_OFFLOADED_ONLY is set.
3369 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
3371         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3372         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3373         * configure: Regenerate.
3374         * config.h.in: Likewise.
3376 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
3378         * Makefile.in: Regenerate with automake-1.11.6.
3379         * aclocal.m4: Likewise.
3380         * configure: Likewise.
3381         * testsuite/Makefile.in: Likewise.
3383 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
3385         * config/nvptx/critical.c: Delete to use generic implementation.
3387 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
3389         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3390         ../../affinity.c as fallback.
3391         * config/nvptx/affinity.c: Delete to use fallback implementation.
3393 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
3394             Jakub Jelinek  <jakub@redhat.com>
3395             Dmitry Melnik  <dm@ispras.ru>
3397         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3398         * Makefile.in. Regenerate.
3399         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3400         (LIBGOMP_USE_PTHREADS): ...here; new define.
3401         * configure: Regenerate.
3402         * config.h.in: Likewise.
3403         * config/posix/affinity.c: Move to...
3404         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
3405         interface by LIBGOMP_USE_PTHREADS. 
3406         * critical.c: Split out GOMP_atomic_{start,end} into...
3407         * atomic.c: ...here (new file).
3408         * env.c: Split out ICV definitions into...
3409         * icv.c: ...here (new file) and...
3410         * icv-device.c: ...here. New file.
3411         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3412         (gomp_destroy_lock_30): Ditto.
3413         (gomp_set_lock_30): Ditto.
3414         (gomp_unset_lock_30): Ditto.
3415         (gomp_test_lock_30): Ditto.
3416         (gomp_init_nest_lock_30): Ditto.
3417         (gomp_destroy_nest_lock_30): Ditto.
3418         (gomp_set_nest_lock_30): Ditto.
3419         (gomp_unset_nest_lock_30): Ditto.
3420         (gomp_test_nest_lock_30): Ditto.
3421         * lock.c: New.
3422         * config/nvptx/lock.c: New.
3423         * config/nvptx/bar.c: New.
3424         * config/nvptx/bar.h: New.
3425         * config/nvptx/doacross.h: New.
3426         * config/nvptx/error.c: New.
3427         * config/nvptx/icv-device.c: New.
3428         * config/nvptx/mutex.h: New.
3429         * config/nvptx/pool.h: New.
3430         * config/nvptx/proc.c: New.
3431         * config/nvptx/ptrlock.h: New.
3432         * config/nvptx/sem.h: New.
3433         * config/nvptx/simple-bar.h: New.
3434         * config/nvptx/target.c: New.
3435         * config/nvptx/task.c: New.
3436         * config/nvptx/team.c: New.
3437         * config/nvptx/time.c: New.
3438         * config/posix/simple-bar.h: New.
3439         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
3440         (gomp_num_teams_var): Declare.
3441         (struct gomp_thread_pool): Change threads_dock member to
3442         gomp_simple_barrier_t.
3443         [__nvptx__] (gomp_thread): New implementation.
3444         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3445         (gomp_thread_destructor): Ditto.
3446         (gomp_init_thread_affinity): Ditto.
3447         * team.c: Guard uses of Pthreads-specific interfaces by
3448         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
3449         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3450         * config/nvptx/alloc.c: Delete.
3451         * config/nvptx/barrier.c: Ditto.
3452         * config/nvptx/fortran.c: Ditto.
3453         * config/nvptx/iter.c: Ditto.
3454         * config/nvptx/iter_ull.c: Ditto.
3455         * config/nvptx/loop.c: Ditto.
3456         * config/nvptx/loop_ull.c: Ditto.
3457         * config/nvptx/ordered.c: Ditto.
3458         * config/nvptx/parallel.c: Ditto.
3459         * config/nvptx/priority_queue.c: Ditto.
3460         * config/nvptx/sections.c: Ditto.
3461         * config/nvptx/single.c: Ditto.
3462         * config/nvptx/splay-tree.c: Ditto.
3463         * config/nvptx/work.c: Ditto.
3464         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3465         -foffload=-lgfortran in addition to -lgfortran.
3466         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3467         * plugin/plugin-nvptx.c: Include <limits.h>.
3468         (struct targ_fn_descriptor): Add new fields.
3469         (struct ptx_device): Ditto.  Set them...
3470         (nvptx_open_device): ...here.
3471         (nvptx_adjust_launch_bounds): New.
3472         (nvptx_host2dev): Allow NULL 'nvthd'.
3473         (nvptx_dev2host): Ditto.
3474         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
3475         (link_ptx): Adjust log sizes.
3476         (nvptx_host2dev): Allow NULL 'nvthd'.
3477         (nvptx_dev2host): Ditto.
3478         (nvptx_set_clocktick): New.  Use it...
3479         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
3480         fields.
3481         (GOMP_OFFLOAD_dev2dev): New.
3482         (nvptx_adjust_launch_bounds): New.
3483         (nvptx_stacks_size): New.
3484         (nvptx_stacks_alloc): New.
3485         (nvptx_stacks_free): New.
3486         (GOMP_OFFLOAD_run): New.
3487         (GOMP_OFFLOAD_async_run): New (stub).
3489 2016-11-23  Martin Jambor  <mjambor@suse.cz>
3491         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
3492         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
3493         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3495 2016-11-23  Martin Liska  <mliska@suse.cz>
3496             Martin Jambor  <mjambor@suse.cz>
3498         * plugin/hsa.h: New file.
3499         * plugin/hsa_ext_finalize.h: New file.
3500         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
3501         header file unistd.h, and functions secure_getenv, __secure_getenv,
3502         getuid, geteuid, getgid and getegid.
3503         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
3504         -D_GNU_SOURCE.
3505         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
3506         Handle various cases of secure_getenv presence, add an implementation
3507         when we can test effective UID and GID.
3508         (struct hsa_runtime_fn_info): New structure.
3509         (hsa_runtime_fn_info hsa_fns): New variable.
3510         (hsa_runtime_lib): Likewise.
3511         (support_cpu_devices): Likewise.
3512         (init_enviroment_variables): Load newly introduced ENV
3513         variables.
3514         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
3515         (hsa_fatal): Likewise.
3516         (DLSYM_FN): New macro.
3517         (init_hsa_runtime_functions): New function.
3518         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
3519         structure.  Depending on environment, also allow CPU devices.
3520         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
3521         (get_kernarg_memory_region): Likewise.
3522         (GOMP_OFFLOAD_init_device): Likewise.
3523         (destroy_hsa_program): Likewise.
3524         (init_basic_kernel_info): New function.
3525         (GOMP_OFFLOAD_load_image): Use it.
3526         (create_and_finalize_hsa_program): Call hsa run-time functions via
3527         hsa_fns structure.
3528         (create_single_kernel_dispatch): Likewise.
3529         (release_kernel_dispatch): Likewise.
3530         (init_single_kernel): Likewise.
3531         (parse_target_attributes): Allow up multiple HSA grid dimensions.
3532         (get_group_size): New function.
3533         (run_kernel): Likewise.
3534         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
3535         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
3536         structure.
3537         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
3538         * testsuite/libgomp-test-support.exp.in: Likewise.
3539         * Makefile.in: Regenerated.
3540         * aclocal.m4: Likewise.
3541         * config.h.in: Likewise.
3542         * configure: Likewise.
3543         * testsuite/Makefile.in: Likewise.
3545 2016-11-15  Martin Jambor  <mjambor@suse.cz>
3546             Alexander Monakov  <amonakov@ispras.ru>
3548         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
3549         mapping clauses to target constructs.
3550         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
3552 2016-11-15  Matthias Klose  <doko@ubuntu.com>
3554         * configure: Regenerate.
3556 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
3558         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
3559         * omp_lib.h.in (openmp_version): Likewise.
3560         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
3561         of 201307.
3562         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3564         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
3565         (fib_wrapper): Add map(from: x) clause.
3566         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
3567         (e_53_2): Likewise.
3568         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
3569         (accum): Add map(tmp) clause.
3570         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
3571         (accum): Add map(tofrom: tmp) clause.
3572         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
3573         (gramSchmidt): Likewise.
3574         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
3575         map(tofrom: sum) clause.
3576         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
3577         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
3578         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
3579         only allowed on the loop iterator.
3580         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
3581         * testsuite/libgomp.fortran/taskloop2.f90: New test.
3582         * testsuite/libgomp.fortran/taskloop4.f90: New test.
3583         * testsuite/libgomp.fortran/doacross1.f90: New test.
3584         * testsuite/libgomp.fortran/doacross3.f90: New test.
3585         * testsuite/libgomp.fortran/taskloop1.f90: New test.
3586         * testsuite/libgomp.fortran/taskloop3.f90: New test.
3587         * testsuite/libgomp.fortran/doacross2.f90: New test.
3588         * testsuite/libgomp.c/doacross-1.c (main): Add missing
3589         #pragma omp atomic read.
3590         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3591         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
3593 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
3594             Nathan Sidwell  <nathan@acm.org>
3596         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3597         to determine default geometry.
3598         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3599         dimension.
3601 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
3603         * hashtab.h: Use standard GPLv3 with runtime exception
3604         boilerplate.
3606 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
3608         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3609         size when allocating new thread.
3611 2016-09-14  Marek Polacek  <polacek@redhat.com>
3613         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3615 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
3617         PR fortran/71014
3618         * testsuite/libgomp.fortran/pr71014.f90: New test.
3620 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
3622         PR middle-end/70895
3623         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3624         firstprivate clauses.
3625         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3626         copy clauses.
3627         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3628         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3629         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3630         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3631         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3632         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3633         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3634         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3635         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3636         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3637         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3638         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3640 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
3642         PR fortran/70598
3643         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3645 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
3647         PR c++/58706
3648         * testsuite/libgomp.c++/pr58706.C: New test.
3650 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
3652         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3653         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3654         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3655         Likewise.
3656         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3657         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3658         Likewise.
3659         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3661         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3662         test, and don't hardcode -O0.
3664 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
3666         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3668 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
3670         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3671         test.
3673 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3675         PR middle-end/71734
3676         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3677         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3679 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
3681         PR fortran/71717
3682         * testsuite/libgomp.fortran/associate3.f90: New test.
3684 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
3686         * testsuite/libgomp.c++/target-21.C: New test.
3688 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3690         * testsuite/libgomp.c++/target-20.C: New test.
3692 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3693             Cesar Philippidis  <cesar@codesourcery.com>
3695         PR middle-end/71373
3696         * libgomp.oacc-c/nested-function-1.c: New file.
3697         * libgomp.oacc-c/nested-function-2.c: Likewise.
3698         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3699         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3700         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3702 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3704         PR c/71381
3705         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3706         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3707         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3709 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
3711         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3712         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3714 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
3716         PR c/70688
3717         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3719 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
3721         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3722         instead of invalid schedule(static, 0).
3723         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3725 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
3727         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3728         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3729         parameter, use to set async stream around call to gomp_unmap_vars,
3730         call gomp_unmap_vars() with 'do_copyfrom' set to true.
3731         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3732         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3733         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3734         (event_add): Add int parameter, initialize 'val' field when
3735         adding new ptx_event struct.
3736         (nvptx_evec): Adjust event_add() call arguments.
3737         (nvptx_host2dev): Likewise.
3738         (nvptx_dev2host): Likewise.
3739         (nvptx_wait_async): Likewise.
3740         (nvptx_wait_all_async): Likewise.
3741         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3742         pass to event_add() call.
3743         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3744         parameter.
3745         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3746         call openacc.register_async_cleanup_func() hook.
3747         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3748         * target.c (gomp_copy_from_async): Delete function.
3749         (gomp_map_vars): Remove async_refcount.
3750         (gomp_unmap_vars): Likewise.
3751         (gomp_load_image_to_device): Likewise.
3752         (omp_target_associate_ptr): Likewise.
3753         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3754         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3755         (gomp_copy_from_async): Remove.
3757 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
3759         * target.c (gomp_device_copy): New function.
3760         (gomp_copy_host2dev): Likewise.
3761         (gomp_copy_dev2host): Likewise.
3762         (gomp_free_device_memory): Likewise.
3763         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3764         (gomp_map_pointer): Likewise.
3765         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3766         NULL value from alloc_func plugin hook.
3767         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3768         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3769         (gomp_unmap_vars): Likewise.
3770         (gomp_update): Adjust to call gomp_copy_dev2host and
3771         gomp_copy_host2dev functions.
3772         (gomp_unload_image_from_device): Handle false value from
3773         unload_image_func plugin hook.
3774         (gomp_init_device): Handle false value from init_device_func
3775         plugin hook.
3776         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3777         (omp_target_free): Adjust to call gomp_free_device_memory.
3778         (omp_target_memcpy): Handle return values from host2dev_func,
3779         dev2host_func, and dev2dev_func plugin hooks.
3780         (omp_target_memcpy_rect_worker): Likewise.
3781         (gomp_target_fini): Handle false value from fini_device_func
3782         plugin hook.
3783         * libgomp.h (struct gomp_device_descr): Adjust return type of
3784         init_device_func, fini_device_func, unload_image_func, free_func,
3785         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3786         * oacc-init.c (acc_shutdown_1): Handle false value from
3787         fini_device_func plugin hook.
3788         * oacc-host.c (host_init_device): Change return type to bool.
3789         (host_fini_device): Likewise.
3790         (host_unload_image): Likewise.
3791         (host_free): Likewise.
3792         (host_dev2host): Likewise.
3793         (host_host2dev): Likewise.
3794         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3795         (acc_memcpy_to_device): Likewise.
3796         (acc_memcpy_from_device): Likewise.
3797         (delete_copyout): Add libfnname parameter, handle free_func
3798         hook fatal error case.
3799         (acc_delete): Adjust delete_copyout call.
3800         (acc_copyout): Likewise.
3801         (update_dev_host): Move gomp_mutex_unlock to after
3802         host2dev/dev2host hook calls.
3804         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3805         to 'hsa_error_msg', for clarity.
3806         (hsa_fatal): Likewise.
3807         (hsa_error): New function.
3808         (init_hsa_context): Change return type to bool, adjust to return
3809         false on error.
3810         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3811         return value.
3812         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3813         return false on error.
3814         (get_agent_info): Adjust to return NULL on error.
3815         (destroy_hsa_program): Change return type to bool, adjust to
3816         return false on error.
3817         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3818         (destroy_module): Change return type to bool, adjust to
3819         return false on error.
3820         (GOMP_OFFLOAD_unload_image): Likewise.
3821         (GOMP_OFFLOAD_fini_device): Likewise.
3822         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3823         (GOMP_OFFLOAD_free): Change to return false when called.
3824         (GOMP_OFFLOAD_dev2host): Likewise.
3825         (GOMP_OFFLOAD_host2dev): Likewise.
3826         (GOMP_OFFLOAD_dev2dev): Likewise.
3828         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3829         (CUDA_CALL): Likewise.
3830         (CUDA_CALL_ASSERT): Likewise.
3831         (map_init): Change return type to bool, use CUDA_CALL* macros.
3832         (map_fini): Likewise.
3833         (init_streams_for_device): Change return type to bool, adjust
3834         call to map_init.
3835         (fini_streams_for_device): Change return type to bool, adjust
3836         call to map_fini.
3837         (select_stream_for_async): Release stream_lock before calls to
3838         GOMP_PLUGIN_fatal, adjust call to map_init.
3839         (nvptx_init): Use CUDA_CALL* macros.
3840         (nvptx_attach_host_thread_to_device): Change return type to bool,
3841         use CUDA_CALL* macros.
3842         (nvptx_open_device): Use CUDA_CALL* macros.
3843         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3844         macros.
3845         (nvptx_get_num_devices): Use CUDA_CALL* macros.
3846         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3847         (nvptx_exec): Use CUDA_CALL* macros.
3848         (nvptx_alloc): Use CUDA_CALL* macros.
3849         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3850         (nvptx_host2dev): Likewise.
3851         (nvptx_dev2host): Likewise.
3852         (nvptx_wait): Use CUDA_CALL* macros.
3853         (nvptx_wait_async): Likewise.
3854         (nvptx_wait_all): Likewise.
3855         (nvptx_wait_all_async): Likewise.
3856         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3857         use CUDA_CALL* macros, adjust call to map_fini.
3858         (GOMP_OFFLOAD_init_device): Change return type to bool,
3859         adjust code accordingly.
3860         (GOMP_OFFLOAD_fini_device): Likewise.
3861         (GOMP_OFFLOAD_load_image): Adjust calls to
3862         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3863         use CUDA_CALL* macros.
3864         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3865         return code.
3866         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3867         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3868         handle error return.
3869         (GOMP_OFFLOAD_dev2host): Likewise.
3870         (GOMP_OFFLOAD_host2dev): Likewise.
3871         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3872         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3874 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
3876         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3877         (acc_free): Likewise.
3878         (acc_memcpy_to_device): Likewise.
3879         (acc_memcpy_from_device): Likewise.
3880         (acc_deviceptr): Likewise.
3881         (acc_hostptr): Likewise.
3882         (acc_is_present): Likewise.
3883         (acc_map_data): Likewise.
3884         (acc_unmap_data): Likewise.
3885         (present_create_copy): Likewise.
3886         (delete_copyout): Likewise.
3887         (update_dev_host): Likewise.
3888         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3889         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3890         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3891         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3892         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3893         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3894         it only runs on nvptx targets.
3895         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3896         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3897         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3898         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3899         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3900         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3901         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3902         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3903         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3904         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3905         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3906         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3907         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3908         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3909         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3910         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3911         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3912         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3913         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3914         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3915         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3916         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3917         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3919 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3921         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3923 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
3925         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3926         to gomp_init_targets_once.
3927         (acc_set_device_type): Remove !cached_base_dev condition on call to
3928         gomp_init_targets_once, move call to before acc_device_lock acquire,
3929         to avoid deadlock.
3930         (acc_get_device_num): Remove !cached_base_dev condition on call to
3931         gomp_init_targets_once.
3932         (acc_set_device_num): Likewise.
3934 2016-05-16  Martin Jambor  <mjambor@suse.cz>
3936         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3938 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
3940         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3941         expected partitioning.
3943 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
3945         PR middle-end/70626
3946         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3947         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3948         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3950 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
3952         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3953         non-fatal.
3955 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
3957         PR middle-end/70680
3958         * testsuite/libgomp.c/pr70680-1.c: New test.
3959         * testsuite/libgomp.c/pr70680-2.c: New test.
3961 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
3963         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3964         pass parameter variables to subroutines.
3966 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
3968         PR middle-end/70643
3969         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3971 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
3973         PR testsuite/68242
3974         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3975         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3977 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
3979         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3980         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3981         GOACC_declare prototype.
3983         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3984         Merge this file, and...
3985         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3986         ... this file, and...
3987         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3988         ... this file, and...
3989         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3990         ... this file, and...
3991         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3992         ... this file, and...
3993         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3994         ... this file, and...
3995         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3996         ... this file, and...
3997         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3998         ... this file, and...
3999         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
4000         ... this file, and...
4001         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
4002         ... this file, and...
4003         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
4004         ... this file, and...
4005         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
4006         ... this file, and...
4007         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
4008         ... this file into...
4009         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
4010         file.
4012         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4013         Make failure observable.
4015 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4017         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
4018         field.
4019         * target.c (gomp_target_fallback_firstprivate,
4020         gomp_target_unshare_firstprivate): Removed.
4021         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
4022         before waiting for dependencies.
4023         (gomp_target_task_fn): Don't copy firstprivate vars here.
4024         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
4025         firstprivate_copies here.
4026         (gomp_create_target_task): Don't initialize firstprivate_copies field.
4027         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
4028         explicit/implicit firstprivate.
4030 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
4032         PR lto/70289
4033         PR ipa/70348
4034         PR tree-optimization/70373
4035         PR middle-end/70533
4036         PR middle-end/70534
4037         PR middle-end/70535
4038         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
4039         test.
4040         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
4041         test.
4042         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
4043         test.
4044         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
4045         test.
4046         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
4047         test.
4048         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
4049         test.
4050         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
4051         test.
4052         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
4053         test.
4054         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
4055         test.
4056         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
4057         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
4058         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
4059         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
4060         test.
4061         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
4062         test.
4063         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
4064         test.
4065         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
4066         test.
4067         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
4068         coverage.
4069         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4070         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4071         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
4072         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
4073         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
4074         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
4075         coverage.
4076         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4077         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4078         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4079         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4080         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
4081         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
4082         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
4083         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
4084         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
4085         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4086         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4087         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4088         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4089         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4090         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
4092 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
4093             James Norris  <jnorris@codesourcery.com>
4094             Nathan Sidwell  <nathan@codesourcery.com>
4095             Julian Brown  <julian@codesourcery.com>
4096             Cesar Philippidis  <cesar@codesourcery.com>
4097             Chung-Lin Tang  <cltang@codesourcery.com>
4098             Tom de Vries  <tom@codesourcery.com>
4100         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
4101         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
4102         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
4103         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
4104         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4105         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4106         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4107         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4108         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
4109         XFAIL.
4110         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
4111         Incorporate...
4112         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
4113         file.
4114         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
4115         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
4116         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
4117         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
4118         Likewise.
4119         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
4120         Likewise.
4121         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4122         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
4123         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
4124         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4125         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4126         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4127         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4128         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4129         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4130         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
4131         Likewise.
4132         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
4133         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4134         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
4135         file...
4136         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
4137         file into...
4138         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
4139         file.  Update.
4140         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
4141         file.
4142         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
4143         Likewise.
4144         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
4145         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
4146         ... this new file.  Update.
4147         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
4148         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
4149         ... this new file.  Update.
4150         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
4151         file.  Incorporate...
4152         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
4153         file, and...
4154         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
4155         file, and...
4156         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
4157         file.
4158         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
4160 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
4162         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
4163         set-torture-options.
4165 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
4167         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
4168         gcc-dg-runtest.
4169         * testsuite/libgomp.oacc-c/c.exp: Likewise.
4170         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
4171         -fno-builtin-acc_on_device instead of -O0.
4172         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
4173         -O0.
4174         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4175         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
4176         Likewise.
4177         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4178         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4179         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4180         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4181         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4182         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4183         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4184         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4185         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4186         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4187         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4188         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4189         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4190         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4191         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4192         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4193         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4194         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
4195         Don't specify -O2.
4196         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
4197         Likewise.
4198         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
4199         Likewise.
4201 2016-03-24  Martin Liska  <mliska@suse.cz>
4203         * plugin/plugin-hsa.c (packet_store_release): New function
4204         that is taken from the HSA runtime manual.
4205         (GOMP_OFFLOAD_run): Use the function.
4207 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
4209         PR c++/70376
4210         * testsuite/libgomp.c++/pr70376.C: New test.
4212 2016-03-23  Tom de Vries  <tom@codesourcery.com>
4214         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
4215         initialization of lresult and lvresult.
4216         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
4218 2016-03-23  James Norris  <jnorris@codesourcery.com>
4219             Daichi Fukuoka <dc-fukuoka@sgi.com>
4221         PR libgomp/69414
4222         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
4223         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
4224         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4225         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
4227 2016-03-23  Martin Liska  <mliska@suse.cz>
4229         PR hsa/70337
4230         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
4231         argument just in case a dispatched kernel uses that argument.
4233 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
4235         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
4236         -ftree-parallelize-loops/-fopenacc changes.
4237         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
4238         Likewise.
4239         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4240         Likewise.
4241         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
4242         Likewise.
4243         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
4244         Likewise.
4245         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4246         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4248 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
4250         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
4251         always_ld_library_path the path to libgcc_s.
4253 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
4255         PR testsuite/70009
4256         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
4258 2016-03-09  Tom de Vries  <tom@codesourcery.com>
4260         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
4261         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
4262         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4263         Same.
4264         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
4265         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
4266         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
4267         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
4269 2016-03-07  Martin Jambor  <mjambor@suse.cz>
4271         * testsuite/lib/libgomp.exp
4272         (check_effective_target_hsa_offloading_selected_nocache): New.
4273         (check_effective_target_hsa_offloading_selected): Likewise.
4274         * testsuite/libgomp.hsa.c/c.exp: Likewise.
4275         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
4276         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4277         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4278         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4279         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4280         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4281         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4282         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4283         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4284         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4285         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4286         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4287         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4288         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4289         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4290         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4292 2016-03-07  Martin Jambor  <mjambor@suse.cz>
4294         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4295         non-shared memory accelerators.
4296         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4297         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4298         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4299         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4300         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4301         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4302         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4303         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4304         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4306 2016-03-07  Martin Jambor  <mjambor@suse.cz>
4308         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4309         ALWAYS_CFLAGS.
4311 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
4313         PR libgomp/69555
4314         * testsuite/libgomp.c++/pr69555-1.C: New test.
4315         * testsuite/libgomp.c++/pr69555-2.C: New test.
4317 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
4318             Martin Jambor  <mjambor@suse.cz>
4320         * testsuite/lib/libgomp.exp
4321         (check_effective_target_offload_device_shared_as): New proc.
4322         * testsuite/libgomp.c++/declare_target-1.C: New test.
4324 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
4326         PR driver/68463
4327         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4329 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
4331         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4332         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4333         dims.
4334         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4335         -ftree-parallelize-loops/-fopenacc changes.
4336         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4337         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4338         Likewise.
4339         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4340         Likewise.
4341         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4342         Likewise.
4343         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4344         Likewise.
4345         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4346         Likewise.
4347         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4348         Likewise.
4349         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4350         Likewise.
4351         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4352         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4353         Likewise.
4354         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4355         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4356         Likewise.
4357         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4358         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4359         Likewise.
4361 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
4363         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4365 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
4367         PR driver/69805
4368         * testsuite/libgomp.c/pr69805.c: New test.
4370 2016-02-16  Tom de Vries  <tom@codesourcery.com>
4372         PR lto/67709
4373         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4375 2016-02-09  Tom de Vries  <tom@codesourcery.com>
4377         PR tree-optimization/69599
4378         * testsuite/libgomp.c/omp-nested-3.c: New test.
4379         * testsuite/libgomp.c/pr46032-2.c: New test.
4380         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4381         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4383 2016-02-09  Tom de Vries  <tom@codesourcery.com>
4385         PR lto/69707
4386         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4388 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
4390         * testsuite/libgomp.c/target-31.c: Fix testcase.
4392 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
4394         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4395         clause.
4396         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4397         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4398         reduction and map clauses.
4399         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4401 2016-02-02  James Norris  <jnorris@codesourcery.com>
4403         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4405 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
4407         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4408         * oacc-parallel.c (GOACC_host_data): Remove function definition.
4410         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4411         cases.
4413         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4414         variables.
4415         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4416         (hsa_kmt_lib): Set variables.
4417         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4418         always_ld_library_path.
4419         * Makefile.in: Regenerate.
4420         * configure: Likewise.
4421         * testsuite/Makefile.in: Likewise.
4423         * plugin/configfrag.ac (offload_additional_options)
4424         (offload_additional_lib_paths): Don't amend for hsa offloading.
4425         * configure: Regenerate.
4427         * plugin/configfrag.ac: Don't configure for offloading target if
4428         we don't build the corresponding plugin.
4429         * configure: Regenerate.
4431 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
4433         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4434         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4436 2016-01-26  Tom de Vries  <tom@codesourcery.com>
4438         PR tree-optimization/69110
4439         * testsuite/libgomp.c/pr69110.c: New test.
4441 2016-01-25  Richard Biener  <rguenther@suse.de>
4443         PR lto/69393
4444         * testsuite/libgomp.c++/pr69393.C: New testcase.
4446 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
4448         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4449         function wasn't mapped to the device with non-shared memory.
4451 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
4453         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4455 2016-01-19  Martin Jambor  <mjambor@suse.cz>
4456             Martin Liska  <mliska@suse.cz>
4458         * plugin/Makefrag.am: Add HSA plugin requirements.
4459         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4460         (HSA_RUNTIME_LIB): Likewise.
4461         (HSA_RUNTIME_CPPFLAGS): Likewise.
4462         (HSA_RUNTIME_INCLUDE): New substitution.
4463         (HSA_RUNTIME_LIB): Likewise.
4464         (HSA_RUNTIME_LDFLAGS): Likewise.
4465         (hsa-runtime): New configure option.
4466         (hsa-runtime-include): Likewise.
4467         (hsa-runtime-lib): Likewise.
4468         (PLUGIN_HSA): New substitution variable.
4469         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4470         configure options.
4471         (PLUGIN_HSA_CPPFLAGS): Likewise.
4472         (PLUGIN_HSA_LDFLAGS): Likewise.
4473         (PLUGIN_HSA_LIBS): Likewise.
4474         Check that we have access to HSA run-time.
4475         * libgomp-plugin.h (offload_target_type): New element
4476         OFFLOAD_TARGET_TYPE_HSA.
4477         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
4478         args.
4479         (bool gomp_create_target_task): Updated.
4480         (gomp_device_descr): Extra parameter of run_func and async_run_func,
4481         new field can_run_func.
4482         * libgomp_g.h (GOMP_target_ext): Update prototype.
4483         * oacc-host.c (host_run): Added a new parameter args.
4484         * target.c (calculate_firstprivate_requirements): New function.
4485         (copy_firstprivate_data): Likewise.
4486         (gomp_target_fallback_firstprivate): Use them.
4487         (gomp_target_unshare_firstprivate): New function.
4488         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
4489         devices.
4490         (GOMP_target): Do host fallback for all shared memory devices.  Do not
4491         pass any args to plugins.
4492         (GOMP_target_ext): Introduce device-specific argument parameter args.
4493         Allow host fallback if device shares memory.  Do not remap data if
4494         device has shared memory.
4495         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
4496         like host fallback for mappings.
4497         (GOMP_target_data): Treat shared memory devices like host fallback.
4498         (GOMP_target_data_ext): Likewise.
4499         (GOMP_target_update): Likewise.
4500         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
4501         gomp_create_target_task.
4502         (GOMP_target_enter_exit_data): Likewise.
4503         (omp_target_alloc): Treat shared memory devices like host fallback.
4504         (omp_target_free): Likewise.
4505         (omp_target_is_present): Likewise.
4506         (omp_target_memcpy): Likewise.
4507         (omp_target_memcpy_rect): Likewise.
4508         (omp_target_associate_ptr): Likewise.
4509         (gomp_load_plugin_for_device): Also load can_run.
4510         * task.c (GOMP_PLUGIN_target_task_completion): Free
4511         firstprivate_copies.
4512         (gomp_create_target_task): Accept new argument args and store it to
4513         ttask.
4514         * plugin/plugin-hsa.c: New file.
4516 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4518         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
4519         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
4520         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
4521         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
4522         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
4523         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
4524         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
4525         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
4526         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
4527         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
4528         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4529         Same.
4530         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4531         Same.
4532         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
4533         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
4534         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
4535         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
4536         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
4537         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
4538         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
4539         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4540         Same.
4541         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
4543 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
4545         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
4547 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
4549         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
4551 2016-01-12  James Norris  <jnorris@codesourcery.com>
4553         * libgomp.texi: Updates for OpenACC.
4555 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
4557         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
4559 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
4561         PR fortran/66680
4562         * testsuite/libgomp.fortran/pr66680.f90: New test.
4564 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
4566         PR middle-end/68960
4567         * testsuite/libgomp.c/pr68960.c: New test.
4569 2016-01-06  Nathan Sidwell  <nathan@acm.org>
4571         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
4572         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
4574 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
4576         Update copyright years.
4578         * libgomp.texi: Bump @copying's copyright year.
4580 2015-12-31  Nathan Sidwell  <nathan@acm.org>
4582         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
4583         dg-additional-options syntax.
4584         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4585         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4586         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4587         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4588         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4589         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4590         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4591         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4592         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4593         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4594         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4595         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4596         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4597         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4598         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4599         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4600         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4601         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4603 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
4605         * libgomp.h (REFCOUNT_LINK): Define.
4606         (struct splay_tree_key_s): Add link_key.
4607         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4608         Replace target address of the pointer with target address of newly
4609         mapped object in the splay tree.  Set link pointer on target to the
4610         device address of the mapped object.
4611         (gomp_unmap_vars): Restore target address of the pointer in the splay
4612         tree for REFCOUNT_LINK objects after unmapping.
4613         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4614         declare target link" objects.
4615         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
4616         "omp declare target link" objects, which were mapped for the image.
4617         (gomp_exit_data): Restore target address of the pointer in the splay
4618         tree for REFCOUNT_LINK objects after unmapping.
4619         * testsuite/libgomp.c/target-link-1.c: New file.
4621 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
4623         * libgomp.h (gomp_device_state): New enum.
4624         (struct gomp_device_descr): Replace is_initialized with state.
4625         (gomp_fini_device): Remove declaration.
4626         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4627         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4628         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
4629         (acc_set_device_type): Use state instead of is_initialized.
4630         (acc_set_device_num): Likewise.
4631         * target.c (resolve_device): Use state instead of is_initialized.
4632         Do not initialize finalized device.
4633         (gomp_map_vars): Do nothing if device is finalized.
4634         (gomp_unmap_vars): Likewise.
4635         (gomp_update): Likewise.
4636         (GOMP_offload_register_ver): Use state instead of is_initialized.
4637         (GOMP_offload_unregister_ver): Likewise.
4638         (gomp_init_device): Likewise.
4639         (gomp_unload_device): Likewise.
4640         (gomp_fini_device): Remove.
4641         (gomp_get_target_fn_addr): Do nothing if device is finalized.
4642         (GOMP_target): Go to host fallback if device is finalized.
4643         (GOMP_target_ext): Likewise.
4644         (gomp_exit_data): Do nothing if device is finalized.
4645         (gomp_target_task_fn): Go to host fallback if device is finalized.
4646         (gomp_target_fini): New static function.
4647         (gomp_target_init): Use state instead of is_initialized.
4648         Call gomp_target_fini at exit.
4650 2015-12-09  Tom de Vries  <tom@codesourcery.com>
4652         PR tree-optimization/68716
4653         * testsuite/libgomp.c/omp-nested-2.c: New test.
4655 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
4657         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4658         target openacc_nvidia_accel_selected.
4659         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4660         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4661         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4662         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4664 2015-12-01  Julian Brown  <julian@codesourcery.com>
4665             James Norris  <James_Norris@mentor.com>
4667         * oacc-parallel.c (GOACC_host_data): New function.
4668         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4669         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4670         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4671         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4672         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4673         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4674         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4676 2015-11-30  James Norris  <jnorris@codesourcery.com>
4677             Cesar Philippidis  <cesar@codesourcery.com>
4679         libgomp/
4680         * libgomp.oacc-fortran/routine-5.f90: New test.
4681         * libgomp.oacc-fortran/routine-7.f90: New test.
4682         * libgomp.oacc-fortran/routine-9.f90: New test.
4684 2015-11-30  Tom de Vries  <tom@codesourcery.com>
4686         PR tree-optimization/46032
4687         * testsuite/libgomp.c/pr46032.c: New test.
4689 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
4691         PR libgomp/68579
4692         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4693         (gomp_create_target_task): Call it before freeing
4694         GOMP_TARGET_TASK_DATA tasks.
4696         PR c/63326
4697         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4698         in between case label and OpenMP standalone directives.
4699         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4701 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
4703         * configure: Regenerate.
4705 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
4707         * testsuite/libgomp.c/target-35.c: New test.
4709 2015-11-22  James Norris  <jnorris@codesourcery.com>
4710             Cesar Philippidis  <cesar@codesourcery.com>
4712         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4713         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4714         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4715         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4716         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4718 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
4720         PR middle-end/68221
4721         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4722         * testsuite/libgomp.c/reduction-12.c: Likewise.
4723         * testsuite/libgomp.c++/reduction-11.C: Likewise.
4724         * testsuite/libgomp.c++/reduction-12.C: Likewise.
4726 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
4728         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4729         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4730         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4731         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4732         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4733         and fix.
4734         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4735         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4737 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
4739         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4740         worker & gang cases.
4741         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4743 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
4745         * config/nvptx/priority_queue.c: New file.
4747 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
4749         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4750         sections.
4752 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
4753             Aldy Hernandez  <aldyh@redhat.com>
4754             Ilya Verbin  <ilya.verbin@intel.com>
4756         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4757         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4758         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4759         iterators or IV by chunk size.
4760         * parallel.c (gomp_resolve_num_threads): Don't assume that
4761         if thr->ts.team is non-NULL, then pool must be non-NULL.
4762         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4763         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4764         GOMP_PLUGIN_target_task_completion.
4765         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4766         * Makefile.in: Regenerate.
4767         * libgomp.h: Shuffle prototypes and forward definitions around so
4768         priority queues can be defined.
4769         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4770         (enum gomp_target_task_state): New enum.
4771         (struct gomp_target_task): Add state, tgt, task and team fields.
4772         (gomp_create_target_task): Change return type to bool, add
4773         state argument.
4774         (gomp_target_task_fn): Change return type to bool.
4775         (struct gomp_device_descr): Add async_run_func.
4776         (struct gomp_task): Remove children, next_child, prev_child,
4777         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4778         Add pnode field.
4779         (struct gomp_taskgroup): Remove children.
4780         Add taskgroup_queue.
4781         (struct gomp_team): Change task_queue type to a priority queue.
4782         (splay_compare): Define inline.
4783         (priority_queue_offset): New.
4784         (priority_node_to_task): New.
4785         (task_to_priority_node): New.
4786         * oacc-mem.c: Do not include splay-tree.h.
4787         * priority_queue.c: New file.
4788         * priority_queue.h: New file.
4789         * splay-tree.c: Do not include splay-tree.h.
4790         (splay_tree_foreach_internal): New.
4791         (splay_tree_foreach): New.
4792         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4793         (splay_tree_callback): Define typedef.
4794         * target.c (splay_compare): Move to libgomp.h.
4795         (GOMP_target): Don't adjust *thr in any way around running offloaded
4796         task.
4797         (GOMP_target_ext): Likewise.  Handle target nowait.
4798         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4799         return value from gomp_create_target_task, if false, fallthrough
4800         as if no dependencies exist.
4801         (gomp_target_task_fn): Change return type to bool, return true
4802         if the task should have another part scheduled later.  Handle
4803         target nowait.
4804         (gomp_load_plugin_for_device): Initialize async_run.
4805         * task.c (gomp_init_task): Initialize children_queue.
4806         (gomp_clear_parent_in_list): New.
4807         (gomp_clear_parent_in_tree): New.
4808         (gomp_clear_parent): Handle priorities.
4809         (GOMP_task): Likewise.
4810         (priority_queue_move_task_first,
4811         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4812         New functions.
4813         (gomp_create_target_task): Use priority queues.  Change return type
4814         to bool, add state argument, return false if for async
4815         {{enter,exit} data,update} constructs no dependencies need to be
4816         waited for, handle target nowait.  Set task->fn to NULL instead of
4817         gomp_target_task_fn.
4818         (verify_children_queue): Remove.
4819         (priority_list_upgrade_task): New.
4820         (priority_queue_upgrade_task): New.
4821         (verify_task_queue): Remove.
4822         (priority_list_downgrade_task): New.
4823         (priority_queue_downgrade_task): New.
4824         (gomp_task_run_pre): Use priority queues.
4825         Abstract code out to priority_queue_downgrade_task.
4826         (gomp_task_run_post_handle_dependers): Use priority queues.
4827         (gomp_task_run_post_remove_parent): Likewise.
4828         (gomp_task_run_post_remove_taskgroup): Likewise.
4829         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
4830         tasks specially.
4831         (GOMP_taskwait): Likewise.
4832         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
4833         priority-queue_upgrade_task.
4834         (GOMP_taskgroup_start): Use priority queues.
4835         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
4836         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
4837         barrier.
4838         * taskloop.c (GOMP_taskloop): Handle priorities.
4839         * team.c (gomp_new_team): Call priority_queue_init.
4840         (free_team): Call priority_queue_free.
4841         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4842         team created for target nowait in implicit parallel region.
4843         (gomp_team_start): For nested check, test thr->ts.level instead of
4844         thr->ts.team != NULL.
4845         * testsuite/libgomp.c/doacross-3.c: New test.
4846         * testsuite/libgomp.c/ordered-5.c: New test.
4847         * testsuite/libgomp.c/priority.c: New test.
4848         * testsuite/libgomp.c/target-31.c: New test.
4849         * testsuite/libgomp.c/target-32.c: New test.
4850         * testsuite/libgomp.c/target-33.c: New test.
4851         * testsuite/libgomp.c/target-34.c: New test.
4853 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4855         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4857         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4858         loop is sequential.
4860 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4862         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4863         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4865 2015-11-12  James Norris  <jnorris@codesourcery.com>
4866             Joseph Myers  <joseph@codesourcery.com>
4868         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4869         * oacc-parallel.c (GOACC_declare): New function.
4870         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4871         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4872         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4873         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4874         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4876 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
4878         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4880 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
4882         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4883         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4885 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4887         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4888         inadvertent commit.
4890 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4892         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4893         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4894         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4895         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4896         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4898 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
4900         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4901         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4903 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
4904             Ilya Verbin  <ilya.verbin@intel.com>
4906         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4907         GOMP_loop_nonmonotonic_dynamic_start,
4908         GOMP_loop_nonmonotonic_guided_next,
4909         GOMP_loop_nonmonotonic_guided_start,
4910         GOMP_loop_ull_nonmonotonic_dynamic_next,
4911         GOMP_loop_ull_nonmonotonic_dynamic_start,
4912         GOMP_loop_ull_nonmonotonic_guided_next,
4913         GOMP_loop_ull_nonmonotonic_guided_start,
4914         GOMP_parallel_loop_nonmonotonic_dynamic,
4915         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4916         (GOMP_target_41): Renamed to ...
4917         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
4918         arguments.
4919         (GOMP_target_data_41): Renamed to ...
4920         (GOMP_target_data_ext): ... this.
4921         (GOMP_target_update_41): Renamed to ...
4922         (GOMP_target_update_ext): ... this.
4923         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4924         GOMP_target_data_ext and GOMP_target_update_ext instead of
4925         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4926         Export GOMP_loop_nonmonotonic_dynamic_next,
4927         GOMP_loop_nonmonotonic_dynamic_start,
4928         GOMP_loop_nonmonotonic_guided_next,
4929         GOMP_loop_nonmonotonic_guided_start,
4930         GOMP_loop_ull_nonmonotonic_dynamic_next,
4931         GOMP_loop_ull_nonmonotonic_dynamic_start,
4932         GOMP_loop_ull_nonmonotonic_guided_next,
4933         GOMP_loop_ull_nonmonotonic_guided_start,
4934         GOMP_parallel_loop_nonmonotonic_dynamic and
4935         GOMP_parallel_loop_nonmonotonic_guided.
4936         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4937         GOMP_parallel_loop_nonmonotonic_guided,
4938         GOMP_loop_nonmonotonic_dynamic_start,
4939         GOMP_loop_nonmonotonic_guided_start,
4940         GOMP_loop_nonmonotonic_dynamic_next,
4941         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4942         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4943         GOMP_loop_ull_nonmonotonic_guided_start,
4944         GOMP_loop_ull_nonmonotonic_dynamic_next,
4945         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4946         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4947         functions.
4948         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
4949         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4950         Use gomp_map_val function.
4951         (gomp_target_fallback_firstprivate): New static function.
4952         (GOMP_target_41): Renamed to ...
4953         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
4954         arguments.  Move firstprivate fallback handling into a new
4955         function.
4956         (GOMP_target_data_41): Renamed to ...
4957         (GOMP_target_data_ext): ... this.
4958         (GOMP_target_update_41): Renamed to ...
4959         (GOMP_target_update_ext): ... this.
4960         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4961         gomp_map_0len_lookup instead of gomp_map_lookup.
4962         (omp_target_is_present): Use gomp_map_0len_lookup instead of
4963         gomp_map_lookup.
4964         * testsuite/libgomp.c/target-28.c: Likewise.
4965         * testsuite/libgomp.c/monotonic-1.c: New test.
4966         * testsuite/libgomp.c/monotonic-2.c: New test.
4967         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4968         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4969         * testsuite/libgomp.c/pr66199-5.c: New test.
4970         * testsuite/libgomp.c/pr66199-6.c: New test.
4971         * testsuite/libgomp.c/pr66199-7.c: New test.
4972         * testsuite/libgomp.c/pr66199-8.c: New test.
4973         * testsuite/libgomp.c/pr66199-9.c: New test.
4974         * testsuite/libgomp.c/reduction-11.c: New test.
4975         * testsuite/libgomp.c/reduction-12.c: New test.
4976         * testsuite/libgomp.c/reduction-13.c: New test.
4977         * testsuite/libgomp.c/reduction-14.c: New test.
4978         * testsuite/libgomp.c/reduction-15.c: New test.
4979         * testsuite/libgomp.c/target-12.c (main): Adjust for
4980         omp_target_is_present change for one-past-last element.
4981         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4982         the same var is both mapped and privatized.
4983         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4984         handling of zero-length array sections.
4985         * testsuite/libgomp.c/target-28.c: New test.
4986         * testsuite/libgomp.c/target-29.c: New test.
4987         * testsuite/libgomp.c/target-30.c: New test.
4988         * testsuite/libgomp.c/target-teams-1.c: New test.
4989         * testsuite/libgomp.c++/member-6.C: New test.
4990         * testsuite/libgomp.c++/member-7.C: New test.
4991         * testsuite/libgomp.c++/monotonic-1.C: New test.
4992         * testsuite/libgomp.c++/monotonic-2.C: New test.
4993         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4994         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4995         * testsuite/libgomp.c++/pr66199-3.C: New test.
4996         * testsuite/libgomp.c++/pr66199-4.C: New test.
4997         * testsuite/libgomp.c++/pr66199-5.C: New test.
4998         * testsuite/libgomp.c++/pr66199-6.C: New test.
4999         * testsuite/libgomp.c++/pr66199-7.C: New test.
5000         * testsuite/libgomp.c++/pr66199-8.C: New test.
5001         * testsuite/libgomp.c++/pr66199-9.C: New test.
5002         * testsuite/libgomp.c++/reduction-11.C: New test.
5003         * testsuite/libgomp.c++/reduction-12.C: New test.
5004         * testsuite/libgomp.c++/target-13.C: New test.
5005         * testsuite/libgomp.c++/target-14.C: New test.
5006         * testsuite/libgomp.c++/target-15.C: New test.
5007         * testsuite/libgomp.c++/target-16.C: New test.
5008         * testsuite/libgomp.c++/target-17.C: New test.
5009         * testsuite/libgomp.c++/target-18.C: New test.
5010         * testsuite/libgomp.c++/target-19.C: New test.
5012 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5014         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
5015         and reduction copy.
5016         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5017         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5018         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5019         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5020         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5021         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5022         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5023         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5024         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5025         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
5026         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
5027         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5028         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5029         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
5031 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5033         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
5034         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
5035         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
5036         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
5037         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
5038         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
5039         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
5040         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
5042 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
5044         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
5045         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
5046         (GOMP_OFFLOAD_openacc_parallel): Likewise.
5047         * oacc-host.c (host_openacc_exec): Likewise.
5048         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
5050 2015-11-03  Julian Brown  <julian@codesourcery.com>
5051             Thomas Schwinge  <thomas@codesourcery.com>
5053         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
5054         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5055         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
5056         Likewise.
5057         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
5058         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
5060 2015-11-03  James Norris  <jnorris@codesourcery.com>
5062         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
5063         file.
5064         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
5065         Likewise.
5066         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
5067         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
5068         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
5069         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
5070         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
5072 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
5074         * openacc.h (enum acc_device_t): Reformat. Ensure layout
5075         compatibility.
5076         (enum acc_async_t): Reformat.
5077         (acc_on_device): Declare compatible with builtin and provide C++
5078         wrapper.
5079         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
5081 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
5082             Cesar Philippidis  <cesar@codesourcery.com>
5084         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
5085         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
5086         ... this.  Add a description of the test at the top of the file.
5087         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
5088         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
5089         ... this.  Add a description of the test at the top of the file.
5091 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5093         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
5094         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
5095         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
5096         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
5097         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
5098         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
5100 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
5102         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
5103         dimensions.
5105 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
5107         PR testsuite/68063
5108         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
5110 2015-10-27  James Norris  <jnorris@codesourcery.com>
5112         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
5113         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
5115 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
5117         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
5118         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5120         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
5121         acc_device_nvidia usage.
5122         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
5123         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5124         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
5126         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
5127         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
5129         PR libgomp/66518
5130         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
5132         PR libgomp/65437
5133         PR libgomp/66518
5134         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
5135         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
5137 2015-10-23  Tom de Vries  <tom@codesourcery.com>
5139         PR testsuite/68063
5140         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
5142 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
5144         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
5145         vector_length.
5146         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5148 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
5149             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
5151         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
5152         to 0 when mapnum is 0.
5154 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5156         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
5157         Cast to int from int32_t.
5159 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
5160             Aldy Hernandez  <aldyh@redhat.com>
5161             Ilya Verbin  <ilya.verbin@intel.com>
5163         * config/linux/affinity.c (omp_get_place_num_procs,
5164         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5165         * config/linux/doacross.h: New file.
5166         * config/posix/affinity.c (omp_get_place_num_procs,
5167         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
5168         * config/posix/doacross.h: New file.
5169         * env.c: Include gomp-constants.h.
5170         (struct gomp_task_icv): Rename run_sched_modifier to
5171         run_sched_chunk_size.
5172         (gomp_max_task_priority_var): New variable.
5173         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
5174         (handle_omp_display_env): Change _OPENMP value from 201307 to
5175         201511.  Print OMP_MAX_TASK_PRIORITY.
5176         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
5177         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
5178         chunk_size and run_sched_modifier to run_sched_chunk_size.
5179         (omp_get_max_task_priority, omp_get_initial_device,
5180         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
5181         omp_get_partition_place_nums): New functions.
5182         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
5183         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
5184         to chunk_size.
5185         (omp_get_num_places_, omp_get_place_num_procs_,
5186         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
5187         omp_get_place_proc_ids_8_, omp_get_place_num_,
5188         omp_get_partition_num_places_, omp_get_partition_place_nums_,
5189         omp_get_partition_place_nums_8_, omp_get_initial_device_,
5190         omp_get_max_task_priority_): New functions.
5191         * libgomp_g.h (GOMP_loop_doacross_static_start,
5192         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
5193         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
5194         GOMP_loop_ull_doacross_dynamic_start,
5195         GOMP_loop_ull_doacross_guided_start,
5196         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
5197         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
5198         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
5199         GOMP_target_data_41, GOMP_target_update_41,
5200         GOMP_target_enter_exit_data): New prototypes.
5201         (GOMP_task): Add prototype argument.
5202         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
5203         (struct gomp_doacross_work_share): New type.
5204         (struct gomp_work_share): Add doacross field.
5205         (struct gomp_task_icv): Rename run_sched_modifier to
5206         run_sched_chunk_size.
5207         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
5208         GOMP_TASK_UNDEFERRED.  Add comments.
5209         (struct gomp_task_depend_entry): Add comments.
5210         (struct gomp_task): Likewise.
5211         (struct gomp_taskgroup): Likewise.
5212         (struct gomp_target_task): New type.
5213         (struct gomp_team): Add comment.
5214         (gomp_get_place_proc_ids_8, gomp_doacross_init,
5215         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
5216         gomp_create_target_task, gomp_target_task_fn): New prototypes.
5217         (struct target_var_desc): New type.
5218         (struct target_mem_desc): Adjust comment.  Use struct
5219         target_var_desc instead of splay_tree_key for list.
5220         (REFCOUNT_INFINITY): Define.
5221         (struct splay_tree_key_s): Remove copy_from field.
5222         (struct gomp_device_descr): Add dev2dev_func field.
5223         (enum gomp_map_vars_kind): New enum.
5224         (gomp_map_vars): Add one argument.
5225         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
5226         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
5227         omp_get_place_num_procs, omp_get_place_num_procs_,
5228         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
5229         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
5230         omp_get_place_num_, omp_get_partition_num_places,
5231         omp_get_partition_num_places_, omp_get_partition_place_nums,
5232         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
5233         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
5234         omp_target_free, omp_target_is_present, omp_target_memcpy,
5235         omp_target_memcpy_rect, omp_target_associate_ptr and
5236         omp_target_disassociate_ptr.
5237         (GOMP_4.0.2): Renamed to ...
5238         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
5239         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
5240         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
5241         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5242         GOMP_loop_doacross_static_start, GOMP_doacross_post,
5243         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
5244         GOMP_loop_ull_doacross_guided_start,
5245         GOMP_loop_ull_doacross_runtime_start,
5246         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
5247         GOMP_doacross_ull_wait.
5248         * libgomp.texi: Document omp_get_max_task_priority.
5249         Rename modifier argument to chunk_size for omp_set_schedule and
5250         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
5251         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
5252         to run_sched_chunk_size renaming.
5253         (GOMP_loop_ordered_runtime_start): Likewise.
5254         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5255         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5256         GOMP_parallel_loop_runtime_start): New functions.
5257         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
5258         to run_sched_chunk_size renaming.
5259         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
5260         GOMP_loop_doacross_guided_start): New functions or aliases.
5261         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
5262         run_sched_modifier to run_sched_chunk_size renaming.
5263         (GOMP_loop_ull_ordered_runtime_start): Likewise.
5264         (gomp_loop_ull_doacross_static_start,
5265         gomp_loop_ull_doacross_dynamic_start,
5266         gomp_loop_ull_doacross_guided_start,
5267         GOMP_loop_ull_doacross_runtime_start): New functions.
5268         (GOMP_loop_ull_doacross_static_start,
5269         GOMP_loop_ull_doacross_dynamic_start,
5270         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
5271         * oacc-mem.c (acc_map_data, present_create_copy,
5272         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
5273         to gomp_map_vars.
5274         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
5275         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
5276         instead of false to gomp_map_vars.
5277         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
5278         * omp.h.in (omp_lock_hint_t): New type.
5279         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5280         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5281         omp_get_place_num, omp_get_partition_num_places,
5282         omp_get_partition_place_nums, omp_get_initial_device,
5283         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
5284         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
5285         omp_target_associate_ptr, omp_target_disassociate_ptr): New
5286         prototypes.
5287         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
5288         (omp_lock_hint_none, omp_lock_hint_uncontended,
5289         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5290         omp_lock_hint_speculative): New parameters.
5291         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5292         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5293         omp_get_place_num, omp_get_partition_num_places,
5294         omp_get_partition_place_nums, omp_get_initial_device,
5295         omp_get_max_task_priority): New interfaces.
5296         (omp_set_schedule, omp_get_schedule): Rename modifier argument
5297         to chunk_size.
5298         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5299         (omp_lock_hint_none, omp_lock_hint_uncontended,
5300         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5301         omp_lock_hint_speculative): New parameters.
5302         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5303         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5304         omp_get_place_num, omp_get_partition_num_places,
5305         omp_get_partition_place_nums, omp_get_initial_device,
5306         omp_get_max_task_priority): New functions and subroutines.
5307         * ordered.c: Include stdarg.h and string.h.
5308         (MAX_COLLAPSED_BITS): Define.
5309         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5310         gomp_doacross_ull_init, GOMP_doacross_ull_post,
5311         GOMP_doacross_ull_wait): New functions.
5312         * target.c: Include errno.h.
5313         (resolve_device): If device is not initialized, call
5314         gomp_init_device on it.
5315         (gomp_map_lookup): New function.
5316         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5317         Don't bump refcount if REFCOUNT_INFINITY.  Handle
5318         GOMP_MAP_ALWAYS_TO_P.
5319         (get_kind): Rename is_openacc argument to short_mapkind.
5320         (gomp_map_pointer): Use gomp_map_lookup.
5321         (gomp_map_fields_existing): New function.
5322         (gomp_map_vars): Rename is_openacc argument to short_mapkind
5323         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
5324         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5325         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5326         Adjust for tgt->list changed type and copy_from living in there.
5327         (gomp_copy_from_async): Adjust for tgt->list changed type and
5328         copy_from living in there.
5329         (gomp_unmap_vars): Likewise.
5330         (gomp_update): Likewise.  Rename is_openacc argument to
5331         short_mapkind.  Don't fail if object is not mapped.
5332         (gomp_load_image_to_device): Initialize refcount to
5333         REFCOUNT_INFINITY.
5334         (gomp_target_fallback): New function.
5335         (gomp_get_target_fn_addr): Likewise.
5336         (GOMP_target): Adjust gomp_map_vars caller, use
5337         gomp_get_target_fn_addr and gomp_target_fallback.
5338         (GOMP_target_41): New function.
5339         (gomp_target_data_fallback): New function.
5340         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5341         (GOMP_target_data_41): New function.
5342         (GOMP_target_update): Adjust gomp_update caller.
5343         (GOMP_target_update_41): New function.
5344         (gomp_exit_data, GOMP_target_enter_exit_data,
5345         gomp_target_task_fn, omp_target_alloc, omp_target_free,
5346         omp_target_is_present, omp_target_memcpy,
5347         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5348         omp_target_associate_ptr, omp_target_disassociate_ptr,
5349         gomp_load_plugin_for_device): New functions.
5350         * task.c: Include gomp-constants.h.  Include taskloop.c
5351         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5352         (gomp_task_handle_depend): New function.
5353         (GOMP_task): Use it.  Add priority argument.  Use
5354         gomp-constant.h constants instead of hardcoded numbers.
5355         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5356         (gomp_create_target_task): New function.
5357         (verify_children_queue, verify_taskgroup_queue,
5358         verify_task_queue): New functions.
5359         (gomp_task_run_pre): Call verify_*_queue functions.
5360         If an upcoming tied task is about to leave the sibling or
5361         taskgroup queues in an invalid state, adjust appropriately.
5362         Remove taskgroup argument.  Add comments.
5363         (gomp_task_run_post_handle_dependers): Add comments.
5364         (gomp_task_run_post_remove_parent): Likewise.
5365         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5366         (GOMP_taskwait): Likewise.  Add comments.
5367         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5368         problem such that the first non parent_depends_on task does not
5369         end up at the end of the children queue.
5370         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5371         GOMP_TASK_UNDEFERRED.
5372         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5373         * taskloop.c: New file.
5374         * testsuite/lib/libgomp.exp
5375         (check_effective_target_offload_device_nonshared_as): New proc.
5376         * testsuite/libgomp.c/affinity-2.c: New test.
5377         * testsuite/libgomp.c/doacross-1.c: New test.
5378         * testsuite/libgomp.c/doacross-2.c: New test.
5379         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5380         Add map clause to target.
5381         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5382         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5383         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5384         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5385         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5386         Likewise.
5387         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5388         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5389         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5390         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5391         not defined.  Use those where needed.
5392         * testsuite/libgomp.c/for-4.c: New test.
5393         * testsuite/libgomp.c/for-5.c: New test.
5394         * testsuite/libgomp.c/for-6.c: New test.
5395         * testsuite/libgomp.c/linear-1.c: New test.
5396         * testsuite/libgomp.c/ordered-4.c: New test.
5397         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5398         only allowed on the loop iterator.
5399         * testsuite/libgomp.c/pr66199-3.c: New test.
5400         * testsuite/libgomp.c/pr66199-4.c: New test.
5401         * testsuite/libgomp.c/reduction-7.c: New test.
5402         * testsuite/libgomp.c/reduction-8.c: New test.
5403         * testsuite/libgomp.c/reduction-9.c: New test.
5404         * testsuite/libgomp.c/reduction-10.c: New test.
5405         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5406         map(tofrom:s).
5407         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5408         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5409         * testsuite/libgomp.c/target-11.c: New test.
5410         * testsuite/libgomp.c/target-12.c: New test.
5411         * testsuite/libgomp.c/target-13.c: New test.
5412         * testsuite/libgomp.c/target-14.c: New test.
5413         * testsuite/libgomp.c/target-15.c: New test.
5414         * testsuite/libgomp.c/target-16.c: New test.
5415         * testsuite/libgomp.c/target-17.c: New test.
5416         * testsuite/libgomp.c/target-18.c: New test.
5417         * testsuite/libgomp.c/target-19.c: New test.
5418         * testsuite/libgomp.c/target-20.c: New test.
5419         * testsuite/libgomp.c/target-21.c: New test.
5420         * testsuite/libgomp.c/target-22.c: New test.
5421         * testsuite/libgomp.c/target-23.c: New test.
5422         * testsuite/libgomp.c/target-24.c: New test.
5423         * testsuite/libgomp.c/target-25.c: New test.
5424         * testsuite/libgomp.c/target-26.c: New test.
5425         * testsuite/libgomp.c/target-27.c: New test.
5426         * testsuite/libgomp.c/taskloop-1.c: New test.
5427         * testsuite/libgomp.c/taskloop-2.c: New test.
5428         * testsuite/libgomp.c/taskloop-3.c: New test.
5429         * testsuite/libgomp.c/taskloop-4.c: New test.
5430         * testsuite/libgomp.c++/ctor-13.C: New test.
5431         * testsuite/libgomp.c++/doacross-1.C: New test.
5432         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5433         Replace offload_device with offload_device_nonshared_as.
5434         * testsuite/libgomp.c++/for-12.C: New test.
5435         * testsuite/libgomp.c++/for-13.C: New test.
5436         * testsuite/libgomp.c++/for-14.C: New test.
5437         * testsuite/libgomp.c++/linear-1.C: New test.
5438         * testsuite/libgomp.c++/member-1.C: New test.
5439         * testsuite/libgomp.c++/member-2.C: New test.
5440         * testsuite/libgomp.c++/member-3.C: New test.
5441         * testsuite/libgomp.c++/member-4.C: New test.
5442         * testsuite/libgomp.c++/member-5.C: New test.
5443         * testsuite/libgomp.c++/ordered-1.C: New test.
5444         * testsuite/libgomp.c++/reduction-5.C: New test.
5445         * testsuite/libgomp.c++/reduction-6.C: New test.
5446         * testsuite/libgomp.c++/reduction-7.C: New test.
5447         * testsuite/libgomp.c++/reduction-8.C: New test.
5448         * testsuite/libgomp.c++/reduction-9.C: New test.
5449         * testsuite/libgomp.c++/reduction-10.C: New test.
5450         * testsuite/libgomp.c++/reference-1.C: New test.
5451         * testsuite/libgomp.c++/simd14.C: New test.
5452         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5453         * testsuite/libgomp.c++/target-5.C: New test.
5454         * testsuite/libgomp.c++/target-6.C: New test.
5455         * testsuite/libgomp.c++/target-7.C: New test.
5456         * testsuite/libgomp.c++/target-8.C: New test.
5457         * testsuite/libgomp.c++/target-9.C: New test.
5458         * testsuite/libgomp.c++/target-10.C: New test.
5459         * testsuite/libgomp.c++/target-11.C: New test.
5460         * testsuite/libgomp.c++/target-12.C: New test.
5461         * testsuite/libgomp.c++/taskloop-1.C: New test.
5462         * testsuite/libgomp.c++/taskloop-2.C: New test.
5463         * testsuite/libgomp.c++/taskloop-3.C: New test.
5464         * testsuite/libgomp.c++/taskloop-4.C: New test.
5465         * testsuite/libgomp.c++/taskloop-5.C: New test.
5466         * testsuite/libgomp.c++/taskloop-6.C: New test.
5467         * testsuite/libgomp.c++/taskloop-7.C: New test.
5468         * testsuite/libgomp.c++/taskloop-8.C: New test.
5469         * testsuite/libgomp.c++/taskloop-9.C: New test.
5470         * testsuite/libgomp.fortran/affinity1.f90: New test.
5471         * testsuite/libgomp.fortran/affinity2.f90: New test.
5473 2015-10-13  Tom de Vries  <tom@codesourcery.com>
5475         PR tree-optimization/67476
5476         * testsuite/libgomp.c/autopar-3.c: New test.
5477         * testsuite/libgomp.c/autopar-4.c: New test.
5478         * testsuite/libgomp.c/autopar-5.c: New test.
5479         * testsuite/libgomp.c/autopar-6.c: New test.
5480         * testsuite/libgomp.c/autopar-7.c: New test.
5481         * testsuite/libgomp.c/autopar-8.c: New test.
5483 2015-10-12  James Norris  <jnorris@codesourcery.com>
5485         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
5486         initializer.
5488 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
5490         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
5491         using load_gcc_lib.
5493 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
5495         * oacc-ptx.h: Remove file, moving its content into...
5496         * config/nvptx/fortran.c: ... here...
5497         * config/nvptx/oacc-init.c: ..., here...
5498         * config/nvptx/oacc-parallel.c: ..., and here.
5499         * config/nvptx/openacc.f90: New file.
5500         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
5501         (link_ptx): Don't link in predefined bits of PTX code.
5503 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
5504             Bernd Schmidt <bernds@codesourcery.com>
5506         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
5507         (struct targ_ptx_obj): New.
5508         (nvptx_tdata): Move earlier, change data format.
5509         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
5510         objects.
5511         (GOMP_OFFLOAD_load_image): Adjust.
5513 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
5515         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
5516         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5517         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5518         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5519         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5520         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5521         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5522         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5523         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5524         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5525         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5526         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5527         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5528         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5529         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5530         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5531         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5532         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5533         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5534         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5535         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5536         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5537         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5538         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5539         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5540         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5541         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5542         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5543         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5544         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5545         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5546         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5547         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5548         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5549         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5550         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5551         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5552         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5553         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5554         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5555         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5556         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5557         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5558         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5559         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5560         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5561         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5562         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5563         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5564         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5565         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5566         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5567         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5568         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5569         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5570         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5571         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5572         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5573         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5574         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5575         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5576         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5577         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5579 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
5581         * oacc-init.c (acc_on_device): Force optimization level.
5583 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
5585         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
5586         (cuda_errlist): Delete.
5587         (cuda_error): Reimplement.
5589 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
5591         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
5592         array.
5593         * libgomp.map (GOACC_parallel_keyed): New.
5594         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
5595         all callers.
5596         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
5597         and take keyed varargs list.  Adjust call to exec_func.
5598         (GOACC_parallel): Force host fallback.
5599         * libgomp_g.h (GOACC_parallel): Remove.
5600         (GOACC_parallel_keyed): Declare.
5601         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5602         (stuct targ_gn_descriptor): Replace name field with launch field.
5603         (nvptx_exec): Lose separate geometry args, take array.  Process
5604         dynamic dimensions and adjust.
5605         (struct nvptx_tdata): Replace fn_names field with fn_descs.
5606         (GOMP_OFFLOAD_load_image): Adjust for change in function table
5607         data.
5608         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5609         passing.
5610         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5611         passing.
5613 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
5615         PR libgomp/67141
5616         * oacc-int.h (goacc_host_init): Add declaration.
5617         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5618         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5620 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
5621             Sebastian Pop  <s.pop@samsung.com>
5623         * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5624         match o/p.
5625         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5626         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5627         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5628         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5629         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5631 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
5633         * configure.tgt: Add missing ;; in between nvptx and rtems
5634         snippets.
5636 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5638         * config/posix/pool.h (gomp_adjust_thread_attr): New.
5639         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5640         (gomp_thread_pool_reservoir): Add priority member.
5641         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5642         priority.
5643         (parse_thread_pools): Likewise.
5644         * team.c (gomp_team_start): Call configuration provided
5645         gomp_adjust_thread_attr(). Destroy thread attributes if
5646         necessary.
5647         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5649 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5651         * config/posix/pool.h: New.
5652         * config/rtems/pool.h: Likewise.
5653         * config/rtems/proc.c: Likewise.
5654         * libgomp.h (gomp_thread_destructor): Declare.
5655         * team.c: Include configuration provided "pool.h".
5656         (gomp_get_thread_pool): Define in configuration.
5657         (gomp_team_end): Call configuration defined
5658         gomp_release_thread_pool().
5660 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5662         * config/rtems/bar.c: New.
5663         * config/rtems/bar.h: Likewise.
5664         * config/rtems/mutex.c: Likewise.
5665         * config/rtems/mutex.h: Likewise.
5666         * config/rtems/sem.c: Likewise.
5667         * config/rtems/sem.h: Likewise.
5668         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5669         <sys/lock.h> header file.
5670         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5671         supported by Newlib.
5672         * configure: Regenerate.
5674 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5676         * team.c (gomp_new_thread_pool): Delete and move content to ...
5677         (gomp_get_thread_pool): ... new function.  Allocate and
5678         initialize thread pool on demand.
5679         (get_last_team): Use gomp_get_thread_pool().
5680         (gomp_team_start): Delete thread pool initialization.
5682 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5684         PR tree-optimization/65637
5685         * testsuite/libgomp.c/autopar-2.c: New test.
5687 2015-08-29  Tom de Vries  <tom@codesourcery.com>
5689         PR tree-optimization/46193
5690         * testsuite/libgomp.c/pr46193.c: New test.
5692 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
5694         libgomp/
5695         * libgomp.map: Add 4.0.2 version.
5696         * target.c (offload_image_descr): Add version field.
5697         (gomp_load_image_to_device): Add version argument.  Adjust plugin
5698         call.  Improve load mismatch diagnostic.
5699         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
5700         call.
5701         (GOMP_offload_regster): Make stub function, move bulk to ...
5702         (GOMP_offload_register_ver): ... here.  Process version argument.
5703         (GOMP_offload_unregister): Make stub function, move bulk to ...
5704         (GOMP_offload_unregister_ver): ... here.  Process version argument.
5705         (gomp_init_device): Process version field.
5706         (gomp_unload_device): Process version field.
5707         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5708         macros.  Check plugin version.
5709         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
5710         loader and unloader types.
5711         * oacc-host.c: Include gomp-constants.h.
5712         (host_version): New.
5713         (host_load_image, host_unload_image): Adjust.
5714         (host_dispatch): Add host_version.
5715         * plugin/plugin-nvptx.c: Include gomp-constants.h.
5716         (GOMP_OFFLOAD_version): New.
5717         (GOMP_OFFLOAD_load_image): Add version arg and check it.
5718         (GOMP_OFFLOAD_unload_image): Likewise.
5719         * plugin/plugin-host.c: Include gomp-constants.h.
5720         (GOMP_OFFLOAD_version): New.
5721         (GOMP_OFFLOAD_load_image): Add version arg.
5722         (GOMP_OFFLOAD_unload_image): Likewise.
5724 2015-08-24  Tom de Vries  <tom@codesourcery.com>
5726         PR tree-optimization/65468
5727         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5729 2015-08-24  Tom de Vries  <tom@codesourcery.com>
5731         PR tree-optimization/65468
5732         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5734 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
5736         PR libgomp/66761
5737         PR libgomp/67303
5738         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5739         (gomp_iter_guided_next): Idem.
5740         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5741         (gomp_iter_ull_guided_next): Idem.
5742         * config/linux/wait.h (do_spin): Idem.
5744 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
5746         * libgomp-plugin.h (enum offload_target_type): Remove
5747         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5748         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5749         * openacc.h (enum acc_device_t): Likewise.
5750         * openacc_lib.h: Likewise.
5751         * oacc-init.c (name_of_acc_device_t): Don't handle it.
5752         (acc_on_device): Just use __builtin_acc_on_device.
5753         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5754         of acc_on_device builtin.
5755         * plugin/plugin-host.h: Remove file.
5756         * plugin/plugin-host.c: Likewise, but salvage some content into...
5757         * oacc-host.c: ... this file.
5758         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5759         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5760         * Makefile.in: Regenerate.
5761         * configure: Likewise.
5762         * testsuite/lib/libgomp.exp
5763         (check_effective_target_openacc_host_nonshm_selected): Remove.
5764         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5765         ACC_DEVICE_TYPE=host_nonshm.
5766         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5767         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5768         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5769         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5770         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5771         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5773 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
5774             Jakub Jelinek  <jakub@redhat.com>
5776         * config/nvptx/affinity.c: New file.
5777         * config/nvptx/alloc.c: Likewise.
5778         * config/nvptx/bar.c: Likewise.
5779         * config/nvptx/barrier.c: Likewise.
5780         * config/nvptx/critical.c: Likewise.
5781         * config/nvptx/env.c: Likewise.
5782         * config/nvptx/error.c: Likewise.
5783         * config/nvptx/fortran.c: Likewise.
5784         * config/nvptx/iter.c: Likewise.
5785         * config/nvptx/iter_ull.c: Likewise.
5786         * config/nvptx/libgomp-plugin.c: Likewise.
5787         * config/nvptx/lock.c: Likewise.
5788         * config/nvptx/loop.c: Likewise.
5789         * config/nvptx/loop_ull.c: Likewise.
5790         * config/nvptx/mutex.c: Likewise.
5791         * config/nvptx/oacc-async.c: Likewise.
5792         * config/nvptx/oacc-cuda.c: Likewise.
5793         * config/nvptx/oacc-host.c: Likewise.
5794         * config/nvptx/oacc-init.c: Likewise.
5795         * config/nvptx/oacc-mem.c: Likewise.
5796         * config/nvptx/oacc-parallel.c: Likewise.
5797         * config/nvptx/oacc-plugin.c: Likewise.
5798         * config/nvptx/omp-lock.h: Likewise.
5799         * config/nvptx/ordered.c: Likewise.
5800         * config/nvptx/parallel.c: Likewise.
5801         * config/nvptx/proc.c: Likewise.
5802         * config/nvptx/ptrlock.c: Likewise.
5803         * config/nvptx/sections.c: Likewise.
5804         * config/nvptx/sem.c: Likewise.
5805         * config/nvptx/single.c: Likewise.
5806         * config/nvptx/splay-tree.c: Likewise.
5807         * config/nvptx/target.c: Likewise.
5808         * config/nvptx/task.c: Likewise.
5809         * config/nvptx/team.c: Likewise.
5810         * config/nvptx/time.c: Likewise.
5811         * config/nvptx/work.c: Likewise.
5812         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5813         * configure: Regenerate.
5814         * configure.tgt (config_path): Set to "nvptx" for target
5815         nvptx*-*-*.
5817 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
5819         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5821 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5823         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5824         (cuda_errlist): Constify.
5825         (errmsg):  Move into ...
5826         (cuda_error): ... here.  Make smaller.
5827         (_XSTR, _STR): Delete.
5828         (cuda_synames): Delete.
5829         (verify_device_library): Delete.
5830         (nvptx_init): Don't call it.
5832 2015-07-28  Tom de Vries  <tom@codesourcery.com>
5834         * testsuite/libgomp.c/uns-outer-4.c: New test.
5836 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
5838         * testsuite/libgomp.c/pr66714.c: New test.
5840 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
5842         PR libgomp/66950
5843         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5844         (fib_ref): New function.
5845         (fib): Correct corner cases in the recursion.
5846         (main): Replace the non-simd loop with fib_ref call.
5847         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5848         subroutine.
5849         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
5850         for the last array element value.  Replace the non-simd loop with
5851         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
5852         of the last array element with according Fibonacci sequence element.
5853         (fib): Correct corner cases in the recursion.
5855 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
5857         * target.c (gomp_offload_image_to_device): Rename to ...
5858         (gomp_load_image_to_device): ... here.
5859         (GOMP_offload_register): Adjust call.
5860         (gomp_init_device): Likewise.
5861         (gomp_unload_image_from_device): New.  Broken out of ...
5862         (GOMP_offload_unregister): ... here.  Call it.
5863         (gomp_unload_device): New.
5864         * libgomp.h (gomp_unload_device): Declare.
5865         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5866         mem maps.
5868 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
5870         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5871         wait=-specific if.
5872         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5873         !=0 condition.
5874         (goacc_waits): Move !num_waits handling to ...
5875         (GOACC_wait): ... here, the only caller that might have zero waits.
5877         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5878         (struct ptx_image_data): Move earlier, add fns field.
5879         (struct ptx_device): Add images and image_lock fields.
5880         (ptx_images, ptx_image_lock): Delete.
5881         (nvptx_open_device): Initialize images and image_lock fields.
5882         (nvptx_close_device): Destroy image_lock.
5883         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5884         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5885         fields.
5887 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
5889         * target.c (GOMP_offload_register): Use int for device type arg.
5890         (GOMP_offload_unregister): Likewise.
5892         * target.c (struct_offload_image_descr): Constify host_table.
5893         (gomp_offload_image_to_device): Likewise.
5894         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5896         * libgomp.h (gomp_device_descr): Constify target data arguments.
5897         * target.c (struct offload_image_descr): Constify target_data.
5898         (gomp_offload_image_to_device): Likewise.
5899         (GOMP_offload_register): Likewise.
5900         (GOMP_offload_unrefister): Likewise.
5901         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5902         GOMP_OFFLOAD_unload_image): Constify target data.
5903         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5904         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5906 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
5908         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5909         Workaround driver library const error.
5910         (struct nvptx_tdata, nvptx_tdata_t): New.
5911         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5912         type.
5914 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
5916         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5917         of EPS parameter from integer to real.
5918         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5919         type of EPS parameter from integer to real.
5921 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5923         * team.c (get_last_team): New.
5924         (gomp_new_team): Recycle last non-nested team if possible.
5925         (gomp_team_end): Move team work share list free lock destruction
5926         to ...
5927         (free_team): ... here.
5929 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
5931         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5932         and ref from int to double.  Replaced their comparison with
5933         an inequality of their difference and EPS.
5934         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5935         comparison of pri and a reference number with an inequality of their
5936         difference and EPS.
5937         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5938         the comparison of sum and sum_ref with an inequality of their
5939         difference and EPS.
5940         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5941         the comparison of pri and a reference number with an inequality of
5942         their difference and EPS.
5944 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
5946         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5947         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5948         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5949         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5950         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5951         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5952         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5953         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5954         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5955         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5956         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5957         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5958         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5959         variables.
5960         (vec_mult): Likewise.  Add #pragma omp taskwait.
5961         (main): Adjust caller.
5962         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5963         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5964         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5965         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5966         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5967         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5968         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5969         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5970         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5971         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5972         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5973         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5974         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5975         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5976         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5977         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5978         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5979         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5980         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5981         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5982         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5983         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5984         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5985         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5986         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5987         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5988         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5989         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5990         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5991         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5992         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5993         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5994         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5995         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5996         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5997         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5998         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5999         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
6000         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
6001         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
6002         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
6003         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
6004         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
6005         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
6006         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
6007         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
6008         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
6009         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
6010         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
6011         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
6012         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
6013         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
6014         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
6015         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
6016         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
6017         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
6018         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
6019         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
6020         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
6021         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
6022         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
6023         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
6024         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
6025         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
6026         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
6027         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
6028         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
6029         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
6030         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
6031         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
6032         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
6033         (vec_mult): Add !$omp taskwait.
6034         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
6035         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
6036         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
6037         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
6038         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
6039         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
6040         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
6041         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
6042         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
6043         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
6044         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
6045         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
6046         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
6047         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
6048         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
6049         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
6050         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
6051         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
6052         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
6053         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
6054         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
6055         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
6056         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
6057         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
6058         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
6059         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
6060         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
6061         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
6062         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
6063         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
6064         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
6065         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
6066         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
6067         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
6068         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
6069         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
6070         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
6071         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
6072         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
6073         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
6074         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
6075         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
6076         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
6077         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
6078         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
6079         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
6080         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
6081         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
6082         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
6083         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
6084         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
6085         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
6086         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
6087         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
6088         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
6089         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
6090         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
6091         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
6092         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
6093         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
6094         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
6095         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
6096         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
6097         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
6098         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
6099         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
6100         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
6102 2015-07-10  Tom de Vries  <tom@codesourcery.com>
6104         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
6105         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
6107 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
6109         PR libgomp/65099
6110         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
6111         in a 64-bit configuration.
6112         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
6113         offloading testing if no such device is available.
6114         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6115         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6117 2015-07-08  Tom de Vries  <tom@codesourcery.com>
6119         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
6120         second call to f.
6121         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6123 2015-07-07  Tom de Vries  <tom@codesourcery.com>
6125         PR tree-optimization/66642
6126         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
6127         iteration count case.
6128         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
6129         function, factor out of ...
6130         (main): ... here.  Test low iteration count case.
6132 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6134         * libgomp.h (gomp_thread_pool): Comment last_team field.
6136 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
6138         * testsuite/libgomp.c++/pr66702-1.C: Require
6139         vect_simd_clones effective target.
6140         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
6142 2015-06-30  Tom de Vries  <tom@codesourcery.com>
6144         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6145         already set.  Use DEFAULT_CFLAGS in dg-runtest.
6146         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
6147         "-O2".
6149 2015-06-30  Tom de Vries  <tom@codesourcery.com>
6151         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
6152         already set.  Use DEFAULT_CFLAGS in dg-runtest.
6153         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
6154         * testsuite/libgomp.c++/pr64824.C: Same.
6155         * testsuite/libgomp.c++/pr64868.C: Same.
6156         * testsuite/libgomp.c++/pr66199-1.C: Same.
6157         * testsuite/libgomp.c++/pr66199-2.C: Same.
6158         * testsuite/libgomp.c++/target-2.C: Same.
6159         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
6160         -std=<standard> option.
6161         * testsuite/libgomp.c++/udr-11.C: Same.
6162         * testsuite/libgomp.c++/udr-12.C: Same.
6163         * testsuite/libgomp.c++/udr-13.C: Same.
6164         * testsuite/libgomp.c++/udr-14.C: Same.
6165         * testsuite/libgomp.c++/udr-15.C: Same.
6166         * testsuite/libgomp.c++/udr-16.C: Same.
6167         * testsuite/libgomp.c++/udr-17.C: Same.
6168         * testsuite/libgomp.c++/udr-18.C: Same.
6169         * testsuite/libgomp.c++/udr-19.C: Same.
6170         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
6171         * testsuite/libgomp.c++/simd-1.C: Same.
6172         * testsuite/libgomp.c++/simd-2.C: Same.
6173         * testsuite/libgomp.c++/simd-3.C: Same.
6174         * testsuite/libgomp.c++/simd-4.C: Same.
6175         * testsuite/libgomp.c++/simd-5.C: Same.
6176         * testsuite/libgomp.c++/simd-6.C: Same.
6177         * testsuite/libgomp.c++/simd-7.C: Same.
6178         * testsuite/libgomp.c++/simd-8.C: Same.
6179         * testsuite/libgomp.c++/simd-9.C: Same.
6180         * testsuite/libgomp.c++/simd10.C: Same.
6181         * testsuite/libgomp.c++/simd11.C: Same.
6182         * testsuite/libgomp.c++/simd12.C: Same.
6183         * testsuite/libgomp.c++/simd13.C: Same.
6185 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
6187         PR middle-end/66702
6188         * testsuite/libgomp.c++/pr66702-1.C: New test.
6189         * testsuite/libgomp.c++/pr66702-2.C: New test.
6191 2015-06-30  Tom de Vries  <tom@codesourcery.com>
6193         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
6194         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
6195         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
6196         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
6198 2015-06-30  Tom de Vries  <tom@codesourcery.com>
6200         PR tree-optimization/66652
6201         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
6202         using restrict pointers.
6203         (main): Add arguments to calls to f.
6204         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6206 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
6208         * configure.ac: Fix check for header <sys/sysctl.h>.
6209         * configure: Regenerate.
6210         * config.h.in: Likewise.
6212 2015-06-23  Tom de Vries  <tom@codesourcery.com>
6214         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
6215         abort.
6216         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
6218 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
6220         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
6221         acc_device_nvidia.
6223         PR libgomp/66518
6224         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
6225         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6227 2015-06-15  Tom de Vries  <tom@codesourcery.com>
6229         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
6230         dg-additional-options for any remaining options.
6231         * testsuite/libgomp.c/atomic-2.c: Same.
6232         * testsuite/libgomp.c/atomic-4.c: Same.
6233         * testsuite/libgomp.c/atomic-5.c: Same.
6234         * testsuite/libgomp.c/atomic-6.c: Same.
6235         * testsuite/libgomp.c/autopar-1.c: Same.
6236         * testsuite/libgomp.c/copyin-1.c: Same.
6237         * testsuite/libgomp.c/copyin-2.c: Same.
6238         * testsuite/libgomp.c/copyin-3.c: Same.
6239         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
6240         * testsuite/libgomp.c/nestedfn-5.c: Same.
6241         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
6242         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
6243         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
6244         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6245         * testsuite/libgomp.c/pr32362-1.c: Same.
6246         * testsuite/libgomp.c/pr32362-2.c: Same.
6247         * testsuite/libgomp.c/pr32362-3.c: Same.
6248         * testsuite/libgomp.c/pr39591-1.c: Same.
6249         * testsuite/libgomp.c/pr39591-2.c: Same.
6250         * testsuite/libgomp.c/pr39591-3.c: Same.
6251         * testsuite/libgomp.c/pr58392.c: Same.
6252         * testsuite/libgomp.c/pr58756.c: Same.
6253         * testsuite/libgomp.c/simd-1.c: Same.
6254         * testsuite/libgomp.c/simd-10.c: Same.
6255         * testsuite/libgomp.c/simd-11.c: Same.
6256         * testsuite/libgomp.c/simd-12.c: Same.
6257         * testsuite/libgomp.c/simd-13.c: Same.
6258         * testsuite/libgomp.c/simd-14.c: Same.
6259         * testsuite/libgomp.c/simd-15.c: Same.
6260         * testsuite/libgomp.c/simd-2.c: Same.
6261         * testsuite/libgomp.c/simd-3.c: Same.
6262         * testsuite/libgomp.c/simd-4.c: Same.
6263         * testsuite/libgomp.c/simd-5.c: Same.
6264         * testsuite/libgomp.c/simd-6.c: Same.
6265         * testsuite/libgomp.c/simd-7.c: Same.
6266         * testsuite/libgomp.c/simd-8.c: Same.
6267         * testsuite/libgomp.c/simd-9.c: Same.
6269 2015-06-15  Tom de Vries  <tom@codesourcery.com>
6271         * testsuite/libgomp.c/pr35625.c: Fix typo.
6273 2015-06-15  Tom de Vries  <tom@codesourcery.com>
6275         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
6276         in dg-options.
6277         * testsuite/libgomp.c/atomic-3.c: Same.
6278         * testsuite/libgomp.c/debug-1.c: Same.
6279         * testsuite/libgomp.c/nqueens-1.c: Same.
6280         * testsuite/libgomp.c/pr26171.c: Same.
6281         * testsuite/libgomp.c/pr48591.c: Same.
6282         * testsuite/libgomp.c/pr64824.c: Same.
6283         * testsuite/libgomp.c/pr64868.c: Same.
6284         * testsuite/libgomp.c/pr66133.c: Same.
6285         * testsuite/libgomp.c/pr66199-1.c: Same.
6286         * testsuite/libgomp.c/pr66199-2.c: Same.
6287         * testsuite/libgomp.c/target-8.c: Same.
6289 2015-06-15  Tom de Vries  <tom@codesourcery.com>
6291         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
6292         -std={gnu99,c99}.
6293         * testsuite/libgomp.c/for-1.c: Same.
6294         * testsuite/libgomp.c/for-2.c: Same.
6295         * testsuite/libgomp.c/for-3.c: Same.
6296         * testsuite/libgomp.c/pr35625.c: Same.
6297         * testsuite/libgomp.c/pr39154.c: Same.
6298         * testsuite/libgomp.c/simd-16.c: Same.
6299         * testsuite/libgomp.c/simd-17.c: Same.
6301 2015-06-13  Tom de Vries  <tom@codesourcery.com>
6303         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6305 2015-06-13  Tom de Vries  <tom@codesourcery.com>
6307         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6308         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6309         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6310         (N): Define.
6311         (main): Use N instead of hardcoded constants.
6313 2015-06-05  Tom de Vries  <tom@codesourcery.com>
6315         merge from gomp4 branch:
6316         2015-05-28  Tom de Vries  <tom@codesourcery.com>
6318         PR tree-optimization/65443
6319         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6320         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6321         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6323 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6325         * testsuite/libgomp.graphite/bounds.c: Adjust for
6326         cleanup-tree-dump removal.
6327         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6328         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6329         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6330         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6331         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6332         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6333         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6334         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6335         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6336         * testsuite/libgomp.graphite/pr41118.c: Likewise.
6338 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
6340         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6341         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6342         (futex_wake) [!__x86_64__]: Ditto.
6344 2015-05-28  Julian Brown  <julian@codesourcery.com>
6346         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6347         function comment. Only call gomp_fatal if new argument is true.
6348         (acc_dev_num_out_of_range): New function.
6349         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6350         acc_dev_num_out_of_range as appropriate.
6351         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6352         (acc_get_device_num, acc_set_device_num): Update calls to
6353         resolve_device.
6354         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6355         output.
6357 2015-05-28  Julian Brown  <julian@codesourcery.com>
6359         PR libgomp/65742
6360         * oacc-init.c (plugin/plugin-host.h): Include.
6361         (acc_on_device): Check whether we're in an offloaded region for
6362         host_nonshm
6363         plugin. Don't use __builtin_acc_on_device.
6364         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6365         nonshm_exec flag in thread-local data.
6366         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6367         data for host_nonshm plugin.
6368         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6369         for host_nonshm plugin.
6370         * plugin/plugin-host.h: New.
6372 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
6374         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6376 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
6378         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6379         Declare as int.
6380         (FUTEX_PRIVATE_FLAG): Remove L suffix.
6381         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6382         Declare as int.
6384 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
6386         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
6388 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6390         * target.c (gomp_map_pointer): New function abstracting out
6391         GOMP_MAP_POINTER handling.
6392         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6393         gomp_map_pointer().
6395 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
6397         PR middle-end/66199
6398         * testsuite/libgomp.c/pr66199-1.c: New test.
6399         * testsuite/libgomp.c/pr66199-2.c: New test.
6400         * testsuite/libgomp.c++/pr66199-1.C: New test.
6401         * testsuite/libgomp.c++/pr66199-2.C: New test.
6402         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6403         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6405 2015-05-19  Julian Brown  <julian@codesourcery.com>
6407         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6408         on cuInit failure.
6410 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
6412         PR middle-end/66133
6413         * testsuite/libgomp.c/pr66133.c: New test.
6415 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
6417         * Makefile.in: Regenerated with automake-1.11.6.
6418         * aclocal.m4: Likewise.
6419         * config.h.in: Likewise.
6420         * configure: Likewise.
6421         * testsuite/Makefile.in: Likewise.
6423 2015-05-08  Jason Merrill  <jason@redhat.com>
6425         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6426         _Complex.
6428         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6430 2015-05-06  Julian Brown  <julian@codesourcery.com>
6432         * oacc-init.c (acc_device_lock): Add explanatory comment.
6433         (resolve_device): Add comment about locking requirement.
6434         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6435         gomp_init_device and gomp_fini_device calls.
6436         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6437         (acc_get_device_num, acc_set_device_num): Add locking around
6438         resolve_device and gomp_init_device calls.
6440 2015-05-06  Julian Brown  <julian@codesourcery.com>
6442         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6443         goacc_thread_lock on error paths.
6444         * oacc-mem.c (lookup_host): Remove locking from function. Note
6445         locking requirement for caller in function comment.
6446         (lookup_dev): Likewise.
6447         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6448         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6449         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6450         Add locking.
6452 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
6454         PR testsuite/65205
6455         PR libgomp/65993
6456         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6457         don't expect "0x" prefix for "%p" format specifier, don't expect
6458         "(nil)" for NULL pointer.
6459         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6460         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6461         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6462         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6463         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6464         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6465         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6466         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6467         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6468         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6469         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6470         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6471         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6472         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6473         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6474         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6475         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6476         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6477         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6478         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6479         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6480         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6481         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6482         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6483         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6484         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6485         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6486         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6487         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
6488         accurately specify what we're looking for.
6489         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6490         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6491         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6492         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6493         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6495 2015-04-30  James Norris  <jnorris@codesourcery.com>
6497         PR testsuite/65205
6498         * testsuite/lib/libgomp.exp
6499         (check_effective_target_openacc_host_selected)
6500         (check_effective_target_openacc_host_nonshm_selected): New
6501         procedures.
6502         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
6503         dg-shouldfail.
6504         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6505         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6506         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6507         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6508         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6509         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6510         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6511         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6512         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6513         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6514         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6515         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6516         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6517         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6518         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6519         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6520         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6521         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6522         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6523         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6524         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6525         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6526         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6527         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6528         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6529         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6530         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6531         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6532         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6533         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6534         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6535         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6536         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6537         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6538         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6539         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6540         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6541         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6542         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6543         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6544         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6545         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6546         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6548 2015-04-08  Julian Brown  <julian@codesourcery.com>
6550         * libgomp.h (target_mem_desc: Remove mem_map field.
6551         (acc_dispatch_t): Remove open_device_func, close_device_func,
6552         get_device_num_func, set_device_num_func, target_data members.
6553         Change create_thread_data_func argument to device number instead of
6554         generic pointer.
6555         * oacc-async.c (assert.h): Include.
6556         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
6557         (acc_wait_all, acc_wait_all_async): Use current host thread's
6558         active device, not base_dev.
6559         * oacc-cuda.c (acc_get_current_cuda_device)
6560         (acc_get_current_cuda_context, acc_get_cuda_stream)
6561         (acc_set_cuda_stream): Likewise.
6562         * oacc-host.c (host_dispatch): Don't set open_device_func,
6563         close_device_func, get_device_num_func or set_device_num_func.
6564         * oacc-init.c (base_dev, init_key): Remove.
6565         (cached_base_dev): New.
6566         (name_of_acc_device_t): New.
6567         (acc_init_1): Initialise default-numbered device, not zeroth.
6568         (acc_shutdown_1): Close all devices of a given type.
6569         (goacc_destroy_thread): Don't use base_dev.
6570         (lazy_open, lazy_init, lazy_init_and_open): Remove.
6571         (goacc_attach_host_thread_to_device): New.
6572         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
6573         (acc_get_num_devices): Don't use base_dev.
6574         (acc_set_device_type): Reimplement.
6575         (acc_get_device_type): Don't use base_dev.
6576         (acc_get_device_num): Tweak logic.
6577         (acc_set_device_num): Likewise.
6578         (acc_on_device): Use acc_get_device_type.
6579         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
6580         (goacc_lazy_initialize): Reimplement with acc_init and
6581         goacc_attach_host_thread_to_device.
6582         * oacc-int.h (goacc_thread): Add base_dev field.
6583         (base_dev): Remove extern declaration.
6584         (goacc_attach_host_thread_to_device): Add prototype.
6585         * oacc-mem.c (acc_malloc): Use current thread's device instead of
6586         base_dev.
6587         (acc_free): Likewise.
6588         (acc_memcpy_to_device): Likewise.
6589         (acc_memcpy_from_device): Likewise.
6590         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
6591         goacc_lazy_initialize (throughout).
6592         (GOACC_parallel): Use tgt_offset to locate target functions.
6593         * target.c (gomp_map_vars): Don't set tgt->mem_map.
6594         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
6595         (gomp_load_plugin_for_device): Remove open_device, close_device,
6596         get_device_num, set_device_num openacc hook initialisation. Don't set
6597         openacc.target_data.
6598         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6599         (GOMP_OFFLOAD_openacc_close_device)
6600         (GOMP_OFFLOAD_openacc_get_device_num)
6601         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6602         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6603         to int.
6604         * plugin/plugin-nvptx.c (ptx_inited): Remove.
6605         (instantiated_devices, ptx_dev_lock): New.
6606         (struct ptx_image_data): New.
6607         (ptx_devices, ptx_images, ptx_image_lock): New.
6608         (fini_streams_for_device): Reorder cuStreamDestroy call.
6609         (nvptx_get_num_devices): Remove forward declaration.
6610         (nvptx_init): Change return type to bool.
6611         (nvptx_fini): Remove.
6612         (nvptx_attach_host_thread_to_device): New.
6613         (nvptx_open_device): Return struct ptx_device* instead of void*.
6614         (nvptx_close_device): Change argument type to struct ptx_device*,
6615         return type to void.
6616         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6617         (kernel_target_data, kernel_host_table): Remove static globals.
6618         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6619         (GOMP_OFFLOAD_init_device): Reimplement.
6620         (GOMP_OFFLOAD_fini_device): Likewise.
6621         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6622         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6623         (GOMP_OFFLOAD_host2dev): Use ORD argument.
6624         (GOMP_OFFLOAD_openacc_open_device)
6625         (GOMP_OFFLOAD_openacc_close_device)
6626         (GOMP_OFFLOAD_openacc_set_device_num)
6627         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6628         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6629         (device number).
6631         testsuite/
6632         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6634 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
6636         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6637         * libgomp.h (struct gomp_memory_mapping): Remove.
6638         (struct target_mem_desc): Change type of mem_map from
6639         gomp_memory_mapping * to splay_tree_s *.
6640         (struct gomp_device_descr): Remove register_image_func, get_table_func.
6641         Add load_image_func, unload_image_func.
6642         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6643         Remove offload_regions_registered.
6644         (gomp_init_tables): Remove.
6645         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6646         to splay_tree_s *.
6647         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6648         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6649         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6650         offload_regions_registered.
6651         Initialize load_image_func, unload_image_func, mem_map.root.
6652         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6653         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6654         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6655         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6656         gomp_memory_mapping *.  Use dev's lock and splay_tree.
6657         (lookup_dev): Use dev's lock.
6658         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6659         (acc_is_present): Likewise.
6660         (acc_map_data): Likewise.
6661         (acc_unmap_data): Likewise.  Use dev's lock.
6662         (present_create_copy): Likewise.
6663         (delete_copyout): Pass dev to lookup_host instead of mem_map.
6664         (update_dev_host): Likewise.
6665         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
6666         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6667         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6668         (GOMP_OFFLOAD_get_table): Remove
6669         (GOMP_OFFLOAD_load_image): New function.
6670         (GOMP_OFFLOAD_unload_image): New function.
6671         * target.c (register_lock): New mutex for offload image registration.
6672         (num_devices): Do not guard with PLUGIN_SUPPORT.
6673         (gomp_realloc_unlock): New static function.
6674         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
6675         before gomp_fatal.
6676         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6677         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
6678         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6679         mem_map's.
6680         (gomp_unmap_vars): Likewise.
6681         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
6682         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
6683         (gomp_offload_image_to_device): New static function.
6684         (GOMP_offload_register): Add mutex lock.
6685         Call gomp_offload_image_to_device for all initialized devices.
6686         Replace gomp_realloc with gomp_realloc_unlock.
6687         (GOMP_offload_unregister): New function.
6688         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
6689         get_table_func from the plugin with calls to init_device_func and
6690         gomp_offload_image_to_device.
6691         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6692         to splay_tree_s *.
6693         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
6694         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
6695         (GOMP_target_data): Do not call gomp_init_tables.
6696         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
6697         (gomp_load_plugin_for_device): Replace register_image and get_table
6698         with load_image and unload_image in DLSYM ().
6699         (gomp_register_images_for_device): Remove function.
6700         (gomp_target_init): Do not initialize current_device.mem_map.*,
6701         current_device.offload_regions_registered.
6702         Remove call to gomp_register_images_for_device.
6703         Do not free offload_images and num_offload_images.
6705 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
6707         PR fortran/65597
6708         * testsuite/libgomp.fortran/pr65597.f90: New test.
6710 2015-03-27  Tom de Vries  <tom@codesourcery.com>
6712         PR testsuite/65594
6713         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6714         (init, check): New function.
6715         (foo): Change return type to void.
6716         (main): Call init and check.
6718 2015-03-27  Tom de Vries  <tom@codesourcery.com>
6720         PR testsuite/65594
6721         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6722         (foo): Use M for non-inner loops to scale down test-case.
6724 2015-03-25  Kai Tietz  <ktietz@redhat.com>
6726         PR libgomp/64972
6727         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6728         (GOACC_data_start): Likewise.
6729         * target.c (gomp_map_vars): Likewise.
6731 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
6733         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6734         hppa*-*-hpux*.
6736 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
6738         * testsuite/libgomp.c/target-10.c: New test.
6739         * testsuite/libgomp.c++/target-4.C: New test.
6741 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
6743         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6744         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6746 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6748         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6749         * configure.ac (*-*-rtems*): Assume Pthread is supported.
6750         (pthread.h): Check for this header file.
6751         * configure: Regenerate.
6753 2015-02-25  Tom de Vries  <tom@codesourcery.com>
6755         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6756         (check_reduction_op, check_reduction_macro, max, min):
6757         Declare.
6758         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6759         function.
6760         (main): Use new functions.
6762 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
6764         * target.c (gomp_load_plugin_for_device): Use const char * instead of
6765         char * for variables holding dlerror return values.
6766         (DLSYM_OPT): Ditto.
6768 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
6770         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6772 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
6773             Cesar Philippidis  <cesar@codesourcery.com>
6775         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6776         GOACC_ctaid, and GOACC_nctaid routines.
6778 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
6780         PR c/64824
6781         * testsuite/libgomp.c/atomic-18.c: New test.
6782         * testsuite/libgomp.c++/atomic-16.C: New test.
6784 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
6786         PR c/64824
6787         PR c/64868
6788         * testsuite/libgomp.c/pr64824.c: New test.
6789         * testsuite/libgomp.c/pr64868.c: New test.
6790         * testsuite/libgomp.c++/pr64824.C: New test.
6791         * testsuite/libgomp.c++/pr64868.C: New test.
6793 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
6795         PR libgomp/64635
6796         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6797         Link with -lpthread.
6798         * config/aix/plugin-suffix.h: Delete.
6800 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
6802         PR libgomp/64635
6803         * configure.tgt (*-*-aix*): Use config_path "aix posix".
6804         (*-*-darwin*): Use config_path "bsd darwin posix".
6805         (*-*-hpux*): Use config_path "hpux posix".
6806         * target.c: Add include of plugin-suffix.h and use
6807         SONAME_SUFFIX macro.
6808         * config/aix/plugin-suffix.h: New file.
6809         * config/darwin/plugin-suffix.h: New file.
6810         * config/hpux/plugin-suffix.h: New file.
6811         * config/posix/plugin-suffix.h: New file.
6813 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
6815         PR middle-end/64734
6816         * libgomp.c/pr64734.c: New test.
6818 2015-01-23  Tom de Vries  <tom@codesourcery.com>
6820         PR libgomp/64672
6821         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6823 2015-01-23  Tom de Vries  <tom@codesourcery.com>
6825         PR libgomp/64707
6826         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6827         dg-options.
6829 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
6831         PR libgomp/64625
6832         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6833         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6834         formal parameter.  Update all users.
6835         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6836         Document unused formal parameter.
6838 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
6840         * oacc-parallel.c: Don't include <alloca.h>.
6841         (GOACC_parallel): Use gomp_alloca instead of alloca.
6843 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
6845         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6847 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
6848             James Norris  <jnorris@codesourcery.com>
6849             Tom de Vries  <tom@codesourcery.com>
6850             Julian Brown  <julian@codesourcery.com>
6851             Cesar Philippidis  <cesar@codesourcery.com>
6852             Nathan Sidwell  <nathan@codesourcery.com>
6853             Tobias Burnus  <burnus@net-b.de>
6855         * Makefile.am (search_path): Add $(top_srcdir)/../include.
6856         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6857         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6858         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6859         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6860         Include $(top_srcdir)/plugin/Makefrag.am.
6861         (nodist_libsubinclude_HEADERS): Add openacc.h.
6862         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6863         openacc.f90, openacc.mod, openacc_kinds.mod.
6864         (omp_lib.mod): Generalize into...
6865         (%.mod): ... this new rule.
6866         (openacc_kinds.mod, openacc.mod): New rules.
6867         * plugin/configfrag.ac: New file.
6868         * configure.ac: Move plugin/offloading support into it.  Include
6869         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
6870         * plugin/Makefrag.am: New file.
6871         * testsuite/Makefile.am (OFFLOAD_TARGETS)
6872         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6873         export.
6874         (libgomp-test-support.exp): New rule.
6875         (all-local): Depend on it.
6876         * Makefile.in: Regenerate.
6877         * testsuite/Makefile.in: Regenerate.
6878         * config.h.in: Likewise.
6879         * configure: Likewise.
6880         * configure.tgt: Harden shell syntax.
6881         * env.c: Include "oacc-int.h".
6882         (parse_acc_device_type): New function.
6883         (gomp_debug_var, goacc_device_type, goacc_device_num): New
6884         variables.
6885         (initialize_env): Initialize those.  Call
6886         goacc_runtime_initialize.
6887         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6888         (gomp_fatal): Call gomp_vfatal.
6889         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6890         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6891         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6892         (splay_tree_node, splay_tree, splay_tree_key)
6893         (struct target_mem_desc, struct splay_tree_key_s)
6894         (struct gomp_memory_mapping, struct acc_dispatch_t)
6895         (struct gomp_device_descr, gomp_acc_insert_pointer)
6896         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6897         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6898         (gomp_free_memmap, gomp_fini_device): New declarations.
6899         (gomp_vdebug, gomp_debug): New macros.
6900         Include "splay-tree.h".
6901         * libgomp.map (OACC_2.0): New symbol version.  Use for
6902         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6903         acc_set_device_type_h_, acc_get_device_type,
6904         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6905         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6906         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6907         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6908         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6909         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6910         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6911         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6912         acc_copyin_array_h_, acc_present_or_copyin,
6913         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6914         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6915         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6916         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6917         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6918         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6919         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6920         acc_update_device, acc_update_device_32_h_,
6921         acc_update_device_64_h_, acc_update_device_array_h_,
6922         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6923         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6924         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6925         acc_is_present_64_h_, acc_is_present_array_h_,
6926         acc_memcpy_to_device, acc_memcpy_from_device,
6927         acc_get_current_cuda_device, acc_get_current_cuda_context,
6928         acc_get_cuda_stream, acc_set_cuda_stream.
6929         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
6930         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6931         GOACC_update, GOACC_wait, GOACC_get_thread_num,
6932         GOACC_get_num_threads.
6933         (GOMP_PLUGIN_1.0): New symbol version.  Use for
6934         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6935         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6936         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6937         GOMP_PLUGIN_acc_thread.
6938         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6939         environment variable.
6940         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6941         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6942         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6943         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6944         (splay_tree_remove): New declarations.
6945         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6946         (splay_tree_remove, splay_tree_lookup): Move into...
6947         * splay-tree.c: ... this new file.
6948         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6949         (splay_tree_node, splay_tree, splay_tree_key)
6950         (struct target_mem_desc, struct splay_tree_key_s)
6951         (struct gomp_device_descr): Don't declare.
6952         (num_devices_openmp): New variable.
6953         (gomp_get_num_devices ): Use it.
6954         (gomp_init_targets_once): New function.
6955         (gomp_get_num_devices ): Use it.
6956         (get_kind, gomp_copy_from_async, gomp_free_memmap)
6957         (gomp_fini_device, gomp_register_image_for_device): New functions.
6958         (gomp_map_vars): Add devaddrs parameter.
6959         (gomp_update): Add mm parameter.
6960         (gomp_init_device): Move most of it into...
6961         (gomp_init_tables): ... this new function.
6962         (gomp_register_images_for_device): Remove function.
6963         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6964         Make them hidden instead of static.
6965         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6966         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6967         (GOMP_target_end_data, GOMP_target_update)
6968         (gomp_load_plugin_for_device, gomp_target_init): Update for
6969         OpenACC changes.
6970         * oacc-async.c: New file.
6971         * oacc-cuda.c: Likewise.
6972         * oacc-host.c: Likewise.
6973         * oacc-init.c: Likewise.
6974         * oacc-int.h: Likewise.
6975         * oacc-mem.c: Likewise.
6976         * oacc-parallel.c: Likewise.
6977         * oacc-plugin.c: Likewise.
6978         * oacc-plugin.h: Likewise.
6979         * oacc-ptx.h: Likewise.
6980         * openacc.f90: Likewise.
6981         * openacc.h: Likewise.
6982         * openacc_lib.h: Likewise.
6983         * plugin/plugin-host.c: Likewise.
6984         * plugin/plugin-nvptx.c: Likewise.
6985         * libgomp-plugin.c: Likewise.
6986         * libgomp-plugin.h: Likewise.
6987         * libgomp_target.h: Remove file after merging content into the
6988         former file.  Update all users.
6989         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6990         (offload_targets_s, offload_targets_s_openacc): New variables.
6991         (check_effective_target_openacc_nvidia_accel_present)
6992         (check_effective_target_openacc_nvidia_accel_selected): New
6993         procedures.
6994         (libgomp_init): Update for OpenACC changes.
6995         * testsuite/libgomp-test-support.exp.in: New file.
6996         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6997         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6998         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6999         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
7000         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
7001         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7002         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
7003         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7004         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
7005         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
7006         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
7007         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7008         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
7009         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7010         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
7011         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
7012         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7013         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7014         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7015         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7016         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
7017         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7018         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7019         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7020         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7021         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7022         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7023         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7024         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7025         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7026         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7027         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
7028         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
7029         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
7030         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
7031         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7032         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7033         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7034         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
7035         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7036         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7037         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
7038         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7039         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7040         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7041         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
7042         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7043         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7044         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7045         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7046         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7047         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
7048         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7049         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7050         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7051         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7052         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7053         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7054         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7055         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
7056         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
7057         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
7058         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7059         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7060         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7061         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
7062         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
7063         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7064         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7065         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7066         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
7067         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7068         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7069         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7070         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
7071         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
7072         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7073         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7074         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
7075         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
7076         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
7077         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
7078         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7079         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7080         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7081         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
7082         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
7083         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7084         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7085         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
7086         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
7087         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
7088         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
7089         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7090         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7091         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7092         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7093         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
7094         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7095         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7096         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
7097         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
7098         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
7099         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7100         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
7101         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
7102         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
7103         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
7104         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
7105         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7106         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
7107         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
7108         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7109         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
7110         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7111         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
7112         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
7113         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
7114         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
7115         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
7116         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
7117         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
7118         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
7119         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
7120         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7121         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
7122         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7123         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
7124         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
7125         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
7126         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
7127         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
7128         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7129         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
7130         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
7131         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7132         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7133         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7134         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7135         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
7136         Likewise.
7137         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
7138         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
7139         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
7140         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
7141         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
7142         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7143         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7144         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7145         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7146         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7147         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7148         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7149         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7150         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7151         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7152         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7153         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7154         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7155         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7156         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7157         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7158         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7159         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7160         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7161         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7162         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7163         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7164         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7165         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7166         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7167         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7168         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7169         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7170         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7171         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7172         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7173         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7174         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7175         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7176         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7177         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7178         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7179         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7180         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7181         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7182         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7183         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7184         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7185         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7186         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7187         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7188         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7189         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7190         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7191         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7192         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7193         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7194         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7195         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7196         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7198 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
7199             Julian Brown  <julian@codesourcery.com>
7200             David Malcolm  <dmalcolm@redhat.com>
7202         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
7203         to "GNU Offloading and Multi Processing Runtime Library".  Change
7204         all users.
7205         * configure: Regenerate.
7206         * libgomp.texi: Update.
7208 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
7210         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
7211         "$tgt_dir/lib32".
7212         * configure: Regenerate.
7214         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
7215         "intelmic" in $offload_targets.
7217 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
7219         Update copyright years.
7221         * libgomp.texi: Bump @copying's copyright year.
7223 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7225         * testsuite/lib/libgomp.exp: Load target-utils.exp.
7226         Move load of target-supportes.exp earlier.
7228 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
7230         * testsuite/libgomp.c/target-9.c: New test.
7232 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
7234         * config.h.in: Regenerate.
7235         * configure: Regenerate.
7236         * configure.ac: Add GCC_CHECK_EMUTLS.
7237         * libgomp.h: Add check for USE_EMUTLS: this case
7238         is equal to HAVE_TLS.
7239         * team.c: Likewise.
7241 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
7243         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
7245 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
7246             Ilya Verbin  <ilya.verbin@intel.com>
7248         * testsuite/libgomp.c/target-critical-1.c: New test.
7250 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
7252         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
7253         to dg-options unless expensive testing is on.
7254         (TESTITERS): Define to N if not defined.
7255         (main): Use TESTITERS instead of N.
7256         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
7257         dg-additional-options depending on whether expensive testing is on.
7258         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
7259         Decrease N to 100000 and CHUNKSZ to 10000.
7261 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
7263         PR fortran/63938
7264         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
7265         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
7267 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
7269         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
7271 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
7273         PR bootstrap/63784
7274         * configure: Regenerated.
7276 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
7278         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
7279         vect_simd_clones effective target.
7280         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7282 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
7284         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
7285         of 32 as block_size.
7286         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
7287         instead of 32 as block_size.
7289 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
7290             Ilya Verbin  <ilya.verbin@intel.com>
7292         * Makefile.in: Regenerate.
7293         * configure: Regenerate.
7294         * configure.ac: Set up offload_additional_options,
7295         offload_additional_lib_paths and offload_targets.
7296         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7297         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7298         * testsuite/Makefile.in: Regenerate.
7299         * testsuite/lib/libgomp.exp (libgomp_init): Append
7300         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
7301         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
7302         build directory to LD_LIBRARY_PATH for intelmic offload targets.
7304 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
7305             Ilya Verbin  <ilya.verbin@intel.com>
7306             Kirill Yukhin  <kirill.yukhin@intel.com>
7307             Ilya Tocar  <ilya.tocar@intel.com>
7309         * testsuite/lib/libgomp.exp
7310         (check_effective_target_offload_device): New.
7311         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7312         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7313         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7314         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7315         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7316         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7317         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7318         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7319         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7320         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7321         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7322         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7323         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7324         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7325         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7326         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7327         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7328         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7329         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7330         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7331         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7332         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7333         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7334         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7335         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7336         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7337         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7338         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7339         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7340         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7341         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7342         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7343         * testsuite/libgomp.c/target-7.c: Fix test.
7344         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7345         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7346         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7347         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7348         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7349         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7350         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7351         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7352         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7353         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7354         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7355         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7356         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7357         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7358         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7359         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7360         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7361         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7362         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7363         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7364         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7365         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7366         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7367         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7368         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7369         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7370         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7371         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7372         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7373         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7374         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7376 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
7377             Ilya Verbin  <ilya.verbin@intel.com>
7378             Thomas Schwinge  <thomas@codesourcery.com>
7379             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7381         * libgomp.map (GOMP_4.0.1): New symbol version.
7382         Add GOMP_offload_register.
7383         * libgomp_target.h: New file.
7384         * splay-tree.h: New file.
7385         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7386         (gomp_target_init): New forward declaration.
7387         (gomp_is_initialized): New static variable.
7388         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7389         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7390         New structures.
7391         (offload_images, num_offload_images, devices, num_devices): New static
7392         variables.
7393         (splay_compare): New static function.
7394         (struct gomp_device_descr): New structure.
7395         (gomp_get_num_devices): Call gomp_target_init.
7396         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7397         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7398         (GOMP_offload_register): New function.
7399         (GOMP_target): Arrange for host callback to be performed in a separate
7400         initial thread and contention group, inheriting ICVs from
7401         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
7402         Add device initialization and lookup for target function in splay tree.
7403         (GOMP_target_data): Add device initialization and call gomp_map_vars.
7404         (GOMP_target_end_data): Call gomp_unmap_vars.
7405         (GOMP_target_update): Add device initialization and call gomp_update.
7406         (gomp_load_plugin_for_device, gomp_register_images_for_device)
7407         (gomp_target_init): New static functions.
7409 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
7410             Thomas Schwinge  <thomas@codesourcery.com>
7411             Ilya Verbin  <ilya.verbin@intel.com>
7412             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7414         * config.h.in: Regenerate.
7415         * configure: Regenerate.
7416         * configure.ac: Check for libdl, required for plugin support.
7417         (PLUGIN_SUPPORT): Define if plugins are supported.
7418         (enable_offload_targets): Support Intel MIC targets.
7419         (OFFLOAD_TARGETS): List of target names suitable for offloading.
7421 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7423         PR target/63610
7424         * configure: Regenerate.
7426 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7428         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7430 2014-10-06  Marek Polacek  <polacek@redhat.com>
7432         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7433         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7434         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7435         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7437 2014-10-06  Marek Polacek  <polacek@redhat.com>
7439         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7440         * testsuite/libgomp.c/nqueens-1.c: Likewise.
7441         * testsuite/libgomp.c/pr26943-3.c: Likewise.
7442         * testsuite/libgomp.c/pr26943-4.c: Likewise.
7443         * testsuite/libgomp.c/pr36802-2.c: Likewise.
7444         * testsuite/libgomp.c/pr36802-3.c: Likewise.
7445         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7446         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7447         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7448         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7449         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7450         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7451         * testsuite/libgomp.c/omp-single-1.c: Likewise.
7452         * testsuite/libgomp.c/omp-single-2.c: Likewise.
7453         * testsuite/libgomp.c/omp_matvec.c: Likewise.
7454         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7455         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7456         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
7457         declarations.
7459 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
7461         PR libgomp/61200
7462         * testsuite/libgomp.c/pr61200.c: New test.
7464 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
7466         PR c++/63248
7467         * testsuite/libgomp.c++/pr63248.C: New test.
7469 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
7471         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
7472         is not zero, but taskgroup->children is NULL and there are
7473         any task->children, schedule those instead of waiting.
7474         * testsuite/libgomp.c/depend-6.c: New test.
7475         * testsuite/libgomp.c/depend-7.c: New test.
7476         * testsuite/libgomp.c/depend-8.c: New test.
7477         * testsuite/libgomp.c/depend-9.c: New test.
7478         * testsuite/libgomp.c/depend-10.c: New test.
7480 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
7482         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
7483         (struct gomp_taskwait): New type.
7484         (struct gomp_task): Add taskwait and parent_depends_on, remove
7485         in_taskwait and taskwait_sem fields.
7486         (gomp_finish_task): Don't destroy taskwait_sem.
7487         * task.c (gomp_init_task): Don't init in_taskwait, instead init
7488         taskwait and parent_depends_on.
7489         (GOMP_task): For if (0) tasks with depend clause that depend on
7490         earlier tasks don't defer them, instead call
7491         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
7492         Initialize redundant_out field, for redundant out entries just
7493         move them at the end of linked list instead of removing them
7494         completely, and set redundant_out flag instead of redundant.
7495         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
7496         that task.
7497         (gomp_task_run_post_handle_dependers): If parent is in
7498         gomp_task_maybe_wait_for_dependencies and newly runnable task
7499         is not parent_depends_on, queue it in parent->children linked
7500         list after all runnable tasks with parent_depends_on set.
7501         Adjust for addition of taskwait indirection.
7502         (gomp_task_run_post_remove_parent): If parent is in
7503         gomp_task_maybe_wait_for_dependencies and task to be removed
7504         is parent_depends_on, decrement n_depend and if needed awake
7505         parent.  Adjust for addition of taskwait indirection.
7506         (GOMP_taskwait): Adjust for addition of taskwait indirection.
7507         (gomp_task_maybe_wait_for_dependencies): New function.
7508         * testsuite/libgomp.c/depend-5.c: New test.
7510 2014-07-13  Tobias Burnus  <burnus@net-b.de>
7512         * testsuite/libgomp.fortran/pr34020.f90: Make compile
7513         with TS 18508/Fortran 2015.
7515 2014-07-06  Marek Polacek  <polacek@redhat.com>
7517         PR c/6940
7518         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
7520 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
7522         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
7523         matches regex $lang_source_re, add $lang_include_flags to options.
7524         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
7525         * testsuite/libgomp.c++/c++.exp: Likewise.
7526         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
7527         and lang_include_flags instead of adding -fintrinsic-modules-path= to
7528         ALWAYS_CFLAGS.
7529         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
7531 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7533         * testsuite/libgomp.fortran/fortran.exp: Explain
7534         gfortran-dg-runtest usage.
7536 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
7538         * testsuite/libgomp.fortran/simd5.f90: New test.
7539         * testsuite/libgomp.fortran/simd6.f90: New test.
7540         * testsuite/libgomp.fortran/simd7.f90: New test.
7542 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
7544         * testsuite/libgomp.c/for-2.c: Define SC to static for
7545         #pragma omp for simd testing.
7546         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
7547         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
7548         SC macro.
7549         * testsuite/libgomp.c/simd-14.c: New test.
7550         * testsuite/libgomp.c/simd-15.c: New test.
7551         * testsuite/libgomp.c/simd-16.c: New test.
7552         * testsuite/libgomp.c/simd-17.c: New test.
7553         * testsuite/libgomp.c++/for-10.C: Define SC to static for
7554         #pragma omp for simd testing.
7555         * testsuite/libgomp.c++/simd10.C: New test.
7556         * testsuite/libgomp.c++/simd11.C: New test.
7557         * testsuite/libgomp.c++/simd12.C: New test.
7558         * testsuite/libgomp.c++/simd13.C: New test.
7560         * testsuite/libgomp.fortran/aligned1.f03: New test.
7561         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
7562         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
7563         tasks with !$omp parallel !$omp single.
7564         * testsuite/libgomp.fortran/target8.f90: New test.
7565         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
7566         not to use trim in the combiner, instead call elemental function.
7567         (fn): New elemental function.
7568         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
7569         Make elemental.
7570         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
7571         omp_in): Likewise.
7572         * testsuite/libgomp.fortran/udr12.f90: New test.
7573         * testsuite/libgomp.fortran/udr13.f90: New test.
7574         * testsuite/libgomp.fortran/udr14.f90: New test.
7575         * testsuite/libgomp.fortran/udr15.f90: New test.
7577 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
7579         * omp_lib.f90.in (openmp_version): Set to 201307.
7580         * omp_lib.h.in (openmp_version): Likewise.
7581         * testsuite/libgomp.c/target-8.c: New test.
7582         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
7583         and inbranch clauses.
7584         * testsuite/libgomp.fortran/depend-3.f90: New test.
7585         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
7586         openmp_version.
7587         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7588         * testsuite/libgomp.fortran/target1.f90: New test.
7589         * testsuite/libgomp.fortran/target2.f90: New test.
7590         * testsuite/libgomp.fortran/target3.f90: New test.
7591         * testsuite/libgomp.fortran/target4.f90: New test.
7592         * testsuite/libgomp.fortran/target5.f90: New test.
7593         * testsuite/libgomp.fortran/target6.f90: New test.
7594         * testsuite/libgomp.fortran/target7.f90: New test.
7596 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
7598         PR fortran/60928
7599         * testsuite/libgomp.fortran/allocatable9.f90: New test.
7600         * testsuite/libgomp.fortran/allocatable10.f90: New test.
7601         * testsuite/libgomp.fortran/allocatable11.f90: New test.
7602         * testsuite/libgomp.fortran/allocatable12.f90: New test.
7603         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7604         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7605         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7606         * testsuite/libgomp.fortran/associate1.f90: New test.
7607         * testsuite/libgomp.fortran/associate2.f90: New test.
7608         * testsuite/libgomp.fortran/procptr1.f90: New test.
7610 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
7612         * testsuite/libgomp.fortran/simd1.f90: New test.
7613         * testsuite/libgomp.fortran/udr1.f90: New test.
7614         * testsuite/libgomp.fortran/udr2.f90: New test.
7615         * testsuite/libgomp.fortran/udr3.f90: New test.
7616         * testsuite/libgomp.fortran/udr4.f90: New test.
7617         * testsuite/libgomp.fortran/udr5.f90: New test.
7618         * testsuite/libgomp.fortran/udr6.f90: New test.
7619         * testsuite/libgomp.fortran/udr7.f90: New test.
7620         * testsuite/libgomp.fortran/udr8.f90: New test.
7621         * testsuite/libgomp.fortran/udr9.f90: New test.
7622         * testsuite/libgomp.fortran/udr10.f90: New test.
7623         * testsuite/libgomp.fortran/udr11.f90: New test.
7625 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
7627         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7628         vect_simd_clones effective target.
7629         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7631 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
7633         PR middle-end/61252
7634         * testsuite/libgomp.c++/simd-9.C: New test.
7636 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
7638         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7639         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7640         texts according to their @menu entry positions.
7642 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
7644         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7645         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7646         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7647         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7648         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7649         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7650         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7651         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7652         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7653         * testsuite/libgomp.fortran/depend-1.f90: New test.
7654         * testsuite/libgomp.fortran/depend-2.f90: New test.
7655         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7656         * testsuite/libgomp.fortran/simd1.f90: New test.
7657         * testsuite/libgomp.fortran/simd2.f90: New test.
7658         * testsuite/libgomp.fortran/simd3.f90: New test.
7659         * testsuite/libgomp.fortran/simd4.f90: New test.
7660         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7662 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
7664         * testsuite/libgomp.c/simd-10.c: New test.
7665         * testsuite/libgomp.c/simd-11.c: New test.
7666         * testsuite/libgomp.c/simd-12.c: New test.
7667         * testsuite/libgomp.c/simd-13.c: New test.
7669 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
7671         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7672         atomic type clauses in any order and optional comma in between.
7673         * testsuite/libgomp.c++/atomic-15.C: Likewise.
7674         * testsuite/libgomp.c/atomic-17.c: Likewise.
7676         * testsuite/libgomp.c/simd-7.c: New test.
7677         * testsuite/libgomp.c/simd-8.c: New test.
7678         * testsuite/libgomp.c/simd-9.c: New test.
7679         * testsuite/libgomp.c/loop-16.c: New test.
7681 2014-04-02  Richard Henderson  <rth@redhat.com>
7683         * config/linux/futex.h (futex_wait): Get error value from errno.
7684         (futex_wake): Likewise.
7686 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
7688         PR c++/60331
7689         * testsuite/libgomp.c++/udr-11.C: New test.
7690         * testsuite/libgomp.c++/udr-12.C: New test.
7691         * testsuite/libgomp.c++/udr-13.C: New test.
7692         * testsuite/libgomp.c++/udr-14.C: New test.
7693         * testsuite/libgomp.c++/udr-15.C: New test.
7694         * testsuite/libgomp.c++/udr-16.C: New test.
7695         * testsuite/libgomp.c++/udr-17.C: New test.
7696         * testsuite/libgomp.c++/udr-18.C: New test.
7697         * testsuite/libgomp.c++/udr-19.C: New test.
7699 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7701         Update copyright years
7703 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7705         * hashtab.h: Use the standard form for the copyright notice.
7707 2014-01-02  Tobias Burnus  <burnus@net-b.de>
7709         * libgomp.texi: Bump @copying's copyright year.
7711 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
7713         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7714         alloca () with __builtin_alloca ().
7715         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7716         * testsuite/libgomp.c/lock-3.c: Likewise.
7717         * testsuite/libgomp.c/pr48591.c: Likewise.
7719 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
7721         PR testsuite/59534
7722         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7723         comparisons.
7725 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
7727         PR libgomp/58756
7728         * testsuite/libgomp.c/pr58756.c: New test.
7730 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
7732         PR libgomp/59467
7733         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7734         !$omp parallel.
7736 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
7738         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7739         ALWAYS_CFLAGS.
7740         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7741         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7742         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7743         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7744         Likewise.
7746         * libgomp_g.h: Include <stddef.h> for size_t.
7748         * libgomp.spec.in: Update comment about libgomp's dependencies.
7749         * configure.ac: Likewise.
7750         * configure: Regenerate.
7752 2013-10-16  Tobias Burnus  <burnus@net-b.de>
7754         * libgomp.texi: (Runtime Library Routines): Update references for
7755         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7756         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7757         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7758         (Environment Variables): Update references for OpenMP 4.0. Add
7759         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7760         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7761         order.
7763 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
7765         * env.c (parse_bind_var): Initialize value to avoid
7766         (false positive) warning.
7768 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
7770         PR libgomp/58691
7771         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7772         to check variable.
7773         (gomp_init_num_threads): Move i variable declaration into
7774         #ifdef CPU_ALLOC_SIZE block.
7775         * config/linux/affinity.c (gomp_affinity_init_level): Test
7776         gomp_places_list_len == 0 rather than gomp_places_list == 0
7777         when checking for topology reading error.
7778         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7779         * env.c (parse_affinity): Add ignore argument, if true, don't populate
7780         gomp_places_list, only parse env var and always return false.
7781         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
7782         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7783         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7784         and either of these variables were parsed correctly into a places
7785         list.
7787 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
7788             Jakub Jelinek  <jakub@redhat.com>
7790         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7791         of 5 loopfn matches.
7792         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7793         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7794         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7795         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7796         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7797         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7798         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7799         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7801 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
7803         * Makefile.am (omp_lib.mod): Streamline rule.
7804         * Makefile.in: Regenerate.
7806         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7807         exceptions.
7809         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7810         * testsuite/libgomp.fortran/lib1.f90: Likewise.
7811         * testsuite/libgomp.fortran/lib2.f: Likewise.
7812         * testsuite/libgomp.fortran/lib3.f: Likewise.
7814         * configure.ac: Typo fix.
7815         * configure: Regenerate.
7817         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7818         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7820         * omp.h.in: Don't touch the user's namespace.
7822 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
7823             Tobias Burnus  <burnus@net-b.de>
7824             Richard Henderson  <rth@redhat.com>
7826         * target.c: New file.
7827         * Makefile.am (libgomp_la_SOURCES): Add target.c.
7828         * Makefile.in: Regenerated.
7829         * libgomp_g.h (GOMP_task): Add depend argument.
7830         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7831         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7832         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7833         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7834         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7835         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7836         GOMP_taskgroup_start, GOMP_taskgroup_end,
7837         GOMP_parallel_sections): New prototypes.
7838         * fortran.c (omp_is_initial_device): Add ialias_redirect.
7839         (omp_is_initial_device_): New function.
7840         (ULP, STR1, STR2, ialias_redirect): Removed.
7841         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7842         omp_set_default_device_8_, omp_get_default_device_,
7843         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7844         functions.
7845         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7846         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7847         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7848         @@GOMP_4.0.
7849         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7850         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7851         omp_set_default_device, omp_set_default_device_,
7852         omp_set_default_device_8_, omp_get_default_device,
7853         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7854         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7855         omp_get_team_num_): Export @@OMP_4.0.
7856         * team.c (struct gomp_thread_start_data): Add place field.
7857         (gomp_thread_start): Clear thr->thread_pool and
7858         thr->task before returning.  Use gomp_team_barrier_wait_final
7859         instead of gomp_team_barrier_wait.  Initialize thr->place.
7860         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7861         team_cancelled and task_queued_count fields.
7862         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7863         before calling pthread_exit.
7864         (gomp_free_thread): No longer static.  Use
7865         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7866         (gomp_team_start): Add flags argument.  Set
7867         thr->thread_pool->threads_busy to nthreads immediately after creating
7868         new pool.  Use gomp_managed_threads_lock instead of
7869         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
7870         (gomp_team_end): Use gomp_managed_threads_lock instead of
7871         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
7872         of gomp_team_barrier_wait.  If team->team_cancelled, call
7873         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7874         rather than thr->ts.work_share.
7875         (initialize_team): Don't call gomp_sem_init here.
7876         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7877         caller.
7878         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7879         * env.c (gomp_global_icv): Add default_device_var, target_data and
7880         bind_var initializers.
7881         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7882         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7883         gomp_places_list_len): New variables.
7884         (parse_bind_var, parse_one_place, parse_places_var): New functions.
7885         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7886         sized places.
7887         (gomp_cancel_var): New global variable.
7888         (parse_int): New function.
7889         (handle_omp_display_env): New function.
7890         (initialize_env): Use it.  Initialize default_device_var.
7891         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
7892         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
7893         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
7894         been successfully parsed (and call gomp_init_affinity in that case).
7895         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7896         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7897         omp_get_team_num, omp_is_initial_device): New functions.
7898         * libgomp.h: Include stdlib.h.
7899         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7900         Define.
7901         (struct target_mem_desc): Forward declare.
7902         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7903         and thread_limit_var fields.
7904         (gomp_get_num_devices): New prototype.
7905         (gomp_cancel_var): New extern decl.
7906         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7907         team_cancelled and task_queued_count fields.  Add comments about
7908         task_{,queued_,running_}count.
7909         (gomp_cancel_kind): New enum.
7910         (gomp_work_share_end_cancel): New prototype.
7911         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7912         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7913         and depend fields.
7914         (struct gomp_taskgroup): New type.
7915         (struct gomp_task_depend_entry,
7916         struct gomp_dependers_vec): New types.
7917         (gomp_finish_task): Free depend_hash if non-NULL.
7918         (struct gomp_team_state): Add place_partition_off
7919         and place_partition_len fields.
7920         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7921         gomp_places_list_len): New extern decls.
7922         (struct gomp_thread): Add place field.
7923         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7924         (gomp_init_thread_affinity): Add place argument.
7925         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7926         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7927         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7928         gomp_affinity_init_level, gomp_affinity_print_place): New
7929         prototypes.
7930         (gomp_team_start): Add flags argument.
7931         (gomp_thread_limit_var, gomp_remaining_threads_count,
7932         gomp_remaining_threads_lock): Remove.
7933         (gomp_managed_threads_lock): New variable.
7934         (struct gomp_thread_pool): Add threads_busy field.
7935         (gomp_free_thread): New prototype.
7936         * task.c: Include hashtab.h.
7937         (hash_entry_type): New typedef.
7938         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7939         (gomp_init_task): Clear dependers, depend_hash, depend_count,
7940         copy_ctors_done and taskgroup fields.
7941         (GOMP_task): Add depend argument, handle depend clauses.  If
7942         gomp_team_barrier_cancelled or if it's taskgroup has been
7943         cancelled, don't queue or start new tasks.  Set copy_ctors_done
7944         field if needed.  Initialize taskgroup field.  If copy_ctors_done
7945         and already cancelled, don't discard the task.  If taskgroup is
7946         non-NULL, enqueue the task into taskgroup queue.  Increment
7947         num_children field in taskgroup.  Increment task_queued_count.
7948         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7949         gomp_task_run_post_remove_taskgroup): New inline functions.
7950         (gomp_task_run_post_handle_depend_hash,
7951         gomp_task_run_post_handle_dependers,
7952         gomp_task_run_post_handle_depend): New functions.
7953         (GOMP_taskwait): Use them.  If more than one new tasks
7954         have been queued, wake other threads if needed.
7955         (gomp_barrier_handle_tasks): Likewise.  If
7956         gomp_team_barrier_cancelled, don't start any new tasks, just free
7957         all tasks.
7958         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7959         * omp_lib.f90.in
7960         (omp_proc_bind_kind, omp_proc_bind_false,
7961         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7962         omp_proc_bind_spread): New params.
7963         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7964         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7965         omp_get_team_num, omp_is_initial_device): New interfaces.
7966         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7967         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7968         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7969         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7970         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7971         useless use omp_lib_kinds.
7972         * omp.h.in (omp_proc_bind_t): New typedef.
7973         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7974         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7975         omp_get_team_num, omp_is_initial_device): New prototypes.
7976         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7977         through to gomp_team_start.
7978         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7979         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7980         Adjust gomp_parallel_loop_start callers.
7981         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7982         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7983         GOMP_loop_end_cancel): New functions.
7984         (GOMP_parallel_end): Add ialias_redirect.
7985         * hashtab.h: New file.
7986         * libgomp.texi (Environment Variables): Minor cleanup,
7987         update section refs to OpenMP 4.0rc2.
7988         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7989         environment variables.
7990         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7991         team->work_shares_to_free to thr->ts.work_share before calling
7992         free_work_share.
7993         (gomp_work_share_end_cancel): New function.
7994         * config/linux/proc.c: Include errno.h.
7995         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7996         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7997         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
7998         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
7999         gomp_cpuset_size is sizeof (cpu_set_t).
8000         (gomp_init_num_threads): Initialize gomp_cpuset_size,
8001         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
8002         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
8003         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
8004         contain any logical CPUs.
8005         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
8006         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
8007         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
8008         pthread_getaffinity_np.  Check gomp_places_list instead of
8009         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
8010         * config/linux/bar.c (gomp_barrier_wait_end,
8011         gomp_barrier_wait_last): Use BAR_* defines.
8012         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
8013         from state where needed.  Set work_share_cancelled to 0 on last
8014         thread.
8015         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
8016         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
8017         functions.
8018         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
8019         Add cpusetsize argument.
8020         (gomp_cpuset_size, gomp_cpusetp): Declare.
8021         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
8022         (affinity_counter): Remove.
8023         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
8024         if CPU_ALLOC_SIZE isn't defined.
8025         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
8026         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
8027         bind current thread to the first place.
8028         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
8029         pthread_setaffinity_np to gomp_places_list[place].
8030         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8031         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8032         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8033         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
8034         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
8035         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
8036         (gomp_barrier_t): Add awaited_final field.
8037         (gomp_barrier_init): Initialize awaited_final field.
8038         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
8039         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
8040         prototypes.
8041         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
8042         defines.
8043         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
8044         gomp_team_barrier_cancelled): New inline functions.
8045         (gomp_barrier_last_thread,
8046         gomp_team_barrier_set_task_pending,
8047         gomp_team_barrier_clear_task_pending,
8048         gomp_team_barrier_set_waiting_for_tasks,
8049         gomp_team_barrier_waiting_for_tasks,
8050         gomp_team_barrier_done): Use BAR_* defines.
8051         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
8052         (gomp_barrier_wait_end): Use BAR_* defines.
8053         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
8054         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
8055         Use BAR_* defines.
8056         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
8057         gomp_team_barrier_cancel): New functions.
8058         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
8059         argument.
8060         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8061         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8062         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8063         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
8064         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
8065         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
8066         (gomp_barrier_t): Add cancellable field.
8067         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
8068         gomp_team_barrier_cancel): New prototypes.
8069         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
8070         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
8071         gomp_team_barrier_cancelled): New inline functions.
8072         (gomp_barrier_wait_start, gomp_barrier_last_thread,
8073         gomp_team_barrier_set_task_pending,
8074         gomp_team_barrier_clear_task_pending,
8075         gomp_team_barrier_set_waiting_for_tasks,
8076         gomp_team_barrier_waiting_for_tasks,
8077         gomp_team_barrier_done): Use BAR_* defines.
8078         * barrier.c (GOMP_barrier_cancel): New function.
8079         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
8080         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
8081         omp_proc_bind_spread): New params.
8082         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8083         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8084         omp_get_team_num, omp_is_initial_device): New externals.
8085         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
8086         New functions.
8087         (gomp_resolve_num_threads): Adjust for thread_limit now being in
8088         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
8089         infinity.  If not nested, just return minimum of max_num_threads
8090         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
8091         to the returned value.  Otherwise, don't update atomically
8092         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
8093         (GOMP_parallel_end): Adjust for thread_limit now being in
8094         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
8095         infinity.  Adjust threads_busy in the pool rather than
8096         gomp_remaining_threads_count.  Remember team->nthreads and call
8097         gomp_team_end before adjusting threads_busy, if not nested
8098         afterwards, just set it to 1 non-atomically.  Add ialias.
8099         (GOMP_parallel_start): Adjust gomp_team_start caller.
8100         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
8101         * testsuite/libgomp.c/affinity-1.c: New test.
8102         * testsuite/libgomp.c/atomic-15.c: New test.
8103         * testsuite/libgomp.c/atomic-16.c: New test.
8104         * testsuite/libgomp.c/atomic-17.c: New test.
8105         * testsuite/libgomp.c/cancel-for-1.c: New test.
8106         * testsuite/libgomp.c/cancel-for-2.c: New test.
8107         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
8108         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
8109         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
8110         * testsuite/libgomp.c/cancel-sections-1.c: New test.
8111         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
8112         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
8113         * testsuite/libgomp.c/depend-1.c: New test.
8114         * testsuite/libgomp.c/depend-2.c: New test.
8115         * testsuite/libgomp.c/depend-3.c: New test.
8116         * testsuite/libgomp.c/depend-4.c: New test.
8117         * testsuite/libgomp.c/for-1.c: New test.
8118         * testsuite/libgomp.c/for-1.h: New file.
8119         * testsuite/libgomp.c/for-2.c: New test.
8120         * testsuite/libgomp.c/for-2.h: New file.
8121         * testsuite/libgomp.c/for-3.c: New test.
8122         * testsuite/libgomp.c/pr58392.c: New test.
8123         * testsuite/libgomp.c/simd-1.c: New test.
8124         * testsuite/libgomp.c/simd-2.c: New test.
8125         * testsuite/libgomp.c/simd-3.c: New test.
8126         * testsuite/libgomp.c/simd-4.c: New test.
8127         * testsuite/libgomp.c/simd-5.c: New test.
8128         * testsuite/libgomp.c/simd-6.c: New test.
8129         * testsuite/libgomp.c/target-1.c: New test.
8130         * testsuite/libgomp.c/target-2.c: New test.
8131         * testsuite/libgomp.c/target-3.c: New test.
8132         * testsuite/libgomp.c/target-4.c: New test.
8133         * testsuite/libgomp.c/target-5.c: New test.
8134         * testsuite/libgomp.c/target-6.c: New test.
8135         * testsuite/libgomp.c/target-7.c: New test.
8136         * testsuite/libgomp.c/taskgroup-1.c: New test.
8137         * testsuite/libgomp.c/thread-limit-1.c: New test.
8138         * testsuite/libgomp.c/thread-limit-2.c: New test.
8139         * testsuite/libgomp.c/thread-limit-3.c: New test.
8140         * testsuite/libgomp.c/udr-1.c: New test.
8141         * testsuite/libgomp.c/udr-2.c: New test.
8142         * testsuite/libgomp.c/udr-3.c: New test.
8143         * testsuite/libgomp.c++/affinity-1.C: New test.
8144         * testsuite/libgomp.c++/atomic-10.C: New test.
8145         * testsuite/libgomp.c++/atomic-11.C: New test.
8146         * testsuite/libgomp.c++/atomic-12.C: New test.
8147         * testsuite/libgomp.c++/atomic-13.C: New test.
8148         * testsuite/libgomp.c++/atomic-14.C: New test.
8149         * testsuite/libgomp.c++/atomic-15.C: New test.
8150         * testsuite/libgomp.c++/cancel-for-1.C: New test.
8151         * testsuite/libgomp.c++/cancel-for-2.C: New test.
8152         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
8153         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
8154         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
8155         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
8156         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
8157         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
8158         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
8159         * testsuite/libgomp.c++/cancel-test.h: New file.
8160         * testsuite/libgomp.c++/for-9.C: New test.
8161         * testsuite/libgomp.c++/for-10.C: New test.
8162         * testsuite/libgomp.c++/for-11.C: New test.
8163         * testsuite/libgomp.c++/simd-1.C: New test.
8164         * testsuite/libgomp.c++/simd-2.C: New test.
8165         * testsuite/libgomp.c++/simd-3.C: New test.
8166         * testsuite/libgomp.c++/simd-4.C: New test.
8167         * testsuite/libgomp.c++/simd-5.C: New test.
8168         * testsuite/libgomp.c++/simd-6.C: New test.
8169         * testsuite/libgomp.c++/simd-7.C: New test.
8170         * testsuite/libgomp.c++/simd-8.C: New test.
8171         * testsuite/libgomp.c++/target-1.C: New test.
8172         * testsuite/libgomp.c++/target-2.C: New test.
8173         * testsuite/libgomp.c++/target-2-aux.cc: New file.
8174         * testsuite/libgomp.c++/target-3.C: New test.
8175         * testsuite/libgomp.c++/taskgroup-1.C: New test.
8176         * testsuite/libgomp.c++/udr-1.C: New test.
8177         * testsuite/libgomp.c++/udr-2.C: New test.
8178         * testsuite/libgomp.c++/udr-3.C: New test.
8179         * testsuite/libgomp.c++/udr-4.C: New test.
8180         * testsuite/libgomp.c++/udr-5.C: New test.
8181         * testsuite/libgomp.c++/udr-6.C: New test.
8182         * testsuite/libgomp.c++/udr-7.C: New test.
8183         * testsuite/libgomp.c++/udr-8.C: New test.
8184         * testsuite/libgomp.c++/udr-9.C: New test.
8186 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
8188         PR testsuite/57605
8189         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
8190         ALWAYS_CFLAGS.
8192 2013-09-20  Alan Modra  <amodra@gmail.com>
8194         * configure: Regenerate.
8196 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
8198         * testsuite/libgomp.c/sections-2.c: New test.
8200 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8202         * testsuite/libgomp.fortran/strassen.f90:
8203         Add dg-skip-if aarch64_tiny.
8205 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
8206             Cesar Philippidis  <cesar@codesourcery.com>
8208         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
8209         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
8210         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
8211         * testsuite/libgomp.fortran/fortran.exp: Likewise.
8212         * testsuite/libgomp.graphite/graphite.exp: Likewise.
8213         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
8214         Use dg-runtest rather than gfortran-dg-runtest.
8216 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8218         * testsuite/libgomp.c/icv-2.c: Extend current handling of
8219         Linux-based x86 systems to cover all GNU systems.
8220         * testsuite/libgomp.c/lock-3.c: Likewise.
8221         * testsuite/libgomp.c/pr48591.c: Likewise.
8223 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
8225         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
8226         GNU/Hurd, as done for Linux-based systems.
8228         * config/posix/ptrlock.h: Fix comment.
8230 2013-05-27  Tobias Burnus  <burnus@net-b.de>
8232         PR fortran/57423
8233         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
8234         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
8235         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
8236         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
8237         omp_destroy_nest_lock): Correct arguments to match the one in
8238         the OpenMP spec.
8239         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
8240         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
8241         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
8242         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
8244 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
8246         * testsuite/libgomp.c/loop-13.c: New test.
8247         * testsuite/libgomp.c/loop-14.c: New test.
8248         * testsuite/libgomp.c/loop-15.c: New test.
8249         * testsuite/libgomp.c++/loop-13.C: New test.
8250         * testsuite/libgomp.c++/loop-14.C: New test.
8251         * testsuite/libgomp.c++/loop-15.C: New test.
8253 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
8255         PR middle-end/56217
8256         * testsuite/libgomp.c++/pr56217.C: New test.
8258 2013-02-01  Alan Modra  <amodra@gmail.com>
8260         * task.c (GOMP_task, GOMP_taskwait): Comment.
8262 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
8263             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
8265         PR libgomp/55561
8266         * config/linux/wait.h (do_spin): Use atomic load for addr.
8267         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
8268         for intptr and ptrlock.
8269         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
8270         for ptrlock.
8272 2013-01-22  Alan Modra  <amodra@gmail.com>
8274         PR libgomp/51376
8275         PR libgomp/56073
8276         * task.c (GOMP_task): Revert 2011-12-09 change.
8277         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
8278         barrier to read task->children..
8279         (gomp_barrier_handle_tasks): ..and matching atomic store with
8280         release barrier here when setting parent->children to NULL.
8282 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
8283             Tobias Burnus  <burnus@net-b.de>
8285         PR driver/55884
8286         * testsuite/libgomp.fortran/fortran.exp: Use
8287         -fintrinsic-modules-path= instead of
8288         -fintrinsic-modules-path.
8290 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
8292         Update copyright years.
8294 2012-12-19  Tobias Burnus  <burnus@net-b.de>
8296         * testsuite/libgomp.fortran/fortran.exp: Set
8297         -fintrinsic-modules-path.
8299 2012-12-19  Tobias Burnus  <burnus@net-b.de>
8301         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8302         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8304 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
8306         PR libgomp/55411
8307         * team.c (gomp_free_thread): Decrease gomp_managed_threads
8308         if pool had any threads_used.
8310 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
8312         * testsuite/libgomp.c++/pr24455.C: Use
8313         -Wl,-undefined,dynamic_lookup on darwin.
8315 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
8317         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8319 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
8321         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8323 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
8324             Jim MacArthur  <jim.macarthur@arm.com>
8325             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8326             Nigel Stephens  <nigel.stephens@arm.com>
8327             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8328             Richard Earnshaw  <rearnsha@arm.com>
8329             Sofiane Naci  <sofiane.naci@arm.com>
8330             Stephen Thomas  <stephen.thomas@arm.com>
8331             Tejas Belagod  <tejas.belagod@arm.com>
8332             Yufeng Zhang  <yufeng.zhang@arm.com>
8334         * configure.tgt: Add AArch64.
8336 2012-10-04  Jason Merrill  <jason@redhat.com>
8338         * testsuite/libgomp.c++/tls-init1.C: New.
8340 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
8342         * configure: Regenerated.
8344 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
8346         * config/linux/mips/futex.h (sys_futex0): Change to static
8347         function with noinline, nomips16 attributes under MIPS16. Adjust
8348         asm statement to place 'li v0,SYS_futex' immediately before
8349         syscall insn.
8351 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
8353         * libgomp.texi (Library Index): Renamed from "Index" to prevent
8354         conflict with index.html on case-insensitive file systems.
8356 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
8358         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8359         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8361 2012-07-02  Richard Guenther  <rguenther@suse.de>
8362             Michael Matz  <matz@suse.de>
8363             Tobias Grosser <tobias@grosser.es>
8364             Sebastian Pop <sebpop@gmail.com>
8366         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8367         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8368         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8369         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8371 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
8373         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8375 2012-06-22  Richard Guenther  <rguenther@suse.de>
8377         Merge from graphite branch
8378         2012-01-13  Tobias Grosser  <tobias@grosser.es>
8380         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8381         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8383 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
8385         PR middle-end/53580
8386         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8387         use GOMP_barrier () call instead.
8388         * testsuite/libgomp.c/pr26943-3.c: Likewise.
8389         * testsuite/libgomp.c/pr26943-4.c: Likewise.
8390         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8391         call GOMP_barrier instead.
8392         * testsuite/libgomp.fortran/vla5.f90: Likewise.
8394 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
8396         PR libgomp/52993
8397         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8398         argument to memset call.
8400 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8402         * configure: Regenerated.
8404 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8406         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8408 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
8410         PR bootstrap/52812
8411         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8413 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
8415         PR middle-end/52547
8416         * testsuite/libgomp.c/pr52547.c: New test.
8418 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8420         * testsuite/lib/libgomp.exp: load fortran-modules.exp
8422 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8424         * configure.tgt (mips-sgi-irix6*): Remove.
8426 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8428         * configure.tgt (alpha*-dec-osf*): Remove.
8430         * config/osf/sem.h: Remove.
8431         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8433 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
8435         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8437 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8439         PR libstdc++/52188
8440         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8441         Remove ENABLE_SYMVERS_SOL2.
8442         * configure: Regenerate.
8443         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8444         (PREPROCESS): New variable.
8445         (libgomp.ver): New target.
8446         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8447         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8448         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8449         Use libgomp.ver.
8450         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8451         * Makefile.in: Regenerate.
8453 2012-02-14  Walter Lee  <walt@tilera.com>
8455         * configure.tgt: Handle tilegx and tilepro.
8456         * config/linux/tile/futex.h: New file.
8458 2012-02-08  Richard Guenther  <rguenther@suse.de>
8460         PR tree-optimization/46886
8461         * testsuite/libgomp.c/pr46886.c: New testcase.
8463 2012-01-25  Matthias Klose  <doko@ubuntu.com>
8465         * config/linux/arm: Remove empty directory.
8466         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8468 2011-12-09  Alan Modra  <amodra@gmail.com>
8470         PR libgomp/51376
8471         * task.c (GOMP_taskwait): Don't access task->children outside of
8472         task_lock mutex region.
8473         (GOMP_task): Likewise.
8475 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
8477         PR libgomp/51132
8478         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
8479         to file scope.
8480         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8481         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8482         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8483         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8484         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8486 2011-12-02  Alan Modra  <amodra@gmail.com>
8488         * config/linux/affinity.c: Use atomic rather than sync builtin.
8489         * config/linux/lock.c: Likewise.
8490         * config/linux/ptrlock.h: Likewise.
8491         * config/linux/ptrlock.c: Likewise.
8492         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
8493         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
8494         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
8495         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
8496         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
8497         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
8498         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
8499         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
8500         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
8501         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
8503 2011-11-30  Alan Modra  <amodra@gmail.com>
8505         PR libgomp/51298
8506         * config/linux/bar.h: Use atomic rather than sync builtins.
8507         * config/linux/bar.c: Likewise.  Add missing acquire
8508         synchronisation on generation field.
8509         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
8510         double unlock.
8512 2011-11-30  Alan Modra  <amodra@gmail.com>
8514         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
8515         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
8516         * config/linux/mutex.h: Use atomic rather than sync builtins.
8517         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
8518         * config/linux/omp-lock.h: Comment fix.
8519         * config/linux/arm/mutex.h: Delete.
8520         * config/linux/powerpc/mutex.h: Delete.
8521         * config/linux/ia64/mutex.h: Delete.
8522         * config/linux/mips/mutex.h: Delete.
8524 2011-11-30  Alan Modra  <amodra@gmail.com>
8526         PR libgomp/51249
8527         * config/linux/sem.h: Rewrite.
8528         * config/linux/sem.c: Rewrite.
8530 2011-11-28  Richard Henderson  <rth@redhat.com>
8532         * libgomp.h (enum memmodel): New.
8534 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
8536         * configure: Regenerate.
8538 2011-10-10  Matthias Klose  <doko@ubuntu.com>
8540         * config/posix95: Remove empty directory.
8542 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
8544         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
8546 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
8548         PR fortran/49792
8549         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
8550         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
8552 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8554         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
8556 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8558         PR libgomp/49965
8559         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
8561 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
8563         * config/linux/proc.h: New.
8564         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
8565         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
8566         (gomp_init_num_threads): Update call to cpuset_popcount.
8567         (get_num_procs): Ditto.
8568         * config/linux/affinity.c (gomp_init_affinity): Call
8569         gomp_cpuset_popcount.
8571 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
8573         PR fortran/42041
8574         PR fortran/46752
8575         * omp.h.in (omp_in_final): New prototype.
8576         * omp_lib.f90.in (omp_in_final): New interface.
8577         (omp_integer_kind, omp_logical_kind): Remove
8578         and replace all its uses in the module with 4.
8579         (openmp_version): Change to 201107.
8580         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
8581         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
8582         kind for the parameters.
8583         (omp_in_final): New external.
8584         (openmp_version): Change to 201107.
8585         * task.c (omp_in_final): New function.
8586         (gomp_init_task): Initialize final_task.
8587         (GOMP_task): Remove unused attribute from flags.  Handle final
8588         tasks.
8589         (GOMP_taskyield): New function.
8590         (omp_in_final): Return true if if (false) or final (true) task
8591         or descendant of final (true).
8592         * fortran.c (omp_in_final_): New function.
8593         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
8594         (GOMP_3.0): Export GOMP_taskyield.
8595         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8596         variables.
8597         (parse_unsigned_long_list): New function.
8598         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
8599         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
8600         even if parse_affinity returned false.
8601         * config/linux/affinity.c (gomp_init_affinity): Handle
8602         gomp_cpu_affinity_len == 0.
8603         * libgomp_g.h (GOMP_taskyield): New prototype.
8604         * libgomp.h (struct gomp_task): Add final_task field.
8605         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8606         * team.c (gomp_team_start): Override new task's nthreads_var icv
8607         if list form OMP_NUM_THREADS has been used and it has value for
8608         the new nesting level.
8610         * testsuite/libgomp.c/atomic-11.c: New test.
8611         * testsuite/libgomp.c/atomic-12.c: New test.
8612         * testsuite/libgomp.c/atomic-13.c: New test.
8613         * testsuite/libgomp.c/atomic-14.c: New test.
8614         * testsuite/libgomp.c/reduction-6.c: New test.
8615         * testsuite/libgomp.c/task-5.c: New test.
8616         * testsuite/libgomp.c++/atomic-2.C: New test.
8617         * testsuite/libgomp.c++/atomic-3.C: New test.
8618         * testsuite/libgomp.c++/atomic-4.C: New test.
8619         * testsuite/libgomp.c++/atomic-5.C: New test.
8620         * testsuite/libgomp.c++/atomic-6.C: New test.
8621         * testsuite/libgomp.c++/atomic-7.C: New test.
8622         * testsuite/libgomp.c++/atomic-8.C: New test.
8623         * testsuite/libgomp.c++/atomic-9.C: New test.
8624         * testsuite/libgomp.c++/task-8.C: New test.
8625         * testsuite/libgomp.c++/reduction-4.C: New test.
8626         * testsuite/libgomp.fortran/allocatable7.f90: New test.
8627         * testsuite/libgomp.fortran/allocatable8.f90: New test.
8628         * testsuite/libgomp.fortran/crayptr3.f90: New test.
8629         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8630         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8631         * testsuite/libgomp.fortran/pointer1.f90: New test.
8632         * testsuite/libgomp.fortran/pointer2.f90: New test.
8633         * testsuite/libgomp.fortran/task4.f90: New test.
8635 2011-08-02  Tobias Burnus  <burnus@net-b.de>
8637         * libgomp.texi: Update OpenMP spec references to 3.1.
8638         (omp_in_final,OMP_PROC_BIND): New sections.
8639         (OMP_NUM_THREADS): Document that the value can be now a list.
8640         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8642 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
8644         * config/linux/x86/futex.h: Check __x86_64__ instead of
8645         __LP64__.
8647 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
8649         PR middle-end/49897
8650         PR middle-end/49898
8651         * testsuite/libgomp.c/pr49897-1.c: New test.
8652         * testsuite/libgomp.c/pr49897-2.c: New test.
8653         * testsuite/libgomp.c/pr49898-1.c: New test.
8654         * testsuite/libgomp.c/pr49898-2.c: New test.
8656 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8658         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8659         for ia32 instead of ilp32.
8661         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8662         * testsuite/libgomp.c/atomic-6.c: Likewise.
8664 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
8666         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8667         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8669 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8671         PR libgomp/45351
8672         * config/osf/sem.h: New file.
8673         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8675 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8677         PR target/49541
8678         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8679         ldflags.
8681 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
8683         * config/linux/wait.h (do_spin): New inline, largely copied
8684         from do_wait, just don't do futex_wait here, instead return true if
8685         it should be done.
8686         (do_wait): Implement using do_spin.
8687         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8688         to prototype.
8689         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8690         __sync_bool_compare_and_swap, pass the oldval to
8691         gomp_mutex_lock_slow.
8692         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8693         If all mutex contenders are just spinning and not sleeping, don't
8694         change state to 2 unnecessarily.  Optimize the loop when state has
8695         already become 2 to use just one atomic operation per loop instead
8696         of two.
8697         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8698         to prototype.
8699         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8700         __sync_bool_compare_and_swap, pass the oldval to
8701         gomp_mutex_lock_slow.
8703 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8705         PR libgomp/49490
8706         * iter.c (gomp_iter_static_next): For chunk size 0
8707         only use n ceil/ nthreads size for the first
8708         n % nthreads threads in the team instead of
8709         all threads except for the last few ones which
8710         get less work or none at all.
8711         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8712         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8713         chunk argument, set run_sched_modifier to 0 for static
8714         resp. 1 for other kinds.  If chunk argument is 0
8715         and not static, set value to 1.
8717 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
8719         PR c++/49043
8720         * testsuite/libgomp.c++/pr49043.C: New test.
8722         PR c++/48869
8723         * testsuite/libgomp.c++/pr48869.C: New test.
8725 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
8727         PR fortran/48894
8728         * fortran.c: Include limits.h.
8729         (TO_INT): Define.
8730         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8731         *set.
8732         (omp_set_num_threads_8_, omp_set_schedule_8_,
8733         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8734         omp_get_team_size_8_): Use TO_INT macro.
8735         * testsuite/libgomp.fortran/pr48894.f90: New test.
8737 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
8739         PR middle-end/48591
8740         * testsuite/libgomp.c/pr48591.c: New test.
8742 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8744         PR bootstrap/48135
8745         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8746         * configure: Regenerate.
8748 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
8750         PR fortran/47886
8751         * testsuite/libgomp.fortran/task3.f90: New test.
8753 2011-02-24  Tobias Burnus  <burnus@net-b.de>
8755         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8757 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
8759         PR libgomp/47854
8760         * libgomp.texi (omp_get_wtime): Don't say time in the past
8761         must be Unix Epoch.
8763 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
8765         PR libgomp/47804
8766         * testsuite/libgomp.fortran/fortran.exp: Check for both
8767         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
8768         but $blddir != "", still append ${blddir}/${lang_library_path}
8769         to ld_library_path.
8771 2011-02-16  Tobias Burnus  <burnus@net-b.de>
8773         PR libgomp/47758
8774         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8775         of libquadmath.a before adding its libpath to ldflags.
8777 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
8779         PR libgomp/47731
8780         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8781         to FUTEX_WAIT futex syscall.
8782         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8784 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8786         * configure: Regenerate.
8788 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
8790         PR libstdc++/36104
8791         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8793 2011-01-16  Gerald Pfeifer
8795         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8797 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
8799         PR fortran/46874
8800         * libgomp.fortran/allocatable6.f90: New test.
8802 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8804         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8805         * configure: Regenerate.
8807 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
8809         PR target/40125
8810         PR lto/46695
8811         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8812         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8813         * aclocal.m4: Regenerate.
8814         * configure: Regenerate.
8815         * Makefile.in: Regenerate.
8816         * testsuite/Makefile.in: Regenerate.
8818 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
8820         PR fortran/46753
8821         * libgomp.fortran/pr46753.f90: New test.
8823         PR libgomp/43706
8824         * env.c (initialize_env): Default to spin count 300000
8825         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8826         is specified.
8828         PR libgomp/45240
8829         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8830         at the end if sync builtins aren't supported.
8832 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8834         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8836 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8838         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8840 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
8842         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8844 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8845             Tobias Burnus  <burnus@net-b.de>
8847         PR fortran/32049
8848         * configure.ac:
8849         * configure: Regenerate.
8851 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8853         * config/linux/futex.h: New.
8854         * config/linux/arm/mutex.h: New.
8855         * configure.tgt (arm*-*-linux*): Add config path.
8857 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8859         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8861 2010-09-23  Tobias Burnus  <burnus@net-b.de>
8863         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8864         Change Fortran datatype to LOGICAL.
8865         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8866         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8868 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8870         * configure: Regenerate.
8872 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
8874         * libgomp.texi: Add function keyword to a couple of Fortran
8875         interfaces, use integer instead of int for Fortran.
8877 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
8879         * libgomp.texi: Fix spelling and pasto problems throughout.
8880         Adjust prototypes to match code.
8882 2010-07-24  Tobias Burnus  <burnus@net-b.de>
8884         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8885         silence -fwhole-file warning.
8887 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8889         * configure.tgt (*-*-solaris2.[56]*): Removed.
8891 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8893         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8894         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8895         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8896         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8897         targetting solaris2*.
8898         * configure: Regenerate.
8899         * config.h.in: Regenerate.
8901         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8902         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8903         Add libgomp_version_dep.
8904         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8905         versioning.
8906         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8907         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8908         * Makefile.in: Regenerate.
8910         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8911         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8912         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8913         to common block, protected by
8914         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8916 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
8918         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
8920 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
8922         PR bootstrap/43170
8923         * configure: Regenerate.
8925 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8927         PR other/43620
8928         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8929         * configure: Regenerate.
8930         * Makefile.in: Regenerate.
8931         * testsuite/Makefile.in: Regenerate.
8933 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
8935         PR c/43893
8936         * testsuite/libgomp.c/pr43893.c: New test.
8937         * testsuite/libgomp.c++/pr43893.C: New test.
8939 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
8941         PR middle-end/43570
8942         * testsuite/libgomp.fortran/vla8.f90: New test.
8944 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
8946         PR libgomp/43706
8947         * config/linux/affinity.c (gomp_init_affinity): Decrease
8948         gomp_available_cpus if affinity mask confines the process to fewer
8949         CPUs.
8950         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8951         non-NULL, just return gomp_available_cpus.
8953         PR libgomp/43569
8954         * sections.c (gomp_sections_init): Initialize ws->mode.
8956 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
8958         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8959         not unused bar variable.
8960         * configure: Regenerate.
8962 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8964         * Makefile.in: Regenerate.
8965         * aclocal.m4: Regenerate.
8966         * testsuite/Makefile.in: Regenerate.
8968 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
8970         PR libgomp/42942
8971         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8972         (initialize_env): Adjust callers.
8973         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8974         when the argument is 0.
8976         * testsuite/libgomp.c/pr42942.c: New test.
8978 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
8980         PR middle-end/42644
8981         PR middle-end/42130
8982         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8983         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8985 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8987         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8988         * testsuite/libgomp.c++/task-6.C: Likewise.
8990 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
8992         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8994 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
8996         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8997         * configure: Regenerate.
8999 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
9001         PR fortran/42866
9002         * testsuite/libgomp.fortran/allocatable5.f90: New test.
9004 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
9006         * configure.ac: Test for executability of GFORTRAN.
9007         * configure: Regenerate.
9009 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9011         * configure: Regenerate.
9013 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
9015         PR libgomp/42602
9016         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
9018 2010-01-03  Richard Guenther  <rguenther@suse.de>
9020         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
9022 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
9024         * testsuite/libgomp.graphite/pr4118.c: New.
9026 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
9028         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
9029         for darwin, protect the test with require-effective-target tls_runtime.
9030         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9032 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
9034         PR target/41605
9035         * testsuite/lib/libgomp.exp: Provide -B options to allow for
9036         link spec %s substitutions for static libraries.
9038 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
9040         PR testsuite/42135
9041         * libgomp.graphite/force-parallel-2.c: Reduce array size.
9043 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9045         * Makefile.in: Regenerate.
9046         * configure: Regenerate.
9047         * testsuite/Makefile.in: Regenerate.
9049 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
9051         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
9052         settings for LC_ALL and LANG.
9054 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
9056         PR fortran/42162
9057         * testsuite/libgomp.fortran/pr42162.f90: New test.
9059 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
9061         PR middle-end/42029
9062         * testsuite/libgomp.c/pr42029.c: New test.
9064 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
9066         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
9067         *s.  Accept ld version without text in ()s.
9068         * configure: Regenerated.
9070 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
9072         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
9074 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9076         PR libgomp/41418
9077         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
9078         or a hyphen (happens with fortran language disabled).
9079         * configure: Regenerate.
9081 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9083         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
9084         use sed script portable to Solaris /bin/sed for extracting ld
9085         version.
9086         * configure: Regenerate.
9088 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
9090         * testsuite/libgomp.graphite/bounds.c: New test.
9092 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9094         * Makefile.am (libgomp_la_LINK): New.
9095         * Makefile.in: Regenerate.
9097 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9099         * configure.ac (AC_PREREQ): Bump to 2.64.
9101 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9103         * Makefile.am (install-html, install-pdf): Remove.
9104         * Makefile.in: Regenerate.
9106         * Makefile.in: Regenerate.
9107         * aclocal.m4: Regenerate.
9108         * config.h.in: Regenerate.
9109         * configure: Regenerate.
9110         * testsuite/Makefile.in: Regenerate.
9112 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9114         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
9115         * Makefile.in: Regenerate.
9117 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
9119         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
9120         * Makefile.in: Regenerate.
9122 2009-08-19  Tobias Burnus  <burnus@net-b.de>
9124         PR fortran/41102
9125         omp_lib.h.in: Fix -std=f95 errors.
9127 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
9129         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
9130         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
9131         * testsuite/libgomp.graphite/graphite.exp: New.
9133 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
9135         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
9136         only build.
9138 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
9140         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
9141         needed memory barrier semantics.
9142         * config/linux/mips/mutex.h: New file.
9144 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9146         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
9148 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
9150         * configure: Regenerate.
9152 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
9154         PR testsuite/40699
9155         PR testsuite/40707
9156         PR testsuite/40709
9157         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
9158         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
9159         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
9161 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9163         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
9164         options when choosing a multilib.
9166 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
9168         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
9169         ld_library_path.  Use add_path.  Add just find_libgcc_s to
9170         ld_library_path, not every libgcc multilib directory.
9171         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
9172         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
9173         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
9174         Use add_path.
9175         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
9177 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
9179         * Makefile.am (LTLDFLAGS): Define.
9180         (LINK): Define.
9181         * Makefile.in: Regenerate.
9183 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
9185         PR fortran/39718
9186         * testsuite/libgomp.fortran/fortran.exp: Don't link with
9187         libgfortranbegin, check existence of libgfortran.a instead of
9188         libgfortranbegin.a.
9190 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
9192         PR libgomp/40174
9193         * team.c (gomp_thread_start): Destroy thr->release semaphore.
9194         (gomp_free_pool_helper): Likewise.
9196 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
9197             Jakub Jelinek  <jakub@redhat.com>
9199         PR fortran/35423
9200         * testsuite/libgomp.fortran/workshare2.f90: New test.
9202 2009-04-09  Nick Clifton  <nickc@redhat.com>
9204         * iter.c: Change copyright header to refer to version 3 of the
9205         GNU General Public License with version 3.1 of the GCC Runtime
9206         Library Exception and to point readers at the COPYING3 and
9207         COPYING3.RUNTIME files and the FSF's license web page.
9208         * alloc.c: Likewise.
9209         * barrier.c: Likewise.
9210         * config/bsd/proc.c: Likewise.
9211         * config/linux/affinity.c: Likewise.
9212         * config/linux/alpha/futex.h: Likewise.
9213         * config/linux/bar.c: Likewise.
9214         * config/linux/bar.h: Likewise.
9215         * config/linux/ia64/futex.h: Likewise.
9216         * config/linux/ia64/mutex.h: Likewise.
9217         * config/linux/lock.c: Likewise.
9218         * config/linux/mips/futex.h: Likewise.
9219         * config/linux/mutex.c: Likewise.
9220         * config/linux/mutex.h: Likewise.
9221         * config/linux/powerpc/futex.h: Likewise.
9222         * config/linux/proc.c: Likewise.
9223         * config/linux/ptrlock.c: Likewise.
9224         * config/linux/ptrlock.h: Likewise.
9225         * config/linux/s390/futex.h: Likewise.
9226         * config/linux/sem.c: Likewise.
9227         * config/linux/sem.h: Likewise.
9228         * config/linux/sparc/futex.h: Likewise.
9229         * config/linux/wait.h: Likewise.
9230         * config/linux/x86/futex.h: Likewise.
9231         * config/mingw32/proc.c: Likewise.
9232         * config/mingw32/time.c: Likewise.
9233         * config/posix/affinity.c: Likewise.
9234         * config/posix/bar.c: Likewise.
9235         * config/posix/bar.h: Likewise.
9236         * config/posix/lock.c: Likewise.
9237         * config/posix/mutex.h: Likewise.
9238         * config/posix/proc.c: Likewise.
9239         * config/posix/ptrlock.h: Likewise.
9240         * config/posix/sem.c: Likewise.
9241         * config/posix/sem.h: Likewise.
9242         * config/posix/time.c: Likewise.
9243         * config/posix95/lock.c: Likewise.
9244         * critical.c: Likewise.
9245         * env.c: Likewise.
9246         * error.c: Likewise.
9247         * fortran.c: Likewise.
9248         * iter_ull.c: Likewise.
9249         * libgomp.h: Likewise.
9250         * libgomp_f.h.in: Likewise.
9251         * libgomp_g.h: Likewise.
9252         * loop.c: Likewise.
9253         * loop_ull.c: Likewise.
9254         * omp.h.in: Likewise.
9255         * omp_lib.f90.in: Likewise.
9256         * omp_lib.h.in: Likewise.
9257         * ordered.c: Likewise.
9258         * parallel.c: Likewise.
9259         * sections.c: Likewise.
9260         * single.c: Likewise.
9261         * task.c: Likewise.
9262         * team.c: Likewise.
9263         * work.c: Likewise.
9265 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
9267         * testsuite/config/default.exp: Change copyright header to refer to
9268         version 3 of the GNU General Public License and to point readers
9269         at the COPYING3 file and the FSF's license web page.
9271 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
9273         PR middle-end/39573
9274         * libgomp.c++/pr39573.C: New test.
9276 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
9278         PR other/39591
9279         * testsuite/libgomp.c/pr39591-1.c: New test.
9280         * testsuite/libgomp.c/pr39591-2.c: New test.
9281         * testsuite/libgomp.c/pr39591-3.c: New test.
9283 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
9285         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
9286         * testsuite/libgomp.c/atomic-6.c: Ditto.
9288 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
9290         PR c/39495
9291         * testsuite/libgomp.c/loop-12.c: New test.
9292         * testsuite/libgomp.c/loop-11.c: New test.
9293         * testsuite/libgomp.c++/loop-11.C: New test.
9294         * testsuite/libgomp.c++/loop-12.C: New test.
9295         * testsuite/libgomp.c++/for-8.C: New test.
9297 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9299         * configure: Regenerate.
9301 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
9303         PR middle-end/39154
9304         * testsuite/libgomp.c/pr39154.c: New test.
9306 2009-01-30  Ian Lance Taylor  <iant@google.com>
9308         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9309         libgomp_ld_is_gold.  Get gold version number.
9310         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9311         * configure: Rebuild.
9313 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
9315         * testsuite/lib/libgomp.exp: Add -B option for targets that
9316         use libgfortran.a%s in their specs.
9318 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
9320         PR libgomp/38086
9321         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9322         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9323         HAVE_AS_SYMVER_DIRECTIVE is not defined.
9324         * configure: Regenerated.
9325         * config.h.in: Likewise.
9327 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
9329         PR c++/38650
9330         * testsuite/libgomp.c/pr38650.c: New test.
9331         * testsuite/libgomp.c++/pr38650.C: New test.
9333 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
9335         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9337 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
9339         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9341 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9343         * configure: Regenerate.
9345 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
9347         PR middle-end/36802
9348         * testsuite/libgomp.c/pr36802-1.c: New test.
9349         * testsuite/libgomp.c/pr36802-2.c: New test.
9350         * testsuite/libgomp.c/pr36802-3.c: New test.
9352 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
9354         PR libgomp/38270
9355         * config/linux/powerpc/mutex.h: New.
9357 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
9359         PR c++/38257
9360         * testsuite/libgomp.c++/for-7.C: New test.
9362         PR c++/38348
9363         * testsuite/libgomp.c++/for-6.C: New test.
9365 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
9367         PR testsuite/28870
9368         * testsuite/lib/libgomp.exp: Include new timeout library files.
9369         (libgomp_target_compile): Set timeout value from new proc.
9371 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
9373         PR libgomp/37938
9374         * config/linux/ia64/mutex.h: New.
9376 2008-11-04  Tobias Burnus  <burnus@net-b.de>
9378         PR libgomp/37935
9379         * libgomp.texi (Runtime library routines, environment variables):
9380         Update for OpenMP version 3.0.
9382 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
9383             Steve Ellcey  <sje@cup.hp.com>
9385         * configure: Regenerate for new libtool.
9386         * Makefile.in: Ditto.
9387         * testsuite/Makefile.in: Ditto.
9389 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
9390             Andreas Tobler  <a.tobler@schweiz.org>
9392         * config/bsd/proc.c: New file.
9393         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
9394         * configure.ac: Check for header <sys/sysctl.h>
9395         * configure: Regenerate.
9396         * config.h.in: Likewise.
9398 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
9400         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9402 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9404         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9405         * Makefile.in: Regenerated.
9406         * testsuite/Makefile.in: Regenerated.
9408 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
9410         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
9411         depend on blddir if blddir exists.
9412         (libgomp_target_compile): Likewise.
9413         * testsuite/libgomp.c++/c++.exp: Likewise.
9414         * testsuite/libgomp.fortran/fortran.exp: Likewise.
9416 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9418         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
9419         Do not list GPL as Invariant Section.
9421 2008-07-28  Ilie Garbacea  <ilie@mips.com>
9422             Chao-ying Fu  <fu@mips.com>
9424         * configure.tgt: Enable futex for MIPS.
9425         * config/linux/mips/futex.h: New file.
9427 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
9429         * team.c (gomp_team_end): Free team immediately if it has
9430         just one thread.
9432 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
9434         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9435         * testsuite/libgomp.fortran/fortran.exp: Same.
9436         * testsuite/libgomp.c/c.exp: Same.
9437         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9438         directory to library path first.
9440 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
9442         * env.c (parse_stacksize): Add cast to avoid warning.
9443         (parse_spincount): Likewise.
9445 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
9447         * testsuite/libgomp.c/loop-10.c: New test.
9448         * libgomp.c/loop-3.c (main): Add lastprivate clause.
9449         * libgomp.c++/loop-6.C (main): Likewise.
9451         PR debug/36617
9452         * testsuite/libgomp.c/debug-1.c: New test.
9454 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
9456         * testsuite/libgomp.c/nqueens-1.c: New test.
9458         PR c++/36523
9459         * testsuite/libgomp.c++/task-7.C: New function.
9461 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9463         * configure: Regenerate.
9465 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9467         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9468         mutex when HAVE_SYNC_BUILTINS isn't defined.
9470 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9472         * libgomp.texi (omp_test_lock): Fix typo.
9474 2008-06-12  Tobias Burnus  <burnus@net-b.de>
9476         * omp_lib.f90.in: Add "implicit none".
9478 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
9480         PR middle-end/36506
9481         * testsuite/libgomp.c/reduction-5.c: New test.
9483 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
9485         * libgomp.h (struct gomp_task): Add in_tied_task field.
9486         * task.c (gomp_init_task): Initialize it.
9487         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
9488         unconditionally.  Don't call gomp_team_barrier_wake if
9489         current task is implicit or if(0) from implicit and number of
9490         running tasks is equal to nthreads - 1.
9492         PR libgomp/36471
9493         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
9494         omp_get_team_size_8): Fix pastos.
9496         PR libgomp/36469
9497         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
9498         * configure: Regenerated.
9499         * config.h.in: Regenerated.
9500         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
9501         defined.
9503 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
9505         PR bootstrap/36452
9506         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
9507         (GOMP_loop_ull_dynamic_start): Likewise.
9508         (GOMP_loop_ull_guided_start): Likewise.
9509         (GOMP_loop_ull_ordered_static_start): Likewise.
9510         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
9511         (GOMP_loop_ull_ordered_guided_start): Likewise.
9513 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
9514             Richard Henderson  <rth@redhat.com>
9515             Ulrich Drepper  <drepper@redhat.com>
9516             Jakob Blomer  <jakob.blomer@ira.uka.de>
9518         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
9519         Substitute also OMP_*LOCK_25*.
9520         * configure: Regenerated.
9521         * config.h.in: Regenerated.
9522         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
9523         ptrlock.c and task.c.
9524         * Makefile.in: Regenerated.
9525         * testsuite/Makefile.in: Regenerated.
9526         * task.c: New file.
9527         * loop_ull.c: New file.
9528         * iter_ull.c: New file.
9529         * libgomp.h: Include ptrlock.h.
9530         (enum gomp_task_kind): New type.
9531         (struct gomp_team): Add task_lock, task_queue, task_count,
9532         task_running_count, single_count fields.  Add
9533         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
9534         Remove work_share_lock, generation_mask,
9535         oldest_live_gen, num_live_gen and init_work_shares fields, add
9536         work work_share_list_alloc, work_share_list_free and work_share_chunk
9537         fields.  Change work_shares from pointer to pointers into an array.
9538         Change ordered_release field into gomp_sem_t ** from flexible array
9539         member.  Add implicit_task and initial_work_shares fields.
9540         Move close to the end of the struct.
9541         (struct gomp_team_state): Add single_count, last_work_share,
9542         active_level and level fields, remove work_share_generation.
9543         (gomp_barrier_handle_tasks): New prototype.
9544         (gomp_finish_task): New inline function.
9545         (struct gomp_work_share): Move chunk_size, end, incr into
9546         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
9547         next_ll fields.  Reshuffle fields.  Add next_alloc,
9548         next_ws, next_free and inline_ordered_team_ids fields, change
9549         ordered_team_ids into pointer from flexible array member.
9550         Add mode field.  Put lock and next into a different cache line
9551         from most of the write-once fields.
9552         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
9553         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
9554         gomp_iter_ull_guided_next): New prototypes.
9555         (gomp_new_icv): New prototype.
9556         (struct gomp_thread): Add thread_pool and task fields.
9557         (struct gomp_thread_pool): New type.
9558         (gomp_new_team): New prototype.
9559         (gomp_team_start): Change type of last argument.
9560         (gomp_new_work_share): Removed.
9561         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
9562         (gomp_work_share_init_done): New static inline.
9563         (gomp_throttled_spin_count_var, gomp_available_cpus,
9564         gomp_managed_threads): New extern decls.
9565         (gomp_init_task): New prototype.
9566         (gomp_spin_count_var): New extern var decl.
9567         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
9568         or no alias support, or if not PIC.
9569         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
9570         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
9571         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
9572         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
9573         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
9574         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
9575         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
9576         gomp_test_nest_lock_25): New prototypes.
9577         (omp_lock_symver, strong_alias): Define.
9578         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
9579         decls.
9580         (gomp_end_task): New.
9581         (struct gomp_task_icv, gomp_global_icv): New.
9582         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
9583         (struct gomp_task): New.
9584         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9585         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9586         (gomp_icv): New.
9587         (gomp_schedule_type): Reorder enum to match
9588         omp_sched_t.
9589         * team.c (struct gomp_thread_start_data): Add thread_pool and task
9590         fields.
9591         (gomp_thread_start): Add gomp_team_barrier_wait call.
9592         For non-nested case remove clearing of docked thread thr fields.
9593         Use pool fields instead of global gomp_* variables.  Use
9594         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
9595         Create tasks for each member thread.
9596         (free_team): Only destroy team barrier, task_lock here and free it.
9597         (gomp_free_thread): Free last_team if non-NULL.
9598         (gomp_team_end): Call gomp_team_barrier_wait instead of
9599         gomp_barrier_wait.  For nested case call one extra
9600         gomp_barrier_wait.  Move here some destruction from free_team.
9601         Call free_team on pool->last_team if any, rather than freeing
9602         current team.  Destroy work_share_list_free_lock ifndef
9603         HAVE_SYNC_BUILTINS.
9604         (gomp_new_icv): New function.
9605         (gomp_threads, gomp_threads_size, gomp_threads_used,
9606         gomp_threads_dock): Removed.
9607         (gomp_thread_destructor): New variable.
9608         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9609         functions.
9610         (gomp_team_start): Create new pool if current thread doesn't have
9611         one.  Use pool fields instead of global gomp_* variables.
9612         Initialize thread_pool field for new threads.  Clear single_count.
9613         Change last argument from ws to team, don't create
9614         new team, set ts.work_share to &team->work_shares[0] and clear
9615         ts.last_work_share.  Don't clear ts.work_share_generation.
9616         If number of threads changed, adjust atomically gomp_managed_threads.
9617         Use gomp_init_task instead of gomp_new_task,
9618         set thr->task to the corresponding implicit_task array entry.
9619         Create tasks for each member thread.  Initialize ts.level.
9620         (initialize_team): Call pthread_key_create on
9621         gomp_thread_destructor.
9622         (team_destructor): New function.
9623         (new_team): Removed.
9624         (gomp_new_team): New function.
9625         (free_team): Free gomp_work_share blocks chained through next_alloc,
9626         instead of freeing work_shares and destroying work_share_lock.
9627         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
9628         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
9629         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9630         of gomp_barrier_wait.
9631         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9632         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
9633         if gomp_work_share_start returned true.  Don't unlock ws->lock.
9634         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9635         of gomp_barrier_wait.
9636         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
9637         gomp_work_share_init_done if gomp_work_share_start returned true.
9638         Don't unlock ws->lock.
9639         * work.c: Include stddef.h.
9640         (free_work_share): Use work_share_list_free_lock instead
9641         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
9642         Call gomp_fini_work_share and then either free ws if orphaned, or
9643         put it into work_share_list_free list of the current team.
9644         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9645         functions.
9646         (gomp_work_share_start, gomp_work_share_end,
9647         gomp_work_share_end_nowait): Rewritten.
9648         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9649         (openmp_version): Set to 200805.
9650         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9651         omp_sched_guided, omp_sched_auto): New parameters.
9652         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9653         omp_set_max_active_levels, omp_get_max_active_levels,
9654         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9655         omp_get_active_level): New interfaces.
9656         * omp_lib.h.in (openmp_version): Set to 200805.
9657         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9658         omp_sched_guided, omp_sched_auto): New parameters.
9659         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9660         omp_set_max_active_levels, omp_get_max_active_levels,
9661         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9662         omp_get_active_level): New externals.
9663         * loop.c: Include limits.h.
9664         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9665         GFS_AUTO.
9666         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9667         Likewise.  Use gomp_icv.
9668         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9669         ts.static_trip here.
9670         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9671         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
9672         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9673         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
9674         don't unlock ws->lock, otherwise lock it.
9675         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9676         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
9677         (gomp_parallel_loop_start): Call gomp_new_team instead of
9678         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
9679         Adjust gomp_team_start caller.  Pass 0 as second argument to
9680         gomp_resolve_num_threads.
9681         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9682         If adding ws->chunk_size nthreads + 1 times after end won't
9683         overflow, set ws->mode to 1.
9684         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9685         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9686         GOMP_loop_ull_ordered_static_start,
9687         GOMP_loop_ull_ordered_dynamic_start,
9688         GOMP_loop_ull_ordered_guided_start,
9689         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9690         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9691         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9692         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9693         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9694         prototypes.
9695         * libgomp.map: Export lock routines also @@OMP_2.0.
9696         (GOMP_loop_ordered_dynamic_first,
9697         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9698         GOMP_loop_ordered_static_first): Remove.
9699         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9700         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9701         GOMP_loop_ull_ordered_dynamic_next,
9702         GOMP_loop_ull_ordered_dynamic_start,
9703         GOMP_loop_ull_ordered_guided_next,
9704         GOMP_loop_ull_ordered_guided_start,
9705         GOMP_loop_ull_ordered_runtime_next,
9706         GOMP_loop_ull_ordered_runtime_start,
9707         GOMP_loop_ull_ordered_static_next,
9708         GOMP_loop_ull_ordered_static_start,
9709         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9710         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9711         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9712         (omp_set_schedule, omp_get_schedule,
9713         omp_get_thread_limit, omp_set_max_active_levels,
9714         omp_get_max_active_levels, omp_get_level,
9715         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9716         omp_set_schedule_, omp_set_schedule_8_,
9717         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9718         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9719         omp_get_max_active_levels_, omp_get_level_,
9720         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9721         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9722         New exports @@OMP_3.0.
9723         * omp.h.in (omp_sched_t): New type.
9724         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9725         omp_set_max_active_levels, omp_get_max_active_levels,
9726         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9727         omp_get_active_level): New prototypes.
9728         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9729         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9730         gomp_thread_limit_var, gomp_remaining_threads_count,
9731         gomp_remaining_threads_lock): New variables.
9732         (parse_spincount): New function.
9733         (initialize_env): Call gomp_init_num_threads unconditionally.
9734         Initialize gomp_available_cpus.  Call parse_spincount,
9735         initialize gomp_{,throttled_}spin_count_var
9736         depending on presence and value of OMP_WAIT_POLICY and
9737         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
9738         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9739         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
9740         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
9741         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
9742         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9743         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9744         (gomp_global_icv): New.
9745         (parse_schedule): Use it.  Parse "auto".
9746         (omp_set_num_threads): Use gomp_icv.
9747         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9748         Likewise.
9749         (omp_get_max_threads): Move from parallel.c.
9750         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9751         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9752         add ialias.
9753         (parse_stacksize, parse_wait_policy): New functions.
9754         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9755         both wrappers for compatibility and new locks.
9756         (omp_set_schedule, omp_get_schedule,
9757         omp_get_thread_limit, omp_set_max_active_levels,
9758         omp_get_max_active_levels, omp_get_level,
9759         omp_get_ancestor_thread_num, omp_get_team_size,
9760         omp_get_active_level): New ialias_redirect.
9761         (omp_set_schedule_, omp_set_schedule_8_,
9762         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9763         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9764         omp_get_max_active_levels_, omp_get_level_,
9765         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9766         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9767         New functions.
9768         * parallel.c: Include limits.h.
9769         (gomp_resolve_num_threads): Add count argument.  Rewritten.
9770         (GOMP_parallel_start): Call gomp_new_team and pass that as last
9771         argument to gomp_team_start.  Pass 0 as second argument to
9772         gomp_resolve_num_threads.
9773         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9774         if gomp_thread_limit_var != ULONG_MAX.
9775         (omp_in_parallel): Implement using ts.active_level.
9776         (omp_get_max_threads): Move to env.c.
9777         (omp_get_level, omp_get_ancestor_thread_num,
9778         omp_get_team_size, omp_get_active_level): New functions,
9779         add ialias.
9780         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9781         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
9782         gomp_iter_dynamic_next instead of the _locked variant and don't take
9783         lock around it, otherwise acquire it before calling
9784         gomp_iter_dynamic_next_locked.
9785         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9786         gomp_iter_dynamic_next instead of the _locked variant and don't take
9787         lock around it.
9788         (GOMP_parallel_sections_start): Call gomp_new_team instead of
9789         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
9790         Adjust gomp_team_start caller.  Pass count as second argument to
9791         gomp_resolve_num_threads, don't adjust num_threads after the call.
9792         Use gomp_icv.
9793         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9794         ws->chunk_size by incr.
9795         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
9796         code.
9797         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9798         types.
9799         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9800         (omp_check_defines): Check even the compat defines.
9801         * config/linux/ptrlock.c: New file.
9802         * config/linux/ptrlock.h: New file.
9803         * config/linux/wait.h: New file.
9804         * config/posix/ptrlock.c: New file.
9805         * config/posix/ptrlock.h: New file.
9806         * config/linux/bar.h (gomp_team_barrier_wait,
9807         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9808         (gomp_team_barrier_set_task_pending,
9809         gomp_team_barrier_clear_task_pending,
9810         gomp_team_barrier_set_waiting_for_tasks,
9811         gomp_team_barrier_waiting_for_tasks,
9812         gomp_team_barrier_done): New inlines.
9813         (gomp_barrier_t): Rewritten.
9814         (gomp_barrier_state_t): New typedef.
9815         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9816         gomp_barrier_wait_start): Rewritten.
9817         (gomp_barrier_wait_end): Change second argument to
9818         gomp_barrier_state_t.
9819         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9820         inlines.
9821         * config/linux/bar.c: Include wait.h instead of libgomp.h and
9822         futex.h.
9823         (gomp_barrier_wait_end): Rewritten.
9824         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9825         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9826         * config/posix/bar.h (gomp_barrier_t): Add generation field.
9827         (gomp_barrier_state_t): New typedef.
9828         (gomp_team_barrier_wait,
9829         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9830         (gomp_barrier_wait_start): Or all but low 2 bits from generation
9831         into the return value.  Return gomp_barrier_state_t.
9832         (gomp_team_barrier_set_task_pending,
9833         gomp_team_barrier_clear_task_pending,
9834         gomp_team_barrier_set_waiting_for_tasks,
9835         gomp_team_barrier_waiting_for_tasks,
9836         gomp_team_barrier_done): New inlines.
9837         (gomp_barrier_wait_end): Change second argument to
9838         gomp_barrier_state_t.
9839         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9840         inlines.
9841         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9842         (gomp_barrier_wait_end): Change second argument to
9843         gomp_barrier_state_t.
9844         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9845         gomp_team_barrier_wake): New functions.
9846         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9847         futex.h.
9848         (gomp_futex_wake, gomp_futex_wait): New variables.
9849         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9850         * config/linux/lock.c: Rewrite to make locks task owned,
9851         for backwards compatibility provide the old entrypoints
9852         if symbol versioning.  Include wait.h instead of libgomp.h and
9853         futex.h.
9854         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9855         * config/posix95/lock.c: Rewrite to make locks task owned,
9856         for backwards compatibility provide the old entrypoints
9857         if symbol versioning.
9858         * config/posix/lock.c: Rewrite to make locks task owned,
9859         for backwards compatibility provide the old entrypoints
9860         if symbol versioning.
9861         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9862         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9863         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9864         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9865         (sys_futex0): Return error code.
9866         (futex_wake, futex_wait): If ENOSYS was returned, clear
9867         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9868         (cpu_relax, atomic_write_barrier): New static inlines.
9869         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9870         (futex_wake, futex_wait): If ENOSYS was returned, clear
9871         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9872         (cpu_relax, atomic_write_barrier): New static inlines.
9873         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9874         (sys_futex0): Return error code.
9875         (futex_wake, futex_wait): If ENOSYS was returned, clear
9876         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9877         (cpu_relax, atomic_write_barrier): New static inlines.
9878         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9879         (sys_futex0): Return error code.
9880         (futex_wake, futex_wait): If ENOSYS was returned, clear
9881         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9882         (cpu_relax, atomic_write_barrier): New static inlines.
9883         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9884         (sys_futex0): Return error code.
9885         (futex_wake, futex_wait): If ENOSYS was returned, clear
9886         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9887         (cpu_relax, atomic_write_barrier): New static inlines.
9888         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9889         (sys_futex0): Return error code.
9890         (futex_wake, futex_wait): If ENOSYS was returned, clear
9891         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9892         (cpu_relax, atomic_write_barrier): New static inlines.
9893         * config/linux/sem.c: Include wait.h instead of libgomp.h and
9894         futex.h.
9895         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9896         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9897         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9898         types.
9899         (omp_nest_lock_t): Change owner into void *, add lock field.
9900         * config/posix95/omp-lock.h: Include semaphore.h.
9901         (omp_lock_25_t, omp_nest_lock_25_t): New types.
9902         (omp_lock_t): Use sem_t instead of mutex if semaphores
9903         aren't broken.
9904         (omp_nest_lock_t): Likewise.  Change owner to void *.
9905         * config/posix/omp-lock.h: Include semaphore.h.
9906         (omp_lock_25_t, omp_nest_lock_25_t): New types.
9907         (omp_lock_t): Use sem_t instead of mutex if semaphores
9908         aren't broken.
9909         (omp_nest_lock_t): Likewise.  Add owner field.
9911 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
9913         * testsuite/libgomp.c/collapse-1.c: New test.
9914         * testsuite/libgomp.c/collapse-2.c: New test.
9915         * testsuite/libgomp.c/collapse-3.c: New test.
9916         * testsuite/libgomp.c/icv-1.c: New test.
9917         * testsuite/libgomp.c/icv-2.c: New test.
9918         * testsuite/libgomp.c/lib-2.c: New test.
9919         * testsuite/libgomp.c/lock-1.c: New test.
9920         * testsuite/libgomp.c/lock-2.c: New test.
9921         * testsuite/libgomp.c/lock-3.c: New test.
9922         * testsuite/libgomp.c/loop-4.c: New test.
9923         * testsuite/libgomp.c/loop-5.c: New test.
9924         * testsuite/libgomp.c/loop-6.c: New test.
9925         * testsuite/libgomp.c/loop-7.c: New test.
9926         * testsuite/libgomp.c/loop-8.c: New test.
9927         * testsuite/libgomp.c/loop-9.c: New test.
9928         * testsuite/libgomp.c/nested-3.c: New test.
9929         * testsuite/libgomp.c/nestedfn-6.c: New test.
9930         * testsuite/libgomp.c/sort-1.c: New test.
9931         * testsuite/libgomp.c/task-1.c: New test.
9932         * testsuite/libgomp.c/task-2.c: New test.
9933         * testsuite/libgomp.c/task-3.c: New test.
9934         * testsuite/libgomp.c/task-4.c: New test.
9935         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9936         to C++ testsuite default compiler options.
9937         * testsuite/libgomp.c++/collapse-1.C: New test.
9938         * testsuite/libgomp.c++/collapse-2.C: New test.
9939         * testsuite/libgomp.c++/ctor-10.C: New test.
9940         * testsuite/libgomp.c++/for-1.C: New test.
9941         * testsuite/libgomp.c++/for-2.C: New test.
9942         * testsuite/libgomp.c++/for-3.C: New test.
9943         * testsuite/libgomp.c++/for-4.C: New test.
9944         * testsuite/libgomp.c++/for-5.C: New test.
9945         * testsuite/libgomp.c++/loop-8.C: New test.
9946         * testsuite/libgomp.c++/loop-9.C: New test.
9947         * testsuite/libgomp.c++/loop-10.C: New test.
9948         * testsuite/libgomp.c++/task-1.C: New test.
9949         * testsuite/libgomp.c++/task-2.C: New test.
9950         * testsuite/libgomp.c++/task-3.C: New test.
9951         * testsuite/libgomp.c++/task-4.C: New test.
9952         * testsuite/libgomp.c++/task-5.C: New test.
9953         * testsuite/libgomp.c++/task-6.C: New test.
9954         * testsuite/libgomp.fortran/allocatable1.f90: New test.
9955         * testsuite/libgomp.fortran/allocatable2.f90: New test.
9956         * testsuite/libgomp.fortran/allocatable3.f90: New test.
9957         * testsuite/libgomp.fortran/allocatable4.f90: New test.
9958         * testsuite/libgomp.fortran/collapse1.f90: New test.
9959         * testsuite/libgomp.fortran/collapse2.f90: New test.
9960         * testsuite/libgomp.fortran/collapse3.f90: New test.
9961         * testsuite/libgomp.fortran/collapse4.f90: New test.
9962         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9963         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9964         * testsuite/libgomp.fortran/lib4.f90: New test.
9965         * testsuite/libgomp.fortran/lock-1.f90: New test.
9966         * testsuite/libgomp.fortran/lock-2.f90: New test.
9967         * testsuite/libgomp.fortran/nested1.f90: New test.
9968         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9969         * testsuite/libgomp.fortran/strassen.f90: New test.
9970         * testsuite/libgomp.fortran/tabs1.f90: New test.
9971         * testsuite/libgomp.fortran/tabs2.f: New test.
9972         * testsuite/libgomp.fortran/task1.f90: New test.
9973         * testsuite/libgomp.fortran/task2.f90: New test.
9974         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9975         * testsuite/libgomp.fortran/vla5.f90: Likewise.
9976         * testsuite/libgomp.c/pr26943-2.c: Likewise.
9977         * testsuite/libgomp.c/pr26943-3.c: Likewise.
9978         * testsuite/libgomp.c/pr26943-4.c: Likewise.
9980 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
9982         PR c++/36308
9983         * testsuite/libgomp.c++/ctor-11.C: New test.
9984         * testsuite/libgomp.c++/ctor-12.C: New test.
9986 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
9988         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9990 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
9992         PR middle-end/36106
9993         * testsuite/libgomp.c/atomic-5.c: New test.
9994         * testsuite/libgomp.c/atomic-6.c: New test.
9995         * testsuite/libgomp.c/autopar-1.c: New test.
9997 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9999         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
10000         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
10001         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
10002         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
10003         * configure: Regenerate.
10004         * Makefile.in, testsuite/Makefile.in: Likewise.
10006 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
10008         PR bootstrap/35457
10009         * aclocal.m4: Regenerate.
10010         * configure: Regenerate.
10012 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
10014         PR middle-end/35611
10015         * testsuite/libgomp.c/atomic-4.c: New test.
10017         PR libgomp/35625
10018         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
10019         (gomp_iter_guided_next): Likewise.
10020         * testsuite/libgomp.c/pr35625.c: New test.
10022 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10024         * aclocal.m4: Regenerate.
10025         * configure: Likewise.
10026         * Makefile.in: Likewise.
10027         * testsuite/Makefile.in: Likewise.
10029 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
10031         PR middle-end/35185
10032         * testsuite/libgomp.c++/pr35185.C: New test.
10034 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
10036         PR middle-end/35549
10037         * testsuite/libgomp.c/pr35549.c: New test.
10039 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
10041         * testsuite/libgomp.c/atomic-3.c: New test.
10043 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10045         PR fortran/33197
10046         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
10047         .F08 file suffixes.
10049 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
10051         PR libgomp/33131
10052         * configure.ac: Add ACX_HEADER_STRING.
10053         * env.c: Include strings.h.
10054         * aclocal.m4: Regenerate.
10055         * config.h.in: Regenerate.
10056         * configure: Regenerate.
10057         * Makefile.in: Regenerate.
10058         * testsuite/Makefile.in: Regenerate.
10060 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
10062         PR middle-end/35196
10063         * testsuite/libgomp.c/pr35196.c: New test.
10065         PR middle-end/35130
10066         * testsuite/libgomp.fortran/pr35130.f90: New test.
10067         * testsuite/libgomp.c/pr35130.c: New test.
10069 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
10071         PR middle-end/33880
10072         * testsuite/libgomp.c/pr33880.c: New test.
10073         * testsuite/libgomp.fortran/pr33880.f90: New test.
10075 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
10077         * configure: Regenerate.
10079 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
10081         * configure.ac: Move futex checking into ../config/futex.m4.
10082         * configure: Rebuilt.
10083         * aclocal.m4: Rebuilt.
10084         * Makefile.in: Rebuilt.
10086         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
10087         2007-10-15 ../config/tls.m4 change.
10089 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
10091         PR c++/34513
10092         * testsuite/libgomp.c/pr34513.c: New test.
10093         * testsuite/libgomp.c++/pr34513.C: New test.
10095 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
10097         PR target/32765
10098         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
10100 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
10102         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
10104 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
10106         * testsuite/libgomp.c/private-1.c: New test.
10108 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
10109             Paolo Bonzini  <bonzini@gnu.org>
10111         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
10112         instead of 'VPATH ='.
10113         * Makefile.in: Regenerate.
10115 2007-11-23  Matthias Klose  <doko@ubuntu.com>
10117         * configure.ac: Adjust makeinfo version check.
10118         * configure: Regenerate.
10120 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
10122         PR fortran/34020
10123         * testsuite/libgomp.fortran/pr34020.f90: New test.
10125 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
10127         PR c++/33894
10128         * testsuite/libgomp.c++/atomic-1.C: New test.
10130 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
10132         PR libgomp/33275
10133         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
10134         Make x and y integers rather than (implicit) reals.  Add private (j)
10135         clause to the last omp parallel.
10137 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
10139         * configure: Regenerate following changes to ../config/tls.m4.
10141 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
10143         * testsuite/libgomp.fortran/stack.f90: New test.
10145 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
10147         * config/mingw32/proc.c: New file.
10149 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
10151         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
10152         (main): Use __get_cpuid to get i386 target fetaures.
10153         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
10154         (main): Use __get_cpuid to get x86_64 target fetaures.
10156 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
10158         PR target/32765
10159         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
10160         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
10162 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10164         PR fortran/32550
10165         * testsuite/libgomp.fortran/pr32550.f90: New test.
10166         * testsuite/libgomp.fortran/crayptr2.f90: New test.
10168 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10170         * aclocal.m4: Regenerated.
10172 2007-07-05  Tobias Burnus  <burnus@net-b.de>
10174         PR fortran/32359
10175         * testsuite/libgomp.fortran/pr32359.f90: New.
10177 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
10179         PR libgomp/32468
10180         * sections.c (GOMP_parallel_sections_start): Only decrease
10181         number of threads to COUNT if dyn_var is true.
10182         * testsuite/libgomp.c/pr32468.c: New test.
10184 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10186         PR libgomp/26308
10187         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
10189 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
10191         PR middle-end/32362
10192         * testsuite/libgomp.c/pr32362-1.c: New test.
10193         * testsuite/libgomp.c/pr32362-2.c: New test.
10194         * testsuite/libgomp.c/pr32362-3.c: New test.
10196 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
10198         * team.c (gomp_team_start): Fix setting up thread_attr
10199         stack size.
10201 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
10203         * configure: Regenerate.
10205 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
10207         * Makefile.in: Regenerate.
10208         * configure: Regenerate.
10209         * aclocal.m4: Regenerate.
10210         * testsuite/Makefile.in: Regenerate.
10212 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
10214         * config/linux/proc.c: New file.
10216         PR libgomp/28482
10217         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
10219 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
10221         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
10223 2007-04-16  Matthias Klose  <doko@debian.org>
10225         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
10226         flags if not building with -m64.
10227         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
10228         flag for i?86-*-* targets, if current target matches -m64.
10230 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
10232         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
10233         * Makefile.in: Regenerate.
10235 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10237         PR testsuite/31369
10238         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
10239         ld_library_path.
10240         * testsuite/libgomp.fortran/fortran.exp: Likewise.
10242 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
10244         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
10245         decls.
10246         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
10247         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
10248         (parse_affinity): New function.
10249         (initialize_env): Call it and gomp_init_affinity.
10250         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
10251         create new pthread_attr_t and call gomp_init_thread_affinity
10252         on it for each thread before passing the attribute to pthread_create.
10253         * config/linux/affinity.c: New file.
10254         * config/posix/affinity.c: New file.
10255         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
10256         * configure: Rebuilt.
10257         * config.h.in: Rebuilt.
10258         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
10259         * Makefile.in: Rebuilt.
10261 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
10263         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
10264         *-*-darwin*.
10265         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
10266         and use it if found.
10268 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
10270         * testsuite/config/default.exp: New file.
10271         * testsuite/lib/libgomp.exp: New file.
10272         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
10273         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
10274         load_lib *, load_gcc_lib *): Move to libgomp.exp.
10275         (libgomp_load): Remove.
10276         * testsuite/lib/libgomp.exp (libgomp_init): Compute
10277         always_ld_library_path, not ld_library_path.  Set additional_flags
10278         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
10279         (target_compile): Do not call libgomp_init.  Append lang_library_path
10280         and lang_link_flags to options.
10281         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
10282         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
10283         here.
10284         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
10285         always_ld_library_path.  Set LD_LIBRARY_PATH here.
10286         * testsuite/libgomp.fortran/fortran.exp: Ditto.
10287         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
10288         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
10289         CX8 flag.
10290         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
10291         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
10292         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
10293         * testsuite/libgomp.c/pr29947-1.c: Ditto.
10294         * testsuite/libgomp.c/atomic-10.c: Ditto.
10296 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
10298         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10299         dg-final cleanup-modules line.
10300         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10301         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10302         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10303         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10304         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10305         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10306         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10308 2007-03-18  Andreas Schwab  <schwab@suse.de>
10310         * acinclude.m4: Adjust regular expression for ld version
10311         extraction.
10312         * configure: Regenerate.
10314 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
10316         * Makefile.am: Add install-pdf target as copied from
10317         automake v1.10 rules.
10318         * Makefile.in: Regenerate
10320 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
10322         PR libgomp/28486
10323         * configure: Regenerate.
10325         PR c++/30703
10326         * testsuite/libgomp.c++/pr30703.C: New test.
10328 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
10330         Revert:
10331         2006-07-05  Eric Christopher  <echristo@apple.com>
10332         * configure.ac: Depend addition of -pthread on host OS.
10333         * configure: Regenerate.
10335 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10337         * libgomp.texi: Fix spacing after abbreviations.
10339 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
10341         PR libgomp/30546
10342         * configure.ac: Add check for makeinfo
10343         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10344         if an appropiate version of makeinfo is found.
10345         * aclocal.m4: Regenerated.
10346         * configure: Regenerated.
10347         * Makefile.in: Regenerated.
10348         * testsuite/Makefile.in: Regenerated.
10350 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
10352         PR libgomp/30540
10353         * libgomp.texi: More about implementation-dependent settings.
10355 2007-01-26  Tobias Burnus  <burnus@net-b.de>
10357         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10359 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
10361         PR middle-end/30494
10362         * testsuite/libgomp.c/pr30494.c: New test.
10364 2007-01-15  Tom Tromey  <tromey@redhat.com>
10366         * configure: Rebuilt.
10367         * configure.ac: Fixed comment.
10369 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
10371         * libgomp.texi: Document implementation specific default values of
10372         environment variables.
10374 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
10376         PR libgomp/28209
10377         * libgomp.texi: New file.
10378         * configure.ac: Add --enable-generated-files-in-srcdir option.
10379         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10380         files to srcdir.
10381         * Makefile.in: Regenerated.
10382         * config.h.in: Regenerated.
10383         * testsuite/Makefile.in: Regenerated.
10384         * NOTES: Removed.
10386 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
10388         PR libgomp/29949
10389         * env.c (omp_set_num_threads): Set illegal thread count to 1.
10391 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
10393         * configure: Regenerate.
10395 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
10397         PR libgomp/29947
10398         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
10399         start if there shouldn't be any loop iterations.
10400         (gomp_loop_ordered_static_start): Remove start == end test.
10401         * testsuite/libgomp.c/pr29947-1.c: New test.
10402         * testsuite/libgomp.c/pr29947-2.c: New test.
10404 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
10406         * configure.tgt: Force initial-exec TLS model on Linux only.
10408 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
10410         * configure: Regenerated.
10412 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
10414         * env.c (parse_schedule): Reject out of range values.
10415         (parse_unsigned_long): Reject out of range, negative or zero values.
10417 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
10419         PR fortran/29629
10420         * testsuite/libgomp.fortran/pr29629.f90: New test.
10422 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
10424         PR libgomp/29494
10425         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10426         * config/posix95: New directory.
10427         * config/posix95/omp-lock.h: New file.
10428         * config/posix95/lock.c: Likewise.
10430 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
10432         * aclocal.m4: Regenerate.
10433         * configure: Regenerate.
10435 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
10437         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10438         '<' to '<='.
10440 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
10442         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10443         test.
10444         * configure: Regenerate.
10445         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10447 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
10449         PR middle-end/25261
10450         PR middle-end/28790
10451         * testsuite/libgomp.c/nestedfn-4.c: New test.
10452         * testsuite/libgomp.c/nestedfn-5.c: New test.
10453         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10455         PR fortran/29097
10456         * testsuite/libgomp.fortran/condinc1.f: New test.
10457         * testsuite/libgomp.fortran/condinc2.f: New test.
10458         * testsuite/libgomp.fortran/condinc3.f90: New test.
10459         * testsuite/libgomp.fortran/condinc4.f90: New test.
10460         * testsuite/libgomp.fortran/condinc1.inc: New file.
10462 2006-09-18  Tom Tromey  <tromey@redhat.com>
10464         * configure: Rebuilt.
10466 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
10468         PR c/28768
10469         PR preprocessor/14634
10470         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10471         to AC_DEFINE.
10472         * configure: Regenerate.
10474 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
10476         * testsuite/libgomp.fortran/reduction3.f90: Change
10477         -2147483648 to -huge(i)-1 to avoid overflow.
10478         * testsuite/libgomp.fortran/reduction4.f90: Change
10479         Z'ffffffff' to not(0) to avoid overflow.
10481 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
10483         PR libgomp/25938
10484         * Makefile.am (libsubincludedir): New.
10485         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
10486         * Makefile.in: Regenerate.
10488 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
10490         PR libgomp/28725
10491         * env.c: Include ctype.h.
10492         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
10493         leading and/or trailing whitespace and compare strings case
10494         insensitively.
10496 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
10498         PR fortran/28390
10499         * testsuite/libgomp.fortran/pr28390.f: New test.
10501 2006-07-05  Eric Christopher  <echristo@apple.com>
10503         * configure.ac: Depend addition of -pthread on host OS.
10504         * configure: Regenerate.
10506 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
10508         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
10509         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
10510         defined.
10512 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
10514         PR libgomp/26175
10515         PR libgomp/26477
10516         * configure.ac: If neither --enable-linux-futex nor
10517         --disable-linux-futex is passed, determine the default by checking
10518         for compiling and/or running against NPTL.  With --enable-linux-futex,
10519         check if SYS_gettid and SYS_futex are defined.
10520         * configure: Rebuilt.
10522 2006-06-14  Richard Henderson  <rth@redhat.com>
10524         PR libgomp/28008
10525         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
10526         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
10528 2006-06-09  Richard Henderson  <rth@redhat.com>
10530         * env.c (gomp_nthreads_var): Change to unsigned long.
10531         (gomp_run_sched_chunk): Likewise.
10532         (parse_unsigned_long): Rename from parse_num_threads and generalize.
10533         (initialize_env): Initialize gomp_thread_attr.
10534         * libgomp.h (gomp_nthreads_var): Update decl.
10535         (gomp_run_sched_chunk): Likewise.
10536         (gomp_thread_attr): Declare.
10537         * team.c (gomp_thread_attr): Export.
10538         (initialize_team): Don't initialize it.
10540 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
10542         PR fortran/27916
10543         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
10544         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
10546 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
10548         * config/mingw32/time.c: New file.
10549         * configure.tgt: Use it.
10551 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
10553         * Makefile.am: Add install-html target. Add install-html to .PHONY
10554         * Makefile.in: Regenerate.
10556 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10558         PR libgomp/27612
10559         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
10560         * testsuite/libgomp.c/critical-1.c: Likewise.
10561         * testsuite/libgomp.c/loop-1.c: Likewise.
10562         * testsuite/libgomp.c/loop-2.c: Likewise.
10563         * testsuite/libgomp.c/single-1.c: Likewise.
10564         * testsuite/libgomp.c/ordered-1.c: Likewise.
10565         * testsuite/libgomp.c/ordered-2.c: Likewise.
10567 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
10569         PR middle-end/27416
10570         * libgomp.fortran/pr27416-1.f90: New test.
10572 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
10574         PR fortran/27395
10575         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
10576         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
10578 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
10580         PR c++/26943
10581         * testsuite/libgomp.c/pr26943-1.c: New test.
10582         * testsuite/libgomp.c/pr26943-2.c: New test.
10583         * testsuite/libgomp.c/pr26943-3.c: New test.
10584         * testsuite/libgomp.c/pr26943-4.c: New test.
10585         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
10586         * testsuite/libgomp.c++/pr26943.C: New test.
10588 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
10590         PR middle-end/27337
10591         * testsuite/libgomp.c++/pr27337.C: New test.
10593 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
10595         PR c/26171
10596         * testsuite/libgomp.c/pr26171.c: New test.
10598 2006-04-25  Richard Henderson  <rth@redhat.com>
10600         PR libgomp/25865
10601         * configure.ac: Use GCC_CHECK_TLS.
10602         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10603         * Makefile.in, aclocal.m4, configure: Regenerate.
10605 2006-04-10  Matthias Klose  <doko@debian.org>
10607         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10608         directory names containing underscores.
10610 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
10612         PR c++/26691
10613         * testsuite/libgomp.c++/pr26691.C: New test.
10615 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
10617         * testsuite/libgomp.fortran/retval2.f90: New test.
10619 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
10621         * testsuite/libgomp.c++: New directory.
10623 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
10625         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10626         * config/posix/sem.c: Implement the above.
10628 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
10630         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10631         define HAVE_BROKEN_POSIX_SEMAPHORES.
10632         * configure: Rebuilt.
10633         * config.h.in: Rebuilt.
10635 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
10637         PR bootstrap/26161
10638         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10639         for the other pthread check.
10640         * configure: Regenerate.
10641         * config.h.in: Regenerate.
10643 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
10645         PR libgomp/25938
10646         PR libgomp/25984
10647         * Makefile.am (fincludedir): New variable.
10648         (nodist_include_HEADERS): Remove Fortran files.
10649         (nodist_finclude_HEADERS): New variable.
10650         * Makefile.in: Regenerated.
10652 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
10654         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10655         Remove tests for returning assumed character length arrays.
10657 2006-02-12  Roger Sayle  <roger@eyesopen.com>
10658             John David Anglin  <dave@hiauly1.hia.nrc.ca>
10660         PR libgomp/25936
10661         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10663 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10665         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10667 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
10669         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10670         part of LD_LIBRARY_PATH manually.
10672 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10674         PR libgomp/25852
10675         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10676         libgomp_init.
10678 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
10680         PR libgomp/25884
10681         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10682         * configure.ac (PERL): Don't set.
10683         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10684         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10685         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10686         * omp.h.in: Wrap the new configure substitutions with @ characters.
10687         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10688         * aclocal.m4, configure, Makefile.in: Regenerate.
10689         * mkomp_h.pl: Delete.
10691 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
10693         PR libgomp/25259
10694         * configure.ac: Use GCC_HEADER_STDINT.
10695         * libgomp.h: Include gstdint.h.
10696         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10697         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10699 2006-01-24  Richard Henderson  <rth@redhat.com>
10701         PR libgomp/25942
10702         * configure.ac: Add AM_MAINTAINER_MODE.
10703         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10705 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
10707         * Makefile.in: Regenerate.
10708         * testsuite/Makefile.in: Regenerate.
10709         * aclocal.m4: Regenerate.
10711 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
10713         * config/posix/proc.c: Conditional include of sys/loadavg.h for
10714         Solaris.
10715         * configure.ac: Add check for loadavg.h.
10716         (link_gomp): Adjust comment.
10717         * configure: Regenerate.
10718         * config.h.in: Regenerate.
10720 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
10722         PR libgomp/25877
10723         * configure.ac: Remove check for alloca.h.
10724         * configure: Regenerate.
10725         * config.h.in: Regenerate.
10726         * libgomp.h: define gomp_alloca to be __builtin_alloca.
10727         * team.c: Remove use of alloca.h.
10728         Call gomp_alloca instead of alloca.
10730 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
10732         PR libgomp/25877
10733         * team.c: Add include of alloca.h.
10734         * configure.ac: Add check for alloca.h.
10735         * configure: Regenerate.
10736         * config.h.in: Regenerate.
10738 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
10740         PR fortran/25219
10741         * testsuite/libgomp.fortran/pr25219.f90: New test.
10743 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
10745         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10746         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10747         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10748         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10749         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10750         testsuite/libgomp.fortran/threadprivate1.f90,
10751         testsuite/libgomp.fortran/threadprivate2.f90,
10752         testsuite/libgomp.fortran/threadprivate3.f90,
10753         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10754         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10755         testsuite/libgomp.fortran/omp_parse3.f90: Change required
10756         effective-target to TLS runtime.
10758         * testsuite/libgomp.fortran/pr25162.f: Require
10759         effective-target TLS runtime.
10761 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
10763         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10764         * testsuite/libgomp.c/nestedfn-3.c: New test.
10766 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
10768         PR fortran/25162
10769         * testsuite/libgomp.fortran/pr25162.f: New test.
10771 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
10773         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10774         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10776 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
10778         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10779         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10780         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10781         single.c, team.c, work.c, config/linux/alpha/futex.h,
10782         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10783         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10784         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10785         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10786         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10787         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10788         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10789         FSF address.
10791 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
10793         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10794         to nodist_noinst_HEADERS.
10795         * Makefile.in: Rebuilt.
10797         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10798         add integer count field.
10799         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10800         omp_nest_lock_t type change.
10801         (omp_init_nest_lock): Likewise.  Initialize count to 0.
10802         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10803         Increment count.
10804         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10805         Decrement count.
10806         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10807         Increment count if successful and return the new nesting level.
10808         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10809         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10810         * testsuite/libgomp.c/lib-1.c: New test.
10811         * testsuite/libgomp.fortran/lib1.f90: New test.
10812         * testsuite/libgomp.fortran/lib2.f: New test.
10813         * testsuite/libgomp.fortran/lib3.f: New test.
10815 2005-11-17  Richard Henderson  <rth@redhat.com>
10817         PR 24845
10818         * Makefile.am (nodist_toolexeclib_HEADERS): New.
10819         * configure.ac (link_gomp): New.  Substitute it.
10820         (AC_CONFIG_FILES): Add libgomp.spec.
10821         * libgomp.spec.in: New file.
10822         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10823         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10825 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
10827         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10828         reduction(-:var) behaving the same as reduction(+:var).
10829         * testsuite/libgomp.c/reduction-4.c: New test.
10831 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
10833         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10834         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10835         testsuite/libgomp.c/copyin-3.c,
10836         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10837         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10838         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10839         testsuite/libgomp.c++/pr24455.C,
10840         testsuite/libgomp.fortran/threadprivate1.f90,
10841         testsuite/libgomp.fortran/threadprivate2.f90,
10842         testsuite/libgomp.fortran/threadprivate3.f90,
10843         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10844         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10845         testsuite/libgomp.fortran/omp_parse3.f90: Require
10846         effective-target TLS.
10848 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
10850         * HEADER: Remove.
10852 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
10854         PR libgomp/24797
10855         * team.c (initialize_team): Pass NULL rather than free as
10856         pthread_key_create destructor.  Initialize thread specific data
10857         pointer in initial thread to a static local variable rather than
10858         malloced memory.
10860 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
10862         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10863         its location to ld_library_path.
10865 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
10867         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10869 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
10871         * testsuite/libgomp.c: Rename from libgomp.dg.
10873 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
10875         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10876         threadprivate variable 'i'.
10878 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
10880         * config/linux/s390/futex.h: New file.
10881         * configure.tgt: Use it.
10883         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10884         before the parallel.
10886 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
10888         PR c++/24734
10889         * testsuite/libgomp.c++/master-1.C: New test.
10891 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
10893         * testsuite/libgomp.dg/copyin-3.c: New test.
10895 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
10897         * testsuite/libgomp.fortran/retval1.f90: New test.
10898         * testsuite/libgomp.fortran/vla7.f90: New test.
10900 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
10902         * testsuite/libgomp.fortran/vla2.f90: New test.
10903         * testsuite/libgomp.fortran/vla3.f90: New test.
10904         * testsuite/libgomp.fortran/vla4.f90: New test.
10905         * testsuite/libgomp.fortran/vla5.f90: New test.
10906         * testsuite/libgomp.fortran/vla6.f90: New test.
10908 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
10910         * config/linux/sparc/futex.h: New file.
10911         * configure.tgt: Use it.
10912         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10914         * critical.c: Include stdlib.h.
10915         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10916         ignoring return value.
10917         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10918         LIBGOMP_CHECK_SYNC_BUILTINS check.
10919         * configure: Rebuilt.
10921 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
10923         * testsuite/libgomp.fortran/vla1.f90: New test.
10925 2005-10-31  Richard Henderson  <rth@redhat.com>
10927         * testsuite/libgomp.fortran/character2.f90: Fix race condition
10928         setting 's' in different threads.
10930 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
10932         * libgomp.h (attribute_hidden, ialias): Define.
10933         * config/posix/proc.c (omp_get_num_procs): Add ialias.
10934         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10935         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10936         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10937         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10938         omp_test_lock, omp_test_nest_lock): Likewise.
10939         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10940         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10941         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10942         omp_test_lock, omp_test_nest_lock): Likewise.
10943         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10944         omp_get_dynamic, omp_get_nested): Likewise.
10945         * parallel.c (omp_get_num_threads, omp_get_max_threads,
10946         omp_get_thread_num, omp_in_parallel): Likewise.
10947         * fortran.c (ialias_redirect): Define.
10948         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10949         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10950         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10951         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10952         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10953         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10954         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10955         omp_get_wtime): Add ialias_redirect.
10957 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
10959         * fortran.c: Include stdlib.h.
10961 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
10963         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10964         * Makefile.in: Regenerated.
10966 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
10968         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10969         * libgomp_f.h.in (omp_check_defines): New function.
10970         * env.c: Include libgomp_f.h.
10971         (initialize_env): Call omp_check_defines.
10973         * testsuite/libgomp.dg/copyin-2.c: New test.
10974         * testsuite/libgomp.c++/copyin-2.C: New test.
10975         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10977         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10978         * testsuite/libgomp.fortran/sharing2.f90: New test.
10980         * testsuite/libgomp.dg/copyin-1.c: New test.
10981         * testsuite/libgomp.c++/copyin-1.C: New test.
10983 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
10985         * testsuite/libgomp.fortran/crayptr1.f90: New test.
10987         * testsuite/libgomp.fortran/workshare1.f90: New test.
10989         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10990         only test.
10991         * libgomp.fortran/sharing1.f90: New test.
10993 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
10995         PR c++/24502
10996         * testsuite/libgomp.c++/loop-7.C: New test.
10998         * testsuite/libgomp.dg/nestedfn-2.c: New test.
11000         * testsuite/libgomp.dg/nestedfn-1.c: New test.
11001         * testsuite/libgomp.fortran/reduction6.f90: New test.
11002         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
11004 2005-10-23  Richard Henderson  <rth@redhat.com>
11006         * testsuite/libgomp.c++/ctor-1.C: New.
11007         * testsuite/libgomp.c++/ctor-2.C: New.
11008         * testsuite/libgomp.c++/ctor-3.C: New.
11009         * testsuite/libgomp.c++/ctor-4.C: New.
11010         * testsuite/libgomp.c++/ctor-5.C: New.
11011         * testsuite/libgomp.c++/ctor-6.C: New.
11012         * testsuite/libgomp.c++/ctor-7.C: New.
11013         * testsuite/libgomp.c++/ctor-8.C: New.
11014         * testsuite/libgomp.c++/ctor-9.C: New.
11016 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
11018         PR 24455
11019         * testsuite/libgomp.c++/pr24455-1.C: New test.
11020         * testsuite/libgomp.c++/pr24455.C: New test.
11021         * testsuite/libgomp.dg/pr24455-1.c: New test.
11022         * testsuite/libgomp.dg/pr24455.c: New test.
11024 2005-10-20  Richard Henderson  <rth@redhat.com>
11026         * testsuite/libgomp.c++/loop-6.C: New.
11027         * testsuite/libgomp.dg/loop-3.c: New.
11029 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
11031         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
11032         explicitly private.
11033         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
11034         explicitly shared.
11036 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
11038         * testsuite/libgomp.fortran/jacobi.f: New test.
11040 2005-10-19  Richard Henderson  <rth@redhat.com>
11042         * configure.tgt (i?86-linux): Default to with_arch instead of
11043         CFLAGS.  Add -mtune to match target_cpu.
11044         (x86_64-linux): Tune to i686.
11046         * fortran.c (omp_test_nest_lock_): Fix typo.
11048 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
11050         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11051         gomp_ordered_sync): Do nothing if team->nthreads == 1.
11052         * testsuite/libgomp.dg/ordered-3.c: New test.
11054         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
11055         Remove volatile keyword.
11057         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
11058         in COMMON block to avoid warnings on 64-bit targets.
11060 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
11062         * testsuite/libgomp.dg/shared-3.c: New test.
11064 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
11066         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
11067         * testsuite/libgomp.fortran/reduction5.f90: New test.
11069 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
11071         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
11072         dg-options.
11073         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
11074         flush loop now that __sync_synchronize has proper memory barrier.
11075         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
11076         Add -ffixed-form to dg-options.
11078 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
11080         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
11081         from subdirectories.
11082         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
11083         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
11084         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
11085         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
11086         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
11087         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
11088         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
11089         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
11090         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
11091         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
11092         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
11093         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
11094         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
11095         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
11096         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
11097         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
11098         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
11099         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
11100         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
11101         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
11102         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
11103         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
11104         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
11105         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
11106         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
11108 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
11110         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
11111         lang_library_path exists.  Use find instead of glob to gather tests.
11112         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
11114 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
11116         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
11117         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
11118         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
11119         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
11120         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
11121         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
11122         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
11123         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
11124         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
11125         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
11126         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
11127         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
11128         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
11130 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
11132         * testsuite/libgomp.dg/vla-1.c: New test.
11134         * testsuite/libgomp.fortran/reference2.f90: New test.
11136         * testsuite/libgomp.fortran/character2.f90: Remove explicit
11137         declaration of omp_get_thread_num.
11138         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
11139         use omp_lib.
11141         * testsuite/libgomp.fortran/reduction1.f90: New test.
11142         * testsuite/libgomp.fortran/reduction2.f90: New test.
11143         * testsuite/libgomp.fortran/reduction3.f90: New test.
11144         * testsuite/libgomp.fortran/reduction4.f90: New test.
11146 2005-10-13  Richard Henderson  <rth@redhat.com>
11148         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
11149         * Makefile.in: Regenerate.
11150         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
11151         * libgomp.h: Include bar.h.
11152         (struct gomp_barrier): Remove.
11153         (struct gomp_team): Add barrier.  Replace master_barrier with
11154         master_release.  Replace threads with ordered_release.
11155         (struct gomp_thread): Replace barrier with release.
11156         * ordered.c (gomp_ordered_first): Update for ordered_release change.
11157         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
11158         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
11159         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
11160         (GOMP_single_copy_end): Likewise.
11161         * team.c (gomp_threads_dock): New.
11162         (gomp_barrier_init, gomp_barrier_destroy): Remove.
11163         (gomp_thread_start): Use gomp_barrier_wait.
11164         (new_team, free_team): Update for gomp_team changes.
11165         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
11166         (gomp_team_end): Use gomp_barrier_wait.
11167         (initialize_team): Update for gomp_thread changes.
11168         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
11169         (gomp_work_share_end_nowait): Use atomic ops when available.
11170         * config/linux/bar.c, config/linux/bar.h: New files.
11171         * config/posix/bar.c, config/posix/bar.h: New files.
11173 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
11175         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
11176         * testsuite/libgomp.dg/single-2.c: New test.
11178         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
11179         lang_link_flags): Unset, so that they aren't inherited from previously
11180         sourced *.exp.
11182         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
11184 2005-10-12  Richard Henderson  <rth@redhat.com>
11186         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
11187         (libgomp_init): Use lang_test_file, lang_library_path, and
11188         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
11190         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
11191         (lang_test_file, lang_link_flags): New.
11192         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
11194         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
11195         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
11196         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
11197         testsuite/libgomp.c++/parallel-1.C,
11198         testsuite/libgomp.c++/reduction-1.C,
11199         testsuite/libgomp.c++/reduction-2.C,
11200         testsuite/libgomp.c++/reduction-3.C,
11201         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
11202         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
11203         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
11204         New files, largely cribbed from the C testsuite.
11206 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
11208         * testsuite/libgomp.fortran/character1.f90: New test.
11209         * testsuite/libgomp.fortran/character2.f90: New test.
11211         * testsuite/libgomp.dg/nested-1.c: New test.
11212         * testsuite/libgomp.dg/nested-2.c: New test.
11213         * testsuite/libgomp.fortran/do1.f90: New test.
11214         * testsuite/libgomp.fortran/do2.f90: New test.
11216         * testsuite/libgomp.fortran/reference1.f90: New test.
11218 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
11220         * testsuite/libgomp.dg/reduction-1.c: New test.
11221         * testsuite/libgomp.dg/reduction-2.c: New test.
11222         * testsuite/libgomp.dg/reduction-3.c: New test.
11224 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
11226         * testsuite/libgomp.dg/atomic-1.c: New test.
11227         * testsuite/libgomp.dg/atomic-2.c: New test.
11229 2005-10-09  Richard Henderson  <rth@redhat.com>
11231         * critical.c (atomic_lock): New.
11232         (initialize_critical): Initialize it.
11233         (GOMP_atomic_start, GOMP_atomic_end): New.
11234         * libgomp.map: Export them.
11235         * libgomp_g.h: Declare them.
11237         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
11239 2005-10-02  Richard Henderson  <rth@redhat.com>
11241         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
11242         to XCFLAGS instead of CFLAGS.
11244 2005-09-30  Richard Henderson  <rth@redhat.com>
11246         * configure.ac: Determine whether -pthread or -lpthread is needed.
11247         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
11248         * Makefine.in, configure: Rebuild.
11250 2005-09-28  Richard Henderson  <rth@redhat.com>
11252         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
11253         * testsuite/libgomp.dg/omp-single-3.c: New test.
11255 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
11257         * testsuite/libgomp.dg/omp-single-2.c: New test.
11258         * testsuite/libgomp.dg/shared-2.c: Fix return code.
11260 2005-09-27  Richard Henderson  <rth@redhat.com>
11262         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
11263         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
11265 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
11267         * testsuite/libgomp.dg/omp-loop03.c: New test.
11269 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
11271         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
11273 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
11275         * testsuite/libgomp.dg/omp-single-1.c: New test.
11276         * testsuite/libgomp.dg/shared-1.c: Return 0.
11277         Add prototype for abort.
11278         * testsuite/libgomp.dg/shared-2.c: Likewise.
11280 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
11282         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
11283         constructs.
11285 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
11287         * testsuite/libgomp.dg/shared-1.c: New test.
11288         * testsuite/libgomp.dg/shared-2.c: New test.
11290 2005-09-24  Richard Henderson  <rth@redhat.com>
11292         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
11294 2005-09-24  Richard Henderson  <rth@redhat.com>
11296         * iter.c (gomp_iter_static_next): Round up when computing number
11297         of iterations.  Don't bother distributing a remainder equally.
11299         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11300         Don't call srand.  Zero b before testing.
11301         (main): New.
11303 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
11305         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11306         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11308 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
11310         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11311         without !$omp end do, followed immediately by subroutine end.
11313 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
11315         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11317 2005-09-22  Richard Henderson  <rth@redhat.com>
11319         * critical.c (GOMP_critical_name_start): Change argument to void**.
11320         Reuse the pointer space if the mutex fits.
11321         (GOMP_critical_name_end): Likewise.
11322         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11323         * libgomp_g.h (GOMP_critical_name_start): Update decl.
11324         (GOMP_critical_name_end): Likewise.
11325         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11326         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11328 2005-09-20  Richard Henderson  <rth@redhat.com>
11330         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11331         (create_lock_lock): New.
11332         (initialize_critical): Initialize it.
11333         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11334         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11336 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
11338         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11340 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
11342         * testsuite/libgomp.dg/omp-loop01.c: New test.
11343         * testsuite/libgomp.dg/omp-loop02.c: New test.
11345 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
11347         * configure.ac (AC_PROG_FC): Add.
11348         (USE_FORTRAN): New automake conditional.
11349         * configure: Rebuilt.
11350         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11351         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11352         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11353         Add rules to build them.
11354         * Makefile.in: Rebuilt.
11355         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11356         OMP_NEST_LOCK_KIND.
11357         * libgomp.map: Add Fortran wrappers.
11358         * libgomp_f.h.in: New file.
11359         * omp_lib.h.in: New file.
11360         * omp_lib.f90.in: New file.
11361         * fortran.c: New file.
11362         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11363         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11364         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11365         libgfortran has been built.
11366         * testsuite/libgomp.fortran/fortran.exp: New file.
11367         * testsuite/libgomp.fortran/omp_cond1.f: New test.
11368         * testsuite/libgomp.fortran/omp_cond2.f: New test.
11369         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11370         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11371         * testsuite/libgomp.fortran/omp_hello.f: New test.
11372         * testsuite/libgomp.fortran/omp_orphan.f: New test.
11373         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11374         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11375         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11376         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11377         * testsuite/libgomp.fortran/omp_reduction.f: New test.
11378         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11379         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11381 2005-08-30  Richard Henderson  <rth@redhat.com>
11383         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11384         function for when aliases are not usable.
11385         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11386         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11387         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11388         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11389         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11390         GOMP_loop_ordered_guided_next): Likewise.
11391         * ordered.c (GOMP_ordered_start): Likewise.
11393 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
11395         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11396         * testsuite/libgomp.dg/omp_hello.c: Fix return code
11397         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11398         * testsuite/libgomp.dg/omp_orphan.c: Likewise
11399         * testsuite/libgomp.dg/omp_reduction.c: Likewise
11400         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11401         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11402         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11403         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11405 2005-07-07  Eric Christopher  <echristo@redhat.com>
11406             Diego Novillo  <dnovillo@redhat.com>
11408         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11409         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11410         up code.
11411         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11412         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11413         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11414         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11415         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11416         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11417         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11419 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
11421         * TOPLEVEL.patch: Remove.
11423 2005-05-16  Richard Henderson  <rth@redhat.com>
11425         * configure.ac: Test for clock_gettime.
11426         * config.h.in, configure: Rebuild.
11427         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11428         (omp_get_wtime): Use clock_gettime if available.
11429         (omp_get_wtick): Use clock_getres if available.
11431 2005-05-11  Richard Henderson  <rth@redhat.com>
11433         * config/linux/ia64/futex.h: New file.
11434         * configure.tgt: Use it.
11436         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11438 2005-05-07  Richard Henderson  <rth@redhat.com>
11440         * config/linux/powerpc/futex.h: New file.
11441         * configure.tgt: Use it.
11443         * config/linux/i486/futex.h: Merge ...
11444         * config/linux/x86_64/futex.h: ... into ...
11445         * config/linux/x86/futex.h: ... here.
11446         * configure.tgt: Update to match.
11448 2005-05-06  Richard Henderson  <rth@redhat.com>
11450         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11451         * config/linux/i486/futex.h: Likewise.
11452         * config/linux/x86_64/futex.h: Likewise.
11454         * config/linux/lock.c: New file.
11455         * config/linux/omp-lock.h: New file.
11457         * critical.c, env.h: Don't include omp.h
11458         * config/posix/lock.c: Include libgomp.h instead of omp.h.
11459         * config/posix/time.c: Likewise.
11460         * config/posix/omp-lock.h: New file.
11461         * libgomp.h: Include omp-lock.h and omp.h.
11462         * Makefile.am (nodist_include_HEADERS): New.
11463         (omp.h): New rule.
11464         * configure.ac (PERL): New.
11465         * mkomp_h.pl: New file.
11466         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11467         with templates.
11468         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11470         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11471         build directory.  Re-add -march=i486 hack.
11473         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
11474         (libgomp_link_flags): Remove.
11475         (libgomp_initialized): Remove.
11476         (libgomp_init): Don't protect from reinitialization.  Copy code
11477         from libstdc++ for getting the multilib set correctly.
11479 2005-05-05  Richard Henderson  <rth@redhat.com>
11481         * config/linux/alpha/futex.h: New file.
11482         * configure.tgt (alpha*-*-linux*): Use it.
11484         * config/posix/mutex.c: New file.
11485         * config/posix/sem.c: Use libgomp.h.
11487         * configure.tgt (x86_64-linux): Also test CC for -m32.
11488         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
11490         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
11491         after $gccpath.
11493         * Makefile.am (SUBDIRS): New.
11494         (libgomp_la_LDFLAGS): Add -lpthread.
11495         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
11496         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
11498         * libgomp_g.h: New file.
11499         * libgomp.h: Split out all public declarations to libgomp_g.h.
11500         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
11501         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
11502         * config/linux/sem.h: Likewise.
11503         * config/posix/sem.h: Likewise.
11505         * Makefile.am (AM_LDFLAGS): New.
11506         (libgomp_version_script): Split out from ...
11507         (libgomp_la_LDFLAGS): ... here.
11508         (libgomp_version_info): New.
11509         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
11510         (LIBGOMP_ENABLE): New.
11511         (LIBGOMP_CHECK_LINKER_FEATURES): New.
11512         (LIBGOMP_ENABLE_SYMVERS): New.
11513         * configure.ac (AC_INIT): Version 1.0.
11514         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
11515         (enable-linux-futex): Likewise.  Rename from enable-futex.
11516         (libtool_VERSION): New.
11517         (LIBGOMP_ENABLE_SYMVERS): Use it.
11518         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
11519         * Makefile.in, aclocal.m4, configure: Rebuild.
11521         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
11522         (gomp_mutex_unlock_slow): Fix typo.
11523         * config/linux/sem.c: Similarly.
11524         (gomp_sem_post_slow): Fix typo.
11525         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
11526         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
11527         [__PIC__] (sys_futex0): Don't use tmp output in asm.
11529         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
11530         (libgomp_la_LDFLAGS): Add top_srcdir to path.
11531         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
11532         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
11533         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
11534         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
11535         LDFLAGS.  Pull enable_futex check to top-level.
11536         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
11537         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
11539         First attempt at real configury.
11540         * Makefile, config.h: Remove file.
11541         * Makefile.am, Makefile.in: New file.
11542         * acinclude.m4 aclocal.m4: New file.
11543         * configure.ac, configure.tgt, configure: New file.
11545         * config/posix/lock.c: Rename from sys-lock.c.
11546         * config/posix/mutex.h: Rename from sys-mutex.h.
11547         * config/posix/sem.c: Rename from sys-sem.c.
11548         * config/posix/sem.h: Rename from sys-sem.h.
11549         * config/posix/proc.c: Rename from sys-proc.c.
11550         * config/posix/time.c: Rename from sys-proc.c.
11552         * config/linux/mutex.c: New file.
11553         * config/linux/mutex.h: New file.
11554         * config/linux/sem.c: New file.
11555         * config/linux/sem.h: New file.
11556         * config/linux/i486/futex.h: New file.
11557         * config/linux/x86_64/futex.h: New file.
11559 2005-05-04  Richard Henderson  <rth@redhat.com>
11561         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
11562         * libgomp.h: Declare them.
11563         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
11564         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
11566 2005-05-04  Richard Henderson  <rth@redhat.com>
11568         * libgomp-1 code drop
11570 2005-05-04  Richard Henderson  <rth@redhat.com>
11572         * iter.c (gomp_iter_static_next): Return tri-state on 0.
11573         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
11574         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
11575         (gomp_iter_static_next): Update.
11576         (gomp_ordered_static_next): Update.
11577         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
11578         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
11579         totally empty range.
11580         (gomp_loop_ordered_static_next): Refine test for calling
11581         gomp_ordered_static_next.
11582         * testsuite/ordered-1.c: Add case for more threads than iterations.
11584         * iter.c (gomp_iter_runtime_next_locked): Remove.
11585         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
11586         gomp_loop_guided_start, gomp_loop_ordered_static_start,
11587         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
11588         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
11589         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
11590         gomp_loop_ordered_guided_next): Downcase name, make static, add
11591         an external alias with the old name.
11592         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11593         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
11594         switch and call one of the above static functions.
11595         * libgomp.h: Update.
11597         * work.c (gomp_work_share_start): Lock the mutex for !first too.
11598         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11599         GOMP_loop_guided_start, GOMP_loop_runtime_start,
11600         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11601         GOMP_loop_ordered_guided_start): Update to match.
11602         * sections.c (GOMP_sections_start): Likewise.
11603         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11605         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11606         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11607         Use bounds check instead of modulus.
11608         (gomp_ordered_sync): Split out of GOMP_ordered_start.
11609         (gomp_ordered_last): Don't sync with ordered_owner here.
11610         (gomp_ordered_next): Likewise.
11611         (gomp_ordered_static_loop_next): Likewise.
11612         * loop.c, libgomp.h: Update to match.
11614         * libgomp.h (GOMP_barrier): Declare.
11616         * testsuite/barrier-1.c: New file.
11617         * testsuite/critical-1.c: New file.
11618         * testsuite/ordered-2.c: New file.
11619         * testsuite/ordered-1.c: New file.
11620         * testsuite/sections-1.c: New file.
11621         * testsuite/single-1.c: New file.
11622         * testsuite/Makefile (TESTS): Add them.
11624 2005-05-04  Richard Henderson  <rth@redhat.com>
11626         * libgomp.h (struct gomp_work_share): Add ordered_owner.
11627         * loop.c (GOMP_loop_static_start): If not the startup thread,
11628         acquire the mutex to wait for initialization complete.
11629         (GOMP_loop_ordered_static_start): Likewise.
11630         (GOMP_loop_ordered_runtime_start): Likewise.
11631         (GOMP_loop_ordered_static_first): Remove.
11632         (GOMP_loop_ordered_dynamic_first): Remove.
11633         (GOMP_loop_ordered_guided_first): Remove.
11634         (GOMP_loop_ordered_runtime_first): Remove.
11635         * ordered.c (gomp_ordered_loop_first): Post to own release when
11636         we're the first thread.
11637         (gomp_ordered_loop_last): Wait on release if not owner.
11638         (gomp_ordered_loop_next): Likewise.
11639         (gomp_ordered_static_loop_init): New.
11640         (gomp_ordered_static_loop_next): Use ordered_owner.
11641         (GOMP_ordered_start): Likewise.
11642         * work.c (gomp_new_work_share): Initialize ordered_owner.
11644 2005-05-03  Richard Henderson  <rth@redhat.com>
11646         * Makefile (OPT): New.
11647         (CFLAGS): Use it.
11649         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11650         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11651         * libgomp.h, libgomp.map, NOTES: Update to match.
11653         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11654         Add initialized and thr members.
11655         (gomp_thread_start): Pause when initially spawned to wait for
11656         the whole team to be created.
11657         (gomp_team_start): Release team members at the end.
11659         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
11660         (f_foo_1): Use GOMP_loop_end.
11661         (f_foo_2): Use GOMP_loop_end_nowait.
11663         * testsuite/loop-2.c: New file.
11664         * testsuite/Makefile (TESTS): Add it.
11666 2005-05-03  Richard Henderson  <rth@redhat.com>
11668         * iter.c (gomp_iter_static_next): Fix overflow check typo.
11669         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11670         * team.c (new_team): Initialize oldest_live_gen to 1 if no
11671         initial work_share.
11673         * testsuite/Makefile: New file.
11674         * testsuite/loop-1.c: New file.
11676 2005-05-03  Richard Henderson  <rth@redhat.com>
11678         Initial implementation and checkin.
11680 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11682 Copying and distribution of this file, with or without modification,
11683 are permitted in any medium without royalty provided the copyright
11684 notice and this notice are preserved.