Delete file meant for private branch
[official-gcc.git] / libgomp / ChangeLog
blobb6828adcbe3d1c991e6fde3128ad0a8f0ada473c
1 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
3         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
4         * openacc.f90 (acc_device_current): Likewise.
5         * openacc.h (acc_device_current): Likewise.
6         * openacc_lib.h (acc_device_current): Likewise.
8         PR target/94282
9         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
10         'dg-allow-blank-lines-in-output'.
12         * oacc-init.c (get_openacc_name): Handle 'gcn'.
13         * testsuite/lib/libgomp.exp
14         (offload_target_to_openacc_device_type) [amdgcn*]: Return
15         'radeon'.  Adjust all users.
16         (check_effective_target_openacc_amdgcn_accel_present): Rename
17         to...
18         (check_effective_target_openacc_radeon_accel_present): ... this.
19         Adjust all users.
20         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
21         (check_effective_target_openacc_radeon_accel_selected): ... this.
22         Adjust all users.
24         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
25         'dg-do run'.
27 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
29         PR other/94629
31         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
32         hsa_iterate_agents.
33         (GOMP_OFFLOAD_init_device): Check return values from both calls to
34         hsa_agent_iterate_regions.
36 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
38         PR middle-end/94635
39         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
40         run'.
42 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
44         PR middle-end/94120
45         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
46         test case.
48 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
50         PR middle-end/94635
51         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
53 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
55         PR libgomp/92843
56         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
57         Rename to...
58         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
59         ... this.
60         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
61         Rename to...
62         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
63         ... this.
64         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
65         Rename to...
66         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
67         ... this.
68         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
69         Rename to...
70         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
71         ... this.
72         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
73         Rename to...
74         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
75         ... this.
76         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
77         Rename to...
78         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
79         ... this.
80         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
81         Rename to...
82         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
83         ... this.
84         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
85         Rename to...
86         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
87         ... this.
88         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
89         Rename to...
90         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
91         ... this.
92         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
93         Rename to...
94         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
95         ... this.
96         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
97         Rename to...
98         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
99         ... this.
100         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
101         Rename to...
102         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
103         ... this.
104         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
105         Rename to...
106         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
107         ... this.
108         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
109         Rename to...
110         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
111         ... this.
112         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
113         Rename to...
114         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
115         ... this.
116         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
117         Rename to...
118         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
119         ... this.
121 2020-04-10  Julian Brown  <julian@codesourcery.com>
122             Thomas Schwinge  <thomas@codesourcery.com>
124         PR libgomp/92843
125         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
126         New file.
127         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
128         Likewise.
129         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
130         Likewise.
131         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
132         Likewise.
133         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
134         Likewise.
135         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
136         Likewise.
137         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
138         Likewise.
139         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
140         Likewise.
141         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
142         Likewise.
143         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
144         Likewise.
145         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
146         Likewise.
147         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
148         Likewise.
149         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
150         Likewise.
151         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
152         Likewise.
153         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
154         Likewise.
155         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
156         Likewise.
158 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
160         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
161         run'.
163 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
165         PR middle-end/94120
166         * libgomp.oacc-c++/declare-pr94120.C: New.
168 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
170         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
171         files.
172         * configure: Regenerate.
173         * testsuite/libgomp-site-extra.exp.in: New file.
174         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
175         variable.
176         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
177         variable.
178         * testsuite/Makefile.in: Regenerate.
180 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
182         PR tree-optimization/89713
183         PR c/94392
184         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
185         'bar.sync'.
186         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
188 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
190         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
191         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
193 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
195         PR libgomp/81689
196         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
198 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
200         PR libgomp/94251
201         * target.c (gomp_load_image_to_device): Fix link
202         variable handling.
204 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
206         PR c++/93931
207         * testsuite/libgomp.c++/pr93931.C: New test.
209 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
211         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
212         dg-allow-blank-lines-in-output.
214 2020-03-18  Julian Brown <julian@codesourcery.com>
215             Tobias Burnus  <tobias@codesourcery.com>
217         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
218         it work concurrently.
220 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
222         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
223         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
224         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
226 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
228         PR middle-end/93566
229         * testsuite/libgomp.c/pr93566.c: New test.
231 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
233         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
234         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
235         integer(acc_device_property) for the type of the return value of
236         acc_get_property.
238 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
240         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
241         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
242         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
243         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
244         (acc_set_device_num): Fix Fortran argument name, use same name for C.
245         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
246         corrections; add note about the previous interface and named constant.
247         (OpenACC library and environment variables): Fix two typos.
248         * openacc.f90: Use for all procedures the argument names from the spec
249         as for …_h they are user visible.
250         (openacc_kinds): Rename acc_device_property to
251         acc_device_property_kinds and change value to int32 ; and update users.
252         Re-add acc_device_property for for backward compatibility.
253         (acc_get_property_string_h): Clean up as acc_device_property_kind
254         changed.
255         (acc_get_property_h): Likewise and return c_size_t instead of
256         acc_device_property.
257         (openacc): Also export acc_device_property_kinds.
258         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
259         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
260         handling; check against /= 0 instead of == 1 to match C.
261         * openacc_lib.h: Use for all procedures the argument names from the spec
262         as for …_h they are user visible. Place !GCC$ into the first column to
263         be active also for fixed-form souce form.
264         (acc_device_current, acc_device_property_kind, acc_device_property,
265         acc_property_memory, acc_property_free_memory, acc_property_name,
266         acc_property_vendor, acc_property_driver): New named constants.
267         (acc_get_property, acc_get_property_string): New generic interface.
269 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
271         PR libgomp/93481
272         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
273         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
274         optional.
275         (gomp_target_task_fn): Assert "devicep->async_run_func".
276         (clear_unsupported_flags): New function to remove unsupported flags
277         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
278         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
279         * testsuite/libgomp.c/target-33.c:
280         Remove xfail for offload_target_nvptx.
281         * testsuite/libgomp.c/target-34.c: Likewise.
283 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
285         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
286         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
287         * testsuite/libgomp.c/target-34.c: Likewise.
288         * testsuite/libgomp.c/target-link-1.c: Add xfail for
289         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
291 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
293         * testsuite/libgomp.c/target-38.c: New test.
295 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
297         PR libgomp/93515
298         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
300 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
302         * testsuite/lib/libgomp.exp
303         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
304         and not as 'source' argument to libgomp_target_compile.
306 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
308         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
309         (gcn_gfx801_s): Remove.
310         (isa_hsa_name): Remove gfx801.
311         (isa_gcc_name): Remove gfx801/carizzo.
312         (isa_code): Remove gfx801.
314 2020-02-03  Julian Brown  <julian@codesourcery.com>
315             Tobias Burnus  <tobias@codesourcery.com>
317         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
318         and *_finalize variants; document acc_attach and acc_detach; update
319         references from OpenACC 2.0 to 2.6.
320         * openacc.f90 (openacc_version): Update to 201711.
321         * openacc_lib.h (openacc_version): Update to 201711.
322         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
323         openacc_version to 201711.
324         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
326 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
328         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
329         and vgpr_count fields.
330         (struct kernel_info): Add a field for a hsa_kernel_description.
331         (run_kernel): Reduce the number of threads/workers if the requested
332         number would require too many VGPRs.
333         (init_basic_kernel_info): Initialize description field with
334         the hsa_kernel_description entry for the kernel.
336 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
338         PR bootstrap/93409
339         * plugin/configfrag.ac (enable_offload_targets): Skip
340         HSA and GCN plugin besides -m32 also for -mx32.
341         * configure: Regenerate.
343 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
345         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
347 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
349         * plugin-gcn.c (struct agent_info): Add fields "name" and
350         "vendor_name" ...
351         (GOMP_OFFLOAD_init_device): ... and init from here.
352         (struct hsa_context_info): Add field "driver_version_s" ...
353         (init_hsa_contest): ... and init from here.
354         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
355         implementation.
356         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
357         Enable test execution for amdgcn and host offloading targets.
358         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
359         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
360         (expect_device_properties): Split function into ...
361         (expect_device_string_properties): ... this new function ...
362         (expect_device_memory): ... and this new function.
363         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
364         Add test.
366 2020-01-28  Julian Brown  <julian@codesourcery.com>
368         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
369         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
370         component/non-component variable refs in a single directive.
371         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
373 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
375         * configure.ac: Handle `--with-toolexeclibdir='.
376         * Makefile.in: Regenerate.
377         * aclocal.m4: Regenerate.
378         * configure: Regenerate.
379         * testsuite/Makefile.in: Regenerate.
381 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
383         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
384         (expect_device_properties): Remove "expected_free_mem" argument,
385         change "expected_total_mem" argument type to size_t;
386         change types of acc_get_property results to size_t,
387         adapt format strings.
388         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
389         Use %zu instead of %zd to print size_t values.
390         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
391         rename to ...
392         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
393         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
394         rename to ...
395         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
397 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
399         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
400         the device id.
402 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
404         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
405         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
406         Adjust test dimensions for amdgcn.
407         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
408         gang/worker/vector expectations dynamically.
409         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
410         (main): Likewise.
411         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
412         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
413         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
414         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
415         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
416         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
417         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
418         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
419         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
420         (acc_gang): Recognise acc_device_radeon.
421         (acc_worker): Likewise.
422         (acc_vector): Likewise.
423         (main): Set expectations for amdgcn.
424         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
425         (main): Adjust gang/worker/vector expectations dynamically.
426         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
427         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
428         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
429         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
430         for amdgcn.
432 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
434         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
435         acc_device_radeon.
436         (openacc): Likewise.
437         * openacc.f90 (openacc_kinds): Likewise.
438         (openacc): Likewise.
439         * openacc.h (acc_device_t): Likewise.
440         * openacc_lib.h: Likewise.
441         * testsuite/lib/libgomp.exp
442         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
443         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
444         (cb_compute_construct_end): Likewise.
445         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
446         (cb_enqueue_launch_start): Likewise.
447         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
448         (cb_enter_data_end): Likewise.
449         (cb_exit_data_start): Likewise.
450         (cb_exit_data_end): Likewise.
451         (cb_compute_construct_end): Likewise.
452         (cb_enqueue_launch_start): Likewise.
453         (cb_enqueue_launch_end): Likewise.
454         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
455         (main): Likewise.
457 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
459         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
460         to use this instead of 'enum gomp_device_property'.
461         (GOMP_OFFLOAD_get_property): Rename to...
462         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
463         * libgomp.h (struct gomp_device_descr): Move
464         'GOMP_OFFLOAD_openacc_get_property'...
465         (struct acc_dispatch_t): ... here.  Adjust all users.
466         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
468         * target.c (gomp_map_vars_internal)
469         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
470         paths.
472 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
474         PR libgomp/93219
475         * libgomp.h (gomp_print_string): Change return type from void to int.
476         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
477         not all characters have been written.
479 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
481         * libgomp.texi: Fix typos, use https.
483 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
485         * testsuite/libgomp.fortran/optional-map.f90: Add test for
486         unallocated/disassociated actual arguments to nonallocatable/nonpointer
487         dummy arguments; those are/shall be regarded as absent arguments.
488         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
489         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
491 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
493         Update copyright years.
495         * libgomp.texi: Bump @copying's copyright year.
497 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
499         PR libgomp/93065
500         * oacc-init.c (goacc_runtime_deinitialize): New function.
502 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
504         PR bootstrap/93074
505         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
506         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
508 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
509             Frederik Harwath  <frederik@codesourcery.com>
510             Thomas Schwinge  <tschwinge@codesourcery.com>
512         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
513         * libgomp-plugin.h (gomp_device_property_value): New union.
514         (gomp_device_property_value): New prototype.
515         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
516         constant.
517         (acc_device_property_t): New enum.
518         (acc_get_property, acc_get_property_string): New prototypes.
519         * oacc-init.c (acc_get_device_type): Also assert that result
520         is not `acc_device_current'.
521         (get_property_any, acc_get_property, acc_get_property_string):
522         New functions.
523         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
524         `acc_property_memory', `acc_property_free_memory',
525         `acc_property_name', `acc_property_vendor' and
526         `acc_property_driver' constants.  Add `acc_device_property' data
527         type.
528         (openacc_internal): Add `acc_get_property' and
529         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
530         `acc_get_property_string_h', `acc_get_property_l' and
531         `acc_get_property_string_l'.
532         * oacc-host.c (host_get_property): New function.
533         (host_dispatch): Wire it.
534         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
535         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
536         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
537         * libgomp.texi (OpenACC Runtime Library Routines): Add
538         `acc_get_property'.
539         (acc_get_property): New node.
540         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
541         function (stub).
542         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
543         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
544         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
545         calls.
546         (GOMP_OFFLOAD_get_property): New function.
547         (struct ptx_device): Add new field "name".
548         (cuda_driver_version_s): Add new static variable ...
549         (nvptx_init): ... and init from here.
551         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
552         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
553         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
554         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
555         with test helper functions.
557         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
559 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
561         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
562         variable.
564 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
566         * target.c (gomp_map_vars_internal): Restore 'omp declare target
567         link' handling.
569 2019-12-19  Julian Brown  <julian@codesourcery.com>
571         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
572         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
573         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
575 2019-12-19  Julian Brown  <julian@codesourcery.com>
576             Cesar Philippidis  <cesar@codesourcery.com>
578         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
579         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
580         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
581         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
582         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
583         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
584         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
585         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
586         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
587         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
588         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
589         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
590         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
592 2019-12-19  Julian Brown  <julian@codesourcery.com>
594         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
595         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
596         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
597         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
598         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
599         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
600         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
601         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
602         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
603         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
604         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
605         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
607 2019-12-19  Julian Brown  <julian@codesourcery.com>
609         * libgomp.h (struct target_var_desc): Add do_detach flag.
610         * oacc-init.c (acc_shutdown_1): Free aux block if present.
611         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
612         struct components.  Tidy up and add some new checks.
613         (goacc_enter_data_internal): Update call to find_group_last.
614         (goacc_exit_data_internal): Support detach operations and
615         GOMP_MAP_STRUCT.
616         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
617         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
618         attach/detach in enter/exit data detection code.
619         * target.c (gomp_map_vars_existing): Initialise do_detach field of
620         tgt_var_desc.
621         (gomp_map_vars_internal): Support attach.
622         (gomp_unmap_vars_internal): Support detach.
624 2019-12-19  Julian Brown  <julian@codesourcery.com>
625             Thomas Schwinge  <thomas@codesourcery.com>
627         * libgomp.h (struct splay_tree_aux): Add attach_count field.
628         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
629         * libgomp.map (OACC_2.6): New section. Add acc_attach,
630         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
631         acc_detach_finalize_async.
632         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
633         acc_detach, acc_detach_async, acc_detach_finalize,
634         acc_detach_finalize_async): New functions.
635         * openacc.h (acc_attach, acc_attach_async, acc_detach,
636         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
637         prototypes.
638         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
639         (gomp_remove_var_internal): Free attachment counts if present.
640         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
641         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
643 2019-12-19  Julian Brown  <julian@codesourcery.com>
644             Cesar Philippidis  <cesar@codesourcery.com>
646         * libgomp.h (gomp_map_val): Add prototype.
647         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
648         open-coding device-address calculation.
649         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
650         non-present case.
652 2019-12-19  Julian Brown  <julian@codesourcery.com>
654         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
655         field for virtual_refcount.
656         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
657         (gomp_free_memmap): Remove prototype.
658         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
659         instead of calling gomp_free_memmap.
660         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
661         dynamic_refcount.
662         (acc_unmap_data): Open code instead of forcing target_mem_desc's
663         to_free field to NULL then calling gomp_unmap_vars.  Handle
664         REFCOUNT_INFINITY on target blocks.
665         (goacc_enter_data): Rename to...
666         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
667         handling for mapping groups.  Use virtual_refcount instead of
668         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
669         map_map_vars_async call.  Re-do lookup for target pointer return value.
670         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
671         renamed goacc_enter_datum function.
672         (goacc_exit_data): Rename to...
673         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
674         (acc_delete, acc_delete_async, acc_delete_finalize,
675         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
676         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
677         goacc_exit_datum function.
678         (gomp_acc_remove_pointer, find_pointer): Remove functions.
679         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
680         New functions.
681         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
682         goacc_exit_data_internal helper functions.
683         * target.c (gomp_map_vars_internal): Handle
684         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
685         semantics.
686         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
687         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
688         virtual_refcount field instead of dynamic_refcount.
689         (gomp_free_memmap): Remove function.
690         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
691         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
692         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
694 2019-12-19  Julian Brown  <julian@codesourcery.com>
695             Thomas Schwinge  <thomas@codesourcery.com>
697         * libgomp.h (struct splay_tree_aux): New.
698         (struct splay_tree_key_s): Replace link_key field with aux pointer.
699         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
700         to aux struct.
701         (gomp_remove_var_internal): Free aux block if present.
702         (gomp_load_image_to_device): Zero-initialise aux field instead of
703         link_key field.
704         (omp_target_associate_pointer): Zero-initialise aux field.
706 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
708         PR middle-end/86416
709         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
710         q or none.
711         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
712         L or none.
714 2019-12-19  Julian Brown  <julian@codesourcery.com>
715             Maciej W. Rozycki  <macro@codesourcery.com>
716             Tobias Burnus  <tobias@codesourcery.com>
717             Thomas Schwinge  <thomas@codesourcery.com>
719         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
720         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
721         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
722         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
723         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
724         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
725         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
726         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
727         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
729 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
731         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
732         called...
733         (goacc_insert_pointer): ... from here, "present" case.
734         (goacc_insert_pointer): Inline function into...
735         (GOACC_enter_exit_data): ... here, and simplify.
737         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
738         called...
739         (goacc_insert_pointer): ... from here, "not present" case.
741         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
742         all users.
744         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
745         'goacc_enter_data', 'goacc_exit_data'.
747         * oacc-mem.c (delete_copyout): Refactor into...
748         (goacc_exit_data): ... this.  Adjust all users.
750         * oacc-mem.c (present_create_copy): Refactor into...
751         (goacc_enter_data): ... this.  Adjust all users.
753         * target.c (gomp_unmap_vars_internal): Add a safeguard to
754         'gomp_remove_var'.
756         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
757         like 'GOMP_MAP_FROM'.
759         PR libgomp/92726
760         PR libgomp/92970
761         PR libgomp/92984
762         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
763         fails.
764         (GOACC_enter_exit_data): Simplify accordingly.
765         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
766         subsuming...
767         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
768         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
769         file.
770         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
771         subsuming...
772         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
773         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
774         file.
775         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
776         subsuming...
777         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
779         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
780         'finalize' handling.
782         PR libgomp/92848
783         * oacc-mem.c (acc_map_data, present_create_copy)
784         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
785         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
786         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
787         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
788         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
789         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
790         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
791         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
792         Remove "XFAIL"s.
794         * target.c (gomp_unmap_tgt): Make it 'static'.
795         * libgomp.h (gomp_unmap_tgt): Remove.
797 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
799         PR middle-end/86416
800         * testsuite/libgomp.c/pr86416-1.c: New.
801         * testsuite/libgomp.c/pr86416-2.c: New.
803 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
805         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
806         all symbols as public except for the 'use …, only' imported symbol,
807         which is private.
808         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
809         all symbols from module openacc_kinds as PUBLIC
810         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
811         fix comment typo.
812         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
814 2019-12-13  Julian Brown  <julian@codesourcery.com>
816         PR libgomp/92881
818         * libgomp.h (gomp_remove_var_async): Add prototype.
819         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
820         gomp_remove_var.
821         * target.c (gomp_unref_tgt): Change return type to bool, indicating
822         whether target_mem_desc was unmapped.
823         (gomp_unref_tgt_void): New.
824         (gomp_remove_var): Reimplement in terms of...
825         (gomp_remove_var_internal): ...this new helper function.
826         (gomp_remove_var_async): New, implemented using above helper function.
827         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
828         gomp_unref_tgt.
830 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
832         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
833         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
834         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
835         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
836         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
837         Likewise.
838         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
839         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
841 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
843         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
844         as public except for the 'use …, only' imported symbol, which is
845         private.
846         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
847         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
848         attributes for acc_copyout_finalize and acc_delete_finalize.
850 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
852         PR fortran/92899
853         * testsuite/libgomp.fortran/atomic1.f90: New test.
855 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
857         PR libgomp/92843
858         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
859         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
860         assertions.
861         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
862         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
863         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
864         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
865         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
867         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
868         * oacc-mem.c: ... here.
869         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
870         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
871         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
872         Remove.
873         * libgomp_g.h: Update.
875         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
876         * oacc-async.c: ... here.
877         * oacc-int.h (goacc_wait): Declare.
878         * libgomp_g.h: Update
880         PR libgomp/92854
881         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
882         New file.
883         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
884         Likewise.
885         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
886         Likewise.
887         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
888         Likewise.
889         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
890         Likewise.
891         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
892         Likewise.
894 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
895             Julian Brown  <julian@codesourcery.com>
897         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
898         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
900 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
902         * omp_lib.h.in: Fix spelling of function declaration
903         omp_get_cancell(l)ation.
904         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
905         Fix typos.
906         * env.c: Fix comment typos.
907         * oacc-host.c: Likewise.
908         * ordered.c: Likewise.
909         * task.c: Likewise.
910         * team.c: Likewise.
911         * config/gcn/task.c: Likewise.
912         * config/gcn/team.c: Likewise.
913         * config/nvptx/task.c: Likewise.
914         * config/nvptx/team.c: Likewise.
915         * plugin/plugin-gcn.c: Likewise.
916         * testsuite/libgomp.fortran/jacobi.f: Likewise.
917         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
918         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
920 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
922         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
923         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
924         unnecessary 'dg-additional-options "-w"'.
926 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
927             Julian Brown  <julian@codesourcery.com>
929         PR libgomp/92116
930         PR libgomp/92877
932         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
933         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
934         Adjust all users.
935         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
936         Remove XFAIL.
937         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
938         Likewise.
939         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
941 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
943         PR libgomp/92503
944         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
945         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
946         file.
947         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
948         Likewise.
949         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
950         Likewise.
951         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
952         Likewise.
953         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
954         Likewise.
955         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
956         Likewise.
957         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
958         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
959         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
960         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
961         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
962         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
963         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
964         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
965         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
966         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
968         PR libgomp/92840
969         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
970         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
971         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
972         New file.
973         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
974         Likewise.
975         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
976         Likewise.
977         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
978         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
980         PR libgomp/92511
981         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
982         this file...
983         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
984         this file...
985         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
986         file...
987         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
988         file...
989         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
990         ... with their content moved into, and extended in this new file.
991         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
992         New file.
993         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
994         Likewise.
995         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
996         Likewise.
997         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
998         Likewise.
1000         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
1002         PR libgomp/92854
1003         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
1005         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
1007         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
1009 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
1011         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
1012         unique.
1013         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
1014         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
1015         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
1016         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
1017         Ditto.
1018         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
1019         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
1021 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
1023         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
1025 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
1026             Kwok Cheung Yeung <kcy@codesourcery.com>
1028         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
1029         if input it a NULL pointer.
1030         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
1031         diagnostic of NULL pointer.
1032         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
1033         * testsuite/libgomp.fortran/optional-map.f90: New.
1034         * testsuite/libgomp.fortran/use_device_addr-1.f90
1035         (test_dummy_opt_callee_1_absent): New.
1036         (test_dummy_opt_call_1): Call it.
1037         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1038         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1039         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1040         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1041         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1042         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1043         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1044         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1045         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1046         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1047         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1048         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1049         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1050         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1051         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1052         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1054 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
1056         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1057         expect dg-output of 'Error termination.' for GCN.
1058         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1059         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1061 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
1063         PR fortran/92756
1064         * testsuite/libgomp.fortran/teams1.f90: New test.
1065         * testsuite/libgomp.fortran/teams2.f90: New test.
1067 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
1069         * oacc-init.c (acc_known_device_type): Add function.
1070         (unknown_device_type_error): Add function.
1071         (name_of_acc_device_t): Change to call unknown_device_type_error
1072         on unknown type.
1073         (resolve_device): Use acc_known_device_type.
1074         (acc_init): Fail if acc_device_t argument is not valid.
1075         (acc_shutdown): Likewise.
1076         (acc_get_num_devices): Likewise.
1077         (acc_set_device_type): Likewise.
1078         (acc_get_device_num): Likewise.
1079         (acc_set_device_num): Likewise.
1080         (acc_on_device): Add comment that argument validity is not checked.
1082 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
1084         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1085         Recognize amdgcn.
1086         (check_effective_target_openacc_amdgcn_accel_present): New proc.
1087         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1088         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1089         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1090         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1092 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1094         PR libgomp/91938
1095         * configure.tgt: Avoid IE tls on *-*-musl*.
1097 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
1099         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1100         adding a common-block test case.
1102 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
1104         PR c++/60228
1105         * testsuite/libgomp.c++/udr-20.C: New test.
1106         * testsuite/libgomp.c++/udr-21.C: New test.
1108 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
1110         * testsuite/lib/libgomp.exp
1111         (check_effective_target_offload_target_nvptx): New proc.
1112         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1113         'dg-skip-if'.
1114         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1115         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1116         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1118 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1120         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1121         * testsuite/libgomp.c/pr39591-2.c: Likewise.
1122         * testsuite/libgomp.c/pr39591-3.c: Likewise.
1123         * testsuite/libgomp.c/private-1.c: Likewise.
1124         * testsuite/libgomp.c/task-1.c: Likewise.
1125         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1127 2019-11-20  Julian Brown  <julian@codesourcery.com>
1129         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1130         aq->mutex here.
1131         (queue_push_launch): Lock aq->mutex before calling
1132         wait_for_queue_nonfull.
1133         (queue_push_callback): Likewise.
1134         (queue_push_asyncwait): Likewise.
1135         (queue_push_placeholder): Likewise.
1137 2019-11-20  Julian Brown  <julian@codesourcery.com>
1139         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1140         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1141         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1142         return code.
1144 2019-11-20  Julian Brown  <julian@codesourcery.com>
1146         PR libgomp/92511
1148         * oacc-mem.c (present_create_copy): Fix device pointer return value in
1149         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
1150         in non-present/create case.
1151         (delete_copyout): Change error condition to fail only on copies outside
1152         of mapped block.  Adjust error message accordingly.
1153         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1154         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1155         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1156         message.
1157         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1158         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1159         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1161 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
1163         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1164         libatomic in build-tree testing.
1166 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
1168         * testsuite/Makefile.in: Regenerate.
1170 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
1172         * testsuite/libgomp.c/target-print-1.c: New file.
1173         * testsuite/libgomp.fortran/target-print-1.f90: New file.
1174         * testsuite/libgomp.oacc-c/print-1.c: New file.
1175         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1177 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1178             Kwok Cheung Yeung  <kcy@codesourcery.com>
1179             Julian Brown  <julian@codesourcery.com>
1180             Tom de Vries  <tom@codesourcery.com>
1182         * plugin/Makefrag.am: Add amdgcn plugin support.
1183         * plugin/configfrag.ac: Likewise.
1184         * plugin/plugin-gcn.c: New file.
1185         * configure: Regenerate.
1186         * Makefile.in: Regenerate.
1187         * testsuite/Makefile.in: Regenerate.
1189 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1191         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1192         and use team_malloc variants.
1193         (gomp_gcn_exit_kernel): Use team_free.
1194         * libgomp.h (TEAM_ARENA_SIZE): Define.
1195         (TEAM_ARENA_START): Define.
1196         (TEAM_ARENA_FREE): Define.
1197         (TEAM_ARENA_END): Define.
1198         (team_malloc): New function.
1199         (team_malloc_cleared): New function.
1200         (team_free): New function.
1201         * team.c (gomp_new_team): Initialize and use team_malloc.
1202         (free_team): Use team_free.
1203         (gomp_free_thread): Use team_free.
1204         (gomp_pause_host): Use team_free.
1205         * work.c (gomp_init_work_share): Use team_malloc.
1206         (gomp_fini_work_share): Use team_free.
1208 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1209             Kwok Cheung Yeung  <kcy@codesourcery.com>
1210             Julian Brown  <julian@codesourcery.com>
1211             Tom de Vries  <tom@codesourcery.com>
1213         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1214         * Makefile.in: Regenerate.
1215         * config.h.in (PLUGIN_GCN): Add new undef.
1216         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1217         * config/gcn/affinity-fmt.c: New file.
1218         * config/gcn/bar.c: New file.
1219         * config/gcn/bar.h: New file.
1220         * config/gcn/doacross.h: New file.
1221         * config/gcn/icv-device.c: New file.
1222         * config/gcn/oacc-target.c: New file.
1223         * config/gcn/simple-bar.h: New file.
1224         * config/gcn/target.c: New file.
1225         * config/gcn/task.c: New file.
1226         * config/gcn/team.c: New file.
1227         * config/gcn/time.c: New file.
1228         * configure.ac: Add amdgcn*-*-*.
1229         * configure: Regenerate.
1230         * configure.tgt: Add amdgcn*-*-*.
1231         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1232         * libgomp.h (gcn_thrs): Add amdgcn variant.
1233         (set_gcn_thrs): Likewise.
1234         (gomp_thread): Likewise.
1235         * oacc-int.h (goacc_thread): Likewise.
1236         * oacc-target.c: New file.
1237         * openacc.f90 (acc_device_gcn): New parameter.
1238         * openacc.h (acc_device_t): Add acc_device_gcn.
1239         * team.c (gomp_free_pool_helper): Add amdgcn support.
1241 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1242             Julian Brown  <julian@codesourcery.com>
1244         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1245         parameter.
1246         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1247         queue constructor.
1248         * oacc-host.c (host_openacc_async_construct): Add device parameter.
1249         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1250         device parameter.
1252 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1254         * configure.tgt (nvptx*-*-*): Add "accel" directory.
1255         * config/nvptx/libgomp-plugin.c: Move ...
1256         * config/accel/libgomp-plugin.c: ... to here.
1257         * config/nvptx/lock.c: Move ...
1258         * config/accel/lock.c: ... to here.
1259         * config/nvptx/mutex.c: Move ...
1260         * config/accel/mutex.c: ... to here.
1261         * config/nvptx/mutex.h: Move ...
1262         * config/accel/mutex.h: ... to here.
1263         * config/nvptx/oacc-async.c: Move ...
1264         * config/accel/oacc-async.c: ... to here.
1265         * config/nvptx/oacc-cuda.c: Move ...
1266         * config/accel/oacc-cuda.c: ... to here.
1267         * config/nvptx/oacc-host.c: Move ...
1268         * config/accel/oacc-host.c: ... to here.
1269         * config/nvptx/oacc-init.c: Move ...
1270         * config/accel/oacc-init.c: ... to here.
1271         * config/nvptx/oacc-mem.c: Move ...
1272         * config/accel/oacc-mem.c: ... to here.
1273         * config/nvptx/oacc-plugin.c: Move ...
1274         * config/accel/oacc-plugin.c: ... to here.
1275         * config/nvptx/omp-lock.h: Move ...
1276         * config/accel/omp-lock.h: ... to here.
1277         * config/nvptx/openacc.f90: Move ...
1278         * config/accel/openacc.f90: ... to here.
1279         * config/nvptx/pool.h: Move ...
1280         * config/accel/pool.h: ... to here.
1281         * config/nvptx/proc.c: Move ...
1282         * config/accel/proc.c: ... to here.
1283         * config/nvptx/ptrlock.c: Move ...
1284         * config/accel/ptrlock.c: ... to here.
1285         * config/nvptx/ptrlock.h: Move ...
1286         * config/accel/ptrlock.h: ... to here.
1287         * config/nvptx/sem.c: Move ...
1288         * config/accel/sem.c: ... to here.
1289         * config/nvptx/sem.h: Move ...
1290         * config/accel/sem.h: ... to here.
1291         * config/nvptx/thread-stacksize.h: Move ...
1292         * config/accel/thread-stacksize.h: ... to here.
1294 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
1295             Tobias Burnus  <tobias@codesourcery.com>
1296             Frederik Harwath  <frederik@codesourcery.com>
1297             Thomas Schwinge  <thomas@codesourcery.com>
1299         libgomp/
1300         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1301         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1302         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1304 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
1305             Kwok Cheung Yeung  <kcy@codesourcery.com>
1307         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1308         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1310 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
1312         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1314         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1315         run'.
1316         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1317         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1319 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
1321         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1322         Add expected warnings about missing reduction clauses.
1323         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1324         Likewise.
1325         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1326         Likewise.
1327         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1328         Likewise.
1330 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
1332         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1333         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1334         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1335         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1336         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1337         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1339 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
1341         PR fortran/92305
1342         * testsuite/libgomp.fortran/allocatable2.f90: Use
1343         unique numbers with 'stop'.
1344         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1345         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1346         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1347         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1348         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1350 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
1352         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1353         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1354         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1355         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1356         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1357         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1359 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
1361         * testsuite/libgomp.fortran/target9.f90: New.
1363 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
1365         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1366         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1367         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1368         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1369         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1370         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1371         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1372         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1373         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1374         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1375         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1376         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1377         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1378         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1379         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1380         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1381         * testsuite/libgomp.fortran/associate1.f90: Ditto.
1382         * testsuite/libgomp.fortran/associate2.f90: Ditto.
1383         * testsuite/libgomp.fortran/associate3.f90: Ditto.
1384         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1385         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1386         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1387         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1388         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1389         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1390         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1391         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1392         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1393         * testsuite/libgomp.fortran/character1.f90: Ditto.
1394         * testsuite/libgomp.fortran/character2.f90: Ditto.
1395         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1396         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1397         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1398         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1399         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1400         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1401         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1402         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1403         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1404         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1405         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1406         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1407         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1408         * testsuite/libgomp.fortran/do1.f90: Ditto.
1409         * testsuite/libgomp.fortran/do2.f90: Ditto.
1410         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1411         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1412         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1413         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1414         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1415         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1416         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1417         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1418         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1419         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1420         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1421         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1422         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1423         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1424         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1425         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1426         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1427         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1428         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1429         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1430         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1431         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1432         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1433         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1434         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1435         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1436         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1437         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1438         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1439         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1440         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1441         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1442         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1443         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1444         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1445         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1446         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1447         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1448         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1449         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1450         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1451         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1452         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1453         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1454         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1455         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1456         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1457         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1458         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1459         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1460         * testsuite/libgomp.fortran/lib1.f90: Ditto.
1461         * testsuite/libgomp.fortran/lib4.f90: Ditto.
1462         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1463         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1464         * testsuite/libgomp.fortran/nested1.f90: Ditto.
1465         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1466         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1467         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1468         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1469         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1470         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1471         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1472         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1473         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1474         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1475         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1476         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1477         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1478         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1479         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1480         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1481         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1482         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1483         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1484         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1485         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1486         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1487         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1488         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1489         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1490         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1491         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1492         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1493         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1494         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1495         * testsuite/libgomp.fortran/pr28390.f: Ditto.
1496         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1497         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1498         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1499         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1500         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1501         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1502         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1503         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1504         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1505         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1506         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1507         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1508         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1509         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1510         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1511         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1512         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1513         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1514         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1515         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1516         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1517         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1518         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1519         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1520         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1521         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1522         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1523         * testsuite/libgomp.fortran/reference1.f90: Ditto.
1524         * testsuite/libgomp.fortran/reference2.f90: Ditto.
1525         * testsuite/libgomp.fortran/retval1.f90: Ditto.
1526         * testsuite/libgomp.fortran/retval2.f90: Ditto.
1527         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1528         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1529         * testsuite/libgomp.fortran/simd1.f90: Ditto.
1530         * testsuite/libgomp.fortran/simd2.f90: Ditto.
1531         * testsuite/libgomp.fortran/simd3.f90: Ditto.
1532         * testsuite/libgomp.fortran/simd4.f90: Ditto.
1533         * testsuite/libgomp.fortran/simd5.f90: Ditto.
1534         * testsuite/libgomp.fortran/simd6.f90: Ditto.
1535         * testsuite/libgomp.fortran/simd7.f90: Ditto.
1536         * testsuite/libgomp.fortran/stack.f90: Ditto.
1537         * testsuite/libgomp.fortran/strassen.f90: Ditto.
1538         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1539         * testsuite/libgomp.fortran/tabs2.f: Ditto.
1540         * testsuite/libgomp.fortran/target1.f90: Ditto.
1541         * testsuite/libgomp.fortran/target2.f90: Ditto.
1542         * testsuite/libgomp.fortran/target3.f90: Ditto.
1543         * testsuite/libgomp.fortran/target4.f90: Ditto.
1544         * testsuite/libgomp.fortran/target5.f90: Ditto.
1545         * testsuite/libgomp.fortran/target6.f90: Ditto.
1546         * testsuite/libgomp.fortran/target7.f90: Ditto.
1547         * testsuite/libgomp.fortran/target8.f90: Ditto.
1548         * testsuite/libgomp.fortran/task1.f90: Ditto.
1549         * testsuite/libgomp.fortran/task2.f90: Ditto.
1550         * testsuite/libgomp.fortran/task3.f90: Ditto.
1551         * testsuite/libgomp.fortran/task4.f90: Ditto.
1552         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1553         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1554         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1555         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1556         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1557         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1558         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1559         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1560         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1561         * testsuite/libgomp.fortran/udr1.f90: Ditto.
1562         * testsuite/libgomp.fortran/udr10.f90: Ditto.
1563         * testsuite/libgomp.fortran/udr11.f90: Ditto.
1564         * testsuite/libgomp.fortran/udr12.f90: Ditto.
1565         * testsuite/libgomp.fortran/udr13.f90: Ditto.
1566         * testsuite/libgomp.fortran/udr14.f90: Ditto.
1567         * testsuite/libgomp.fortran/udr15.f90: Ditto.
1568         * testsuite/libgomp.fortran/udr2.f90: Ditto.
1569         * testsuite/libgomp.fortran/udr3.f90: Ditto.
1570         * testsuite/libgomp.fortran/udr4.f90: Ditto.
1571         * testsuite/libgomp.fortran/udr5.f90: Ditto.
1572         * testsuite/libgomp.fortran/udr6.f90: Ditto.
1573         * testsuite/libgomp.fortran/udr7.f90: Ditto.
1574         * testsuite/libgomp.fortran/udr8.f90: Ditto.
1575         * testsuite/libgomp.fortran/udr9.f90: Ditto.
1576         * testsuite/libgomp.fortran/vla1.f90: Ditto.
1577         * testsuite/libgomp.fortran/vla2.f90: Ditto.
1578         * testsuite/libgomp.fortran/vla3.f90: Ditto.
1579         * testsuite/libgomp.fortran/vla4.f90: Ditto.
1580         * testsuite/libgomp.fortran/vla5.f90: Ditto.
1581         * testsuite/libgomp.fortran/vla6.f90: Ditto.
1582         * testsuite/libgomp.fortran/vla7.f90: Ditto.
1583         * testsuite/libgomp.fortran/vla8.f90: Ditto.
1584         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1585         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1587 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
1589         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1590         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1591         Ditto; add 'dg-do run' for torture testing.
1592         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
1593         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1594         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1595         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1596         * testsuite/libgomp.fortran/pr28390.f: Ditto.
1597         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1598         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1599         * testsuite/libgomp.fortran/task2.f90: Ditto.
1600         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1601         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1602         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1603         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1604         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1605         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1607 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
1609         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1610         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1611         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1612         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1613         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1614         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1615         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1616         Use 'stop' not abort().
1617         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1618         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1619         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1620         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1621         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1622         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1623         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1624         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1625         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1626         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1627         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1628         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1629         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1630         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1631         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1632         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1633         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1634         Ditto.
1635         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1636         Ditto.
1637         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1638         Ditto.
1639         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1640         Ditto.
1641         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1642         Ditto.
1643         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1644         Ditto.
1645         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1646         Ditto.
1647         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1648         Ditto.
1649         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1650         Ditto.
1651         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1652         Ditto.
1653         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1654         Ditto.
1655         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1656         Ditto.
1657         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1658         Ditto.
1659         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1660         Ditto.
1661         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1662         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1663         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1664         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1665         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1666         Likewise and also add 'dg-do run'.
1667         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1668         Ditto.
1670 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
1671             Tobias Burnus  <tobias@codesourcery.com>
1673         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1674         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1675         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1677 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
1679         PR libgomp/92081
1680         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1681         than 0.
1683 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
1685         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1686         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1688 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
1690         PR middle-end/92036
1691         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1692         file.
1694 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
1696         PR testsuite/91884
1697         * testsuite/libgomp.fortran/fortran.exp: Conditionally
1698         add -lquadmath.
1699         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1701 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
1703         PR libgomp/92028
1704         * target.c (gomp_map_vars_internal): Readd the previous
1705         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1706         though do that just in the !not_found_cnt case.
1708 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
1710         * gfortran.dg/gomp/target-simd.f90: New.
1712 2019-10-02  Julian Brown  <julian@codesourcery.com>
1713             Cesar Philippidis  <cesar@codesourcery.com>
1715         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1716         * target.c (FIELD_TGT_EMPTY): Define.
1717         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
1718         as switch instead of list of ifs.
1719         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1721 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
1723         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1724         include. Replace alloca () with __builtin_alloca ().
1725         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1727 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
1729         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1730         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1731         * oacc-parallel.c: Don't include "libgomp_g.h".
1732         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1733         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1734         * aclocal.m4: Regenerated.
1735         * config.h.in: Regenerated.
1736         * configure: Regenerated.
1737         * Makefile.in: Regenerated.
1739 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
1741         * libgomp_g.h: Include stdint.h instead of gstdint.h.
1743 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
1745         * configure: Regenerate.
1747 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
1749         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1750         string is initialized.
1752 2019-09-06  Florian Weimer  <fweimer@redhat.com>
1754         * configure: Regenerate.
1756 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
1758         PR other/79543
1759         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1760         scanning to conform to the GNU Coding Standards.
1761         * configure: Regenerate.
1763 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
1765         PR libgomp/91530
1766         * testsuite/libgomp.c/scan-21.c: New test.
1767         * testsuite/libgomp.c/scan-22.c: New test.
1769 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
1771         PR libgomp/91530
1772         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1773         targets.
1774         * testsuite/libgomp.c/scan-12.c: Likewise.
1775         * testsuite/libgomp.c/scan-13.c: Likewise.
1776         * testsuite/libgomp.c/scan-14.c: Likewise.
1777         * testsuite/libgomp.c/scan-15.c: Likewise.
1778         * testsuite/libgomp.c/scan-16.c: Likewise.
1779         * testsuite/libgomp.c/scan-17.c: Likewise.
1780         * testsuite/libgomp.c/scan-18.c: Likewise.
1781         * testsuite/libgomp.c/scan-19.c: Likewise.
1782         * testsuite/libgomp.c/scan-20.c: Likewise.
1783         * testsuite/libgomp.c++/scan-9.C: Likewise.
1784         * testsuite/libgomp.c++/scan-10.C: Likewise.
1785         * testsuite/libgomp.c++/scan-11.C: Likewise.
1786         * testsuite/libgomp.c++/scan-12.C: Likewise.
1787         * testsuite/libgomp.c++/scan-14.C: Likewise.
1788         * testsuite/libgomp.c++/scan-15.C: Likewise.
1789         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
1790         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1791         * testsuite/libgomp.c++/scan-16.C: Likewise.
1793 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
1795         PR fortran/91473
1796         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1797         -std=legacy so invalid code in the test case is accepted.
1799 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
1801         PR fortran/91422
1802         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1803         dimension.
1805 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
1807         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1808         perform the lookup in the first loop only if !not_found_cnt, otherwise
1809         perform lookups for it in the second loop guarded with
1810         if (not_found_cnt || has_firstprivate).
1811         * testsuite/libgomp.c/target-37.c: New test.
1812         * testsuite/libgomp.c++/target-22.C: New test.
1814 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
1816         * testsuite/libgomp.c/target-18.c (struct S): New type.
1817         (foo): Use use_device_addr clause instead of use_device_ptr clause
1818         where required by OpenMP 5.0, add further tests for both use_device_ptr
1819         and use_device_addr clauses.
1820         * testsuite/libgomp.c++/target-9.C (struct S): New type.
1821         (foo): Use use_device_addr clause instead of use_device_ptr clause
1822         where required by OpenMP 5.0, add further tests for both use_device_ptr
1823         and use_device_addr clauses.  Add t and u arguments.
1824         (main): Adjust caller.
1826 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
1828         * testsuite/libgomp.c++/loop-13.C: New test.
1829         * testsuite/libgomp.c++/loop-14.C: New test.
1830         * testsuite/libgomp.c++/loop-15.C: New test.
1832 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
1834         PR middle-end/91301
1835         * testsuite/libgomp.c++/for-27.C: New test.
1837 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
1839         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1840         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1842 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
1844         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1846 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
1848         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1849         * testsuite/libgomp.c++/scan-16.C: Likewise.
1851 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
1853         * testsuite/libgomp.c/scan-19.c: New test.
1854         * testsuite/libgomp.c/scan-20.c: New test.
1856         * testsuite/libgomp.c/scan-11.c: New test.
1857         * testsuite/libgomp.c/scan-12.c: New test.
1858         * testsuite/libgomp.c/scan-13.c: New test.
1859         * testsuite/libgomp.c/scan-14.c: New test.
1860         * testsuite/libgomp.c/scan-15.c: New test.
1861         * testsuite/libgomp.c/scan-16.c: New test.
1862         * testsuite/libgomp.c/scan-17.c: New test.
1863         * testsuite/libgomp.c/scan-18.c: New test.
1864         * testsuite/libgomp.c++/scan-9.C: New test.
1865         * testsuite/libgomp.c++/scan-10.C: New test.
1866         * testsuite/libgomp.c++/scan-11.C: New test.
1867         * testsuite/libgomp.c++/scan-12.C: New test.
1868         * testsuite/libgomp.c++/scan-13.C: New test.
1869         * testsuite/libgomp.c++/scan-14.C: New test.
1870         * testsuite/libgomp.c++/scan-15.C: New test.
1871         * testsuite/libgomp.c++/scan-16.C: New test.
1873 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
1875         * testsuite/libgomp.c/scan-9.c: New test.
1876         * testsuite/libgomp.c/scan-10.c: New test.
1878 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
1880         * testsuite/libgomp.c++/scan-1.C: New test.
1881         * testsuite/libgomp.c++/scan-2.C: New test.
1882         * testsuite/libgomp.c++/scan-3.C: New test.
1883         * testsuite/libgomp.c++/scan-4.C: New test.
1884         * testsuite/libgomp.c++/scan-5.C: New test.
1885         * testsuite/libgomp.c++/scan-6.C: New test.
1886         * testsuite/libgomp.c++/scan-7.C: New test.
1887         * testsuite/libgomp.c++/scan-8.C: New test.
1888         * testsuite/libgomp.c/scan-1.c: New test.
1889         * testsuite/libgomp.c/scan-2.c: New test.
1890         * testsuite/libgomp.c/scan-3.c: New test.
1891         * testsuite/libgomp.c/scan-4.c: New test.
1892         * testsuite/libgomp.c/scan-5.c: New test.
1893         * testsuite/libgomp.c/scan-6.c: New test.
1894         * testsuite/libgomp.c/scan-7.c: New test.
1895         * testsuite/libgomp.c/scan-8.c: New test.
1897 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
1899         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1900         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1901         Likewise.
1903         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1904         check.
1906 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
1908         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1909         file.
1911 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
1913         PR fortran/90743
1914         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1915         case.
1916         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1917         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1918         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1919         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1921         PR testsuite/90861
1922         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1924         PR middle-end/90862
1925         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1927 2019-06-16  Tom de Vries  <tdevries@suse.de>
1929         PR tree-optimization/89376
1930         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1932 2019-06-15  Tom de Vries  <tdevries@suse.de>
1934         PR tree-optimization/89713
1935         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1936         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1938 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
1940         PR middle-end/90779
1941         * testsuite/libgomp.c/pr90779.c: New test.
1942         * testsuite/libgomp.fortran/pr90779.f90: New test.
1944 2019-06-15  Tom de Vries  <tdevries@suse.de>
1946         PR tree-optimization/90009
1947         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1949 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
1951         PR tree-optimization/89713
1952         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1954 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
1956         PR target/90811
1957         * testsuite/libgomp.c/pr90811.c: New test.
1959 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
1961         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1962         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1964 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
1966         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1967         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1968         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1969         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1971 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1973         * configure.ac: Call AX_COUNT_CPUS.
1974         Substitute CPU_COUNT.
1975         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1976         count fallback.
1977         * aclocal.m4: Regenerate.
1978         * configure: Regenerate.
1979         * Makefile.in, testsuite/Makefile.in: Regenerate.
1981 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
1983         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1984         to ...
1985         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1986         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1987         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1989 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
1991         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1993         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1995         PR libgomp/90641
1996         * work.c (gomp_init_work_share): Instead of aligning final ordered
1997         value to multiples of long long alignment, align to that the
1998         first part (ordered team ids) and if inline_ordered_team_ids
1999         is not on a long long alignment boundary within the structure,
2000         use __alignof__ (long long) - 1 pad size always.
2001         * loop.c (GOMP_loop_start): Fix *mem computation if
2002         inline_ordered_team_ids is not aligned on long long alignment boundary
2003         within the structure.
2004         * loop-ull.c (GOMP_loop_ull_start): Likewise.
2005         * sections.c (GOMP_sections2_start): Likewise.
2007 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
2009         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
2010         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
2012         PR libgomp/90585
2013         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
2014         HAVE_INTTYPES_H is defined.
2015         (print_uint64_t): New typedef.
2016         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
2017         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
2018         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
2019         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
2020         before casting to void *.
2021         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
2022         * oacc-mem.c: Don't include config.h nor stdint.h.
2023         * target.c: Don't include config.h.
2024         * oacc-cuda.c: Likewise.
2025         * oacc-host.c: Don't include stdint.h.
2027 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
2029         PR libgomp/90527
2030         * alloc.c (_GNU_SOURCE): Define.
2032 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
2034         * acc_prof.h: New file.
2035         * oacc-profiling.c: Likewise.
2036         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2037         Add these, respectively.
2038         * Makefile.in: Regenerate.
2039         * env.c (initialize_env): Call goacc_profiling_initialize.
2040         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2041         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2042         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2043         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2044         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2045         acc_prof_register, acc_prof_unregister, and acc_register_library.
2046         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2047         GOMP_PLUGIN_goacc_thread.
2048         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2049         prof_callbacks_enabled members.
2050         (goacc_prof_enabled, goacc_profiling_initialize)
2051         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2052         (goacc_profiling_dispatch): Declare.
2053         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2054         (GOACC_PROFILING_SETUP_P): Define.
2055         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2056         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2057         OpenACC Profiling Interface.
2058         * oacc-cuda.c (acc_get_current_cuda_device)
2059         (acc_get_current_cuda_context, acc_get_cuda_stream)
2060         (acc_set_cuda_stream): Likewise.
2061         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2062         (acc_init, acc_set_device_type, acc_get_device_type)
2063         (acc_get_device_num, goacc_lazy_initialize): Likewise.
2064         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2065         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2066         (acc_unmap_data, present_create_copy, delete_copyout)
2067         (update_dev_host): Likewise.
2068         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2069         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2070         Likewise.
2071         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2072         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2073         Likewise.
2074         * libgomp.texi: Update.
2075         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2076         file.
2077         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2078         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2079         Likewise.
2080         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2081         Likewise.
2082         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2083         Likewise.
2084         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2085         Likewise.
2087 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
2089         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2090         (struct goacc_asyncqueue_list): Likewise.
2091         (goacc_aq): Likewise.
2092         (goacc_aq_list): Likewise.
2093         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2094         (GOMP_OFFLOAD_openacc_async_test): Remove.
2095         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2096         (GOMP_OFFLOAD_openacc_async_wait): Remove.
2097         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2098         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2099         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2100         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2101         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2102         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2103         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2104         (GOMP_OFFLOAD_openacc_async_exec): Declare.
2105         (GOMP_OFFLOAD_openacc_async_construct): Declare.
2106         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2107         (GOMP_OFFLOAD_openacc_async_test): Declare.
2108         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2109         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2110         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2111         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2112         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2114         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2115         (gomp_acc_insert_pointer): Adjust declaration.
2116         (gomp_copy_host2dev): New declaration.
2117         (gomp_copy_dev2host): Likewise.
2118         (gomp_map_vars_async): Likewise.
2119         (gomp_unmap_tgt): Likewise.
2120         (gomp_unmap_vars_async): Likewise.
2121         (gomp_fini_device): Likewise.
2123         * oacc-async.c (get_goacc_thread): New function.
2124         (get_goacc_thread_device): New function.
2125         (lookup_goacc_asyncqueue): New function.
2126         (get_goacc_asyncqueue): New function.
2127         (acc_async_test): Adjust code to use new async design.
2128         (acc_async_test_all): Likewise.
2129         (acc_wait): Likewise.
2130         (acc_wait_async): Likewise.
2131         (acc_wait_all): Likewise.
2132         (acc_wait_all_async): Likewise.
2133         (goacc_async_free): New function.
2134         (goacc_init_asyncqueues): Likewise.
2135         (goacc_fini_asyncqueues): Likewise.
2136         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2137         design.
2138         (acc_set_cuda_stream): Likewise.
2139         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2140         (host_openacc_register_async_cleanup): Remove.
2141         (host_openacc_async_exec): New function.
2142         (host_openacc_async_test): Adjust parameters.
2143         (host_openacc_async_test_all): Remove.
2144         (host_openacc_async_wait): Remove.
2145         (host_openacc_async_wait_async): Remove.
2146         (host_openacc_async_wait_all): Remove.
2147         (host_openacc_async_wait_all_async): Remove.
2148         (host_openacc_async_set_async): Remove.
2149         (host_openacc_async_synchronize): New function.
2150         (host_openacc_async_serialize): New function.
2151         (host_openacc_async_host2dev): New function.
2152         (host_openacc_async_dev2host): New function.
2153         (host_openacc_async_queue_callback): New function.
2154         (host_openacc_async_construct): New function.
2155         (host_openacc_async_destruct): New function.
2156         (struct gomp_device_descr host_dispatch): Remove initialization of old
2157         interface, add initialization of new async sub-struct.
2158         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2159         (goacc_attach_host_thread_to_device): Remove old async code usage.
2160         * oacc-int.h (goacc_init_asyncqueues): New declaration.
2161         (goacc_fini_asyncqueues): Likewise.
2162         (goacc_async_copyout_unmap_vars): Likewise.
2163         (goacc_async_free): Likewise.
2164         (get_goacc_asyncqueue): Likewise.
2165         (lookup_goacc_asyncqueue): Likewise.
2166         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2167         design.
2168         (present_create_copy): Adjust code to use new async design.
2169         (delete_copyout): Likewise.
2170         (update_dev_host): Likewise.
2171         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2172         async design.
2173         (gomp_acc_remove_pointer): Adjust code to use new async design.
2174         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2175         design.
2176         (GOACC_enter_exit_data): Likewise.
2177         (goacc_wait): Likewise.
2178         (GOACC_update): Likewise.
2179         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2180         when called, warn as obsolete in comment.
2181         * target.c (goacc_device_copy_async): New function.
2182         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2183         add goacc_device_copy_async case.
2184         (gomp_copy_dev2host): Likewise.
2185         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2186         (gomp_map_pointer): Likewise.
2187         (gomp_map_fields_existing): Likewise.
2188         (gomp_map_vars_internal): New always_inline function, renamed from
2189         gomp_map_vars.
2190         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2191         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2192         passing goacc_asyncqueue argument.
2193         (gomp_unmap_tgt): Remove static, add attribute_hidden.
2194         (gomp_unref_tgt): New function.
2195         (gomp_unmap_vars_internal): New always_inline function, renamed from
2196         gomp_unmap_vars.
2197         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2198         (gomp_unmap_vars_async): Implement by calling
2199         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2200         (gomp_fini_device): New function.
2201         (gomp_exit_data): Adjust gomp_copy_dev2host call.
2202         (gomp_load_plugin_for_device): Remove old interface, adjust to load
2203         new async interface.
2204         (gomp_target_fini): Adjust code to call gomp_fini_device.
2206         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2207         (struct ptx_stream): Remove.
2208         (struct nvptx_thread): Remove current_stream field.
2209         (cuda_map_create): Remove.
2210         (cuda_map_destroy): Remove.
2211         (map_init): Remove.
2212         (map_fini): Remove.
2213         (map_pop): Remove.
2214         (map_push): Remove.
2215         (struct goacc_asyncqueue): Define.
2216         (struct nvptx_callback): Define.
2217         (struct ptx_free_block): Define.
2218         (struct ptx_device): Remove null_stream, active_streams, async_streams,
2219         stream_lock, and next fields.
2220         (enum ptx_event_type): Remove.
2221         (struct ptx_event): Remove.
2222         (ptx_event_lock): Remove.
2223         (ptx_events): Remove.
2224         (init_streams_for_device): Remove.
2225         (fini_streams_for_device): Remove.
2226         (select_stream_for_async): Remove.
2227         (nvptx_init): Remove ptx_events and ptx_event_lock references.
2228         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2229         case.
2230         (nvptx_open_device): Add free_blocks initialization, remove
2231         init_streams_for_device call.
2232         (nvptx_close_device): Remove fini_streams_for_device call, add
2233         free_blocks destruct code.
2234         (event_gc): Remove.
2235         (event_add): Remove.
2236         (nvptx_exec): Adjust parameters and code.
2237         (nvptx_free): Likewise.
2238         (nvptx_host2dev): Remove.
2239         (nvptx_dev2host): Remove.
2240         (nvptx_set_async): Remove.
2241         (nvptx_async_test): Remove.
2242         (nvptx_async_test_all): Remove.
2243         (nvptx_wait): Remove.
2244         (nvptx_wait_async): Remove.
2245         (nvptx_wait_all): Remove.
2246         (nvptx_wait_all_async): Remove.
2247         (nvptx_get_cuda_stream): Remove.
2248         (nvptx_set_cuda_stream): Remove.
2249         (GOMP_OFFLOAD_alloc): Adjust code.
2250         (GOMP_OFFLOAD_free): Likewise.
2251         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2252         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2253         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2254         (GOMP_OFFLOAD_openacc_async_wait): Remove.
2255         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2256         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2257         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2258         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2259         (cuda_free_argmem): New function.
2260         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2261         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2262         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2263         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2264         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2265         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2266         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2267         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2268         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2269         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2270         (cuda_callback_wrapper): New function.
2271         (cuda_memcpy_sanity_check): New function.
2272         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2273         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2274         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2275         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2277 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
2279         PR target/87835
2280         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2282 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
2284         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2286 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
2288         * team.c (gomp_team_start): Initialize pool->threads[0].
2290 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
2292         * testsuite/libgomp.oacc-c++/c++.exp: Specify
2293         "-foffload=$offload_target".
2294         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2295         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2296         * testsuite/lib/libgomp.exp
2297         (check_effective_target_openacc_nvidia_accel_configured): Remove,
2298         as (conceptually) merged into
2299         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
2300         users.
2302         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2303         * testsuite/libgomp-test-support.exp.in: Adjust.
2304         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
2305         openacc_device_types_s.
2306         (offload_target_to_openacc_device_type): New proc.
2307         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2308         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2309         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2310         * Makefile.in: Regenerate.
2311         * configure: Likewise.
2312         * testsuite/Makefile.in: Likewise.
2314         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2315         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2316         instead of OFFLOAD_TARGETS.
2317         * target.c (gomp_target_init): Adjust.
2318         * testsuite/libgomp-test-support.exp.in: Likewise.
2319         * testsuite/lib/libgomp.exp: Likewise.  Populate
2320         openacc_device_types_s instead of offload_targets_s_openacc.
2321         (check_effective_target_openacc_nvidia_accel_selected)
2322         (check_effective_target_openacc_host_selected): Adjust.
2323         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2324         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2325         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2326         * Makefile.in: Regenerate.
2327         * config.h.in: Likewise.
2328         * configure: Likewise.
2329         * testsuite/Makefile.in: Likewise.
2331         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2332         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
2333         "offloading: supported, but hardware not accessible".
2334         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2335         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2337 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
2339         PR c/87924
2340         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2341         goacc_wait().
2342         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2343         and related adjustment.
2345 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
2347         PR c++/88988
2348         * testsuite/libgomp.c++/pr88988.C: New test.
2350 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
2352         PR middle-end/89002
2353         * testsuite/libgomp.c/pr89002.c: New test.
2355 2019-01-28  Richard Biener  <rguenther@suse.de>
2357         PR testsuite/89064
2358         PR tree-optimization/86865
2359         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2361 2019-01-24  Tom de Vries  <tdevries@suse.de>
2363         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2364         once instantiated_devices drops to 0.
2366 2019-01-23  Tom de Vries  <tdevries@suse.de>
2368         PR target/PR88946
2369         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2370         cuMemFree.
2371         (nvptx_exec): Don't call map_push if mapnum == 0.
2372         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2374 2019-01-23  Tom de Vries  <tdevries@suse.de>
2376         PR target/88941
2377         PR target/88939
2378         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2379         (map_fini): Remove "assert (!s->map->active)".
2380         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2382 2019-01-23  Tom de Vries  <tdevries@suse.de>
2384         PR target/87835
2385         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2386         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2388 2019-01-15  Tom de Vries  <tdevries@suse.de>
2390         PR target/80547
2391         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2392         New test.
2394 2019-01-12  Tom de Vries  <tdevries@suse.de>
2396         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2397         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2398         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2399         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2401 2019-01-12  Tom de Vries  <tdevries@suse.de>
2403         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2405 2019-01-12  Tom de Vries  <tdevries@suse.de>
2407         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2408         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2409         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2411 2019-01-12  Tom de Vries  <tdevries@suse.de>
2413         PR target/85486
2414         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2415         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2417 2019-01-12  Tom de Vries  <tdevries@suse.de>
2419         PR target/85381
2420         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2421         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2423 2019-01-12  Tom de Vries  <tdevries@suse.de>
2425         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2426         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2427         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2429 2019-01-12  Tom de Vries  <tdevries@suse.de>
2431         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2432         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2433         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2435 2019-01-12  Tom de Vries  <tdevries@suse.de>
2437         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2438         resources diagnostic.
2440 2019-01-12  Tom de Vries  <tdevries@suse.de>
2442         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2443         vector length to be 128.
2444         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2445         length 2097152 to be reduced to 1024 instead of 32.
2447 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
2448             James Norris  <jnorris@codesourcery.com>
2450         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2451         Library Routines", and "Environment Variables".
2453 2019-01-11  Tom de Vries  <tdevries@suse.de>
2455         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2456         num_workers 16.
2458 2019-01-11  Tom de Vries  <tdevries@suse.de>
2460         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2461         -foffload=-w.
2462         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2463         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2464         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2465         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2467 2019-01-11  Tom de Vries  <tdevries@suse.de>
2469         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2470         test.
2472 2019-01-10  Nathan Sidwell  <nathan@acm.org>
2473             Julian Brown  <julian@codesourcery.com>
2475         PR lto/71959
2476         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2477         * testsuite/libgomp.oacc-c++/pr71959.C: New.
2479 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2481         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2482         and paste code.
2484 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2486         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
2487         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2488         write.
2490 2019-01-09  Tom de Vries  <tdevries@suse.de>
2492         PR target/88756
2493         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2494         #define instead of "const int".
2495         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2496         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2497         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2498         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2500 2019-01-09  Tom de Vries  <tdevries@suse.de>
2502         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2503         one worker.
2505 2019-01-07  Tom de Vries  <tdevries@suse.de>
2507         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2508         GOMP_OPENACC_DIM argument.
2510 2019-01-03  Tom de Vries  <tdevries@suse.de>
2512         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2513         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2515 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
2517         Update copyright years.
2519 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
2521         * libgomp.texi: Bump @copying's copyright year.
2523 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
2525         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2526         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2527         (GOACC_declare): Redefine the "device" argument to "flags".
2529 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
2530             Cesar Philippidis  <cesar@codesourcery.com>
2532         * target.c (struct gomp_coalesce_chunk): New structure.
2533         (struct gomp_coalesce_buf): Update the chunks member to use that
2534         type.  Adjust all users.
2536 2018-12-19  Tom de Vries  <tdevries@suse.de>
2538         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2539         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2540         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2542 2018-12-19  Tom de Vries  <tdevries@suse.de>
2544         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2545         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2546         gcc/testsuite/gcc.dg/goacc.
2547         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2549 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
2550             Chung-Lin Tang  <cltang@codesourcery.com>
2552         * oacc-mem.c (acc_present_or_create): Remove definition and change
2553         to alias of acc_create.
2554         (acc_present_or_copyin): Remove definition and change to alias of
2555         acc_copyin.
2556         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2557         of acc_present_or_create.
2558         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2559         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2560         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2561         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2562         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2563         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2564         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2565         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2566         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2567         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2568         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2569         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2570         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2571         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2572         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2573         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2575 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
2577         PR libgomp/88495
2578         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2579         "identical parameters".
2580         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2581         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2583         PR libgomp/88484
2584         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2585         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2587         PR libgomp/88407
2588         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2589         (nvptx_wait_async): Unseen async-argument is a no-op.
2590         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2591         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2592         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2593         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2594         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2595         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2596         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
2597         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2598         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
2600         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2601         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2603 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
2605         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2606         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2607         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2609 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
2611         PR libgomp/88370
2612         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2613         (acc_set_cuda_stream): Clarify.
2614         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2615         "async_valid_p".
2616         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2617         acc_async_sync".
2618         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2619         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2620         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2621         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2623 2018-12-14  Tom de Vries  <tdevries@suse.de>
2625         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2626         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2627         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2628         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2629         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2631 2018-12-13  Tom de Vries  <tdevries@suse.de>
2633         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2634         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2635         * fortran.c (omp_display_affinity_): ... here.
2636         * libgomp.h (gomp_print_string): Declare.
2637         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
2638         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2639         write.
2641 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
2643         PR libgomp/88460
2644         * testsuite/libgomp.c++/for-24.C (results): Include it in
2645         omp declare target region.
2646         (main): Use map (always, tofrom: results) instead of
2647         map (tofrom: results).
2649 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
2651         PR fortran/88463
2652         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2653         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2655         * testsuite/libgomp.c-c++-common/for-16.c: New test.
2657 2018-12-12  Andreas Schwab  <schwab@suse.de>
2659         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2660         clobbered.
2662 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
2664         PR fortran/88411
2665         * testsuite/libgomp.fortran/async_io_8.f90: New test.
2667 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
2668             Jakub Jelinek  <jakub@redhat.com>
2670         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2671         devicep->host2dev_func.
2673 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
2675         PR libgomp/87995
2676         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2677         tls_runtime effective target.
2678         (t): New threadprivate variable.
2679         (main): Set t in threads which execute iterations of the worksharing
2680         loop.  Propagate that to the task after the loop and don't abort
2681         if the current taskgroup hasn't been cancelled.
2683 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
2685         * testsuite/libgomp.c/task-reduction-3.c: New test.
2687         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2689 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
2691         PR libgomp/88288
2692         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2693         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2695 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
2697         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2699 2018-10-19  Richard Biener  <rguenther@suse.de>
2701         PR tree-optimization/88182
2702         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2704 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
2706         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2707         (RUNTEST): Don't define.
2708         (RUNTESTDEFAULTFLAGS): Add.
2709         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2710         (distclean-am): Depend on distclean-DEJAGNU.
2711         (check-am): If -j% option is present in MFLAGS and if
2712         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2713         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2714         * testsuite/Makefile.in: Regenerated.
2716 2018-11-26  Richard Biener  <rguenther@suse.de>
2718         PR tree-optimization/88182
2719         * testsuite/libgomp.c++/pr88182.C: New testcase.
2721 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
2723         PR bootstrap/88106
2724         * config/mingw32/affinity-fmt.c: New file.
2726 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
2728         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2729         (gomp_display_affinity): Use __builtin_choose_expr to handle
2730         properly handle argument having integral, or pointer or some other
2731         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
2732         with uint64_t type instead of %llx and unsigned long long.
2734         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2735         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2737 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2739         * affinity.c: Include <string.h>, <stdio.h>.
2740         (gomp_display_affinity_place): Remove cpusetp.
2741         * teams.c: Include <limits.h>.
2743 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
2745         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2746         in_reduction clause for s[0].
2748         * affinity.c (gomp_display_affinity_place): New function.
2749         * affinity-fmt.c: New file.
2750         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2751         * config/linux/affinity.c (gomp_display_affinity_place): New function.
2752         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2753         Move these functions to ...
2754         * config/nvptx/teams.c: ... here.  New file.
2755         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2756         New functions.
2757         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2758         functions.
2759         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2760         and _aligned_malloc.
2761         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2762         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2763         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2764         gomp_affinity_format_len): New variables.
2765         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2766         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
2767         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2768         modifiers.  Display (non-default) chunk sizes.  Print
2769         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2770         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
2771         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2772         * fortran.c: Include stdio.h and string.h.
2773         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2774         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2775         (omp_set_affinity_format_, omp_get_affinity_format_,
2776         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2777         omp_pause_resource_all_): New functions.
2778         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2779         switch.
2780         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2781         functions to ...
2782         * teams.c: ... here.  New file.
2783         * libgomp_g.h: Include gstdint.h.
2784         (GOMP_loop_nonmonotonic_runtime_start,
2785         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2786         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2787         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2788         GOMP_parallel_loop_nonmonotonic_runtime,
2789         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2790         GOMP_loop_ull_nonmonotonic_runtime_start,
2791         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2792         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2793         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2794         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2795         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2796         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2797         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2798         GOMP_teams_reg): Declare.
2799         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2800         gomp_aligned_alloc uses fallback implementation.
2801         (gomp_aligned_alloc, gomp_aligned_free): Declare.
2802         (enum gomp_schedule_type): Add GFS_MONOTONIC.
2803         (struct gomp_doacross_work_share): Add extra field.
2804         (struct gomp_work_share): Add task_reductions field.
2805         (struct gomp_taskgroup): Add workshare and reductions fields.
2806         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2807         (gomp_thread_handle): New typedef.
2808         (gomp_display_affinity_place, gomp_set_affinity_format,
2809         gomp_display_string, gomp_display_affinity,
2810         gomp_display_affinity_thread): Declare.
2811         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2812         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2813         gomp_workshare_task_reduction_register): Declare.
2814         (gomp_team_start): Add taskgroup argument.
2815         (gomp_pause_host): Declare.
2816         (gomp_init_work_share, gomp_work_share_start): Change bool argument
2817         to size_t.
2818         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2819         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2820         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2821         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2822         GOMP_loop_ull_doacross_start,
2823         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2824         GOMP_loop_maybe_nonmonotonic_runtime_next,
2825         GOMP_loop_maybe_nonmonotonic_runtime_start,
2826         GOMP_loop_nonmonotonic_runtime_next,
2827         GOMP_loop_nonmonotonic_runtime_start,
2828         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2829         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2830         GOMP_loop_ull_nonmonotonic_runtime_next,
2831         GOMP_loop_ull_nonmonotonic_runtime_start,
2832         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2833         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2834         GOMP_taskgroup_reduction_register,
2835         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2836         GOMP_teams_reg and GOMP_taskwait_depend.
2837         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2838         omp_{capture,display}_affinity{,_}, and
2839         omp_[gs]et_affinity_format{,_}.
2840         * loop.c: Include string.h.
2841         (GOMP_loop_runtime_next): Add ialias.
2842         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2843         (gomp_loop_static_start, gomp_loop_dynamic_start,
2844         gomp_loop_guided_start, gomp_loop_ordered_static_start,
2845         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2846         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2847         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2848         or gomp_doacross_init callers.
2849         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2850         GOMP_loop_doacross_start): New functions.
2851         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2852         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2853         Mask off GFS_MONOTONIC bit.
2854         (GOMP_loop_maybe_nonmonotonic_runtime_next,
2855         GOMP_loop_maybe_nonmonotonic_runtime_start,
2856         GOMP_loop_nonmonotonic_runtime_next,
2857         GOMP_loop_nonmonotonic_runtime_start,
2858         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2859         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2860         functions.
2861         (gomp_parallel_loop_start): Pass NULL as taskgroup to
2862         gomp_team_start.
2863         * loop_ull.c: Include string.h.
2864         (GOMP_loop_ull_runtime_next): Add ialias.
2865         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2866         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2867         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2868         gomp_loop_ull_ordered_dynamic_start,
2869         gomp_loop_ull_ordered_guided_start,
2870         gomp_loop_ull_doacross_static_start,
2871         gomp_loop_ull_doacross_dynamic_start,
2872         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2873         and gomp_doacross_ull_init callers.
2874         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2875         GOMP_loop_ull_doacross_start): New functions.
2876         (GOMP_loop_ull_runtime_start,
2877         GOMP_loop_ull_ordered_runtime_start,
2878         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2879         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2880         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2881         GOMP_loop_ull_nonmonotonic_runtime_next,
2882         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2883         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2884         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2885         (omp_pause_resource_t, omp_depend_t): New typedefs.
2886         (enum omp_lock_hint_t): Renamed to ...
2887         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
2888         enumerators using numbers and omp_lock_hint_* as their aliases.
2889         (omp_lock_hint_t): New typedef.  Rename to ...
2890         (omp_sync_hint_t): ... this.
2891         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2892         omp_sync_hint_t instead of omp_lock_hint_t.
2893         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2894         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2895         Declare.
2896         (omp_target_is_present, omp_target_disassociate_ptr):
2897         Change first argument from void * to const void *.
2898         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2899         from void * to const void *.
2900         (omp_target_associate_ptr): Change first and second arguments from
2901         void * to const void *.
2902         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2903         omp_pause_hard): New parameters.
2904         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2905         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2906         New interfaces.
2907         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2908         omp_pause_hard): New parameters.
2909         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2910         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2911         New externals.
2912         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2913         EXTRA argument.  If not needed to prepare array, if extra is 0,
2914         clear ws->doacross, otherwise allocate just doacross structure and
2915         extra payload.  If array is needed, allocate also extra payload.
2916         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2917         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2918         doacross == NULL.
2919         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2920         gomp_team_start.
2921         (GOMP_parallel): Likewise.  Formatting fix.
2922         (GOMP_parallel_reductions): New function.
2923         (GOMP_cancellation_point): If taskgroup has workshare
2924         flag set, check cancelled of prev taskgroup if any.
2925         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2926         on prev taskgroup if any.
2927         * sections.c: Include string.h.
2928         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2929         (GOMP_sections_start): Adjust gomp_work_share_start caller.
2930         (GOMP_sections2_start): New function.
2931         (GOMP_parallel_sections_start, GOMP_parallel_sections):
2932         Pass NULL as taskgroup to gomp_team_start.
2933         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2934         gomp_work_share_start callers.
2935         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2936         If taskgroup has workshare flag set, check cancelled on prev
2937         taskgroup if any.  Guard all cancellation tests with
2938         gomp_cancel_var test.
2939         (omp_target_is_present, omp_target_disassociate_ptr):
2940         Change ptr argument from void * to const void *.
2941         (omp_target_memcpy): Change src argument from void * to const void *.
2942         (omp_target_memcpy_rect): Likewise.
2943         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
2944         instead of char * where needed.
2945         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2946         from void * to const void *.
2947         (omp_pause_resource, omp_pause_resource_all): New functions.
2948         * task.c (gomp_task_handle_depend): Handle new depend array format
2949         in addition to the old.  Handle mutexinoutset kinds the same as
2950         inout for now, handle unspecified kinds.
2951         (gomp_create_target_task): If taskgroup has workshare flag set, check
2952         cancelled on prev taskgroup if any.  Guard all cancellation tests with
2953         gomp_cancel_var test.  Handle new depend array format count in
2954         addition to the old.
2955         (GOMP_task): Likewise.  Adjust function comment.
2956         (gomp_task_run_pre): If taskgroup has workshare flag set, check
2957         cancelled on prev taskgroup if any.  Guard all cancellation tests with
2958         gomp_cancel_var test.
2959         (GOMP_taskwait_depend): New function.
2960         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2961         format in addition to the old.  Handle mutexinoutset kinds the same as
2962         inout for now, handle unspecified kinds.  Fix a function comment typo.
2963         (gomp_taskgroup_init): New function.
2964         (GOMP_taskgroup_start): Use it.
2965         (gomp_reduction_register, gomp_create_artificial_team,
2966         GOMP_taskgroup_reduction_register,
2967         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2968         gomp_parallel_reduction_register,
2969         gomp_workshare_task_reduction_register,
2970         gomp_workshare_taskgroup_start,
2971         GOMP_workshare_task_reduction_unregister): New functions.
2972         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2973         check cancelled on prev taskgroup if any.  Guard all cancellation
2974         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
2975         by calling GOMP_taskgroup_reduction_register.
2976         * team.c (gomp_thread_attr): Remove comment.
2977         (struct gomp_thread_start_data): Add handle field.
2978         (gomp_thread_start): Call pthread_detach.
2979         (gomp_new_team): Adjust gomp_init_work_share caller.
2980         (gomp_free_pool_helper): Call pthread_detach.
2981         (gomp_team_start): Add taskgroup argument, initialize implicit
2982         tasks' taskgroup field to that.  Don't call
2983         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
2984         (gomp_team_end): Determine nesting by thr->ts.level != 0
2985         rather than thr->ts.team != NULL.
2986         (gomp_pause_pool_helper, gomp_pause_host): New functions.
2987         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2988         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2989         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2990         if more than 1 allocate also extra payload at the end of array.  Never
2991         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2992         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2993         return true instead of ws.
2994         * Makefile.in: Regenerated.
2995         * configure: Regenerated.
2996         * config.h.in: Regenerated.
2997         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2998         in some cases.
2999         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
3000         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
3001         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
3002         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
3003         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
3004         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
3005         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
3006         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
3007         * testsuite/libgomp.c-c++-common/for-10.c: New test.
3008         * testsuite/libgomp.c-c++-common/for-11.c: New test.
3009         * testsuite/libgomp.c-c++-common/for-12.c: New test.
3010         * testsuite/libgomp.c-c++-common/for-13.c: New test.
3011         * testsuite/libgomp.c-c++-common/for-14.c: New test.
3012         * testsuite/libgomp.c-c++-common/for-15.c: New test.
3013         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
3014         define a different N(test), don't define N(f0) to N(f14), but instead
3015         define N(f20) to N(f34) using != comparisons.
3016         * testsuite/libgomp.c-c++-common/for-7.c: New test.
3017         * testsuite/libgomp.c-c++-common/for-8.c: New test.
3018         * testsuite/libgomp.c-c++-common/for-9.c: New test.
3019         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
3020         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
3021         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
3022         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
3023         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
3024         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
3025         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
3026         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
3027         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
3028         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
3029         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
3030         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
3031         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
3032         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
3033         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
3034         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3035         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3036         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3037         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3038         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3039         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3040         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3041         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3042         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3043         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3044         * testsuite/libgomp.c++/depend-1.C: New test.
3045         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3046         * testsuite/libgomp.c++/depobj-1.C: New test.
3047         * testsuite/libgomp.c++/for-16.C: New test.
3048         * testsuite/libgomp.c++/for-21.C: New test.
3049         * testsuite/libgomp.c++/for-22.C: New test.
3050         * testsuite/libgomp.c++/for-23.C: New test.
3051         * testsuite/libgomp.c++/for-24.C: New test.
3052         * testsuite/libgomp.c++/for-25.C: New test.
3053         * testsuite/libgomp.c++/for-26.C: New test.
3054         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3055         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3056         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3057         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3058         * testsuite/libgomp.c++/task-reduction-10.C: New test.
3059         * testsuite/libgomp.c++/task-reduction-11.C: New test.
3060         * testsuite/libgomp.c++/task-reduction-12.C: New test.
3061         * testsuite/libgomp.c++/task-reduction-13.C: New test.
3062         * testsuite/libgomp.c++/task-reduction-14.C: New test.
3063         * testsuite/libgomp.c++/task-reduction-15.C: New test.
3064         * testsuite/libgomp.c++/task-reduction-16.C: New test.
3065         * testsuite/libgomp.c++/task-reduction-17.C: New test.
3066         * testsuite/libgomp.c++/task-reduction-18.C: New test.
3067         * testsuite/libgomp.c++/task-reduction-19.C: New test.
3068         * testsuite/libgomp.c/task-reduction-1.c: New test.
3069         * testsuite/libgomp.c++/task-reduction-1.C: New test.
3070         * testsuite/libgomp.c/task-reduction-2.c: New test.
3071         * testsuite/libgomp.c++/task-reduction-2.C: New test.
3072         * testsuite/libgomp.c++/task-reduction-3.C: New test.
3073         * testsuite/libgomp.c++/task-reduction-4.C: New test.
3074         * testsuite/libgomp.c++/task-reduction-5.C: New test.
3075         * testsuite/libgomp.c++/task-reduction-6.C: New test.
3076         * testsuite/libgomp.c++/task-reduction-7.C: New test.
3077         * testsuite/libgomp.c++/task-reduction-8.C: New test.
3078         * testsuite/libgomp.c++/task-reduction-9.C: New test.
3079         * testsuite/libgomp.c/teams-1.c: New test.
3080         * testsuite/libgomp.c/teams-2.c: New test.
3081         * testsuite/libgomp.c/thread-limit-4.c: New test.
3082         * testsuite/libgomp.c/thread-limit-5.c: New test.
3083         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3085 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
3087         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3088         acc_memcpy_to/from_device functions, now with async parameter.
3089         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3090         (acc_memcpy_from_device): Likewise.
3091         (acc_memcpy_to_device_async): New API function.
3092         (acc_memcpy_from_device_async): Likewise.
3093         (present_create_copy): Add async parameter and async setting/unsetting.
3094         (acc_create): Adjust present_create_copy call.
3095         (acc_copyin): Likewise.
3096         (acc_present_or_create): Likewise.
3097         (acc_present_or_copyin): Likewise.
3098         (acc_create_async): New API function.
3099         (acc_copyin_async): New API function.
3100         (delete_copyout): Add async parameter and async setting/unsetting.
3101         (acc_delete): Adjust delete_copyout call.
3102         (acc_copyout): Likewise.
3103         (acc_delete_async): New API function.
3104         (acc_copyout_async): Likewise.
3105         (update_dev_host): Add async parameter and async setting/unsetting.
3106         (acc_update_device): Adjust update_dev_host call.
3107         (acc_update_self): Likewise.
3108         (acc_update_device_async): New API function.
3109         (acc_update_self_async): Likewise.
3110         * openacc.h (acc_copyin_async): Declare new API function.
3111         (acc_create_async): Likewise.
3112         (acc_copyout_async): Likewise.
3113         (acc_delete_async): Likewise.
3114         (acc_update_device_async): Likewise.
3115         (acc_update_self_async): Likewise.
3116         (acc_memcpy_to_device_async): Likewise.
3117         (acc_memcpy_from_device_async): Likewise.
3118         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3119         (acc_copyin_async_64_h): New subroutine.
3120         (acc_copyin_async_array_h): New subroutine.
3121         (acc_create_async_32_h): New subroutine.
3122         (acc_create_async_64_h): New subroutine.
3123         (acc_create_async_array_h): New subroutine.
3124         (acc_copyout_async_32_h): New subroutine.
3125         (acc_copyout_async_64_h): New subroutine.
3126         (acc_copyout_async_array_h): New subroutine.
3127         (acc_delete_async_32_h): New subroutine.
3128         (acc_delete_async_64_h): New subroutine.
3129         (acc_delete_async_array_h): New subroutine.
3130         (acc_update_device_async_32_h): New subroutine.
3131         (acc_update_device_async_64_h): New subroutine.
3132         (acc_update_device_async_array_h): New subroutine.
3133         (acc_update_self_async_32_h): New subroutine.
3134         (acc_update_self_async_64_h): New subroutine.
3135         (acc_update_self_async_array_h): New subroutine.
3136         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3137         (acc_copyin_async_64_h): New subroutine.
3138         (acc_copyin_async_array_h): New subroutine.
3139         (acc_create_async_32_h): New subroutine.
3140         (acc_create_async_64_h): New subroutine.
3141         (acc_create_async_array_h): New subroutine.
3142         (acc_copyout_async_32_h): New subroutine.
3143         (acc_copyout_async_64_h): New subroutine.
3144         (acc_copyout_async_array_h): New subroutine.
3145         (acc_delete_async_32_h): New subroutine.
3146         (acc_delete_async_64_h): New subroutine.
3147         (acc_delete_async_array_h): New subroutine.
3148         (acc_update_device_async_32_h): New subroutine.
3149         (acc_update_device_async_64_h): New subroutine.
3150         (acc_update_device_async_array_h): New subroutine.
3151         (acc_update_self_async_32_h): New subroutine.
3152         (acc_update_self_async_64_h): New subroutine.
3153         (acc_update_self_async_array_h): New subroutine.
3154         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3155         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3156         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3157         acc_memcpy_to_device_async*, acc_update_device_async*, and
3158         acc_update_self_async* entries.
3159         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3160         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3161         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3163 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
3165         PR bootstrap/82856
3166         * Makefile.am: Include multilib.am
3167         (AUTOMAKE_OPTIONS): Add info-in-builddir.
3168         (CLEANFILES): Remove libgomp.info.
3169         * configure.ac: Remove AC_PREREQ.
3170         * testsuite/Makefile.am (RUNTEST): Remove quotes.
3171         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3172         Regenerate.
3174 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
3175             Julian Brown  <julian@codesourcery.com>
3177         * testsuite/libgomp.oacc-c++/this.C: New.
3179 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
3181         * plugin/plugin-nvptx.c (struct cuda_map): New.
3182         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3183         h_tail with (cuda_map *) map.
3184         (cuda_map_create): New function.
3185         (cuda_map_destroy): New function.
3186         (map_init): Update to use a linked list of cuda_map objects.
3187         (map_fini): Likewise.
3188         (map_pop): Likewise.
3189         (map_push): Likewise.  Return CUdeviceptr instead of void.
3190         (init_streams_for_device): Remove stales references to ptx_stream
3191         members.
3192         (select_stream_for_async): Likewise.
3193         (nvptx_exec): Update call to map_init.
3195 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
3196             Julian Brown  <julian@codesourcery.com>
3198         PR middle-end/86336
3199         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3201 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
3202         Thomas Koenig <tkoenig@gcc.gnu.org>
3204         PR fortran/25829
3205         * testsuite/libgomp.fortran/async_io_1.f90: New test.
3206         * testsuite/libgomp.fortran/async_io_2.f90: New test.
3207         * testsuite/libgomp.fortran/async_io_3.f90: New test.
3208         * testsuite/libgomp.fortran/async_io_4.f90: New test.
3209         * testsuite/libgomp.fortran/async_io_5.f90: New test.
3210         * testsuite/libgomp.fortran/async_io_6.f90: New test.
3211         * testsuite/libgomp.fortran/async_io_7.f90: New test.
3213 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
3214             Tom de Vries  <tdevries@suse.de>
3216         PR target/85590
3217         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3218         (cuOccupancyMaxPotentialBlockSize): Declare.
3219         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3220         CUDA_ONE_CALL_MAYBE_NULL.
3221         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3222         CUoccupancyB2DSize and declare
3223         cuOccupancyMaxPotentialBlockSize.
3224         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3225         default num_gangs and num_workers when the driver supports it.
3227 2018-08-08  Tom de Vries  <tdevries@suse.de>
3229         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3230         CUDA_ONE_CALL_MAYBE_NULL.
3231         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3232         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3233         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3234         are not found.
3236 2018-08-08  Tom de Vries  <tdevries@suse.de>
3238         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3239         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3240         present.
3242 2018-08-08  Tom de Vries  <tdevries@suse.de>
3244         * plugin/plugin-nvptx.c
3245         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3246         (nvptx_open_device): Use
3247         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3249 2018-08-08  Tom de Vries  <tdevries@suse.de>
3251         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3252         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
3254 2018-08-07  Tom de Vries  <tdevries@suse.de>
3256         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3257         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3258         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
3259         corresponding call in CUDA_ONE_CALL.  Add def/undef of
3260         CUDA_ONE_CALL_MAYBE_NULL.
3261         (CUDA_CALL_EXISTS): Define.
3263 2018-08-07  Tom de Vries  <tdevries@suse.de>
3265         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3266         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3267         corresponding undefs right after.
3269 2018-08-04  Tom de Vries  <tdevries@suse.de>
3271         * plugin/configfrag.ac: For --without-cuda-driver, set
3272         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
3273         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3274         * configure: Regenerate.
3276 2018-08-02  Tom de Vries  <tdevries@suse.de>
3278         PR target/86660
3279         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3280         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3281         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3282         Same.
3283         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3284         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3285         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3287 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
3288             Thomas Schwinge <thomas@codesourcery.com>
3290         * config/nvptx/oacc-parallel.c: Truncate.
3292 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
3293             James Norris <jnorris@codesourcery.com>
3295         * plugin/plugin-nvptx.c (struct map): Removed.
3296         (map_init, map_pop): Remove use of struct map.
3297         (map_push): Likewise and change argument list.
3298         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3300 2018-08-01  Tom de Vries  <tdevries@suse.de>
3302         * plugin/cuda-lib.def: New file.  Factor out of ...
3303         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3304         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3305         using CUDA_CALLS.
3307 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3309         Revert 'AsyncI/O patch committed'.
3310         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
3311                 Thomas Koenig <tkoenig@gcc.gnu.org>
3313         PR fortran/25829
3314         * testsuite/libgomp.fortran/async_io_1.f90: New test.
3315         * testsuite/libgomp.fortran/async_io_2.f90: New test.
3316         * testsuite/libgomp.fortran/async_io_3.f90: New test.
3317         * testsuite/libgomp.fortran/async_io_4.f90: New test.
3318         * testsuite/libgomp.fortran/async_io_5.f90: New test.
3319         * testsuite/libgomp.fortran/async_io_6.f90: New test.
3320         * testsuite/libgomp.fortran/async_io_7.f90: New test.
3322 2018-07-30  Tom de Vries  <tdevries@suse.de>
3324         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3325         (nvptx_exec): Ensure worker and vector default dims don't exceed
3326         targ_fn->max_threads_per_block.
3328 2018-07-30  Tom de Vries  <tdevries@suse.de>
3330         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3331         (nvptx_open_device): Init default_dims for device.
3332         (nvptx_exec): Use default_dims from device.
3334 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
3336         PR testsuite/86660
3337         * testsuite/libgomp.c++/for-15.C (results): Include it in
3338         omp declare target region.
3339         (main): Use map (always, tofrom: results) instead of
3340         map (tofrom: results).
3342         PR middle-end/86660
3343         * testsuite/libgomp.c/pr86660.c: New test.
3345 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
3346             Tom de Vries  <tdevries@suse.de>
3348         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3349         sufficient resources to launch a kernel, and give a hint on how to fix
3350         it.
3352 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
3353             Tom de Vries  <tdevries@suse.de>
3355         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3356         max_threads_per_block and max_threads_per_multiprocessor fields.
3357         (nvptx_open_device): Initialize new fields.
3358         (nvptx_exec): Use num_sms, and new fields.
3360 2018-07-26  Tom de Vries  <tdevries@suse.de>
3362         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3363         to correct locations.  Remove xfail.
3365 2018-07-26  Tom de Vries  <tdevries@suse.de>
3367         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3368         acc_wait.  Move acc_async_test calls to correct locations.  Remove
3369         xfail.
3371 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
3372         Thomas Koenig <tkoenig@gcc.gnu.org>
3374         PR fortran/25829
3375         * testsuite/libgomp.fortran/async_io_1.f90: New test.
3376         * testsuite/libgomp.fortran/async_io_2.f90: New test.
3377         * testsuite/libgomp.fortran/async_io_3.f90: New test.
3378         * testsuite/libgomp.fortran/async_io_4.f90: New test.
3379         * testsuite/libgomp.fortran/async_io_5.f90: New test.
3380         * testsuite/libgomp.fortran/async_io_6.f90: New test.
3381         * testsuite/libgomp.fortran/async_io_7.f90: New test.
3383 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
3385         PR middle-end/86542
3386         * testsuite/libgomp.c++/pr86542.C: New test.
3388         PR middle-end/86539
3389         * testsuite/libgomp.c++/pr86539.C: New test.
3391 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
3393         PR c++/86443
3394         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3395         (results): Make sure the variable is not inside declare target region.
3396         (qux): Remove unused function.
3398 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
3400         PR c++/86443
3401         * testsuite/libgomp.c++/for-15.C: New test.
3403 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
3405         PR c++/86291
3406         * testsuite/libgomp.c++/pr86291.C: New test.
3408 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
3410         * libgomp.texi (Top): Move www.openmp.org to https.
3411         (Enabling OpenMP): Ditto.
3412         (omp_get_active_level): Ditto.
3413         (omp_get_ancestor_thread_num): Ditto.
3414         (omp_get_cancellation): Ditto.
3415         (omp_get_default_device): Ditto.
3416         (omp_get_dynamic): Ditto.
3417         (omp_get_level): Ditto.
3418         (omp_get_max_active_levels): Ditto.
3419         (omp_get_max_task_priority): Ditto.
3420         (omp_get_max_threads): Ditto.
3421         (omp_get_nested): Ditto.
3422         (omp_get_num_devices): Ditto.
3423         (omp_get_num_procs): Ditto.
3424         (omp_get_num_teams): Ditto.
3425         (omp_get_num_threads): Ditto.
3426         (omp_get_proc_bind): Ditto.
3427         (omp_get_schedule): Ditto.
3428         (omp_get_team_num): Ditto.
3429         (omp_get_team_size): Ditto.
3430         (omp_get_thread_limit): Ditto.
3431         (omp_get_thread_num): Ditto.
3432         (omp_in_parallel): Ditto.
3433         (omp_in_final): Ditto.
3434         (omp_is_initial_device): Ditto.
3435         (omp_set_default_device): Ditto.
3436         (omp_set_dynamic): Ditto.
3437         (omp_set_max_active_levels): Ditto.
3438         (omp_set_nested): Ditto.
3439         (omp_set_num_threads): Ditto.
3440         (omp_set_schedule): Ditto.
3441         (omp_init_lock): Ditto.
3442         (omp_set_lock): Ditto.
3443         (omp_test_lock): Ditto.
3444         (omp_unset_lock): Ditto.
3445         (omp_destroy_lock): Ditto.
3446         (omp_init_nest_lock): Ditto.
3447         (omp_set_nest_lock): Ditto.
3448         (omp_test_nest_lock): Ditto.
3449         (omp_unset_nest_lock): Ditto.
3450         (omp_destroy_nest_lock): Ditto.
3451         (omp_get_wtick): Ditto.
3452         (omp_get_wtime): Ditto.
3453         (OMP_CANCELLATION): Ditto.
3454         (OMP_DISPLAY_ENV): Ditto.
3455         (OMP_DEFAULT_DEVICE): Ditto.
3456         (OMP_DYNAMIC): Ditto.
3457         (OMP_MAX_ACTIVE_LEVELS): Ditto.
3458         (OMP_MAX_TASK_PRIORITY): Ditto.
3459         (OMP_NESTED): Ditto.
3460         (OMP_NUM_THREADS): Ditto.
3461         (OMP_PROC_BIND): Ditto.
3462         (OMP_PLACES): Ditto.
3463         (OMP_STACKSIZE): Ditto.
3464         (OMP_SCHEDULE): Ditto.
3465         (OMP_THREAD_LIMIT): Ditto.
3466         (OMP_WAIT_POLICY): Ditto.
3468 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
3469             James Norris  <jnorris@codesourcery.com>
3470             Julian Brown  <julian@codesourcery.com>
3471             Thomas Schwinge  <thomas@codesourcery.com>
3472             Tom de Vries  <tom@codesourcery.com>
3474         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3475         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3476         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3477         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3478         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3479         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3480         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3481         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3482         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3483         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3484         Likewise.
3485         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3486         Likewise.
3487         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3488         Likewise.
3489         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3490         Likewise.
3491         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3492         Likewise.
3493         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3494         Likewise.
3495         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3496         Likewise.
3497         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3498         Likewise.
3499         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3500         Likewise.
3501         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3502         Likewise.
3503         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3504         Likewise.
3505         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3506         Likewise.
3507         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3508         Likewise.
3509         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3510         Likewise.
3511         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3512         Likewise.
3513         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3514         Likewise.
3515         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3516         Likewise.
3517         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3518         Likewise.
3519         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3520         Likewise.
3521         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3522         Likewise.
3523         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3524         Likewise.
3525         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3526         Likewise.
3527         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3528         Likewise.
3529         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3530         Likewise.
3531         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3532         Likewise.
3533         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3534         Likewise.
3535         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3536         Likewise.
3537         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3538         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3539         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3540         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3541         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3542         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3543         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3544         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3545         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3546         Likewise.
3547         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3548         Likewise.
3549         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3550         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3551         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3552         Likewise.
3553         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3554         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3555         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3556         Likewise.
3557         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3558         Likewise.
3559         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3560         Likewise.
3561         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3562         Likewise.
3563         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3564         Likewise.
3565         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3566         Likewise.
3567         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3568         Likewise.
3569         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3570         Likewise.
3571         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3572         Likewise.
3573         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3574         Likewise.
3575         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3576         Likewise.
3577         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3578         Likewise.
3579         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3580         Likewise.
3581         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3582         Likewise.
3583         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3584         Likewise.
3585         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3586         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3587         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3588         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3589         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3590         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3591         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3593 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
3594             Thomas Schwinge <thomas@codesourcery.com>
3595             Cesar Philippidis  <cesar@codesourcery.com>
3597         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3598         (gomp_acc_remove_pointer): Update declaration.
3599         (gomp_acc_declare_allocate): Declare.
3600         (gomp_remove_var): Declare.
3601         * libgomp.map (OACC_2.5): Define.
3602         * oacc-mem.c (acc_map_data): Update refcount.
3603         (acc_unmap_data): Likewise.
3604         (present_create_copy): Likewise.
3605         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3606         (acc_copyin): Likewise.
3607         (FLAG_FINALIZE): Define.
3608         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3609         (acc_delete_finalize): New function.
3610         (acc_delete_finalize_async): New function.
3611         (acc_copyout_finalize): New function.
3612         (acc_copyout_finalize_async): New function.
3613         (gomp_acc_insert_pointer): Update refcounts.
3614         (gomp_acc_remove_pointer): Return if data is not present on the
3615         accelerator.
3616         * oacc-parallel.c (find_pset): Rename to find_pointer.
3617         (find_pointer): Add support for GOMP_MAP_POINTER.
3618         (handle_ftn_pointers): New function.
3619         (GOACC_parallel_keyed): Update refcounts of variables.
3620         (GOACC_enter_exit_data): Add support for finalized data mappings.
3621         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3622         of fortran arrays.
3623         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3624         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3625         for GOMP_MAP_FORCE_FROM.
3626         * openacc.f90 (module openacc_internal): Add
3627         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3628         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3629         acc_copyout_finalize and acc_delete_finalize.
3630         (acc_copyout_finalize_32_h): New subroutine.
3631         (acc_copyout_finalize_64_h): New subroutine.
3632         (acc_copyout_finalize_array_h): New subroutine.
3633         (acc_delete_finalize_32_h): New subroutine.
3634         (acc_delete_finalize_64_h): New subroutine.
3635         (acc_delete_finalize_array_h): New subroutine.
3636         * openacc.h (acc_copyout_finalize): Declare.
3637         (acc_copyout_finalize_async): Declare.
3638         (acc_delete_finalize): Declare.
3639         (acc_delete_finalize_async): Declare.
3640         * openacc_lib.h (acc_copyout_finalize): New interface.
3641         (acc_delete_finalize): New interface.
3642         * target.c (gomp_map_vars): Update dynamic_refcount.
3643         (gomp_remove_var): New function.
3644         (gomp_unmap_vars): Use it.
3645         (gomp_unload_image_from_device): Likewise.
3646         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3647         case to utilize OpenACC 2.5 data clause semantics.
3648         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3649         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3650         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3651         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3652         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3653         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3654         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3655         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3656         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3657         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3658         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3659         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3660         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3661         utilize OpenACC 2.5 data clause semantics.
3662         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3663         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3664         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3665         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3666         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3667         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3668         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3669         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3670         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3672 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
3674         PR fortran/85841
3675         PR testsuite/85865
3676         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3677         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3678         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3679         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3680         * testsuite/libgomp.fortran/task2.f90: Ditto.
3681         * testsuite/libgomp.fortran/vla1.f90: Ditto.
3682         * testsuite/libgomp.fortran/vla2.f90: Ditto.
3683         * testsuite/libgomp.fortran/vla3.f90: Ditto.
3684         * testsuite/libgomp.fortran/vla4.f90: Ditto.
3685         * testsuite/libgomp.fortran/vla5.f90: Ditto.
3686         * testsuite/libgomp.fortran/vla6.f90: Ditto.
3687         * testsuite/libgomp.fortran/vla8.f90: Ditto.
3688         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3689         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3691 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
3693         PR c++/85782
3694         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3696 2018-05-09  Tom de Vries  <tom@codesourcery.com>
3698         PR libgomp/82901
3699         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3700         to GOACC_enter_exit_data.
3702 2018-05-09  Tom de Vries  <tom@codesourcery.com>
3704         PR libgomp/83792
3705         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3706         (async_synchronous_p): New function.
3707         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3708         async_valid_p.
3709         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3710         async_valid_stream_id_p.
3711         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3712         * oacc-parallel.c (GOACC_parallel_keyed): Same.
3714 2018-05-07  Tom de Vries  <tom@codesourcery.com>
3716         PR testsuite/85677
3717         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3718         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3720 2018-05-03  Tom de Vries  <tom@codesourcery.com>
3722         PR testsuite/85106
3723         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3724         extra_tool_flags if it contains an -foffload=-fdump-* flag.
3725         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3726         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3728 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3730         PR libgomp/85411
3731         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3732         GOMP_OPENACC_DIM ...
3733         * env.c (parse_gomp_openacc_dim): ... here.  New function.
3734         (initialize_env): Call parse_gomp_openacc_dim.
3735         (goacc_default_dims): Define.
3736         * libgomp.h (goacc_default_dims): Declare.
3737         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3738         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3739         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3740         GOMP_PLUGIN_acc_default_dim.
3741         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3742         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3744 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3746         PR testsuite/83791
3747         * testsuite/libgomp.c++/udr-9.C: Update.
3748         * testsuite/libgomp.c++/atomic-16.C: Remove.
3749         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3750         * testsuite/libgomp.c++/loop-13.C: Remove.
3751         * testsuite/libgomp.c++/loop-14.C: Remove.
3752         * testsuite/libgomp.c++/loop-15.C: Remove.
3753         * testsuite/libgomp.c++/monotonic-1.C: Remove.
3754         * testsuite/libgomp.c++/monotonic-2.C: Remove.
3755         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3756         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3757         * testsuite/libgomp.c++/ordered-1.C: Remove.
3758         * testsuite/libgomp.c++/pr45784.C: Remove.
3759         * testsuite/libgomp.c++/pr64824.C: Remove.
3760         * testsuite/libgomp.c++/pr64868.C: Remove.
3761         * testsuite/libgomp.c++/pr66199-1.C: Remove.
3762         * testsuite/libgomp.c++/pr66199-2.C: Remove.
3763         * testsuite/libgomp.c++/pr66199-3.C: Remove.
3764         * testsuite/libgomp.c++/pr66199-4.C: Remove.
3765         * testsuite/libgomp.c++/pr66199-5.C: Remove.
3766         * testsuite/libgomp.c++/pr66199-6.C: Remove.
3767         * testsuite/libgomp.c++/pr66199-7.C: Remove.
3768         * testsuite/libgomp.c++/pr66199-8.C: Remove.
3769         * testsuite/libgomp.c++/pr66199-9.C: Remove.
3770         * testsuite/libgomp.c++/pr69389.C: Remove.
3771         * testsuite/libgomp.c++/simd10.C: Remove.
3772         * testsuite/libgomp.c++/simd11.C: Remove.
3773         * testsuite/libgomp.c++/simd12.C: Remove.
3774         * testsuite/libgomp.c++/simd13.C: Remove.
3775         * testsuite/libgomp.c++/target-1.C: Remove.
3776         * testsuite/libgomp.c++/target-3.C: Remove.
3777         * testsuite/libgomp.c++/target-4.C: Remove.
3778         * testsuite/libgomp.c++/target-5.C: Remove.
3779         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3780         * testsuite/libgomp.c++/taskloop-1.C: Remove.
3781         * testsuite/libgomp.c++/taskloop-2.C: Remove.
3782         * testsuite/libgomp.c++/taskloop-3.C: Remove.
3783         * testsuite/libgomp.c++/taskloop-4.C: Remove.
3784         * testsuite/libgomp.c++/udr-9.C: Remove.
3785         * testsuite/libgomp.c++/for-10.C: Remove.
3786         * testsuite/libgomp.c++/for-11.C: Remove.
3787         * testsuite/libgomp.c++/for-12.C: Remove.
3788         * testsuite/libgomp.c++/for-13.C: Remove.
3789         * testsuite/libgomp.c++/for-14.C: Remove.
3790         * testsuite/libgomp.c++/for-9.C: Remove.
3791         * testsuite/libgomp.c/atomic-18.c: Move ...
3792         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3793         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3794         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3795         * testsuite/libgomp.c/loop-13.c: Move ...
3796         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3797         * testsuite/libgomp.c/loop-14.c: Move ...
3798         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3799         * testsuite/libgomp.c/loop-15.c: Remove.
3800         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3801         * testsuite/libgomp.c/monotonic-1.c: Move ...
3802         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3803         * testsuite/libgomp.c/monotonic-2.c: Move ...
3804         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3805         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3806         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3807         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3808         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3809         * testsuite/libgomp.c/ordered-4.c: Move ...
3810         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3811         * testsuite/libgomp.c/pr45784.c: Move ...
3812         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3813         * testsuite/libgomp.c/pr64824.c: Move ...
3814         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3815         * testsuite/libgomp.c/pr64868.c: Move ...
3816         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3817         * testsuite/libgomp.c/pr66199-1.c: Move ...
3818         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3819         * testsuite/libgomp.c/pr66199-2.c: Move ...
3820         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3821         * testsuite/libgomp.c/pr66199-3.c: Move ...
3822         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3823         * testsuite/libgomp.c/pr66199-4.c: Move ...
3824         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3825         * testsuite/libgomp.c/pr66199-5.c: Move ...
3826         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3827         * testsuite/libgomp.c/pr66199-6.c: Move ...
3828         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3829         * testsuite/libgomp.c/pr66199-7.c: Move ...
3830         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3831         * testsuite/libgomp.c/pr66199-8.c: Move ...
3832         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3833         * testsuite/libgomp.c/pr66199-9.c: Move ...
3834         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3835         * testsuite/libgomp.c/pr69389.c: Move ...
3836         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3837         * testsuite/libgomp.c/simd-14.c: Move ...
3838         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3839         * testsuite/libgomp.c/simd-15.c: Move ...
3840         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3841         * testsuite/libgomp.c/simd-16.c: Move ...
3842         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3843         * testsuite/libgomp.c/simd-17.c: Move ...
3844         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3845         * testsuite/libgomp.c/target-1.c: Move ...
3846         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3847         * testsuite/libgomp.c/target-10.c: Move ...
3848         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3849         * testsuite/libgomp.c/target-13.c: Move ...
3850         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3851         * testsuite/libgomp.c/target-2.c: Move ...
3852         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3853         * testsuite/libgomp.c/taskgroup-1.c: Move ...
3854         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3855         * testsuite/libgomp.c/taskloop-1.c: Move ...
3856         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3857         * testsuite/libgomp.c/taskloop-2.c: Move ...
3858         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3859         * testsuite/libgomp.c/taskloop-3.c: Move ...
3860         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3861         * testsuite/libgomp.c/taskloop-4.c: Move ...
3862         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3863         * testsuite/libgomp.c/udr-1.c: Move ...
3864         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3865         * testsuite/libgomp.c/for-1.c: Move ...
3866         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3867         * testsuite/libgomp.c/for-1.h: Move ...
3868         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3869         * testsuite/libgomp.c/for-2.c: Move ...
3870         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3871         * testsuite/libgomp.c/for-2.h: Move ...
3872         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3873         * testsuite/libgomp.c/for-3.c: Move ...
3874         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3875         * testsuite/libgomp.c/for-4.c: Move ...
3876         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3877         * testsuite/libgomp.c/for-5.c: Move ...
3878         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3879         * testsuite/libgomp.c/for-6.c: Move ...
3880         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3882 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3884         PR libgomp/82428
3885         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3886         __builtin_goacc_parlevel_{id,size}.
3887         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3888         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3889         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3890         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3891         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3892         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3893         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3894         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3895         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3896         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3897         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3898         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3899         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3900         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3901         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3902         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3903         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3904         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3905         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3906         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3907         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3908         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3909         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3911 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3913         PR testsuite/85106
3914         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3916 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3918         PR testsuite/85106
3919         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3921 2018-04-29  Julian Brown  <julian@codesourcery.com>
3922             Tom de Vries  <tom@codesourcery.com>
3924         PR testsuite/85527
3925         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3926         arbitrary order for iterations of atomic subtract check.
3928 2018-04-28  Tom de Vries  <tom@codesourcery.com>
3930         PR testsuite/85527
3931         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3932         atomic capture results obtained in parallel loop to an array, instead of
3933         to a scalar.
3935 2018-04-26  Tom de Vries  <tom@codesourcery.com>
3937         PR libgomp/84020
3938         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3939         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3940         (process_GOMP_NVPTX_JIT): New function.
3941         (link_ptx): Use process_GOMP_NVPTX_JIT.
3943 2018-04-26  Richard Biener <rguenther@suse.de>
3944             Tom de Vries  <tom@codesourcery.com>
3946         PR lto/85422
3947         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3949 2018-04-26  Tom de Vries  <tom@codesourcery.com>
3951         PR target/85519
3952         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3953         recursion depth from 25 to 23.
3954         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3956 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
3958         * configure: Regenerated.
3960 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
3961             Tom de Vries  <tom@codesourcery.com>
3963         PR target/85445
3964         * testsuite/libgomp.oacc-c++/ref-1.C: New.
3966 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
3968         PR libgomp/85463
3969         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3970         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3971         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3972         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3973         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3974         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3976         PR libfortran/85166
3977         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3978         abort".
3979         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3981 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
3983         * configure: Regenerated.
3985 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
3987         PR jit/85384
3988         * configure: Regenerate.
3990 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
3991             Tom de Vries  <tom@codesourcery.com>
3993         PR middle-end/84955
3994         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3995         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3997 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
3999         PR fortran/83064
4000         PR testsuite/85346
4001         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
4002         test from gfortran.dg to here.
4004 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
4006         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
4007         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
4009 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
4011         PR middle-end/84955
4012         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
4013         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
4015 2018-04-05  Tom de Vries  <tom@codesourcery.com>
4017         PR target/85204
4018         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
4020 2018-03-26  Tom de Vries  <tom@codesourcery.com>
4022         PR tree-optimization/85063
4023         * testsuite/libgomp.c/switch-conversion-2.c: New test.
4024         * testsuite/libgomp.c/switch-conversion.c: New test.
4025         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
4026         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
4028 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
4030         PR fortran/84381
4031         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
4032         call abort by STOP n.
4033         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
4034         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4035         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4036         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4037         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4038         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4039         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4040         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4041         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4042         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4043         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4044         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4045         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4046         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4047         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4048         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4049         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4050         * testsuite/libgomp.fortran/associate1.f90: Likewise.
4051         * testsuite/libgomp.fortran/associate2.f90: Likewise.
4052         * testsuite/libgomp.fortran/associate3.f90: Likewise.
4053         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4054         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4055         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4056         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4057         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4058         * testsuite/libgomp.fortran/character1.f90: Likewise.
4059         * testsuite/libgomp.fortran/character2.f90: Likewise.
4060         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4061         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4062         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4063         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4064         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4065         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4066         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4067         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4068         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4069         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4070         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4071         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4072         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4073         * testsuite/libgomp.fortran/do1.f90: Likewise.
4074         * testsuite/libgomp.fortran/do2.f90: Likewise.
4075         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4076         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4077         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4078         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4079         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4080         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4081         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4082         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4083         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4084         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4085         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4086         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4087         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4088         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4089         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4090         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4091         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4092         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4093         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4094         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4095         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4096         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4097         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4098         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4099         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4100         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4101         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4102         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4103         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4104         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4105         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4106         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4107         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4108         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4109         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4110         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4111         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4112         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4113         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4114         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4115         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4116         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4117         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4118         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4119         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4120         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4121         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4122         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4123         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4124         * testsuite/libgomp.fortran/lib1.f90: Likewise.
4125         * testsuite/libgomp.fortran/lib2.f: Likewise.
4126         * testsuite/libgomp.fortran/lib3.f: Likewise.
4127         * testsuite/libgomp.fortran/lib4.f90: Likewise.
4128         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4129         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4130         * testsuite/libgomp.fortran/nested1.f90: Likewise.
4131         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4132         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4133         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4134         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4135         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4136         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4137         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4138         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4139         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4140         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4141         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4142         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4143         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4144         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4145         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4146         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4147         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4148         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4149         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4150         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4151         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4152         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4153         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4154         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4155         * testsuite/libgomp.fortran/pr25162.f: Likewise.
4156         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4157         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4158         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4159         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4160         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4161         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4162         * testsuite/libgomp.fortran/pr28390.f: Likewise.
4163         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4164         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4165         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4166         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4167         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4168         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4169         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4170         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4171         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4172         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4173         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4174         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4175         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4176         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4177         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4178         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4179         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4180         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4181         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4182         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4183         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4184         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4185         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4186         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4187         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4188         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4189         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4190         * testsuite/libgomp.fortran/reference1.f90: Likewise.
4191         * testsuite/libgomp.fortran/reference2.f90: Likewise.
4192         * testsuite/libgomp.fortran/retval1.f90: Likewise.
4193         * testsuite/libgomp.fortran/retval2.f90: Likewise.
4194         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4195         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4196         * testsuite/libgomp.fortran/simd1.f90: Likewise.
4197         * testsuite/libgomp.fortran/simd2.f90: Likewise.
4198         * testsuite/libgomp.fortran/simd3.f90: Likewise.
4199         * testsuite/libgomp.fortran/simd4.f90: Likewise.
4200         * testsuite/libgomp.fortran/simd5.f90: Likewise.
4201         * testsuite/libgomp.fortran/simd6.f90: Likewise.
4202         * testsuite/libgomp.fortran/simd7.f90: Likewise.
4203         * testsuite/libgomp.fortran/stack.f90: Likewise.
4204         * testsuite/libgomp.fortran/strassen.f90: Likewise.
4205         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4206         * testsuite/libgomp.fortran/tabs2.f: Likewise.
4207         * testsuite/libgomp.fortran/target1.f90: Likewise.
4208         * testsuite/libgomp.fortran/target2.f90: Likewise.
4209         * testsuite/libgomp.fortran/target3.f90: Likewise.
4210         * testsuite/libgomp.fortran/target4.f90: Likewise.
4211         * testsuite/libgomp.fortran/target5.f90: Likewise.
4212         * testsuite/libgomp.fortran/target6.f90: Likewise.
4213         * testsuite/libgomp.fortran/target7.f90: Likewise.
4214         * testsuite/libgomp.fortran/target8.f90: Likewise.
4215         * testsuite/libgomp.fortran/task1.f90: Likewise.
4216         * testsuite/libgomp.fortran/task2.f90: Likewise.
4217         * testsuite/libgomp.fortran/task3.f90: Likewise.
4218         * testsuite/libgomp.fortran/task4.f90: Likewise.
4219         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4220         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4221         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4222         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4223         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4224         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4225         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4226         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4227         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4228         * testsuite/libgomp.fortran/udr1.f90: Likewise.
4229         * testsuite/libgomp.fortran/udr10.f90: Likewise.
4230         * testsuite/libgomp.fortran/udr11.f90: Likewise.
4231         * testsuite/libgomp.fortran/udr12.f90: Likewise.
4232         * testsuite/libgomp.fortran/udr13.f90: Likewise.
4233         * testsuite/libgomp.fortran/udr14.f90: Likewise.
4234         * testsuite/libgomp.fortran/udr15.f90: Likewise.
4235         * testsuite/libgomp.fortran/udr2.f90: Likewise.
4236         * testsuite/libgomp.fortran/udr3.f90: Likewise.
4237         * testsuite/libgomp.fortran/udr4.f90: Likewise.
4238         * testsuite/libgomp.fortran/udr5.f90: Likewise.
4239         * testsuite/libgomp.fortran/udr6.f90: Likewise.
4240         * testsuite/libgomp.fortran/udr7.f90: Likewise.
4241         * testsuite/libgomp.fortran/udr8.f90: Likewise.
4242         * testsuite/libgomp.fortran/udr9.f90: Likewise.
4243         * testsuite/libgomp.fortran/vla1.f90: Likewise.
4244         * testsuite/libgomp.fortran/vla2.f90: Likewise.
4245         * testsuite/libgomp.fortran/vla3.f90: Likewise.
4246         * testsuite/libgomp.fortran/vla4.f90: Likewise.
4247         * testsuite/libgomp.fortran/vla5.f90: Likewise.
4248         * testsuite/libgomp.fortran/vla6.f90: Likewise.
4249         * testsuite/libgomp.fortran/vla7.f90: Likewise.
4250         * testsuite/libgomp.fortran/vla8.f90: Likewise.
4251         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4252         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4253         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4254         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4255         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4256         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4257         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4258         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4259         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4260         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4261         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4262         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4263         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4264         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4265         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4266         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4267         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4268         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4269         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4270         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4271         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4272         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4273         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4274         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4275         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4276         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4277         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4278         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4279         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4280         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4281         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4282         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4283         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4284         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4285         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4286         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4287         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4288         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4289         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4290         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4291         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4292         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4293         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4294         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4295         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4296         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4297         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4298         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4299         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4300         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4301         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4302         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4303         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4304         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4305         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4306         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4307         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4308         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4309         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4310         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4311         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4312         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4313         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4314         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4315         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4316         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4317         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4318         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4319         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4320         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4321         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4322         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4323         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4324         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4325         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4326         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4327         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4328         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4329         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4330         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4331         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4332         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4333         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4334         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4335         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4336         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4337         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4338         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4339         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4340         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4341         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4342         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4343         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4344         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4346 2018-03-20  Richard Biener  <rguenther@suse.de>
4348         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4349         parallelizable loop.
4351 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4353         PR target/84148
4354         * configure: Regenerate.
4356 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
4358         PR fortran/84418
4359         * libgomp.fortran/pr84418-1.f90: New test.
4360         * libgomp.fortran/pr84418-2.f90: New test.
4362 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
4364         PR fortran/84313
4365         * testsuite/libgomp.fortran/threadprivate4.f90: Add
4366         -std=f2003 -fall-intrinsics into dg-additional-options.
4368 2018-02-08  Martin Jambor  <mjambor@suse.cz>
4370         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4371         clonable.
4373 2018-02-08  Martin Jambor  <mjambor@suse.cz>
4375         * testsuite/libgomp.hsa.c/staticvar.c: New test.
4377 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4379         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4380         [__cplusplus]: Declare extern "C".
4382 2018-02-07  Tom de Vries  <tom@codesourcery.com>
4384         PR libgomp/84217
4385         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4387 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
4388             Jakub Jelinek  <jakub@redhat.com>
4390         PR libgomp/84096
4391         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4392         instead of omp_lock_t.
4394 2018-01-25  Tom de Vries  <tom@codesourcery.com>
4396         PR target/84028
4397         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4399 2018-01-24  Tom de Vries  <tom@codesourcery.com>
4401         PR target/83589
4402         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4404 2018-01-24  Tom de Vries  <tom@codesourcery.com>
4406         PR target/81352
4407         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4409 2018-01-19  Tom de Vries  <tom@codesourcery.com>
4410             Cesar Philippidis  <cesar@codesourcery.com>
4412         PR target/83920
4413         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4414         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4416 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
4418         Update copyright years.
4420         * libgomp.texi: Bump @copying's copyright year.
4422 2017-12-30  Tom de Vries  <tom@codesourcery.com>
4424         PR libgomp/83046
4425         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4426         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4428 2017-12-27  Tom de Vries  <tom@codesourcery.com>
4430         PR c++/83046
4431         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4432         (test_nonstatic): Fix return type to workaround PR83046.
4434 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
4436         PR testsuite/83281
4437         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4438         j suffix instead of i.
4439         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4440         Likewise.
4442 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
4444         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4445         call to acc_wait (1).
4447 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
4449         PR fortran/81304
4450         * testsuite/libgomp.fortran/pr81304.f90: New test.
4452 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
4454         PR fortran/81841
4455         * libgomp.fortran/pr81841.f90: New test.
4457 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
4459         PR libgomp/83106
4460         * target.c (gomp_target_init): Compute lengths just once and
4461         use them in both malloc size and subsequent copying.
4463 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4465         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4466         * acinclude.m4: Add cet.m4.
4467         * configure: Regenerate.
4468         * Makefile.in: Likewise.
4469         * testsuite/Makefile.in: Likewise.
4471 2017-11-15  Tom de Vries  <tom@codesourcery.com>
4473         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4474         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
4475         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4476         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
4477         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4478         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
4480 2017-11-14  Tom de Vries  <tom@codesourcery.com>
4482         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4483         non-nvidia devices.
4485 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
4487         PR c++/82835
4488         * testsuite/libgomp.c++/pr82835.C: New test.
4490 2017-11-06  Martin Liska  <mliska@suse.cz>
4492         * testsuite/libgomp.c++/loop-2.C: Return a value
4493         for functions with non-void return type, or change type to void,
4494         or add -Wno-return-type for test.
4495         * testsuite/libgomp.c++/loop-4.C: Likewise.
4496         * testsuite/libgomp.c++/parallel-1.C: Likewise.
4497         * testsuite/libgomp.c++/shared-1.C: Likewise.
4498         * testsuite/libgomp.c++/single-1.C: Likewise.
4499         * testsuite/libgomp.c++/single-2.C: Likewise.
4501 2017-10-31  Tom de Vries  <tom@codesourcery.com>
4503         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4504         "do {} while (false)".
4505         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4506         after HSA_DEBUG call.
4508 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
4510         * target.c (struct gomp_coalesce_buf): New type.
4511         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4512         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4513         (gomp_copy_host2dev): Add CBUF argument, if copying into
4514         the cached ranges, memcpy into buffer instead of copying
4515         into device.
4516         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4517         Add CBUF argument, pass it through to other calls.
4518         (gomp_map_vars): Aggregate copies from host to device if small enough
4519         and with small enough gaps in between into memcpy into a buffer and
4520         fewer host to device copies from the buffer.
4521         (gomp_update): Adjust gomp_copy_host2dev caller.
4523 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
4525         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4526         run" directive.
4527         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4528         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4529         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4530         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4532 2017-10-16  Tom de Vries  <tom@codesourcery.com>
4534         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4535         openacc_nvidia_accel_selected.
4536         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4537         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4538         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4539         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4540         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4541         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4542         openacc_nvidia_accel_selected. Skip for shared memory device.
4543         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4544         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4546 2017-10-09  Martin Jambor  <mjambor@suse.cz>
4548         PR hsa/82416
4549         * testsuite/libgomp.hsa.c/pr82416.c: New test.
4551 2017-10-07  Tom de Vries  <tom@codesourcery.com>
4553         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4554         Remove acc_device_nvidia references.
4555         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4556         Same.
4558 2017-10-05  Tom de Vries  <tom@codesourcery.com>
4560         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4561         vector_length(32) clause from acc parallel directive.
4562         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4564 2017-10-04  Tom de Vries  <tom@codesourcery.com>
4566         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4567         (main): Reduce sum of arr elements.  Assert that hres is exactly
4568         representable in 32-bit floating point.
4569         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4570         (main): Reduce sum of arr elements.  Assert that hres and hmres are
4571         exactly representable in 32-bit floating point.
4572         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4574 2017-09-28  Tom de Vries  <tom@codesourcery.com>
4576         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4577         setting.
4578         * testsuite/libgomp.c++/pr69393.C: Same.
4579         * testsuite/libgomp.c++/taskloop-1.C: Same.
4580         * testsuite/libgomp.c++/taskloop-3.C: Same.
4581         * testsuite/libgomp.c++/taskloop-4.C: Same.
4582         * testsuite/libgomp.c/for-4.c: Same.
4583         * testsuite/libgomp.c/pr66199-3.c: Same.
4584         * testsuite/libgomp.c/pr66199-4.c: Same.
4585         * testsuite/libgomp.c/pr66199-6.c: Same.
4586         * testsuite/libgomp.c/taskloop-1.c: Same.
4587         * testsuite/libgomp.c/taskloop-3.c: Same.
4588         * testsuite/libgomp.c/taskloop-4.c: Same.
4589         * testsuite/libgomp.fortran/aligned1.f03: Same.
4590         * testsuite/libgomp.fortran/condinc1.f: Same.
4591         * testsuite/libgomp.fortran/condinc3.f90: Same.
4592         * testsuite/libgomp.fortran/crayptr1.f90: Same.
4593         * testsuite/libgomp.fortran/crayptr2.f90: Same.
4594         * testsuite/libgomp.fortran/crayptr3.f90: Same.
4595         * testsuite/libgomp.fortran/omp_cond1.f: Same.
4596         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4597         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4598         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4599         * testsuite/libgomp.fortran/recursion1.f90: Same.
4600         * testsuite/libgomp.fortran/target2.f90: Same.
4601         * testsuite/libgomp.fortran/target5.f90: Same.
4602         * testsuite/libgomp.fortran/task3.f90: Same.
4604 2017-09-28  Tom de Vries  <tom@codesourcery.com>
4606         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4607         vector_length(32) clause from acc parallel directive.
4608         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4610 2017-09-27  Tom de Vries  <tom@codesourcery.com>
4612         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4613         Remove acc_device_nvidia references.
4615 2017-09-16  Tom de Vries  <tom@codesourcery.com>
4617         PR c/81875
4618         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4620 2017-09-14  Tom de Vries  <tom@codesourcery.com>
4622         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4623         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4624         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4625         * testsuite/libgomp.c/c.exp: Include test-cases from
4626         libgomp.c-c++-common.
4627         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
4628         files.
4630 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
4632         PR c++/81314
4633         * testsuite/libgomp.c++/pr81314.C: New test.
4635 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
4637         * libgomp.texi (Top): www.openacc.org now uses https.
4638         (Enabling OpenACC): Ditto.
4639         (acc_get_num_devices): Ditto.
4640         (acc_set_device_type): Ditto.
4641         (acc_get_device_type): Ditto.
4642         (acc_set_device_num): Ditto.
4643         (acc_get_device_num): Ditto.
4644         (acc_async_test): Ditto.
4645         (acc_async_test_all): Ditto.
4646         (acc_wait): Ditto.
4647         (acc_wait_all): Ditto.
4648         (acc_wait_all_async): Ditto.
4649         (acc_wait_async): Ditto.
4650         (acc_init): Ditto.
4651         (acc_shutdown): Ditto.
4652         (acc_on_device): Ditto.
4653         (acc_malloc): Ditto.
4654         (acc_free): Ditto.
4655         (acc_copyin): Ditto.
4656         (acc_present_or_copyin): Ditto.
4657         (acc_create): Ditto.
4658         (acc_present_or_create): Ditto.
4659         (acc_copyout): Ditto.
4660         (acc_delete): Ditto.
4661         (acc_update_device): Ditto.
4662         (acc_update_self): Ditto.
4663         (acc_map_data): Ditto.
4664         (acc_unmap_data): Ditto.
4665         (acc_deviceptr): Ditto.
4666         (acc_hostptr): Ditto.
4667         (acc_is_present): Ditto.
4668         (acc_memcpy_to_device): Ditto.
4669         (acc_memcpy_from_device): Ditto.
4670         (acc_get_current_cuda_device): Ditto.
4671         (acc_get_current_cuda_context): Ditto.
4672         (acc_get_cuda_stream): Ditto.
4673         (acc_set_cuda_stream): Ditto.
4674         (ACC_DEVICE_TYPE): Ditto.
4675         (ACC_DEVICE_NUM): Ditto.
4676         (OpenACC Library Interoperability): Ditto.
4678 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
4680         PR c/81687
4681         * testsuite/libgomp.c/pr81687-1.c: New test.
4682         * testsuite/libgomp.c/pr81687-2.c: New test.
4684 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
4686         PR c/69389
4687         * testsuite/libgomp.c/pr69389.c: New test.
4688         * testsuite/libgomp.c++/pr69389.C: New test.
4690 2017-08-07  Tom de Vries  <tom@codesourcery.com>
4692         PR middle-end/78266
4693         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4694         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4696 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
4698         PR c/45784
4699         * testsuite/libgomp.c/pr45784.c: New test.
4700         * testsuite/libgomp.c++/pr45784.C: New test.
4702 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4704         * testsuite/libgomp.oacc-c/vec.c: New test.
4706 2017-07-03  Tom de Vries  <tom@codesourcery.com>
4708         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4710 2017-06-27  Tom de Vries  <tom@codesourcery.com>
4712         * plugin/plugin-nvptx.c (notify_var): New function.
4713         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4715 2017-06-27  Tom de Vries  <tom@codesourcery.com>
4717         * env.c (parse_unsigned_long_1): Factor out of ...
4718         (parse_unsigned_long): ... here.
4719         (parse_int_1): Factor out of ...
4720         (parse_int): ... here.
4721         (parse_int_secure): New function.
4722         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4723         * secure_getenv.h: Factor out of ...
4724         * plugin/plugin-hsa.c: ... here.
4725         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4727 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
4729         PR c++/81130
4730         * testsuite/libgomp.c++/pr81130.C: New test.
4732 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4734         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4735         default args.
4736         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4737         dg-xfail-run-if default args.
4739 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4741         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4742         * testsuite/libgomp.c/pr39591-3.c: Likewise.
4744 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
4746         PR libgomp/80822
4747         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4748         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
4749         sibling lists, depending on level just pick up what CPUs to put
4750         together into a place vs. whether add multiple ordered places.
4752 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
4754         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4755         * libgomp.map (OACC_2.0.1): Add these.
4756         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4757         for "acc_wait", and "acc_wait_all", respectively.
4758         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4759         for "acc_wait", and "acc_wait_all", respectively.
4760         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4761         * libgomp.texi (acc_wait, acc_wait_all): Update.
4762         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4763         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4764         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4766         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4767         acc_present_or_copyin and acc_present_or_create procedures,
4768         respectively.
4769         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4770         generally different variants of OpenACC Runtime Library functions.
4771         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4773         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4774         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4776         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4777         of preprocessor definitions.
4778         * libgomp.h (strong_alias): Guard by "#ifdef
4779         HAVE_ATTRIBUTE_ALIAS".
4780         * oacc-mem.c: Provide "acc_pcreate" as alias for
4781         "acc_present_or_create", and "acc_pcopyin" as alias for
4782         "acc_present_or_copyin".
4783         * libgomp.map: New version "OACC_2.0.1".
4784         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4785         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4786         its content into...
4787         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4788         Extend testing.
4790         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4791         when disabling nvptx offloading.
4793 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
4795         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4796         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4797         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4799         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4800         * testsuite/lib/libgomp.exp
4801         (check_effective_target_openacc_nvidia_accel_configured): New
4802         proc.
4803         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4804         (check_effective_target_c++): New procs.
4805         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4806         (check_effective_target_c++): Likewise.
4808 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
4810         PR middle-end/80809
4811         * testsuite/libgomp.c/pr80809-2.c: New test.
4812         * testsuite/libgomp.c/pr80809-3.c: New test.
4814         PR middle-end/80809
4815         * testsuite/libgomp.c/pr80809-1.c: New test.
4817         PR middle-end/80853
4818         * testsuite/libgomp.c/pr80853.c: New test.
4820 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
4822         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4823         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4824         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4825         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4826         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4828         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4829         Debug output for failure.
4831 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4833         * testsuite/lib/libgomp.exp: Load scanlang.exp.
4835 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
4837         PR bootstrap/80531
4838         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4839         bootstrap compare failures.
4841 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
4843         * testsuite/libgomp.c/target-36.c: New testcase.
4845 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
4847         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4848         instead of char.
4850 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
4852         PR libgomp/80394
4853         * testsuite/libgomp.c/pr80394.c: New test.
4855 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4857         PR libgomp/79876
4858         * config/posix/thread-stacksize.h: New file.
4859         * config/darwin/thread-stacksize.h: New file.
4860         * config/nvptx/thread-stacksize.h: New file.
4861         * env.c: Include thread-stacksize.h.
4862         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4863         instead of 0.  Call pthread_attr_setstacksize even if
4864         GOMP_DEFAULT_STACKSIZE is non-zero.
4866 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
4868         * env.c (initialize_env): Initialize stacksize to 0.
4870 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
4872         PR c++/80029
4873         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4875 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
4877         PR c/79940
4878         * testsuite/libgomp.c/pr79940.c: New test.
4880 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4882         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4883         targets.
4884         Add __float128 options.
4886 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
4888         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4889         hppa*-*-* dg-skip-if directive.
4891 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
4893         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4894         dg-skip-if directive into a comment.
4896 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
4897             Chung-Lin Tang  <cltang@codesourcery.com>
4899         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4900         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4901         add additional case.
4902         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4903         "openacc_nvidia_accel_selected".
4904         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4905         Add num_workers(8) clause.
4907 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
4909         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4910         hppa*-*-*.
4911         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4912         include complex.h on hppa*-*-hpux*.
4913         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4915 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
4917         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4919         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4920         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
4921         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4922         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
4923         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4924         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
4925         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4926         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
4927         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4928         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
4930 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
4932         * libgomp-plugin.h: #include <stdbool.h>.
4933         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4934         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4935         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4936         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4937         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4938         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4939         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4940         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4941         (GOMP_OFFLOAD_openacc_register_async_cleanup)
4942         (GOMP_OFFLOAD_openacc_async_test)
4943         (GOMP_OFFLOAD_openacc_async_test_all)
4944         (GOMP_OFFLOAD_openacc_async_wait)
4945         (GOMP_OFFLOAD_openacc_async_wait_async)
4946         (GOMP_OFFLOAD_openacc_async_wait_all)
4947         (GOMP_OFFLOAD_openacc_async_wait_all_async)
4948         (GOMP_OFFLOAD_openacc_async_set_async)
4949         (GOMP_OFFLOAD_openacc_create_thread_data)
4950         (GOMP_OFFLOAD_openacc_destroy_thread_data)
4951         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4952         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4953         (GOMP_OFFLOAD_openacc_get_cuda_stream)
4954         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4955         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4956         these.
4957         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4958         (GOMP_OFFLOAD_unload_image): Fix argument types.
4960 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
4962         * testsuite/lib/libgomp.exp
4963         (check_effective_target_hsa_offloading_selected_nocache): Fix up
4964         check_compile invocation.  Fix up removal of executable.  Drop
4965         bogus "2>&1" argument.
4967         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4968         directive.
4970 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
4971             Martin Jambor  <mjambor@suse.cz>
4973         * plugin/hsa.h: Moved to top level include.
4974         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4976 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
4978         PR other/79046
4979         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4980         of cat to get version from BASE-VER file.
4981         * testsuite/Makefile.in: Regenerated.
4983 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
4985         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4986         for _WIN64.
4988 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4990         * plugin/hsa.h: Add GCC runtime library exception.
4991         * plugin/hsa_ext_finalize.h: Likewise.
4993         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4994         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
4995         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4996         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4997         plugin/include/cuda as include dir and -ldl instead of -lcuda as
4998         library to link ptx plugin against.
4999         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
5000         (CUDA_CALLS): Define.
5001         (cuda_lib, cuda_lib_inited): New variables.
5002         (init_cuda_lib): New function.
5003         (CUDA_CALL_PREFIX): Define.
5004         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
5005         (CUDA_CALL): Use FN instead of (FN).
5006         (CUDA_CALL_NOCHECK): Define.
5007         (cuda_error, fini_streams_for_device, select_stream_for_async,
5008         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
5009         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
5010         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
5011         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
5012         CUDA_CALL_NOCHECK.
5013         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
5014         CUDA_CALL_NOCHECK.
5015         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
5016         Use CUDA_CALL_NOCHECK.
5017         * plugin/cuda/cuda.h: New file.
5018         * config.h.in: Regenerated.
5019         * configure: Regenerated.
5021         PR other/79046
5022         * configure.ac: Add GCC_BASE_VER.
5023         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
5024         get version from BASE-VER file.
5025         * testsuite/Makefile.in: Regenerated.
5026         * configure: Regenerated.
5027         * Makefile.in: Regenerated.
5029 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5031         PR libgomp/60670
5032         * Makefile.am: Make fincludedir multilib-aware.
5033         * Makefile.in: Regenerate.
5035 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
5037         Update copyright years.
5039         * libgomp.texi: Bump @copying's copyright year.
5041 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5043         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5044         pthread_spinlock_t instead of gomp_mutex_t lock.
5045         (gomp_get_thread_pool): Likewise.
5046         (gomp_release_thread_pool): Likewise.
5047         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5048         Likewise.
5050 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5052         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5053         thread pool in case nthreads == 1.
5055 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
5057         * config/nvptx/env.c: Delete.
5058         * icv.c: Move definitions of ICV variables back ...
5059         * env.c: ...here.  Do not compile environment-related functionality if
5060         LIBGOMP_OFFLOADED_ONLY is set.
5062 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
5064         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5065         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5066         * configure: Regenerate.
5067         * config.h.in: Likewise.
5069 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
5071         * Makefile.in: Regenerate with automake-1.11.6.
5072         * aclocal.m4: Likewise.
5073         * configure: Likewise.
5074         * testsuite/Makefile.in: Likewise.
5076 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
5078         * config/nvptx/critical.c: Delete to use generic implementation.
5080 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
5082         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5083         ../../affinity.c as fallback.
5084         * config/nvptx/affinity.c: Delete to use fallback implementation.
5086 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
5087             Jakub Jelinek  <jakub@redhat.com>
5088             Dmitry Melnik  <dm@ispras.ru>
5090         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5091         * Makefile.in. Regenerate.
5092         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5093         (LIBGOMP_USE_PTHREADS): ...here; new define.
5094         * configure: Regenerate.
5095         * config.h.in: Likewise.
5096         * config/posix/affinity.c: Move to...
5097         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
5098         interface by LIBGOMP_USE_PTHREADS. 
5099         * critical.c: Split out GOMP_atomic_{start,end} into...
5100         * atomic.c: ...here (new file).
5101         * env.c: Split out ICV definitions into...
5102         * icv.c: ...here (new file) and...
5103         * icv-device.c: ...here. New file.
5104         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5105         (gomp_destroy_lock_30): Ditto.
5106         (gomp_set_lock_30): Ditto.
5107         (gomp_unset_lock_30): Ditto.
5108         (gomp_test_lock_30): Ditto.
5109         (gomp_init_nest_lock_30): Ditto.
5110         (gomp_destroy_nest_lock_30): Ditto.
5111         (gomp_set_nest_lock_30): Ditto.
5112         (gomp_unset_nest_lock_30): Ditto.
5113         (gomp_test_nest_lock_30): Ditto.
5114         * lock.c: New.
5115         * config/nvptx/lock.c: New.
5116         * config/nvptx/bar.c: New.
5117         * config/nvptx/bar.h: New.
5118         * config/nvptx/doacross.h: New.
5119         * config/nvptx/error.c: New.
5120         * config/nvptx/icv-device.c: New.
5121         * config/nvptx/mutex.h: New.
5122         * config/nvptx/pool.h: New.
5123         * config/nvptx/proc.c: New.
5124         * config/nvptx/ptrlock.h: New.
5125         * config/nvptx/sem.h: New.
5126         * config/nvptx/simple-bar.h: New.
5127         * config/nvptx/target.c: New.
5128         * config/nvptx/task.c: New.
5129         * config/nvptx/team.c: New.
5130         * config/nvptx/time.c: New.
5131         * config/posix/simple-bar.h: New.
5132         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
5133         (gomp_num_teams_var): Declare.
5134         (struct gomp_thread_pool): Change threads_dock member to
5135         gomp_simple_barrier_t.
5136         [__nvptx__] (gomp_thread): New implementation.
5137         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5138         (gomp_thread_destructor): Ditto.
5139         (gomp_init_thread_affinity): Ditto.
5140         * team.c: Guard uses of Pthreads-specific interfaces by
5141         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
5142         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5143         * config/nvptx/alloc.c: Delete.
5144         * config/nvptx/barrier.c: Ditto.
5145         * config/nvptx/fortran.c: Ditto.
5146         * config/nvptx/iter.c: Ditto.
5147         * config/nvptx/iter_ull.c: Ditto.
5148         * config/nvptx/loop.c: Ditto.
5149         * config/nvptx/loop_ull.c: Ditto.
5150         * config/nvptx/ordered.c: Ditto.
5151         * config/nvptx/parallel.c: Ditto.
5152         * config/nvptx/priority_queue.c: Ditto.
5153         * config/nvptx/sections.c: Ditto.
5154         * config/nvptx/single.c: Ditto.
5155         * config/nvptx/splay-tree.c: Ditto.
5156         * config/nvptx/work.c: Ditto.
5157         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5158         -foffload=-lgfortran in addition to -lgfortran.
5159         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5160         * plugin/plugin-nvptx.c: Include <limits.h>.
5161         (struct targ_fn_descriptor): Add new fields.
5162         (struct ptx_device): Ditto.  Set them...
5163         (nvptx_open_device): ...here.
5164         (nvptx_adjust_launch_bounds): New.
5165         (nvptx_host2dev): Allow NULL 'nvthd'.
5166         (nvptx_dev2host): Ditto.
5167         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5168         (link_ptx): Adjust log sizes.
5169         (nvptx_host2dev): Allow NULL 'nvthd'.
5170         (nvptx_dev2host): Ditto.
5171         (nvptx_set_clocktick): New.  Use it...
5172         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
5173         fields.
5174         (GOMP_OFFLOAD_dev2dev): New.
5175         (nvptx_adjust_launch_bounds): New.
5176         (nvptx_stacks_size): New.
5177         (nvptx_stacks_alloc): New.
5178         (nvptx_stacks_free): New.
5179         (GOMP_OFFLOAD_run): New.
5180         (GOMP_OFFLOAD_async_run): New (stub).
5182 2016-11-23  Martin Jambor  <mjambor@suse.cz>
5184         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5185         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5186         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5188 2016-11-23  Martin Liska  <mliska@suse.cz>
5189             Martin Jambor  <mjambor@suse.cz>
5191         * plugin/hsa.h: New file.
5192         * plugin/hsa_ext_finalize.h: New file.
5193         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
5194         header file unistd.h, and functions secure_getenv, __secure_getenv,
5195         getuid, geteuid, getgid and getegid.
5196         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5197         -D_GNU_SOURCE.
5198         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5199         Handle various cases of secure_getenv presence, add an implementation
5200         when we can test effective UID and GID.
5201         (struct hsa_runtime_fn_info): New structure.
5202         (hsa_runtime_fn_info hsa_fns): New variable.
5203         (hsa_runtime_lib): Likewise.
5204         (support_cpu_devices): Likewise.
5205         (init_enviroment_variables): Load newly introduced ENV
5206         variables.
5207         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5208         (hsa_fatal): Likewise.
5209         (DLSYM_FN): New macro.
5210         (init_hsa_runtime_functions): New function.
5211         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5212         structure.  Depending on environment, also allow CPU devices.
5213         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5214         (get_kernarg_memory_region): Likewise.
5215         (GOMP_OFFLOAD_init_device): Likewise.
5216         (destroy_hsa_program): Likewise.
5217         (init_basic_kernel_info): New function.
5218         (GOMP_OFFLOAD_load_image): Use it.
5219         (create_and_finalize_hsa_program): Call hsa run-time functions via
5220         hsa_fns structure.
5221         (create_single_kernel_dispatch): Likewise.
5222         (release_kernel_dispatch): Likewise.
5223         (init_single_kernel): Likewise.
5224         (parse_target_attributes): Allow up multiple HSA grid dimensions.
5225         (get_group_size): New function.
5226         (run_kernel): Likewise.
5227         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5228         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5229         structure.
5230         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5231         * testsuite/libgomp-test-support.exp.in: Likewise.
5232         * Makefile.in: Regenerated.
5233         * aclocal.m4: Likewise.
5234         * config.h.in: Likewise.
5235         * configure: Likewise.
5236         * testsuite/Makefile.in: Likewise.
5238 2016-11-15  Martin Jambor  <mjambor@suse.cz>
5239             Alexander Monakov  <amonakov@ispras.ru>
5241         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5242         mapping clauses to target constructs.
5243         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5245 2016-11-15  Matthias Klose  <doko@ubuntu.com>
5247         * configure: Regenerate.
5249 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
5251         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5252         * omp_lib.h.in (openmp_version): Likewise.
5253         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5254         of 201307.
5255         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5257         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5258         (fib_wrapper): Add map(from: x) clause.
5259         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5260         (e_53_2): Likewise.
5261         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5262         (accum): Add map(tmp) clause.
5263         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5264         (accum): Add map(tofrom: tmp) clause.
5265         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5266         (gramSchmidt): Likewise.
5267         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5268         map(tofrom: sum) clause.
5269         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5270         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
5271         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5272         only allowed on the loop iterator.
5273         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5274         * testsuite/libgomp.fortran/taskloop2.f90: New test.
5275         * testsuite/libgomp.fortran/taskloop4.f90: New test.
5276         * testsuite/libgomp.fortran/doacross1.f90: New test.
5277         * testsuite/libgomp.fortran/doacross3.f90: New test.
5278         * testsuite/libgomp.fortran/taskloop1.f90: New test.
5279         * testsuite/libgomp.fortran/taskloop3.f90: New test.
5280         * testsuite/libgomp.fortran/doacross2.f90: New test.
5281         * testsuite/libgomp.c/doacross-1.c (main): Add missing
5282         #pragma omp atomic read.
5283         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5284         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5286 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
5287             Nathan Sidwell  <nathan@acm.org>
5289         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5290         to determine default geometry.
5291         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5292         dimension.
5294 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
5296         * hashtab.h: Use standard GPLv3 with runtime exception
5297         boilerplate.
5299 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
5301         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5302         size when allocating new thread.
5304 2016-09-14  Marek Polacek  <polacek@redhat.com>
5306         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5308 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
5310         PR fortran/71014
5311         * testsuite/libgomp.fortran/pr71014.f90: New test.
5313 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
5315         PR middle-end/70895
5316         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5317         firstprivate clauses.
5318         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5319         copy clauses.
5320         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5321         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5322         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5323         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5324         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5325         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5326         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5327         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5328         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5329         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5330         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5331         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5333 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
5335         PR fortran/70598
5336         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5338 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5340         PR c++/58706
5341         * testsuite/libgomp.c++/pr58706.C: New test.
5343 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
5345         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5346         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5347         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5348         Likewise.
5349         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5350         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5351         Likewise.
5352         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5354         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5355         test, and don't hardcode -O0.
5357 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5359         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5361 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
5363         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5364         test.
5366 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
5368         PR middle-end/71734
5369         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5370         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5372 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
5374         PR fortran/71717
5375         * testsuite/libgomp.fortran/associate3.f90: New test.
5377 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
5379         * testsuite/libgomp.c++/target-21.C: New test.
5381 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
5383         * testsuite/libgomp.c++/target-20.C: New test.
5385 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5386             Cesar Philippidis  <cesar@codesourcery.com>
5388         PR middle-end/71373
5389         * libgomp.oacc-c/nested-function-1.c: New file.
5390         * libgomp.oacc-c/nested-function-2.c: Likewise.
5391         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5392         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5393         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5395 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5397         PR c/71381
5398         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5399         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5400         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5402 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
5404         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5405         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5407 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
5409         PR c/70688
5410         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5412 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
5414         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5415         instead of invalid schedule(static, 0).
5416         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5418 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
5420         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5421         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5422         parameter, use to set async stream around call to gomp_unmap_vars,
5423         call gomp_unmap_vars() with 'do_copyfrom' set to true.
5424         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5425         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5426         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5427         (event_add): Add int parameter, initialize 'val' field when
5428         adding new ptx_event struct.
5429         (nvptx_evec): Adjust event_add() call arguments.
5430         (nvptx_host2dev): Likewise.
5431         (nvptx_dev2host): Likewise.
5432         (nvptx_wait_async): Likewise.
5433         (nvptx_wait_all_async): Likewise.
5434         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5435         pass to event_add() call.
5436         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5437         parameter.
5438         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5439         call openacc.register_async_cleanup_func() hook.
5440         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5441         * target.c (gomp_copy_from_async): Delete function.
5442         (gomp_map_vars): Remove async_refcount.
5443         (gomp_unmap_vars): Likewise.
5444         (gomp_load_image_to_device): Likewise.
5445         (omp_target_associate_ptr): Likewise.
5446         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5447         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5448         (gomp_copy_from_async): Remove.
5450 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
5452         * target.c (gomp_device_copy): New function.
5453         (gomp_copy_host2dev): Likewise.
5454         (gomp_copy_dev2host): Likewise.
5455         (gomp_free_device_memory): Likewise.
5456         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5457         (gomp_map_pointer): Likewise.
5458         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5459         NULL value from alloc_func plugin hook.
5460         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5461         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5462         (gomp_unmap_vars): Likewise.
5463         (gomp_update): Adjust to call gomp_copy_dev2host and
5464         gomp_copy_host2dev functions.
5465         (gomp_unload_image_from_device): Handle false value from
5466         unload_image_func plugin hook.
5467         (gomp_init_device): Handle false value from init_device_func
5468         plugin hook.
5469         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5470         (omp_target_free): Adjust to call gomp_free_device_memory.
5471         (omp_target_memcpy): Handle return values from host2dev_func,
5472         dev2host_func, and dev2dev_func plugin hooks.
5473         (omp_target_memcpy_rect_worker): Likewise.
5474         (gomp_target_fini): Handle false value from fini_device_func
5475         plugin hook.
5476         * libgomp.h (struct gomp_device_descr): Adjust return type of
5477         init_device_func, fini_device_func, unload_image_func, free_func,
5478         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5479         * oacc-init.c (acc_shutdown_1): Handle false value from
5480         fini_device_func plugin hook.
5481         * oacc-host.c (host_init_device): Change return type to bool.
5482         (host_fini_device): Likewise.
5483         (host_unload_image): Likewise.
5484         (host_free): Likewise.
5485         (host_dev2host): Likewise.
5486         (host_host2dev): Likewise.
5487         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5488         (acc_memcpy_to_device): Likewise.
5489         (acc_memcpy_from_device): Likewise.
5490         (delete_copyout): Add libfnname parameter, handle free_func
5491         hook fatal error case.
5492         (acc_delete): Adjust delete_copyout call.
5493         (acc_copyout): Likewise.
5494         (update_dev_host): Move gomp_mutex_unlock to after
5495         host2dev/dev2host hook calls.
5497         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5498         to 'hsa_error_msg', for clarity.
5499         (hsa_fatal): Likewise.
5500         (hsa_error): New function.
5501         (init_hsa_context): Change return type to bool, adjust to return
5502         false on error.
5503         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5504         return value.
5505         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5506         return false on error.
5507         (get_agent_info): Adjust to return NULL on error.
5508         (destroy_hsa_program): Change return type to bool, adjust to
5509         return false on error.
5510         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5511         (destroy_module): Change return type to bool, adjust to
5512         return false on error.
5513         (GOMP_OFFLOAD_unload_image): Likewise.
5514         (GOMP_OFFLOAD_fini_device): Likewise.
5515         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5516         (GOMP_OFFLOAD_free): Change to return false when called.
5517         (GOMP_OFFLOAD_dev2host): Likewise.
5518         (GOMP_OFFLOAD_host2dev): Likewise.
5519         (GOMP_OFFLOAD_dev2dev): Likewise.
5521         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5522         (CUDA_CALL): Likewise.
5523         (CUDA_CALL_ASSERT): Likewise.
5524         (map_init): Change return type to bool, use CUDA_CALL* macros.
5525         (map_fini): Likewise.
5526         (init_streams_for_device): Change return type to bool, adjust
5527         call to map_init.
5528         (fini_streams_for_device): Change return type to bool, adjust
5529         call to map_fini.
5530         (select_stream_for_async): Release stream_lock before calls to
5531         GOMP_PLUGIN_fatal, adjust call to map_init.
5532         (nvptx_init): Use CUDA_CALL* macros.
5533         (nvptx_attach_host_thread_to_device): Change return type to bool,
5534         use CUDA_CALL* macros.
5535         (nvptx_open_device): Use CUDA_CALL* macros.
5536         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5537         macros.
5538         (nvptx_get_num_devices): Use CUDA_CALL* macros.
5539         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5540         (nvptx_exec): Use CUDA_CALL* macros.
5541         (nvptx_alloc): Use CUDA_CALL* macros.
5542         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5543         (nvptx_host2dev): Likewise.
5544         (nvptx_dev2host): Likewise.
5545         (nvptx_wait): Use CUDA_CALL* macros.
5546         (nvptx_wait_async): Likewise.
5547         (nvptx_wait_all): Likewise.
5548         (nvptx_wait_all_async): Likewise.
5549         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5550         use CUDA_CALL* macros, adjust call to map_fini.
5551         (GOMP_OFFLOAD_init_device): Change return type to bool,
5552         adjust code accordingly.
5553         (GOMP_OFFLOAD_fini_device): Likewise.
5554         (GOMP_OFFLOAD_load_image): Adjust calls to
5555         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5556         use CUDA_CALL* macros.
5557         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5558         return code.
5559         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5560         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5561         handle error return.
5562         (GOMP_OFFLOAD_dev2host): Likewise.
5563         (GOMP_OFFLOAD_host2dev): Likewise.
5564         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5565         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5567 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
5569         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5570         (acc_free): Likewise.
5571         (acc_memcpy_to_device): Likewise.
5572         (acc_memcpy_from_device): Likewise.
5573         (acc_deviceptr): Likewise.
5574         (acc_hostptr): Likewise.
5575         (acc_is_present): Likewise.
5576         (acc_map_data): Likewise.
5577         (acc_unmap_data): Likewise.
5578         (present_create_copy): Likewise.
5579         (delete_copyout): Likewise.
5580         (update_dev_host): Likewise.
5581         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5582         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5583         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5584         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5585         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5586         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5587         it only runs on nvptx targets.
5588         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5589         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5590         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5591         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5592         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5593         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5594         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5595         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5596         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5597         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5598         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5599         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5600         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5601         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5602         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5603         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5604         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5605         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5606         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5607         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5608         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5609         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5610         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5612 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5614         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5616 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
5618         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5619         to gomp_init_targets_once.
5620         (acc_set_device_type): Remove !cached_base_dev condition on call to
5621         gomp_init_targets_once, move call to before acc_device_lock acquire,
5622         to avoid deadlock.
5623         (acc_get_device_num): Remove !cached_base_dev condition on call to
5624         gomp_init_targets_once.
5625         (acc_set_device_num): Likewise.
5627 2016-05-16  Martin Jambor  <mjambor@suse.cz>
5629         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5631 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
5633         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5634         expected partitioning.
5636 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
5638         PR middle-end/70626
5639         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5640         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5641         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5643 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
5645         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5646         non-fatal.
5648 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
5650         PR middle-end/70680
5651         * testsuite/libgomp.c/pr70680-1.c: New test.
5652         * testsuite/libgomp.c/pr70680-2.c: New test.
5654 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
5656         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5657         pass parameter variables to subroutines.
5659 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
5661         PR middle-end/70643
5662         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5664 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
5666         PR testsuite/68242
5667         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5668         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5670 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
5672         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5673         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5674         GOACC_declare prototype.
5676         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5677         Merge this file, and...
5678         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5679         ... this file, and...
5680         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5681         ... this file, and...
5682         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5683         ... this file, and...
5684         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5685         ... this file, and...
5686         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5687         ... this file, and...
5688         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5689         ... this file, and...
5690         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5691         ... this file, and...
5692         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5693         ... this file, and...
5694         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5695         ... this file, and...
5696         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5697         ... this file, and...
5698         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5699         ... this file, and...
5700         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5701         ... this file into...
5702         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5703         file.
5705         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5706         Make failure observable.
5708 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
5710         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5711         field.
5712         * target.c (gomp_target_fallback_firstprivate,
5713         gomp_target_unshare_firstprivate): Removed.
5714         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5715         before waiting for dependencies.
5716         (gomp_target_task_fn): Don't copy firstprivate vars here.
5717         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5718         firstprivate_copies here.
5719         (gomp_create_target_task): Don't initialize firstprivate_copies field.
5720         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5721         explicit/implicit firstprivate.
5723 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
5725         PR lto/70289
5726         PR ipa/70348
5727         PR tree-optimization/70373
5728         PR middle-end/70533
5729         PR middle-end/70534
5730         PR middle-end/70535
5731         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5732         test.
5733         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5734         test.
5735         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5736         test.
5737         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5738         test.
5739         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5740         test.
5741         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5742         test.
5743         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5744         test.
5745         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5746         test.
5747         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5748         test.
5749         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5750         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5751         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5752         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5753         test.
5754         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5755         test.
5756         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5757         test.
5758         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5759         test.
5760         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5761         coverage.
5762         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5763         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5764         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5765         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5766         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5767         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5768         coverage.
5769         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5770         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5771         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5772         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5773         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5774         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5775         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5776         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5777         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5778         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5779         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5780         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5781         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5782         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5783         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5785 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
5786             James Norris  <jnorris@codesourcery.com>
5787             Nathan Sidwell  <nathan@codesourcery.com>
5788             Julian Brown  <julian@codesourcery.com>
5789             Cesar Philippidis  <cesar@codesourcery.com>
5790             Chung-Lin Tang  <cltang@codesourcery.com>
5791             Tom de Vries  <tom@codesourcery.com>
5793         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5794         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5795         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5796         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5797         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5798         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5799         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5800         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5801         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5802         XFAIL.
5803         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5804         Incorporate...
5805         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5806         file.
5807         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5808         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5809         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5810         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5811         Likewise.
5812         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5813         Likewise.
5814         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5815         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5816         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5817         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5818         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5819         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5820         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5821         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5822         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5823         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5824         Likewise.
5825         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5826         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5827         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5828         file...
5829         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5830         file into...
5831         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5832         file.  Update.
5833         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5834         file.
5835         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5836         Likewise.
5837         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5838         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5839         ... this new file.  Update.
5840         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5841         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5842         ... this new file.  Update.
5843         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5844         file.  Incorporate...
5845         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5846         file, and...
5847         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5848         file, and...
5849         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5850         file.
5851         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5853 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
5855         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5856         set-torture-options.
5858 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
5860         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5861         gcc-dg-runtest.
5862         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5863         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5864         -fno-builtin-acc_on_device instead of -O0.
5865         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5866         -O0.
5867         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5868         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5869         Likewise.
5870         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5871         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5872         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5873         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5874         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5875         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5876         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5877         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5878         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5879         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5880         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5881         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5882         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5883         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5884         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5885         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5886         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5887         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5888         Don't specify -O2.
5889         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5890         Likewise.
5891         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5892         Likewise.
5894 2016-03-24  Martin Liska  <mliska@suse.cz>
5896         * plugin/plugin-hsa.c (packet_store_release): New function
5897         that is taken from the HSA runtime manual.
5898         (GOMP_OFFLOAD_run): Use the function.
5900 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
5902         PR c++/70376
5903         * testsuite/libgomp.c++/pr70376.C: New test.
5905 2016-03-23  Tom de Vries  <tom@codesourcery.com>
5907         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5908         initialization of lresult and lvresult.
5909         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5911 2016-03-23  James Norris  <jnorris@codesourcery.com>
5912             Daichi Fukuoka <dc-fukuoka@sgi.com>
5914         PR libgomp/69414
5915         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5916         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5917         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5918         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5920 2016-03-23  Martin Liska  <mliska@suse.cz>
5922         PR hsa/70337
5923         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5924         argument just in case a dispatched kernel uses that argument.
5926 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
5928         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5929         -ftree-parallelize-loops/-fopenacc changes.
5930         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5931         Likewise.
5932         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5933         Likewise.
5934         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5935         Likewise.
5936         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5937         Likewise.
5938         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5939         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5941 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
5943         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5944         always_ld_library_path the path to libgcc_s.
5946 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
5948         PR testsuite/70009
5949         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5951 2016-03-09  Tom de Vries  <tom@codesourcery.com>
5953         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5954         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5955         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5956         Same.
5957         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5958         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5959         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5960         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5962 2016-03-07  Martin Jambor  <mjambor@suse.cz>
5964         * testsuite/lib/libgomp.exp
5965         (check_effective_target_hsa_offloading_selected_nocache): New.
5966         (check_effective_target_hsa_offloading_selected): Likewise.
5967         * testsuite/libgomp.hsa.c/c.exp: Likewise.
5968         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5969         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5970         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5971         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5972         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5973         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5974         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5975         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5976         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5977         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5978         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5979         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5980         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5981         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5982         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5983         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5985 2016-03-07  Martin Jambor  <mjambor@suse.cz>
5987         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5988         non-shared memory accelerators.
5989         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5990         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5991         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5992         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5993         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5994         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5995         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5996         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5997         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5999 2016-03-07  Martin Jambor  <mjambor@suse.cz>
6001         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
6002         ALWAYS_CFLAGS.
6004 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
6006         PR libgomp/69555
6007         * testsuite/libgomp.c++/pr69555-1.C: New test.
6008         * testsuite/libgomp.c++/pr69555-2.C: New test.
6010 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
6011             Martin Jambor  <mjambor@suse.cz>
6013         * testsuite/lib/libgomp.exp
6014         (check_effective_target_offload_device_shared_as): New proc.
6015         * testsuite/libgomp.c++/declare_target-1.C: New test.
6017 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
6019         PR driver/68463
6020         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
6022 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
6024         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
6025         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
6026         dims.
6027         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
6028         -ftree-parallelize-loops/-fopenacc changes.
6029         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
6030         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
6031         Likewise.
6032         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
6033         Likewise.
6034         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6035         Likewise.
6036         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6037         Likewise.
6038         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6039         Likewise.
6040         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6041         Likewise.
6042         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6043         Likewise.
6044         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6045         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6046         Likewise.
6047         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6048         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6049         Likewise.
6050         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6051         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6052         Likewise.
6054 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
6056         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6058 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
6060         PR driver/69805
6061         * testsuite/libgomp.c/pr69805.c: New test.
6063 2016-02-16  Tom de Vries  <tom@codesourcery.com>
6065         PR lto/67709
6066         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6068 2016-02-09  Tom de Vries  <tom@codesourcery.com>
6070         PR tree-optimization/69599
6071         * testsuite/libgomp.c/omp-nested-3.c: New test.
6072         * testsuite/libgomp.c/pr46032-2.c: New test.
6073         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6074         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6076 2016-02-09  Tom de Vries  <tom@codesourcery.com>
6078         PR lto/69707
6079         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6081 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
6083         * testsuite/libgomp.c/target-31.c: Fix testcase.
6085 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
6087         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6088         clause.
6089         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6090         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6091         reduction and map clauses.
6092         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6094 2016-02-02  James Norris  <jnorris@codesourcery.com>
6096         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6098 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
6100         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6101         * oacc-parallel.c (GOACC_host_data): Remove function definition.
6103         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6104         cases.
6106         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6107         variables.
6108         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6109         (hsa_kmt_lib): Set variables.
6110         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6111         always_ld_library_path.
6112         * Makefile.in: Regenerate.
6113         * configure: Likewise.
6114         * testsuite/Makefile.in: Likewise.
6116         * plugin/configfrag.ac (offload_additional_options)
6117         (offload_additional_lib_paths): Don't amend for hsa offloading.
6118         * configure: Regenerate.
6120         * plugin/configfrag.ac: Don't configure for offloading target if
6121         we don't build the corresponding plugin.
6122         * configure: Regenerate.
6124 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
6126         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6127         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6129 2016-01-26  Tom de Vries  <tom@codesourcery.com>
6131         PR tree-optimization/69110
6132         * testsuite/libgomp.c/pr69110.c: New test.
6134 2016-01-25  Richard Biener  <rguenther@suse.de>
6136         PR lto/69393
6137         * testsuite/libgomp.c++/pr69393.C: New testcase.
6139 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
6141         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6142         function wasn't mapped to the device with non-shared memory.
6144 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
6146         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6148 2016-01-19  Martin Jambor  <mjambor@suse.cz>
6149             Martin Liska  <mliska@suse.cz>
6151         * plugin/Makefrag.am: Add HSA plugin requirements.
6152         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6153         (HSA_RUNTIME_LIB): Likewise.
6154         (HSA_RUNTIME_CPPFLAGS): Likewise.
6155         (HSA_RUNTIME_INCLUDE): New substitution.
6156         (HSA_RUNTIME_LIB): Likewise.
6157         (HSA_RUNTIME_LDFLAGS): Likewise.
6158         (hsa-runtime): New configure option.
6159         (hsa-runtime-include): Likewise.
6160         (hsa-runtime-lib): Likewise.
6161         (PLUGIN_HSA): New substitution variable.
6162         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6163         configure options.
6164         (PLUGIN_HSA_CPPFLAGS): Likewise.
6165         (PLUGIN_HSA_LDFLAGS): Likewise.
6166         (PLUGIN_HSA_LIBS): Likewise.
6167         Check that we have access to HSA run-time.
6168         * libgomp-plugin.h (offload_target_type): New element
6169         OFFLOAD_TARGET_TYPE_HSA.
6170         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6171         args.
6172         (bool gomp_create_target_task): Updated.
6173         (gomp_device_descr): Extra parameter of run_func and async_run_func,
6174         new field can_run_func.
6175         * libgomp_g.h (GOMP_target_ext): Update prototype.
6176         * oacc-host.c (host_run): Added a new parameter args.
6177         * target.c (calculate_firstprivate_requirements): New function.
6178         (copy_firstprivate_data): Likewise.
6179         (gomp_target_fallback_firstprivate): Use them.
6180         (gomp_target_unshare_firstprivate): New function.
6181         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6182         devices.
6183         (GOMP_target): Do host fallback for all shared memory devices.  Do not
6184         pass any args to plugins.
6185         (GOMP_target_ext): Introduce device-specific argument parameter args.
6186         Allow host fallback if device shares memory.  Do not remap data if
6187         device has shared memory.
6188         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
6189         like host fallback for mappings.
6190         (GOMP_target_data): Treat shared memory devices like host fallback.
6191         (GOMP_target_data_ext): Likewise.
6192         (GOMP_target_update): Likewise.
6193         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
6194         gomp_create_target_task.
6195         (GOMP_target_enter_exit_data): Likewise.
6196         (omp_target_alloc): Treat shared memory devices like host fallback.
6197         (omp_target_free): Likewise.
6198         (omp_target_is_present): Likewise.
6199         (omp_target_memcpy): Likewise.
6200         (omp_target_memcpy_rect): Likewise.
6201         (omp_target_associate_ptr): Likewise.
6202         (gomp_load_plugin_for_device): Also load can_run.
6203         * task.c (GOMP_PLUGIN_target_task_completion): Free
6204         firstprivate_copies.
6205         (gomp_create_target_task): Accept new argument args and store it to
6206         ttask.
6207         * plugin/plugin-hsa.c: New file.
6209 2016-01-18  Tom de Vries  <tom@codesourcery.com>
6211         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6212         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6213         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6214         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6215         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6216         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6217         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6218         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6219         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6220         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6221         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6222         Same.
6223         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6224         Same.
6225         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6226         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6227         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6228         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6229         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6230         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6231         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6232         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6233         Same.
6234         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6236 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
6238         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6240 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
6242         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6244 2016-01-12  James Norris  <jnorris@codesourcery.com>
6246         * libgomp.texi: Updates for OpenACC.
6248 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
6250         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6252 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
6254         PR fortran/66680
6255         * testsuite/libgomp.fortran/pr66680.f90: New test.
6257 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
6259         PR middle-end/68960
6260         * testsuite/libgomp.c/pr68960.c: New test.
6262 2016-01-06  Nathan Sidwell  <nathan@acm.org>
6264         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6265         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6267 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
6269         Update copyright years.
6271         * libgomp.texi: Bump @copying's copyright year.
6273 2015-12-31  Nathan Sidwell  <nathan@acm.org>
6275         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6276         dg-additional-options syntax.
6277         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6278         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6279         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6280         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6281         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6282         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6283         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6284         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6285         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6286         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6287         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6288         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6289         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6290         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6291         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6292         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6293         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6294         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6296 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
6298         * libgomp.h (REFCOUNT_LINK): Define.
6299         (struct splay_tree_key_s): Add link_key.
6300         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6301         Replace target address of the pointer with target address of newly
6302         mapped object in the splay tree.  Set link pointer on target to the
6303         device address of the mapped object.
6304         (gomp_unmap_vars): Restore target address of the pointer in the splay
6305         tree for REFCOUNT_LINK objects after unmapping.
6306         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6307         declare target link" objects.
6308         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
6309         "omp declare target link" objects, which were mapped for the image.
6310         (gomp_exit_data): Restore target address of the pointer in the splay
6311         tree for REFCOUNT_LINK objects after unmapping.
6312         * testsuite/libgomp.c/target-link-1.c: New file.
6314 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
6316         * libgomp.h (gomp_device_state): New enum.
6317         (struct gomp_device_descr): Replace is_initialized with state.
6318         (gomp_fini_device): Remove declaration.
6319         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6320         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6321         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
6322         (acc_set_device_type): Use state instead of is_initialized.
6323         (acc_set_device_num): Likewise.
6324         * target.c (resolve_device): Use state instead of is_initialized.
6325         Do not initialize finalized device.
6326         (gomp_map_vars): Do nothing if device is finalized.
6327         (gomp_unmap_vars): Likewise.
6328         (gomp_update): Likewise.
6329         (GOMP_offload_register_ver): Use state instead of is_initialized.
6330         (GOMP_offload_unregister_ver): Likewise.
6331         (gomp_init_device): Likewise.
6332         (gomp_unload_device): Likewise.
6333         (gomp_fini_device): Remove.
6334         (gomp_get_target_fn_addr): Do nothing if device is finalized.
6335         (GOMP_target): Go to host fallback if device is finalized.
6336         (GOMP_target_ext): Likewise.
6337         (gomp_exit_data): Do nothing if device is finalized.
6338         (gomp_target_task_fn): Go to host fallback if device is finalized.
6339         (gomp_target_fini): New static function.
6340         (gomp_target_init): Use state instead of is_initialized.
6341         Call gomp_target_fini at exit.
6343 2015-12-09  Tom de Vries  <tom@codesourcery.com>
6345         PR tree-optimization/68716
6346         * testsuite/libgomp.c/omp-nested-2.c: New test.
6348 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
6350         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6351         target openacc_nvidia_accel_selected.
6352         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6353         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6354         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6355         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6357 2015-12-01  Julian Brown  <julian@codesourcery.com>
6358             James Norris  <James_Norris@mentor.com>
6360         * oacc-parallel.c (GOACC_host_data): New function.
6361         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6362         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6363         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6364         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6365         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6366         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6367         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6369 2015-11-30  James Norris  <jnorris@codesourcery.com>
6370             Cesar Philippidis  <cesar@codesourcery.com>
6372         libgomp/
6373         * libgomp.oacc-fortran/routine-5.f90: New test.
6374         * libgomp.oacc-fortran/routine-7.f90: New test.
6375         * libgomp.oacc-fortran/routine-9.f90: New test.
6377 2015-11-30  Tom de Vries  <tom@codesourcery.com>
6379         PR tree-optimization/46032
6380         * testsuite/libgomp.c/pr46032.c: New test.
6382 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
6384         PR libgomp/68579
6385         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6386         (gomp_create_target_task): Call it before freeing
6387         GOMP_TARGET_TASK_DATA tasks.
6389         PR c/63326
6390         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6391         in between case label and OpenMP standalone directives.
6392         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6394 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
6396         * configure: Regenerate.
6398 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
6400         * testsuite/libgomp.c/target-35.c: New test.
6402 2015-11-22  James Norris  <jnorris@codesourcery.com>
6403             Cesar Philippidis  <cesar@codesourcery.com>
6405         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6406         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6407         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6408         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6409         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6411 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
6413         PR middle-end/68221
6414         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6415         * testsuite/libgomp.c/reduction-12.c: Likewise.
6416         * testsuite/libgomp.c++/reduction-11.C: Likewise.
6417         * testsuite/libgomp.c++/reduction-12.C: Likewise.
6419 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
6421         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6422         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6423         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6424         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6425         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6426         and fix.
6427         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6428         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6430 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
6432         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6433         worker & gang cases.
6434         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6436 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
6438         * config/nvptx/priority_queue.c: New file.
6440 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
6442         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6443         sections.
6445 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
6446             Aldy Hernandez  <aldyh@redhat.com>
6447             Ilya Verbin  <ilya.verbin@intel.com>
6449         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6450         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6451         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6452         iterators or IV by chunk size.
6453         * parallel.c (gomp_resolve_num_threads): Don't assume that
6454         if thr->ts.team is non-NULL, then pool must be non-NULL.
6455         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6456         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6457         GOMP_PLUGIN_target_task_completion.
6458         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6459         * Makefile.in: Regenerate.
6460         * libgomp.h: Shuffle prototypes and forward definitions around so
6461         priority queues can be defined.
6462         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6463         (enum gomp_target_task_state): New enum.
6464         (struct gomp_target_task): Add state, tgt, task and team fields.
6465         (gomp_create_target_task): Change return type to bool, add
6466         state argument.
6467         (gomp_target_task_fn): Change return type to bool.
6468         (struct gomp_device_descr): Add async_run_func.
6469         (struct gomp_task): Remove children, next_child, prev_child,
6470         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6471         Add pnode field.
6472         (struct gomp_taskgroup): Remove children.
6473         Add taskgroup_queue.
6474         (struct gomp_team): Change task_queue type to a priority queue.
6475         (splay_compare): Define inline.
6476         (priority_queue_offset): New.
6477         (priority_node_to_task): New.
6478         (task_to_priority_node): New.
6479         * oacc-mem.c: Do not include splay-tree.h.
6480         * priority_queue.c: New file.
6481         * priority_queue.h: New file.
6482         * splay-tree.c: Do not include splay-tree.h.
6483         (splay_tree_foreach_internal): New.
6484         (splay_tree_foreach): New.
6485         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6486         (splay_tree_callback): Define typedef.
6487         * target.c (splay_compare): Move to libgomp.h.
6488         (GOMP_target): Don't adjust *thr in any way around running offloaded
6489         task.
6490         (GOMP_target_ext): Likewise.  Handle target nowait.
6491         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6492         return value from gomp_create_target_task, if false, fallthrough
6493         as if no dependencies exist.
6494         (gomp_target_task_fn): Change return type to bool, return true
6495         if the task should have another part scheduled later.  Handle
6496         target nowait.
6497         (gomp_load_plugin_for_device): Initialize async_run.
6498         * task.c (gomp_init_task): Initialize children_queue.
6499         (gomp_clear_parent_in_list): New.
6500         (gomp_clear_parent_in_tree): New.
6501         (gomp_clear_parent): Handle priorities.
6502         (GOMP_task): Likewise.
6503         (priority_queue_move_task_first,
6504         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6505         New functions.
6506         (gomp_create_target_task): Use priority queues.  Change return type
6507         to bool, add state argument, return false if for async
6508         {{enter,exit} data,update} constructs no dependencies need to be
6509         waited for, handle target nowait.  Set task->fn to NULL instead of
6510         gomp_target_task_fn.
6511         (verify_children_queue): Remove.
6512         (priority_list_upgrade_task): New.
6513         (priority_queue_upgrade_task): New.
6514         (verify_task_queue): Remove.
6515         (priority_list_downgrade_task): New.
6516         (priority_queue_downgrade_task): New.
6517         (gomp_task_run_pre): Use priority queues.
6518         Abstract code out to priority_queue_downgrade_task.
6519         (gomp_task_run_post_handle_dependers): Use priority queues.
6520         (gomp_task_run_post_remove_parent): Likewise.
6521         (gomp_task_run_post_remove_taskgroup): Likewise.
6522         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
6523         tasks specially.
6524         (GOMP_taskwait): Likewise.
6525         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
6526         priority-queue_upgrade_task.
6527         (GOMP_taskgroup_start): Use priority queues.
6528         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
6529         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
6530         barrier.
6531         * taskloop.c (GOMP_taskloop): Handle priorities.
6532         * team.c (gomp_new_team): Call priority_queue_init.
6533         (free_team): Call priority_queue_free.
6534         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6535         team created for target nowait in implicit parallel region.
6536         (gomp_team_start): For nested check, test thr->ts.level instead of
6537         thr->ts.team != NULL.
6538         * testsuite/libgomp.c/doacross-3.c: New test.
6539         * testsuite/libgomp.c/ordered-5.c: New test.
6540         * testsuite/libgomp.c/priority.c: New test.
6541         * testsuite/libgomp.c/target-31.c: New test.
6542         * testsuite/libgomp.c/target-32.c: New test.
6543         * testsuite/libgomp.c/target-33.c: New test.
6544         * testsuite/libgomp.c/target-34.c: New test.
6546 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
6548         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6550         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6551         loop is sequential.
6553 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
6555         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6556         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6558 2015-11-12  James Norris  <jnorris@codesourcery.com>
6559             Joseph Myers  <joseph@codesourcery.com>
6561         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6562         * oacc-parallel.c (GOACC_declare): New function.
6563         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6564         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6565         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6566         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6567         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6569 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
6571         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6573 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
6575         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6576         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6578 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6580         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6581         inadvertent commit.
6583 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6585         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6586         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6587         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6588         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6589         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6591 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
6593         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6594         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6596 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
6597             Ilya Verbin  <ilya.verbin@intel.com>
6599         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6600         GOMP_loop_nonmonotonic_dynamic_start,
6601         GOMP_loop_nonmonotonic_guided_next,
6602         GOMP_loop_nonmonotonic_guided_start,
6603         GOMP_loop_ull_nonmonotonic_dynamic_next,
6604         GOMP_loop_ull_nonmonotonic_dynamic_start,
6605         GOMP_loop_ull_nonmonotonic_guided_next,
6606         GOMP_loop_ull_nonmonotonic_guided_start,
6607         GOMP_parallel_loop_nonmonotonic_dynamic,
6608         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6609         (GOMP_target_41): Renamed to ...
6610         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
6611         arguments.
6612         (GOMP_target_data_41): Renamed to ...
6613         (GOMP_target_data_ext): ... this.
6614         (GOMP_target_update_41): Renamed to ...
6615         (GOMP_target_update_ext): ... this.
6616         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6617         GOMP_target_data_ext and GOMP_target_update_ext instead of
6618         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6619         Export GOMP_loop_nonmonotonic_dynamic_next,
6620         GOMP_loop_nonmonotonic_dynamic_start,
6621         GOMP_loop_nonmonotonic_guided_next,
6622         GOMP_loop_nonmonotonic_guided_start,
6623         GOMP_loop_ull_nonmonotonic_dynamic_next,
6624         GOMP_loop_ull_nonmonotonic_dynamic_start,
6625         GOMP_loop_ull_nonmonotonic_guided_next,
6626         GOMP_loop_ull_nonmonotonic_guided_start,
6627         GOMP_parallel_loop_nonmonotonic_dynamic and
6628         GOMP_parallel_loop_nonmonotonic_guided.
6629         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6630         GOMP_parallel_loop_nonmonotonic_guided,
6631         GOMP_loop_nonmonotonic_dynamic_start,
6632         GOMP_loop_nonmonotonic_guided_start,
6633         GOMP_loop_nonmonotonic_dynamic_next,
6634         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6635         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6636         GOMP_loop_ull_nonmonotonic_guided_start,
6637         GOMP_loop_ull_nonmonotonic_dynamic_next,
6638         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6639         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6640         functions.
6641         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
6642         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6643         Use gomp_map_val function.
6644         (gomp_target_fallback_firstprivate): New static function.
6645         (GOMP_target_41): Renamed to ...
6646         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
6647         arguments.  Move firstprivate fallback handling into a new
6648         function.
6649         (GOMP_target_data_41): Renamed to ...
6650         (GOMP_target_data_ext): ... this.
6651         (GOMP_target_update_41): Renamed to ...
6652         (GOMP_target_update_ext): ... this.
6653         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6654         gomp_map_0len_lookup instead of gomp_map_lookup.
6655         (omp_target_is_present): Use gomp_map_0len_lookup instead of
6656         gomp_map_lookup.
6657         * testsuite/libgomp.c/target-28.c: Likewise.
6658         * testsuite/libgomp.c/monotonic-1.c: New test.
6659         * testsuite/libgomp.c/monotonic-2.c: New test.
6660         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6661         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6662         * testsuite/libgomp.c/pr66199-5.c: New test.
6663         * testsuite/libgomp.c/pr66199-6.c: New test.
6664         * testsuite/libgomp.c/pr66199-7.c: New test.
6665         * testsuite/libgomp.c/pr66199-8.c: New test.
6666         * testsuite/libgomp.c/pr66199-9.c: New test.
6667         * testsuite/libgomp.c/reduction-11.c: New test.
6668         * testsuite/libgomp.c/reduction-12.c: New test.
6669         * testsuite/libgomp.c/reduction-13.c: New test.
6670         * testsuite/libgomp.c/reduction-14.c: New test.
6671         * testsuite/libgomp.c/reduction-15.c: New test.
6672         * testsuite/libgomp.c/target-12.c (main): Adjust for
6673         omp_target_is_present change for one-past-last element.
6674         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6675         the same var is both mapped and privatized.
6676         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6677         handling of zero-length array sections.
6678         * testsuite/libgomp.c/target-28.c: New test.
6679         * testsuite/libgomp.c/target-29.c: New test.
6680         * testsuite/libgomp.c/target-30.c: New test.
6681         * testsuite/libgomp.c/target-teams-1.c: New test.
6682         * testsuite/libgomp.c++/member-6.C: New test.
6683         * testsuite/libgomp.c++/member-7.C: New test.
6684         * testsuite/libgomp.c++/monotonic-1.C: New test.
6685         * testsuite/libgomp.c++/monotonic-2.C: New test.
6686         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6687         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6688         * testsuite/libgomp.c++/pr66199-3.C: New test.
6689         * testsuite/libgomp.c++/pr66199-4.C: New test.
6690         * testsuite/libgomp.c++/pr66199-5.C: New test.
6691         * testsuite/libgomp.c++/pr66199-6.C: New test.
6692         * testsuite/libgomp.c++/pr66199-7.C: New test.
6693         * testsuite/libgomp.c++/pr66199-8.C: New test.
6694         * testsuite/libgomp.c++/pr66199-9.C: New test.
6695         * testsuite/libgomp.c++/reduction-11.C: New test.
6696         * testsuite/libgomp.c++/reduction-12.C: New test.
6697         * testsuite/libgomp.c++/target-13.C: New test.
6698         * testsuite/libgomp.c++/target-14.C: New test.
6699         * testsuite/libgomp.c++/target-15.C: New test.
6700         * testsuite/libgomp.c++/target-16.C: New test.
6701         * testsuite/libgomp.c++/target-17.C: New test.
6702         * testsuite/libgomp.c++/target-18.C: New test.
6703         * testsuite/libgomp.c++/target-19.C: New test.
6705 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6707         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6708         and reduction copy.
6709         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6710         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6711         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6712         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6713         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6714         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6715         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6716         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6717         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6718         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6719         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6720         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6721         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6722         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6724 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6726         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6727         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6728         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6729         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6730         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6731         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6732         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6733         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6735 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
6737         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6738         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6739         (GOMP_OFFLOAD_openacc_parallel): Likewise.
6740         * oacc-host.c (host_openacc_exec): Likewise.
6741         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6743 2015-11-03  Julian Brown  <julian@codesourcery.com>
6744             Thomas Schwinge  <thomas@codesourcery.com>
6746         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6747         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6748         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6749         Likewise.
6750         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6751         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6753 2015-11-03  James Norris  <jnorris@codesourcery.com>
6755         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6756         file.
6757         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6758         Likewise.
6759         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6760         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6761         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6762         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6763         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6765 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
6767         * openacc.h (enum acc_device_t): Reformat. Ensure layout
6768         compatibility.
6769         (enum acc_async_t): Reformat.
6770         (acc_on_device): Declare compatible with builtin and provide C++
6771         wrapper.
6772         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6774 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
6775             Cesar Philippidis  <cesar@codesourcery.com>
6777         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6778         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6779         ... this.  Add a description of the test at the top of the file.
6780         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6781         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6782         ... this.  Add a description of the test at the top of the file.
6784 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
6786         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6787         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6788         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6789         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6790         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6791         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6793 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6795         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6796         dimensions.
6798 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
6800         PR testsuite/68063
6801         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6803 2015-10-27  James Norris  <jnorris@codesourcery.com>
6805         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6806         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6808 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
6810         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6811         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6813         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6814         acc_device_nvidia usage.
6815         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6816         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6817         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6819         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6820         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6822         PR libgomp/66518
6823         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6825         PR libgomp/65437
6826         PR libgomp/66518
6827         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6828         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6830 2015-10-23  Tom de Vries  <tom@codesourcery.com>
6832         PR testsuite/68063
6833         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6835 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
6837         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6838         vector_length.
6839         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6841 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
6842             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
6844         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6845         to 0 when mapnum is 0.
6847 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6849         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6850         Cast to int from int32_t.
6852 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
6853             Aldy Hernandez  <aldyh@redhat.com>
6854             Ilya Verbin  <ilya.verbin@intel.com>
6856         * config/linux/affinity.c (omp_get_place_num_procs,
6857         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6858         * config/linux/doacross.h: New file.
6859         * config/posix/affinity.c (omp_get_place_num_procs,
6860         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6861         * config/posix/doacross.h: New file.
6862         * env.c: Include gomp-constants.h.
6863         (struct gomp_task_icv): Rename run_sched_modifier to
6864         run_sched_chunk_size.
6865         (gomp_max_task_priority_var): New variable.
6866         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6867         (handle_omp_display_env): Change _OPENMP value from 201307 to
6868         201511.  Print OMP_MAX_TASK_PRIORITY.
6869         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6870         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6871         chunk_size and run_sched_modifier to run_sched_chunk_size.
6872         (omp_get_max_task_priority, omp_get_initial_device,
6873         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6874         omp_get_partition_place_nums): New functions.
6875         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6876         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6877         to chunk_size.
6878         (omp_get_num_places_, omp_get_place_num_procs_,
6879         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6880         omp_get_place_proc_ids_8_, omp_get_place_num_,
6881         omp_get_partition_num_places_, omp_get_partition_place_nums_,
6882         omp_get_partition_place_nums_8_, omp_get_initial_device_,
6883         omp_get_max_task_priority_): New functions.
6884         * libgomp_g.h (GOMP_loop_doacross_static_start,
6885         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6886         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6887         GOMP_loop_ull_doacross_dynamic_start,
6888         GOMP_loop_ull_doacross_guided_start,
6889         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6890         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6891         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6892         GOMP_target_data_41, GOMP_target_update_41,
6893         GOMP_target_enter_exit_data): New prototypes.
6894         (GOMP_task): Add prototype argument.
6895         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6896         (struct gomp_doacross_work_share): New type.
6897         (struct gomp_work_share): Add doacross field.
6898         (struct gomp_task_icv): Rename run_sched_modifier to
6899         run_sched_chunk_size.
6900         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6901         GOMP_TASK_UNDEFERRED.  Add comments.
6902         (struct gomp_task_depend_entry): Add comments.
6903         (struct gomp_task): Likewise.
6904         (struct gomp_taskgroup): Likewise.
6905         (struct gomp_target_task): New type.
6906         (struct gomp_team): Add comment.
6907         (gomp_get_place_proc_ids_8, gomp_doacross_init,
6908         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6909         gomp_create_target_task, gomp_target_task_fn): New prototypes.
6910         (struct target_var_desc): New type.
6911         (struct target_mem_desc): Adjust comment.  Use struct
6912         target_var_desc instead of splay_tree_key for list.
6913         (REFCOUNT_INFINITY): Define.
6914         (struct splay_tree_key_s): Remove copy_from field.
6915         (struct gomp_device_descr): Add dev2dev_func field.
6916         (enum gomp_map_vars_kind): New enum.
6917         (gomp_map_vars): Add one argument.
6918         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6919         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6920         omp_get_place_num_procs, omp_get_place_num_procs_,
6921         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6922         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6923         omp_get_place_num_, omp_get_partition_num_places,
6924         omp_get_partition_num_places_, omp_get_partition_place_nums,
6925         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6926         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6927         omp_target_free, omp_target_is_present, omp_target_memcpy,
6928         omp_target_memcpy_rect, omp_target_associate_ptr and
6929         omp_target_disassociate_ptr.
6930         (GOMP_4.0.2): Renamed to ...
6931         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
6932         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6933         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6934         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6935         GOMP_loop_doacross_static_start, GOMP_doacross_post,
6936         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6937         GOMP_loop_ull_doacross_guided_start,
6938         GOMP_loop_ull_doacross_runtime_start,
6939         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6940         GOMP_doacross_ull_wait.
6941         * libgomp.texi: Document omp_get_max_task_priority.
6942         Rename modifier argument to chunk_size for omp_set_schedule and
6943         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
6944         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6945         to run_sched_chunk_size renaming.
6946         (GOMP_loop_ordered_runtime_start): Likewise.
6947         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6948         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6949         GOMP_parallel_loop_runtime_start): New functions.
6950         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6951         to run_sched_chunk_size renaming.
6952         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6953         GOMP_loop_doacross_guided_start): New functions or aliases.
6954         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6955         run_sched_modifier to run_sched_chunk_size renaming.
6956         (GOMP_loop_ull_ordered_runtime_start): Likewise.
6957         (gomp_loop_ull_doacross_static_start,
6958         gomp_loop_ull_doacross_dynamic_start,
6959         gomp_loop_ull_doacross_guided_start,
6960         GOMP_loop_ull_doacross_runtime_start): New functions.
6961         (GOMP_loop_ull_doacross_static_start,
6962         GOMP_loop_ull_doacross_dynamic_start,
6963         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6964         * oacc-mem.c (acc_map_data, present_create_copy,
6965         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6966         to gomp_map_vars.
6967         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6968         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6969         instead of false to gomp_map_vars.
6970         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
6971         * omp.h.in (omp_lock_hint_t): New type.
6972         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6973         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6974         omp_get_place_num, omp_get_partition_num_places,
6975         omp_get_partition_place_nums, omp_get_initial_device,
6976         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6977         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6978         omp_target_associate_ptr, omp_target_disassociate_ptr): New
6979         prototypes.
6980         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6981         (omp_lock_hint_none, omp_lock_hint_uncontended,
6982         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6983         omp_lock_hint_speculative): New parameters.
6984         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6985         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6986         omp_get_place_num, omp_get_partition_num_places,
6987         omp_get_partition_place_nums, omp_get_initial_device,
6988         omp_get_max_task_priority): New interfaces.
6989         (omp_set_schedule, omp_get_schedule): Rename modifier argument
6990         to chunk_size.
6991         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6992         (omp_lock_hint_none, omp_lock_hint_uncontended,
6993         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6994         omp_lock_hint_speculative): New parameters.
6995         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6996         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6997         omp_get_place_num, omp_get_partition_num_places,
6998         omp_get_partition_place_nums, omp_get_initial_device,
6999         omp_get_max_task_priority): New functions and subroutines.
7000         * ordered.c: Include stdarg.h and string.h.
7001         (MAX_COLLAPSED_BITS): Define.
7002         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
7003         gomp_doacross_ull_init, GOMP_doacross_ull_post,
7004         GOMP_doacross_ull_wait): New functions.
7005         * target.c: Include errno.h.
7006         (resolve_device): If device is not initialized, call
7007         gomp_init_device on it.
7008         (gomp_map_lookup): New function.
7009         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
7010         Don't bump refcount if REFCOUNT_INFINITY.  Handle
7011         GOMP_MAP_ALWAYS_TO_P.
7012         (get_kind): Rename is_openacc argument to short_mapkind.
7013         (gomp_map_pointer): Use gomp_map_lookup.
7014         (gomp_map_fields_existing): New function.
7015         (gomp_map_vars): Rename is_openacc argument to short_mapkind
7016         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
7017         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
7018         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
7019         Adjust for tgt->list changed type and copy_from living in there.
7020         (gomp_copy_from_async): Adjust for tgt->list changed type and
7021         copy_from living in there.
7022         (gomp_unmap_vars): Likewise.
7023         (gomp_update): Likewise.  Rename is_openacc argument to
7024         short_mapkind.  Don't fail if object is not mapped.
7025         (gomp_load_image_to_device): Initialize refcount to
7026         REFCOUNT_INFINITY.
7027         (gomp_target_fallback): New function.
7028         (gomp_get_target_fn_addr): Likewise.
7029         (GOMP_target): Adjust gomp_map_vars caller, use
7030         gomp_get_target_fn_addr and gomp_target_fallback.
7031         (GOMP_target_41): New function.
7032         (gomp_target_data_fallback): New function.
7033         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
7034         (GOMP_target_data_41): New function.
7035         (GOMP_target_update): Adjust gomp_update caller.
7036         (GOMP_target_update_41): New function.
7037         (gomp_exit_data, GOMP_target_enter_exit_data,
7038         gomp_target_task_fn, omp_target_alloc, omp_target_free,
7039         omp_target_is_present, omp_target_memcpy,
7040         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7041         omp_target_associate_ptr, omp_target_disassociate_ptr,
7042         gomp_load_plugin_for_device): New functions.
7043         * task.c: Include gomp-constants.h.  Include taskloop.c
7044         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7045         (gomp_task_handle_depend): New function.
7046         (GOMP_task): Use it.  Add priority argument.  Use
7047         gomp-constant.h constants instead of hardcoded numbers.
7048         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7049         (gomp_create_target_task): New function.
7050         (verify_children_queue, verify_taskgroup_queue,
7051         verify_task_queue): New functions.
7052         (gomp_task_run_pre): Call verify_*_queue functions.
7053         If an upcoming tied task is about to leave the sibling or
7054         taskgroup queues in an invalid state, adjust appropriately.
7055         Remove taskgroup argument.  Add comments.
7056         (gomp_task_run_post_handle_dependers): Add comments.
7057         (gomp_task_run_post_remove_parent): Likewise.
7058         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7059         (GOMP_taskwait): Likewise.  Add comments.
7060         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7061         problem such that the first non parent_depends_on task does not
7062         end up at the end of the children queue.
7063         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7064         GOMP_TASK_UNDEFERRED.
7065         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7066         * taskloop.c: New file.
7067         * testsuite/lib/libgomp.exp
7068         (check_effective_target_offload_device_nonshared_as): New proc.
7069         * testsuite/libgomp.c/affinity-2.c: New test.
7070         * testsuite/libgomp.c/doacross-1.c: New test.
7071         * testsuite/libgomp.c/doacross-2.c: New test.
7072         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7073         Add map clause to target.
7074         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7075         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7076         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7077         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7078         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7079         Likewise.
7080         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7081         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7082         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7083         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7084         not defined.  Use those where needed.
7085         * testsuite/libgomp.c/for-4.c: New test.
7086         * testsuite/libgomp.c/for-5.c: New test.
7087         * testsuite/libgomp.c/for-6.c: New test.
7088         * testsuite/libgomp.c/linear-1.c: New test.
7089         * testsuite/libgomp.c/ordered-4.c: New test.
7090         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7091         only allowed on the loop iterator.
7092         * testsuite/libgomp.c/pr66199-3.c: New test.
7093         * testsuite/libgomp.c/pr66199-4.c: New test.
7094         * testsuite/libgomp.c/reduction-7.c: New test.
7095         * testsuite/libgomp.c/reduction-8.c: New test.
7096         * testsuite/libgomp.c/reduction-9.c: New test.
7097         * testsuite/libgomp.c/reduction-10.c: New test.
7098         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7099         map(tofrom:s).
7100         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7101         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7102         * testsuite/libgomp.c/target-11.c: New test.
7103         * testsuite/libgomp.c/target-12.c: New test.
7104         * testsuite/libgomp.c/target-13.c: New test.
7105         * testsuite/libgomp.c/target-14.c: New test.
7106         * testsuite/libgomp.c/target-15.c: New test.
7107         * testsuite/libgomp.c/target-16.c: New test.
7108         * testsuite/libgomp.c/target-17.c: New test.
7109         * testsuite/libgomp.c/target-18.c: New test.
7110         * testsuite/libgomp.c/target-19.c: New test.
7111         * testsuite/libgomp.c/target-20.c: New test.
7112         * testsuite/libgomp.c/target-21.c: New test.
7113         * testsuite/libgomp.c/target-22.c: New test.
7114         * testsuite/libgomp.c/target-23.c: New test.
7115         * testsuite/libgomp.c/target-24.c: New test.
7116         * testsuite/libgomp.c/target-25.c: New test.
7117         * testsuite/libgomp.c/target-26.c: New test.
7118         * testsuite/libgomp.c/target-27.c: New test.
7119         * testsuite/libgomp.c/taskloop-1.c: New test.
7120         * testsuite/libgomp.c/taskloop-2.c: New test.
7121         * testsuite/libgomp.c/taskloop-3.c: New test.
7122         * testsuite/libgomp.c/taskloop-4.c: New test.
7123         * testsuite/libgomp.c++/ctor-13.C: New test.
7124         * testsuite/libgomp.c++/doacross-1.C: New test.
7125         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7126         Replace offload_device with offload_device_nonshared_as.
7127         * testsuite/libgomp.c++/for-12.C: New test.
7128         * testsuite/libgomp.c++/for-13.C: New test.
7129         * testsuite/libgomp.c++/for-14.C: New test.
7130         * testsuite/libgomp.c++/linear-1.C: New test.
7131         * testsuite/libgomp.c++/member-1.C: New test.
7132         * testsuite/libgomp.c++/member-2.C: New test.
7133         * testsuite/libgomp.c++/member-3.C: New test.
7134         * testsuite/libgomp.c++/member-4.C: New test.
7135         * testsuite/libgomp.c++/member-5.C: New test.
7136         * testsuite/libgomp.c++/ordered-1.C: New test.
7137         * testsuite/libgomp.c++/reduction-5.C: New test.
7138         * testsuite/libgomp.c++/reduction-6.C: New test.
7139         * testsuite/libgomp.c++/reduction-7.C: New test.
7140         * testsuite/libgomp.c++/reduction-8.C: New test.
7141         * testsuite/libgomp.c++/reduction-9.C: New test.
7142         * testsuite/libgomp.c++/reduction-10.C: New test.
7143         * testsuite/libgomp.c++/reference-1.C: New test.
7144         * testsuite/libgomp.c++/simd14.C: New test.
7145         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7146         * testsuite/libgomp.c++/target-5.C: New test.
7147         * testsuite/libgomp.c++/target-6.C: New test.
7148         * testsuite/libgomp.c++/target-7.C: New test.
7149         * testsuite/libgomp.c++/target-8.C: New test.
7150         * testsuite/libgomp.c++/target-9.C: New test.
7151         * testsuite/libgomp.c++/target-10.C: New test.
7152         * testsuite/libgomp.c++/target-11.C: New test.
7153         * testsuite/libgomp.c++/target-12.C: New test.
7154         * testsuite/libgomp.c++/taskloop-1.C: New test.
7155         * testsuite/libgomp.c++/taskloop-2.C: New test.
7156         * testsuite/libgomp.c++/taskloop-3.C: New test.
7157         * testsuite/libgomp.c++/taskloop-4.C: New test.
7158         * testsuite/libgomp.c++/taskloop-5.C: New test.
7159         * testsuite/libgomp.c++/taskloop-6.C: New test.
7160         * testsuite/libgomp.c++/taskloop-7.C: New test.
7161         * testsuite/libgomp.c++/taskloop-8.C: New test.
7162         * testsuite/libgomp.c++/taskloop-9.C: New test.
7163         * testsuite/libgomp.fortran/affinity1.f90: New test.
7164         * testsuite/libgomp.fortran/affinity2.f90: New test.
7166 2015-10-13  Tom de Vries  <tom@codesourcery.com>
7168         PR tree-optimization/67476
7169         * testsuite/libgomp.c/autopar-3.c: New test.
7170         * testsuite/libgomp.c/autopar-4.c: New test.
7171         * testsuite/libgomp.c/autopar-5.c: New test.
7172         * testsuite/libgomp.c/autopar-6.c: New test.
7173         * testsuite/libgomp.c/autopar-7.c: New test.
7174         * testsuite/libgomp.c/autopar-8.c: New test.
7176 2015-10-12  James Norris  <jnorris@codesourcery.com>
7178         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7179         initializer.
7181 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
7183         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7184         using load_gcc_lib.
7186 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
7188         * oacc-ptx.h: Remove file, moving its content into...
7189         * config/nvptx/fortran.c: ... here...
7190         * config/nvptx/oacc-init.c: ..., here...
7191         * config/nvptx/oacc-parallel.c: ..., and here.
7192         * config/nvptx/openacc.f90: New file.
7193         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7194         (link_ptx): Don't link in predefined bits of PTX code.
7196 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
7197             Bernd Schmidt <bernds@codesourcery.com>
7199         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7200         (struct targ_ptx_obj): New.
7201         (nvptx_tdata): Move earlier, change data format.
7202         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
7203         objects.
7204         (GOMP_OFFLOAD_load_image): Adjust.
7206 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
7208         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7209         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7210         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7211         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7212         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7213         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7214         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7215         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7216         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7217         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7218         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7219         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7220         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7221         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7222         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7223         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7224         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7225         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7226         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7227         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7228         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7229         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7230         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7231         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7232         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7233         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7234         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7235         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7236         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7237         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7238         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7239         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7240         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7241         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7242         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7243         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7244         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7245         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7246         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7247         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7248         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7249         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7250         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7251         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7252         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7253         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7254         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7255         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7256         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7257         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7258         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7259         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7260         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7261         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7262         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7263         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7264         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7265         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7266         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7267         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7268         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7269         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7270         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7272 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7274         * oacc-init.c (acc_on_device): Force optimization level.
7276 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7278         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7279         (cuda_errlist): Delete.
7280         (cuda_error): Reimplement.
7282 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
7284         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7285         array.
7286         * libgomp.map (GOACC_parallel_keyed): New.
7287         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
7288         all callers.
7289         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
7290         and take keyed varargs list.  Adjust call to exec_func.
7291         (GOACC_parallel): Force host fallback.
7292         * libgomp_g.h (GOACC_parallel): Remove.
7293         (GOACC_parallel_keyed): Declare.
7294         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7295         (struct targ_gn_descriptor): Replace name field with launch field.
7296         (nvptx_exec): Lose separate geometry args, take array.  Process
7297         dynamic dimensions and adjust.
7298         (struct nvptx_tdata): Replace fn_names field with fn_descs.
7299         (GOMP_OFFLOAD_load_image): Adjust for change in function table
7300         data.
7301         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7302         passing.
7303         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7304         passing.
7306 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
7308         PR libgomp/67141
7309         * oacc-int.h (goacc_host_init): Add declaration.
7310         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7311         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7313 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
7314             Sebastian Pop  <s.pop@samsung.com>
7316         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7317         match o/p.
7318         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7319         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7320         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7321         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7322         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7324 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
7326         * configure.tgt: Add missing ;; in between nvptx and rtems
7327         snippets.
7329 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7331         * config/posix/pool.h (gomp_adjust_thread_attr): New.
7332         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7333         (gomp_thread_pool_reservoir): Add priority member.
7334         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7335         priority.
7336         (parse_thread_pools): Likewise.
7337         * team.c (gomp_team_start): Call configuration provided
7338         gomp_adjust_thread_attr(). Destroy thread attributes if
7339         necessary.
7340         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7342 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7344         * config/posix/pool.h: New.
7345         * config/rtems/pool.h: Likewise.
7346         * config/rtems/proc.c: Likewise.
7347         * libgomp.h (gomp_thread_destructor): Declare.
7348         * team.c: Include configuration provided "pool.h".
7349         (gomp_get_thread_pool): Define in configuration.
7350         (gomp_team_end): Call configuration defined
7351         gomp_release_thread_pool().
7353 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7355         * config/rtems/bar.c: New.
7356         * config/rtems/bar.h: Likewise.
7357         * config/rtems/mutex.c: Likewise.
7358         * config/rtems/mutex.h: Likewise.
7359         * config/rtems/sem.c: Likewise.
7360         * config/rtems/sem.h: Likewise.
7361         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7362         <sys/lock.h> header file.
7363         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7364         supported by Newlib.
7365         * configure: Regenerate.
7367 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7369         * team.c (gomp_new_thread_pool): Delete and move content to ...
7370         (gomp_get_thread_pool): ... new function.  Allocate and
7371         initialize thread pool on demand.
7372         (get_last_team): Use gomp_get_thread_pool().
7373         (gomp_team_start): Delete thread pool initialization.
7375 2015-09-03  Tom de Vries  <tom@codesourcery.com>
7377         PR tree-optimization/65637
7378         * testsuite/libgomp.c/autopar-2.c: New test.
7380 2015-08-29  Tom de Vries  <tom@codesourcery.com>
7382         PR tree-optimization/46193
7383         * testsuite/libgomp.c/pr46193.c: New test.
7385 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
7387         libgomp/
7388         * libgomp.map: Add 4.0.2 version.
7389         * target.c (offload_image_descr): Add version field.
7390         (gomp_load_image_to_device): Add version argument.  Adjust plugin
7391         call.  Improve load mismatch diagnostic.
7392         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
7393         call.
7394         (GOMP_offload_regster): Make stub function, move bulk to ...
7395         (GOMP_offload_register_ver): ... here.  Process version argument.
7396         (GOMP_offload_unregister): Make stub function, move bulk to ...
7397         (GOMP_offload_unregister_ver): ... here.  Process version argument.
7398         (gomp_init_device): Process version field.
7399         (gomp_unload_device): Process version field.
7400         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7401         macros.  Check plugin version.
7402         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
7403         loader and unloader types.
7404         * oacc-host.c: Include gomp-constants.h.
7405         (host_version): New.
7406         (host_load_image, host_unload_image): Adjust.
7407         (host_dispatch): Add host_version.
7408         * plugin/plugin-nvptx.c: Include gomp-constants.h.
7409         (GOMP_OFFLOAD_version): New.
7410         (GOMP_OFFLOAD_load_image): Add version arg and check it.
7411         (GOMP_OFFLOAD_unload_image): Likewise.
7412         * plugin/plugin-host.c: Include gomp-constants.h.
7413         (GOMP_OFFLOAD_version): New.
7414         (GOMP_OFFLOAD_load_image): Add version arg.
7415         (GOMP_OFFLOAD_unload_image): Likewise.
7417 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7419         PR tree-optimization/65468
7420         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7422 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7424         PR tree-optimization/65468
7425         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7427 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
7429         PR libgomp/66761
7430         PR libgomp/67303
7431         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7432         (gomp_iter_guided_next): Idem.
7433         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7434         (gomp_iter_ull_guided_next): Idem.
7435         * config/linux/wait.h (do_spin): Idem.
7437 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7439         * libgomp-plugin.h (enum offload_target_type): Remove
7440         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7441         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7442         * openacc.h (enum acc_device_t): Likewise.
7443         * openacc_lib.h: Likewise.
7444         * oacc-init.c (name_of_acc_device_t): Don't handle it.
7445         (acc_on_device): Just use __builtin_acc_on_device.
7446         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7447         of acc_on_device builtin.
7448         * plugin/plugin-host.h: Remove file.
7449         * plugin/plugin-host.c: Likewise, but salvage some content into...
7450         * oacc-host.c: ... this file.
7451         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7452         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7453         * Makefile.in: Regenerate.
7454         * configure: Likewise.
7455         * testsuite/lib/libgomp.exp
7456         (check_effective_target_openacc_host_nonshm_selected): Remove.
7457         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7458         ACC_DEVICE_TYPE=host_nonshm.
7459         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7460         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7461         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7462         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7463         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7464         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7466 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7467             Jakub Jelinek  <jakub@redhat.com>
7469         * config/nvptx/affinity.c: New file.
7470         * config/nvptx/alloc.c: Likewise.
7471         * config/nvptx/bar.c: Likewise.
7472         * config/nvptx/barrier.c: Likewise.
7473         * config/nvptx/critical.c: Likewise.
7474         * config/nvptx/env.c: Likewise.
7475         * config/nvptx/error.c: Likewise.
7476         * config/nvptx/fortran.c: Likewise.
7477         * config/nvptx/iter.c: Likewise.
7478         * config/nvptx/iter_ull.c: Likewise.
7479         * config/nvptx/libgomp-plugin.c: Likewise.
7480         * config/nvptx/lock.c: Likewise.
7481         * config/nvptx/loop.c: Likewise.
7482         * config/nvptx/loop_ull.c: Likewise.
7483         * config/nvptx/mutex.c: Likewise.
7484         * config/nvptx/oacc-async.c: Likewise.
7485         * config/nvptx/oacc-cuda.c: Likewise.
7486         * config/nvptx/oacc-host.c: Likewise.
7487         * config/nvptx/oacc-init.c: Likewise.
7488         * config/nvptx/oacc-mem.c: Likewise.
7489         * config/nvptx/oacc-parallel.c: Likewise.
7490         * config/nvptx/oacc-plugin.c: Likewise.
7491         * config/nvptx/omp-lock.h: Likewise.
7492         * config/nvptx/ordered.c: Likewise.
7493         * config/nvptx/parallel.c: Likewise.
7494         * config/nvptx/proc.c: Likewise.
7495         * config/nvptx/ptrlock.c: Likewise.
7496         * config/nvptx/sections.c: Likewise.
7497         * config/nvptx/sem.c: Likewise.
7498         * config/nvptx/single.c: Likewise.
7499         * config/nvptx/splay-tree.c: Likewise.
7500         * config/nvptx/target.c: Likewise.
7501         * config/nvptx/task.c: Likewise.
7502         * config/nvptx/team.c: Likewise.
7503         * config/nvptx/time.c: Likewise.
7504         * config/nvptx/work.c: Likewise.
7505         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7506         * configure: Regenerate.
7507         * configure.tgt (config_path): Set to "nvptx" for target
7508         nvptx*-*-*.
7510 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7512         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7514 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
7516         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7517         (cuda_errlist): Constify.
7518         (errmsg):  Move into ...
7519         (cuda_error): ... here.  Make smaller.
7520         (_XSTR, _STR): Delete.
7521         (cuda_synames): Delete.
7522         (verify_device_library): Delete.
7523         (nvptx_init): Don't call it.
7525 2015-07-28  Tom de Vries  <tom@codesourcery.com>
7527         * testsuite/libgomp.c/uns-outer-4.c: New test.
7529 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
7531         * testsuite/libgomp.c/pr66714.c: New test.
7533 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7535         PR libgomp/66950
7536         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7537         (fib_ref): New function.
7538         (fib): Correct corner cases in the recursion.
7539         (main): Replace the non-simd loop with fib_ref call.
7540         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7541         subroutine.
7542         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
7543         for the last array element value.  Replace the non-simd loop with
7544         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
7545         of the last array element with according Fibonacci sequence element.
7546         (fib): Correct corner cases in the recursion.
7548 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
7550         * target.c (gomp_offload_image_to_device): Rename to ...
7551         (gomp_load_image_to_device): ... here.
7552         (GOMP_offload_register): Adjust call.
7553         (gomp_init_device): Likewise.
7554         (gomp_unload_image_from_device): New.  Broken out of ...
7555         (GOMP_offload_unregister): ... here.  Call it.
7556         (gomp_unload_device): New.
7557         * libgomp.h (gomp_unload_device): Declare.
7558         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7559         mem maps.
7561 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
7563         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7564         wait=-specific if.
7565         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7566         !=0 condition.
7567         (goacc_waits): Move !num_waits handling to ...
7568         (GOACC_wait): ... here, the only caller that might have zero waits.
7570         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7571         (struct ptx_image_data): Move earlier, add fns field.
7572         (struct ptx_device): Add images and image_lock fields.
7573         (ptx_images, ptx_image_lock): Delete.
7574         (nvptx_open_device): Initialize images and image_lock fields.
7575         (nvptx_close_device): Destroy image_lock.
7576         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7577         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7578         fields.
7580 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
7582         * target.c (GOMP_offload_register): Use int for device type arg.
7583         (GOMP_offload_unregister): Likewise.
7585         * target.c (struct_offload_image_descr): Constify host_table.
7586         (gomp_offload_image_to_device): Likewise.
7587         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7589         * libgomp.h (gomp_device_descr): Constify target data arguments.
7590         * target.c (struct offload_image_descr): Constify target_data.
7591         (gomp_offload_image_to_device): Likewise.
7592         (GOMP_offload_register): Likewise.
7593         (GOMP_offload_unregister): Likewise.
7594         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7595         GOMP_OFFLOAD_unload_image): Constify target data.
7596         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7597         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7599 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
7601         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7602         Workaround driver library const error.
7603         (struct nvptx_tdata, nvptx_tdata_t): New.
7604         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7605         type.
7607 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7609         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7610         of EPS parameter from integer to real.
7611         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7612         type of EPS parameter from integer to real.
7614 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7616         * team.c (get_last_team): New.
7617         (gomp_new_team): Recycle last non-nested team if possible.
7618         (gomp_team_end): Move team work share list free lock destruction
7619         to ...
7620         (free_team): ... here.
7622 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7624         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7625         and ref from int to double.  Replaced their comparison with
7626         an inequality of their difference and EPS.
7627         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7628         comparison of pri and a reference number with an inequality of their
7629         difference and EPS.
7630         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7631         the comparison of sum and sum_ref with an inequality of their
7632         difference and EPS.
7633         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7634         the comparison of pri and a reference number with an inequality of
7635         their difference and EPS.
7637 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7639         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7640         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7641         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7642         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7643         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7644         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7645         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7646         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7647         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7648         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7649         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7650         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7651         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7652         variables.
7653         (vec_mult): Likewise.  Add #pragma omp taskwait.
7654         (main): Adjust caller.
7655         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7656         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7657         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7658         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7659         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7660         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7661         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7662         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7663         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7664         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7665         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7666         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7667         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7668         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7669         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7670         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7671         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7672         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7673         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7674         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7675         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7676         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7677         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7678         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7679         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7680         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7681         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7682         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7683         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7684         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7685         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7686         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7687         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7688         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7689         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7690         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7691         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7692         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7693         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7694         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7695         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7696         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7697         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7698         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7699         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7700         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7701         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7702         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7703         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7704         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7705         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7706         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7707         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7708         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7709         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7710         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7711         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7712         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7713         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7714         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7715         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7716         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7717         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7718         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7719         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7720         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7721         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7722         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7723         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7724         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7725         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7726         (vec_mult): Add !$omp taskwait.
7727         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7728         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7729         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7730         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7731         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7732         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7733         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7734         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7735         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7736         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7737         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7738         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7739         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7740         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7741         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7742         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7743         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7744         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7745         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7746         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7747         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7748         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7749         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7750         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7751         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7752         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7753         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7754         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7755         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7756         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7757         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7758         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7759         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7760         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7761         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7762         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7763         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7764         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7765         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7766         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7767         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7768         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7769         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7770         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7771         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7772         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7773         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7774         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7775         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7776         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7777         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7778         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7779         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7780         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7781         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7782         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7783         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7784         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7785         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7786         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7787         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7788         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7789         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7790         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7791         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7792         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7793         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7795 2015-07-10  Tom de Vries  <tom@codesourcery.com>
7797         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7798         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7800 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
7802         PR libgomp/65099
7803         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7804         in a 64-bit configuration.
7805         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7806         offloading testing if no such device is available.
7807         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7808         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7810 2015-07-08  Tom de Vries  <tom@codesourcery.com>
7812         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7813         second call to f.
7814         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7816 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7818         PR tree-optimization/66642
7819         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7820         iteration count case.
7821         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7822         function, factor out of ...
7823         (main): ... here.  Test low iteration count case.
7825 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7827         * libgomp.h (gomp_thread_pool): Comment last_team field.
7829 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
7831         * testsuite/libgomp.c++/pr66702-1.C: Require
7832         vect_simd_clones effective target.
7833         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7835 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7837         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7838         already set.  Use DEFAULT_CFLAGS in dg-runtest.
7839         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7840         "-O2".
7842 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7844         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7845         already set.  Use DEFAULT_CFLAGS in dg-runtest.
7846         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7847         * testsuite/libgomp.c++/pr64824.C: Same.
7848         * testsuite/libgomp.c++/pr64868.C: Same.
7849         * testsuite/libgomp.c++/pr66199-1.C: Same.
7850         * testsuite/libgomp.c++/pr66199-2.C: Same.
7851         * testsuite/libgomp.c++/target-2.C: Same.
7852         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7853         -std=<standard> option.
7854         * testsuite/libgomp.c++/udr-11.C: Same.
7855         * testsuite/libgomp.c++/udr-12.C: Same.
7856         * testsuite/libgomp.c++/udr-13.C: Same.
7857         * testsuite/libgomp.c++/udr-14.C: Same.
7858         * testsuite/libgomp.c++/udr-15.C: Same.
7859         * testsuite/libgomp.c++/udr-16.C: Same.
7860         * testsuite/libgomp.c++/udr-17.C: Same.
7861         * testsuite/libgomp.c++/udr-18.C: Same.
7862         * testsuite/libgomp.c++/udr-19.C: Same.
7863         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7864         * testsuite/libgomp.c++/simd-1.C: Same.
7865         * testsuite/libgomp.c++/simd-2.C: Same.
7866         * testsuite/libgomp.c++/simd-3.C: Same.
7867         * testsuite/libgomp.c++/simd-4.C: Same.
7868         * testsuite/libgomp.c++/simd-5.C: Same.
7869         * testsuite/libgomp.c++/simd-6.C: Same.
7870         * testsuite/libgomp.c++/simd-7.C: Same.
7871         * testsuite/libgomp.c++/simd-8.C: Same.
7872         * testsuite/libgomp.c++/simd-9.C: Same.
7873         * testsuite/libgomp.c++/simd10.C: Same.
7874         * testsuite/libgomp.c++/simd11.C: Same.
7875         * testsuite/libgomp.c++/simd12.C: Same.
7876         * testsuite/libgomp.c++/simd13.C: Same.
7878 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
7880         PR middle-end/66702
7881         * testsuite/libgomp.c++/pr66702-1.C: New test.
7882         * testsuite/libgomp.c++/pr66702-2.C: New test.
7884 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7886         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7887         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7888         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7889         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7891 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7893         PR tree-optimization/66652
7894         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7895         using restrict pointers.
7896         (main): Add arguments to calls to f.
7897         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7899 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
7901         * configure.ac: Fix check for header <sys/sysctl.h>.
7902         * configure: Regenerate.
7903         * config.h.in: Likewise.
7905 2015-06-23  Tom de Vries  <tom@codesourcery.com>
7907         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7908         abort.
7909         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7911 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
7913         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7914         acc_device_nvidia.
7916         PR libgomp/66518
7917         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7918         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7920 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7922         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
7923         dg-additional-options for any remaining options.
7924         * testsuite/libgomp.c/atomic-2.c: Same.
7925         * testsuite/libgomp.c/atomic-4.c: Same.
7926         * testsuite/libgomp.c/atomic-5.c: Same.
7927         * testsuite/libgomp.c/atomic-6.c: Same.
7928         * testsuite/libgomp.c/autopar-1.c: Same.
7929         * testsuite/libgomp.c/copyin-1.c: Same.
7930         * testsuite/libgomp.c/copyin-2.c: Same.
7931         * testsuite/libgomp.c/copyin-3.c: Same.
7932         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7933         * testsuite/libgomp.c/nestedfn-5.c: Same.
7934         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7935         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7936         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7937         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7938         * testsuite/libgomp.c/pr32362-1.c: Same.
7939         * testsuite/libgomp.c/pr32362-2.c: Same.
7940         * testsuite/libgomp.c/pr32362-3.c: Same.
7941         * testsuite/libgomp.c/pr39591-1.c: Same.
7942         * testsuite/libgomp.c/pr39591-2.c: Same.
7943         * testsuite/libgomp.c/pr39591-3.c: Same.
7944         * testsuite/libgomp.c/pr58392.c: Same.
7945         * testsuite/libgomp.c/pr58756.c: Same.
7946         * testsuite/libgomp.c/simd-1.c: Same.
7947         * testsuite/libgomp.c/simd-10.c: Same.
7948         * testsuite/libgomp.c/simd-11.c: Same.
7949         * testsuite/libgomp.c/simd-12.c: Same.
7950         * testsuite/libgomp.c/simd-13.c: Same.
7951         * testsuite/libgomp.c/simd-14.c: Same.
7952         * testsuite/libgomp.c/simd-15.c: Same.
7953         * testsuite/libgomp.c/simd-2.c: Same.
7954         * testsuite/libgomp.c/simd-3.c: Same.
7955         * testsuite/libgomp.c/simd-4.c: Same.
7956         * testsuite/libgomp.c/simd-5.c: Same.
7957         * testsuite/libgomp.c/simd-6.c: Same.
7958         * testsuite/libgomp.c/simd-7.c: Same.
7959         * testsuite/libgomp.c/simd-8.c: Same.
7960         * testsuite/libgomp.c/simd-9.c: Same.
7962 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7964         * testsuite/libgomp.c/pr35625.c: Fix typo.
7966 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7968         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7969         in dg-options.
7970         * testsuite/libgomp.c/atomic-3.c: Same.
7971         * testsuite/libgomp.c/debug-1.c: Same.
7972         * testsuite/libgomp.c/nqueens-1.c: Same.
7973         * testsuite/libgomp.c/pr26171.c: Same.
7974         * testsuite/libgomp.c/pr48591.c: Same.
7975         * testsuite/libgomp.c/pr64824.c: Same.
7976         * testsuite/libgomp.c/pr64868.c: Same.
7977         * testsuite/libgomp.c/pr66133.c: Same.
7978         * testsuite/libgomp.c/pr66199-1.c: Same.
7979         * testsuite/libgomp.c/pr66199-2.c: Same.
7980         * testsuite/libgomp.c/target-8.c: Same.
7982 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7984         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7985         -std={gnu99,c99}.
7986         * testsuite/libgomp.c/for-1.c: Same.
7987         * testsuite/libgomp.c/for-2.c: Same.
7988         * testsuite/libgomp.c/for-3.c: Same.
7989         * testsuite/libgomp.c/pr35625.c: Same.
7990         * testsuite/libgomp.c/pr39154.c: Same.
7991         * testsuite/libgomp.c/simd-16.c: Same.
7992         * testsuite/libgomp.c/simd-17.c: Same.
7994 2015-06-13  Tom de Vries  <tom@codesourcery.com>
7996         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7998 2015-06-13  Tom de Vries  <tom@codesourcery.com>
8000         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
8001         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
8002         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
8003         (N): Define.
8004         (main): Use N instead of hardcoded constants.
8006 2015-06-05  Tom de Vries  <tom@codesourcery.com>
8008         merge from gomp4 branch:
8009         2015-05-28  Tom de Vries  <tom@codesourcery.com>
8011         PR tree-optimization/65443
8012         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
8013         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
8014         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
8016 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8018         * testsuite/libgomp.graphite/bounds.c: Adjust for
8019         cleanup-tree-dump removal.
8020         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
8021         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8022         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8023         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8024         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8025         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8026         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8027         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8028         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8029         * testsuite/libgomp.graphite/pr41118.c: Likewise.
8031 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
8033         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
8034         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8035         (futex_wake) [!__x86_64__]: Ditto.
8037 2015-05-28  Julian Brown  <julian@codesourcery.com>
8039         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8040         function comment. Only call gomp_fatal if new argument is true.
8041         (acc_dev_num_out_of_range): New function.
8042         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8043         acc_dev_num_out_of_range as appropriate.
8044         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8045         (acc_get_device_num, acc_set_device_num): Update calls to
8046         resolve_device.
8047         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8048         output.
8050 2015-05-28  Julian Brown  <julian@codesourcery.com>
8052         PR libgomp/65742
8053         * oacc-init.c (plugin/plugin-host.h): Include.
8054         (acc_on_device): Check whether we're in an offloaded region for
8055         host_nonshm
8056         plugin. Don't use __builtin_acc_on_device.
8057         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8058         nonshm_exec flag in thread-local data.
8059         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8060         data for host_nonshm plugin.
8061         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8062         for host_nonshm plugin.
8063         * plugin/plugin-host.h: New.
8065 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
8067         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8069 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
8071         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8072         Declare as int.
8073         (FUTEX_PRIVATE_FLAG): Remove L suffix.
8074         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8075         Declare as int.
8077 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
8079         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
8081 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
8083         * target.c (gomp_map_pointer): New function abstracting out
8084         GOMP_MAP_POINTER handling.
8085         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8086         gomp_map_pointer().
8088 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
8090         PR middle-end/66199
8091         * testsuite/libgomp.c/pr66199-1.c: New test.
8092         * testsuite/libgomp.c/pr66199-2.c: New test.
8093         * testsuite/libgomp.c++/pr66199-1.C: New test.
8094         * testsuite/libgomp.c++/pr66199-2.C: New test.
8095         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8096         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8098 2015-05-19  Julian Brown  <julian@codesourcery.com>
8100         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8101         on cuInit failure.
8103 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
8105         PR middle-end/66133
8106         * testsuite/libgomp.c/pr66133.c: New test.
8108 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
8110         * Makefile.in: Regenerated with automake-1.11.6.
8111         * aclocal.m4: Likewise.
8112         * config.h.in: Likewise.
8113         * configure: Likewise.
8114         * testsuite/Makefile.in: Likewise.
8116 2015-05-08  Jason Merrill  <jason@redhat.com>
8118         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8119         _Complex.
8121         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8123 2015-05-06  Julian Brown  <julian@codesourcery.com>
8125         * oacc-init.c (acc_device_lock): Add explanatory comment.
8126         (resolve_device): Add comment about locking requirement.
8127         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8128         gomp_init_device and gomp_fini_device calls.
8129         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8130         (acc_get_device_num, acc_set_device_num): Add locking around
8131         resolve_device and gomp_init_device calls.
8133 2015-05-06  Julian Brown  <julian@codesourcery.com>
8135         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8136         goacc_thread_lock on error paths.
8137         * oacc-mem.c (lookup_host): Remove locking from function. Note
8138         locking requirement for caller in function comment.
8139         (lookup_dev): Likewise.
8140         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8141         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8142         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8143         Add locking.
8145 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
8147         PR testsuite/65205
8148         PR libgomp/65993
8149         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8150         don't expect "0x" prefix for "%p" format specifier, don't expect
8151         "(nil)" for NULL pointer.
8152         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8153         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8154         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8155         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8156         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8157         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8158         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8159         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8160         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8161         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8162         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8163         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8164         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8165         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8166         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8167         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8168         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8169         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8170         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8171         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8172         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8173         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8174         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8175         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8176         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8177         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8178         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8179         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8180         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8181         accurately specify what we're looking for.
8182         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8183         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8184         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8185         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8186         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8188 2015-04-30  James Norris  <jnorris@codesourcery.com>
8190         PR testsuite/65205
8191         * testsuite/lib/libgomp.exp
8192         (check_effective_target_openacc_host_selected)
8193         (check_effective_target_openacc_host_nonshm_selected): New
8194         procedures.
8195         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8196         dg-shouldfail.
8197         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8198         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8199         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8200         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8201         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8202         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8203         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8204         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8205         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8206         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8207         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8208         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8209         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8210         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8211         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8212         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8213         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8214         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8215         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8216         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8217         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8218         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8219         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8220         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8221         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8222         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8223         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8224         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8225         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8226         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8227         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8228         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8229         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8230         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8231         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8232         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8233         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8234         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8235         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8236         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8237         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8238         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8239         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8241 2015-04-08  Julian Brown  <julian@codesourcery.com>
8243         * libgomp.h (target_mem_desc: Remove mem_map field.
8244         (acc_dispatch_t): Remove open_device_func, close_device_func,
8245         get_device_num_func, set_device_num_func, target_data members.
8246         Change create_thread_data_func argument to device number instead of
8247         generic pointer.
8248         * oacc-async.c (assert.h): Include.
8249         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8250         (acc_wait_all, acc_wait_all_async): Use current host thread's
8251         active device, not base_dev.
8252         * oacc-cuda.c (acc_get_current_cuda_device)
8253         (acc_get_current_cuda_context, acc_get_cuda_stream)
8254         (acc_set_cuda_stream): Likewise.
8255         * oacc-host.c (host_dispatch): Don't set open_device_func,
8256         close_device_func, get_device_num_func or set_device_num_func.
8257         * oacc-init.c (base_dev, init_key): Remove.
8258         (cached_base_dev): New.
8259         (name_of_acc_device_t): New.
8260         (acc_init_1): Initialise default-numbered device, not zeroth.
8261         (acc_shutdown_1): Close all devices of a given type.
8262         (goacc_destroy_thread): Don't use base_dev.
8263         (lazy_open, lazy_init, lazy_init_and_open): Remove.
8264         (goacc_attach_host_thread_to_device): New.
8265         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8266         (acc_get_num_devices): Don't use base_dev.
8267         (acc_set_device_type): Reimplement.
8268         (acc_get_device_type): Don't use base_dev.
8269         (acc_get_device_num): Tweak logic.
8270         (acc_set_device_num): Likewise.
8271         (acc_on_device): Use acc_get_device_type.
8272         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8273         (goacc_lazy_initialize): Reimplement with acc_init and
8274         goacc_attach_host_thread_to_device.
8275         * oacc-int.h (goacc_thread): Add base_dev field.
8276         (base_dev): Remove extern declaration.
8277         (goacc_attach_host_thread_to_device): Add prototype.
8278         * oacc-mem.c (acc_malloc): Use current thread's device instead of
8279         base_dev.
8280         (acc_free): Likewise.
8281         (acc_memcpy_to_device): Likewise.
8282         (acc_memcpy_from_device): Likewise.
8283         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8284         goacc_lazy_initialize (throughout).
8285         (GOACC_parallel): Use tgt_offset to locate target functions.
8286         * target.c (gomp_map_vars): Don't set tgt->mem_map.
8287         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8288         (gomp_load_plugin_for_device): Remove open_device, close_device,
8289         get_device_num, set_device_num openacc hook initialisation. Don't set
8290         openacc.target_data.
8291         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8292         (GOMP_OFFLOAD_openacc_close_device)
8293         (GOMP_OFFLOAD_openacc_get_device_num)
8294         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8295         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8296         to int.
8297         * plugin/plugin-nvptx.c (ptx_inited): Remove.
8298         (instantiated_devices, ptx_dev_lock): New.
8299         (struct ptx_image_data): New.
8300         (ptx_devices, ptx_images, ptx_image_lock): New.
8301         (fini_streams_for_device): Reorder cuStreamDestroy call.
8302         (nvptx_get_num_devices): Remove forward declaration.
8303         (nvptx_init): Change return type to bool.
8304         (nvptx_fini): Remove.
8305         (nvptx_attach_host_thread_to_device): New.
8306         (nvptx_open_device): Return struct ptx_device* instead of void*.
8307         (nvptx_close_device): Change argument type to struct ptx_device*,
8308         return type to void.
8309         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8310         (kernel_target_data, kernel_host_table): Remove static globals.
8311         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8312         (GOMP_OFFLOAD_init_device): Reimplement.
8313         (GOMP_OFFLOAD_fini_device): Likewise.
8314         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8315         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8316         (GOMP_OFFLOAD_host2dev): Use ORD argument.
8317         (GOMP_OFFLOAD_openacc_open_device)
8318         (GOMP_OFFLOAD_openacc_close_device)
8319         (GOMP_OFFLOAD_openacc_set_device_num)
8320         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8321         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8322         (device number).
8324         testsuite/
8325         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8327 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
8329         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8330         * libgomp.h (struct gomp_memory_mapping): Remove.
8331         (struct target_mem_desc): Change type of mem_map from
8332         gomp_memory_mapping * to splay_tree_s *.
8333         (struct gomp_device_descr): Remove register_image_func, get_table_func.
8334         Add load_image_func, unload_image_func.
8335         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8336         Remove offload_regions_registered.
8337         (gomp_init_tables): Remove.
8338         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8339         to splay_tree_s *.
8340         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8341         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8342         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8343         offload_regions_registered.
8344         Initialize load_image_func, unload_image_func, mem_map.root.
8345         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8346         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8347         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8348         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8349         gomp_memory_mapping *.  Use dev's lock and splay_tree.
8350         (lookup_dev): Use dev's lock.
8351         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8352         (acc_is_present): Likewise.
8353         (acc_map_data): Likewise.
8354         (acc_unmap_data): Likewise.  Use dev's lock.
8355         (present_create_copy): Likewise.
8356         (delete_copyout): Pass dev to lookup_host instead of mem_map.
8357         (update_dev_host): Likewise.
8358         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
8359         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8360         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8361         (GOMP_OFFLOAD_get_table): Remove
8362         (GOMP_OFFLOAD_load_image): New function.
8363         (GOMP_OFFLOAD_unload_image): New function.
8364         * target.c (register_lock): New mutex for offload image registration.
8365         (num_devices): Do not guard with PLUGIN_SUPPORT.
8366         (gomp_realloc_unlock): New static function.
8367         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
8368         before gomp_fatal.
8369         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8370         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
8371         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8372         mem_map's.
8373         (gomp_unmap_vars): Likewise.
8374         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
8375         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
8376         (gomp_offload_image_to_device): New static function.
8377         (GOMP_offload_register): Add mutex lock.
8378         Call gomp_offload_image_to_device for all initialized devices.
8379         Replace gomp_realloc with gomp_realloc_unlock.
8380         (GOMP_offload_unregister): New function.
8381         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
8382         get_table_func from the plugin with calls to init_device_func and
8383         gomp_offload_image_to_device.
8384         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8385         to splay_tree_s *.
8386         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
8387         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
8388         (GOMP_target_data): Do not call gomp_init_tables.
8389         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
8390         (gomp_load_plugin_for_device): Replace register_image and get_table
8391         with load_image and unload_image in DLSYM ().
8392         (gomp_register_images_for_device): Remove function.
8393         (gomp_target_init): Do not initialize current_device.mem_map.*,
8394         current_device.offload_regions_registered.
8395         Remove call to gomp_register_images_for_device.
8396         Do not free offload_images and num_offload_images.
8398 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
8400         PR fortran/65597
8401         * testsuite/libgomp.fortran/pr65597.f90: New test.
8403 2015-03-27  Tom de Vries  <tom@codesourcery.com>
8405         PR testsuite/65594
8406         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8407         (init, check): New function.
8408         (foo): Change return type to void.
8409         (main): Call init and check.
8411 2015-03-27  Tom de Vries  <tom@codesourcery.com>
8413         PR testsuite/65594
8414         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8415         (foo): Use M for non-inner loops to scale down test-case.
8417 2015-03-25  Kai Tietz  <ktietz@redhat.com>
8419         PR libgomp/64972
8420         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8421         (GOACC_data_start): Likewise.
8422         * target.c (gomp_map_vars): Likewise.
8424 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
8426         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8427         hppa*-*-hpux*.
8429 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
8431         * testsuite/libgomp.c/target-10.c: New test.
8432         * testsuite/libgomp.c++/target-4.C: New test.
8434 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
8436         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8437         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8439 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8441         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8442         * configure.ac (*-*-rtems*): Assume Pthread is supported.
8443         (pthread.h): Check for this header file.
8444         * configure: Regenerate.
8446 2015-02-25  Tom de Vries  <tom@codesourcery.com>
8448         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8449         (check_reduction_op, check_reduction_macro, max, min):
8450         Declare.
8451         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8452         function.
8453         (main): Use new functions.
8455 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
8457         * target.c (gomp_load_plugin_for_device): Use const char * instead of
8458         char * for variables holding dlerror return values.
8459         (DLSYM_OPT): Ditto.
8461 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
8463         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8465 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
8466             Cesar Philippidis  <cesar@codesourcery.com>
8468         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8469         GOACC_ctaid, and GOACC_nctaid routines.
8471 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
8473         PR c/64824
8474         * testsuite/libgomp.c/atomic-18.c: New test.
8475         * testsuite/libgomp.c++/atomic-16.C: New test.
8477 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
8479         PR c/64824
8480         PR c/64868
8481         * testsuite/libgomp.c/pr64824.c: New test.
8482         * testsuite/libgomp.c/pr64868.c: New test.
8483         * testsuite/libgomp.c++/pr64824.C: New test.
8484         * testsuite/libgomp.c++/pr64868.C: New test.
8486 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
8488         PR libgomp/64635
8489         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8490         Link with -lpthread.
8491         * config/aix/plugin-suffix.h: Delete.
8493 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
8495         PR libgomp/64635
8496         * configure.tgt (*-*-aix*): Use config_path "aix posix".
8497         (*-*-darwin*): Use config_path "bsd darwin posix".
8498         (*-*-hpux*): Use config_path "hpux posix".
8499         * target.c: Add include of plugin-suffix.h and use
8500         SONAME_SUFFIX macro.
8501         * config/aix/plugin-suffix.h: New file.
8502         * config/darwin/plugin-suffix.h: New file.
8503         * config/hpux/plugin-suffix.h: New file.
8504         * config/posix/plugin-suffix.h: New file.
8506 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
8508         PR middle-end/64734
8509         * libgomp.c/pr64734.c: New test.
8511 2015-01-23  Tom de Vries  <tom@codesourcery.com>
8513         PR libgomp/64672
8514         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8516 2015-01-23  Tom de Vries  <tom@codesourcery.com>
8518         PR libgomp/64707
8519         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8520         dg-options.
8522 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
8524         PR libgomp/64625
8525         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8526         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8527         formal parameter.  Update all users.
8528         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8529         Document unused formal parameter.
8531 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
8533         * oacc-parallel.c: Don't include <alloca.h>.
8534         (GOACC_parallel): Use gomp_alloca instead of alloca.
8536 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
8538         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8540 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
8541             James Norris  <jnorris@codesourcery.com>
8542             Tom de Vries  <tom@codesourcery.com>
8543             Julian Brown  <julian@codesourcery.com>
8544             Cesar Philippidis  <cesar@codesourcery.com>
8545             Nathan Sidwell  <nathan@codesourcery.com>
8546             Tobias Burnus  <burnus@net-b.de>
8548         * Makefile.am (search_path): Add $(top_srcdir)/../include.
8549         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8550         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8551         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8552         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8553         Include $(top_srcdir)/plugin/Makefrag.am.
8554         (nodist_libsubinclude_HEADERS): Add openacc.h.
8555         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8556         openacc.f90, openacc.mod, openacc_kinds.mod.
8557         (omp_lib.mod): Generalize into...
8558         (%.mod): ... this new rule.
8559         (openacc_kinds.mod, openacc.mod): New rules.
8560         * plugin/configfrag.ac: New file.
8561         * configure.ac: Move plugin/offloading support into it.  Include
8562         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
8563         * plugin/Makefrag.am: New file.
8564         * testsuite/Makefile.am (OFFLOAD_TARGETS)
8565         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8566         export.
8567         (libgomp-test-support.exp): New rule.
8568         (all-local): Depend on it.
8569         * Makefile.in: Regenerate.
8570         * testsuite/Makefile.in: Regenerate.
8571         * config.h.in: Likewise.
8572         * configure: Likewise.
8573         * configure.tgt: Harden shell syntax.
8574         * env.c: Include "oacc-int.h".
8575         (parse_acc_device_type): New function.
8576         (gomp_debug_var, goacc_device_type, goacc_device_num): New
8577         variables.
8578         (initialize_env): Initialize those.  Call
8579         goacc_runtime_initialize.
8580         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8581         (gomp_fatal): Call gomp_vfatal.
8582         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8583         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8584         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8585         (splay_tree_node, splay_tree, splay_tree_key)
8586         (struct target_mem_desc, struct splay_tree_key_s)
8587         (struct gomp_memory_mapping, struct acc_dispatch_t)
8588         (struct gomp_device_descr, gomp_acc_insert_pointer)
8589         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8590         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8591         (gomp_free_memmap, gomp_fini_device): New declarations.
8592         (gomp_vdebug, gomp_debug): New macros.
8593         Include "splay-tree.h".
8594         * libgomp.map (OACC_2.0): New symbol version.  Use for
8595         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8596         acc_set_device_type_h_, acc_get_device_type,
8597         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8598         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8599         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8600         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8601         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8602         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8603         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8604         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8605         acc_copyin_array_h_, acc_present_or_copyin,
8606         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8607         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8608         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8609         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8610         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8611         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8612         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8613         acc_update_device, acc_update_device_32_h_,
8614         acc_update_device_64_h_, acc_update_device_array_h_,
8615         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8616         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8617         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8618         acc_is_present_64_h_, acc_is_present_array_h_,
8619         acc_memcpy_to_device, acc_memcpy_from_device,
8620         acc_get_current_cuda_device, acc_get_current_cuda_context,
8621         acc_get_cuda_stream, acc_set_cuda_stream.
8622         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
8623         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8624         GOACC_update, GOACC_wait, GOACC_get_thread_num,
8625         GOACC_get_num_threads.
8626         (GOMP_PLUGIN_1.0): New symbol version.  Use for
8627         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8628         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8629         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8630         GOMP_PLUGIN_acc_thread.
8631         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8632         environment variable.
8633         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8634         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8635         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8636         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8637         (splay_tree_remove): New declarations.
8638         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8639         (splay_tree_remove, splay_tree_lookup): Move into...
8640         * splay-tree.c: ... this new file.
8641         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8642         (splay_tree_node, splay_tree, splay_tree_key)
8643         (struct target_mem_desc, struct splay_tree_key_s)
8644         (struct gomp_device_descr): Don't declare.
8645         (num_devices_openmp): New variable.
8646         (gomp_get_num_devices ): Use it.
8647         (gomp_init_targets_once): New function.
8648         (gomp_get_num_devices ): Use it.
8649         (get_kind, gomp_copy_from_async, gomp_free_memmap)
8650         (gomp_fini_device, gomp_register_image_for_device): New functions.
8651         (gomp_map_vars): Add devaddrs parameter.
8652         (gomp_update): Add mm parameter.
8653         (gomp_init_device): Move most of it into...
8654         (gomp_init_tables): ... this new function.
8655         (gomp_register_images_for_device): Remove function.
8656         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8657         Make them hidden instead of static.
8658         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8659         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8660         (GOMP_target_end_data, GOMP_target_update)
8661         (gomp_load_plugin_for_device, gomp_target_init): Update for
8662         OpenACC changes.
8663         * oacc-async.c: New file.
8664         * oacc-cuda.c: Likewise.
8665         * oacc-host.c: Likewise.
8666         * oacc-init.c: Likewise.
8667         * oacc-int.h: Likewise.
8668         * oacc-mem.c: Likewise.
8669         * oacc-parallel.c: Likewise.
8670         * oacc-plugin.c: Likewise.
8671         * oacc-plugin.h: Likewise.
8672         * oacc-ptx.h: Likewise.
8673         * openacc.f90: Likewise.
8674         * openacc.h: Likewise.
8675         * openacc_lib.h: Likewise.
8676         * plugin/plugin-host.c: Likewise.
8677         * plugin/plugin-nvptx.c: Likewise.
8678         * libgomp-plugin.c: Likewise.
8679         * libgomp-plugin.h: Likewise.
8680         * libgomp_target.h: Remove file after merging content into the
8681         former file.  Update all users.
8682         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8683         (offload_targets_s, offload_targets_s_openacc): New variables.
8684         (check_effective_target_openacc_nvidia_accel_present)
8685         (check_effective_target_openacc_nvidia_accel_selected): New
8686         procedures.
8687         (libgomp_init): Update for OpenACC changes.
8688         * testsuite/libgomp-test-support.exp.in: New file.
8689         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8690         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8691         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8692         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8693         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8694         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8695         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8696         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8697         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8698         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8699         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8700         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8701         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8702         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8703         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8704         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8705         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8706         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8707         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8708         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8709         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8710         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8711         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8712         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8713         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8714         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8715         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8716         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8717         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8718         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8719         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8720         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8721         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8722         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8723         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8724         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8725         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8726         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8727         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8728         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8729         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8730         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8731         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8732         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8733         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8734         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8735         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8736         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8737         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8738         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8739         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8740         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8741         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8742         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8743         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8744         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8745         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8746         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8747         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8748         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8749         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8750         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8751         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8752         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8753         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8754         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8755         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8756         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8757         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8758         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8759         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8760         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8761         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8762         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8763         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8764         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8765         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8766         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8767         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8768         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8769         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8770         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8771         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8772         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8773         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8774         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8775         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8776         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8777         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8778         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8779         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8780         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8781         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8782         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8783         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8784         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8785         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8786         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8787         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8788         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8789         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8790         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8791         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8792         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8793         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8794         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8795         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8796         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8797         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8798         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8799         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8800         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8801         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8802         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8803         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8804         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8805         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8806         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8807         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8808         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8809         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8810         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8811         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8812         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8813         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8814         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8815         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8816         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8817         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8818         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8819         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8820         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8821         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8822         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8823         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8824         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8825         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8826         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8827         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8828         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8829         Likewise.
8830         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8831         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8832         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8833         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8834         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8835         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8836         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8837         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8838         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8839         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8840         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8841         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8842         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8843         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8844         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8845         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8846         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8847         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8848         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8849         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8850         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8851         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8852         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8853         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8854         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8855         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8856         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8857         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8858         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8859         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8860         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8861         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8862         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8863         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8864         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8865         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8866         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8867         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8868         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8869         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8870         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8871         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8872         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8873         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8874         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8875         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8876         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8877         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8878         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8879         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8880         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8881         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8882         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8883         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8884         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8885         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8886         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8887         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8888         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8889         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8891 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
8892             Julian Brown  <julian@codesourcery.com>
8893             David Malcolm  <dmalcolm@redhat.com>
8895         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8896         to "GNU Offloading and Multi Processing Runtime Library".  Change
8897         all users.
8898         * configure: Regenerate.
8899         * libgomp.texi: Update.
8901 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
8903         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8904         "$tgt_dir/lib32".
8905         * configure: Regenerate.
8907         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8908         "intelmic" in $offload_targets.
8910 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
8912         Update copyright years.
8914         * libgomp.texi: Bump @copying's copyright year.
8916 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8918         * testsuite/lib/libgomp.exp: Load target-utils.exp.
8919         Move load of target-supports.exp earlier.
8921 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
8923         * testsuite/libgomp.c/target-9.c: New test.
8925 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
8927         * config.h.in: Regenerate.
8928         * configure: Regenerate.
8929         * configure.ac: Add GCC_CHECK_EMUTLS.
8930         * libgomp.h: Add check for USE_EMUTLS: this case
8931         is equal to HAVE_TLS.
8932         * team.c: Likewise.
8934 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
8936         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8938 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8939             Ilya Verbin  <ilya.verbin@intel.com>
8941         * testsuite/libgomp.c/target-critical-1.c: New test.
8943 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
8945         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8946         to dg-options unless expensive testing is on.
8947         (TESTITERS): Define to N if not defined.
8948         (main): Use TESTITERS instead of N.
8949         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8950         dg-additional-options depending on whether expensive testing is on.
8951         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8952         Decrease N to 100000 and CHUNKSZ to 10000.
8954 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
8956         PR fortran/63938
8957         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8958         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8960 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
8962         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8964 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
8966         PR bootstrap/63784
8967         * configure: Regenerated.
8969 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
8971         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8972         vect_simd_clones effective target.
8973         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8975 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
8977         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8978         of 32 as block_size.
8979         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8980         instead of 32 as block_size.
8982 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8983             Ilya Verbin  <ilya.verbin@intel.com>
8985         * Makefile.in: Regenerate.
8986         * configure: Regenerate.
8987         * configure.ac: Set up offload_additional_options,
8988         offload_additional_lib_paths and offload_targets.
8989         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8990         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8991         * testsuite/Makefile.in: Regenerate.
8992         * testsuite/lib/libgomp.exp (libgomp_init): Append
8993         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
8994         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
8995         build directory to LD_LIBRARY_PATH for intelmic offload targets.
8997 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8998             Ilya Verbin  <ilya.verbin@intel.com>
8999             Kirill Yukhin  <kirill.yukhin@intel.com>
9000             Ilya Tocar  <ilya.tocar@intel.com>
9002         * testsuite/lib/libgomp.exp
9003         (check_effective_target_offload_device): New.
9004         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
9005         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
9006         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
9007         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
9008         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
9009         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
9010         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
9011         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
9012         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
9013         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
9014         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
9015         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
9016         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
9017         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
9018         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
9019         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
9020         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
9021         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
9022         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
9023         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
9024         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
9025         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
9026         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
9027         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
9028         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
9029         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
9030         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
9031         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
9032         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
9033         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
9034         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9035         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9036         * testsuite/libgomp.c/target-7.c: Fix test.
9037         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9038         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9039         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9040         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9041         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9042         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9043         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9044         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9045         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9046         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9047         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9048         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9049         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9050         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9051         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9052         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9053         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9054         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9055         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9056         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9057         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9058         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9059         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9060         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9061         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9062         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9063         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9064         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9065         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9066         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9067         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9069 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
9070             Ilya Verbin  <ilya.verbin@intel.com>
9071             Thomas Schwinge  <thomas@codesourcery.com>
9072             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9074         * libgomp.map (GOMP_4.0.1): New symbol version.
9075         Add GOMP_offload_register.
9076         * libgomp_target.h: New file.
9077         * splay-tree.h: New file.
9078         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9079         (gomp_target_init): New forward declaration.
9080         (gomp_is_initialized): New static variable.
9081         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9082         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9083         New structures.
9084         (offload_images, num_offload_images, devices, num_devices): New static
9085         variables.
9086         (splay_compare): New static function.
9087         (struct gomp_device_descr): New structure.
9088         (gomp_get_num_devices): Call gomp_target_init.
9089         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9090         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9091         (GOMP_offload_register): New function.
9092         (GOMP_target): Arrange for host callback to be performed in a separate
9093         initial thread and contention group, inheriting ICVs from
9094         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
9095         Add device initialization and lookup for target function in splay tree.
9096         (GOMP_target_data): Add device initialization and call gomp_map_vars.
9097         (GOMP_target_end_data): Call gomp_unmap_vars.
9098         (GOMP_target_update): Add device initialization and call gomp_update.
9099         (gomp_load_plugin_for_device, gomp_register_images_for_device)
9100         (gomp_target_init): New static functions.
9102 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
9103             Thomas Schwinge  <thomas@codesourcery.com>
9104             Ilya Verbin  <ilya.verbin@intel.com>
9105             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9107         * config.h.in: Regenerate.
9108         * configure: Regenerate.
9109         * configure.ac: Check for libdl, required for plugin support.
9110         (PLUGIN_SUPPORT): Define if plugins are supported.
9111         (enable_offload_targets): Support Intel MIC targets.
9112         (OFFLOAD_TARGETS): List of target names suitable for offloading.
9114 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9116         PR target/63610
9117         * configure: Regenerate.
9119 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9121         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9123 2014-10-06  Marek Polacek  <polacek@redhat.com>
9125         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9126         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9127         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9128         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9130 2014-10-06  Marek Polacek  <polacek@redhat.com>
9132         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9133         * testsuite/libgomp.c/nqueens-1.c: Likewise.
9134         * testsuite/libgomp.c/pr26943-3.c: Likewise.
9135         * testsuite/libgomp.c/pr26943-4.c: Likewise.
9136         * testsuite/libgomp.c/pr36802-2.c: Likewise.
9137         * testsuite/libgomp.c/pr36802-3.c: Likewise.
9138         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9139         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9140         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9141         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9142         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9143         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9144         * testsuite/libgomp.c/omp-single-1.c: Likewise.
9145         * testsuite/libgomp.c/omp-single-2.c: Likewise.
9146         * testsuite/libgomp.c/omp_matvec.c: Likewise.
9147         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9148         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9149         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
9150         declarations.
9152 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
9154         PR libgomp/61200
9155         * testsuite/libgomp.c/pr61200.c: New test.
9157 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
9159         PR c++/63248
9160         * testsuite/libgomp.c++/pr63248.C: New test.
9162 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
9164         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9165         is not zero, but taskgroup->children is NULL and there are
9166         any task->children, schedule those instead of waiting.
9167         * testsuite/libgomp.c/depend-6.c: New test.
9168         * testsuite/libgomp.c/depend-7.c: New test.
9169         * testsuite/libgomp.c/depend-8.c: New test.
9170         * testsuite/libgomp.c/depend-9.c: New test.
9171         * testsuite/libgomp.c/depend-10.c: New test.
9173 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
9175         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9176         (struct gomp_taskwait): New type.
9177         (struct gomp_task): Add taskwait and parent_depends_on, remove
9178         in_taskwait and taskwait_sem fields.
9179         (gomp_finish_task): Don't destroy taskwait_sem.
9180         * task.c (gomp_init_task): Don't init in_taskwait, instead init
9181         taskwait and parent_depends_on.
9182         (GOMP_task): For if (0) tasks with depend clause that depend on
9183         earlier tasks don't defer them, instead call
9184         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9185         Initialize redundant_out field, for redundant out entries just
9186         move them at the end of linked list instead of removing them
9187         completely, and set redundant_out flag instead of redundant.
9188         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9189         that task.
9190         (gomp_task_run_post_handle_dependers): If parent is in
9191         gomp_task_maybe_wait_for_dependencies and newly runnable task
9192         is not parent_depends_on, queue it in parent->children linked
9193         list after all runnable tasks with parent_depends_on set.
9194         Adjust for addition of taskwait indirection.
9195         (gomp_task_run_post_remove_parent): If parent is in
9196         gomp_task_maybe_wait_for_dependencies and task to be removed
9197         is parent_depends_on, decrement n_depend and if needed awake
9198         parent.  Adjust for addition of taskwait indirection.
9199         (GOMP_taskwait): Adjust for addition of taskwait indirection.
9200         (gomp_task_maybe_wait_for_dependencies): New function.
9201         * testsuite/libgomp.c/depend-5.c: New test.
9203 2014-07-13  Tobias Burnus  <burnus@net-b.de>
9205         * testsuite/libgomp.fortran/pr34020.f90: Make compile
9206         with TS 18508/Fortran 2015.
9208 2014-07-06  Marek Polacek  <polacek@redhat.com>
9210         PR c/6940
9211         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9213 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
9215         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9216         matches regex $lang_source_re, add $lang_include_flags to options.
9217         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9218         * testsuite/libgomp.c++/c++.exp: Likewise.
9219         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
9220         and lang_include_flags instead of adding -fintrinsic-modules-path= to
9221         ALWAYS_CFLAGS.
9222         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9224 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
9226         * testsuite/libgomp.fortran/fortran.exp: Explain
9227         gfortran-dg-runtest usage.
9229 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
9231         * testsuite/libgomp.fortran/simd5.f90: New test.
9232         * testsuite/libgomp.fortran/simd6.f90: New test.
9233         * testsuite/libgomp.fortran/simd7.f90: New test.
9235 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
9237         * testsuite/libgomp.c/for-2.c: Define SC to static for
9238         #pragma omp for simd testing.
9239         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9240         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9241         SC macro.
9242         * testsuite/libgomp.c/simd-14.c: New test.
9243         * testsuite/libgomp.c/simd-15.c: New test.
9244         * testsuite/libgomp.c/simd-16.c: New test.
9245         * testsuite/libgomp.c/simd-17.c: New test.
9246         * testsuite/libgomp.c++/for-10.C: Define SC to static for
9247         #pragma omp for simd testing.
9248         * testsuite/libgomp.c++/simd10.C: New test.
9249         * testsuite/libgomp.c++/simd11.C: New test.
9250         * testsuite/libgomp.c++/simd12.C: New test.
9251         * testsuite/libgomp.c++/simd13.C: New test.
9253         * testsuite/libgomp.fortran/aligned1.f03: New test.
9254         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9255         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9256         tasks with !$omp parallel !$omp single.
9257         * testsuite/libgomp.fortran/target8.f90: New test.
9258         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9259         not to use trim in the combiner, instead call elemental function.
9260         (fn): New elemental function.
9261         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9262         Make elemental.
9263         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9264         omp_in): Likewise.
9265         * testsuite/libgomp.fortran/udr12.f90: New test.
9266         * testsuite/libgomp.fortran/udr13.f90: New test.
9267         * testsuite/libgomp.fortran/udr14.f90: New test.
9268         * testsuite/libgomp.fortran/udr15.f90: New test.
9270 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
9272         * omp_lib.f90.in (openmp_version): Set to 201307.
9273         * omp_lib.h.in (openmp_version): Likewise.
9274         * testsuite/libgomp.c/target-8.c: New test.
9275         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9276         and inbranch clauses.
9277         * testsuite/libgomp.fortran/depend-3.f90: New test.
9278         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9279         openmp_version.
9280         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9281         * testsuite/libgomp.fortran/target1.f90: New test.
9282         * testsuite/libgomp.fortran/target2.f90: New test.
9283         * testsuite/libgomp.fortran/target3.f90: New test.
9284         * testsuite/libgomp.fortran/target4.f90: New test.
9285         * testsuite/libgomp.fortran/target5.f90: New test.
9286         * testsuite/libgomp.fortran/target6.f90: New test.
9287         * testsuite/libgomp.fortran/target7.f90: New test.
9289 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
9291         PR fortran/60928
9292         * testsuite/libgomp.fortran/allocatable9.f90: New test.
9293         * testsuite/libgomp.fortran/allocatable10.f90: New test.
9294         * testsuite/libgomp.fortran/allocatable11.f90: New test.
9295         * testsuite/libgomp.fortran/allocatable12.f90: New test.
9296         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9297         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9298         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9299         * testsuite/libgomp.fortran/associate1.f90: New test.
9300         * testsuite/libgomp.fortran/associate2.f90: New test.
9301         * testsuite/libgomp.fortran/procptr1.f90: New test.
9303 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
9305         * testsuite/libgomp.fortran/simd1.f90: New test.
9306         * testsuite/libgomp.fortran/udr1.f90: New test.
9307         * testsuite/libgomp.fortran/udr2.f90: New test.
9308         * testsuite/libgomp.fortran/udr3.f90: New test.
9309         * testsuite/libgomp.fortran/udr4.f90: New test.
9310         * testsuite/libgomp.fortran/udr5.f90: New test.
9311         * testsuite/libgomp.fortran/udr6.f90: New test.
9312         * testsuite/libgomp.fortran/udr7.f90: New test.
9313         * testsuite/libgomp.fortran/udr8.f90: New test.
9314         * testsuite/libgomp.fortran/udr9.f90: New test.
9315         * testsuite/libgomp.fortran/udr10.f90: New test.
9316         * testsuite/libgomp.fortran/udr11.f90: New test.
9318 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
9320         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9321         vect_simd_clones effective target.
9322         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9324 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
9326         PR middle-end/61252
9327         * testsuite/libgomp.c++/simd-9.C: New test.
9329 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
9331         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9332         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9333         texts according to their @menu entry positions.
9335 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
9337         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9338         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9339         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9340         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9341         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9342         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9343         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9344         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9345         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9346         * testsuite/libgomp.fortran/depend-1.f90: New test.
9347         * testsuite/libgomp.fortran/depend-2.f90: New test.
9348         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9349         * testsuite/libgomp.fortran/simd1.f90: New test.
9350         * testsuite/libgomp.fortran/simd2.f90: New test.
9351         * testsuite/libgomp.fortran/simd3.f90: New test.
9352         * testsuite/libgomp.fortran/simd4.f90: New test.
9353         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9355 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
9357         * testsuite/libgomp.c/simd-10.c: New test.
9358         * testsuite/libgomp.c/simd-11.c: New test.
9359         * testsuite/libgomp.c/simd-12.c: New test.
9360         * testsuite/libgomp.c/simd-13.c: New test.
9362 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
9364         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9365         atomic type clauses in any order and optional comma in between.
9366         * testsuite/libgomp.c++/atomic-15.C: Likewise.
9367         * testsuite/libgomp.c/atomic-17.c: Likewise.
9369         * testsuite/libgomp.c/simd-7.c: New test.
9370         * testsuite/libgomp.c/simd-8.c: New test.
9371         * testsuite/libgomp.c/simd-9.c: New test.
9372         * testsuite/libgomp.c/loop-16.c: New test.
9374 2014-04-02  Richard Henderson  <rth@redhat.com>
9376         * config/linux/futex.h (futex_wait): Get error value from errno.
9377         (futex_wake): Likewise.
9379 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
9381         PR c++/60331
9382         * testsuite/libgomp.c++/udr-11.C: New test.
9383         * testsuite/libgomp.c++/udr-12.C: New test.
9384         * testsuite/libgomp.c++/udr-13.C: New test.
9385         * testsuite/libgomp.c++/udr-14.C: New test.
9386         * testsuite/libgomp.c++/udr-15.C: New test.
9387         * testsuite/libgomp.c++/udr-16.C: New test.
9388         * testsuite/libgomp.c++/udr-17.C: New test.
9389         * testsuite/libgomp.c++/udr-18.C: New test.
9390         * testsuite/libgomp.c++/udr-19.C: New test.
9392 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9394         Update copyright years
9396 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9398         * hashtab.h: Use the standard form for the copyright notice.
9400 2014-01-02  Tobias Burnus  <burnus@net-b.de>
9402         * libgomp.texi: Bump @copying's copyright year.
9404 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
9406         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9407         alloca () with __builtin_alloca ().
9408         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9409         * testsuite/libgomp.c/lock-3.c: Likewise.
9410         * testsuite/libgomp.c/pr48591.c: Likewise.
9412 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
9414         PR testsuite/59534
9415         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9416         comparisons.
9418 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
9420         PR libgomp/58756
9421         * testsuite/libgomp.c/pr58756.c: New test.
9423 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
9425         PR libgomp/59467
9426         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9427         !$omp parallel.
9429 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
9431         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9432         ALWAYS_CFLAGS.
9433         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9434         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9435         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9436         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9437         Likewise.
9439         * libgomp_g.h: Include <stddef.h> for size_t.
9441         * libgomp.spec.in: Update comment about libgomp's dependencies.
9442         * configure.ac: Likewise.
9443         * configure: Regenerate.
9445 2013-10-16  Tobias Burnus  <burnus@net-b.de>
9447         * libgomp.texi: (Runtime Library Routines): Update references for
9448         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9449         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9450         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9451         (Environment Variables): Update references for OpenMP 4.0. Add
9452         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9453         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9454         order.
9456 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
9458         * env.c (parse_bind_var): Initialize value to avoid
9459         (false positive) warning.
9461 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
9463         PR libgomp/58691
9464         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9465         to check variable.
9466         (gomp_init_num_threads): Move i variable declaration into
9467         #ifdef CPU_ALLOC_SIZE block.
9468         * config/linux/affinity.c (gomp_affinity_init_level): Test
9469         gomp_places_list_len == 0 rather than gomp_places_list == 0
9470         when checking for topology reading error.
9471         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9472         * env.c (parse_affinity): Add ignore argument, if true, don't populate
9473         gomp_places_list, only parse env var and always return false.
9474         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
9475         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9476         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9477         and either of these variables were parsed correctly into a places
9478         list.
9480 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
9481             Jakub Jelinek  <jakub@redhat.com>
9483         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9484         of 5 loopfn matches.
9485         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9486         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9487         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9488         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9489         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9490         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9491         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9492         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9494 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
9496         * Makefile.am (omp_lib.mod): Streamline rule.
9497         * Makefile.in: Regenerate.
9499         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9500         exceptions.
9502         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9503         * testsuite/libgomp.fortran/lib1.f90: Likewise.
9504         * testsuite/libgomp.fortran/lib2.f: Likewise.
9505         * testsuite/libgomp.fortran/lib3.f: Likewise.
9507         * configure.ac: Typo fix.
9508         * configure: Regenerate.
9510         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9511         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9513         * omp.h.in: Don't touch the user's namespace.
9515 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9516             Tobias Burnus  <burnus@net-b.de>
9517             Richard Henderson  <rth@redhat.com>
9519         * target.c: New file.
9520         * Makefile.am (libgomp_la_SOURCES): Add target.c.
9521         * Makefile.in: Regenerated.
9522         * libgomp_g.h (GOMP_task): Add depend argument.
9523         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9524         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9525         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9526         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9527         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9528         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9529         GOMP_taskgroup_start, GOMP_taskgroup_end,
9530         GOMP_parallel_sections): New prototypes.
9531         * fortran.c (omp_is_initial_device): Add ialias_redirect.
9532         (omp_is_initial_device_): New function.
9533         (ULP, STR1, STR2, ialias_redirect): Removed.
9534         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9535         omp_set_default_device_8_, omp_get_default_device_,
9536         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9537         functions.
9538         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9539         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9540         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9541         @@GOMP_4.0.
9542         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9543         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9544         omp_set_default_device, omp_set_default_device_,
9545         omp_set_default_device_8_, omp_get_default_device,
9546         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9547         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9548         omp_get_team_num_): Export @@OMP_4.0.
9549         * team.c (struct gomp_thread_start_data): Add place field.
9550         (gomp_thread_start): Clear thr->thread_pool and
9551         thr->task before returning.  Use gomp_team_barrier_wait_final
9552         instead of gomp_team_barrier_wait.  Initialize thr->place.
9553         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9554         team_cancelled and task_queued_count fields.
9555         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9556         before calling pthread_exit.
9557         (gomp_free_thread): No longer static.  Use
9558         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9559         (gomp_team_start): Add flags argument.  Set
9560         thr->thread_pool->threads_busy to nthreads immediately after creating
9561         new pool.  Use gomp_managed_threads_lock instead of
9562         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
9563         (gomp_team_end): Use gomp_managed_threads_lock instead of
9564         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
9565         of gomp_team_barrier_wait.  If team->team_cancelled, call
9566         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9567         rather than thr->ts.work_share.
9568         (initialize_team): Don't call gomp_sem_init here.
9569         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9570         caller.
9571         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9572         * env.c (gomp_global_icv): Add default_device_var, target_data and
9573         bind_var initializers.
9574         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9575         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9576         gomp_places_list_len): New variables.
9577         (parse_bind_var, parse_one_place, parse_places_var): New functions.
9578         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9579         sized places.
9580         (gomp_cancel_var): New global variable.
9581         (parse_int): New function.
9582         (handle_omp_display_env): New function.
9583         (initialize_env): Use it.  Initialize default_device_var.
9584         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
9585         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
9586         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
9587         been successfully parsed (and call gomp_init_affinity in that case).
9588         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9589         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9590         omp_get_team_num, omp_is_initial_device): New functions.
9591         * libgomp.h: Include stdlib.h.
9592         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9593         Define.
9594         (struct target_mem_desc): Forward declare.
9595         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9596         and thread_limit_var fields.
9597         (gomp_get_num_devices): New prototype.
9598         (gomp_cancel_var): New extern decl.
9599         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9600         team_cancelled and task_queued_count fields.  Add comments about
9601         task_{,queued_,running_}count.
9602         (gomp_cancel_kind): New enum.
9603         (gomp_work_share_end_cancel): New prototype.
9604         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9605         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9606         and depend fields.
9607         (struct gomp_taskgroup): New type.
9608         (struct gomp_task_depend_entry,
9609         struct gomp_dependers_vec): New types.
9610         (gomp_finish_task): Free depend_hash if non-NULL.
9611         (struct gomp_team_state): Add place_partition_off
9612         and place_partition_len fields.
9613         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9614         gomp_places_list_len): New extern decls.
9615         (struct gomp_thread): Add place field.
9616         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9617         (gomp_init_thread_affinity): Add place argument.
9618         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9619         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9620         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9621         gomp_affinity_init_level, gomp_affinity_print_place): New
9622         prototypes.
9623         (gomp_team_start): Add flags argument.
9624         (gomp_thread_limit_var, gomp_remaining_threads_count,
9625         gomp_remaining_threads_lock): Remove.
9626         (gomp_managed_threads_lock): New variable.
9627         (struct gomp_thread_pool): Add threads_busy field.
9628         (gomp_free_thread): New prototype.
9629         * task.c: Include hashtab.h.
9630         (hash_entry_type): New typedef.
9631         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9632         (gomp_init_task): Clear dependers, depend_hash, depend_count,
9633         copy_ctors_done and taskgroup fields.
9634         (GOMP_task): Add depend argument, handle depend clauses.  If
9635         gomp_team_barrier_cancelled or if it's taskgroup has been
9636         cancelled, don't queue or start new tasks.  Set copy_ctors_done
9637         field if needed.  Initialize taskgroup field.  If copy_ctors_done
9638         and already cancelled, don't discard the task.  If taskgroup is
9639         non-NULL, enqueue the task into taskgroup queue.  Increment
9640         num_children field in taskgroup.  Increment task_queued_count.
9641         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9642         gomp_task_run_post_remove_taskgroup): New inline functions.
9643         (gomp_task_run_post_handle_depend_hash,
9644         gomp_task_run_post_handle_dependers,
9645         gomp_task_run_post_handle_depend): New functions.
9646         (GOMP_taskwait): Use them.  If more than one new tasks
9647         have been queued, wake other threads if needed.
9648         (gomp_barrier_handle_tasks): Likewise.  If
9649         gomp_team_barrier_cancelled, don't start any new tasks, just free
9650         all tasks.
9651         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9652         * omp_lib.f90.in
9653         (omp_proc_bind_kind, omp_proc_bind_false,
9654         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9655         omp_proc_bind_spread): New params.
9656         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9657         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9658         omp_get_team_num, omp_is_initial_device): New interfaces.
9659         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9660         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9661         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9662         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9663         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9664         useless use omp_lib_kinds.
9665         * omp.h.in (omp_proc_bind_t): New typedef.
9666         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9667         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9668         omp_get_team_num, omp_is_initial_device): New prototypes.
9669         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9670         through to gomp_team_start.
9671         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9672         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9673         Adjust gomp_parallel_loop_start callers.
9674         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9675         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9676         GOMP_loop_end_cancel): New functions.
9677         (GOMP_parallel_end): Add ialias_redirect.
9678         * hashtab.h: New file.
9679         * libgomp.texi (Environment Variables): Minor cleanup,
9680         update section refs to OpenMP 4.0rc2.
9681         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9682         environment variables.
9683         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9684         team->work_shares_to_free to thr->ts.work_share before calling
9685         free_work_share.
9686         (gomp_work_share_end_cancel): New function.
9687         * config/linux/proc.c: Include errno.h.
9688         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9689         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9690         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
9691         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
9692         gomp_cpuset_size is sizeof (cpu_set_t).
9693         (gomp_init_num_threads): Initialize gomp_cpuset_size,
9694         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9695         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9696         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
9697         contain any logical CPUs.
9698         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9699         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
9700         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9701         pthread_getaffinity_np.  Check gomp_places_list instead of
9702         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
9703         * config/linux/bar.c (gomp_barrier_wait_end,
9704         gomp_barrier_wait_last): Use BAR_* defines.
9705         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
9706         from state where needed.  Set work_share_cancelled to 0 on last
9707         thread.
9708         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9709         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9710         functions.
9711         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9712         Add cpusetsize argument.
9713         (gomp_cpuset_size, gomp_cpusetp): Declare.
9714         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9715         (affinity_counter): Remove.
9716         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9717         if CPU_ALLOC_SIZE isn't defined.
9718         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9719         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9720         bind current thread to the first place.
9721         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
9722         pthread_setaffinity_np to gomp_places_list[place].
9723         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9724         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9725         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9726         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9727         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9728         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9729         (gomp_barrier_t): Add awaited_final field.
9730         (gomp_barrier_init): Initialize awaited_final field.
9731         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9732         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9733         prototypes.
9734         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
9735         defines.
9736         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9737         gomp_team_barrier_cancelled): New inline functions.
9738         (gomp_barrier_last_thread,
9739         gomp_team_barrier_set_task_pending,
9740         gomp_team_barrier_clear_task_pending,
9741         gomp_team_barrier_set_waiting_for_tasks,
9742         gomp_team_barrier_waiting_for_tasks,
9743         gomp_team_barrier_done): Use BAR_* defines.
9744         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9745         (gomp_barrier_wait_end): Use BAR_* defines.
9746         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9747         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9748         Use BAR_* defines.
9749         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9750         gomp_team_barrier_cancel): New functions.
9751         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9752         argument.
9753         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9754         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9755         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9756         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9757         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9758         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9759         (gomp_barrier_t): Add cancellable field.
9760         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9761         gomp_team_barrier_cancel): New prototypes.
9762         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9763         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9764         gomp_team_barrier_cancelled): New inline functions.
9765         (gomp_barrier_wait_start, gomp_barrier_last_thread,
9766         gomp_team_barrier_set_task_pending,
9767         gomp_team_barrier_clear_task_pending,
9768         gomp_team_barrier_set_waiting_for_tasks,
9769         gomp_team_barrier_waiting_for_tasks,
9770         gomp_team_barrier_done): Use BAR_* defines.
9771         * barrier.c (GOMP_barrier_cancel): New function.
9772         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9773         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9774         omp_proc_bind_spread): New params.
9775         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9776         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9777         omp_get_team_num, omp_is_initial_device): New externals.
9778         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9779         New functions.
9780         (gomp_resolve_num_threads): Adjust for thread_limit now being in
9781         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
9782         infinity.  If not nested, just return minimum of max_num_threads
9783         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9784         to the returned value.  Otherwise, don't update atomically
9785         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9786         (GOMP_parallel_end): Adjust for thread_limit now being in
9787         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
9788         infinity.  Adjust threads_busy in the pool rather than
9789         gomp_remaining_threads_count.  Remember team->nthreads and call
9790         gomp_team_end before adjusting threads_busy, if not nested
9791         afterwards, just set it to 1 non-atomically.  Add ialias.
9792         (GOMP_parallel_start): Adjust gomp_team_start caller.
9793         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9794         * testsuite/libgomp.c/affinity-1.c: New test.
9795         * testsuite/libgomp.c/atomic-15.c: New test.
9796         * testsuite/libgomp.c/atomic-16.c: New test.
9797         * testsuite/libgomp.c/atomic-17.c: New test.
9798         * testsuite/libgomp.c/cancel-for-1.c: New test.
9799         * testsuite/libgomp.c/cancel-for-2.c: New test.
9800         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9801         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9802         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9803         * testsuite/libgomp.c/cancel-sections-1.c: New test.
9804         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9805         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9806         * testsuite/libgomp.c/depend-1.c: New test.
9807         * testsuite/libgomp.c/depend-2.c: New test.
9808         * testsuite/libgomp.c/depend-3.c: New test.
9809         * testsuite/libgomp.c/depend-4.c: New test.
9810         * testsuite/libgomp.c/for-1.c: New test.
9811         * testsuite/libgomp.c/for-1.h: New file.
9812         * testsuite/libgomp.c/for-2.c: New test.
9813         * testsuite/libgomp.c/for-2.h: New file.
9814         * testsuite/libgomp.c/for-3.c: New test.
9815         * testsuite/libgomp.c/pr58392.c: New test.
9816         * testsuite/libgomp.c/simd-1.c: New test.
9817         * testsuite/libgomp.c/simd-2.c: New test.
9818         * testsuite/libgomp.c/simd-3.c: New test.
9819         * testsuite/libgomp.c/simd-4.c: New test.
9820         * testsuite/libgomp.c/simd-5.c: New test.
9821         * testsuite/libgomp.c/simd-6.c: New test.
9822         * testsuite/libgomp.c/target-1.c: New test.
9823         * testsuite/libgomp.c/target-2.c: New test.
9824         * testsuite/libgomp.c/target-3.c: New test.
9825         * testsuite/libgomp.c/target-4.c: New test.
9826         * testsuite/libgomp.c/target-5.c: New test.
9827         * testsuite/libgomp.c/target-6.c: New test.
9828         * testsuite/libgomp.c/target-7.c: New test.
9829         * testsuite/libgomp.c/taskgroup-1.c: New test.
9830         * testsuite/libgomp.c/thread-limit-1.c: New test.
9831         * testsuite/libgomp.c/thread-limit-2.c: New test.
9832         * testsuite/libgomp.c/thread-limit-3.c: New test.
9833         * testsuite/libgomp.c/udr-1.c: New test.
9834         * testsuite/libgomp.c/udr-2.c: New test.
9835         * testsuite/libgomp.c/udr-3.c: New test.
9836         * testsuite/libgomp.c++/affinity-1.C: New test.
9837         * testsuite/libgomp.c++/atomic-10.C: New test.
9838         * testsuite/libgomp.c++/atomic-11.C: New test.
9839         * testsuite/libgomp.c++/atomic-12.C: New test.
9840         * testsuite/libgomp.c++/atomic-13.C: New test.
9841         * testsuite/libgomp.c++/atomic-14.C: New test.
9842         * testsuite/libgomp.c++/atomic-15.C: New test.
9843         * testsuite/libgomp.c++/cancel-for-1.C: New test.
9844         * testsuite/libgomp.c++/cancel-for-2.C: New test.
9845         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9846         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9847         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9848         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9849         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9850         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9851         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9852         * testsuite/libgomp.c++/cancel-test.h: New file.
9853         * testsuite/libgomp.c++/for-9.C: New test.
9854         * testsuite/libgomp.c++/for-10.C: New test.
9855         * testsuite/libgomp.c++/for-11.C: New test.
9856         * testsuite/libgomp.c++/simd-1.C: New test.
9857         * testsuite/libgomp.c++/simd-2.C: New test.
9858         * testsuite/libgomp.c++/simd-3.C: New test.
9859         * testsuite/libgomp.c++/simd-4.C: New test.
9860         * testsuite/libgomp.c++/simd-5.C: New test.
9861         * testsuite/libgomp.c++/simd-6.C: New test.
9862         * testsuite/libgomp.c++/simd-7.C: New test.
9863         * testsuite/libgomp.c++/simd-8.C: New test.
9864         * testsuite/libgomp.c++/target-1.C: New test.
9865         * testsuite/libgomp.c++/target-2.C: New test.
9866         * testsuite/libgomp.c++/target-2-aux.cc: New file.
9867         * testsuite/libgomp.c++/target-3.C: New test.
9868         * testsuite/libgomp.c++/taskgroup-1.C: New test.
9869         * testsuite/libgomp.c++/udr-1.C: New test.
9870         * testsuite/libgomp.c++/udr-2.C: New test.
9871         * testsuite/libgomp.c++/udr-3.C: New test.
9872         * testsuite/libgomp.c++/udr-4.C: New test.
9873         * testsuite/libgomp.c++/udr-5.C: New test.
9874         * testsuite/libgomp.c++/udr-6.C: New test.
9875         * testsuite/libgomp.c++/udr-7.C: New test.
9876         * testsuite/libgomp.c++/udr-8.C: New test.
9877         * testsuite/libgomp.c++/udr-9.C: New test.
9879 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
9881         PR testsuite/57605
9882         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9883         ALWAYS_CFLAGS.
9885 2013-09-20  Alan Modra  <amodra@gmail.com>
9887         * configure: Regenerate.
9889 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
9891         * testsuite/libgomp.c/sections-2.c: New test.
9893 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9895         * testsuite/libgomp.fortran/strassen.f90:
9896         Add dg-skip-if aarch64_tiny.
9898 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
9899             Cesar Philippidis  <cesar@codesourcery.com>
9901         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9902         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9903         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9904         * testsuite/libgomp.fortran/fortran.exp: Likewise.
9905         * testsuite/libgomp.graphite/graphite.exp: Likewise.
9906         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9907         Use dg-runtest rather than gfortran-dg-runtest.
9909 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
9911         * testsuite/libgomp.c/icv-2.c: Extend current handling of
9912         Linux-based x86 systems to cover all GNU systems.
9913         * testsuite/libgomp.c/lock-3.c: Likewise.
9914         * testsuite/libgomp.c/pr48591.c: Likewise.
9916 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
9918         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9919         GNU/Hurd, as done for Linux-based systems.
9921         * config/posix/ptrlock.h: Fix comment.
9923 2013-05-27  Tobias Burnus  <burnus@net-b.de>
9925         PR fortran/57423
9926         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9927         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9928         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9929         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9930         omp_destroy_nest_lock): Correct arguments to match the one in
9931         the OpenMP spec.
9932         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9933         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9934         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9935         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9937 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
9939         * testsuite/libgomp.c/loop-13.c: New test.
9940         * testsuite/libgomp.c/loop-14.c: New test.
9941         * testsuite/libgomp.c/loop-15.c: New test.
9942         * testsuite/libgomp.c++/loop-13.C: New test.
9943         * testsuite/libgomp.c++/loop-14.C: New test.
9944         * testsuite/libgomp.c++/loop-15.C: New test.
9946 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
9948         PR middle-end/56217
9949         * testsuite/libgomp.c++/pr56217.C: New test.
9951 2013-02-01  Alan Modra  <amodra@gmail.com>
9953         * task.c (GOMP_task, GOMP_taskwait): Comment.
9955 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
9956             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
9958         PR libgomp/55561
9959         * config/linux/wait.h (do_spin): Use atomic load for addr.
9960         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9961         for intptr and ptrlock.
9962         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9963         for ptrlock.
9965 2013-01-22  Alan Modra  <amodra@gmail.com>
9967         PR libgomp/51376
9968         PR libgomp/56073
9969         * task.c (GOMP_task): Revert 2011-12-09 change.
9970         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
9971         barrier to read task->children..
9972         (gomp_barrier_handle_tasks): ..and matching atomic store with
9973         release barrier here when setting parent->children to NULL.
9975 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
9976             Tobias Burnus  <burnus@net-b.de>
9978         PR driver/55884
9979         * testsuite/libgomp.fortran/fortran.exp: Use
9980         -fintrinsic-modules-path= instead of
9981         -fintrinsic-modules-path.
9983 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
9985         Update copyright years.
9987 2012-12-19  Tobias Burnus  <burnus@net-b.de>
9989         * testsuite/libgomp.fortran/fortran.exp: Set
9990         -fintrinsic-modules-path.
9992 2012-12-19  Tobias Burnus  <burnus@net-b.de>
9994         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9995         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9997 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
9999         PR libgomp/55411
10000         * team.c (gomp_free_thread): Decrease gomp_managed_threads
10001         if pool had any threads_used.
10003 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
10005         * testsuite/libgomp.c++/pr24455.C: Use
10006         -Wl,-undefined,dynamic_lookup on darwin.
10008 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
10010         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
10012 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
10014         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
10016 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
10017             Jim MacArthur  <jim.macarthur@arm.com>
10018             Marcus Shawcroft  <marcus.shawcroft@arm.com>
10019             Nigel Stephens  <nigel.stephens@arm.com>
10020             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10021             Richard Earnshaw  <rearnsha@arm.com>
10022             Sofiane Naci  <sofiane.naci@arm.com>
10023             Stephen Thomas  <stephen.thomas@arm.com>
10024             Tejas Belagod  <tejas.belagod@arm.com>
10025             Yufeng Zhang  <yufeng.zhang@arm.com>
10027         * configure.tgt: Add AArch64.
10029 2012-10-04  Jason Merrill  <jason@redhat.com>
10031         * testsuite/libgomp.c++/tls-init1.C: New.
10033 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
10035         * configure: Regenerated.
10037 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
10039         * config/linux/mips/futex.h (sys_futex0): Change to static
10040         function with noinline, nomips16 attributes under MIPS16. Adjust
10041         asm statement to place 'li v0,SYS_futex' immediately before
10042         syscall insn.
10044 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
10046         * libgomp.texi (Library Index): Renamed from "Index" to prevent
10047         conflict with index.html on case-insensitive file systems.
10049 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
10051         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10052         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10054 2012-07-02  Richard Guenther  <rguenther@suse.de>
10055             Michael Matz  <matz@suse.de>
10056             Tobias Grosser <tobias@grosser.es>
10057             Sebastian Pop <sebpop@gmail.com>
10059         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10060         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10061         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10062         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10064 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
10066         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10068 2012-06-22  Richard Guenther  <rguenther@suse.de>
10070         Merge from graphite branch
10071         2012-01-13  Tobias Grosser  <tobias@grosser.es>
10073         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10074         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10076 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
10078         PR middle-end/53580
10079         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10080         use GOMP_barrier () call instead.
10081         * testsuite/libgomp.c/pr26943-3.c: Likewise.
10082         * testsuite/libgomp.c/pr26943-4.c: Likewise.
10083         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10084         call GOMP_barrier instead.
10085         * testsuite/libgomp.fortran/vla5.f90: Likewise.
10087 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
10089         PR libgomp/52993
10090         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10091         argument to memset call.
10093 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10095         * configure: Regenerated.
10097 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10099         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10101 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
10103         PR bootstrap/52812
10104         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10106 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
10108         PR middle-end/52547
10109         * testsuite/libgomp.c/pr52547.c: New test.
10111 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10113         * testsuite/lib/libgomp.exp: load fortran-modules.exp
10115 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10117         * configure.tgt (mips-sgi-irix6*): Remove.
10119 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10121         * configure.tgt (alpha*-dec-osf*): Remove.
10123         * config/osf/sem.h: Remove.
10124         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10126 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
10128         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10130 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10132         PR libstdc++/52188
10133         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10134         Remove ENABLE_SYMVERS_SOL2.
10135         * configure: Regenerate.
10136         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10137         (PREPROCESS): New variable.
10138         (libgomp.ver): New target.
10139         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10140         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10141         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10142         Use libgomp.ver.
10143         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10144         * Makefile.in: Regenerate.
10146 2012-02-14  Walter Lee  <walt@tilera.com>
10148         * configure.tgt: Handle tilegx and tilepro.
10149         * config/linux/tile/futex.h: New file.
10151 2012-02-08  Richard Guenther  <rguenther@suse.de>
10153         PR tree-optimization/46886
10154         * testsuite/libgomp.c/pr46886.c: New testcase.
10156 2012-01-25  Matthias Klose  <doko@ubuntu.com>
10158         * config/linux/arm: Remove empty directory.
10159         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10161 2011-12-09  Alan Modra  <amodra@gmail.com>
10163         PR libgomp/51376
10164         * task.c (GOMP_taskwait): Don't access task->children outside of
10165         task_lock mutex region.
10166         (GOMP_task): Likewise.
10168 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
10170         PR libgomp/51132
10171         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10172         to file scope.
10173         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10174         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10175         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10176         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10177         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10179 2011-12-02  Alan Modra  <amodra@gmail.com>
10181         * config/linux/affinity.c: Use atomic rather than sync builtin.
10182         * config/linux/lock.c: Likewise.
10183         * config/linux/ptrlock.h: Likewise.
10184         * config/linux/ptrlock.c: Likewise.
10185         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10186         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10187         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10188         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10189         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10190         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10191         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10192         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10193         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10194         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10196 2011-11-30  Alan Modra  <amodra@gmail.com>
10198         PR libgomp/51298
10199         * config/linux/bar.h: Use atomic rather than sync builtins.
10200         * config/linux/bar.c: Likewise.  Add missing acquire
10201         synchronisation on generation field.
10202         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10203         double unlock.
10205 2011-11-30  Alan Modra  <amodra@gmail.com>
10207         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10208         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10209         * config/linux/mutex.h: Use atomic rather than sync builtins.
10210         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
10211         * config/linux/omp-lock.h: Comment fix.
10212         * config/linux/arm/mutex.h: Delete.
10213         * config/linux/powerpc/mutex.h: Delete.
10214         * config/linux/ia64/mutex.h: Delete.
10215         * config/linux/mips/mutex.h: Delete.
10217 2011-11-30  Alan Modra  <amodra@gmail.com>
10219         PR libgomp/51249
10220         * config/linux/sem.h: Rewrite.
10221         * config/linux/sem.c: Rewrite.
10223 2011-11-28  Richard Henderson  <rth@redhat.com>
10225         * libgomp.h (enum memmodel): New.
10227 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
10229         * configure: Regenerate.
10231 2011-10-10  Matthias Klose  <doko@ubuntu.com>
10233         * config/posix95: Remove empty directory.
10235 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
10237         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10239 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
10241         PR fortran/49792
10242         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10243         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10245 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10247         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10249 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10251         PR libgomp/49965
10252         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10254 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
10256         * config/linux/proc.h: New.
10257         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
10258         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
10259         (gomp_init_num_threads): Update call to cpuset_popcount.
10260         (get_num_procs): Ditto.
10261         * config/linux/affinity.c (gomp_init_affinity): Call
10262         gomp_cpuset_popcount.
10264 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
10266         PR fortran/42041
10267         PR fortran/46752
10268         * omp.h.in (omp_in_final): New prototype.
10269         * omp_lib.f90.in (omp_in_final): New interface.
10270         (omp_integer_kind, omp_logical_kind): Remove
10271         and replace all its uses in the module with 4.
10272         (openmp_version): Change to 201107.
10273         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10274         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10275         kind for the parameters.
10276         (omp_in_final): New external.
10277         (openmp_version): Change to 201107.
10278         * task.c (omp_in_final): New function.
10279         (gomp_init_task): Initialize final_task.
10280         (GOMP_task): Remove unused attribute from flags.  Handle final
10281         tasks.
10282         (GOMP_taskyield): New function.
10283         (omp_in_final): Return true if if (false) or final (true) task
10284         or descendant of final (true).
10285         * fortran.c (omp_in_final_): New function.
10286         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10287         (GOMP_3.0): Export GOMP_taskyield.
10288         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10289         variables.
10290         (parse_unsigned_long_list): New function.
10291         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
10292         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
10293         even if parse_affinity returned false.
10294         * config/linux/affinity.c (gomp_init_affinity): Handle
10295         gomp_cpu_affinity_len == 0.
10296         * libgomp_g.h (GOMP_taskyield): New prototype.
10297         * libgomp.h (struct gomp_task): Add final_task field.
10298         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10299         * team.c (gomp_team_start): Override new task's nthreads_var icv
10300         if list form OMP_NUM_THREADS has been used and it has value for
10301         the new nesting level.
10303         * testsuite/libgomp.c/atomic-11.c: New test.
10304         * testsuite/libgomp.c/atomic-12.c: New test.
10305         * testsuite/libgomp.c/atomic-13.c: New test.
10306         * testsuite/libgomp.c/atomic-14.c: New test.
10307         * testsuite/libgomp.c/reduction-6.c: New test.
10308         * testsuite/libgomp.c/task-5.c: New test.
10309         * testsuite/libgomp.c++/atomic-2.C: New test.
10310         * testsuite/libgomp.c++/atomic-3.C: New test.
10311         * testsuite/libgomp.c++/atomic-4.C: New test.
10312         * testsuite/libgomp.c++/atomic-5.C: New test.
10313         * testsuite/libgomp.c++/atomic-6.C: New test.
10314         * testsuite/libgomp.c++/atomic-7.C: New test.
10315         * testsuite/libgomp.c++/atomic-8.C: New test.
10316         * testsuite/libgomp.c++/atomic-9.C: New test.
10317         * testsuite/libgomp.c++/task-8.C: New test.
10318         * testsuite/libgomp.c++/reduction-4.C: New test.
10319         * testsuite/libgomp.fortran/allocatable7.f90: New test.
10320         * testsuite/libgomp.fortran/allocatable8.f90: New test.
10321         * testsuite/libgomp.fortran/crayptr3.f90: New test.
10322         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10323         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10324         * testsuite/libgomp.fortran/pointer1.f90: New test.
10325         * testsuite/libgomp.fortran/pointer2.f90: New test.
10326         * testsuite/libgomp.fortran/task4.f90: New test.
10328 2011-08-02  Tobias Burnus  <burnus@net-b.de>
10330         * libgomp.texi: Update OpenMP spec references to 3.1.
10331         (omp_in_final,OMP_PROC_BIND): New sections.
10332         (OMP_NUM_THREADS): Document that the value can be now a list.
10333         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10335 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10337         * config/linux/x86/futex.h: Check __x86_64__ instead of
10338         __LP64__.
10340 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
10342         PR middle-end/49897
10343         PR middle-end/49898
10344         * testsuite/libgomp.c/pr49897-1.c: New test.
10345         * testsuite/libgomp.c/pr49897-2.c: New test.
10346         * testsuite/libgomp.c/pr49898-1.c: New test.
10347         * testsuite/libgomp.c/pr49898-2.c: New test.
10349 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
10351         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10352         for ia32 instead of ilp32.
10354         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10355         * testsuite/libgomp.c/atomic-6.c: Likewise.
10357 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
10359         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10360         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10362 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10364         PR libgomp/45351
10365         * config/osf/sem.h: New file.
10366         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10368 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10370         PR target/49541
10371         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10372         ldflags.
10374 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
10376         * config/linux/wait.h (do_spin): New inline, largely copied
10377         from do_wait, just don't do futex_wait here, instead return true if
10378         it should be done.
10379         (do_wait): Implement using do_spin.
10380         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10381         to prototype.
10382         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10383         __sync_bool_compare_and_swap, pass the oldval to
10384         gomp_mutex_lock_slow.
10385         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10386         If all mutex contenders are just spinning and not sleeping, don't
10387         change state to 2 unnecessarily.  Optimize the loop when state has
10388         already become 2 to use just one atomic operation per loop instead
10389         of two.
10390         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10391         to prototype.
10392         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10393         __sync_bool_compare_and_swap, pass the oldval to
10394         gomp_mutex_lock_slow.
10396 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10398         PR libgomp/49490
10399         * iter.c (gomp_iter_static_next): For chunk size 0
10400         only use n ceil/ nthreads size for the first
10401         n % nthreads threads in the team instead of
10402         all threads except for the last few ones which
10403         get less work or none at all.
10404         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10405         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10406         chunk argument, set run_sched_modifier to 0 for static
10407         resp. 1 for other kinds.  If chunk argument is 0
10408         and not static, set value to 1.
10410 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
10412         PR c++/49043
10413         * testsuite/libgomp.c++/pr49043.C: New test.
10415         PR c++/48869
10416         * testsuite/libgomp.c++/pr48869.C: New test.
10418 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
10420         PR fortran/48894
10421         * fortran.c: Include limits.h.
10422         (TO_INT): Define.
10423         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10424         *set.
10425         (omp_set_num_threads_8_, omp_set_schedule_8_,
10426         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10427         omp_get_team_size_8_): Use TO_INT macro.
10428         * testsuite/libgomp.fortran/pr48894.f90: New test.
10430 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
10432         PR middle-end/48591
10433         * testsuite/libgomp.c/pr48591.c: New test.
10435 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10437         PR bootstrap/48135
10438         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10439         * configure: Regenerate.
10441 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10443         PR fortran/47886
10444         * testsuite/libgomp.fortran/task3.f90: New test.
10446 2011-02-24  Tobias Burnus  <burnus@net-b.de>
10448         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10450 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
10452         PR libgomp/47854
10453         * libgomp.texi (omp_get_wtime): Don't say time in the past
10454         must be Unix Epoch.
10456 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10458         PR libgomp/47804
10459         * testsuite/libgomp.fortran/fortran.exp: Check for both
10460         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
10461         but $blddir != "", still append ${blddir}/${lang_library_path}
10462         to ld_library_path.
10464 2011-02-16  Tobias Burnus  <burnus@net-b.de>
10466         PR libgomp/47758
10467         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10468         of libquadmath.a before adding its libpath to ldflags.
10470 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
10472         PR libgomp/47731
10473         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10474         to FUTEX_WAIT futex syscall.
10475         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10477 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10479         * configure: Regenerate.
10481 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
10483         PR libstdc++/36104
10484         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10486 2011-01-16  Gerald Pfeifer
10488         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10490 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
10492         PR fortran/46874
10493         * libgomp.fortran/allocatable6.f90: New test.
10495 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10497         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10498         * configure: Regenerate.
10500 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
10502         PR target/40125
10503         PR lto/46695
10504         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10505         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10506         * aclocal.m4: Regenerate.
10507         * configure: Regenerate.
10508         * Makefile.in: Regenerate.
10509         * testsuite/Makefile.in: Regenerate.
10511 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
10513         PR fortran/46753
10514         * libgomp.fortran/pr46753.f90: New test.
10516         PR libgomp/43706
10517         * env.c (initialize_env): Default to spin count 300000
10518         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10519         is specified.
10521         PR libgomp/45240
10522         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10523         at the end if sync builtins aren't supported.
10525 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10527         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10529 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10531         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10533 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
10535         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10537 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10538             Tobias Burnus  <burnus@net-b.de>
10540         PR fortran/32049
10541         * configure.ac:
10542         * configure: Regenerate.
10544 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10546         * config/linux/futex.h: New.
10547         * config/linux/arm/mutex.h: New.
10548         * configure.tgt (arm*-*-linux*): Add config path.
10550 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10552         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10554 2010-09-23  Tobias Burnus  <burnus@net-b.de>
10556         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10557         Change Fortran datatype to LOGICAL.
10558         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10559         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10561 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10563         * configure: Regenerate.
10565 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
10567         * libgomp.texi: Add function keyword to a couple of Fortran
10568         interfaces, use integer instead of int for Fortran.
10570 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
10572         * libgomp.texi: Fix spelling and pasto problems throughout.
10573         Adjust prototypes to match code.
10575 2010-07-24  Tobias Burnus  <burnus@net-b.de>
10577         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10578         silence -fwhole-file warning.
10580 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10582         * configure.tgt (*-*-solaris2.[56]*): Removed.
10584 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10586         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10587         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10588         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10589         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10590         targetting solaris2*.
10591         * configure: Regenerate.
10592         * config.h.in: Regenerate.
10594         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10595         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10596         Add libgomp_version_dep.
10597         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10598         versioning.
10599         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10600         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10601         * Makefile.in: Regenerate.
10603         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10604         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10605         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10606         to common block, protected by
10607         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10609 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
10611         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
10613 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
10615         PR bootstrap/43170
10616         * configure: Regenerate.
10618 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10620         PR other/43620
10621         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10622         * configure: Regenerate.
10623         * Makefile.in: Regenerate.
10624         * testsuite/Makefile.in: Regenerate.
10626 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
10628         PR c/43893
10629         * testsuite/libgomp.c/pr43893.c: New test.
10630         * testsuite/libgomp.c++/pr43893.C: New test.
10632 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
10634         PR middle-end/43570
10635         * testsuite/libgomp.fortran/vla8.f90: New test.
10637 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
10639         PR libgomp/43706
10640         * config/linux/affinity.c (gomp_init_affinity): Decrease
10641         gomp_available_cpus if affinity mask confines the process to fewer
10642         CPUs.
10643         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10644         non-NULL, just return gomp_available_cpus.
10646         PR libgomp/43569
10647         * sections.c (gomp_sections_init): Initialize ws->mode.
10649 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
10651         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10652         not unused bar variable.
10653         * configure: Regenerate.
10655 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10657         * Makefile.in: Regenerate.
10658         * aclocal.m4: Regenerate.
10659         * testsuite/Makefile.in: Regenerate.
10661 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
10663         PR libgomp/42942
10664         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10665         (initialize_env): Adjust callers.
10666         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10667         when the argument is 0.
10669         * testsuite/libgomp.c/pr42942.c: New test.
10671 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
10673         PR middle-end/42644
10674         PR middle-end/42130
10675         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10676         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10678 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10680         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10681         * testsuite/libgomp.c++/task-6.C: Likewise.
10683 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
10685         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10687 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
10689         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10690         * configure: Regenerate.
10692 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
10694         PR fortran/42866
10695         * testsuite/libgomp.fortran/allocatable5.f90: New test.
10697 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
10699         * configure.ac: Test for executability of GFORTRAN.
10700         * configure: Regenerate.
10702 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10704         * configure: Regenerate.
10706 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
10708         PR libgomp/42602
10709         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10711 2010-01-03  Richard Guenther  <rguenther@suse.de>
10713         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10715 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
10717         * testsuite/libgomp.graphite/pr4118.c: New.
10719 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
10721         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10722         for darwin, protect the test with require-effective-target tls_runtime.
10723         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10725 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
10727         PR target/41605
10728         * testsuite/lib/libgomp.exp: Provide -B options to allow for
10729         link spec %s substitutions for static libraries.
10731 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
10733         PR testsuite/42135
10734         * libgomp.graphite/force-parallel-2.c: Reduce array size.
10736 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10738         * Makefile.in: Regenerate.
10739         * configure: Regenerate.
10740         * testsuite/Makefile.in: Regenerate.
10742 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
10744         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10745         settings for LC_ALL and LANG.
10747 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
10749         PR fortran/42162
10750         * testsuite/libgomp.fortran/pr42162.f90: New test.
10752 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
10754         PR middle-end/42029
10755         * testsuite/libgomp.c/pr42029.c: New test.
10757 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
10759         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10760         *s.  Accept ld version without text in ()s.
10761         * configure: Regenerated.
10763 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
10765         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10767 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10769         PR libgomp/41418
10770         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10771         or a hyphen (happens with fortran language disabled).
10772         * configure: Regenerate.
10774 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10776         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10777         use sed script portable to Solaris /bin/sed for extracting ld
10778         version.
10779         * configure: Regenerate.
10781 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
10783         * testsuite/libgomp.graphite/bounds.c: New test.
10785 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10787         * Makefile.am (libgomp_la_LINK): New.
10788         * Makefile.in: Regenerate.
10790 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10792         * configure.ac (AC_PREREQ): Bump to 2.64.
10794 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10796         * Makefile.am (install-html, install-pdf): Remove.
10797         * Makefile.in: Regenerate.
10799         * Makefile.in: Regenerate.
10800         * aclocal.m4: Regenerate.
10801         * config.h.in: Regenerate.
10802         * configure: Regenerate.
10803         * testsuite/Makefile.in: Regenerate.
10805 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10807         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10808         * Makefile.in: Regenerate.
10810 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
10812         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10813         * Makefile.in: Regenerate.
10815 2009-08-19  Tobias Burnus  <burnus@net-b.de>
10817         PR fortran/41102
10818         omp_lib.h.in: Fix -std=f95 errors.
10820 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
10822         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10823         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10824         * testsuite/libgomp.graphite/graphite.exp: New.
10826 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
10828         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10829         only build.
10831 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
10833         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10834         needed memory barrier semantics.
10835         * config/linux/mips/mutex.h: New file.
10837 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10839         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10841 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
10843         * configure: Regenerate.
10845 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
10847         PR testsuite/40699
10848         PR testsuite/40707
10849         PR testsuite/40709
10850         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10851         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10852         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10854 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
10856         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10857         options when choosing a multilib.
10859 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
10861         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10862         ld_library_path.  Use add_path.  Add just find_libgcc_s to
10863         ld_library_path, not every libgcc multilib directory.
10864         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10865         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10866         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10867         Use add_path.
10868         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10870 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
10872         * Makefile.am (LTLDFLAGS): Define.
10873         (LINK): Define.
10874         * Makefile.in: Regenerate.
10876 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
10878         PR fortran/39718
10879         * testsuite/libgomp.fortran/fortran.exp: Don't link with
10880         libgfortranbegin, check existence of libgfortran.a instead of
10881         libgfortranbegin.a.
10883 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
10885         PR libgomp/40174
10886         * team.c (gomp_thread_start): Destroy thr->release semaphore.
10887         (gomp_free_pool_helper): Likewise.
10889 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
10890             Jakub Jelinek  <jakub@redhat.com>
10892         PR fortran/35423
10893         * testsuite/libgomp.fortran/workshare2.f90: New test.
10895 2009-04-09  Nick Clifton  <nickc@redhat.com>
10897         * iter.c: Change copyright header to refer to version 3 of the
10898         GNU General Public License with version 3.1 of the GCC Runtime
10899         Library Exception and to point readers at the COPYING3 and
10900         COPYING3.RUNTIME files and the FSF's license web page.
10901         * alloc.c: Likewise.
10902         * barrier.c: Likewise.
10903         * config/bsd/proc.c: Likewise.
10904         * config/linux/affinity.c: Likewise.
10905         * config/linux/alpha/futex.h: Likewise.
10906         * config/linux/bar.c: Likewise.
10907         * config/linux/bar.h: Likewise.
10908         * config/linux/ia64/futex.h: Likewise.
10909         * config/linux/ia64/mutex.h: Likewise.
10910         * config/linux/lock.c: Likewise.
10911         * config/linux/mips/futex.h: Likewise.
10912         * config/linux/mutex.c: Likewise.
10913         * config/linux/mutex.h: Likewise.
10914         * config/linux/powerpc/futex.h: Likewise.
10915         * config/linux/proc.c: Likewise.
10916         * config/linux/ptrlock.c: Likewise.
10917         * config/linux/ptrlock.h: Likewise.
10918         * config/linux/s390/futex.h: Likewise.
10919         * config/linux/sem.c: Likewise.
10920         * config/linux/sem.h: Likewise.
10921         * config/linux/sparc/futex.h: Likewise.
10922         * config/linux/wait.h: Likewise.
10923         * config/linux/x86/futex.h: Likewise.
10924         * config/mingw32/proc.c: Likewise.
10925         * config/mingw32/time.c: Likewise.
10926         * config/posix/affinity.c: Likewise.
10927         * config/posix/bar.c: Likewise.
10928         * config/posix/bar.h: Likewise.
10929         * config/posix/lock.c: Likewise.
10930         * config/posix/mutex.h: Likewise.
10931         * config/posix/proc.c: Likewise.
10932         * config/posix/ptrlock.h: Likewise.
10933         * config/posix/sem.c: Likewise.
10934         * config/posix/sem.h: Likewise.
10935         * config/posix/time.c: Likewise.
10936         * config/posix95/lock.c: Likewise.
10937         * critical.c: Likewise.
10938         * env.c: Likewise.
10939         * error.c: Likewise.
10940         * fortran.c: Likewise.
10941         * iter_ull.c: Likewise.
10942         * libgomp.h: Likewise.
10943         * libgomp_f.h.in: Likewise.
10944         * libgomp_g.h: Likewise.
10945         * loop.c: Likewise.
10946         * loop_ull.c: Likewise.
10947         * omp.h.in: Likewise.
10948         * omp_lib.f90.in: Likewise.
10949         * omp_lib.h.in: Likewise.
10950         * ordered.c: Likewise.
10951         * parallel.c: Likewise.
10952         * sections.c: Likewise.
10953         * single.c: Likewise.
10954         * task.c: Likewise.
10955         * team.c: Likewise.
10956         * work.c: Likewise.
10958 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
10960         * testsuite/config/default.exp: Change copyright header to refer to
10961         version 3 of the GNU General Public License and to point readers
10962         at the COPYING3 file and the FSF's license web page.
10964 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
10966         PR middle-end/39573
10967         * libgomp.c++/pr39573.C: New test.
10969 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
10971         PR other/39591
10972         * testsuite/libgomp.c/pr39591-1.c: New test.
10973         * testsuite/libgomp.c/pr39591-2.c: New test.
10974         * testsuite/libgomp.c/pr39591-3.c: New test.
10976 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
10978         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10979         * testsuite/libgomp.c/atomic-6.c: Ditto.
10981 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
10983         PR c/39495
10984         * testsuite/libgomp.c/loop-12.c: New test.
10985         * testsuite/libgomp.c/loop-11.c: New test.
10986         * testsuite/libgomp.c++/loop-11.C: New test.
10987         * testsuite/libgomp.c++/loop-12.C: New test.
10988         * testsuite/libgomp.c++/for-8.C: New test.
10990 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10992         * configure: Regenerate.
10994 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
10996         PR middle-end/39154
10997         * testsuite/libgomp.c/pr39154.c: New test.
10999 2009-01-30  Ian Lance Taylor  <iant@google.com>
11001         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
11002         libgomp_ld_is_gold.  Get gold version number.
11003         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
11004         * configure: Rebuild.
11006 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
11008         * testsuite/lib/libgomp.exp: Add -B option for targets that
11009         use libgfortran.a%s in their specs.
11011 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
11013         PR libgomp/38086
11014         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
11015         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
11016         HAVE_AS_SYMVER_DIRECTIVE is not defined.
11017         * configure: Regenerated.
11018         * config.h.in: Likewise.
11020 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
11022         PR c++/38650
11023         * testsuite/libgomp.c/pr38650.c: New test.
11024         * testsuite/libgomp.c++/pr38650.C: New test.
11026 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
11028         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
11030 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
11032         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
11034 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11036         * configure: Regenerate.
11038 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
11040         PR middle-end/36802
11041         * testsuite/libgomp.c/pr36802-1.c: New test.
11042         * testsuite/libgomp.c/pr36802-2.c: New test.
11043         * testsuite/libgomp.c/pr36802-3.c: New test.
11045 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
11047         PR libgomp/38270
11048         * config/linux/powerpc/mutex.h: New.
11050 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
11052         PR c++/38257
11053         * testsuite/libgomp.c++/for-7.C: New test.
11055         PR c++/38348
11056         * testsuite/libgomp.c++/for-6.C: New test.
11058 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
11060         PR testsuite/28870
11061         * testsuite/lib/libgomp.exp: Include new timeout library files.
11062         (libgomp_target_compile): Set timeout value from new proc.
11064 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
11066         PR libgomp/37938
11067         * config/linux/ia64/mutex.h: New.
11069 2008-11-04  Tobias Burnus  <burnus@net-b.de>
11071         PR libgomp/37935
11072         * libgomp.texi (Runtime library routines, environment variables):
11073         Update for OpenMP version 3.0.
11075 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
11076             Steve Ellcey  <sje@cup.hp.com>
11078         * configure: Regenerate for new libtool.
11079         * Makefile.in: Ditto.
11080         * testsuite/Makefile.in: Ditto.
11082 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
11083             Andreas Tobler  <a.tobler@schweiz.org>
11085         * config/bsd/proc.c: New file.
11086         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
11087         * configure.ac: Check for header <sys/sysctl.h>
11088         * configure: Regenerate.
11089         * config.h.in: Likewise.
11091 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
11093         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11095 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
11097         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11098         * Makefile.in: Regenerated.
11099         * testsuite/Makefile.in: Regenerated.
11101 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
11103         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
11104         depend on blddir if blddir exists.
11105         (libgomp_target_compile): Likewise.
11106         * testsuite/libgomp.c++/c++.exp: Likewise.
11107         * testsuite/libgomp.fortran/fortran.exp: Likewise.
11109 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11111         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
11112         Do not list GPL as Invariant Section.
11114 2008-07-28  Ilie Garbacea  <ilie@mips.com>
11115             Chao-ying Fu  <fu@mips.com>
11117         * configure.tgt: Enable futex for MIPS.
11118         * config/linux/mips/futex.h: New file.
11120 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
11122         * team.c (gomp_team_end): Free team immediately if it has
11123         just one thread.
11125 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
11127         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11128         * testsuite/libgomp.fortran/fortran.exp: Same.
11129         * testsuite/libgomp.c/c.exp: Same.
11130         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11131         directory to library path first.
11133 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
11135         * env.c (parse_stacksize): Add cast to avoid warning.
11136         (parse_spincount): Likewise.
11138 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
11140         * testsuite/libgomp.c/loop-10.c: New test.
11141         * libgomp.c/loop-3.c (main): Add lastprivate clause.
11142         * libgomp.c++/loop-6.C (main): Likewise.
11144         PR debug/36617
11145         * testsuite/libgomp.c/debug-1.c: New test.
11147 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
11149         * testsuite/libgomp.c/nqueens-1.c: New test.
11151         PR c++/36523
11152         * testsuite/libgomp.c++/task-7.C: New function.
11154 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11156         * configure: Regenerate.
11158 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11160         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11161         mutex when HAVE_SYNC_BUILTINS isn't defined.
11163 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11165         * libgomp.texi (omp_test_lock): Fix typo.
11167 2008-06-12  Tobias Burnus  <burnus@net-b.de>
11169         * omp_lib.f90.in: Add "implicit none".
11171 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
11173         PR middle-end/36506
11174         * testsuite/libgomp.c/reduction-5.c: New test.
11176 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
11178         * libgomp.h (struct gomp_task): Add in_tied_task field.
11179         * task.c (gomp_init_task): Initialize it.
11180         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
11181         unconditionally.  Don't call gomp_team_barrier_wake if
11182         current task is implicit or if(0) from implicit and number of
11183         running tasks is equal to nthreads - 1.
11185         PR libgomp/36471
11186         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11187         omp_get_team_size_8): Fix pastos.
11189         PR libgomp/36469
11190         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11191         * configure: Regenerated.
11192         * config.h.in: Regenerated.
11193         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11194         defined.
11196 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
11198         PR bootstrap/36452
11199         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11200         (GOMP_loop_ull_dynamic_start): Likewise.
11201         (GOMP_loop_ull_guided_start): Likewise.
11202         (GOMP_loop_ull_ordered_static_start): Likewise.
11203         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11204         (GOMP_loop_ull_ordered_guided_start): Likewise.
11206 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11207             Richard Henderson  <rth@redhat.com>
11208             Ulrich Drepper  <drepper@redhat.com>
11209             Jakob Blomer  <jakob.blomer@ira.uka.de>
11211         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11212         Substitute also OMP_*LOCK_25*.
11213         * configure: Regenerated.
11214         * config.h.in: Regenerated.
11215         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11216         ptrlock.c and task.c.
11217         * Makefile.in: Regenerated.
11218         * testsuite/Makefile.in: Regenerated.
11219         * task.c: New file.
11220         * loop_ull.c: New file.
11221         * iter_ull.c: New file.
11222         * libgomp.h: Include ptrlock.h.
11223         (enum gomp_task_kind): New type.
11224         (struct gomp_team): Add task_lock, task_queue, task_count,
11225         task_running_count, single_count fields.  Add
11226         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11227         Remove work_share_lock, generation_mask,
11228         oldest_live_gen, num_live_gen and init_work_shares fields, add
11229         work work_share_list_alloc, work_share_list_free and work_share_chunk
11230         fields.  Change work_shares from pointer to pointers into an array.
11231         Change ordered_release field into gomp_sem_t ** from flexible array
11232         member.  Add implicit_task and initial_work_shares fields.
11233         Move close to the end of the struct.
11234         (struct gomp_team_state): Add single_count, last_work_share,
11235         active_level and level fields, remove work_share_generation.
11236         (gomp_barrier_handle_tasks): New prototype.
11237         (gomp_finish_task): New inline function.
11238         (struct gomp_work_share): Move chunk_size, end, incr into
11239         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11240         next_ll fields.  Reshuffle fields.  Add next_alloc,
11241         next_ws, next_free and inline_ordered_team_ids fields, change
11242         ordered_team_ids into pointer from flexible array member.
11243         Add mode field.  Put lock and next into a different cache line
11244         from most of the write-once fields.
11245         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11246         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11247         gomp_iter_ull_guided_next): New prototypes.
11248         (gomp_new_icv): New prototype.
11249         (struct gomp_thread): Add thread_pool and task fields.
11250         (struct gomp_thread_pool): New type.
11251         (gomp_new_team): New prototype.
11252         (gomp_team_start): Change type of last argument.
11253         (gomp_new_work_share): Removed.
11254         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11255         (gomp_work_share_init_done): New static inline.
11256         (gomp_throttled_spin_count_var, gomp_available_cpus,
11257         gomp_managed_threads): New extern decls.
11258         (gomp_init_task): New prototype.
11259         (gomp_spin_count_var): New extern var decl.
11260         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11261         or no alias support, or if not PIC.
11262         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11263         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11264         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11265         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11266         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11267         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11268         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11269         gomp_test_nest_lock_25): New prototypes.
11270         (omp_lock_symver, strong_alias): Define.
11271         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11272         decls.
11273         (gomp_end_task): New.
11274         (struct gomp_task_icv, gomp_global_icv): New.
11275         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11276         (struct gomp_task): New.
11277         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11278         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11279         (gomp_icv): New.
11280         (gomp_schedule_type): Reorder enum to match
11281         omp_sched_t.
11282         * team.c (struct gomp_thread_start_data): Add thread_pool and task
11283         fields.
11284         (gomp_thread_start): Add gomp_team_barrier_wait call.
11285         For non-nested case remove clearing of docked thread thr fields.
11286         Use pool fields instead of global gomp_* variables.  Use
11287         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
11288         Create tasks for each member thread.
11289         (free_team): Only destroy team barrier, task_lock here and free it.
11290         (gomp_free_thread): Free last_team if non-NULL.
11291         (gomp_team_end): Call gomp_team_barrier_wait instead of
11292         gomp_barrier_wait.  For nested case call one extra
11293         gomp_barrier_wait.  Move here some destruction from free_team.
11294         Call free_team on pool->last_team if any, rather than freeing
11295         current team.  Destroy work_share_list_free_lock ifndef
11296         HAVE_SYNC_BUILTINS.
11297         (gomp_new_icv): New function.
11298         (gomp_threads, gomp_threads_size, gomp_threads_used,
11299         gomp_threads_dock): Removed.
11300         (gomp_thread_destructor): New variable.
11301         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11302         functions.
11303         (gomp_team_start): Create new pool if current thread doesn't have
11304         one.  Use pool fields instead of global gomp_* variables.
11305         Initialize thread_pool field for new threads.  Clear single_count.
11306         Change last argument from ws to team, don't create
11307         new team, set ts.work_share to &team->work_shares[0] and clear
11308         ts.last_work_share.  Don't clear ts.work_share_generation.
11309         If number of threads changed, adjust atomically gomp_managed_threads.
11310         Use gomp_init_task instead of gomp_new_task,
11311         set thr->task to the corresponding implicit_task array entry.
11312         Create tasks for each member thread.  Initialize ts.level.
11313         (initialize_team): Call pthread_key_create on
11314         gomp_thread_destructor.
11315         (team_destructor): New function.
11316         (new_team): Removed.
11317         (gomp_new_team): New function.
11318         (free_team): Free gomp_work_share blocks chained through next_alloc,
11319         instead of freeing work_shares and destroying work_share_lock.
11320         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
11321         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
11322         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11323         of gomp_barrier_wait.
11324         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11325         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
11326         if gomp_work_share_start returned true.  Don't unlock ws->lock.
11327         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11328         of gomp_barrier_wait.
11329         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
11330         gomp_work_share_init_done if gomp_work_share_start returned true.
11331         Don't unlock ws->lock.
11332         * work.c: Include stddef.h.
11333         (free_work_share): Use work_share_list_free_lock instead
11334         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
11335         Call gomp_fini_work_share and then either free ws if orphaned, or
11336         put it into work_share_list_free list of the current team.
11337         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11338         functions.
11339         (gomp_work_share_start, gomp_work_share_end,
11340         gomp_work_share_end_nowait): Rewritten.
11341         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11342         (openmp_version): Set to 200805.
11343         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11344         omp_sched_guided, omp_sched_auto): New parameters.
11345         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11346         omp_set_max_active_levels, omp_get_max_active_levels,
11347         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11348         omp_get_active_level): New interfaces.
11349         * omp_lib.h.in (openmp_version): Set to 200805.
11350         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11351         omp_sched_guided, omp_sched_auto): New parameters.
11352         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11353         omp_set_max_active_levels, omp_get_max_active_levels,
11354         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11355         omp_get_active_level): New externals.
11356         * loop.c: Include limits.h.
11357         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11358         GFS_AUTO.
11359         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11360         Likewise.  Use gomp_icv.
11361         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11362         ts.static_trip here.
11363         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11364         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
11365         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11366         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
11367         don't unlock ws->lock, otherwise lock it.
11368         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11369         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
11370         (gomp_parallel_loop_start): Call gomp_new_team instead of
11371         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
11372         Adjust gomp_team_start caller.  Pass 0 as second argument to
11373         gomp_resolve_num_threads.
11374         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11375         If adding ws->chunk_size nthreads + 1 times after end won't
11376         overflow, set ws->mode to 1.
11377         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11378         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11379         GOMP_loop_ull_ordered_static_start,
11380         GOMP_loop_ull_ordered_dynamic_start,
11381         GOMP_loop_ull_ordered_guided_start,
11382         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11383         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11384         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11385         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11386         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11387         prototypes.
11388         * libgomp.map: Export lock routines also @@OMP_2.0.
11389         (GOMP_loop_ordered_dynamic_first,
11390         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11391         GOMP_loop_ordered_static_first): Remove.
11392         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11393         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11394         GOMP_loop_ull_ordered_dynamic_next,
11395         GOMP_loop_ull_ordered_dynamic_start,
11396         GOMP_loop_ull_ordered_guided_next,
11397         GOMP_loop_ull_ordered_guided_start,
11398         GOMP_loop_ull_ordered_runtime_next,
11399         GOMP_loop_ull_ordered_runtime_start,
11400         GOMP_loop_ull_ordered_static_next,
11401         GOMP_loop_ull_ordered_static_start,
11402         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11403         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11404         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11405         (omp_set_schedule, omp_get_schedule,
11406         omp_get_thread_limit, omp_set_max_active_levels,
11407         omp_get_max_active_levels, omp_get_level,
11408         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11409         omp_set_schedule_, omp_set_schedule_8_,
11410         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11411         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11412         omp_get_max_active_levels_, omp_get_level_,
11413         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11414         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11415         New exports @@OMP_3.0.
11416         * omp.h.in (omp_sched_t): New type.
11417         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11418         omp_set_max_active_levels, omp_get_max_active_levels,
11419         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11420         omp_get_active_level): New prototypes.
11421         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11422         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11423         gomp_thread_limit_var, gomp_remaining_threads_count,
11424         gomp_remaining_threads_lock): New variables.
11425         (parse_spincount): New function.
11426         (initialize_env): Call gomp_init_num_threads unconditionally.
11427         Initialize gomp_available_cpus.  Call parse_spincount,
11428         initialize gomp_{,throttled_}spin_count_var
11429         depending on presence and value of OMP_WAIT_POLICY and
11430         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
11431         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11432         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
11433         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
11434         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
11435         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11436         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11437         (gomp_global_icv): New.
11438         (parse_schedule): Use it.  Parse "auto".
11439         (omp_set_num_threads): Use gomp_icv.
11440         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11441         Likewise.
11442         (omp_get_max_threads): Move from parallel.c.
11443         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11444         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11445         add ialias.
11446         (parse_stacksize, parse_wait_policy): New functions.
11447         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11448         both wrappers for compatibility and new locks.
11449         (omp_set_schedule, omp_get_schedule,
11450         omp_get_thread_limit, omp_set_max_active_levels,
11451         omp_get_max_active_levels, omp_get_level,
11452         omp_get_ancestor_thread_num, omp_get_team_size,
11453         omp_get_active_level): New ialias_redirect.
11454         (omp_set_schedule_, omp_set_schedule_8_,
11455         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11456         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11457         omp_get_max_active_levels_, omp_get_level_,
11458         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11459         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11460         New functions.
11461         * parallel.c: Include limits.h.
11462         (gomp_resolve_num_threads): Add count argument.  Rewritten.
11463         (GOMP_parallel_start): Call gomp_new_team and pass that as last
11464         argument to gomp_team_start.  Pass 0 as second argument to
11465         gomp_resolve_num_threads.
11466         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11467         if gomp_thread_limit_var != ULONG_MAX.
11468         (omp_in_parallel): Implement using ts.active_level.
11469         (omp_get_max_threads): Move to env.c.
11470         (omp_get_level, omp_get_ancestor_thread_num,
11471         omp_get_team_size, omp_get_active_level): New functions,
11472         add ialias.
11473         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11474         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
11475         gomp_iter_dynamic_next instead of the _locked variant and don't take
11476         lock around it, otherwise acquire it before calling
11477         gomp_iter_dynamic_next_locked.
11478         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11479         gomp_iter_dynamic_next instead of the _locked variant and don't take
11480         lock around it.
11481         (GOMP_parallel_sections_start): Call gomp_new_team instead of
11482         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
11483         Adjust gomp_team_start caller.  Pass count as second argument to
11484         gomp_resolve_num_threads, don't adjust num_threads after the call.
11485         Use gomp_icv.
11486         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11487         ws->chunk_size by incr.
11488         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
11489         code.
11490         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11491         types.
11492         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11493         (omp_check_defines): Check even the compat defines.
11494         * config/linux/ptrlock.c: New file.
11495         * config/linux/ptrlock.h: New file.
11496         * config/linux/wait.h: New file.
11497         * config/posix/ptrlock.c: New file.
11498         * config/posix/ptrlock.h: New file.
11499         * config/linux/bar.h (gomp_team_barrier_wait,
11500         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11501         (gomp_team_barrier_set_task_pending,
11502         gomp_team_barrier_clear_task_pending,
11503         gomp_team_barrier_set_waiting_for_tasks,
11504         gomp_team_barrier_waiting_for_tasks,
11505         gomp_team_barrier_done): New inlines.
11506         (gomp_barrier_t): Rewritten.
11507         (gomp_barrier_state_t): New typedef.
11508         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11509         gomp_barrier_wait_start): Rewritten.
11510         (gomp_barrier_wait_end): Change second argument to
11511         gomp_barrier_state_t.
11512         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11513         inlines.
11514         * config/linux/bar.c: Include wait.h instead of libgomp.h and
11515         futex.h.
11516         (gomp_barrier_wait_end): Rewritten.
11517         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11518         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11519         * config/posix/bar.h (gomp_barrier_t): Add generation field.
11520         (gomp_barrier_state_t): New typedef.
11521         (gomp_team_barrier_wait,
11522         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11523         (gomp_barrier_wait_start): Or all but low 2 bits from generation
11524         into the return value.  Return gomp_barrier_state_t.
11525         (gomp_team_barrier_set_task_pending,
11526         gomp_team_barrier_clear_task_pending,
11527         gomp_team_barrier_set_waiting_for_tasks,
11528         gomp_team_barrier_waiting_for_tasks,
11529         gomp_team_barrier_done): New inlines.
11530         (gomp_barrier_wait_end): Change second argument to
11531         gomp_barrier_state_t.
11532         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11533         inlines.
11534         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11535         (gomp_barrier_wait_end): Change second argument to
11536         gomp_barrier_state_t.
11537         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11538         gomp_team_barrier_wake): New functions.
11539         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11540         futex.h.
11541         (gomp_futex_wake, gomp_futex_wait): New variables.
11542         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11543         * config/linux/lock.c: Rewrite to make locks task owned,
11544         for backwards compatibility provide the old entrypoints
11545         if symbol versioning.  Include wait.h instead of libgomp.h and
11546         futex.h.
11547         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11548         * config/posix95/lock.c: Rewrite to make locks task owned,
11549         for backwards compatibility provide the old entrypoints
11550         if symbol versioning.
11551         * config/posix/lock.c: Rewrite to make locks task owned,
11552         for backwards compatibility provide the old entrypoints
11553         if symbol versioning.
11554         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11555         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11556         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11557         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11558         (sys_futex0): Return error code.
11559         (futex_wake, futex_wait): If ENOSYS was returned, clear
11560         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11561         (cpu_relax, atomic_write_barrier): New static inlines.
11562         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11563         (futex_wake, futex_wait): If ENOSYS was returned, clear
11564         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11565         (cpu_relax, atomic_write_barrier): New static inlines.
11566         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11567         (sys_futex0): Return error code.
11568         (futex_wake, futex_wait): If ENOSYS was returned, clear
11569         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11570         (cpu_relax, atomic_write_barrier): New static inlines.
11571         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11572         (sys_futex0): Return error code.
11573         (futex_wake, futex_wait): If ENOSYS was returned, clear
11574         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11575         (cpu_relax, atomic_write_barrier): New static inlines.
11576         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11577         (sys_futex0): Return error code.
11578         (futex_wake, futex_wait): If ENOSYS was returned, clear
11579         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11580         (cpu_relax, atomic_write_barrier): New static inlines.
11581         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11582         (sys_futex0): Return error code.
11583         (futex_wake, futex_wait): If ENOSYS was returned, clear
11584         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11585         (cpu_relax, atomic_write_barrier): New static inlines.
11586         * config/linux/sem.c: Include wait.h instead of libgomp.h and
11587         futex.h.
11588         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11589         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11590         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11591         types.
11592         (omp_nest_lock_t): Change owner into void *, add lock field.
11593         * config/posix95/omp-lock.h: Include semaphore.h.
11594         (omp_lock_25_t, omp_nest_lock_25_t): New types.
11595         (omp_lock_t): Use sem_t instead of mutex if semaphores
11596         aren't broken.
11597         (omp_nest_lock_t): Likewise.  Change owner to void *.
11598         * config/posix/omp-lock.h: Include semaphore.h.
11599         (omp_lock_25_t, omp_nest_lock_25_t): New types.
11600         (omp_lock_t): Use sem_t instead of mutex if semaphores
11601         aren't broken.
11602         (omp_nest_lock_t): Likewise.  Add owner field.
11604 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11606         * testsuite/libgomp.c/collapse-1.c: New test.
11607         * testsuite/libgomp.c/collapse-2.c: New test.
11608         * testsuite/libgomp.c/collapse-3.c: New test.
11609         * testsuite/libgomp.c/icv-1.c: New test.
11610         * testsuite/libgomp.c/icv-2.c: New test.
11611         * testsuite/libgomp.c/lib-2.c: New test.
11612         * testsuite/libgomp.c/lock-1.c: New test.
11613         * testsuite/libgomp.c/lock-2.c: New test.
11614         * testsuite/libgomp.c/lock-3.c: New test.
11615         * testsuite/libgomp.c/loop-4.c: New test.
11616         * testsuite/libgomp.c/loop-5.c: New test.
11617         * testsuite/libgomp.c/loop-6.c: New test.
11618         * testsuite/libgomp.c/loop-7.c: New test.
11619         * testsuite/libgomp.c/loop-8.c: New test.
11620         * testsuite/libgomp.c/loop-9.c: New test.
11621         * testsuite/libgomp.c/nested-3.c: New test.
11622         * testsuite/libgomp.c/nestedfn-6.c: New test.
11623         * testsuite/libgomp.c/sort-1.c: New test.
11624         * testsuite/libgomp.c/task-1.c: New test.
11625         * testsuite/libgomp.c/task-2.c: New test.
11626         * testsuite/libgomp.c/task-3.c: New test.
11627         * testsuite/libgomp.c/task-4.c: New test.
11628         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11629         to C++ testsuite default compiler options.
11630         * testsuite/libgomp.c++/collapse-1.C: New test.
11631         * testsuite/libgomp.c++/collapse-2.C: New test.
11632         * testsuite/libgomp.c++/ctor-10.C: New test.
11633         * testsuite/libgomp.c++/for-1.C: New test.
11634         * testsuite/libgomp.c++/for-2.C: New test.
11635         * testsuite/libgomp.c++/for-3.C: New test.
11636         * testsuite/libgomp.c++/for-4.C: New test.
11637         * testsuite/libgomp.c++/for-5.C: New test.
11638         * testsuite/libgomp.c++/loop-8.C: New test.
11639         * testsuite/libgomp.c++/loop-9.C: New test.
11640         * testsuite/libgomp.c++/loop-10.C: New test.
11641         * testsuite/libgomp.c++/task-1.C: New test.
11642         * testsuite/libgomp.c++/task-2.C: New test.
11643         * testsuite/libgomp.c++/task-3.C: New test.
11644         * testsuite/libgomp.c++/task-4.C: New test.
11645         * testsuite/libgomp.c++/task-5.C: New test.
11646         * testsuite/libgomp.c++/task-6.C: New test.
11647         * testsuite/libgomp.fortran/allocatable1.f90: New test.
11648         * testsuite/libgomp.fortran/allocatable2.f90: New test.
11649         * testsuite/libgomp.fortran/allocatable3.f90: New test.
11650         * testsuite/libgomp.fortran/allocatable4.f90: New test.
11651         * testsuite/libgomp.fortran/collapse1.f90: New test.
11652         * testsuite/libgomp.fortran/collapse2.f90: New test.
11653         * testsuite/libgomp.fortran/collapse3.f90: New test.
11654         * testsuite/libgomp.fortran/collapse4.f90: New test.
11655         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11656         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11657         * testsuite/libgomp.fortran/lib4.f90: New test.
11658         * testsuite/libgomp.fortran/lock-1.f90: New test.
11659         * testsuite/libgomp.fortran/lock-2.f90: New test.
11660         * testsuite/libgomp.fortran/nested1.f90: New test.
11661         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11662         * testsuite/libgomp.fortran/strassen.f90: New test.
11663         * testsuite/libgomp.fortran/tabs1.f90: New test.
11664         * testsuite/libgomp.fortran/tabs2.f: New test.
11665         * testsuite/libgomp.fortran/task1.f90: New test.
11666         * testsuite/libgomp.fortran/task2.f90: New test.
11667         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11668         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11669         * testsuite/libgomp.c/pr26943-2.c: Likewise.
11670         * testsuite/libgomp.c/pr26943-3.c: Likewise.
11671         * testsuite/libgomp.c/pr26943-4.c: Likewise.
11673 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
11675         PR c++/36308
11676         * testsuite/libgomp.c++/ctor-11.C: New test.
11677         * testsuite/libgomp.c++/ctor-12.C: New test.
11679 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
11681         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11683 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
11685         PR middle-end/36106
11686         * testsuite/libgomp.c/atomic-5.c: New test.
11687         * testsuite/libgomp.c/atomic-6.c: New test.
11688         * testsuite/libgomp.c/autopar-1.c: New test.
11690 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11692         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11693         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11694         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11695         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11696         * configure: Regenerate.
11697         * Makefile.in, testsuite/Makefile.in: Likewise.
11699 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
11701         PR bootstrap/35457
11702         * aclocal.m4: Regenerate.
11703         * configure: Regenerate.
11705 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
11707         PR middle-end/35611
11708         * testsuite/libgomp.c/atomic-4.c: New test.
11710         PR libgomp/35625
11711         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11712         (gomp_iter_guided_next): Likewise.
11713         * testsuite/libgomp.c/pr35625.c: New test.
11715 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11717         * aclocal.m4: Regenerate.
11718         * configure: Likewise.
11719         * Makefile.in: Likewise.
11720         * testsuite/Makefile.in: Likewise.
11722 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
11724         PR middle-end/35185
11725         * testsuite/libgomp.c++/pr35185.C: New test.
11727 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
11729         PR middle-end/35549
11730         * testsuite/libgomp.c/pr35549.c: New test.
11732 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
11734         * testsuite/libgomp.c/atomic-3.c: New test.
11736 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11738         PR fortran/33197
11739         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11740         .F08 file suffixes.
11742 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
11744         PR libgomp/33131
11745         * configure.ac: Add ACX_HEADER_STRING.
11746         * env.c: Include strings.h.
11747         * aclocal.m4: Regenerate.
11748         * config.h.in: Regenerate.
11749         * configure: Regenerate.
11750         * Makefile.in: Regenerate.
11751         * testsuite/Makefile.in: Regenerate.
11753 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
11755         PR middle-end/35196
11756         * testsuite/libgomp.c/pr35196.c: New test.
11758         PR middle-end/35130
11759         * testsuite/libgomp.fortran/pr35130.f90: New test.
11760         * testsuite/libgomp.c/pr35130.c: New test.
11762 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
11764         PR middle-end/33880
11765         * testsuite/libgomp.c/pr33880.c: New test.
11766         * testsuite/libgomp.fortran/pr33880.f90: New test.
11768 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
11770         * configure: Regenerate.
11772 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
11774         * configure.ac: Move futex checking into ../config/futex.m4.
11775         * configure: Rebuilt.
11776         * aclocal.m4: Rebuilt.
11777         * Makefile.in: Rebuilt.
11779         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11780         2007-10-15 ../config/tls.m4 change.
11782 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
11784         PR c++/34513
11785         * testsuite/libgomp.c/pr34513.c: New test.
11786         * testsuite/libgomp.c++/pr34513.C: New test.
11788 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
11790         PR target/32765
11791         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11793 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
11795         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
11797 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
11799         * testsuite/libgomp.c/private-1.c: New test.
11801 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
11802             Paolo Bonzini  <bonzini@gnu.org>
11804         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
11805         instead of 'VPATH ='.
11806         * Makefile.in: Regenerate.
11808 2007-11-23  Matthias Klose  <doko@ubuntu.com>
11810         * configure.ac: Adjust makeinfo version check.
11811         * configure: Regenerate.
11813 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
11815         PR fortran/34020
11816         * testsuite/libgomp.fortran/pr34020.f90: New test.
11818 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
11820         PR c++/33894
11821         * testsuite/libgomp.c++/atomic-1.C: New test.
11823 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
11825         PR libgomp/33275
11826         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11827         Make x and y integers rather than (implicit) reals.  Add private (j)
11828         clause to the last omp parallel.
11830 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
11832         * configure: Regenerate following changes to ../config/tls.m4.
11834 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
11836         * testsuite/libgomp.fortran/stack.f90: New test.
11838 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
11840         * config/mingw32/proc.c: New file.
11842 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
11844         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11845         (main): Use __get_cpuid to get i386 target fetaures.
11846         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11847         (main): Use __get_cpuid to get x86_64 target fetaures.
11849 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
11851         PR target/32765
11852         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11853         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11855 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
11857         PR fortran/32550
11858         * testsuite/libgomp.fortran/pr32550.f90: New test.
11859         * testsuite/libgomp.fortran/crayptr2.f90: New test.
11861 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11863         * aclocal.m4: Regenerated.
11865 2007-07-05  Tobias Burnus  <burnus@net-b.de>
11867         PR fortran/32359
11868         * testsuite/libgomp.fortran/pr32359.f90: New.
11870 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
11872         PR libgomp/32468
11873         * sections.c (GOMP_parallel_sections_start): Only decrease
11874         number of threads to COUNT if dyn_var is true.
11875         * testsuite/libgomp.c/pr32468.c: New test.
11877 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11879         PR libgomp/26308
11880         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11882 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
11884         PR middle-end/32362
11885         * testsuite/libgomp.c/pr32362-1.c: New test.
11886         * testsuite/libgomp.c/pr32362-2.c: New test.
11887         * testsuite/libgomp.c/pr32362-3.c: New test.
11889 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
11891         * team.c (gomp_team_start): Fix setting up thread_attr
11892         stack size.
11894 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
11896         * configure: Regenerate.
11898 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
11900         * Makefile.in: Regenerate.
11901         * configure: Regenerate.
11902         * aclocal.m4: Regenerate.
11903         * testsuite/Makefile.in: Regenerate.
11905 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
11907         * config/linux/proc.c: New file.
11909         PR libgomp/28482
11910         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11912 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
11914         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11916 2007-04-16  Matthias Klose  <doko@debian.org>
11918         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11919         flags if not building with -m64.
11920         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11921         flag for i?86-*-* targets, if current target matches -m64.
11923 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
11925         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11926         * Makefile.in: Regenerate.
11928 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11930         PR testsuite/31369
11931         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11932         ld_library_path.
11933         * testsuite/libgomp.fortran/fortran.exp: Likewise.
11935 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
11937         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11938         decls.
11939         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11940         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11941         (parse_affinity): New function.
11942         (initialize_env): Call it and gomp_init_affinity.
11943         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11944         create new pthread_attr_t and call gomp_init_thread_affinity
11945         on it for each thread before passing the attribute to pthread_create.
11946         * config/linux/affinity.c: New file.
11947         * config/posix/affinity.c: New file.
11948         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11949         * configure: Rebuilt.
11950         * config.h.in: Rebuilt.
11951         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11952         * Makefile.in: Rebuilt.
11954 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
11956         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11957         *-*-darwin*.
11958         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11959         and use it if found.
11961 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
11963         * testsuite/config/default.exp: New file.
11964         * testsuite/lib/libgomp.exp: New file.
11965         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11966         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11967         load_lib *, load_gcc_lib *): Move to libgomp.exp.
11968         (libgomp_load): Remove.
11969         * testsuite/lib/libgomp.exp (libgomp_init): Compute
11970         always_ld_library_path, not ld_library_path.  Set additional_flags
11971         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11972         (target_compile): Do not call libgomp_init.  Append lang_library_path
11973         and lang_link_flags to options.
11974         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
11975         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
11976         here.
11977         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11978         always_ld_library_path.  Set LD_LIBRARY_PATH here.
11979         * testsuite/libgomp.fortran/fortran.exp: Ditto.
11980         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11981         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11982         CX8 flag.
11983         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11984         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11985         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11986         * testsuite/libgomp.c/pr29947-1.c: Ditto.
11987         * testsuite/libgomp.c/atomic-10.c: Ditto.
11989 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11991         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11992         dg-final cleanup-modules line.
11993         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11994         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11995         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11996         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11997         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11998         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11999         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12001 2007-03-18  Andreas Schwab  <schwab@suse.de>
12003         * acinclude.m4: Adjust regular expression for ld version
12004         extraction.
12005         * configure: Regenerate.
12007 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
12009         * Makefile.am: Add install-pdf target as copied from
12010         automake v1.10 rules.
12011         * Makefile.in: Regenerate
12013 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
12015         PR libgomp/28486
12016         * configure: Regenerate.
12018         PR c++/30703
12019         * testsuite/libgomp.c++/pr30703.C: New test.
12021 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12023         Revert:
12024         2006-07-05  Eric Christopher  <echristo@apple.com>
12025         * configure.ac: Depend addition of -pthread on host OS.
12026         * configure: Regenerate.
12028 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12030         * libgomp.texi: Fix spacing after abbreviations.
12032 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
12034         PR libgomp/30546
12035         * configure.ac: Add check for makeinfo
12036         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
12037         if an appropriate version of makeinfo is found.
12038         * aclocal.m4: Regenerated.
12039         * configure: Regenerated.
12040         * Makefile.in: Regenerated.
12041         * testsuite/Makefile.in: Regenerated.
12043 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
12045         PR libgomp/30540
12046         * libgomp.texi: More about implementation-dependent settings.
12048 2007-01-26  Tobias Burnus  <burnus@net-b.de>
12050         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12052 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12054         PR middle-end/30494
12055         * testsuite/libgomp.c/pr30494.c: New test.
12057 2007-01-15  Tom Tromey  <tromey@redhat.com>
12059         * configure: Rebuilt.
12060         * configure.ac: Fixed comment.
12062 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
12064         * libgomp.texi: Document implementation specific default values of
12065         environment variables.
12067 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
12069         PR libgomp/28209
12070         * libgomp.texi: New file.
12071         * configure.ac: Add --enable-generated-files-in-srcdir option.
12072         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12073         files to srcdir.
12074         * Makefile.in: Regenerated.
12075         * config.h.in: Regenerated.
12076         * testsuite/Makefile.in: Regenerated.
12077         * NOTES: Removed.
12079 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
12081         PR libgomp/29949
12082         * env.c (omp_set_num_threads): Set illegal thread count to 1.
12084 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
12086         * configure: Regenerate.
12088 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12090         PR libgomp/29947
12091         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
12092         start if there shouldn't be any loop iterations.
12093         (gomp_loop_ordered_static_start): Remove start == end test.
12094         * testsuite/libgomp.c/pr29947-1.c: New test.
12095         * testsuite/libgomp.c/pr29947-2.c: New test.
12097 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
12099         * configure.tgt: Force initial-exec TLS model on Linux only.
12101 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
12103         * configure: Regenerated.
12105 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
12107         * env.c (parse_schedule): Reject out of range values.
12108         (parse_unsigned_long): Reject out of range, negative or zero values.
12110 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12112         PR fortran/29629
12113         * testsuite/libgomp.fortran/pr29629.f90: New test.
12115 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
12117         PR libgomp/29494
12118         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12119         * config/posix95: New directory.
12120         * config/posix95/omp-lock.h: New file.
12121         * config/posix95/lock.c: Likewise.
12123 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
12125         * aclocal.m4: Regenerate.
12126         * configure: Regenerate.
12128 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
12130         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12131         '<' to '<='.
12133 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
12135         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12136         test.
12137         * configure: Regenerate.
12138         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12140 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
12142         PR middle-end/25261
12143         PR middle-end/28790
12144         * testsuite/libgomp.c/nestedfn-4.c: New test.
12145         * testsuite/libgomp.c/nestedfn-5.c: New test.
12146         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12148         PR fortran/29097
12149         * testsuite/libgomp.fortran/condinc1.f: New test.
12150         * testsuite/libgomp.fortran/condinc2.f: New test.
12151         * testsuite/libgomp.fortran/condinc3.f90: New test.
12152         * testsuite/libgomp.fortran/condinc4.f90: New test.
12153         * testsuite/libgomp.fortran/condinc1.inc: New file.
12155 2006-09-18  Tom Tromey  <tromey@redhat.com>
12157         * configure: Rebuilt.
12159 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
12161         PR c/28768
12162         PR preprocessor/14634
12163         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12164         to AC_DEFINE.
12165         * configure: Regenerate.
12167 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
12169         * testsuite/libgomp.fortran/reduction3.f90: Change
12170         -2147483648 to -huge(i)-1 to avoid overflow.
12171         * testsuite/libgomp.fortran/reduction4.f90: Change
12172         Z'ffffffff' to not(0) to avoid overflow.
12174 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
12176         PR libgomp/25938
12177         * Makefile.am (libsubincludedir): New.
12178         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12179         * Makefile.in: Regenerate.
12181 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
12183         PR libgomp/28725
12184         * env.c: Include ctype.h.
12185         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12186         leading and/or trailing whitespace and compare strings case
12187         insensitively.
12189 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
12191         PR fortran/28390
12192         * testsuite/libgomp.fortran/pr28390.f: New test.
12194 2006-07-05  Eric Christopher  <echristo@apple.com>
12196         * configure.ac: Depend addition of -pthread on host OS.
12197         * configure: Regenerate.
12199 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
12201         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12202         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12203         defined.
12205 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
12207         PR libgomp/26175
12208         PR libgomp/26477
12209         * configure.ac: If neither --enable-linux-futex nor
12210         --disable-linux-futex is passed, determine the default by checking
12211         for compiling and/or running against NPTL.  With --enable-linux-futex,
12212         check if SYS_gettid and SYS_futex are defined.
12213         * configure: Rebuilt.
12215 2006-06-14  Richard Henderson  <rth@redhat.com>
12217         PR libgomp/28008
12218         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12219         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12221 2006-06-09  Richard Henderson  <rth@redhat.com>
12223         * env.c (gomp_nthreads_var): Change to unsigned long.
12224         (gomp_run_sched_chunk): Likewise.
12225         (parse_unsigned_long): Rename from parse_num_threads and generalize.
12226         (initialize_env): Initialize gomp_thread_attr.
12227         * libgomp.h (gomp_nthreads_var): Update decl.
12228         (gomp_run_sched_chunk): Likewise.
12229         (gomp_thread_attr): Declare.
12230         * team.c (gomp_thread_attr): Export.
12231         (initialize_team): Don't initialize it.
12233 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
12235         PR fortran/27916
12236         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12237         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12239 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12241         * config/mingw32/time.c: New file.
12242         * configure.tgt: Use it.
12244 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
12246         * Makefile.am: Add install-html target. Add install-html to .PHONY
12247         * Makefile.in: Regenerate.
12249 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12251         PR libgomp/27612
12252         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12253         * testsuite/libgomp.c/critical-1.c: Likewise.
12254         * testsuite/libgomp.c/loop-1.c: Likewise.
12255         * testsuite/libgomp.c/loop-2.c: Likewise.
12256         * testsuite/libgomp.c/single-1.c: Likewise.
12257         * testsuite/libgomp.c/ordered-1.c: Likewise.
12258         * testsuite/libgomp.c/ordered-2.c: Likewise.
12260 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12262         PR middle-end/27416
12263         * libgomp.fortran/pr27416-1.f90: New test.
12265 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
12267         PR fortran/27395
12268         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12269         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12271 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
12273         PR c++/26943
12274         * testsuite/libgomp.c/pr26943-1.c: New test.
12275         * testsuite/libgomp.c/pr26943-2.c: New test.
12276         * testsuite/libgomp.c/pr26943-3.c: New test.
12277         * testsuite/libgomp.c/pr26943-4.c: New test.
12278         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12279         * testsuite/libgomp.c++/pr26943.C: New test.
12281 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
12283         PR middle-end/27337
12284         * testsuite/libgomp.c++/pr27337.C: New test.
12286 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
12288         PR c/26171
12289         * testsuite/libgomp.c/pr26171.c: New test.
12291 2006-04-25  Richard Henderson  <rth@redhat.com>
12293         PR libgomp/25865
12294         * configure.ac: Use GCC_CHECK_TLS.
12295         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12296         * Makefile.in, aclocal.m4, configure: Regenerate.
12298 2006-04-10  Matthias Klose  <doko@debian.org>
12300         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12301         directory names containing underscores.
12303 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
12305         PR c++/26691
12306         * testsuite/libgomp.c++/pr26691.C: New test.
12308 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
12310         * testsuite/libgomp.fortran/retval2.f90: New test.
12312 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
12314         * testsuite/libgomp.c++: New directory.
12316 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
12318         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12319         * config/posix/sem.c: Implement the above.
12321 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
12323         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12324         define HAVE_BROKEN_POSIX_SEMAPHORES.
12325         * configure: Rebuilt.
12326         * config.h.in: Rebuilt.
12328 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12330         PR bootstrap/26161
12331         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12332         for the other pthread check.
12333         * configure: Regenerate.
12334         * config.h.in: Regenerate.
12336 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
12338         PR libgomp/25938
12339         PR libgomp/25984
12340         * Makefile.am (fincludedir): New variable.
12341         (nodist_include_HEADERS): Remove Fortran files.
12342         (nodist_finclude_HEADERS): New variable.
12343         * Makefile.in: Regenerated.
12345 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
12347         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12348         Remove tests for returning assumed character length arrays.
12350 2006-02-12  Roger Sayle  <roger@eyesopen.com>
12351             John David Anglin  <dave@hiauly1.hia.nrc.ca>
12353         PR libgomp/25936
12354         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12356 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
12358         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12360 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
12362         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12363         part of LD_LIBRARY_PATH manually.
12365 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
12367         PR libgomp/25852
12368         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12369         libgomp_init.
12371 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
12373         PR libgomp/25884
12374         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12375         * configure.ac (PERL): Don't set.
12376         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12377         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12378         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12379         * omp.h.in: Wrap the new configure substitutions with @ characters.
12380         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12381         * aclocal.m4, configure, Makefile.in: Regenerate.
12382         * mkomp_h.pl: Delete.
12384 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
12386         PR libgomp/25259
12387         * configure.ac: Use GCC_HEADER_STDINT.
12388         * libgomp.h: Include gstdint.h.
12389         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12390         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12392 2006-01-24  Richard Henderson  <rth@redhat.com>
12394         PR libgomp/25942
12395         * configure.ac: Add AM_MAINTAINER_MODE.
12396         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12398 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
12400         * Makefile.in: Regenerate.
12401         * testsuite/Makefile.in: Regenerate.
12402         * aclocal.m4: Regenerate.
12404 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
12406         * config/posix/proc.c: Conditional include of sys/loadavg.h for
12407         Solaris.
12408         * configure.ac: Add check for loadavg.h.
12409         (link_gomp): Adjust comment.
12410         * configure: Regenerate.
12411         * config.h.in: Regenerate.
12413 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
12415         PR libgomp/25877
12416         * configure.ac: Remove check for alloca.h.
12417         * configure: Regenerate.
12418         * config.h.in: Regenerate.
12419         * libgomp.h: define gomp_alloca to be __builtin_alloca.
12420         * team.c: Remove use of alloca.h.
12421         Call gomp_alloca instead of alloca.
12423 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
12425         PR libgomp/25877
12426         * team.c: Add include of alloca.h.
12427         * configure.ac: Add check for alloca.h.
12428         * configure: Regenerate.
12429         * config.h.in: Regenerate.
12431 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
12433         PR fortran/25219
12434         * testsuite/libgomp.fortran/pr25219.f90: New test.
12436 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
12438         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12439         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12440         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12441         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12442         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12443         testsuite/libgomp.fortran/threadprivate1.f90,
12444         testsuite/libgomp.fortran/threadprivate2.f90,
12445         testsuite/libgomp.fortran/threadprivate3.f90,
12446         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12447         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12448         testsuite/libgomp.fortran/omp_parse3.f90: Change required
12449         effective-target to TLS runtime.
12451         * testsuite/libgomp.fortran/pr25162.f: Require
12452         effective-target TLS runtime.
12454 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
12456         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12457         * testsuite/libgomp.c/nestedfn-3.c: New test.
12459 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
12461         PR fortran/25162
12462         * testsuite/libgomp.fortran/pr25162.f: New test.
12464 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
12466         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12467         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12469 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
12471         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12472         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12473         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12474         single.c, team.c, work.c, config/linux/alpha/futex.h,
12475         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12476         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12477         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12478         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12479         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12480         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12481         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12482         FSF address.
12484 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
12486         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12487         to nodist_noinst_HEADERS.
12488         * Makefile.in: Rebuilt.
12490         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12491         add integer count field.
12492         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12493         omp_nest_lock_t type change.
12494         (omp_init_nest_lock): Likewise.  Initialize count to 0.
12495         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12496         Increment count.
12497         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12498         Decrement count.
12499         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12500         Increment count if successful and return the new nesting level.
12501         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12502         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12503         * testsuite/libgomp.c/lib-1.c: New test.
12504         * testsuite/libgomp.fortran/lib1.f90: New test.
12505         * testsuite/libgomp.fortran/lib2.f: New test.
12506         * testsuite/libgomp.fortran/lib3.f: New test.
12508 2005-11-17  Richard Henderson  <rth@redhat.com>
12510         PR 24845
12511         * Makefile.am (nodist_toolexeclib_HEADERS): New.
12512         * configure.ac (link_gomp): New.  Substitute it.
12513         (AC_CONFIG_FILES): Add libgomp.spec.
12514         * libgomp.spec.in: New file.
12515         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12516         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12518 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
12520         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12521         reduction(-:var) behaving the same as reduction(+:var).
12522         * testsuite/libgomp.c/reduction-4.c: New test.
12524 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
12526         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12527         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12528         testsuite/libgomp.c/copyin-3.c,
12529         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12530         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12531         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12532         testsuite/libgomp.c++/pr24455.C,
12533         testsuite/libgomp.fortran/threadprivate1.f90,
12534         testsuite/libgomp.fortran/threadprivate2.f90,
12535         testsuite/libgomp.fortran/threadprivate3.f90,
12536         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12537         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12538         testsuite/libgomp.fortran/omp_parse3.f90: Require
12539         effective-target TLS.
12541 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
12543         * HEADER: Remove.
12545 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
12547         PR libgomp/24797
12548         * team.c (initialize_team): Pass NULL rather than free as
12549         pthread_key_create destructor.  Initialize thread specific data
12550         pointer in initial thread to a static local variable rather than
12551         malloced memory.
12553 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
12555         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12556         its location to ld_library_path.
12558 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
12560         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12562 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
12564         * testsuite/libgomp.c: Rename from libgomp.dg.
12566 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
12568         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12569         threadprivate variable 'i'.
12571 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
12573         * config/linux/s390/futex.h: New file.
12574         * configure.tgt: Use it.
12576         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12577         before the parallel.
12579 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
12581         PR c++/24734
12582         * testsuite/libgomp.c++/master-1.C: New test.
12584 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
12586         * testsuite/libgomp.dg/copyin-3.c: New test.
12588 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
12590         * testsuite/libgomp.fortran/retval1.f90: New test.
12591         * testsuite/libgomp.fortran/vla7.f90: New test.
12593 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
12595         * testsuite/libgomp.fortran/vla2.f90: New test.
12596         * testsuite/libgomp.fortran/vla3.f90: New test.
12597         * testsuite/libgomp.fortran/vla4.f90: New test.
12598         * testsuite/libgomp.fortran/vla5.f90: New test.
12599         * testsuite/libgomp.fortran/vla6.f90: New test.
12601 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
12603         * config/linux/sparc/futex.h: New file.
12604         * configure.tgt: Use it.
12605         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12607         * critical.c: Include stdlib.h.
12608         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12609         ignoring return value.
12610         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12611         LIBGOMP_CHECK_SYNC_BUILTINS check.
12612         * configure: Rebuilt.
12614 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
12616         * testsuite/libgomp.fortran/vla1.f90: New test.
12618 2005-10-31  Richard Henderson  <rth@redhat.com>
12620         * testsuite/libgomp.fortran/character2.f90: Fix race condition
12621         setting 's' in different threads.
12623 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
12625         * libgomp.h (attribute_hidden, ialias): Define.
12626         * config/posix/proc.c (omp_get_num_procs): Add ialias.
12627         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12628         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12629         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12630         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12631         omp_test_lock, omp_test_nest_lock): Likewise.
12632         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12633         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12634         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12635         omp_test_lock, omp_test_nest_lock): Likewise.
12636         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12637         omp_get_dynamic, omp_get_nested): Likewise.
12638         * parallel.c (omp_get_num_threads, omp_get_max_threads,
12639         omp_get_thread_num, omp_in_parallel): Likewise.
12640         * fortran.c (ialias_redirect): Define.
12641         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12642         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12643         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12644         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12645         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12646         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12647         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12648         omp_get_wtime): Add ialias_redirect.
12650 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
12652         * fortran.c: Include stdlib.h.
12654 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
12656         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12657         * Makefile.in: Regenerated.
12659 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
12661         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12662         * libgomp_f.h.in (omp_check_defines): New function.
12663         * env.c: Include libgomp_f.h.
12664         (initialize_env): Call omp_check_defines.
12666         * testsuite/libgomp.dg/copyin-2.c: New test.
12667         * testsuite/libgomp.c++/copyin-2.C: New test.
12668         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12670         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12671         * testsuite/libgomp.fortran/sharing2.f90: New test.
12673         * testsuite/libgomp.dg/copyin-1.c: New test.
12674         * testsuite/libgomp.c++/copyin-1.C: New test.
12676 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
12678         * testsuite/libgomp.fortran/crayptr1.f90: New test.
12680         * testsuite/libgomp.fortran/workshare1.f90: New test.
12682         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12683         only test.
12684         * libgomp.fortran/sharing1.f90: New test.
12686 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
12688         PR c++/24502
12689         * testsuite/libgomp.c++/loop-7.C: New test.
12691         * testsuite/libgomp.dg/nestedfn-2.c: New test.
12693         * testsuite/libgomp.dg/nestedfn-1.c: New test.
12694         * testsuite/libgomp.fortran/reduction6.f90: New test.
12695         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12697 2005-10-23  Richard Henderson  <rth@redhat.com>
12699         * testsuite/libgomp.c++/ctor-1.C: New.
12700         * testsuite/libgomp.c++/ctor-2.C: New.
12701         * testsuite/libgomp.c++/ctor-3.C: New.
12702         * testsuite/libgomp.c++/ctor-4.C: New.
12703         * testsuite/libgomp.c++/ctor-5.C: New.
12704         * testsuite/libgomp.c++/ctor-6.C: New.
12705         * testsuite/libgomp.c++/ctor-7.C: New.
12706         * testsuite/libgomp.c++/ctor-8.C: New.
12707         * testsuite/libgomp.c++/ctor-9.C: New.
12709 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
12711         PR 24455
12712         * testsuite/libgomp.c++/pr24455-1.C: New test.
12713         * testsuite/libgomp.c++/pr24455.C: New test.
12714         * testsuite/libgomp.dg/pr24455-1.c: New test.
12715         * testsuite/libgomp.dg/pr24455.c: New test.
12717 2005-10-20  Richard Henderson  <rth@redhat.com>
12719         * testsuite/libgomp.c++/loop-6.C: New.
12720         * testsuite/libgomp.dg/loop-3.c: New.
12722 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
12724         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12725         explicitly private.
12726         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12727         explicitly shared.
12729 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
12731         * testsuite/libgomp.fortran/jacobi.f: New test.
12733 2005-10-19  Richard Henderson  <rth@redhat.com>
12735         * configure.tgt (i?86-linux): Default to with_arch instead of
12736         CFLAGS.  Add -mtune to match target_cpu.
12737         (x86_64-linux): Tune to i686.
12739         * fortran.c (omp_test_nest_lock_): Fix typo.
12741 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
12743         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12744         gomp_ordered_sync): Do nothing if team->nthreads == 1.
12745         * testsuite/libgomp.dg/ordered-3.c: New test.
12747         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12748         Remove volatile keyword.
12750         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12751         in COMMON block to avoid warnings on 64-bit targets.
12753 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
12755         * testsuite/libgomp.dg/shared-3.c: New test.
12757 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
12759         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12760         * testsuite/libgomp.fortran/reduction5.f90: New test.
12762 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
12764         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12765         dg-options.
12766         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
12767         flush loop now that __sync_synchronize has proper memory barrier.
12768         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12769         Add -ffixed-form to dg-options.
12771 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
12773         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12774         from subdirectories.
12775         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12776         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12777         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12778         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12779         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12780         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12781         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12782         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12783         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12784         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12785         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12786         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12787         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12788         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12789         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12790         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12791         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12792         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12793         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12794         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12795         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12796         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12797         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12798         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12799         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12801 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
12803         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12804         lang_library_path exists.  Use find instead of glob to gather tests.
12805         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12807 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
12809         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12810         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12811         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12812         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12813         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12814         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12815         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12816         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12817         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12818         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12819         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12820         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12821         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12823 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
12825         * testsuite/libgomp.dg/vla-1.c: New test.
12827         * testsuite/libgomp.fortran/reference2.f90: New test.
12829         * testsuite/libgomp.fortran/character2.f90: Remove explicit
12830         declaration of omp_get_thread_num.
12831         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
12832         use omp_lib.
12834         * testsuite/libgomp.fortran/reduction1.f90: New test.
12835         * testsuite/libgomp.fortran/reduction2.f90: New test.
12836         * testsuite/libgomp.fortran/reduction3.f90: New test.
12837         * testsuite/libgomp.fortran/reduction4.f90: New test.
12839 2005-10-13  Richard Henderson  <rth@redhat.com>
12841         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12842         * Makefile.in: Regenerate.
12843         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12844         * libgomp.h: Include bar.h.
12845         (struct gomp_barrier): Remove.
12846         (struct gomp_team): Add barrier.  Replace master_barrier with
12847         master_release.  Replace threads with ordered_release.
12848         (struct gomp_thread): Replace barrier with release.
12849         * ordered.c (gomp_ordered_first): Update for ordered_release change.
12850         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12851         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12852         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12853         (GOMP_single_copy_end): Likewise.
12854         * team.c (gomp_threads_dock): New.
12855         (gomp_barrier_init, gomp_barrier_destroy): Remove.
12856         (gomp_thread_start): Use gomp_barrier_wait.
12857         (new_team, free_team): Update for gomp_team changes.
12858         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12859         (gomp_team_end): Use gomp_barrier_wait.
12860         (initialize_team): Update for gomp_thread changes.
12861         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12862         (gomp_work_share_end_nowait): Use atomic ops when available.
12863         * config/linux/bar.c, config/linux/bar.h: New files.
12864         * config/posix/bar.c, config/posix/bar.h: New files.
12866 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
12868         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12869         * testsuite/libgomp.dg/single-2.c: New test.
12871         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12872         lang_link_flags): Unset, so that they aren't inherited from previously
12873         sourced *.exp.
12875         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12877 2005-10-12  Richard Henderson  <rth@redhat.com>
12879         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12880         (libgomp_init): Use lang_test_file, lang_library_path, and
12881         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
12883         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12884         (lang_test_file, lang_link_flags): New.
12885         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12887         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12888         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12889         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12890         testsuite/libgomp.c++/parallel-1.C,
12891         testsuite/libgomp.c++/reduction-1.C,
12892         testsuite/libgomp.c++/reduction-2.C,
12893         testsuite/libgomp.c++/reduction-3.C,
12894         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12895         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12896         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12897         New files, largely cribbed from the C testsuite.
12899 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
12901         * testsuite/libgomp.fortran/character1.f90: New test.
12902         * testsuite/libgomp.fortran/character2.f90: New test.
12904         * testsuite/libgomp.dg/nested-1.c: New test.
12905         * testsuite/libgomp.dg/nested-2.c: New test.
12906         * testsuite/libgomp.fortran/do1.f90: New test.
12907         * testsuite/libgomp.fortran/do2.f90: New test.
12909         * testsuite/libgomp.fortran/reference1.f90: New test.
12911 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
12913         * testsuite/libgomp.dg/reduction-1.c: New test.
12914         * testsuite/libgomp.dg/reduction-2.c: New test.
12915         * testsuite/libgomp.dg/reduction-3.c: New test.
12917 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
12919         * testsuite/libgomp.dg/atomic-1.c: New test.
12920         * testsuite/libgomp.dg/atomic-2.c: New test.
12922 2005-10-09  Richard Henderson  <rth@redhat.com>
12924         * critical.c (atomic_lock): New.
12925         (initialize_critical): Initialize it.
12926         (GOMP_atomic_start, GOMP_atomic_end): New.
12927         * libgomp.map: Export them.
12928         * libgomp_g.h: Declare them.
12930         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12932 2005-10-02  Richard Henderson  <rth@redhat.com>
12934         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
12935         to XCFLAGS instead of CFLAGS.
12937 2005-09-30  Richard Henderson  <rth@redhat.com>
12939         * configure.ac: Determine whether -pthread or -lpthread is needed.
12940         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12941         * Makefile.in, configure: Rebuild.
12943 2005-09-28  Richard Henderson  <rth@redhat.com>
12945         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12946         * testsuite/libgomp.dg/omp-single-3.c: New test.
12948 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
12950         * testsuite/libgomp.dg/omp-single-2.c: New test.
12951         * testsuite/libgomp.dg/shared-2.c: Fix return code.
12953 2005-09-27  Richard Henderson  <rth@redhat.com>
12955         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12956         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12958 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
12960         * testsuite/libgomp.dg/omp-loop03.c: New test.
12962 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
12964         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12966 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
12968         * testsuite/libgomp.dg/omp-single-1.c: New test.
12969         * testsuite/libgomp.dg/shared-1.c: Return 0.
12970         Add prototype for abort.
12971         * testsuite/libgomp.dg/shared-2.c: Likewise.
12973 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
12975         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12976         constructs.
12978 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
12980         * testsuite/libgomp.dg/shared-1.c: New test.
12981         * testsuite/libgomp.dg/shared-2.c: New test.
12983 2005-09-24  Richard Henderson  <rth@redhat.com>
12985         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12987 2005-09-24  Richard Henderson  <rth@redhat.com>
12989         * iter.c (gomp_iter_static_next): Round up when computing number
12990         of iterations.  Don't bother distributing a remainder equally.
12992         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12993         Don't call srand.  Zero b before testing.
12994         (main): New.
12996 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
12998         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12999         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
13001 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
13003         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
13004         without !$omp end do, followed immediately by subroutine end.
13006 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
13008         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
13010 2005-09-22  Richard Henderson  <rth@redhat.com>
13012         * critical.c (GOMP_critical_name_start): Change argument to void**.
13013         Reuse the pointer space if the mutex fits.
13014         (GOMP_critical_name_end): Likewise.
13015         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
13016         * libgomp_g.h (GOMP_critical_name_start): Update decl.
13017         (GOMP_critical_name_end): Likewise.
13018         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
13019         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
13021 2005-09-20  Richard Henderson  <rth@redhat.com>
13023         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
13024         (create_lock_lock): New.
13025         (initialize_critical): Initialize it.
13026         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
13027         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
13029 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
13031         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
13033 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
13035         * testsuite/libgomp.dg/omp-loop01.c: New test.
13036         * testsuite/libgomp.dg/omp-loop02.c: New test.
13038 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
13040         * configure.ac (AC_PROG_FC): Add.
13041         (USE_FORTRAN): New automake conditional.
13042         * configure: Rebuilt.
13043         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13044         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13045         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13046         Add rules to build them.
13047         * Makefile.in: Rebuilt.
13048         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13049         OMP_NEST_LOCK_KIND.
13050         * libgomp.map: Add Fortran wrappers.
13051         * libgomp_f.h.in: New file.
13052         * omp_lib.h.in: New file.
13053         * omp_lib.f90.in: New file.
13054         * fortran.c: New file.
13055         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13056         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13057         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13058         libgfortran has been built.
13059         * testsuite/libgomp.fortran/fortran.exp: New file.
13060         * testsuite/libgomp.fortran/omp_cond1.f: New test.
13061         * testsuite/libgomp.fortran/omp_cond2.f: New test.
13062         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13063         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13064         * testsuite/libgomp.fortran/omp_hello.f: New test.
13065         * testsuite/libgomp.fortran/omp_orphan.f: New test.
13066         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13067         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13068         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13069         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13070         * testsuite/libgomp.fortran/omp_reduction.f: New test.
13071         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13072         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13074 2005-08-30  Richard Henderson  <rth@redhat.com>
13076         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13077         function for when aliases are not usable.
13078         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13079         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13080         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13081         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13082         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13083         GOMP_loop_ordered_guided_next): Likewise.
13084         * ordered.c (GOMP_ordered_start): Likewise.
13086 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
13088         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13089         * testsuite/libgomp.dg/omp_hello.c: Fix return code
13090         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13091         * testsuite/libgomp.dg/omp_orphan.c: Likewise
13092         * testsuite/libgomp.dg/omp_reduction.c: Likewise
13093         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13094         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13095         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13096         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13098 2005-07-07  Eric Christopher  <echristo@redhat.com>
13099             Diego Novillo  <dnovillo@redhat.com>
13101         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13102         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13103         up code.
13104         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13105         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13106         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13107         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13108         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13109         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13110         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13112 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
13114         * TOPLEVEL.patch: Remove.
13116 2005-05-16  Richard Henderson  <rth@redhat.com>
13118         * configure.ac: Test for clock_gettime.
13119         * config.h.in, configure: Rebuild.
13120         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13121         (omp_get_wtime): Use clock_gettime if available.
13122         (omp_get_wtick): Use clock_getres if available.
13124 2005-05-11  Richard Henderson  <rth@redhat.com>
13126         * config/linux/ia64/futex.h: New file.
13127         * configure.tgt: Use it.
13129         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13131 2005-05-07  Richard Henderson  <rth@redhat.com>
13133         * config/linux/powerpc/futex.h: New file.
13134         * configure.tgt: Use it.
13136         * config/linux/i486/futex.h: Merge ...
13137         * config/linux/x86_64/futex.h: ... into ...
13138         * config/linux/x86/futex.h: ... here.
13139         * configure.tgt: Update to match.
13141 2005-05-06  Richard Henderson  <rth@redhat.com>
13143         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13144         * config/linux/i486/futex.h: Likewise.
13145         * config/linux/x86_64/futex.h: Likewise.
13147         * config/linux/lock.c: New file.
13148         * config/linux/omp-lock.h: New file.
13150         * critical.c, env.h: Don't include omp.h
13151         * config/posix/lock.c: Include libgomp.h instead of omp.h.
13152         * config/posix/time.c: Likewise.
13153         * config/posix/omp-lock.h: New file.
13154         * libgomp.h: Include omp-lock.h and omp.h.
13155         * Makefile.am (nodist_include_HEADERS): New.
13156         (omp.h): New rule.
13157         * configure.ac (PERL): New.
13158         * mkomp_h.pl: New file.
13159         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13160         with templates.
13161         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13163         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13164         build directory.  Re-add -march=i486 hack.
13166         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13167         (libgomp_link_flags): Remove.
13168         (libgomp_initialized): Remove.
13169         (libgomp_init): Don't protect from reinitialization.  Copy code
13170         from libstdc++ for getting the multilib set correctly.
13172 2005-05-05  Richard Henderson  <rth@redhat.com>
13174         * config/linux/alpha/futex.h: New file.
13175         * configure.tgt (alpha*-*-linux*): Use it.
13177         * config/posix/mutex.c: New file.
13178         * config/posix/sem.c: Use libgomp.h.
13180         * configure.tgt (x86_64-linux): Also test CC for -m32.
13181         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13183         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
13184         after $gccpath.
13186         * Makefile.am (SUBDIRS): New.
13187         (libgomp_la_LDFLAGS): Add -lpthread.
13188         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13189         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13191         * libgomp_g.h: New file.
13192         * libgomp.h: Split out all public declarations to libgomp_g.h.
13193         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13194         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13195         * config/linux/sem.h: Likewise.
13196         * config/posix/sem.h: Likewise.
13198         * Makefile.am (AM_LDFLAGS): New.
13199         (libgomp_version_script): Split out from ...
13200         (libgomp_la_LDFLAGS): ... here.
13201         (libgomp_version_info): New.
13202         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13203         (LIBGOMP_ENABLE): New.
13204         (LIBGOMP_CHECK_LINKER_FEATURES): New.
13205         (LIBGOMP_ENABLE_SYMVERS): New.
13206         * configure.ac (AC_INIT): Version 1.0.
13207         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13208         (enable-linux-futex): Likewise.  Rename from enable-futex.
13209         (libtool_VERSION): New.
13210         (LIBGOMP_ENABLE_SYMVERS): Use it.
13211         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13212         * Makefile.in, aclocal.m4, configure: Rebuild.
13214         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13215         (gomp_mutex_unlock_slow): Fix typo.
13216         * config/linux/sem.c: Similarly.
13217         (gomp_sem_post_slow): Fix typo.
13218         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13219         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13220         [__PIC__] (sys_futex0): Don't use tmp output in asm.
13222         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13223         (libgomp_la_LDFLAGS): Add top_srcdir to path.
13224         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13225         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
13226         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13227         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13228         LDFLAGS.  Pull enable_futex check to top-level.
13229         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
13230         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13232         First attempt at real configury.
13233         * Makefile, config.h: Remove file.
13234         * Makefile.am, Makefile.in: New file.
13235         * acinclude.m4 aclocal.m4: New file.
13236         * configure.ac, configure.tgt, configure: New file.
13238         * config/posix/lock.c: Rename from sys-lock.c.
13239         * config/posix/mutex.h: Rename from sys-mutex.h.
13240         * config/posix/sem.c: Rename from sys-sem.c.
13241         * config/posix/sem.h: Rename from sys-sem.h.
13242         * config/posix/proc.c: Rename from sys-proc.c.
13243         * config/posix/time.c: Rename from sys-proc.c.
13245         * config/linux/mutex.c: New file.
13246         * config/linux/mutex.h: New file.
13247         * config/linux/sem.c: New file.
13248         * config/linux/sem.h: New file.
13249         * config/linux/i486/futex.h: New file.
13250         * config/linux/x86_64/futex.h: New file.
13252 2005-05-04  Richard Henderson  <rth@redhat.com>
13254         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13255         * libgomp.h: Declare them.
13256         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13257         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13259 2005-05-04  Richard Henderson  <rth@redhat.com>
13261         * libgomp-1 code drop
13263 2005-05-04  Richard Henderson  <rth@redhat.com>
13265         * iter.c (gomp_iter_static_next): Return tri-state on 0.
13266         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13267         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13268         (gomp_iter_static_next): Update.
13269         (gomp_ordered_static_next): Update.
13270         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13271         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
13272         totally empty range.
13273         (gomp_loop_ordered_static_next): Refine test for calling
13274         gomp_ordered_static_next.
13275         * testsuite/ordered-1.c: Add case for more threads than iterations.
13277         * iter.c (gomp_iter_runtime_next_locked): Remove.
13278         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13279         gomp_loop_guided_start, gomp_loop_ordered_static_start,
13280         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13281         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13282         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13283         gomp_loop_ordered_guided_next): Downcase name, make static, add
13284         an external alias with the old name.
13285         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13286         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13287         switch and call one of the above static functions.
13288         * libgomp.h: Update.
13290         * work.c (gomp_work_share_start): Lock the mutex for !first too.
13291         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13292         GOMP_loop_guided_start, GOMP_loop_runtime_start,
13293         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13294         GOMP_loop_ordered_guided_start): Update to match.
13295         * sections.c (GOMP_sections_start): Likewise.
13296         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13298         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13299         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13300         Use bounds check instead of modulus.
13301         (gomp_ordered_sync): Split out of GOMP_ordered_start.
13302         (gomp_ordered_last): Don't sync with ordered_owner here.
13303         (gomp_ordered_next): Likewise.
13304         (gomp_ordered_static_loop_next): Likewise.
13305         * loop.c, libgomp.h: Update to match.
13307         * libgomp.h (GOMP_barrier): Declare.
13309         * testsuite/barrier-1.c: New file.
13310         * testsuite/critical-1.c: New file.
13311         * testsuite/ordered-2.c: New file.
13312         * testsuite/ordered-1.c: New file.
13313         * testsuite/sections-1.c: New file.
13314         * testsuite/single-1.c: New file.
13315         * testsuite/Makefile (TESTS): Add them.
13317 2005-05-04  Richard Henderson  <rth@redhat.com>
13319         * libgomp.h (struct gomp_work_share): Add ordered_owner.
13320         * loop.c (GOMP_loop_static_start): If not the startup thread,
13321         acquire the mutex to wait for initialization complete.
13322         (GOMP_loop_ordered_static_start): Likewise.
13323         (GOMP_loop_ordered_runtime_start): Likewise.
13324         (GOMP_loop_ordered_static_first): Remove.
13325         (GOMP_loop_ordered_dynamic_first): Remove.
13326         (GOMP_loop_ordered_guided_first): Remove.
13327         (GOMP_loop_ordered_runtime_first): Remove.
13328         * ordered.c (gomp_ordered_loop_first): Post to own release when
13329         we're the first thread.
13330         (gomp_ordered_loop_last): Wait on release if not owner.
13331         (gomp_ordered_loop_next): Likewise.
13332         (gomp_ordered_static_loop_init): New.
13333         (gomp_ordered_static_loop_next): Use ordered_owner.
13334         (GOMP_ordered_start): Likewise.
13335         * work.c (gomp_new_work_share): Initialize ordered_owner.
13337 2005-05-03  Richard Henderson  <rth@redhat.com>
13339         * Makefile (OPT): New.
13340         (CFLAGS): Use it.
13342         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13343         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13344         * libgomp.h, libgomp.map, NOTES: Update to match.
13346         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13347         Add initialized and thr members.
13348         (gomp_thread_start): Pause when initially spawned to wait for
13349         the whole team to be created.
13350         (gomp_team_start): Release team members at the end.
13352         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
13353         (f_foo_1): Use GOMP_loop_end.
13354         (f_foo_2): Use GOMP_loop_end_nowait.
13356         * testsuite/loop-2.c: New file.
13357         * testsuite/Makefile (TESTS): Add it.
13359 2005-05-03  Richard Henderson  <rth@redhat.com>
13361         * iter.c (gomp_iter_static_next): Fix overflow check typo.
13362         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13363         * team.c (new_team): Initialize oldest_live_gen to 1 if no
13364         initial work_share.
13366         * testsuite/Makefile: New file.
13367         * testsuite/loop-1.c: New file.
13369 2005-05-03  Richard Henderson  <rth@redhat.com>
13371         Initial implementation and checkin.
13373 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13375 Copying and distribution of this file, with or without modification,
13376 are permitted in any medium without royalty provided the copyright
13377 notice and this notice are preserved.