Turn on -mpcrel by default for -mcpu=future
[official-gcc.git] / libgomp / ChangeLog
blobee1764d4ae31d618e20f863646f0a4044db46bdd
1 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
3         PR other/94629
5         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6         hsa_iterate_agents.
7         (GOMP_OFFLOAD_init_device): Check return values from both calls to
8         hsa_agent_iterate_regions.
10 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
12         PR middle-end/94635
13         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
14         run'.
16 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
18         PR middle-end/94120
19         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
20         test case.
22 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
24         PR middle-end/94635
25         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
27 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
29         PR libgomp/92843
30         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
31         Rename to...
32         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
33         ... this.
34         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
35         Rename to...
36         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
37         ... this.
38         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
39         Rename to...
40         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
41         ... this.
42         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
43         Rename to...
44         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
45         ... this.
46         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
47         Rename to...
48         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
49         ... this.
50         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
51         Rename to...
52         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
53         ... this.
54         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
55         Rename to...
56         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
57         ... this.
58         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
59         Rename to...
60         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
61         ... this.
62         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
63         Rename to...
64         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
65         ... this.
66         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
67         Rename to...
68         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
69         ... this.
70         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
71         Rename to...
72         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
73         ... this.
74         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
75         Rename to...
76         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
77         ... this.
78         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
79         Rename to...
80         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
81         ... this.
82         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
83         Rename to...
84         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
85         ... this.
86         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
87         Rename to...
88         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
89         ... this.
90         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
91         Rename to...
92         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
93         ... this.
95 2020-04-10  Julian Brown  <julian@codesourcery.com>
96             Thomas Schwinge  <thomas@codesourcery.com>
98         PR libgomp/92843
99         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
100         New file.
101         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
102         Likewise.
103         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
104         Likewise.
105         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
106         Likewise.
107         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
108         Likewise.
109         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
110         Likewise.
111         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
112         Likewise.
113         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
114         Likewise.
115         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
116         Likewise.
117         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
118         Likewise.
119         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
120         Likewise.
121         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
122         Likewise.
123         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
124         Likewise.
125         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
126         Likewise.
127         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
128         Likewise.
129         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
130         Likewise.
132 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
134         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
135         run'.
137 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
139         PR middle-end/94120
140         * libgomp.oacc-c++/declare-pr94120.C: New.
142 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
144         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
145         files.
146         * configure: Regenerate.
147         * testsuite/libgomp-site-extra.exp.in: New file.
148         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
149         variable.
150         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
151         variable.
152         * testsuite/Makefile.in: Regenerate.
154 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
156         PR tree-optimization/89713
157         PR c/94392
158         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
159         'bar.sync'.
160         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
162 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
164         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
165         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
167 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
169         PR libgomp/81689
170         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
172 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
174         PR libgomp/94251
175         * target.c (gomp_load_image_to_device): Fix link
176         variable handling.
178 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
180         PR c++/93931
181         * testsuite/libgomp.c++/pr93931.C: New test.
183 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
185         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
186         dg-allow-blank-lines-in-output.
188 2020-03-18  Julian Brown <julian@codesourcery.com>
189             Tobias Burnus  <tobias@codesourcery.com>
191         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
192         it work concurrently.
194 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
196         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
197         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
198         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
200 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
202         PR middle-end/93566
203         * testsuite/libgomp.c/pr93566.c: New test.
205 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
207         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
208         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
209         integer(acc_device_property) for the type of the return value of
210         acc_get_property.
212 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
214         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
215         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
216         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
217         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
218         (acc_set_device_num): Fix Fortran argument name, use same name for C.
219         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
220         corrections; add note about the previous interface and named constant.
221         (OpenACC library and environment variables): Fix two typos.
222         * openacc.f90: Use for all procedures the argument names from the spec
223         as for …_h they are user visible.
224         (openacc_kinds): Rename acc_device_property to
225         acc_device_property_kinds and change value to int32 ; and update users.
226         Re-add acc_device_property for for backward compatibility.
227         (acc_get_property_string_h): Clean up as acc_device_property_kind
228         changed.
229         (acc_get_property_h): Likewise and return c_size_t instead of
230         acc_device_property.
231         (openacc): Also export acc_device_property_kinds.
232         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
233         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
234         handling; check against /= 0 instead of == 1 to match C.
235         * openacc_lib.h: Use for all procedures the argument names from the spec
236         as for …_h they are user visible. Place !GCC$ into the first column to
237         be active also for fixed-form souce form.
238         (acc_device_current, acc_device_property_kind, acc_device_property,
239         acc_property_memory, acc_property_free_memory, acc_property_name,
240         acc_property_vendor, acc_property_driver): New named constants.
241         (acc_get_property, acc_get_property_string): New generic interface.
243 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
245         PR libgomp/93481
246         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
247         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
248         optional.
249         (gomp_target_task_fn): Assert "devicep->async_run_func".
250         (clear_unsupported_flags): New function to remove unsupported flags
251         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
252         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
253         * testsuite/libgomp.c/target-33.c:
254         Remove xfail for offload_target_nvptx.
255         * testsuite/libgomp.c/target-34.c: Likewise.
257 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
259         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
260         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
261         * testsuite/libgomp.c/target-34.c: Likewise.
262         * testsuite/libgomp.c/target-link-1.c: Add xfail for
263         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
265 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
267         * testsuite/libgomp.c/target-38.c: New test.
269 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
271         PR libgomp/93515
272         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
274 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
276         * testsuite/lib/libgomp.exp
277         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
278         and not as 'source' argument to libgomp_target_compile.
280 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
282         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
283         (gcn_gfx801_s): Remove.
284         (isa_hsa_name): Remove gfx801.
285         (isa_gcc_name): Remove gfx801/carizzo.
286         (isa_code): Remove gfx801.
288 2020-02-03  Julian Brown  <julian@codesourcery.com>
289             Tobias Burnus  <tobias@codesourcery.com>
291         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
292         and *_finalize variants; document acc_attach and acc_detach; update
293         references from OpenACC 2.0 to 2.6.
294         * openacc.f90 (openacc_version): Update to 201711.
295         * openacc_lib.h (openacc_version): Update to 201711.
296         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
297         openacc_version to 201711.
298         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
300 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
302         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
303         and vgpr_count fields.
304         (struct kernel_info): Add a field for a hsa_kernel_description.
305         (run_kernel): Reduce the number of threads/workers if the requested
306         number would require too many VGPRs.
307         (init_basic_kernel_info): Initialize description field with
308         the hsa_kernel_description entry for the kernel.
310 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
312         PR bootstrap/93409
313         * plugin/configfrag.ac (enable_offload_targets): Skip
314         HSA and GCN plugin besides -m32 also for -mx32.
315         * configure: Regenerate.
317 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
319         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
321 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
323         * plugin-gcn.c (struct agent_info): Add fields "name" and
324         "vendor_name" ...
325         (GOMP_OFFLOAD_init_device): ... and init from here.
326         (struct hsa_context_info): Add field "driver_version_s" ...
327         (init_hsa_contest): ... and init from here.
328         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
329         implementation.
330         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
331         Enable test execution for amdgcn and host offloading targets.
332         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
333         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
334         (expect_device_properties): Split function into ...
335         (expect_device_string_properties): ... this new function ...
336         (expect_device_memory): ... and this new function.
337         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
338         Add test.
340 2020-01-28  Julian Brown  <julian@codesourcery.com>
342         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
343         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
344         component/non-component variable refs in a single directive.
345         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
347 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
349         * configure.ac: Handle `--with-toolexeclibdir='.
350         * Makefile.in: Regenerate.
351         * aclocal.m4: Regenerate.
352         * configure: Regenerate.
353         * testsuite/Makefile.in: Regenerate.
355 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
357         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
358         (expect_device_properties): Remove "expected_free_mem" argument,
359         change "expected_total_mem" argument type to size_t;
360         change types of acc_get_property results to size_t,
361         adapt format strings.
362         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
363         Use %zu instead of %zd to print size_t values.
364         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
365         rename to ...
366         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
367         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
368         rename to ...
369         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
371 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
373         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
374         the device id.
376 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
378         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
379         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
380         Adjust test dimensions for amdgcn.
381         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
382         gang/worker/vector expectations dynamically.
383         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
384         (main): Likewise.
385         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
386         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
387         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
388         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
389         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
390         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
391         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
392         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
393         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
394         (acc_gang): Recognise acc_device_radeon.
395         (acc_worker): Likewise.
396         (acc_vector): Likewise.
397         (main): Set expectations for amdgcn.
398         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
399         (main): Adjust gang/worker/vector expectations dynamically.
400         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
401         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
402         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
403         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
404         for amdgcn.
406 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
408         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
409         acc_device_radeon.
410         (openacc): Likewise.
411         * openacc.f90 (openacc_kinds): Likewise.
412         (openacc): Likewise.
413         * openacc.h (acc_device_t): Likewise.
414         * openacc_lib.h: Likewise.
415         * testsuite/lib/libgomp.exp
416         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
417         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
418         (cb_compute_construct_end): Likewise.
419         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
420         (cb_enqueue_launch_start): Likewise.
421         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
422         (cb_enter_data_end): Likewise.
423         (cb_exit_data_start): Likewise.
424         (cb_exit_data_end): Likewise.
425         (cb_compute_construct_end): Likewise.
426         (cb_enqueue_launch_start): Likewise.
427         (cb_enqueue_launch_end): Likewise.
428         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
429         (main): Likewise.
431 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
433         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
434         to use this instead of 'enum gomp_device_property'.
435         (GOMP_OFFLOAD_get_property): Rename to...
436         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
437         * libgomp.h (struct gomp_device_descr): Move
438         'GOMP_OFFLOAD_openacc_get_property'...
439         (struct acc_dispatch_t): ... here.  Adjust all users.
440         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
442         * target.c (gomp_map_vars_internal)
443         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
444         paths.
446 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
448         PR libgomp/93219
449         * libgomp.h (gomp_print_string): Change return type from void to int.
450         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
451         not all characters have been written.
453 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
455         * libgomp.texi: Fix typos, use https.
457 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
459         * testsuite/libgomp.fortran/optional-map.f90: Add test for
460         unallocated/disassociated actual arguments to nonallocatable/nonpointer
461         dummy arguments; those are/shall be regarded as absent arguments.
462         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
463         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
465 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
467         Update copyright years.
469         * libgomp.texi: Bump @copying's copyright year.
471 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
473         PR libgomp/93065
474         * oacc-init.c (goacc_runtime_deinitialize): New function.
476 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
478         PR bootstrap/93074
479         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
480         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
482 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
483             Frederik Harwath  <frederik@codesourcery.com>
484             Thomas Schwinge  <tschwinge@codesourcery.com>
486         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
487         * libgomp-plugin.h (gomp_device_property_value): New union.
488         (gomp_device_property_value): New prototype.
489         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
490         constant.
491         (acc_device_property_t): New enum.
492         (acc_get_property, acc_get_property_string): New prototypes.
493         * oacc-init.c (acc_get_device_type): Also assert that result
494         is not `acc_device_current'.
495         (get_property_any, acc_get_property, acc_get_property_string):
496         New functions.
497         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
498         `acc_property_memory', `acc_property_free_memory',
499         `acc_property_name', `acc_property_vendor' and
500         `acc_property_driver' constants.  Add `acc_device_property' data
501         type.
502         (openacc_internal): Add `acc_get_property' and
503         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
504         `acc_get_property_string_h', `acc_get_property_l' and
505         `acc_get_property_string_l'.
506         * oacc-host.c (host_get_property): New function.
507         (host_dispatch): Wire it.
508         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
509         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
510         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
511         * libgomp.texi (OpenACC Runtime Library Routines): Add
512         `acc_get_property'.
513         (acc_get_property): New node.
514         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
515         function (stub).
516         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
517         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
518         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
519         calls.
520         (GOMP_OFFLOAD_get_property): New function.
521         (struct ptx_device): Add new field "name".
522         (cuda_driver_version_s): Add new static variable ...
523         (nvptx_init): ... and init from here.
525         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
526         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
527         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
528         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
529         with test helper functions.
531         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
533 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
535         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
536         variable.
538 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
540         * target.c (gomp_map_vars_internal): Restore 'omp declare target
541         link' handling.
543 2019-12-19  Julian Brown  <julian@codesourcery.com>
545         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
546         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
547         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
549 2019-12-19  Julian Brown  <julian@codesourcery.com>
550             Cesar Philippidis  <cesar@codesourcery.com>
552         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
553         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
554         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
555         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
556         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
557         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
558         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
559         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
560         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
561         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
562         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
563         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
564         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
566 2019-12-19  Julian Brown  <julian@codesourcery.com>
568         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
569         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
570         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
571         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
572         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
573         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
574         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
575         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
576         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
577         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
578         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
579         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
581 2019-12-19  Julian Brown  <julian@codesourcery.com>
583         * libgomp.h (struct target_var_desc): Add do_detach flag.
584         * oacc-init.c (acc_shutdown_1): Free aux block if present.
585         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
586         struct components.  Tidy up and add some new checks.
587         (goacc_enter_data_internal): Update call to find_group_last.
588         (goacc_exit_data_internal): Support detach operations and
589         GOMP_MAP_STRUCT.
590         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
591         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
592         attach/detach in enter/exit data detection code.
593         * target.c (gomp_map_vars_existing): Initialise do_detach field of
594         tgt_var_desc.
595         (gomp_map_vars_internal): Support attach.
596         (gomp_unmap_vars_internal): Support detach.
598 2019-12-19  Julian Brown  <julian@codesourcery.com>
599             Thomas Schwinge  <thomas@codesourcery.com>
601         * libgomp.h (struct splay_tree_aux): Add attach_count field.
602         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
603         * libgomp.map (OACC_2.6): New section. Add acc_attach,
604         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
605         acc_detach_finalize_async.
606         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
607         acc_detach, acc_detach_async, acc_detach_finalize,
608         acc_detach_finalize_async): New functions.
609         * openacc.h (acc_attach, acc_attach_async, acc_detach,
610         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
611         prototypes.
612         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
613         (gomp_remove_var_internal): Free attachment counts if present.
614         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
615         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
617 2019-12-19  Julian Brown  <julian@codesourcery.com>
618             Cesar Philippidis  <cesar@codesourcery.com>
620         * libgomp.h (gomp_map_val): Add prototype.
621         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
622         open-coding device-address calculation.
623         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
624         non-present case.
626 2019-12-19  Julian Brown  <julian@codesourcery.com>
628         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
629         field for virtual_refcount.
630         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
631         (gomp_free_memmap): Remove prototype.
632         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
633         instead of calling gomp_free_memmap.
634         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
635         dynamic_refcount.
636         (acc_unmap_data): Open code instead of forcing target_mem_desc's
637         to_free field to NULL then calling gomp_unmap_vars.  Handle
638         REFCOUNT_INFINITY on target blocks.
639         (goacc_enter_data): Rename to...
640         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
641         handling for mapping groups.  Use virtual_refcount instead of
642         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
643         map_map_vars_async call.  Re-do lookup for target pointer return value.
644         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
645         renamed goacc_enter_datum function.
646         (goacc_exit_data): Rename to...
647         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
648         (acc_delete, acc_delete_async, acc_delete_finalize,
649         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
650         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
651         goacc_exit_datum function.
652         (gomp_acc_remove_pointer, find_pointer): Remove functions.
653         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
654         New functions.
655         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
656         goacc_exit_data_internal helper functions.
657         * target.c (gomp_map_vars_internal): Handle
658         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
659         semantics.
660         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
661         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
662         virtual_refcount field instead of dynamic_refcount.
663         (gomp_free_memmap): Remove function.
664         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
665         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
666         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
668 2019-12-19  Julian Brown  <julian@codesourcery.com>
669             Thomas Schwinge  <thomas@codesourcery.com>
671         * libgomp.h (struct splay_tree_aux): New.
672         (struct splay_tree_key_s): Replace link_key field with aux pointer.
673         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
674         to aux struct.
675         (gomp_remove_var_internal): Free aux block if present.
676         (gomp_load_image_to_device): Zero-initialise aux field instead of
677         link_key field.
678         (omp_target_associate_pointer): Zero-initialise aux field.
680 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
682         PR middle-end/86416
683         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
684         q or none.
685         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
686         L or none.
688 2019-12-19  Julian Brown  <julian@codesourcery.com>
689             Maciej W. Rozycki  <macro@codesourcery.com>
690             Tobias Burnus  <tobias@codesourcery.com>
691             Thomas Schwinge  <thomas@codesourcery.com>
693         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
694         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
695         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
696         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
697         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
698         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
699         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
700         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
701         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
703 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
705         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
706         called...
707         (goacc_insert_pointer): ... from here, "present" case.
708         (goacc_insert_pointer): Inline function into...
709         (GOACC_enter_exit_data): ... here, and simplify.
711         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
712         called...
713         (goacc_insert_pointer): ... from here, "not present" case.
715         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
716         all users.
718         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
719         'goacc_enter_data', 'goacc_exit_data'.
721         * oacc-mem.c (delete_copyout): Refactor into...
722         (goacc_exit_data): ... this.  Adjust all users.
724         * oacc-mem.c (present_create_copy): Refactor into...
725         (goacc_enter_data): ... this.  Adjust all users.
727         * target.c (gomp_unmap_vars_internal): Add a safeguard to
728         'gomp_remove_var'.
730         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
731         like 'GOMP_MAP_FROM'.
733         PR libgomp/92726
734         PR libgomp/92970
735         PR libgomp/92984
736         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
737         fails.
738         (GOACC_enter_exit_data): Simplify accordingly.
739         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
740         subsuming...
741         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
742         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
743         file.
744         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
745         subsuming...
746         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
747         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
748         file.
749         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
750         subsuming...
751         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
753         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
754         'finalize' handling.
756         PR libgomp/92848
757         * oacc-mem.c (acc_map_data, present_create_copy)
758         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
759         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
760         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
761         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
762         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
763         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
764         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
765         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
766         Remove "XFAIL"s.
768         * target.c (gomp_unmap_tgt): Make it 'static'.
769         * libgomp.h (gomp_unmap_tgt): Remove.
771 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
773         PR middle-end/86416
774         * testsuite/libgomp.c/pr86416-1.c: New.
775         * testsuite/libgomp.c/pr86416-2.c: New.
777 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
779         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
780         all symbols as public except for the 'use …, only' imported symbol,
781         which is private.
782         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
783         all symbols from module openacc_kinds as PUBLIC
784         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
785         fix comment typo.
786         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
788 2019-12-13  Julian Brown  <julian@codesourcery.com>
790         PR libgomp/92881
792         * libgomp.h (gomp_remove_var_async): Add prototype.
793         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
794         gomp_remove_var.
795         * target.c (gomp_unref_tgt): Change return type to bool, indicating
796         whether target_mem_desc was unmapped.
797         (gomp_unref_tgt_void): New.
798         (gomp_remove_var): Reimplement in terms of...
799         (gomp_remove_var_internal): ...this new helper function.
800         (gomp_remove_var_async): New, implemented using above helper function.
801         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
802         gomp_unref_tgt.
804 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
806         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
807         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
808         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
809         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
810         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
811         Likewise.
812         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
813         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
815 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
817         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
818         as public except for the 'use …, only' imported symbol, which is
819         private.
820         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
821         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
822         attributes for acc_copyout_finalize and acc_delete_finalize.
824 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
826         PR fortran/92899
827         * testsuite/libgomp.fortran/atomic1.f90: New test.
829 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
831         PR libgomp/92843
832         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
833         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
834         assertions.
835         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
836         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
837         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
838         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
839         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
841         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
842         * oacc-mem.c: ... here.
843         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
844         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
845         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
846         Remove.
847         * libgomp_g.h: Update.
849         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
850         * oacc-async.c: ... here.
851         * oacc-int.h (goacc_wait): Declare.
852         * libgomp_g.h: Update
854         PR libgomp/92854
855         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
856         New file.
857         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
858         Likewise.
859         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
860         Likewise.
861         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
862         Likewise.
863         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
864         Likewise.
865         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
866         Likewise.
868 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
869             Julian Brown  <julian@codesourcery.com>
871         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
872         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
874 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
876         * omp_lib.h.in: Fix spelling of function declaration
877         omp_get_cancell(l)ation.
878         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
879         Fix typos.
880         * env.c: Fix comment typos.
881         * oacc-host.c: Likewise.
882         * ordered.c: Likewise.
883         * task.c: Likewise.
884         * team.c: Likewise.
885         * config/gcn/task.c: Likewise.
886         * config/gcn/team.c: Likewise.
887         * config/nvptx/task.c: Likewise.
888         * config/nvptx/team.c: Likewise.
889         * plugin/plugin-gcn.c: Likewise.
890         * testsuite/libgomp.fortran/jacobi.f: Likewise.
891         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
892         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
894 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
896         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
897         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
898         unnecessary 'dg-additional-options "-w"'.
900 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
901             Julian Brown  <julian@codesourcery.com>
903         PR libgomp/92116
904         PR libgomp/92877
906         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
907         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
908         Adjust all users.
909         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
910         Remove XFAIL.
911         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
912         Likewise.
913         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
915 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
917         PR libgomp/92503
918         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
919         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
920         file.
921         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
922         Likewise.
923         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
924         Likewise.
925         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
926         Likewise.
927         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
928         Likewise.
929         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
930         Likewise.
931         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
932         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
933         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
934         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
935         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
936         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
937         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
938         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
939         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
940         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
942         PR libgomp/92840
943         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
944         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
945         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
946         New file.
947         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
948         Likewise.
949         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
950         Likewise.
951         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
952         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
954         PR libgomp/92511
955         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
956         this file...
957         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
958         this file...
959         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
960         file...
961         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
962         file...
963         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
964         ... with their content moved into, and extended in this new file.
965         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
966         New file.
967         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
968         Likewise.
969         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
970         Likewise.
971         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
972         Likewise.
974         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
976         PR libgomp/92854
977         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
979         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
981         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
983 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
985         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
986         unique.
987         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
988         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
989         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
990         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
991         Ditto.
992         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
993         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
995 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
997         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
999 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
1000             Kwok Cheung Yeung <kcy@codesourcery.com>
1002         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
1003         if input it a NULL pointer.
1004         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
1005         diagnostic of NULL pointer.
1006         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
1007         * testsuite/libgomp.fortran/optional-map.f90: New.
1008         * testsuite/libgomp.fortran/use_device_addr-1.f90
1009         (test_dummy_opt_callee_1_absent): New.
1010         (test_dummy_opt_call_1): Call it.
1011         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1012         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
1013         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1014         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
1015         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
1016         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
1017         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
1018         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
1019         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
1020         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
1021         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
1022         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
1023         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
1024         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
1025         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
1026         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
1028 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
1030         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
1031         expect dg-output of 'Error termination.' for GCN.
1032         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1033         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1035 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
1037         PR fortran/92756
1038         * testsuite/libgomp.fortran/teams1.f90: New test.
1039         * testsuite/libgomp.fortran/teams2.f90: New test.
1041 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
1043         * oacc-init.c (acc_known_device_type): Add function.
1044         (unknown_device_type_error): Add function.
1045         (name_of_acc_device_t): Change to call unknown_device_type_error
1046         on unknown type.
1047         (resolve_device): Use acc_known_device_type.
1048         (acc_init): Fail if acc_device_t argument is not valid.
1049         (acc_shutdown): Likewise.
1050         (acc_get_num_devices): Likewise.
1051         (acc_set_device_type): Likewise.
1052         (acc_get_device_num): Likewise.
1053         (acc_set_device_num): Likewise.
1054         (acc_on_device): Add comment that argument validity is not checked.
1056 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
1058         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1059         Recognize amdgcn.
1060         (check_effective_target_openacc_amdgcn_accel_present): New proc.
1061         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
1062         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
1063         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1064         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1066 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1068         PR libgomp/91938
1069         * configure.tgt: Avoid IE tls on *-*-musl*.
1071 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
1073         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
1074         adding a common-block test case.
1076 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
1078         PR c++/60228
1079         * testsuite/libgomp.c++/udr-20.C: New test.
1080         * testsuite/libgomp.c++/udr-21.C: New test.
1082 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
1084         * testsuite/lib/libgomp.exp
1085         (check_effective_target_offload_target_nvptx): New proc.
1086         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
1087         'dg-skip-if'.
1088         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
1089         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
1090         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
1092 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1094         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
1095         * testsuite/libgomp.c/pr39591-2.c: Likewise.
1096         * testsuite/libgomp.c/pr39591-3.c: Likewise.
1097         * testsuite/libgomp.c/private-1.c: Likewise.
1098         * testsuite/libgomp.c/task-1.c: Likewise.
1099         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
1101 2019-11-20  Julian Brown  <julian@codesourcery.com>
1103         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
1104         aq->mutex here.
1105         (queue_push_launch): Lock aq->mutex before calling
1106         wait_for_queue_nonfull.
1107         (queue_push_callback): Likewise.
1108         (queue_push_asyncwait): Likewise.
1109         (queue_push_placeholder): Likewise.
1111 2019-11-20  Julian Brown  <julian@codesourcery.com>
1113         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
1114         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
1115         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
1116         return code.
1118 2019-11-20  Julian Brown  <julian@codesourcery.com>
1120         PR libgomp/92511
1122         * oacc-mem.c (present_create_copy): Fix device pointer return value in
1123         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
1124         in non-present/create case.
1125         (delete_copyout): Change error condition to fail only on copies outside
1126         of mapped block.  Adjust error message accordingly.
1127         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
1128         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
1129         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
1130         message.
1131         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1132         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
1133         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1135 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
1137         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
1138         libatomic in build-tree testing.
1140 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
1142         * testsuite/Makefile.in: Regenerate.
1144 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
1146         * testsuite/libgomp.c/target-print-1.c: New file.
1147         * testsuite/libgomp.fortran/target-print-1.f90: New file.
1148         * testsuite/libgomp.oacc-c/print-1.c: New file.
1149         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
1151 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1152             Kwok Cheung Yeung  <kcy@codesourcery.com>
1153             Julian Brown  <julian@codesourcery.com>
1154             Tom de Vries  <tom@codesourcery.com>
1156         * plugin/Makefrag.am: Add amdgcn plugin support.
1157         * plugin/configfrag.ac: Likewise.
1158         * plugin/plugin-gcn.c: New file.
1159         * configure: Regenerate.
1160         * Makefile.in: Regenerate.
1161         * testsuite/Makefile.in: Regenerate.
1163 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1165         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
1166         and use team_malloc variants.
1167         (gomp_gcn_exit_kernel): Use team_free.
1168         * libgomp.h (TEAM_ARENA_SIZE): Define.
1169         (TEAM_ARENA_START): Define.
1170         (TEAM_ARENA_FREE): Define.
1171         (TEAM_ARENA_END): Define.
1172         (team_malloc): New function.
1173         (team_malloc_cleared): New function.
1174         (team_free): New function.
1175         * team.c (gomp_new_team): Initialize and use team_malloc.
1176         (free_team): Use team_free.
1177         (gomp_free_thread): Use team_free.
1178         (gomp_pause_host): Use team_free.
1179         * work.c (gomp_init_work_share): Use team_malloc.
1180         (gomp_fini_work_share): Use team_free.
1182 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1183             Kwok Cheung Yeung  <kcy@codesourcery.com>
1184             Julian Brown  <julian@codesourcery.com>
1185             Tom de Vries  <tom@codesourcery.com>
1187         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1188         * Makefile.in: Regenerate.
1189         * config.h.in (PLUGIN_GCN): Add new undef.
1190         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1191         * config/gcn/affinity-fmt.c: New file.
1192         * config/gcn/bar.c: New file.
1193         * config/gcn/bar.h: New file.
1194         * config/gcn/doacross.h: New file.
1195         * config/gcn/icv-device.c: New file.
1196         * config/gcn/oacc-target.c: New file.
1197         * config/gcn/simple-bar.h: New file.
1198         * config/gcn/target.c: New file.
1199         * config/gcn/task.c: New file.
1200         * config/gcn/team.c: New file.
1201         * config/gcn/time.c: New file.
1202         * configure.ac: Add amdgcn*-*-*.
1203         * configure: Regenerate.
1204         * configure.tgt: Add amdgcn*-*-*.
1205         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1206         * libgomp.h (gcn_thrs): Add amdgcn variant.
1207         (set_gcn_thrs): Likewise.
1208         (gomp_thread): Likewise.
1209         * oacc-int.h (goacc_thread): Likewise.
1210         * oacc-target.c: New file.
1211         * openacc.f90 (acc_device_gcn): New parameter.
1212         * openacc.h (acc_device_t): Add acc_device_gcn.
1213         * team.c (gomp_free_pool_helper): Add amdgcn support.
1215 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1216             Julian Brown  <julian@codesourcery.com>
1218         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1219         parameter.
1220         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1221         queue constructor.
1222         * oacc-host.c (host_openacc_async_construct): Add device parameter.
1223         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1224         device parameter.
1226 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1228         * configure.tgt (nvptx*-*-*): Add "accel" directory.
1229         * config/nvptx/libgomp-plugin.c: Move ...
1230         * config/accel/libgomp-plugin.c: ... to here.
1231         * config/nvptx/lock.c: Move ...
1232         * config/accel/lock.c: ... to here.
1233         * config/nvptx/mutex.c: Move ...
1234         * config/accel/mutex.c: ... to here.
1235         * config/nvptx/mutex.h: Move ...
1236         * config/accel/mutex.h: ... to here.
1237         * config/nvptx/oacc-async.c: Move ...
1238         * config/accel/oacc-async.c: ... to here.
1239         * config/nvptx/oacc-cuda.c: Move ...
1240         * config/accel/oacc-cuda.c: ... to here.
1241         * config/nvptx/oacc-host.c: Move ...
1242         * config/accel/oacc-host.c: ... to here.
1243         * config/nvptx/oacc-init.c: Move ...
1244         * config/accel/oacc-init.c: ... to here.
1245         * config/nvptx/oacc-mem.c: Move ...
1246         * config/accel/oacc-mem.c: ... to here.
1247         * config/nvptx/oacc-plugin.c: Move ...
1248         * config/accel/oacc-plugin.c: ... to here.
1249         * config/nvptx/omp-lock.h: Move ...
1250         * config/accel/omp-lock.h: ... to here.
1251         * config/nvptx/openacc.f90: Move ...
1252         * config/accel/openacc.f90: ... to here.
1253         * config/nvptx/pool.h: Move ...
1254         * config/accel/pool.h: ... to here.
1255         * config/nvptx/proc.c: Move ...
1256         * config/accel/proc.c: ... to here.
1257         * config/nvptx/ptrlock.c: Move ...
1258         * config/accel/ptrlock.c: ... to here.
1259         * config/nvptx/ptrlock.h: Move ...
1260         * config/accel/ptrlock.h: ... to here.
1261         * config/nvptx/sem.c: Move ...
1262         * config/accel/sem.c: ... to here.
1263         * config/nvptx/sem.h: Move ...
1264         * config/accel/sem.h: ... to here.
1265         * config/nvptx/thread-stacksize.h: Move ...
1266         * config/accel/thread-stacksize.h: ... to here.
1268 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
1269             Tobias Burnus  <tobias@codesourcery.com>
1270             Frederik Harwath  <frederik@codesourcery.com>
1271             Thomas Schwinge  <thomas@codesourcery.com>
1273         libgomp/
1274         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1275         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1276         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1278 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
1279             Kwok Cheung Yeung  <kcy@codesourcery.com>
1281         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1282         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1284 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
1286         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1288         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1289         run'.
1290         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1291         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1293 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
1295         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1296         Add expected warnings about missing reduction clauses.
1297         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1298         Likewise.
1299         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1300         Likewise.
1301         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1302         Likewise.
1304 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
1306         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1307         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1308         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1309         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1310         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1311         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1313 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
1315         PR fortran/92305
1316         * testsuite/libgomp.fortran/allocatable2.f90: Use
1317         unique numbers with 'stop'.
1318         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1319         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1320         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1321         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1322         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1324 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
1326         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1327         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1328         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1329         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1330         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1331         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1333 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
1335         * testsuite/libgomp.fortran/target9.f90: New.
1337 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
1339         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1340         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1341         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1342         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1343         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1344         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1345         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1346         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1347         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1348         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1349         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1350         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1351         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1352         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1353         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1354         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1355         * testsuite/libgomp.fortran/associate1.f90: Ditto.
1356         * testsuite/libgomp.fortran/associate2.f90: Ditto.
1357         * testsuite/libgomp.fortran/associate3.f90: Ditto.
1358         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1359         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1360         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1361         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1362         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1363         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1364         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1365         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1366         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1367         * testsuite/libgomp.fortran/character1.f90: Ditto.
1368         * testsuite/libgomp.fortran/character2.f90: Ditto.
1369         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1370         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1371         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1372         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1373         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1374         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1375         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1376         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1377         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1378         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1379         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1380         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1381         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1382         * testsuite/libgomp.fortran/do1.f90: Ditto.
1383         * testsuite/libgomp.fortran/do2.f90: Ditto.
1384         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1385         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1386         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1387         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1388         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1389         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1390         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1391         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1392         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1393         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1394         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1395         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1396         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1397         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1398         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1399         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1400         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1401         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1402         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1403         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1404         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1405         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1406         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1407         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1408         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1409         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1410         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1411         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1412         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1413         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1414         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1415         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1416         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1417         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1418         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1419         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1420         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1421         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1422         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1423         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1424         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1425         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1426         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1427         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1428         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1429         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1430         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1431         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1432         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1433         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1434         * testsuite/libgomp.fortran/lib1.f90: Ditto.
1435         * testsuite/libgomp.fortran/lib4.f90: Ditto.
1436         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1437         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1438         * testsuite/libgomp.fortran/nested1.f90: Ditto.
1439         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1440         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1441         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1442         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1443         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1444         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1445         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1446         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1447         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1448         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1449         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1450         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1451         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1452         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1453         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1454         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1455         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1456         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1457         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1458         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1459         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1460         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1461         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1462         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1463         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1464         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1465         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1466         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1467         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1468         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1469         * testsuite/libgomp.fortran/pr28390.f: Ditto.
1470         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1471         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1472         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1473         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1474         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1475         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1476         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1477         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1478         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1479         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1480         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1481         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1482         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1483         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1484         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1485         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1486         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1487         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1488         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1489         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1490         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1491         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1492         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1493         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1494         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1495         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1496         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1497         * testsuite/libgomp.fortran/reference1.f90: Ditto.
1498         * testsuite/libgomp.fortran/reference2.f90: Ditto.
1499         * testsuite/libgomp.fortran/retval1.f90: Ditto.
1500         * testsuite/libgomp.fortran/retval2.f90: Ditto.
1501         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1502         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1503         * testsuite/libgomp.fortran/simd1.f90: Ditto.
1504         * testsuite/libgomp.fortran/simd2.f90: Ditto.
1505         * testsuite/libgomp.fortran/simd3.f90: Ditto.
1506         * testsuite/libgomp.fortran/simd4.f90: Ditto.
1507         * testsuite/libgomp.fortran/simd5.f90: Ditto.
1508         * testsuite/libgomp.fortran/simd6.f90: Ditto.
1509         * testsuite/libgomp.fortran/simd7.f90: Ditto.
1510         * testsuite/libgomp.fortran/stack.f90: Ditto.
1511         * testsuite/libgomp.fortran/strassen.f90: Ditto.
1512         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1513         * testsuite/libgomp.fortran/tabs2.f: Ditto.
1514         * testsuite/libgomp.fortran/target1.f90: Ditto.
1515         * testsuite/libgomp.fortran/target2.f90: Ditto.
1516         * testsuite/libgomp.fortran/target3.f90: Ditto.
1517         * testsuite/libgomp.fortran/target4.f90: Ditto.
1518         * testsuite/libgomp.fortran/target5.f90: Ditto.
1519         * testsuite/libgomp.fortran/target6.f90: Ditto.
1520         * testsuite/libgomp.fortran/target7.f90: Ditto.
1521         * testsuite/libgomp.fortran/target8.f90: Ditto.
1522         * testsuite/libgomp.fortran/task1.f90: Ditto.
1523         * testsuite/libgomp.fortran/task2.f90: Ditto.
1524         * testsuite/libgomp.fortran/task3.f90: Ditto.
1525         * testsuite/libgomp.fortran/task4.f90: Ditto.
1526         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1527         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1528         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1529         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1530         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1531         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1532         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1533         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1534         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1535         * testsuite/libgomp.fortran/udr1.f90: Ditto.
1536         * testsuite/libgomp.fortran/udr10.f90: Ditto.
1537         * testsuite/libgomp.fortran/udr11.f90: Ditto.
1538         * testsuite/libgomp.fortran/udr12.f90: Ditto.
1539         * testsuite/libgomp.fortran/udr13.f90: Ditto.
1540         * testsuite/libgomp.fortran/udr14.f90: Ditto.
1541         * testsuite/libgomp.fortran/udr15.f90: Ditto.
1542         * testsuite/libgomp.fortran/udr2.f90: Ditto.
1543         * testsuite/libgomp.fortran/udr3.f90: Ditto.
1544         * testsuite/libgomp.fortran/udr4.f90: Ditto.
1545         * testsuite/libgomp.fortran/udr5.f90: Ditto.
1546         * testsuite/libgomp.fortran/udr6.f90: Ditto.
1547         * testsuite/libgomp.fortran/udr7.f90: Ditto.
1548         * testsuite/libgomp.fortran/udr8.f90: Ditto.
1549         * testsuite/libgomp.fortran/udr9.f90: Ditto.
1550         * testsuite/libgomp.fortran/vla1.f90: Ditto.
1551         * testsuite/libgomp.fortran/vla2.f90: Ditto.
1552         * testsuite/libgomp.fortran/vla3.f90: Ditto.
1553         * testsuite/libgomp.fortran/vla4.f90: Ditto.
1554         * testsuite/libgomp.fortran/vla5.f90: Ditto.
1555         * testsuite/libgomp.fortran/vla6.f90: Ditto.
1556         * testsuite/libgomp.fortran/vla7.f90: Ditto.
1557         * testsuite/libgomp.fortran/vla8.f90: Ditto.
1558         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1559         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1561 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
1563         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1564         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1565         Ditto; add 'dg-do run' for torture testing.
1566         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
1567         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1568         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1569         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1570         * testsuite/libgomp.fortran/pr28390.f: Ditto.
1571         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1572         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1573         * testsuite/libgomp.fortran/task2.f90: Ditto.
1574         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1575         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1576         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1577         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1578         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1579         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1581 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
1583         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1584         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1585         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1586         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1587         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1588         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1589         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1590         Use 'stop' not abort().
1591         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1592         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1593         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1594         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1595         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1596         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1597         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1598         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1599         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1600         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1601         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1602         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1603         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1604         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1605         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1606         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1607         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1608         Ditto.
1609         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1610         Ditto.
1611         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1612         Ditto.
1613         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1614         Ditto.
1615         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1616         Ditto.
1617         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1618         Ditto.
1619         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1620         Ditto.
1621         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1622         Ditto.
1623         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1624         Ditto.
1625         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1626         Ditto.
1627         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1628         Ditto.
1629         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1630         Ditto.
1631         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1632         Ditto.
1633         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1634         Ditto.
1635         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1636         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1637         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1638         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1639         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1640         Likewise and also add 'dg-do run'.
1641         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1642         Ditto.
1644 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
1645             Tobias Burnus  <tobias@codesourcery.com>
1647         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1648         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1649         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1651 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
1653         PR libgomp/92081
1654         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1655         than 0.
1657 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
1659         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1660         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1662 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
1664         PR middle-end/92036
1665         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1666         file.
1668 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
1670         PR testsuite/91884
1671         * testsuite/libgomp.fortran/fortran.exp: Conditionally
1672         add -lquadmath.
1673         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1675 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
1677         PR libgomp/92028
1678         * target.c (gomp_map_vars_internal): Readd the previous
1679         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1680         though do that just in the !not_found_cnt case.
1682 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
1684         * gfortran.dg/gomp/target-simd.f90: New.
1686 2019-10-02  Julian Brown  <julian@codesourcery.com>
1687             Cesar Philippidis  <cesar@codesourcery.com>
1689         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1690         * target.c (FIELD_TGT_EMPTY): Define.
1691         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
1692         as switch instead of list of ifs.
1693         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1695 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
1697         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1698         include. Replace alloca () with __builtin_alloca ().
1699         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1701 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
1703         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1704         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1705         * oacc-parallel.c: Don't include "libgomp_g.h".
1706         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1707         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1708         * aclocal.m4: Regenerated.
1709         * config.h.in: Regenerated.
1710         * configure: Regenerated.
1711         * Makefile.in: Regenerated.
1713 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
1715         * libgomp_g.h: Include stdint.h instead of gstdint.h.
1717 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
1719         * configure: Regenerate.
1721 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
1723         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1724         string is initialized.
1726 2019-09-06  Florian Weimer  <fweimer@redhat.com>
1728         * configure: Regenerate.
1730 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
1732         PR other/79543
1733         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1734         scanning to conform to the GNU Coding Standards.
1735         * configure: Regenerate.
1737 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
1739         PR libgomp/91530
1740         * testsuite/libgomp.c/scan-21.c: New test.
1741         * testsuite/libgomp.c/scan-22.c: New test.
1743 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
1745         PR libgomp/91530
1746         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1747         targets.
1748         * testsuite/libgomp.c/scan-12.c: Likewise.
1749         * testsuite/libgomp.c/scan-13.c: Likewise.
1750         * testsuite/libgomp.c/scan-14.c: Likewise.
1751         * testsuite/libgomp.c/scan-15.c: Likewise.
1752         * testsuite/libgomp.c/scan-16.c: Likewise.
1753         * testsuite/libgomp.c/scan-17.c: Likewise.
1754         * testsuite/libgomp.c/scan-18.c: Likewise.
1755         * testsuite/libgomp.c/scan-19.c: Likewise.
1756         * testsuite/libgomp.c/scan-20.c: Likewise.
1757         * testsuite/libgomp.c++/scan-9.C: Likewise.
1758         * testsuite/libgomp.c++/scan-10.C: Likewise.
1759         * testsuite/libgomp.c++/scan-11.C: Likewise.
1760         * testsuite/libgomp.c++/scan-12.C: Likewise.
1761         * testsuite/libgomp.c++/scan-14.C: Likewise.
1762         * testsuite/libgomp.c++/scan-15.C: Likewise.
1763         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
1764         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1765         * testsuite/libgomp.c++/scan-16.C: Likewise.
1767 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
1769         PR fortran/91473
1770         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1771         -std=legacy so invalid code in the test case is accepted.
1773 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
1775         PR fortran/91422
1776         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1777         dimension.
1779 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
1781         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1782         perform the lookup in the first loop only if !not_found_cnt, otherwise
1783         perform lookups for it in the second loop guarded with
1784         if (not_found_cnt || has_firstprivate).
1785         * testsuite/libgomp.c/target-37.c: New test.
1786         * testsuite/libgomp.c++/target-22.C: New test.
1788 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
1790         * testsuite/libgomp.c/target-18.c (struct S): New type.
1791         (foo): Use use_device_addr clause instead of use_device_ptr clause
1792         where required by OpenMP 5.0, add further tests for both use_device_ptr
1793         and use_device_addr clauses.
1794         * testsuite/libgomp.c++/target-9.C (struct S): New type.
1795         (foo): Use use_device_addr clause instead of use_device_ptr clause
1796         where required by OpenMP 5.0, add further tests for both use_device_ptr
1797         and use_device_addr clauses.  Add t and u arguments.
1798         (main): Adjust caller.
1800 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
1802         * testsuite/libgomp.c++/loop-13.C: New test.
1803         * testsuite/libgomp.c++/loop-14.C: New test.
1804         * testsuite/libgomp.c++/loop-15.C: New test.
1806 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
1808         PR middle-end/91301
1809         * testsuite/libgomp.c++/for-27.C: New test.
1811 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
1813         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1814         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1816 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
1818         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1820 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
1822         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1823         * testsuite/libgomp.c++/scan-16.C: Likewise.
1825 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
1827         * testsuite/libgomp.c/scan-19.c: New test.
1828         * testsuite/libgomp.c/scan-20.c: New test.
1830         * testsuite/libgomp.c/scan-11.c: New test.
1831         * testsuite/libgomp.c/scan-12.c: New test.
1832         * testsuite/libgomp.c/scan-13.c: New test.
1833         * testsuite/libgomp.c/scan-14.c: New test.
1834         * testsuite/libgomp.c/scan-15.c: New test.
1835         * testsuite/libgomp.c/scan-16.c: New test.
1836         * testsuite/libgomp.c/scan-17.c: New test.
1837         * testsuite/libgomp.c/scan-18.c: New test.
1838         * testsuite/libgomp.c++/scan-9.C: New test.
1839         * testsuite/libgomp.c++/scan-10.C: New test.
1840         * testsuite/libgomp.c++/scan-11.C: New test.
1841         * testsuite/libgomp.c++/scan-12.C: New test.
1842         * testsuite/libgomp.c++/scan-13.C: New test.
1843         * testsuite/libgomp.c++/scan-14.C: New test.
1844         * testsuite/libgomp.c++/scan-15.C: New test.
1845         * testsuite/libgomp.c++/scan-16.C: New test.
1847 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
1849         * testsuite/libgomp.c/scan-9.c: New test.
1850         * testsuite/libgomp.c/scan-10.c: New test.
1852 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
1854         * testsuite/libgomp.c++/scan-1.C: New test.
1855         * testsuite/libgomp.c++/scan-2.C: New test.
1856         * testsuite/libgomp.c++/scan-3.C: New test.
1857         * testsuite/libgomp.c++/scan-4.C: New test.
1858         * testsuite/libgomp.c++/scan-5.C: New test.
1859         * testsuite/libgomp.c++/scan-6.C: New test.
1860         * testsuite/libgomp.c++/scan-7.C: New test.
1861         * testsuite/libgomp.c++/scan-8.C: New test.
1862         * testsuite/libgomp.c/scan-1.c: New test.
1863         * testsuite/libgomp.c/scan-2.c: New test.
1864         * testsuite/libgomp.c/scan-3.c: New test.
1865         * testsuite/libgomp.c/scan-4.c: New test.
1866         * testsuite/libgomp.c/scan-5.c: New test.
1867         * testsuite/libgomp.c/scan-6.c: New test.
1868         * testsuite/libgomp.c/scan-7.c: New test.
1869         * testsuite/libgomp.c/scan-8.c: New test.
1871 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
1873         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1874         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1875         Likewise.
1877         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1878         check.
1880 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
1882         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1883         file.
1885 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
1887         PR fortran/90743
1888         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1889         case.
1890         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1891         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1892         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1893         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1895         PR testsuite/90861
1896         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1898         PR middle-end/90862
1899         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1901 2019-06-16  Tom de Vries  <tdevries@suse.de>
1903         PR tree-optimization/89376
1904         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1906 2019-06-15  Tom de Vries  <tdevries@suse.de>
1908         PR tree-optimization/89713
1909         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1910         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1912 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
1914         PR middle-end/90779
1915         * testsuite/libgomp.c/pr90779.c: New test.
1916         * testsuite/libgomp.fortran/pr90779.f90: New test.
1918 2019-06-15  Tom de Vries  <tdevries@suse.de>
1920         PR tree-optimization/90009
1921         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1923 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
1925         PR tree-optimization/89713
1926         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1928 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
1930         PR target/90811
1931         * testsuite/libgomp.c/pr90811.c: New test.
1933 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
1935         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1936         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1938 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
1940         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1941         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1942         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1943         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1945 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1947         * configure.ac: Call AX_COUNT_CPUS.
1948         Substitute CPU_COUNT.
1949         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1950         count fallback.
1951         * aclocal.m4: Regenerate.
1952         * configure: Regenerate.
1953         * Makefile.in, testsuite/Makefile.in: Regenerate.
1955 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
1957         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1958         to ...
1959         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1960         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1961         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1963 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
1965         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1967         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1969         PR libgomp/90641
1970         * work.c (gomp_init_work_share): Instead of aligning final ordered
1971         value to multiples of long long alignment, align to that the
1972         first part (ordered team ids) and if inline_ordered_team_ids
1973         is not on a long long alignment boundary within the structure,
1974         use __alignof__ (long long) - 1 pad size always.
1975         * loop.c (GOMP_loop_start): Fix *mem computation if
1976         inline_ordered_team_ids is not aligned on long long alignment boundary
1977         within the structure.
1978         * loop-ull.c (GOMP_loop_ull_start): Likewise.
1979         * sections.c (GOMP_sections2_start): Likewise.
1981 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
1983         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1984         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1986         PR libgomp/90585
1987         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
1988         HAVE_INTTYPES_H is defined.
1989         (print_uint64_t): New typedef.
1990         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1991         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1992         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1993         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
1994         before casting to void *.
1995         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1996         * oacc-mem.c: Don't include config.h nor stdint.h.
1997         * target.c: Don't include config.h.
1998         * oacc-cuda.c: Likewise.
1999         * oacc-host.c: Don't include stdint.h.
2001 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
2003         PR libgomp/90527
2004         * alloc.c (_GNU_SOURCE): Define.
2006 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
2008         * acc_prof.h: New file.
2009         * oacc-profiling.c: Likewise.
2010         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
2011         Add these, respectively.
2012         * Makefile.in: Regenerate.
2013         * env.c (initialize_env): Call goacc_profiling_initialize.
2014         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
2015         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
2016         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
2017         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
2018         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
2019         acc_prof_register, acc_prof_unregister, and acc_register_library.
2020         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
2021         GOMP_PLUGIN_goacc_thread.
2022         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
2023         prof_callbacks_enabled members.
2024         (goacc_prof_enabled, goacc_profiling_initialize)
2025         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
2026         (goacc_profiling_dispatch): Declare.
2027         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
2028         (GOACC_PROFILING_SETUP_P): Define.
2029         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
2030         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
2031         OpenACC Profiling Interface.
2032         * oacc-cuda.c (acc_get_current_cuda_device)
2033         (acc_get_current_cuda_context, acc_get_cuda_stream)
2034         (acc_set_cuda_stream): Likewise.
2035         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
2036         (acc_init, acc_set_device_type, acc_get_device_type)
2037         (acc_get_device_num, goacc_lazy_initialize): Likewise.
2038         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
2039         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
2040         (acc_unmap_data, present_create_copy, delete_copyout)
2041         (update_dev_host): Likewise.
2042         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
2043         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
2044         Likewise.
2045         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
2046         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
2047         Likewise.
2048         * libgomp.texi: Update.
2049         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
2050         file.
2051         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
2052         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
2053         Likewise.
2054         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
2055         Likewise.
2056         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
2057         Likewise.
2058         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
2059         Likewise.
2061 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
2063         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
2064         (struct goacc_asyncqueue_list): Likewise.
2065         (goacc_aq): Likewise.
2066         (goacc_aq_list): Likewise.
2067         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2068         (GOMP_OFFLOAD_openacc_async_test): Remove.
2069         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2070         (GOMP_OFFLOAD_openacc_async_wait): Remove.
2071         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2072         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2073         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2074         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2075         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
2076         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
2077         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
2078         (GOMP_OFFLOAD_openacc_async_exec): Declare.
2079         (GOMP_OFFLOAD_openacc_async_construct): Declare.
2080         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
2081         (GOMP_OFFLOAD_openacc_async_test): Declare.
2082         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
2083         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
2084         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
2085         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
2086         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
2088         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
2089         (gomp_acc_insert_pointer): Adjust declaration.
2090         (gomp_copy_host2dev): New declaration.
2091         (gomp_copy_dev2host): Likewise.
2092         (gomp_map_vars_async): Likewise.
2093         (gomp_unmap_tgt): Likewise.
2094         (gomp_unmap_vars_async): Likewise.
2095         (gomp_fini_device): Likewise.
2097         * oacc-async.c (get_goacc_thread): New function.
2098         (get_goacc_thread_device): New function.
2099         (lookup_goacc_asyncqueue): New function.
2100         (get_goacc_asyncqueue): New function.
2101         (acc_async_test): Adjust code to use new async design.
2102         (acc_async_test_all): Likewise.
2103         (acc_wait): Likewise.
2104         (acc_wait_async): Likewise.
2105         (acc_wait_all): Likewise.
2106         (acc_wait_all_async): Likewise.
2107         (goacc_async_free): New function.
2108         (goacc_init_asyncqueues): Likewise.
2109         (goacc_fini_asyncqueues): Likewise.
2110         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
2111         design.
2112         (acc_set_cuda_stream): Likewise.
2113         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
2114         (host_openacc_register_async_cleanup): Remove.
2115         (host_openacc_async_exec): New function.
2116         (host_openacc_async_test): Adjust parameters.
2117         (host_openacc_async_test_all): Remove.
2118         (host_openacc_async_wait): Remove.
2119         (host_openacc_async_wait_async): Remove.
2120         (host_openacc_async_wait_all): Remove.
2121         (host_openacc_async_wait_all_async): Remove.
2122         (host_openacc_async_set_async): Remove.
2123         (host_openacc_async_synchronize): New function.
2124         (host_openacc_async_serialize): New function.
2125         (host_openacc_async_host2dev): New function.
2126         (host_openacc_async_dev2host): New function.
2127         (host_openacc_async_queue_callback): New function.
2128         (host_openacc_async_construct): New function.
2129         (host_openacc_async_destruct): New function.
2130         (struct gomp_device_descr host_dispatch): Remove initialization of old
2131         interface, add initialization of new async sub-struct.
2132         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
2133         (goacc_attach_host_thread_to_device): Remove old async code usage.
2134         * oacc-int.h (goacc_init_asyncqueues): New declaration.
2135         (goacc_fini_asyncqueues): Likewise.
2136         (goacc_async_copyout_unmap_vars): Likewise.
2137         (goacc_async_free): Likewise.
2138         (get_goacc_asyncqueue): Likewise.
2139         (lookup_goacc_asyncqueue): Likewise.
2140         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
2141         design.
2142         (present_create_copy): Adjust code to use new async design.
2143         (delete_copyout): Likewise.
2144         (update_dev_host): Likewise.
2145         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
2146         async design.
2147         (gomp_acc_remove_pointer): Adjust code to use new async design.
2148         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
2149         design.
2150         (GOACC_enter_exit_data): Likewise.
2151         (goacc_wait): Likewise.
2152         (GOACC_update): Likewise.
2153         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
2154         when called, warn as obsolete in comment.
2155         * target.c (goacc_device_copy_async): New function.
2156         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
2157         add goacc_device_copy_async case.
2158         (gomp_copy_dev2host): Likewise.
2159         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
2160         (gomp_map_pointer): Likewise.
2161         (gomp_map_fields_existing): Likewise.
2162         (gomp_map_vars_internal): New always_inline function, renamed from
2163         gomp_map_vars.
2164         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
2165         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
2166         passing goacc_asyncqueue argument.
2167         (gomp_unmap_tgt): Remove static, add attribute_hidden.
2168         (gomp_unref_tgt): New function.
2169         (gomp_unmap_vars_internal): New always_inline function, renamed from
2170         gomp_unmap_vars.
2171         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
2172         (gomp_unmap_vars_async): Implement by calling
2173         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
2174         (gomp_fini_device): New function.
2175         (gomp_exit_data): Adjust gomp_copy_dev2host call.
2176         (gomp_load_plugin_for_device): Remove old interface, adjust to load
2177         new async interface.
2178         (gomp_target_fini): Adjust code to call gomp_fini_device.
2180         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
2181         (struct ptx_stream): Remove.
2182         (struct nvptx_thread): Remove current_stream field.
2183         (cuda_map_create): Remove.
2184         (cuda_map_destroy): Remove.
2185         (map_init): Remove.
2186         (map_fini): Remove.
2187         (map_pop): Remove.
2188         (map_push): Remove.
2189         (struct goacc_asyncqueue): Define.
2190         (struct nvptx_callback): Define.
2191         (struct ptx_free_block): Define.
2192         (struct ptx_device): Remove null_stream, active_streams, async_streams,
2193         stream_lock, and next fields.
2194         (enum ptx_event_type): Remove.
2195         (struct ptx_event): Remove.
2196         (ptx_event_lock): Remove.
2197         (ptx_events): Remove.
2198         (init_streams_for_device): Remove.
2199         (fini_streams_for_device): Remove.
2200         (select_stream_for_async): Remove.
2201         (nvptx_init): Remove ptx_events and ptx_event_lock references.
2202         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2203         case.
2204         (nvptx_open_device): Add free_blocks initialization, remove
2205         init_streams_for_device call.
2206         (nvptx_close_device): Remove fini_streams_for_device call, add
2207         free_blocks destruct code.
2208         (event_gc): Remove.
2209         (event_add): Remove.
2210         (nvptx_exec): Adjust parameters and code.
2211         (nvptx_free): Likewise.
2212         (nvptx_host2dev): Remove.
2213         (nvptx_dev2host): Remove.
2214         (nvptx_set_async): Remove.
2215         (nvptx_async_test): Remove.
2216         (nvptx_async_test_all): Remove.
2217         (nvptx_wait): Remove.
2218         (nvptx_wait_async): Remove.
2219         (nvptx_wait_all): Remove.
2220         (nvptx_wait_all_async): Remove.
2221         (nvptx_get_cuda_stream): Remove.
2222         (nvptx_set_cuda_stream): Remove.
2223         (GOMP_OFFLOAD_alloc): Adjust code.
2224         (GOMP_OFFLOAD_free): Likewise.
2225         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2226         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2227         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2228         (GOMP_OFFLOAD_openacc_async_wait): Remove.
2229         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2230         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2231         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2232         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2233         (cuda_free_argmem): New function.
2234         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2235         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2236         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2237         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2238         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2239         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2240         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2241         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2242         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2243         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2244         (cuda_callback_wrapper): New function.
2245         (cuda_memcpy_sanity_check): New function.
2246         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2247         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2248         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2249         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2251 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
2253         PR target/87835
2254         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2256 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
2258         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2260 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
2262         * team.c (gomp_team_start): Initialize pool->threads[0].
2264 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
2266         * testsuite/libgomp.oacc-c++/c++.exp: Specify
2267         "-foffload=$offload_target".
2268         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2269         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2270         * testsuite/lib/libgomp.exp
2271         (check_effective_target_openacc_nvidia_accel_configured): Remove,
2272         as (conceptually) merged into
2273         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
2274         users.
2276         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2277         * testsuite/libgomp-test-support.exp.in: Adjust.
2278         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
2279         openacc_device_types_s.
2280         (offload_target_to_openacc_device_type): New proc.
2281         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2282         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2283         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2284         * Makefile.in: Regenerate.
2285         * configure: Likewise.
2286         * testsuite/Makefile.in: Likewise.
2288         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2289         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2290         instead of OFFLOAD_TARGETS.
2291         * target.c (gomp_target_init): Adjust.
2292         * testsuite/libgomp-test-support.exp.in: Likewise.
2293         * testsuite/lib/libgomp.exp: Likewise.  Populate
2294         openacc_device_types_s instead of offload_targets_s_openacc.
2295         (check_effective_target_openacc_nvidia_accel_selected)
2296         (check_effective_target_openacc_host_selected): Adjust.
2297         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2298         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2299         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2300         * Makefile.in: Regenerate.
2301         * config.h.in: Likewise.
2302         * configure: Likewise.
2303         * testsuite/Makefile.in: Likewise.
2305         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2306         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
2307         "offloading: supported, but hardware not accessible".
2308         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2309         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2311 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
2313         PR c/87924
2314         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2315         goacc_wait().
2316         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2317         and related adjustment.
2319 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
2321         PR c++/88988
2322         * testsuite/libgomp.c++/pr88988.C: New test.
2324 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
2326         PR middle-end/89002
2327         * testsuite/libgomp.c/pr89002.c: New test.
2329 2019-01-28  Richard Biener  <rguenther@suse.de>
2331         PR testsuite/89064
2332         PR tree-optimization/86865
2333         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2335 2019-01-24  Tom de Vries  <tdevries@suse.de>
2337         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2338         once instantiated_devices drops to 0.
2340 2019-01-23  Tom de Vries  <tdevries@suse.de>
2342         PR target/PR88946
2343         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2344         cuMemFree.
2345         (nvptx_exec): Don't call map_push if mapnum == 0.
2346         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2348 2019-01-23  Tom de Vries  <tdevries@suse.de>
2350         PR target/88941
2351         PR target/88939
2352         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2353         (map_fini): Remove "assert (!s->map->active)".
2354         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2356 2019-01-23  Tom de Vries  <tdevries@suse.de>
2358         PR target/87835
2359         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2360         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2362 2019-01-15  Tom de Vries  <tdevries@suse.de>
2364         PR target/80547
2365         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2366         New test.
2368 2019-01-12  Tom de Vries  <tdevries@suse.de>
2370         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2371         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2372         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2373         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2375 2019-01-12  Tom de Vries  <tdevries@suse.de>
2377         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2379 2019-01-12  Tom de Vries  <tdevries@suse.de>
2381         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2382         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2383         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2385 2019-01-12  Tom de Vries  <tdevries@suse.de>
2387         PR target/85486
2388         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2389         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2391 2019-01-12  Tom de Vries  <tdevries@suse.de>
2393         PR target/85381
2394         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2395         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2397 2019-01-12  Tom de Vries  <tdevries@suse.de>
2399         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2400         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2401         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2403 2019-01-12  Tom de Vries  <tdevries@suse.de>
2405         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2406         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2407         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2409 2019-01-12  Tom de Vries  <tdevries@suse.de>
2411         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2412         resources diagnostic.
2414 2019-01-12  Tom de Vries  <tdevries@suse.de>
2416         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2417         vector length to be 128.
2418         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2419         length 2097152 to be reduced to 1024 instead of 32.
2421 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
2422             James Norris  <jnorris@codesourcery.com>
2424         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2425         Library Routines", and "Environment Variables".
2427 2019-01-11  Tom de Vries  <tdevries@suse.de>
2429         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2430         num_workers 16.
2432 2019-01-11  Tom de Vries  <tdevries@suse.de>
2434         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2435         -foffload=-w.
2436         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2437         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2438         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2439         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2441 2019-01-11  Tom de Vries  <tdevries@suse.de>
2443         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2444         test.
2446 2019-01-10  Nathan Sidwell  <nathan@acm.org>
2447             Julian Brown  <julian@codesourcery.com>
2449         PR lto/71959
2450         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2451         * testsuite/libgomp.oacc-c++/pr71959.C: New.
2453 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2455         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2456         and paste code.
2458 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2460         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
2461         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2462         write.
2464 2019-01-09  Tom de Vries  <tdevries@suse.de>
2466         PR target/88756
2467         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2468         #define instead of "const int".
2469         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2470         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2471         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2472         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2474 2019-01-09  Tom de Vries  <tdevries@suse.de>
2476         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2477         one worker.
2479 2019-01-07  Tom de Vries  <tdevries@suse.de>
2481         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2482         GOMP_OPENACC_DIM argument.
2484 2019-01-03  Tom de Vries  <tdevries@suse.de>
2486         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2487         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2489 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
2491         Update copyright years.
2493 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
2495         * libgomp.texi: Bump @copying's copyright year.
2497 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
2499         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2500         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2501         (GOACC_declare): Redefine the "device" argument to "flags".
2503 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
2504             Cesar Philippidis  <cesar@codesourcery.com>
2506         * target.c (struct gomp_coalesce_chunk): New structure.
2507         (struct gomp_coalesce_buf): Update the chunks member to use that
2508         type.  Adjust all users.
2510 2018-12-19  Tom de Vries  <tdevries@suse.de>
2512         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2513         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2514         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2516 2018-12-19  Tom de Vries  <tdevries@suse.de>
2518         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2519         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2520         gcc/testsuite/gcc.dg/goacc.
2521         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2523 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
2524             Chung-Lin Tang  <cltang@codesourcery.com>
2526         * oacc-mem.c (acc_present_or_create): Remove definition and change
2527         to alias of acc_create.
2528         (acc_present_or_copyin): Remove definition and change to alias of
2529         acc_copyin.
2530         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2531         of acc_present_or_create.
2532         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2533         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2534         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2535         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2536         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2537         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2538         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2539         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2540         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2541         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2542         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2543         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2544         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2545         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2546         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2547         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2549 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
2551         PR libgomp/88495
2552         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2553         "identical parameters".
2554         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2555         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2557         PR libgomp/88484
2558         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2559         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2561         PR libgomp/88407
2562         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2563         (nvptx_wait_async): Unseen async-argument is a no-op.
2564         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2565         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2566         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2567         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2568         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2569         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2570         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
2571         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2572         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
2574         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2575         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2577 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
2579         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2580         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2581         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2583 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
2585         PR libgomp/88370
2586         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2587         (acc_set_cuda_stream): Clarify.
2588         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2589         "async_valid_p".
2590         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2591         acc_async_sync".
2592         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2593         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2594         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2595         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2597 2018-12-14  Tom de Vries  <tdevries@suse.de>
2599         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2600         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2601         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2602         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2603         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2605 2018-12-13  Tom de Vries  <tdevries@suse.de>
2607         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2608         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2609         * fortran.c (omp_display_affinity_): ... here.
2610         * libgomp.h (gomp_print_string): Declare.
2611         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
2612         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2613         write.
2615 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
2617         PR libgomp/88460
2618         * testsuite/libgomp.c++/for-24.C (results): Include it in
2619         omp declare target region.
2620         (main): Use map (always, tofrom: results) instead of
2621         map (tofrom: results).
2623 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
2625         PR fortran/88463
2626         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2627         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2629         * testsuite/libgomp.c-c++-common/for-16.c: New test.
2631 2018-12-12  Andreas Schwab  <schwab@suse.de>
2633         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2634         clobbered.
2636 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
2638         PR fortran/88411
2639         * testsuite/libgomp.fortran/async_io_8.f90: New test.
2641 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
2642             Jakub Jelinek  <jakub@redhat.com>
2644         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2645         devicep->host2dev_func.
2647 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
2649         PR libgomp/87995
2650         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2651         tls_runtime effective target.
2652         (t): New threadprivate variable.
2653         (main): Set t in threads which execute iterations of the worksharing
2654         loop.  Propagate that to the task after the loop and don't abort
2655         if the current taskgroup hasn't been cancelled.
2657 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
2659         * testsuite/libgomp.c/task-reduction-3.c: New test.
2661         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2663 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
2665         PR libgomp/88288
2666         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2667         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2669 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
2671         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2673 2018-10-19  Richard Biener  <rguenther@suse.de>
2675         PR tree-optimization/88182
2676         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2678 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
2680         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2681         (RUNTEST): Don't define.
2682         (RUNTESTDEFAULTFLAGS): Add.
2683         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2684         (distclean-am): Depend on distclean-DEJAGNU.
2685         (check-am): If -j% option is present in MFLAGS and if
2686         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2687         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2688         * testsuite/Makefile.in: Regenerated.
2690 2018-11-26  Richard Biener  <rguenther@suse.de>
2692         PR tree-optimization/88182
2693         * testsuite/libgomp.c++/pr88182.C: New testcase.
2695 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
2697         PR bootstrap/88106
2698         * config/mingw32/affinity-fmt.c: New file.
2700 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
2702         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2703         (gomp_display_affinity): Use __builtin_choose_expr to handle
2704         properly handle argument having integral, or pointer or some other
2705         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
2706         with uint64_t type instead of %llx and unsigned long long.
2708         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2709         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2711 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2713         * affinity.c: Include <string.h>, <stdio.h>.
2714         (gomp_display_affinity_place): Remove cpusetp.
2715         * teams.c: Include <limits.h>.
2717 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
2719         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2720         in_reduction clause for s[0].
2722         * affinity.c (gomp_display_affinity_place): New function.
2723         * affinity-fmt.c: New file.
2724         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2725         * config/linux/affinity.c (gomp_display_affinity_place): New function.
2726         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2727         Move these functions to ...
2728         * config/nvptx/teams.c: ... here.  New file.
2729         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2730         New functions.
2731         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2732         functions.
2733         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2734         and _aligned_malloc.
2735         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2736         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2737         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2738         gomp_affinity_format_len): New variables.
2739         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2740         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
2741         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2742         modifiers.  Display (non-default) chunk sizes.  Print
2743         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2744         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
2745         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2746         * fortran.c: Include stdio.h and string.h.
2747         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2748         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2749         (omp_set_affinity_format_, omp_get_affinity_format_,
2750         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2751         omp_pause_resource_all_): New functions.
2752         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2753         switch.
2754         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2755         functions to ...
2756         * teams.c: ... here.  New file.
2757         * libgomp_g.h: Include gstdint.h.
2758         (GOMP_loop_nonmonotonic_runtime_start,
2759         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2760         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2761         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2762         GOMP_parallel_loop_nonmonotonic_runtime,
2763         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2764         GOMP_loop_ull_nonmonotonic_runtime_start,
2765         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2766         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2767         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2768         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2769         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2770         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2771         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2772         GOMP_teams_reg): Declare.
2773         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2774         gomp_aligned_alloc uses fallback implementation.
2775         (gomp_aligned_alloc, gomp_aligned_free): Declare.
2776         (enum gomp_schedule_type): Add GFS_MONOTONIC.
2777         (struct gomp_doacross_work_share): Add extra field.
2778         (struct gomp_work_share): Add task_reductions field.
2779         (struct gomp_taskgroup): Add workshare and reductions fields.
2780         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2781         (gomp_thread_handle): New typedef.
2782         (gomp_display_affinity_place, gomp_set_affinity_format,
2783         gomp_display_string, gomp_display_affinity,
2784         gomp_display_affinity_thread): Declare.
2785         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2786         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2787         gomp_workshare_task_reduction_register): Declare.
2788         (gomp_team_start): Add taskgroup argument.
2789         (gomp_pause_host): Declare.
2790         (gomp_init_work_share, gomp_work_share_start): Change bool argument
2791         to size_t.
2792         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2793         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2794         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2795         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2796         GOMP_loop_ull_doacross_start,
2797         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2798         GOMP_loop_maybe_nonmonotonic_runtime_next,
2799         GOMP_loop_maybe_nonmonotonic_runtime_start,
2800         GOMP_loop_nonmonotonic_runtime_next,
2801         GOMP_loop_nonmonotonic_runtime_start,
2802         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2803         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2804         GOMP_loop_ull_nonmonotonic_runtime_next,
2805         GOMP_loop_ull_nonmonotonic_runtime_start,
2806         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2807         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2808         GOMP_taskgroup_reduction_register,
2809         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2810         GOMP_teams_reg and GOMP_taskwait_depend.
2811         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2812         omp_{capture,display}_affinity{,_}, and
2813         omp_[gs]et_affinity_format{,_}.
2814         * loop.c: Include string.h.
2815         (GOMP_loop_runtime_next): Add ialias.
2816         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2817         (gomp_loop_static_start, gomp_loop_dynamic_start,
2818         gomp_loop_guided_start, gomp_loop_ordered_static_start,
2819         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2820         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2821         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2822         or gomp_doacross_init callers.
2823         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2824         GOMP_loop_doacross_start): New functions.
2825         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2826         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2827         Mask off GFS_MONOTONIC bit.
2828         (GOMP_loop_maybe_nonmonotonic_runtime_next,
2829         GOMP_loop_maybe_nonmonotonic_runtime_start,
2830         GOMP_loop_nonmonotonic_runtime_next,
2831         GOMP_loop_nonmonotonic_runtime_start,
2832         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2833         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2834         functions.
2835         (gomp_parallel_loop_start): Pass NULL as taskgroup to
2836         gomp_team_start.
2837         * loop_ull.c: Include string.h.
2838         (GOMP_loop_ull_runtime_next): Add ialias.
2839         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2840         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2841         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2842         gomp_loop_ull_ordered_dynamic_start,
2843         gomp_loop_ull_ordered_guided_start,
2844         gomp_loop_ull_doacross_static_start,
2845         gomp_loop_ull_doacross_dynamic_start,
2846         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2847         and gomp_doacross_ull_init callers.
2848         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2849         GOMP_loop_ull_doacross_start): New functions.
2850         (GOMP_loop_ull_runtime_start,
2851         GOMP_loop_ull_ordered_runtime_start,
2852         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2853         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2854         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2855         GOMP_loop_ull_nonmonotonic_runtime_next,
2856         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2857         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2858         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2859         (omp_pause_resource_t, omp_depend_t): New typedefs.
2860         (enum omp_lock_hint_t): Renamed to ...
2861         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
2862         enumerators using numbers and omp_lock_hint_* as their aliases.
2863         (omp_lock_hint_t): New typedef.  Rename to ...
2864         (omp_sync_hint_t): ... this.
2865         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2866         omp_sync_hint_t instead of omp_lock_hint_t.
2867         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2868         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2869         Declare.
2870         (omp_target_is_present, omp_target_disassociate_ptr):
2871         Change first argument from void * to const void *.
2872         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2873         from void * to const void *.
2874         (omp_target_associate_ptr): Change first and second arguments from
2875         void * to const void *.
2876         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2877         omp_pause_hard): New parameters.
2878         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2879         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2880         New interfaces.
2881         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2882         omp_pause_hard): New parameters.
2883         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2884         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2885         New externals.
2886         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2887         EXTRA argument.  If not needed to prepare array, if extra is 0,
2888         clear ws->doacross, otherwise allocate just doacross structure and
2889         extra payload.  If array is needed, allocate also extra payload.
2890         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2891         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2892         doacross == NULL.
2893         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2894         gomp_team_start.
2895         (GOMP_parallel): Likewise.  Formatting fix.
2896         (GOMP_parallel_reductions): New function.
2897         (GOMP_cancellation_point): If taskgroup has workshare
2898         flag set, check cancelled of prev taskgroup if any.
2899         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2900         on prev taskgroup if any.
2901         * sections.c: Include string.h.
2902         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2903         (GOMP_sections_start): Adjust gomp_work_share_start caller.
2904         (GOMP_sections2_start): New function.
2905         (GOMP_parallel_sections_start, GOMP_parallel_sections):
2906         Pass NULL as taskgroup to gomp_team_start.
2907         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2908         gomp_work_share_start callers.
2909         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2910         If taskgroup has workshare flag set, check cancelled on prev
2911         taskgroup if any.  Guard all cancellation tests with
2912         gomp_cancel_var test.
2913         (omp_target_is_present, omp_target_disassociate_ptr):
2914         Change ptr argument from void * to const void *.
2915         (omp_target_memcpy): Change src argument from void * to const void *.
2916         (omp_target_memcpy_rect): Likewise.
2917         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
2918         instead of char * where needed.
2919         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2920         from void * to const void *.
2921         (omp_pause_resource, omp_pause_resource_all): New functions.
2922         * task.c (gomp_task_handle_depend): Handle new depend array format
2923         in addition to the old.  Handle mutexinoutset kinds the same as
2924         inout for now, handle unspecified kinds.
2925         (gomp_create_target_task): If taskgroup has workshare flag set, check
2926         cancelled on prev taskgroup if any.  Guard all cancellation tests with
2927         gomp_cancel_var test.  Handle new depend array format count in
2928         addition to the old.
2929         (GOMP_task): Likewise.  Adjust function comment.
2930         (gomp_task_run_pre): If taskgroup has workshare flag set, check
2931         cancelled on prev taskgroup if any.  Guard all cancellation tests with
2932         gomp_cancel_var test.
2933         (GOMP_taskwait_depend): New function.
2934         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2935         format in addition to the old.  Handle mutexinoutset kinds the same as
2936         inout for now, handle unspecified kinds.  Fix a function comment typo.
2937         (gomp_taskgroup_init): New function.
2938         (GOMP_taskgroup_start): Use it.
2939         (gomp_reduction_register, gomp_create_artificial_team,
2940         GOMP_taskgroup_reduction_register,
2941         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2942         gomp_parallel_reduction_register,
2943         gomp_workshare_task_reduction_register,
2944         gomp_workshare_taskgroup_start,
2945         GOMP_workshare_task_reduction_unregister): New functions.
2946         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2947         check cancelled on prev taskgroup if any.  Guard all cancellation
2948         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
2949         by calling GOMP_taskgroup_reduction_register.
2950         * team.c (gomp_thread_attr): Remove comment.
2951         (struct gomp_thread_start_data): Add handle field.
2952         (gomp_thread_start): Call pthread_detach.
2953         (gomp_new_team): Adjust gomp_init_work_share caller.
2954         (gomp_free_pool_helper): Call pthread_detach.
2955         (gomp_team_start): Add taskgroup argument, initialize implicit
2956         tasks' taskgroup field to that.  Don't call
2957         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
2958         (gomp_team_end): Determine nesting by thr->ts.level != 0
2959         rather than thr->ts.team != NULL.
2960         (gomp_pause_pool_helper, gomp_pause_host): New functions.
2961         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2962         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2963         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2964         if more than 1 allocate also extra payload at the end of array.  Never
2965         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2966         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2967         return true instead of ws.
2968         * Makefile.in: Regenerated.
2969         * configure: Regenerated.
2970         * config.h.in: Regenerated.
2971         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2972         in some cases.
2973         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2974         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2975         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2976         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2977         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2978         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2979         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2980         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2981         * testsuite/libgomp.c-c++-common/for-10.c: New test.
2982         * testsuite/libgomp.c-c++-common/for-11.c: New test.
2983         * testsuite/libgomp.c-c++-common/for-12.c: New test.
2984         * testsuite/libgomp.c-c++-common/for-13.c: New test.
2985         * testsuite/libgomp.c-c++-common/for-14.c: New test.
2986         * testsuite/libgomp.c-c++-common/for-15.c: New test.
2987         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2988         define a different N(test), don't define N(f0) to N(f14), but instead
2989         define N(f20) to N(f34) using != comparisons.
2990         * testsuite/libgomp.c-c++-common/for-7.c: New test.
2991         * testsuite/libgomp.c-c++-common/for-8.c: New test.
2992         * testsuite/libgomp.c-c++-common/for-9.c: New test.
2993         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2994         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2995         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2996         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2997         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2998         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2999         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
3000         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
3001         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
3002         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
3003         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
3004         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
3005         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
3006         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
3007         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
3008         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
3009         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
3010         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
3011         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
3012         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
3013         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
3014         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
3015         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
3016         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
3017         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
3018         * testsuite/libgomp.c++/depend-1.C: New test.
3019         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
3020         * testsuite/libgomp.c++/depobj-1.C: New test.
3021         * testsuite/libgomp.c++/for-16.C: New test.
3022         * testsuite/libgomp.c++/for-21.C: New test.
3023         * testsuite/libgomp.c++/for-22.C: New test.
3024         * testsuite/libgomp.c++/for-23.C: New test.
3025         * testsuite/libgomp.c++/for-24.C: New test.
3026         * testsuite/libgomp.c++/for-25.C: New test.
3027         * testsuite/libgomp.c++/for-26.C: New test.
3028         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
3029         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
3030         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
3031         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
3032         * testsuite/libgomp.c++/task-reduction-10.C: New test.
3033         * testsuite/libgomp.c++/task-reduction-11.C: New test.
3034         * testsuite/libgomp.c++/task-reduction-12.C: New test.
3035         * testsuite/libgomp.c++/task-reduction-13.C: New test.
3036         * testsuite/libgomp.c++/task-reduction-14.C: New test.
3037         * testsuite/libgomp.c++/task-reduction-15.C: New test.
3038         * testsuite/libgomp.c++/task-reduction-16.C: New test.
3039         * testsuite/libgomp.c++/task-reduction-17.C: New test.
3040         * testsuite/libgomp.c++/task-reduction-18.C: New test.
3041         * testsuite/libgomp.c++/task-reduction-19.C: New test.
3042         * testsuite/libgomp.c/task-reduction-1.c: New test.
3043         * testsuite/libgomp.c++/task-reduction-1.C: New test.
3044         * testsuite/libgomp.c/task-reduction-2.c: New test.
3045         * testsuite/libgomp.c++/task-reduction-2.C: New test.
3046         * testsuite/libgomp.c++/task-reduction-3.C: New test.
3047         * testsuite/libgomp.c++/task-reduction-4.C: New test.
3048         * testsuite/libgomp.c++/task-reduction-5.C: New test.
3049         * testsuite/libgomp.c++/task-reduction-6.C: New test.
3050         * testsuite/libgomp.c++/task-reduction-7.C: New test.
3051         * testsuite/libgomp.c++/task-reduction-8.C: New test.
3052         * testsuite/libgomp.c++/task-reduction-9.C: New test.
3053         * testsuite/libgomp.c/teams-1.c: New test.
3054         * testsuite/libgomp.c/teams-2.c: New test.
3055         * testsuite/libgomp.c/thread-limit-4.c: New test.
3056         * testsuite/libgomp.c/thread-limit-5.c: New test.
3057         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
3059 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
3061         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
3062         acc_memcpy_to/from_device functions, now with async parameter.
3063         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
3064         (acc_memcpy_from_device): Likewise.
3065         (acc_memcpy_to_device_async): New API function.
3066         (acc_memcpy_from_device_async): Likewise.
3067         (present_create_copy): Add async parameter and async setting/unsetting.
3068         (acc_create): Adjust present_create_copy call.
3069         (acc_copyin): Likewise.
3070         (acc_present_or_create): Likewise.
3071         (acc_present_or_copyin): Likewise.
3072         (acc_create_async): New API function.
3073         (acc_copyin_async): New API function.
3074         (delete_copyout): Add async parameter and async setting/unsetting.
3075         (acc_delete): Adjust delete_copyout call.
3076         (acc_copyout): Likewise.
3077         (acc_delete_async): New API function.
3078         (acc_copyout_async): Likewise.
3079         (update_dev_host): Add async parameter and async setting/unsetting.
3080         (acc_update_device): Adjust update_dev_host call.
3081         (acc_update_self): Likewise.
3082         (acc_update_device_async): New API function.
3083         (acc_update_self_async): Likewise.
3084         * openacc.h (acc_copyin_async): Declare new API function.
3085         (acc_create_async): Likewise.
3086         (acc_copyout_async): Likewise.
3087         (acc_delete_async): Likewise.
3088         (acc_update_device_async): Likewise.
3089         (acc_update_self_async): Likewise.
3090         (acc_memcpy_to_device_async): Likewise.
3091         (acc_memcpy_from_device_async): Likewise.
3092         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
3093         (acc_copyin_async_64_h): New subroutine.
3094         (acc_copyin_async_array_h): New subroutine.
3095         (acc_create_async_32_h): New subroutine.
3096         (acc_create_async_64_h): New subroutine.
3097         (acc_create_async_array_h): New subroutine.
3098         (acc_copyout_async_32_h): New subroutine.
3099         (acc_copyout_async_64_h): New subroutine.
3100         (acc_copyout_async_array_h): New subroutine.
3101         (acc_delete_async_32_h): New subroutine.
3102         (acc_delete_async_64_h): New subroutine.
3103         (acc_delete_async_array_h): New subroutine.
3104         (acc_update_device_async_32_h): New subroutine.
3105         (acc_update_device_async_64_h): New subroutine.
3106         (acc_update_device_async_array_h): New subroutine.
3107         (acc_update_self_async_32_h): New subroutine.
3108         (acc_update_self_async_64_h): New subroutine.
3109         (acc_update_self_async_array_h): New subroutine.
3110         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
3111         (acc_copyin_async_64_h): New subroutine.
3112         (acc_copyin_async_array_h): New subroutine.
3113         (acc_create_async_32_h): New subroutine.
3114         (acc_create_async_64_h): New subroutine.
3115         (acc_create_async_array_h): New subroutine.
3116         (acc_copyout_async_32_h): New subroutine.
3117         (acc_copyout_async_64_h): New subroutine.
3118         (acc_copyout_async_array_h): New subroutine.
3119         (acc_delete_async_32_h): New subroutine.
3120         (acc_delete_async_64_h): New subroutine.
3121         (acc_delete_async_array_h): New subroutine.
3122         (acc_update_device_async_32_h): New subroutine.
3123         (acc_update_device_async_64_h): New subroutine.
3124         (acc_update_device_async_array_h): New subroutine.
3125         (acc_update_self_async_32_h): New subroutine.
3126         (acc_update_self_async_64_h): New subroutine.
3127         (acc_update_self_async_array_h): New subroutine.
3128         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
3129         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
3130         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
3131         acc_memcpy_to_device_async*, acc_update_device_async*, and
3132         acc_update_self_async* entries.
3133         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
3134         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
3135         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
3137 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
3139         PR bootstrap/82856
3140         * Makefile.am: Include multilib.am
3141         (AUTOMAKE_OPTIONS): Add info-in-builddir.
3142         (CLEANFILES): Remove libgomp.info.
3143         * configure.ac: Remove AC_PREREQ.
3144         * testsuite/Makefile.am (RUNTEST): Remove quotes.
3145         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
3146         Regenerate.
3148 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
3149             Julian Brown  <julian@codesourcery.com>
3151         * testsuite/libgomp.oacc-c++/this.C: New.
3153 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
3155         * plugin/plugin-nvptx.c (struct cuda_map): New.
3156         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
3157         h_tail with (cuda_map *) map.
3158         (cuda_map_create): New function.
3159         (cuda_map_destroy): New function.
3160         (map_init): Update to use a linked list of cuda_map objects.
3161         (map_fini): Likewise.
3162         (map_pop): Likewise.
3163         (map_push): Likewise.  Return CUdeviceptr instead of void.
3164         (init_streams_for_device): Remove stales references to ptx_stream
3165         members.
3166         (select_stream_for_async): Likewise.
3167         (nvptx_exec): Update call to map_init.
3169 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
3170             Julian Brown  <julian@codesourcery.com>
3172         PR middle-end/86336
3173         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
3175 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
3176         Thomas Koenig <tkoenig@gcc.gnu.org>
3178         PR fortran/25829
3179         * testsuite/libgomp.fortran/async_io_1.f90: New test.
3180         * testsuite/libgomp.fortran/async_io_2.f90: New test.
3181         * testsuite/libgomp.fortran/async_io_3.f90: New test.
3182         * testsuite/libgomp.fortran/async_io_4.f90: New test.
3183         * testsuite/libgomp.fortran/async_io_5.f90: New test.
3184         * testsuite/libgomp.fortran/async_io_6.f90: New test.
3185         * testsuite/libgomp.fortran/async_io_7.f90: New test.
3187 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
3188             Tom de Vries  <tdevries@suse.de>
3190         PR target/85590
3191         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3192         (cuOccupancyMaxPotentialBlockSize): Declare.
3193         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3194         CUDA_ONE_CALL_MAYBE_NULL.
3195         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3196         CUoccupancyB2DSize and declare
3197         cuOccupancyMaxPotentialBlockSize.
3198         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3199         default num_gangs and num_workers when the driver supports it.
3201 2018-08-08  Tom de Vries  <tdevries@suse.de>
3203         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3204         CUDA_ONE_CALL_MAYBE_NULL.
3205         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3206         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3207         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3208         are not found.
3210 2018-08-08  Tom de Vries  <tdevries@suse.de>
3212         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3213         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3214         present.
3216 2018-08-08  Tom de Vries  <tdevries@suse.de>
3218         * plugin/plugin-nvptx.c
3219         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3220         (nvptx_open_device): Use
3221         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3223 2018-08-08  Tom de Vries  <tdevries@suse.de>
3225         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3226         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
3228 2018-08-07  Tom de Vries  <tdevries@suse.de>
3230         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3231         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3232         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
3233         corresponding call in CUDA_ONE_CALL.  Add def/undef of
3234         CUDA_ONE_CALL_MAYBE_NULL.
3235         (CUDA_CALL_EXISTS): Define.
3237 2018-08-07  Tom de Vries  <tdevries@suse.de>
3239         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3240         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3241         corresponding undefs right after.
3243 2018-08-04  Tom de Vries  <tdevries@suse.de>
3245         * plugin/configfrag.ac: For --without-cuda-driver, set
3246         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
3247         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3248         * configure: Regenerate.
3250 2018-08-02  Tom de Vries  <tdevries@suse.de>
3252         PR target/86660
3253         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3254         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3255         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3256         Same.
3257         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3258         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3259         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3261 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
3262             Thomas Schwinge <thomas@codesourcery.com>
3264         * config/nvptx/oacc-parallel.c: Truncate.
3266 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
3267             James Norris <jnorris@codesourcery.com>
3269         * plugin/plugin-nvptx.c (struct map): Removed.
3270         (map_init, map_pop): Remove use of struct map.
3271         (map_push): Likewise and change argument list.
3272         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3274 2018-08-01  Tom de Vries  <tdevries@suse.de>
3276         * plugin/cuda-lib.def: New file.  Factor out of ...
3277         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3278         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3279         using CUDA_CALLS.
3281 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3283         Revert 'AsyncI/O patch committed'.
3284         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
3285                 Thomas Koenig <tkoenig@gcc.gnu.org>
3287         PR fortran/25829
3288         * testsuite/libgomp.fortran/async_io_1.f90: New test.
3289         * testsuite/libgomp.fortran/async_io_2.f90: New test.
3290         * testsuite/libgomp.fortran/async_io_3.f90: New test.
3291         * testsuite/libgomp.fortran/async_io_4.f90: New test.
3292         * testsuite/libgomp.fortran/async_io_5.f90: New test.
3293         * testsuite/libgomp.fortran/async_io_6.f90: New test.
3294         * testsuite/libgomp.fortran/async_io_7.f90: New test.
3296 2018-07-30  Tom de Vries  <tdevries@suse.de>
3298         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3299         (nvptx_exec): Ensure worker and vector default dims don't exceed
3300         targ_fn->max_threads_per_block.
3302 2018-07-30  Tom de Vries  <tdevries@suse.de>
3304         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3305         (nvptx_open_device): Init default_dims for device.
3306         (nvptx_exec): Use default_dims from device.
3308 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
3310         PR testsuite/86660
3311         * testsuite/libgomp.c++/for-15.C (results): Include it in
3312         omp declare target region.
3313         (main): Use map (always, tofrom: results) instead of
3314         map (tofrom: results).
3316         PR middle-end/86660
3317         * testsuite/libgomp.c/pr86660.c: New test.
3319 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
3320             Tom de Vries  <tdevries@suse.de>
3322         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3323         sufficient resources to launch a kernel, and give a hint on how to fix
3324         it.
3326 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
3327             Tom de Vries  <tdevries@suse.de>
3329         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3330         max_threads_per_block and max_threads_per_multiprocessor fields.
3331         (nvptx_open_device): Initialize new fields.
3332         (nvptx_exec): Use num_sms, and new fields.
3334 2018-07-26  Tom de Vries  <tdevries@suse.de>
3336         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3337         to correct locations.  Remove xfail.
3339 2018-07-26  Tom de Vries  <tdevries@suse.de>
3341         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3342         acc_wait.  Move acc_async_test calls to correct locations.  Remove
3343         xfail.
3345 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
3346         Thomas Koenig <tkoenig@gcc.gnu.org>
3348         PR fortran/25829
3349         * testsuite/libgomp.fortran/async_io_1.f90: New test.
3350         * testsuite/libgomp.fortran/async_io_2.f90: New test.
3351         * testsuite/libgomp.fortran/async_io_3.f90: New test.
3352         * testsuite/libgomp.fortran/async_io_4.f90: New test.
3353         * testsuite/libgomp.fortran/async_io_5.f90: New test.
3354         * testsuite/libgomp.fortran/async_io_6.f90: New test.
3355         * testsuite/libgomp.fortran/async_io_7.f90: New test.
3357 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
3359         PR middle-end/86542
3360         * testsuite/libgomp.c++/pr86542.C: New test.
3362         PR middle-end/86539
3363         * testsuite/libgomp.c++/pr86539.C: New test.
3365 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
3367         PR c++/86443
3368         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3369         (results): Make sure the variable is not inside declare target region.
3370         (qux): Remove unused function.
3372 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
3374         PR c++/86443
3375         * testsuite/libgomp.c++/for-15.C: New test.
3377 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
3379         PR c++/86291
3380         * testsuite/libgomp.c++/pr86291.C: New test.
3382 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
3384         * libgomp.texi (Top): Move www.openmp.org to https.
3385         (Enabling OpenMP): Ditto.
3386         (omp_get_active_level): Ditto.
3387         (omp_get_ancestor_thread_num): Ditto.
3388         (omp_get_cancellation): Ditto.
3389         (omp_get_default_device): Ditto.
3390         (omp_get_dynamic): Ditto.
3391         (omp_get_level): Ditto.
3392         (omp_get_max_active_levels): Ditto.
3393         (omp_get_max_task_priority): Ditto.
3394         (omp_get_max_threads): Ditto.
3395         (omp_get_nested): Ditto.
3396         (omp_get_num_devices): Ditto.
3397         (omp_get_num_procs): Ditto.
3398         (omp_get_num_teams): Ditto.
3399         (omp_get_num_threads): Ditto.
3400         (omp_get_proc_bind): Ditto.
3401         (omp_get_schedule): Ditto.
3402         (omp_get_team_num): Ditto.
3403         (omp_get_team_size): Ditto.
3404         (omp_get_thread_limit): Ditto.
3405         (omp_get_thread_num): Ditto.
3406         (omp_in_parallel): Ditto.
3407         (omp_in_final): Ditto.
3408         (omp_is_initial_device): Ditto.
3409         (omp_set_default_device): Ditto.
3410         (omp_set_dynamic): Ditto.
3411         (omp_set_max_active_levels): Ditto.
3412         (omp_set_nested): Ditto.
3413         (omp_set_num_threads): Ditto.
3414         (omp_set_schedule): Ditto.
3415         (omp_init_lock): Ditto.
3416         (omp_set_lock): Ditto.
3417         (omp_test_lock): Ditto.
3418         (omp_unset_lock): Ditto.
3419         (omp_destroy_lock): Ditto.
3420         (omp_init_nest_lock): Ditto.
3421         (omp_set_nest_lock): Ditto.
3422         (omp_test_nest_lock): Ditto.
3423         (omp_unset_nest_lock): Ditto.
3424         (omp_destroy_nest_lock): Ditto.
3425         (omp_get_wtick): Ditto.
3426         (omp_get_wtime): Ditto.
3427         (OMP_CANCELLATION): Ditto.
3428         (OMP_DISPLAY_ENV): Ditto.
3429         (OMP_DEFAULT_DEVICE): Ditto.
3430         (OMP_DYNAMIC): Ditto.
3431         (OMP_MAX_ACTIVE_LEVELS): Ditto.
3432         (OMP_MAX_TASK_PRIORITY): Ditto.
3433         (OMP_NESTED): Ditto.
3434         (OMP_NUM_THREADS): Ditto.
3435         (OMP_PROC_BIND): Ditto.
3436         (OMP_PLACES): Ditto.
3437         (OMP_STACKSIZE): Ditto.
3438         (OMP_SCHEDULE): Ditto.
3439         (OMP_THREAD_LIMIT): Ditto.
3440         (OMP_WAIT_POLICY): Ditto.
3442 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
3443             James Norris  <jnorris@codesourcery.com>
3444             Julian Brown  <julian@codesourcery.com>
3445             Thomas Schwinge  <thomas@codesourcery.com>
3446             Tom de Vries  <tom@codesourcery.com>
3448         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3449         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3450         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3451         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3452         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3453         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3454         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3455         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3456         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3457         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3458         Likewise.
3459         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3460         Likewise.
3461         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3462         Likewise.
3463         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3464         Likewise.
3465         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3466         Likewise.
3467         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3468         Likewise.
3469         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3470         Likewise.
3471         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3472         Likewise.
3473         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3474         Likewise.
3475         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3476         Likewise.
3477         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3478         Likewise.
3479         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3480         Likewise.
3481         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3482         Likewise.
3483         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3484         Likewise.
3485         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3486         Likewise.
3487         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3488         Likewise.
3489         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3490         Likewise.
3491         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3492         Likewise.
3493         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3494         Likewise.
3495         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3496         Likewise.
3497         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3498         Likewise.
3499         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3500         Likewise.
3501         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3502         Likewise.
3503         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3504         Likewise.
3505         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3506         Likewise.
3507         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3508         Likewise.
3509         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3510         Likewise.
3511         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3512         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3513         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3514         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3515         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3516         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3517         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3518         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3519         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3520         Likewise.
3521         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3522         Likewise.
3523         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3524         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3525         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3526         Likewise.
3527         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3528         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3529         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3530         Likewise.
3531         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3532         Likewise.
3533         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3534         Likewise.
3535         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3536         Likewise.
3537         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3538         Likewise.
3539         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3540         Likewise.
3541         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3542         Likewise.
3543         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3544         Likewise.
3545         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3546         Likewise.
3547         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3548         Likewise.
3549         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3550         Likewise.
3551         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3552         Likewise.
3553         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3554         Likewise.
3555         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3556         Likewise.
3557         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3558         Likewise.
3559         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3560         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3561         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3562         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3563         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3564         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3565         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3567 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
3568             Thomas Schwinge <thomas@codesourcery.com>
3569             Cesar Philippidis  <cesar@codesourcery.com>
3571         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3572         (gomp_acc_remove_pointer): Update declaration.
3573         (gomp_acc_declare_allocate): Declare.
3574         (gomp_remove_var): Declare.
3575         * libgomp.map (OACC_2.5): Define.
3576         * oacc-mem.c (acc_map_data): Update refcount.
3577         (acc_unmap_data): Likewise.
3578         (present_create_copy): Likewise.
3579         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3580         (acc_copyin): Likewise.
3581         (FLAG_FINALIZE): Define.
3582         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3583         (acc_delete_finalize): New function.
3584         (acc_delete_finalize_async): New function.
3585         (acc_copyout_finalize): New function.
3586         (acc_copyout_finalize_async): New function.
3587         (gomp_acc_insert_pointer): Update refcounts.
3588         (gomp_acc_remove_pointer): Return if data is not present on the
3589         accelerator.
3590         * oacc-parallel.c (find_pset): Rename to find_pointer.
3591         (find_pointer): Add support for GOMP_MAP_POINTER.
3592         (handle_ftn_pointers): New function.
3593         (GOACC_parallel_keyed): Update refcounts of variables.
3594         (GOACC_enter_exit_data): Add support for finalized data mappings.
3595         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3596         of fortran arrays.
3597         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3598         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3599         for GOMP_MAP_FORCE_FROM.
3600         * openacc.f90 (module openacc_internal): Add
3601         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3602         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3603         acc_copyout_finalize and acc_delete_finalize.
3604         (acc_copyout_finalize_32_h): New subroutine.
3605         (acc_copyout_finalize_64_h): New subroutine.
3606         (acc_copyout_finalize_array_h): New subroutine.
3607         (acc_delete_finalize_32_h): New subroutine.
3608         (acc_delete_finalize_64_h): New subroutine.
3609         (acc_delete_finalize_array_h): New subroutine.
3610         * openacc.h (acc_copyout_finalize): Declare.
3611         (acc_copyout_finalize_async): Declare.
3612         (acc_delete_finalize): Declare.
3613         (acc_delete_finalize_async): Declare.
3614         * openacc_lib.h (acc_copyout_finalize): New interface.
3615         (acc_delete_finalize): New interface.
3616         * target.c (gomp_map_vars): Update dynamic_refcount.
3617         (gomp_remove_var): New function.
3618         (gomp_unmap_vars): Use it.
3619         (gomp_unload_image_from_device): Likewise.
3620         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3621         case to utilize OpenACC 2.5 data clause semantics.
3622         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3623         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3624         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3625         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3626         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3627         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3628         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3629         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3630         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3631         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3632         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3633         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3634         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3635         utilize OpenACC 2.5 data clause semantics.
3636         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3637         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3638         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3639         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3640         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3641         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3642         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3643         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3644         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3646 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
3648         PR fortran/85841
3649         PR testsuite/85865
3650         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3651         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3652         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3653         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3654         * testsuite/libgomp.fortran/task2.f90: Ditto.
3655         * testsuite/libgomp.fortran/vla1.f90: Ditto.
3656         * testsuite/libgomp.fortran/vla2.f90: Ditto.
3657         * testsuite/libgomp.fortran/vla3.f90: Ditto.
3658         * testsuite/libgomp.fortran/vla4.f90: Ditto.
3659         * testsuite/libgomp.fortran/vla5.f90: Ditto.
3660         * testsuite/libgomp.fortran/vla6.f90: Ditto.
3661         * testsuite/libgomp.fortran/vla8.f90: Ditto.
3662         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3663         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3665 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
3667         PR c++/85782
3668         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3670 2018-05-09  Tom de Vries  <tom@codesourcery.com>
3672         PR libgomp/82901
3673         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3674         to GOACC_enter_exit_data.
3676 2018-05-09  Tom de Vries  <tom@codesourcery.com>
3678         PR libgomp/83792
3679         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3680         (async_synchronous_p): New function.
3681         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3682         async_valid_p.
3683         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3684         async_valid_stream_id_p.
3685         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3686         * oacc-parallel.c (GOACC_parallel_keyed): Same.
3688 2018-05-07  Tom de Vries  <tom@codesourcery.com>
3690         PR testsuite/85677
3691         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3692         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3694 2018-05-03  Tom de Vries  <tom@codesourcery.com>
3696         PR testsuite/85106
3697         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3698         extra_tool_flags if it contains an -foffload=-fdump-* flag.
3699         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3700         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3702 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3704         PR libgomp/85411
3705         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3706         GOMP_OPENACC_DIM ...
3707         * env.c (parse_gomp_openacc_dim): ... here.  New function.
3708         (initialize_env): Call parse_gomp_openacc_dim.
3709         (goacc_default_dims): Define.
3710         * libgomp.h (goacc_default_dims): Declare.
3711         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3712         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3713         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3714         GOMP_PLUGIN_acc_default_dim.
3715         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3716         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3718 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3720         PR testsuite/83791
3721         * testsuite/libgomp.c++/udr-9.C: Update.
3722         * testsuite/libgomp.c++/atomic-16.C: Remove.
3723         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3724         * testsuite/libgomp.c++/loop-13.C: Remove.
3725         * testsuite/libgomp.c++/loop-14.C: Remove.
3726         * testsuite/libgomp.c++/loop-15.C: Remove.
3727         * testsuite/libgomp.c++/monotonic-1.C: Remove.
3728         * testsuite/libgomp.c++/monotonic-2.C: Remove.
3729         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3730         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3731         * testsuite/libgomp.c++/ordered-1.C: Remove.
3732         * testsuite/libgomp.c++/pr45784.C: Remove.
3733         * testsuite/libgomp.c++/pr64824.C: Remove.
3734         * testsuite/libgomp.c++/pr64868.C: Remove.
3735         * testsuite/libgomp.c++/pr66199-1.C: Remove.
3736         * testsuite/libgomp.c++/pr66199-2.C: Remove.
3737         * testsuite/libgomp.c++/pr66199-3.C: Remove.
3738         * testsuite/libgomp.c++/pr66199-4.C: Remove.
3739         * testsuite/libgomp.c++/pr66199-5.C: Remove.
3740         * testsuite/libgomp.c++/pr66199-6.C: Remove.
3741         * testsuite/libgomp.c++/pr66199-7.C: Remove.
3742         * testsuite/libgomp.c++/pr66199-8.C: Remove.
3743         * testsuite/libgomp.c++/pr66199-9.C: Remove.
3744         * testsuite/libgomp.c++/pr69389.C: Remove.
3745         * testsuite/libgomp.c++/simd10.C: Remove.
3746         * testsuite/libgomp.c++/simd11.C: Remove.
3747         * testsuite/libgomp.c++/simd12.C: Remove.
3748         * testsuite/libgomp.c++/simd13.C: Remove.
3749         * testsuite/libgomp.c++/target-1.C: Remove.
3750         * testsuite/libgomp.c++/target-3.C: Remove.
3751         * testsuite/libgomp.c++/target-4.C: Remove.
3752         * testsuite/libgomp.c++/target-5.C: Remove.
3753         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3754         * testsuite/libgomp.c++/taskloop-1.C: Remove.
3755         * testsuite/libgomp.c++/taskloop-2.C: Remove.
3756         * testsuite/libgomp.c++/taskloop-3.C: Remove.
3757         * testsuite/libgomp.c++/taskloop-4.C: Remove.
3758         * testsuite/libgomp.c++/udr-9.C: Remove.
3759         * testsuite/libgomp.c++/for-10.C: Remove.
3760         * testsuite/libgomp.c++/for-11.C: Remove.
3761         * testsuite/libgomp.c++/for-12.C: Remove.
3762         * testsuite/libgomp.c++/for-13.C: Remove.
3763         * testsuite/libgomp.c++/for-14.C: Remove.
3764         * testsuite/libgomp.c++/for-9.C: Remove.
3765         * testsuite/libgomp.c/atomic-18.c: Move ...
3766         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3767         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3768         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3769         * testsuite/libgomp.c/loop-13.c: Move ...
3770         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3771         * testsuite/libgomp.c/loop-14.c: Move ...
3772         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3773         * testsuite/libgomp.c/loop-15.c: Remove.
3774         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3775         * testsuite/libgomp.c/monotonic-1.c: Move ...
3776         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3777         * testsuite/libgomp.c/monotonic-2.c: Move ...
3778         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3779         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3780         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3781         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3782         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3783         * testsuite/libgomp.c/ordered-4.c: Move ...
3784         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3785         * testsuite/libgomp.c/pr45784.c: Move ...
3786         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3787         * testsuite/libgomp.c/pr64824.c: Move ...
3788         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3789         * testsuite/libgomp.c/pr64868.c: Move ...
3790         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3791         * testsuite/libgomp.c/pr66199-1.c: Move ...
3792         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3793         * testsuite/libgomp.c/pr66199-2.c: Move ...
3794         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3795         * testsuite/libgomp.c/pr66199-3.c: Move ...
3796         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3797         * testsuite/libgomp.c/pr66199-4.c: Move ...
3798         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3799         * testsuite/libgomp.c/pr66199-5.c: Move ...
3800         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3801         * testsuite/libgomp.c/pr66199-6.c: Move ...
3802         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3803         * testsuite/libgomp.c/pr66199-7.c: Move ...
3804         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3805         * testsuite/libgomp.c/pr66199-8.c: Move ...
3806         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3807         * testsuite/libgomp.c/pr66199-9.c: Move ...
3808         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3809         * testsuite/libgomp.c/pr69389.c: Move ...
3810         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3811         * testsuite/libgomp.c/simd-14.c: Move ...
3812         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3813         * testsuite/libgomp.c/simd-15.c: Move ...
3814         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3815         * testsuite/libgomp.c/simd-16.c: Move ...
3816         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3817         * testsuite/libgomp.c/simd-17.c: Move ...
3818         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3819         * testsuite/libgomp.c/target-1.c: Move ...
3820         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3821         * testsuite/libgomp.c/target-10.c: Move ...
3822         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3823         * testsuite/libgomp.c/target-13.c: Move ...
3824         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3825         * testsuite/libgomp.c/target-2.c: Move ...
3826         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3827         * testsuite/libgomp.c/taskgroup-1.c: Move ...
3828         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3829         * testsuite/libgomp.c/taskloop-1.c: Move ...
3830         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3831         * testsuite/libgomp.c/taskloop-2.c: Move ...
3832         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3833         * testsuite/libgomp.c/taskloop-3.c: Move ...
3834         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3835         * testsuite/libgomp.c/taskloop-4.c: Move ...
3836         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3837         * testsuite/libgomp.c/udr-1.c: Move ...
3838         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3839         * testsuite/libgomp.c/for-1.c: Move ...
3840         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3841         * testsuite/libgomp.c/for-1.h: Move ...
3842         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3843         * testsuite/libgomp.c/for-2.c: Move ...
3844         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3845         * testsuite/libgomp.c/for-2.h: Move ...
3846         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3847         * testsuite/libgomp.c/for-3.c: Move ...
3848         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3849         * testsuite/libgomp.c/for-4.c: Move ...
3850         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3851         * testsuite/libgomp.c/for-5.c: Move ...
3852         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3853         * testsuite/libgomp.c/for-6.c: Move ...
3854         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3856 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3858         PR libgomp/82428
3859         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3860         __builtin_goacc_parlevel_{id,size}.
3861         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3862         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3863         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3864         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3865         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3866         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3867         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3868         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3869         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3870         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3871         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3872         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3873         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3874         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3875         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3876         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3877         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3878         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3879         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3880         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3881         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3882         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3883         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3885 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3887         PR testsuite/85106
3888         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3890 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3892         PR testsuite/85106
3893         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3895 2018-04-29  Julian Brown  <julian@codesourcery.com>
3896             Tom de Vries  <tom@codesourcery.com>
3898         PR testsuite/85527
3899         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3900         arbitrary order for iterations of atomic subtract check.
3902 2018-04-28  Tom de Vries  <tom@codesourcery.com>
3904         PR testsuite/85527
3905         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3906         atomic capture results obtained in parallel loop to an array, instead of
3907         to a scalar.
3909 2018-04-26  Tom de Vries  <tom@codesourcery.com>
3911         PR libgomp/84020
3912         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3913         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3914         (process_GOMP_NVPTX_JIT): New function.
3915         (link_ptx): Use process_GOMP_NVPTX_JIT.
3917 2018-04-26  Richard Biener <rguenther@suse.de>
3918             Tom de Vries  <tom@codesourcery.com>
3920         PR lto/85422
3921         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3923 2018-04-26  Tom de Vries  <tom@codesourcery.com>
3925         PR target/85519
3926         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3927         recursion depth from 25 to 23.
3928         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3930 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
3932         * configure: Regenerated.
3934 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
3935             Tom de Vries  <tom@codesourcery.com>
3937         PR target/85445
3938         * testsuite/libgomp.oacc-c++/ref-1.C: New.
3940 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
3942         PR libgomp/85463
3943         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3944         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3945         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3946         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3947         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3948         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3950         PR libfortran/85166
3951         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3952         abort".
3953         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3955 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
3957         * configure: Regenerated.
3959 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
3961         PR jit/85384
3962         * configure: Regenerate.
3964 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
3965             Tom de Vries  <tom@codesourcery.com>
3967         PR middle-end/84955
3968         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3969         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3971 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
3973         PR fortran/83064
3974         PR testsuite/85346
3975         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3976         test from gfortran.dg to here.
3978 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
3980         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3981         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3983 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
3985         PR middle-end/84955
3986         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3987         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3989 2018-04-05  Tom de Vries  <tom@codesourcery.com>
3991         PR target/85204
3992         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3994 2018-03-26  Tom de Vries  <tom@codesourcery.com>
3996         PR tree-optimization/85063
3997         * testsuite/libgomp.c/switch-conversion-2.c: New test.
3998         * testsuite/libgomp.c/switch-conversion.c: New test.
3999         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
4000         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
4002 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
4004         PR fortran/84381
4005         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
4006         call abort by STOP n.
4007         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
4008         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
4009         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
4010         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
4011         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
4012         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
4013         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
4014         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
4015         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
4016         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
4017         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
4018         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
4019         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
4020         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
4021         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
4022         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
4023         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
4024         * testsuite/libgomp.fortran/associate1.f90: Likewise.
4025         * testsuite/libgomp.fortran/associate2.f90: Likewise.
4026         * testsuite/libgomp.fortran/associate3.f90: Likewise.
4027         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
4028         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
4029         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
4030         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
4031         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
4032         * testsuite/libgomp.fortran/character1.f90: Likewise.
4033         * testsuite/libgomp.fortran/character2.f90: Likewise.
4034         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
4035         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
4036         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
4037         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
4038         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
4039         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
4040         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
4041         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
4042         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
4043         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
4044         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
4045         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
4046         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
4047         * testsuite/libgomp.fortran/do1.f90: Likewise.
4048         * testsuite/libgomp.fortran/do2.f90: Likewise.
4049         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
4050         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
4051         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
4052         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
4053         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
4054         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
4055         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4056         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
4057         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
4058         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
4059         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
4060         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
4061         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4062         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
4063         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
4064         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
4065         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
4066         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
4067         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
4068         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
4069         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
4070         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
4071         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
4072         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
4073         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
4074         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
4075         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
4076         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4077         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
4078         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
4079         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
4080         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
4081         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
4082         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4083         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4084         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
4085         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
4086         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
4087         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
4088         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
4089         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
4090         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
4091         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
4092         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
4093         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4094         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
4095         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
4096         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
4097         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
4098         * testsuite/libgomp.fortran/lib1.f90: Likewise.
4099         * testsuite/libgomp.fortran/lib2.f: Likewise.
4100         * testsuite/libgomp.fortran/lib3.f: Likewise.
4101         * testsuite/libgomp.fortran/lib4.f90: Likewise.
4102         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
4103         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
4104         * testsuite/libgomp.fortran/nested1.f90: Likewise.
4105         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
4106         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
4107         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
4108         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
4109         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
4110         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
4111         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
4112         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
4113         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
4114         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
4115         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
4116         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
4117         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
4118         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
4119         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
4120         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
4121         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
4122         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
4123         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
4124         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4125         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
4126         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
4127         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
4128         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
4129         * testsuite/libgomp.fortran/pr25162.f: Likewise.
4130         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
4131         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
4132         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
4133         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
4134         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
4135         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
4136         * testsuite/libgomp.fortran/pr28390.f: Likewise.
4137         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
4138         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
4139         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
4140         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
4141         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
4142         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
4143         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
4144         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
4145         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
4146         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
4147         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
4148         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
4149         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
4150         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
4151         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
4152         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
4153         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
4154         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
4155         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
4156         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
4157         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
4158         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
4159         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
4160         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
4161         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
4162         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4163         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
4164         * testsuite/libgomp.fortran/reference1.f90: Likewise.
4165         * testsuite/libgomp.fortran/reference2.f90: Likewise.
4166         * testsuite/libgomp.fortran/retval1.f90: Likewise.
4167         * testsuite/libgomp.fortran/retval2.f90: Likewise.
4168         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
4169         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
4170         * testsuite/libgomp.fortran/simd1.f90: Likewise.
4171         * testsuite/libgomp.fortran/simd2.f90: Likewise.
4172         * testsuite/libgomp.fortran/simd3.f90: Likewise.
4173         * testsuite/libgomp.fortran/simd4.f90: Likewise.
4174         * testsuite/libgomp.fortran/simd5.f90: Likewise.
4175         * testsuite/libgomp.fortran/simd6.f90: Likewise.
4176         * testsuite/libgomp.fortran/simd7.f90: Likewise.
4177         * testsuite/libgomp.fortran/stack.f90: Likewise.
4178         * testsuite/libgomp.fortran/strassen.f90: Likewise.
4179         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
4180         * testsuite/libgomp.fortran/tabs2.f: Likewise.
4181         * testsuite/libgomp.fortran/target1.f90: Likewise.
4182         * testsuite/libgomp.fortran/target2.f90: Likewise.
4183         * testsuite/libgomp.fortran/target3.f90: Likewise.
4184         * testsuite/libgomp.fortran/target4.f90: Likewise.
4185         * testsuite/libgomp.fortran/target5.f90: Likewise.
4186         * testsuite/libgomp.fortran/target6.f90: Likewise.
4187         * testsuite/libgomp.fortran/target7.f90: Likewise.
4188         * testsuite/libgomp.fortran/target8.f90: Likewise.
4189         * testsuite/libgomp.fortran/task1.f90: Likewise.
4190         * testsuite/libgomp.fortran/task2.f90: Likewise.
4191         * testsuite/libgomp.fortran/task3.f90: Likewise.
4192         * testsuite/libgomp.fortran/task4.f90: Likewise.
4193         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4194         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4195         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4196         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4197         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4198         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4199         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4200         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4201         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4202         * testsuite/libgomp.fortran/udr1.f90: Likewise.
4203         * testsuite/libgomp.fortran/udr10.f90: Likewise.
4204         * testsuite/libgomp.fortran/udr11.f90: Likewise.
4205         * testsuite/libgomp.fortran/udr12.f90: Likewise.
4206         * testsuite/libgomp.fortran/udr13.f90: Likewise.
4207         * testsuite/libgomp.fortran/udr14.f90: Likewise.
4208         * testsuite/libgomp.fortran/udr15.f90: Likewise.
4209         * testsuite/libgomp.fortran/udr2.f90: Likewise.
4210         * testsuite/libgomp.fortran/udr3.f90: Likewise.
4211         * testsuite/libgomp.fortran/udr4.f90: Likewise.
4212         * testsuite/libgomp.fortran/udr5.f90: Likewise.
4213         * testsuite/libgomp.fortran/udr6.f90: Likewise.
4214         * testsuite/libgomp.fortran/udr7.f90: Likewise.
4215         * testsuite/libgomp.fortran/udr8.f90: Likewise.
4216         * testsuite/libgomp.fortran/udr9.f90: Likewise.
4217         * testsuite/libgomp.fortran/vla1.f90: Likewise.
4218         * testsuite/libgomp.fortran/vla2.f90: Likewise.
4219         * testsuite/libgomp.fortran/vla3.f90: Likewise.
4220         * testsuite/libgomp.fortran/vla4.f90: Likewise.
4221         * testsuite/libgomp.fortran/vla5.f90: Likewise.
4222         * testsuite/libgomp.fortran/vla6.f90: Likewise.
4223         * testsuite/libgomp.fortran/vla7.f90: Likewise.
4224         * testsuite/libgomp.fortran/vla8.f90: Likewise.
4225         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4226         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4227         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4228         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4229         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4230         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4231         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4232         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4233         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4234         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4235         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4236         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4237         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4238         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4239         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4240         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4241         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4242         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4243         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4244         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4245         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4246         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4247         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4248         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4249         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4250         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4251         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4252         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4253         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4254         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4255         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4256         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4257         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4258         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4259         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4260         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4261         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4262         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4263         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4264         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4265         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4266         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4267         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4268         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4269         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4270         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4271         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4272         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4273         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4274         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4275         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4276         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4277         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4278         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4279         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4280         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4281         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4282         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4283         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4284         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4285         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4286         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4287         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4288         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4289         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4290         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4291         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4292         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4293         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4294         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4295         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4296         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4297         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4298         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4299         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4300         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4301         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4302         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4303         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4304         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4305         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4306         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4307         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4308         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4309         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4310         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4311         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4312         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4313         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4314         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4315         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4316         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4317         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4318         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4320 2018-03-20  Richard Biener  <rguenther@suse.de>
4322         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4323         parallelizable loop.
4325 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4327         PR target/84148
4328         * configure: Regenerate.
4330 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
4332         PR fortran/84418
4333         * libgomp.fortran/pr84418-1.f90: New test.
4334         * libgomp.fortran/pr84418-2.f90: New test.
4336 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
4338         PR fortran/84313
4339         * testsuite/libgomp.fortran/threadprivate4.f90: Add
4340         -std=f2003 -fall-intrinsics into dg-additional-options.
4342 2018-02-08  Martin Jambor  <mjambor@suse.cz>
4344         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4345         clonable.
4347 2018-02-08  Martin Jambor  <mjambor@suse.cz>
4349         * testsuite/libgomp.hsa.c/staticvar.c: New test.
4351 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4353         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4354         [__cplusplus]: Declare extern "C".
4356 2018-02-07  Tom de Vries  <tom@codesourcery.com>
4358         PR libgomp/84217
4359         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4361 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
4362             Jakub Jelinek  <jakub@redhat.com>
4364         PR libgomp/84096
4365         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4366         instead of omp_lock_t.
4368 2018-01-25  Tom de Vries  <tom@codesourcery.com>
4370         PR target/84028
4371         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4373 2018-01-24  Tom de Vries  <tom@codesourcery.com>
4375         PR target/83589
4376         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4378 2018-01-24  Tom de Vries  <tom@codesourcery.com>
4380         PR target/81352
4381         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4383 2018-01-19  Tom de Vries  <tom@codesourcery.com>
4384             Cesar Philippidis  <cesar@codesourcery.com>
4386         PR target/83920
4387         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4388         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4390 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
4392         Update copyright years.
4394         * libgomp.texi: Bump @copying's copyright year.
4396 2017-12-30  Tom de Vries  <tom@codesourcery.com>
4398         PR libgomp/83046
4399         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4400         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4402 2017-12-27  Tom de Vries  <tom@codesourcery.com>
4404         PR c++/83046
4405         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4406         (test_nonstatic): Fix return type to workaround PR83046.
4408 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
4410         PR testsuite/83281
4411         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4412         j suffix instead of i.
4413         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4414         Likewise.
4416 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
4418         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4419         call to acc_wait (1).
4421 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
4423         PR fortran/81304
4424         * testsuite/libgomp.fortran/pr81304.f90: New test.
4426 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
4428         PR fortran/81841
4429         * libgomp.fortran/pr81841.f90: New test.
4431 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
4433         PR libgomp/83106
4434         * target.c (gomp_target_init): Compute lengths just once and
4435         use them in both malloc size and subsequent copying.
4437 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4439         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4440         * acinclude.m4: Add cet.m4.
4441         * configure: Regenerate.
4442         * Makefile.in: Likewise.
4443         * testsuite/Makefile.in: Likewise.
4445 2017-11-15  Tom de Vries  <tom@codesourcery.com>
4447         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4448         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
4449         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4450         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
4451         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4452         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
4454 2017-11-14  Tom de Vries  <tom@codesourcery.com>
4456         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4457         non-nvidia devices.
4459 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
4461         PR c++/82835
4462         * testsuite/libgomp.c++/pr82835.C: New test.
4464 2017-11-06  Martin Liska  <mliska@suse.cz>
4466         * testsuite/libgomp.c++/loop-2.C: Return a value
4467         for functions with non-void return type, or change type to void,
4468         or add -Wno-return-type for test.
4469         * testsuite/libgomp.c++/loop-4.C: Likewise.
4470         * testsuite/libgomp.c++/parallel-1.C: Likewise.
4471         * testsuite/libgomp.c++/shared-1.C: Likewise.
4472         * testsuite/libgomp.c++/single-1.C: Likewise.
4473         * testsuite/libgomp.c++/single-2.C: Likewise.
4475 2017-10-31  Tom de Vries  <tom@codesourcery.com>
4477         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4478         "do {} while (false)".
4479         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4480         after HSA_DEBUG call.
4482 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
4484         * target.c (struct gomp_coalesce_buf): New type.
4485         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4486         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4487         (gomp_copy_host2dev): Add CBUF argument, if copying into
4488         the cached ranges, memcpy into buffer instead of copying
4489         into device.
4490         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4491         Add CBUF argument, pass it through to other calls.
4492         (gomp_map_vars): Aggregate copies from host to device if small enough
4493         and with small enough gaps in between into memcpy into a buffer and
4494         fewer host to device copies from the buffer.
4495         (gomp_update): Adjust gomp_copy_host2dev caller.
4497 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
4499         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4500         run" directive.
4501         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4502         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4503         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4504         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4506 2017-10-16  Tom de Vries  <tom@codesourcery.com>
4508         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4509         openacc_nvidia_accel_selected.
4510         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4511         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4512         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4513         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4514         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4515         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4516         openacc_nvidia_accel_selected. Skip for shared memory device.
4517         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4518         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4520 2017-10-09  Martin Jambor  <mjambor@suse.cz>
4522         PR hsa/82416
4523         * testsuite/libgomp.hsa.c/pr82416.c: New test.
4525 2017-10-07  Tom de Vries  <tom@codesourcery.com>
4527         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4528         Remove acc_device_nvidia references.
4529         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4530         Same.
4532 2017-10-05  Tom de Vries  <tom@codesourcery.com>
4534         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4535         vector_length(32) clause from acc parallel directive.
4536         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4538 2017-10-04  Tom de Vries  <tom@codesourcery.com>
4540         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4541         (main): Reduce sum of arr elements.  Assert that hres is exactly
4542         representable in 32-bit floating point.
4543         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4544         (main): Reduce sum of arr elements.  Assert that hres and hmres are
4545         exactly representable in 32-bit floating point.
4546         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4548 2017-09-28  Tom de Vries  <tom@codesourcery.com>
4550         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4551         setting.
4552         * testsuite/libgomp.c++/pr69393.C: Same.
4553         * testsuite/libgomp.c++/taskloop-1.C: Same.
4554         * testsuite/libgomp.c++/taskloop-3.C: Same.
4555         * testsuite/libgomp.c++/taskloop-4.C: Same.
4556         * testsuite/libgomp.c/for-4.c: Same.
4557         * testsuite/libgomp.c/pr66199-3.c: Same.
4558         * testsuite/libgomp.c/pr66199-4.c: Same.
4559         * testsuite/libgomp.c/pr66199-6.c: Same.
4560         * testsuite/libgomp.c/taskloop-1.c: Same.
4561         * testsuite/libgomp.c/taskloop-3.c: Same.
4562         * testsuite/libgomp.c/taskloop-4.c: Same.
4563         * testsuite/libgomp.fortran/aligned1.f03: Same.
4564         * testsuite/libgomp.fortran/condinc1.f: Same.
4565         * testsuite/libgomp.fortran/condinc3.f90: Same.
4566         * testsuite/libgomp.fortran/crayptr1.f90: Same.
4567         * testsuite/libgomp.fortran/crayptr2.f90: Same.
4568         * testsuite/libgomp.fortran/crayptr3.f90: Same.
4569         * testsuite/libgomp.fortran/omp_cond1.f: Same.
4570         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4571         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4572         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4573         * testsuite/libgomp.fortran/recursion1.f90: Same.
4574         * testsuite/libgomp.fortran/target2.f90: Same.
4575         * testsuite/libgomp.fortran/target5.f90: Same.
4576         * testsuite/libgomp.fortran/task3.f90: Same.
4578 2017-09-28  Tom de Vries  <tom@codesourcery.com>
4580         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4581         vector_length(32) clause from acc parallel directive.
4582         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4584 2017-09-27  Tom de Vries  <tom@codesourcery.com>
4586         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4587         Remove acc_device_nvidia references.
4589 2017-09-16  Tom de Vries  <tom@codesourcery.com>
4591         PR c/81875
4592         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4594 2017-09-14  Tom de Vries  <tom@codesourcery.com>
4596         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4597         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4598         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4599         * testsuite/libgomp.c/c.exp: Include test-cases from
4600         libgomp.c-c++-common.
4601         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
4602         files.
4604 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
4606         PR c++/81314
4607         * testsuite/libgomp.c++/pr81314.C: New test.
4609 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
4611         * libgomp.texi (Top): www.openacc.org now uses https.
4612         (Enabling OpenACC): Ditto.
4613         (acc_get_num_devices): Ditto.
4614         (acc_set_device_type): Ditto.
4615         (acc_get_device_type): Ditto.
4616         (acc_set_device_num): Ditto.
4617         (acc_get_device_num): Ditto.
4618         (acc_async_test): Ditto.
4619         (acc_async_test_all): Ditto.
4620         (acc_wait): Ditto.
4621         (acc_wait_all): Ditto.
4622         (acc_wait_all_async): Ditto.
4623         (acc_wait_async): Ditto.
4624         (acc_init): Ditto.
4625         (acc_shutdown): Ditto.
4626         (acc_on_device): Ditto.
4627         (acc_malloc): Ditto.
4628         (acc_free): Ditto.
4629         (acc_copyin): Ditto.
4630         (acc_present_or_copyin): Ditto.
4631         (acc_create): Ditto.
4632         (acc_present_or_create): Ditto.
4633         (acc_copyout): Ditto.
4634         (acc_delete): Ditto.
4635         (acc_update_device): Ditto.
4636         (acc_update_self): Ditto.
4637         (acc_map_data): Ditto.
4638         (acc_unmap_data): Ditto.
4639         (acc_deviceptr): Ditto.
4640         (acc_hostptr): Ditto.
4641         (acc_is_present): Ditto.
4642         (acc_memcpy_to_device): Ditto.
4643         (acc_memcpy_from_device): Ditto.
4644         (acc_get_current_cuda_device): Ditto.
4645         (acc_get_current_cuda_context): Ditto.
4646         (acc_get_cuda_stream): Ditto.
4647         (acc_set_cuda_stream): Ditto.
4648         (ACC_DEVICE_TYPE): Ditto.
4649         (ACC_DEVICE_NUM): Ditto.
4650         (OpenACC Library Interoperability): Ditto.
4652 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
4654         PR c/81687
4655         * testsuite/libgomp.c/pr81687-1.c: New test.
4656         * testsuite/libgomp.c/pr81687-2.c: New test.
4658 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
4660         PR c/69389
4661         * testsuite/libgomp.c/pr69389.c: New test.
4662         * testsuite/libgomp.c++/pr69389.C: New test.
4664 2017-08-07  Tom de Vries  <tom@codesourcery.com>
4666         PR middle-end/78266
4667         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4668         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4670 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
4672         PR c/45784
4673         * testsuite/libgomp.c/pr45784.c: New test.
4674         * testsuite/libgomp.c++/pr45784.C: New test.
4676 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4678         * testsuite/libgomp.oacc-c/vec.c: New test.
4680 2017-07-03  Tom de Vries  <tom@codesourcery.com>
4682         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4684 2017-06-27  Tom de Vries  <tom@codesourcery.com>
4686         * plugin/plugin-nvptx.c (notify_var): New function.
4687         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4689 2017-06-27  Tom de Vries  <tom@codesourcery.com>
4691         * env.c (parse_unsigned_long_1): Factor out of ...
4692         (parse_unsigned_long): ... here.
4693         (parse_int_1): Factor out of ...
4694         (parse_int): ... here.
4695         (parse_int_secure): New function.
4696         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4697         * secure_getenv.h: Factor out of ...
4698         * plugin/plugin-hsa.c: ... here.
4699         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4701 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
4703         PR c++/81130
4704         * testsuite/libgomp.c++/pr81130.C: New test.
4706 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4708         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4709         default args.
4710         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4711         dg-xfail-run-if default args.
4713 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4715         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4716         * testsuite/libgomp.c/pr39591-3.c: Likewise.
4718 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
4720         PR libgomp/80822
4721         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4722         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
4723         sibling lists, depending on level just pick up what CPUs to put
4724         together into a place vs. whether add multiple ordered places.
4726 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
4728         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4729         * libgomp.map (OACC_2.0.1): Add these.
4730         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4731         for "acc_wait", and "acc_wait_all", respectively.
4732         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4733         for "acc_wait", and "acc_wait_all", respectively.
4734         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4735         * libgomp.texi (acc_wait, acc_wait_all): Update.
4736         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4737         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4738         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4740         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4741         acc_present_or_copyin and acc_present_or_create procedures,
4742         respectively.
4743         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4744         generally different variants of OpenACC Runtime Library functions.
4745         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4747         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4748         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4750         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4751         of preprocessor definitions.
4752         * libgomp.h (strong_alias): Guard by "#ifdef
4753         HAVE_ATTRIBUTE_ALIAS".
4754         * oacc-mem.c: Provide "acc_pcreate" as alias for
4755         "acc_present_or_create", and "acc_pcopyin" as alias for
4756         "acc_present_or_copyin".
4757         * libgomp.map: New version "OACC_2.0.1".
4758         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4759         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4760         its content into...
4761         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4762         Extend testing.
4764         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4765         when disabling nvptx offloading.
4767 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
4769         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4770         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4771         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4773         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4774         * testsuite/lib/libgomp.exp
4775         (check_effective_target_openacc_nvidia_accel_configured): New
4776         proc.
4777         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4778         (check_effective_target_c++): New procs.
4779         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4780         (check_effective_target_c++): Likewise.
4782 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
4784         PR middle-end/80809
4785         * testsuite/libgomp.c/pr80809-2.c: New test.
4786         * testsuite/libgomp.c/pr80809-3.c: New test.
4788         PR middle-end/80809
4789         * testsuite/libgomp.c/pr80809-1.c: New test.
4791         PR middle-end/80853
4792         * testsuite/libgomp.c/pr80853.c: New test.
4794 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
4796         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4797         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4798         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4799         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4800         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4802         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4803         Debug output for failure.
4805 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4807         * testsuite/lib/libgomp.exp: Load scanlang.exp.
4809 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
4811         PR bootstrap/80531
4812         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4813         bootstrap compare failures.
4815 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
4817         * testsuite/libgomp.c/target-36.c: New testcase.
4819 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
4821         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4822         instead of char.
4824 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
4826         PR libgomp/80394
4827         * testsuite/libgomp.c/pr80394.c: New test.
4829 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4831         PR libgomp/79876
4832         * config/posix/thread-stacksize.h: New file.
4833         * config/darwin/thread-stacksize.h: New file.
4834         * config/nvptx/thread-stacksize.h: New file.
4835         * env.c: Include thread-stacksize.h.
4836         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4837         instead of 0.  Call pthread_attr_setstacksize even if
4838         GOMP_DEFAULT_STACKSIZE is non-zero.
4840 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
4842         * env.c (initialize_env): Initialize stacksize to 0.
4844 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
4846         PR c++/80029
4847         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4849 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
4851         PR c/79940
4852         * testsuite/libgomp.c/pr79940.c: New test.
4854 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4856         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4857         targets.
4858         Add __float128 options.
4860 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
4862         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4863         hppa*-*-* dg-skip-if directive.
4865 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
4867         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4868         dg-skip-if directive into a comment.
4870 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
4871             Chung-Lin Tang  <cltang@codesourcery.com>
4873         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4874         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4875         add additional case.
4876         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4877         "openacc_nvidia_accel_selected".
4878         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4879         Add num_workers(8) clause.
4881 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
4883         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4884         hppa*-*-*.
4885         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4886         include complex.h on hppa*-*-hpux*.
4887         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4889 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
4891         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4893         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4894         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
4895         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4896         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
4897         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4898         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
4899         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4900         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
4901         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4902         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
4904 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
4906         * libgomp-plugin.h: #include <stdbool.h>.
4907         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4908         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4909         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4910         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4911         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4912         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4913         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4914         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4915         (GOMP_OFFLOAD_openacc_register_async_cleanup)
4916         (GOMP_OFFLOAD_openacc_async_test)
4917         (GOMP_OFFLOAD_openacc_async_test_all)
4918         (GOMP_OFFLOAD_openacc_async_wait)
4919         (GOMP_OFFLOAD_openacc_async_wait_async)
4920         (GOMP_OFFLOAD_openacc_async_wait_all)
4921         (GOMP_OFFLOAD_openacc_async_wait_all_async)
4922         (GOMP_OFFLOAD_openacc_async_set_async)
4923         (GOMP_OFFLOAD_openacc_create_thread_data)
4924         (GOMP_OFFLOAD_openacc_destroy_thread_data)
4925         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4926         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4927         (GOMP_OFFLOAD_openacc_get_cuda_stream)
4928         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4929         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4930         these.
4931         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4932         (GOMP_OFFLOAD_unload_image): Fix argument types.
4934 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
4936         * testsuite/lib/libgomp.exp
4937         (check_effective_target_hsa_offloading_selected_nocache): Fix up
4938         check_compile invocation.  Fix up removal of executable.  Drop
4939         bogus "2>&1" argument.
4941         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4942         directive.
4944 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
4945             Martin Jambor  <mjambor@suse.cz>
4947         * plugin/hsa.h: Moved to top level include.
4948         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4950 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
4952         PR other/79046
4953         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4954         of cat to get version from BASE-VER file.
4955         * testsuite/Makefile.in: Regenerated.
4957 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
4959         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4960         for _WIN64.
4962 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4964         * plugin/hsa.h: Add GCC runtime library exception.
4965         * plugin/hsa_ext_finalize.h: Likewise.
4967         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4968         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
4969         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4970         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4971         plugin/include/cuda as include dir and -ldl instead of -lcuda as
4972         library to link ptx plugin against.
4973         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4974         (CUDA_CALLS): Define.
4975         (cuda_lib, cuda_lib_inited): New variables.
4976         (init_cuda_lib): New function.
4977         (CUDA_CALL_PREFIX): Define.
4978         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4979         (CUDA_CALL): Use FN instead of (FN).
4980         (CUDA_CALL_NOCHECK): Define.
4981         (cuda_error, fini_streams_for_device, select_stream_for_async,
4982         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4983         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4984         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4985         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4986         CUDA_CALL_NOCHECK.
4987         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
4988         CUDA_CALL_NOCHECK.
4989         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4990         Use CUDA_CALL_NOCHECK.
4991         * plugin/cuda/cuda.h: New file.
4992         * config.h.in: Regenerated.
4993         * configure: Regenerated.
4995         PR other/79046
4996         * configure.ac: Add GCC_BASE_VER.
4997         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4998         get version from BASE-VER file.
4999         * testsuite/Makefile.in: Regenerated.
5000         * configure: Regenerated.
5001         * Makefile.in: Regenerated.
5003 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5005         PR libgomp/60670
5006         * Makefile.am: Make fincludedir multilib-aware.
5007         * Makefile.in: Regenerate.
5009 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
5011         Update copyright years.
5013         * libgomp.texi: Bump @copying's copyright year.
5015 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5017         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
5018         pthread_spinlock_t instead of gomp_mutex_t lock.
5019         (gomp_get_thread_pool): Likewise.
5020         (gomp_release_thread_pool): Likewise.
5021         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
5022         Likewise.
5024 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5026         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
5027         thread pool in case nthreads == 1.
5029 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
5031         * config/nvptx/env.c: Delete.
5032         * icv.c: Move definitions of ICV variables back ...
5033         * env.c: ...here.  Do not compile environment-related functionality if
5034         LIBGOMP_OFFLOADED_ONLY is set.
5036 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
5038         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
5039         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
5040         * configure: Regenerate.
5041         * config.h.in: Likewise.
5043 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
5045         * Makefile.in: Regenerate with automake-1.11.6.
5046         * aclocal.m4: Likewise.
5047         * configure: Likewise.
5048         * testsuite/Makefile.in: Likewise.
5050 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
5052         * config/nvptx/critical.c: Delete to use generic implementation.
5054 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
5056         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
5057         ../../affinity.c as fallback.
5058         * config/nvptx/affinity.c: Delete to use fallback implementation.
5060 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
5061             Jakub Jelinek  <jakub@redhat.com>
5062             Dmitry Melnik  <dm@ispras.ru>
5064         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
5065         * Makefile.in. Regenerate.
5066         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
5067         (LIBGOMP_USE_PTHREADS): ...here; new define.
5068         * configure: Regenerate.
5069         * config.h.in: Likewise.
5070         * config/posix/affinity.c: Move to...
5071         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
5072         interface by LIBGOMP_USE_PTHREADS. 
5073         * critical.c: Split out GOMP_atomic_{start,end} into...
5074         * atomic.c: ...here (new file).
5075         * env.c: Split out ICV definitions into...
5076         * icv.c: ...here (new file) and...
5077         * icv-device.c: ...here. New file.
5078         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
5079         (gomp_destroy_lock_30): Ditto.
5080         (gomp_set_lock_30): Ditto.
5081         (gomp_unset_lock_30): Ditto.
5082         (gomp_test_lock_30): Ditto.
5083         (gomp_init_nest_lock_30): Ditto.
5084         (gomp_destroy_nest_lock_30): Ditto.
5085         (gomp_set_nest_lock_30): Ditto.
5086         (gomp_unset_nest_lock_30): Ditto.
5087         (gomp_test_nest_lock_30): Ditto.
5088         * lock.c: New.
5089         * config/nvptx/lock.c: New.
5090         * config/nvptx/bar.c: New.
5091         * config/nvptx/bar.h: New.
5092         * config/nvptx/doacross.h: New.
5093         * config/nvptx/error.c: New.
5094         * config/nvptx/icv-device.c: New.
5095         * config/nvptx/mutex.h: New.
5096         * config/nvptx/pool.h: New.
5097         * config/nvptx/proc.c: New.
5098         * config/nvptx/ptrlock.h: New.
5099         * config/nvptx/sem.h: New.
5100         * config/nvptx/simple-bar.h: New.
5101         * config/nvptx/target.c: New.
5102         * config/nvptx/task.c: New.
5103         * config/nvptx/team.c: New.
5104         * config/nvptx/time.c: New.
5105         * config/posix/simple-bar.h: New.
5106         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
5107         (gomp_num_teams_var): Declare.
5108         (struct gomp_thread_pool): Change threads_dock member to
5109         gomp_simple_barrier_t.
5110         [__nvptx__] (gomp_thread): New implementation.
5111         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
5112         (gomp_thread_destructor): Ditto.
5113         (gomp_init_thread_affinity): Ditto.
5114         * team.c: Guard uses of Pthreads-specific interfaces by
5115         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
5116         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
5117         * config/nvptx/alloc.c: Delete.
5118         * config/nvptx/barrier.c: Ditto.
5119         * config/nvptx/fortran.c: Ditto.
5120         * config/nvptx/iter.c: Ditto.
5121         * config/nvptx/iter_ull.c: Ditto.
5122         * config/nvptx/loop.c: Ditto.
5123         * config/nvptx/loop_ull.c: Ditto.
5124         * config/nvptx/ordered.c: Ditto.
5125         * config/nvptx/parallel.c: Ditto.
5126         * config/nvptx/priority_queue.c: Ditto.
5127         * config/nvptx/sections.c: Ditto.
5128         * config/nvptx/single.c: Ditto.
5129         * config/nvptx/splay-tree.c: Ditto.
5130         * config/nvptx/work.c: Ditto.
5131         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
5132         -foffload=-lgfortran in addition to -lgfortran.
5133         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
5134         * plugin/plugin-nvptx.c: Include <limits.h>.
5135         (struct targ_fn_descriptor): Add new fields.
5136         (struct ptx_device): Ditto.  Set them...
5137         (nvptx_open_device): ...here.
5138         (nvptx_adjust_launch_bounds): New.
5139         (nvptx_host2dev): Allow NULL 'nvthd'.
5140         (nvptx_dev2host): Ditto.
5141         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
5142         (link_ptx): Adjust log sizes.
5143         (nvptx_host2dev): Allow NULL 'nvthd'.
5144         (nvptx_dev2host): Ditto.
5145         (nvptx_set_clocktick): New.  Use it...
5146         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
5147         fields.
5148         (GOMP_OFFLOAD_dev2dev): New.
5149         (nvptx_adjust_launch_bounds): New.
5150         (nvptx_stacks_size): New.
5151         (nvptx_stacks_alloc): New.
5152         (nvptx_stacks_free): New.
5153         (GOMP_OFFLOAD_run): New.
5154         (GOMP_OFFLOAD_async_run): New (stub).
5156 2016-11-23  Martin Jambor  <mjambor@suse.cz>
5158         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
5159         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
5160         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
5162 2016-11-23  Martin Liska  <mliska@suse.cz>
5163             Martin Jambor  <mjambor@suse.cz>
5165         * plugin/hsa.h: New file.
5166         * plugin/hsa_ext_finalize.h: New file.
5167         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
5168         header file unistd.h, and functions secure_getenv, __secure_getenv,
5169         getuid, geteuid, getgid and getegid.
5170         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
5171         -D_GNU_SOURCE.
5172         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
5173         Handle various cases of secure_getenv presence, add an implementation
5174         when we can test effective UID and GID.
5175         (struct hsa_runtime_fn_info): New structure.
5176         (hsa_runtime_fn_info hsa_fns): New variable.
5177         (hsa_runtime_lib): Likewise.
5178         (support_cpu_devices): Likewise.
5179         (init_enviroment_variables): Load newly introduced ENV
5180         variables.
5181         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
5182         (hsa_fatal): Likewise.
5183         (DLSYM_FN): New macro.
5184         (init_hsa_runtime_functions): New function.
5185         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
5186         structure.  Depending on environment, also allow CPU devices.
5187         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5188         (get_kernarg_memory_region): Likewise.
5189         (GOMP_OFFLOAD_init_device): Likewise.
5190         (destroy_hsa_program): Likewise.
5191         (init_basic_kernel_info): New function.
5192         (GOMP_OFFLOAD_load_image): Use it.
5193         (create_and_finalize_hsa_program): Call hsa run-time functions via
5194         hsa_fns structure.
5195         (create_single_kernel_dispatch): Likewise.
5196         (release_kernel_dispatch): Likewise.
5197         (init_single_kernel): Likewise.
5198         (parse_target_attributes): Allow up multiple HSA grid dimensions.
5199         (get_group_size): New function.
5200         (run_kernel): Likewise.
5201         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5202         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5203         structure.
5204         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5205         * testsuite/libgomp-test-support.exp.in: Likewise.
5206         * Makefile.in: Regenerated.
5207         * aclocal.m4: Likewise.
5208         * config.h.in: Likewise.
5209         * configure: Likewise.
5210         * testsuite/Makefile.in: Likewise.
5212 2016-11-15  Martin Jambor  <mjambor@suse.cz>
5213             Alexander Monakov  <amonakov@ispras.ru>
5215         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5216         mapping clauses to target constructs.
5217         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5219 2016-11-15  Matthias Klose  <doko@ubuntu.com>
5221         * configure: Regenerate.
5223 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
5225         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5226         * omp_lib.h.in (openmp_version): Likewise.
5227         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5228         of 201307.
5229         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5231         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5232         (fib_wrapper): Add map(from: x) clause.
5233         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5234         (e_53_2): Likewise.
5235         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5236         (accum): Add map(tmp) clause.
5237         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5238         (accum): Add map(tofrom: tmp) clause.
5239         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5240         (gramSchmidt): Likewise.
5241         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5242         map(tofrom: sum) clause.
5243         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5244         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
5245         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5246         only allowed on the loop iterator.
5247         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5248         * testsuite/libgomp.fortran/taskloop2.f90: New test.
5249         * testsuite/libgomp.fortran/taskloop4.f90: New test.
5250         * testsuite/libgomp.fortran/doacross1.f90: New test.
5251         * testsuite/libgomp.fortran/doacross3.f90: New test.
5252         * testsuite/libgomp.fortran/taskloop1.f90: New test.
5253         * testsuite/libgomp.fortran/taskloop3.f90: New test.
5254         * testsuite/libgomp.fortran/doacross2.f90: New test.
5255         * testsuite/libgomp.c/doacross-1.c (main): Add missing
5256         #pragma omp atomic read.
5257         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5258         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5260 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
5261             Nathan Sidwell  <nathan@acm.org>
5263         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5264         to determine default geometry.
5265         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5266         dimension.
5268 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
5270         * hashtab.h: Use standard GPLv3 with runtime exception
5271         boilerplate.
5273 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
5275         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5276         size when allocating new thread.
5278 2016-09-14  Marek Polacek  <polacek@redhat.com>
5280         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5282 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
5284         PR fortran/71014
5285         * testsuite/libgomp.fortran/pr71014.f90: New test.
5287 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
5289         PR middle-end/70895
5290         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5291         firstprivate clauses.
5292         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5293         copy clauses.
5294         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5295         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5296         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5297         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5298         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5299         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5300         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5301         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5302         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5303         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5304         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5305         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5307 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
5309         PR fortran/70598
5310         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5312 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5314         PR c++/58706
5315         * testsuite/libgomp.c++/pr58706.C: New test.
5317 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
5319         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5320         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5321         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5322         Likewise.
5323         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5324         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5325         Likewise.
5326         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5328         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5329         test, and don't hardcode -O0.
5331 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5333         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5335 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
5337         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5338         test.
5340 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
5342         PR middle-end/71734
5343         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5344         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5346 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
5348         PR fortran/71717
5349         * testsuite/libgomp.fortran/associate3.f90: New test.
5351 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
5353         * testsuite/libgomp.c++/target-21.C: New test.
5355 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
5357         * testsuite/libgomp.c++/target-20.C: New test.
5359 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5360             Cesar Philippidis  <cesar@codesourcery.com>
5362         PR middle-end/71373
5363         * libgomp.oacc-c/nested-function-1.c: New file.
5364         * libgomp.oacc-c/nested-function-2.c: Likewise.
5365         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5366         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5367         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5369 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5371         PR c/71381
5372         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5373         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5374         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5376 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
5378         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5379         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5381 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
5383         PR c/70688
5384         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5386 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
5388         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5389         instead of invalid schedule(static, 0).
5390         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5392 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
5394         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5395         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5396         parameter, use to set async stream around call to gomp_unmap_vars,
5397         call gomp_unmap_vars() with 'do_copyfrom' set to true.
5398         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5399         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5400         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5401         (event_add): Add int parameter, initialize 'val' field when
5402         adding new ptx_event struct.
5403         (nvptx_evec): Adjust event_add() call arguments.
5404         (nvptx_host2dev): Likewise.
5405         (nvptx_dev2host): Likewise.
5406         (nvptx_wait_async): Likewise.
5407         (nvptx_wait_all_async): Likewise.
5408         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5409         pass to event_add() call.
5410         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5411         parameter.
5412         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5413         call openacc.register_async_cleanup_func() hook.
5414         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5415         * target.c (gomp_copy_from_async): Delete function.
5416         (gomp_map_vars): Remove async_refcount.
5417         (gomp_unmap_vars): Likewise.
5418         (gomp_load_image_to_device): Likewise.
5419         (omp_target_associate_ptr): Likewise.
5420         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5421         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5422         (gomp_copy_from_async): Remove.
5424 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
5426         * target.c (gomp_device_copy): New function.
5427         (gomp_copy_host2dev): Likewise.
5428         (gomp_copy_dev2host): Likewise.
5429         (gomp_free_device_memory): Likewise.
5430         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5431         (gomp_map_pointer): Likewise.
5432         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5433         NULL value from alloc_func plugin hook.
5434         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5435         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5436         (gomp_unmap_vars): Likewise.
5437         (gomp_update): Adjust to call gomp_copy_dev2host and
5438         gomp_copy_host2dev functions.
5439         (gomp_unload_image_from_device): Handle false value from
5440         unload_image_func plugin hook.
5441         (gomp_init_device): Handle false value from init_device_func
5442         plugin hook.
5443         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5444         (omp_target_free): Adjust to call gomp_free_device_memory.
5445         (omp_target_memcpy): Handle return values from host2dev_func,
5446         dev2host_func, and dev2dev_func plugin hooks.
5447         (omp_target_memcpy_rect_worker): Likewise.
5448         (gomp_target_fini): Handle false value from fini_device_func
5449         plugin hook.
5450         * libgomp.h (struct gomp_device_descr): Adjust return type of
5451         init_device_func, fini_device_func, unload_image_func, free_func,
5452         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5453         * oacc-init.c (acc_shutdown_1): Handle false value from
5454         fini_device_func plugin hook.
5455         * oacc-host.c (host_init_device): Change return type to bool.
5456         (host_fini_device): Likewise.
5457         (host_unload_image): Likewise.
5458         (host_free): Likewise.
5459         (host_dev2host): Likewise.
5460         (host_host2dev): Likewise.
5461         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5462         (acc_memcpy_to_device): Likewise.
5463         (acc_memcpy_from_device): Likewise.
5464         (delete_copyout): Add libfnname parameter, handle free_func
5465         hook fatal error case.
5466         (acc_delete): Adjust delete_copyout call.
5467         (acc_copyout): Likewise.
5468         (update_dev_host): Move gomp_mutex_unlock to after
5469         host2dev/dev2host hook calls.
5471         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5472         to 'hsa_error_msg', for clarity.
5473         (hsa_fatal): Likewise.
5474         (hsa_error): New function.
5475         (init_hsa_context): Change return type to bool, adjust to return
5476         false on error.
5477         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5478         return value.
5479         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5480         return false on error.
5481         (get_agent_info): Adjust to return NULL on error.
5482         (destroy_hsa_program): Change return type to bool, adjust to
5483         return false on error.
5484         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5485         (destroy_module): Change return type to bool, adjust to
5486         return false on error.
5487         (GOMP_OFFLOAD_unload_image): Likewise.
5488         (GOMP_OFFLOAD_fini_device): Likewise.
5489         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5490         (GOMP_OFFLOAD_free): Change to return false when called.
5491         (GOMP_OFFLOAD_dev2host): Likewise.
5492         (GOMP_OFFLOAD_host2dev): Likewise.
5493         (GOMP_OFFLOAD_dev2dev): Likewise.
5495         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5496         (CUDA_CALL): Likewise.
5497         (CUDA_CALL_ASSERT): Likewise.
5498         (map_init): Change return type to bool, use CUDA_CALL* macros.
5499         (map_fini): Likewise.
5500         (init_streams_for_device): Change return type to bool, adjust
5501         call to map_init.
5502         (fini_streams_for_device): Change return type to bool, adjust
5503         call to map_fini.
5504         (select_stream_for_async): Release stream_lock before calls to
5505         GOMP_PLUGIN_fatal, adjust call to map_init.
5506         (nvptx_init): Use CUDA_CALL* macros.
5507         (nvptx_attach_host_thread_to_device): Change return type to bool,
5508         use CUDA_CALL* macros.
5509         (nvptx_open_device): Use CUDA_CALL* macros.
5510         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5511         macros.
5512         (nvptx_get_num_devices): Use CUDA_CALL* macros.
5513         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5514         (nvptx_exec): Use CUDA_CALL* macros.
5515         (nvptx_alloc): Use CUDA_CALL* macros.
5516         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5517         (nvptx_host2dev): Likewise.
5518         (nvptx_dev2host): Likewise.
5519         (nvptx_wait): Use CUDA_CALL* macros.
5520         (nvptx_wait_async): Likewise.
5521         (nvptx_wait_all): Likewise.
5522         (nvptx_wait_all_async): Likewise.
5523         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5524         use CUDA_CALL* macros, adjust call to map_fini.
5525         (GOMP_OFFLOAD_init_device): Change return type to bool,
5526         adjust code accordingly.
5527         (GOMP_OFFLOAD_fini_device): Likewise.
5528         (GOMP_OFFLOAD_load_image): Adjust calls to
5529         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5530         use CUDA_CALL* macros.
5531         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5532         return code.
5533         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5534         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5535         handle error return.
5536         (GOMP_OFFLOAD_dev2host): Likewise.
5537         (GOMP_OFFLOAD_host2dev): Likewise.
5538         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5539         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5541 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
5543         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5544         (acc_free): Likewise.
5545         (acc_memcpy_to_device): Likewise.
5546         (acc_memcpy_from_device): Likewise.
5547         (acc_deviceptr): Likewise.
5548         (acc_hostptr): Likewise.
5549         (acc_is_present): Likewise.
5550         (acc_map_data): Likewise.
5551         (acc_unmap_data): Likewise.
5552         (present_create_copy): Likewise.
5553         (delete_copyout): Likewise.
5554         (update_dev_host): Likewise.
5555         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5556         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5557         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5558         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5559         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5560         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5561         it only runs on nvptx targets.
5562         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5563         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5564         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5565         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5566         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5567         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5568         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5569         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5570         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5571         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5572         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5573         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5574         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5575         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5576         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5577         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5578         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5579         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5580         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5581         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5582         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5583         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5584         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5586 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5588         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5590 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
5592         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5593         to gomp_init_targets_once.
5594         (acc_set_device_type): Remove !cached_base_dev condition on call to
5595         gomp_init_targets_once, move call to before acc_device_lock acquire,
5596         to avoid deadlock.
5597         (acc_get_device_num): Remove !cached_base_dev condition on call to
5598         gomp_init_targets_once.
5599         (acc_set_device_num): Likewise.
5601 2016-05-16  Martin Jambor  <mjambor@suse.cz>
5603         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5605 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
5607         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5608         expected partitioning.
5610 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
5612         PR middle-end/70626
5613         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5614         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5615         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5617 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
5619         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5620         non-fatal.
5622 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
5624         PR middle-end/70680
5625         * testsuite/libgomp.c/pr70680-1.c: New test.
5626         * testsuite/libgomp.c/pr70680-2.c: New test.
5628 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
5630         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5631         pass parameter variables to subroutines.
5633 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
5635         PR middle-end/70643
5636         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5638 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
5640         PR testsuite/68242
5641         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5642         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5644 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
5646         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5647         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5648         GOACC_declare prototype.
5650         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5651         Merge this file, and...
5652         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5653         ... this file, and...
5654         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5655         ... this file, and...
5656         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5657         ... this file, and...
5658         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5659         ... this file, and...
5660         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5661         ... this file, and...
5662         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5663         ... this file, and...
5664         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5665         ... this file, and...
5666         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5667         ... this file, and...
5668         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5669         ... this file, and...
5670         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5671         ... this file, and...
5672         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5673         ... this file, and...
5674         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5675         ... this file into...
5676         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5677         file.
5679         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5680         Make failure observable.
5682 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
5684         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5685         field.
5686         * target.c (gomp_target_fallback_firstprivate,
5687         gomp_target_unshare_firstprivate): Removed.
5688         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5689         before waiting for dependencies.
5690         (gomp_target_task_fn): Don't copy firstprivate vars here.
5691         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5692         firstprivate_copies here.
5693         (gomp_create_target_task): Don't initialize firstprivate_copies field.
5694         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5695         explicit/implicit firstprivate.
5697 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
5699         PR lto/70289
5700         PR ipa/70348
5701         PR tree-optimization/70373
5702         PR middle-end/70533
5703         PR middle-end/70534
5704         PR middle-end/70535
5705         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5706         test.
5707         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5708         test.
5709         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5710         test.
5711         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5712         test.
5713         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5714         test.
5715         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5716         test.
5717         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5718         test.
5719         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5720         test.
5721         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5722         test.
5723         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5724         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5725         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5726         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5727         test.
5728         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5729         test.
5730         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5731         test.
5732         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5733         test.
5734         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5735         coverage.
5736         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5737         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5738         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5739         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5740         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5741         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5742         coverage.
5743         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5744         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5745         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5746         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5747         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5748         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5749         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5750         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5751         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5752         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5753         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5754         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5755         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5756         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5757         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5759 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
5760             James Norris  <jnorris@codesourcery.com>
5761             Nathan Sidwell  <nathan@codesourcery.com>
5762             Julian Brown  <julian@codesourcery.com>
5763             Cesar Philippidis  <cesar@codesourcery.com>
5764             Chung-Lin Tang  <cltang@codesourcery.com>
5765             Tom de Vries  <tom@codesourcery.com>
5767         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5768         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5769         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5770         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5771         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5772         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5773         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5774         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5775         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5776         XFAIL.
5777         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5778         Incorporate...
5779         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5780         file.
5781         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5782         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5783         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5784         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5785         Likewise.
5786         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5787         Likewise.
5788         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5789         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5790         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5791         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5792         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5793         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5794         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5795         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5796         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5797         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5798         Likewise.
5799         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5800         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5801         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5802         file...
5803         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5804         file into...
5805         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5806         file.  Update.
5807         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5808         file.
5809         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5810         Likewise.
5811         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5812         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5813         ... this new file.  Update.
5814         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5815         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5816         ... this new file.  Update.
5817         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5818         file.  Incorporate...
5819         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5820         file, and...
5821         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5822         file, and...
5823         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5824         file.
5825         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5827 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
5829         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5830         set-torture-options.
5832 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
5834         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5835         gcc-dg-runtest.
5836         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5837         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5838         -fno-builtin-acc_on_device instead of -O0.
5839         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5840         -O0.
5841         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5842         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5843         Likewise.
5844         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5845         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5846         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5847         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5848         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5849         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5850         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5851         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5852         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5853         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5854         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5855         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5856         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5857         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5858         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5859         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5860         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5861         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5862         Don't specify -O2.
5863         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5864         Likewise.
5865         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5866         Likewise.
5868 2016-03-24  Martin Liska  <mliska@suse.cz>
5870         * plugin/plugin-hsa.c (packet_store_release): New function
5871         that is taken from the HSA runtime manual.
5872         (GOMP_OFFLOAD_run): Use the function.
5874 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
5876         PR c++/70376
5877         * testsuite/libgomp.c++/pr70376.C: New test.
5879 2016-03-23  Tom de Vries  <tom@codesourcery.com>
5881         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5882         initialization of lresult and lvresult.
5883         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5885 2016-03-23  James Norris  <jnorris@codesourcery.com>
5886             Daichi Fukuoka <dc-fukuoka@sgi.com>
5888         PR libgomp/69414
5889         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5890         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5891         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5892         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5894 2016-03-23  Martin Liska  <mliska@suse.cz>
5896         PR hsa/70337
5897         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5898         argument just in case a dispatched kernel uses that argument.
5900 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
5902         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5903         -ftree-parallelize-loops/-fopenacc changes.
5904         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5905         Likewise.
5906         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5907         Likewise.
5908         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5909         Likewise.
5910         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5911         Likewise.
5912         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5913         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5915 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
5917         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5918         always_ld_library_path the path to libgcc_s.
5920 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
5922         PR testsuite/70009
5923         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5925 2016-03-09  Tom de Vries  <tom@codesourcery.com>
5927         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5928         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5929         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5930         Same.
5931         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5932         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5933         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5934         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5936 2016-03-07  Martin Jambor  <mjambor@suse.cz>
5938         * testsuite/lib/libgomp.exp
5939         (check_effective_target_hsa_offloading_selected_nocache): New.
5940         (check_effective_target_hsa_offloading_selected): Likewise.
5941         * testsuite/libgomp.hsa.c/c.exp: Likewise.
5942         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5943         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5944         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5945         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5946         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5947         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5948         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5949         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5950         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5951         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5952         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5953         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5954         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5955         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5956         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5957         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5959 2016-03-07  Martin Jambor  <mjambor@suse.cz>
5961         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5962         non-shared memory accelerators.
5963         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5964         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5965         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5966         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5967         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5968         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5969         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5970         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5971         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5973 2016-03-07  Martin Jambor  <mjambor@suse.cz>
5975         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5976         ALWAYS_CFLAGS.
5978 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
5980         PR libgomp/69555
5981         * testsuite/libgomp.c++/pr69555-1.C: New test.
5982         * testsuite/libgomp.c++/pr69555-2.C: New test.
5984 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
5985             Martin Jambor  <mjambor@suse.cz>
5987         * testsuite/lib/libgomp.exp
5988         (check_effective_target_offload_device_shared_as): New proc.
5989         * testsuite/libgomp.c++/declare_target-1.C: New test.
5991 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
5993         PR driver/68463
5994         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5996 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
5998         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5999         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
6000         dims.
6001         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
6002         -ftree-parallelize-loops/-fopenacc changes.
6003         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
6004         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
6005         Likewise.
6006         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
6007         Likewise.
6008         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
6009         Likewise.
6010         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
6011         Likewise.
6012         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
6013         Likewise.
6014         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
6015         Likewise.
6016         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
6017         Likewise.
6018         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
6019         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
6020         Likewise.
6021         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
6022         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
6023         Likewise.
6024         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
6025         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
6026         Likewise.
6028 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
6030         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
6032 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
6034         PR driver/69805
6035         * testsuite/libgomp.c/pr69805.c: New test.
6037 2016-02-16  Tom de Vries  <tom@codesourcery.com>
6039         PR lto/67709
6040         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
6042 2016-02-09  Tom de Vries  <tom@codesourcery.com>
6044         PR tree-optimization/69599
6045         * testsuite/libgomp.c/omp-nested-3.c: New test.
6046         * testsuite/libgomp.c/pr46032-2.c: New test.
6047         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
6048         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
6050 2016-02-09  Tom de Vries  <tom@codesourcery.com>
6052         PR lto/69707
6053         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
6055 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
6057         * testsuite/libgomp.c/target-31.c: Fix testcase.
6059 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
6061         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
6062         clause.
6063         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
6064         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
6065         reduction and map clauses.
6066         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6068 2016-02-02  James Norris  <jnorris@codesourcery.com>
6070         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
6072 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
6074         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
6075         * oacc-parallel.c (GOACC_host_data): Remove function definition.
6077         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
6078         cases.
6080         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
6081         variables.
6082         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
6083         (hsa_kmt_lib): Set variables.
6084         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
6085         always_ld_library_path.
6086         * Makefile.in: Regenerate.
6087         * configure: Likewise.
6088         * testsuite/Makefile.in: Likewise.
6090         * plugin/configfrag.ac (offload_additional_options)
6091         (offload_additional_lib_paths): Don't amend for hsa offloading.
6092         * configure: Regenerate.
6094         * plugin/configfrag.ac: Don't configure for offloading target if
6095         we don't build the corresponding plugin.
6096         * configure: Regenerate.
6098 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
6100         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
6101         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
6103 2016-01-26  Tom de Vries  <tom@codesourcery.com>
6105         PR tree-optimization/69110
6106         * testsuite/libgomp.c/pr69110.c: New test.
6108 2016-01-25  Richard Biener  <rguenther@suse.de>
6110         PR lto/69393
6111         * testsuite/libgomp.c++/pr69393.C: New testcase.
6113 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
6115         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
6116         function wasn't mapped to the device with non-shared memory.
6118 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
6120         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
6122 2016-01-19  Martin Jambor  <mjambor@suse.cz>
6123             Martin Liska  <mliska@suse.cz>
6125         * plugin/Makefrag.am: Add HSA plugin requirements.
6126         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
6127         (HSA_RUNTIME_LIB): Likewise.
6128         (HSA_RUNTIME_CPPFLAGS): Likewise.
6129         (HSA_RUNTIME_INCLUDE): New substitution.
6130         (HSA_RUNTIME_LIB): Likewise.
6131         (HSA_RUNTIME_LDFLAGS): Likewise.
6132         (hsa-runtime): New configure option.
6133         (hsa-runtime-include): Likewise.
6134         (hsa-runtime-lib): Likewise.
6135         (PLUGIN_HSA): New substitution variable.
6136         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
6137         configure options.
6138         (PLUGIN_HSA_CPPFLAGS): Likewise.
6139         (PLUGIN_HSA_LDFLAGS): Likewise.
6140         (PLUGIN_HSA_LIBS): Likewise.
6141         Check that we have access to HSA run-time.
6142         * libgomp-plugin.h (offload_target_type): New element
6143         OFFLOAD_TARGET_TYPE_HSA.
6144         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
6145         args.
6146         (bool gomp_create_target_task): Updated.
6147         (gomp_device_descr): Extra parameter of run_func and async_run_func,
6148         new field can_run_func.
6149         * libgomp_g.h (GOMP_target_ext): Update prototype.
6150         * oacc-host.c (host_run): Added a new parameter args.
6151         * target.c (calculate_firstprivate_requirements): New function.
6152         (copy_firstprivate_data): Likewise.
6153         (gomp_target_fallback_firstprivate): Use them.
6154         (gomp_target_unshare_firstprivate): New function.
6155         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
6156         devices.
6157         (GOMP_target): Do host fallback for all shared memory devices.  Do not
6158         pass any args to plugins.
6159         (GOMP_target_ext): Introduce device-specific argument parameter args.
6160         Allow host fallback if device shares memory.  Do not remap data if
6161         device has shared memory.
6162         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
6163         like host fallback for mappings.
6164         (GOMP_target_data): Treat shared memory devices like host fallback.
6165         (GOMP_target_data_ext): Likewise.
6166         (GOMP_target_update): Likewise.
6167         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
6168         gomp_create_target_task.
6169         (GOMP_target_enter_exit_data): Likewise.
6170         (omp_target_alloc): Treat shared memory devices like host fallback.
6171         (omp_target_free): Likewise.
6172         (omp_target_is_present): Likewise.
6173         (omp_target_memcpy): Likewise.
6174         (omp_target_memcpy_rect): Likewise.
6175         (omp_target_associate_ptr): Likewise.
6176         (gomp_load_plugin_for_device): Also load can_run.
6177         * task.c (GOMP_PLUGIN_target_task_completion): Free
6178         firstprivate_copies.
6179         (gomp_create_target_task): Accept new argument args and store it to
6180         ttask.
6181         * plugin/plugin-hsa.c: New file.
6183 2016-01-18  Tom de Vries  <tom@codesourcery.com>
6185         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
6186         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6187         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6188         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6189         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6190         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6191         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6192         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6193         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6194         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6195         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6196         Same.
6197         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6198         Same.
6199         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6200         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6201         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6202         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6203         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6204         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6205         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6206         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6207         Same.
6208         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6210 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
6212         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6214 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
6216         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6218 2016-01-12  James Norris  <jnorris@codesourcery.com>
6220         * libgomp.texi: Updates for OpenACC.
6222 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
6224         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6226 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
6228         PR fortran/66680
6229         * testsuite/libgomp.fortran/pr66680.f90: New test.
6231 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
6233         PR middle-end/68960
6234         * testsuite/libgomp.c/pr68960.c: New test.
6236 2016-01-06  Nathan Sidwell  <nathan@acm.org>
6238         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6239         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6241 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
6243         Update copyright years.
6245         * libgomp.texi: Bump @copying's copyright year.
6247 2015-12-31  Nathan Sidwell  <nathan@acm.org>
6249         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6250         dg-additional-options syntax.
6251         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6252         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6253         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6254         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6255         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6256         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6257         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6258         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6259         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6260         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6261         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6262         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6263         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6264         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6265         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6266         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6267         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6268         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6270 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
6272         * libgomp.h (REFCOUNT_LINK): Define.
6273         (struct splay_tree_key_s): Add link_key.
6274         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6275         Replace target address of the pointer with target address of newly
6276         mapped object in the splay tree.  Set link pointer on target to the
6277         device address of the mapped object.
6278         (gomp_unmap_vars): Restore target address of the pointer in the splay
6279         tree for REFCOUNT_LINK objects after unmapping.
6280         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6281         declare target link" objects.
6282         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
6283         "omp declare target link" objects, which were mapped for the image.
6284         (gomp_exit_data): Restore target address of the pointer in the splay
6285         tree for REFCOUNT_LINK objects after unmapping.
6286         * testsuite/libgomp.c/target-link-1.c: New file.
6288 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
6290         * libgomp.h (gomp_device_state): New enum.
6291         (struct gomp_device_descr): Replace is_initialized with state.
6292         (gomp_fini_device): Remove declaration.
6293         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6294         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6295         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
6296         (acc_set_device_type): Use state instead of is_initialized.
6297         (acc_set_device_num): Likewise.
6298         * target.c (resolve_device): Use state instead of is_initialized.
6299         Do not initialize finalized device.
6300         (gomp_map_vars): Do nothing if device is finalized.
6301         (gomp_unmap_vars): Likewise.
6302         (gomp_update): Likewise.
6303         (GOMP_offload_register_ver): Use state instead of is_initialized.
6304         (GOMP_offload_unregister_ver): Likewise.
6305         (gomp_init_device): Likewise.
6306         (gomp_unload_device): Likewise.
6307         (gomp_fini_device): Remove.
6308         (gomp_get_target_fn_addr): Do nothing if device is finalized.
6309         (GOMP_target): Go to host fallback if device is finalized.
6310         (GOMP_target_ext): Likewise.
6311         (gomp_exit_data): Do nothing if device is finalized.
6312         (gomp_target_task_fn): Go to host fallback if device is finalized.
6313         (gomp_target_fini): New static function.
6314         (gomp_target_init): Use state instead of is_initialized.
6315         Call gomp_target_fini at exit.
6317 2015-12-09  Tom de Vries  <tom@codesourcery.com>
6319         PR tree-optimization/68716
6320         * testsuite/libgomp.c/omp-nested-2.c: New test.
6322 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
6324         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6325         target openacc_nvidia_accel_selected.
6326         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6327         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6328         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6329         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6331 2015-12-01  Julian Brown  <julian@codesourcery.com>
6332             James Norris  <James_Norris@mentor.com>
6334         * oacc-parallel.c (GOACC_host_data): New function.
6335         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6336         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6337         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6338         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6339         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6340         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6341         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6343 2015-11-30  James Norris  <jnorris@codesourcery.com>
6344             Cesar Philippidis  <cesar@codesourcery.com>
6346         libgomp/
6347         * libgomp.oacc-fortran/routine-5.f90: New test.
6348         * libgomp.oacc-fortran/routine-7.f90: New test.
6349         * libgomp.oacc-fortran/routine-9.f90: New test.
6351 2015-11-30  Tom de Vries  <tom@codesourcery.com>
6353         PR tree-optimization/46032
6354         * testsuite/libgomp.c/pr46032.c: New test.
6356 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
6358         PR libgomp/68579
6359         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6360         (gomp_create_target_task): Call it before freeing
6361         GOMP_TARGET_TASK_DATA tasks.
6363         PR c/63326
6364         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6365         in between case label and OpenMP standalone directives.
6366         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6368 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
6370         * configure: Regenerate.
6372 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
6374         * testsuite/libgomp.c/target-35.c: New test.
6376 2015-11-22  James Norris  <jnorris@codesourcery.com>
6377             Cesar Philippidis  <cesar@codesourcery.com>
6379         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6380         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6381         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6382         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6383         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6385 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
6387         PR middle-end/68221
6388         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6389         * testsuite/libgomp.c/reduction-12.c: Likewise.
6390         * testsuite/libgomp.c++/reduction-11.C: Likewise.
6391         * testsuite/libgomp.c++/reduction-12.C: Likewise.
6393 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
6395         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6396         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6397         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6398         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6399         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6400         and fix.
6401         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6402         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6404 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
6406         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6407         worker & gang cases.
6408         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6410 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
6412         * config/nvptx/priority_queue.c: New file.
6414 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
6416         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6417         sections.
6419 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
6420             Aldy Hernandez  <aldyh@redhat.com>
6421             Ilya Verbin  <ilya.verbin@intel.com>
6423         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6424         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6425         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6426         iterators or IV by chunk size.
6427         * parallel.c (gomp_resolve_num_threads): Don't assume that
6428         if thr->ts.team is non-NULL, then pool must be non-NULL.
6429         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6430         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6431         GOMP_PLUGIN_target_task_completion.
6432         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6433         * Makefile.in: Regenerate.
6434         * libgomp.h: Shuffle prototypes and forward definitions around so
6435         priority queues can be defined.
6436         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6437         (enum gomp_target_task_state): New enum.
6438         (struct gomp_target_task): Add state, tgt, task and team fields.
6439         (gomp_create_target_task): Change return type to bool, add
6440         state argument.
6441         (gomp_target_task_fn): Change return type to bool.
6442         (struct gomp_device_descr): Add async_run_func.
6443         (struct gomp_task): Remove children, next_child, prev_child,
6444         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6445         Add pnode field.
6446         (struct gomp_taskgroup): Remove children.
6447         Add taskgroup_queue.
6448         (struct gomp_team): Change task_queue type to a priority queue.
6449         (splay_compare): Define inline.
6450         (priority_queue_offset): New.
6451         (priority_node_to_task): New.
6452         (task_to_priority_node): New.
6453         * oacc-mem.c: Do not include splay-tree.h.
6454         * priority_queue.c: New file.
6455         * priority_queue.h: New file.
6456         * splay-tree.c: Do not include splay-tree.h.
6457         (splay_tree_foreach_internal): New.
6458         (splay_tree_foreach): New.
6459         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6460         (splay_tree_callback): Define typedef.
6461         * target.c (splay_compare): Move to libgomp.h.
6462         (GOMP_target): Don't adjust *thr in any way around running offloaded
6463         task.
6464         (GOMP_target_ext): Likewise.  Handle target nowait.
6465         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6466         return value from gomp_create_target_task, if false, fallthrough
6467         as if no dependencies exist.
6468         (gomp_target_task_fn): Change return type to bool, return true
6469         if the task should have another part scheduled later.  Handle
6470         target nowait.
6471         (gomp_load_plugin_for_device): Initialize async_run.
6472         * task.c (gomp_init_task): Initialize children_queue.
6473         (gomp_clear_parent_in_list): New.
6474         (gomp_clear_parent_in_tree): New.
6475         (gomp_clear_parent): Handle priorities.
6476         (GOMP_task): Likewise.
6477         (priority_queue_move_task_first,
6478         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6479         New functions.
6480         (gomp_create_target_task): Use priority queues.  Change return type
6481         to bool, add state argument, return false if for async
6482         {{enter,exit} data,update} constructs no dependencies need to be
6483         waited for, handle target nowait.  Set task->fn to NULL instead of
6484         gomp_target_task_fn.
6485         (verify_children_queue): Remove.
6486         (priority_list_upgrade_task): New.
6487         (priority_queue_upgrade_task): New.
6488         (verify_task_queue): Remove.
6489         (priority_list_downgrade_task): New.
6490         (priority_queue_downgrade_task): New.
6491         (gomp_task_run_pre): Use priority queues.
6492         Abstract code out to priority_queue_downgrade_task.
6493         (gomp_task_run_post_handle_dependers): Use priority queues.
6494         (gomp_task_run_post_remove_parent): Likewise.
6495         (gomp_task_run_post_remove_taskgroup): Likewise.
6496         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
6497         tasks specially.
6498         (GOMP_taskwait): Likewise.
6499         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
6500         priority-queue_upgrade_task.
6501         (GOMP_taskgroup_start): Use priority queues.
6502         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
6503         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
6504         barrier.
6505         * taskloop.c (GOMP_taskloop): Handle priorities.
6506         * team.c (gomp_new_team): Call priority_queue_init.
6507         (free_team): Call priority_queue_free.
6508         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6509         team created for target nowait in implicit parallel region.
6510         (gomp_team_start): For nested check, test thr->ts.level instead of
6511         thr->ts.team != NULL.
6512         * testsuite/libgomp.c/doacross-3.c: New test.
6513         * testsuite/libgomp.c/ordered-5.c: New test.
6514         * testsuite/libgomp.c/priority.c: New test.
6515         * testsuite/libgomp.c/target-31.c: New test.
6516         * testsuite/libgomp.c/target-32.c: New test.
6517         * testsuite/libgomp.c/target-33.c: New test.
6518         * testsuite/libgomp.c/target-34.c: New test.
6520 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
6522         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6524         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6525         loop is sequential.
6527 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
6529         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6530         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6532 2015-11-12  James Norris  <jnorris@codesourcery.com>
6533             Joseph Myers  <joseph@codesourcery.com>
6535         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6536         * oacc-parallel.c (GOACC_declare): New function.
6537         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6538         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6539         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6540         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6541         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6543 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
6545         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6547 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
6549         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6550         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6552 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6554         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6555         inadvertent commit.
6557 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6559         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6560         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6561         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6562         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6563         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6565 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
6567         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6568         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6570 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
6571             Ilya Verbin  <ilya.verbin@intel.com>
6573         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6574         GOMP_loop_nonmonotonic_dynamic_start,
6575         GOMP_loop_nonmonotonic_guided_next,
6576         GOMP_loop_nonmonotonic_guided_start,
6577         GOMP_loop_ull_nonmonotonic_dynamic_next,
6578         GOMP_loop_ull_nonmonotonic_dynamic_start,
6579         GOMP_loop_ull_nonmonotonic_guided_next,
6580         GOMP_loop_ull_nonmonotonic_guided_start,
6581         GOMP_parallel_loop_nonmonotonic_dynamic,
6582         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6583         (GOMP_target_41): Renamed to ...
6584         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
6585         arguments.
6586         (GOMP_target_data_41): Renamed to ...
6587         (GOMP_target_data_ext): ... this.
6588         (GOMP_target_update_41): Renamed to ...
6589         (GOMP_target_update_ext): ... this.
6590         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6591         GOMP_target_data_ext and GOMP_target_update_ext instead of
6592         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6593         Export GOMP_loop_nonmonotonic_dynamic_next,
6594         GOMP_loop_nonmonotonic_dynamic_start,
6595         GOMP_loop_nonmonotonic_guided_next,
6596         GOMP_loop_nonmonotonic_guided_start,
6597         GOMP_loop_ull_nonmonotonic_dynamic_next,
6598         GOMP_loop_ull_nonmonotonic_dynamic_start,
6599         GOMP_loop_ull_nonmonotonic_guided_next,
6600         GOMP_loop_ull_nonmonotonic_guided_start,
6601         GOMP_parallel_loop_nonmonotonic_dynamic and
6602         GOMP_parallel_loop_nonmonotonic_guided.
6603         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6604         GOMP_parallel_loop_nonmonotonic_guided,
6605         GOMP_loop_nonmonotonic_dynamic_start,
6606         GOMP_loop_nonmonotonic_guided_start,
6607         GOMP_loop_nonmonotonic_dynamic_next,
6608         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6609         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6610         GOMP_loop_ull_nonmonotonic_guided_start,
6611         GOMP_loop_ull_nonmonotonic_dynamic_next,
6612         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6613         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6614         functions.
6615         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
6616         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6617         Use gomp_map_val function.
6618         (gomp_target_fallback_firstprivate): New static function.
6619         (GOMP_target_41): Renamed to ...
6620         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
6621         arguments.  Move firstprivate fallback handling into a new
6622         function.
6623         (GOMP_target_data_41): Renamed to ...
6624         (GOMP_target_data_ext): ... this.
6625         (GOMP_target_update_41): Renamed to ...
6626         (GOMP_target_update_ext): ... this.
6627         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6628         gomp_map_0len_lookup instead of gomp_map_lookup.
6629         (omp_target_is_present): Use gomp_map_0len_lookup instead of
6630         gomp_map_lookup.
6631         * testsuite/libgomp.c/target-28.c: Likewise.
6632         * testsuite/libgomp.c/monotonic-1.c: New test.
6633         * testsuite/libgomp.c/monotonic-2.c: New test.
6634         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6635         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6636         * testsuite/libgomp.c/pr66199-5.c: New test.
6637         * testsuite/libgomp.c/pr66199-6.c: New test.
6638         * testsuite/libgomp.c/pr66199-7.c: New test.
6639         * testsuite/libgomp.c/pr66199-8.c: New test.
6640         * testsuite/libgomp.c/pr66199-9.c: New test.
6641         * testsuite/libgomp.c/reduction-11.c: New test.
6642         * testsuite/libgomp.c/reduction-12.c: New test.
6643         * testsuite/libgomp.c/reduction-13.c: New test.
6644         * testsuite/libgomp.c/reduction-14.c: New test.
6645         * testsuite/libgomp.c/reduction-15.c: New test.
6646         * testsuite/libgomp.c/target-12.c (main): Adjust for
6647         omp_target_is_present change for one-past-last element.
6648         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6649         the same var is both mapped and privatized.
6650         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6651         handling of zero-length array sections.
6652         * testsuite/libgomp.c/target-28.c: New test.
6653         * testsuite/libgomp.c/target-29.c: New test.
6654         * testsuite/libgomp.c/target-30.c: New test.
6655         * testsuite/libgomp.c/target-teams-1.c: New test.
6656         * testsuite/libgomp.c++/member-6.C: New test.
6657         * testsuite/libgomp.c++/member-7.C: New test.
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-3.C: New test.
6663         * testsuite/libgomp.c++/pr66199-4.C: New test.
6664         * testsuite/libgomp.c++/pr66199-5.C: New test.
6665         * testsuite/libgomp.c++/pr66199-6.C: New test.
6666         * testsuite/libgomp.c++/pr66199-7.C: New test.
6667         * testsuite/libgomp.c++/pr66199-8.C: New test.
6668         * testsuite/libgomp.c++/pr66199-9.C: New test.
6669         * testsuite/libgomp.c++/reduction-11.C: New test.
6670         * testsuite/libgomp.c++/reduction-12.C: New test.
6671         * testsuite/libgomp.c++/target-13.C: New test.
6672         * testsuite/libgomp.c++/target-14.C: New test.
6673         * testsuite/libgomp.c++/target-15.C: New test.
6674         * testsuite/libgomp.c++/target-16.C: New test.
6675         * testsuite/libgomp.c++/target-17.C: New test.
6676         * testsuite/libgomp.c++/target-18.C: New test.
6677         * testsuite/libgomp.c++/target-19.C: New test.
6679 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6681         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6682         and reduction copy.
6683         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6684         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6685         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6686         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6687         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6688         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6689         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6690         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6691         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6692         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6693         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6694         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6695         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6696         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6698 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6700         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6701         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6702         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6703         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6704         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6705         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6706         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6707         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6709 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
6711         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6712         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6713         (GOMP_OFFLOAD_openacc_parallel): Likewise.
6714         * oacc-host.c (host_openacc_exec): Likewise.
6715         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6717 2015-11-03  Julian Brown  <julian@codesourcery.com>
6718             Thomas Schwinge  <thomas@codesourcery.com>
6720         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6721         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6722         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6723         Likewise.
6724         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6725         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6727 2015-11-03  James Norris  <jnorris@codesourcery.com>
6729         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6730         file.
6731         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6732         Likewise.
6733         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6734         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6735         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6736         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6737         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6739 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
6741         * openacc.h (enum acc_device_t): Reformat. Ensure layout
6742         compatibility.
6743         (enum acc_async_t): Reformat.
6744         (acc_on_device): Declare compatible with builtin and provide C++
6745         wrapper.
6746         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6748 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
6749             Cesar Philippidis  <cesar@codesourcery.com>
6751         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6752         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6753         ... this.  Add a description of the test at the top of the file.
6754         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6755         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6756         ... this.  Add a description of the test at the top of the file.
6758 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
6760         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6761         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6762         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6763         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6764         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6765         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6767 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6769         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6770         dimensions.
6772 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
6774         PR testsuite/68063
6775         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6777 2015-10-27  James Norris  <jnorris@codesourcery.com>
6779         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6780         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6782 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
6784         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6785         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6787         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6788         acc_device_nvidia usage.
6789         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6790         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6791         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6793         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6794         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6796         PR libgomp/66518
6797         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6799         PR libgomp/65437
6800         PR libgomp/66518
6801         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6802         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6804 2015-10-23  Tom de Vries  <tom@codesourcery.com>
6806         PR testsuite/68063
6807         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6809 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
6811         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6812         vector_length.
6813         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6815 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
6816             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
6818         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6819         to 0 when mapnum is 0.
6821 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6823         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6824         Cast to int from int32_t.
6826 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
6827             Aldy Hernandez  <aldyh@redhat.com>
6828             Ilya Verbin  <ilya.verbin@intel.com>
6830         * config/linux/affinity.c (omp_get_place_num_procs,
6831         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6832         * config/linux/doacross.h: New file.
6833         * config/posix/affinity.c (omp_get_place_num_procs,
6834         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6835         * config/posix/doacross.h: New file.
6836         * env.c: Include gomp-constants.h.
6837         (struct gomp_task_icv): Rename run_sched_modifier to
6838         run_sched_chunk_size.
6839         (gomp_max_task_priority_var): New variable.
6840         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6841         (handle_omp_display_env): Change _OPENMP value from 201307 to
6842         201511.  Print OMP_MAX_TASK_PRIORITY.
6843         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6844         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6845         chunk_size and run_sched_modifier to run_sched_chunk_size.
6846         (omp_get_max_task_priority, omp_get_initial_device,
6847         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6848         omp_get_partition_place_nums): New functions.
6849         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6850         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6851         to chunk_size.
6852         (omp_get_num_places_, omp_get_place_num_procs_,
6853         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6854         omp_get_place_proc_ids_8_, omp_get_place_num_,
6855         omp_get_partition_num_places_, omp_get_partition_place_nums_,
6856         omp_get_partition_place_nums_8_, omp_get_initial_device_,
6857         omp_get_max_task_priority_): New functions.
6858         * libgomp_g.h (GOMP_loop_doacross_static_start,
6859         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6860         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6861         GOMP_loop_ull_doacross_dynamic_start,
6862         GOMP_loop_ull_doacross_guided_start,
6863         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6864         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6865         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6866         GOMP_target_data_41, GOMP_target_update_41,
6867         GOMP_target_enter_exit_data): New prototypes.
6868         (GOMP_task): Add prototype argument.
6869         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6870         (struct gomp_doacross_work_share): New type.
6871         (struct gomp_work_share): Add doacross field.
6872         (struct gomp_task_icv): Rename run_sched_modifier to
6873         run_sched_chunk_size.
6874         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6875         GOMP_TASK_UNDEFERRED.  Add comments.
6876         (struct gomp_task_depend_entry): Add comments.
6877         (struct gomp_task): Likewise.
6878         (struct gomp_taskgroup): Likewise.
6879         (struct gomp_target_task): New type.
6880         (struct gomp_team): Add comment.
6881         (gomp_get_place_proc_ids_8, gomp_doacross_init,
6882         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6883         gomp_create_target_task, gomp_target_task_fn): New prototypes.
6884         (struct target_var_desc): New type.
6885         (struct target_mem_desc): Adjust comment.  Use struct
6886         target_var_desc instead of splay_tree_key for list.
6887         (REFCOUNT_INFINITY): Define.
6888         (struct splay_tree_key_s): Remove copy_from field.
6889         (struct gomp_device_descr): Add dev2dev_func field.
6890         (enum gomp_map_vars_kind): New enum.
6891         (gomp_map_vars): Add one argument.
6892         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6893         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6894         omp_get_place_num_procs, omp_get_place_num_procs_,
6895         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6896         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6897         omp_get_place_num_, omp_get_partition_num_places,
6898         omp_get_partition_num_places_, omp_get_partition_place_nums,
6899         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6900         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6901         omp_target_free, omp_target_is_present, omp_target_memcpy,
6902         omp_target_memcpy_rect, omp_target_associate_ptr and
6903         omp_target_disassociate_ptr.
6904         (GOMP_4.0.2): Renamed to ...
6905         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
6906         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6907         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6908         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6909         GOMP_loop_doacross_static_start, GOMP_doacross_post,
6910         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6911         GOMP_loop_ull_doacross_guided_start,
6912         GOMP_loop_ull_doacross_runtime_start,
6913         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6914         GOMP_doacross_ull_wait.
6915         * libgomp.texi: Document omp_get_max_task_priority.
6916         Rename modifier argument to chunk_size for omp_set_schedule and
6917         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
6918         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6919         to run_sched_chunk_size renaming.
6920         (GOMP_loop_ordered_runtime_start): Likewise.
6921         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6922         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6923         GOMP_parallel_loop_runtime_start): New functions.
6924         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6925         to run_sched_chunk_size renaming.
6926         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6927         GOMP_loop_doacross_guided_start): New functions or aliases.
6928         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6929         run_sched_modifier to run_sched_chunk_size renaming.
6930         (GOMP_loop_ull_ordered_runtime_start): Likewise.
6931         (gomp_loop_ull_doacross_static_start,
6932         gomp_loop_ull_doacross_dynamic_start,
6933         gomp_loop_ull_doacross_guided_start,
6934         GOMP_loop_ull_doacross_runtime_start): New functions.
6935         (GOMP_loop_ull_doacross_static_start,
6936         GOMP_loop_ull_doacross_dynamic_start,
6937         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6938         * oacc-mem.c (acc_map_data, present_create_copy,
6939         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6940         to gomp_map_vars.
6941         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6942         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6943         instead of false to gomp_map_vars.
6944         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
6945         * omp.h.in (omp_lock_hint_t): New type.
6946         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6947         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6948         omp_get_place_num, omp_get_partition_num_places,
6949         omp_get_partition_place_nums, omp_get_initial_device,
6950         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6951         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6952         omp_target_associate_ptr, omp_target_disassociate_ptr): New
6953         prototypes.
6954         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6955         (omp_lock_hint_none, omp_lock_hint_uncontended,
6956         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6957         omp_lock_hint_speculative): New parameters.
6958         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6959         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6960         omp_get_place_num, omp_get_partition_num_places,
6961         omp_get_partition_place_nums, omp_get_initial_device,
6962         omp_get_max_task_priority): New interfaces.
6963         (omp_set_schedule, omp_get_schedule): Rename modifier argument
6964         to chunk_size.
6965         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6966         (omp_lock_hint_none, omp_lock_hint_uncontended,
6967         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6968         omp_lock_hint_speculative): New parameters.
6969         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6970         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6971         omp_get_place_num, omp_get_partition_num_places,
6972         omp_get_partition_place_nums, omp_get_initial_device,
6973         omp_get_max_task_priority): New functions and subroutines.
6974         * ordered.c: Include stdarg.h and string.h.
6975         (MAX_COLLAPSED_BITS): Define.
6976         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6977         gomp_doacross_ull_init, GOMP_doacross_ull_post,
6978         GOMP_doacross_ull_wait): New functions.
6979         * target.c: Include errno.h.
6980         (resolve_device): If device is not initialized, call
6981         gomp_init_device on it.
6982         (gomp_map_lookup): New function.
6983         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6984         Don't bump refcount if REFCOUNT_INFINITY.  Handle
6985         GOMP_MAP_ALWAYS_TO_P.
6986         (get_kind): Rename is_openacc argument to short_mapkind.
6987         (gomp_map_pointer): Use gomp_map_lookup.
6988         (gomp_map_fields_existing): New function.
6989         (gomp_map_vars): Rename is_openacc argument to short_mapkind
6990         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
6991         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6992         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6993         Adjust for tgt->list changed type and copy_from living in there.
6994         (gomp_copy_from_async): Adjust for tgt->list changed type and
6995         copy_from living in there.
6996         (gomp_unmap_vars): Likewise.
6997         (gomp_update): Likewise.  Rename is_openacc argument to
6998         short_mapkind.  Don't fail if object is not mapped.
6999         (gomp_load_image_to_device): Initialize refcount to
7000         REFCOUNT_INFINITY.
7001         (gomp_target_fallback): New function.
7002         (gomp_get_target_fn_addr): Likewise.
7003         (GOMP_target): Adjust gomp_map_vars caller, use
7004         gomp_get_target_fn_addr and gomp_target_fallback.
7005         (GOMP_target_41): New function.
7006         (gomp_target_data_fallback): New function.
7007         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
7008         (GOMP_target_data_41): New function.
7009         (GOMP_target_update): Adjust gomp_update caller.
7010         (GOMP_target_update_41): New function.
7011         (gomp_exit_data, GOMP_target_enter_exit_data,
7012         gomp_target_task_fn, omp_target_alloc, omp_target_free,
7013         omp_target_is_present, omp_target_memcpy,
7014         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
7015         omp_target_associate_ptr, omp_target_disassociate_ptr,
7016         gomp_load_plugin_for_device): New functions.
7017         * task.c: Include gomp-constants.h.  Include taskloop.c
7018         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
7019         (gomp_task_handle_depend): New function.
7020         (GOMP_task): Use it.  Add priority argument.  Use
7021         gomp-constant.h constants instead of hardcoded numbers.
7022         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
7023         (gomp_create_target_task): New function.
7024         (verify_children_queue, verify_taskgroup_queue,
7025         verify_task_queue): New functions.
7026         (gomp_task_run_pre): Call verify_*_queue functions.
7027         If an upcoming tied task is about to leave the sibling or
7028         taskgroup queues in an invalid state, adjust appropriately.
7029         Remove taskgroup argument.  Add comments.
7030         (gomp_task_run_post_handle_dependers): Add comments.
7031         (gomp_task_run_post_remove_parent): Likewise.
7032         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
7033         (GOMP_taskwait): Likewise.  Add comments.
7034         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
7035         problem such that the first non parent_depends_on task does not
7036         end up at the end of the children queue.
7037         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
7038         GOMP_TASK_UNDEFERRED.
7039         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
7040         * taskloop.c: New file.
7041         * testsuite/lib/libgomp.exp
7042         (check_effective_target_offload_device_nonshared_as): New proc.
7043         * testsuite/libgomp.c/affinity-2.c: New test.
7044         * testsuite/libgomp.c/doacross-1.c: New test.
7045         * testsuite/libgomp.c/doacross-2.c: New test.
7046         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
7047         Add map clause to target.
7048         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
7049         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
7050         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
7051         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
7052         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
7053         Likewise.
7054         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
7055         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
7056         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
7057         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
7058         not defined.  Use those where needed.
7059         * testsuite/libgomp.c/for-4.c: New test.
7060         * testsuite/libgomp.c/for-5.c: New test.
7061         * testsuite/libgomp.c/for-6.c: New test.
7062         * testsuite/libgomp.c/linear-1.c: New test.
7063         * testsuite/libgomp.c/ordered-4.c: New test.
7064         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
7065         only allowed on the loop iterator.
7066         * testsuite/libgomp.c/pr66199-3.c: New test.
7067         * testsuite/libgomp.c/pr66199-4.c: New test.
7068         * testsuite/libgomp.c/reduction-7.c: New test.
7069         * testsuite/libgomp.c/reduction-8.c: New test.
7070         * testsuite/libgomp.c/reduction-9.c: New test.
7071         * testsuite/libgomp.c/reduction-10.c: New test.
7072         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
7073         map(tofrom:s).
7074         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
7075         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
7076         * testsuite/libgomp.c/target-11.c: New test.
7077         * testsuite/libgomp.c/target-12.c: New test.
7078         * testsuite/libgomp.c/target-13.c: New test.
7079         * testsuite/libgomp.c/target-14.c: New test.
7080         * testsuite/libgomp.c/target-15.c: New test.
7081         * testsuite/libgomp.c/target-16.c: New test.
7082         * testsuite/libgomp.c/target-17.c: New test.
7083         * testsuite/libgomp.c/target-18.c: New test.
7084         * testsuite/libgomp.c/target-19.c: New test.
7085         * testsuite/libgomp.c/target-20.c: New test.
7086         * testsuite/libgomp.c/target-21.c: New test.
7087         * testsuite/libgomp.c/target-22.c: New test.
7088         * testsuite/libgomp.c/target-23.c: New test.
7089         * testsuite/libgomp.c/target-24.c: New test.
7090         * testsuite/libgomp.c/target-25.c: New test.
7091         * testsuite/libgomp.c/target-26.c: New test.
7092         * testsuite/libgomp.c/target-27.c: New test.
7093         * testsuite/libgomp.c/taskloop-1.c: New test.
7094         * testsuite/libgomp.c/taskloop-2.c: New test.
7095         * testsuite/libgomp.c/taskloop-3.c: New test.
7096         * testsuite/libgomp.c/taskloop-4.c: New test.
7097         * testsuite/libgomp.c++/ctor-13.C: New test.
7098         * testsuite/libgomp.c++/doacross-1.C: New test.
7099         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
7100         Replace offload_device with offload_device_nonshared_as.
7101         * testsuite/libgomp.c++/for-12.C: New test.
7102         * testsuite/libgomp.c++/for-13.C: New test.
7103         * testsuite/libgomp.c++/for-14.C: New test.
7104         * testsuite/libgomp.c++/linear-1.C: New test.
7105         * testsuite/libgomp.c++/member-1.C: New test.
7106         * testsuite/libgomp.c++/member-2.C: New test.
7107         * testsuite/libgomp.c++/member-3.C: New test.
7108         * testsuite/libgomp.c++/member-4.C: New test.
7109         * testsuite/libgomp.c++/member-5.C: New test.
7110         * testsuite/libgomp.c++/ordered-1.C: New test.
7111         * testsuite/libgomp.c++/reduction-5.C: New test.
7112         * testsuite/libgomp.c++/reduction-6.C: New test.
7113         * testsuite/libgomp.c++/reduction-7.C: New test.
7114         * testsuite/libgomp.c++/reduction-8.C: New test.
7115         * testsuite/libgomp.c++/reduction-9.C: New test.
7116         * testsuite/libgomp.c++/reduction-10.C: New test.
7117         * testsuite/libgomp.c++/reference-1.C: New test.
7118         * testsuite/libgomp.c++/simd14.C: New test.
7119         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
7120         * testsuite/libgomp.c++/target-5.C: New test.
7121         * testsuite/libgomp.c++/target-6.C: New test.
7122         * testsuite/libgomp.c++/target-7.C: New test.
7123         * testsuite/libgomp.c++/target-8.C: New test.
7124         * testsuite/libgomp.c++/target-9.C: New test.
7125         * testsuite/libgomp.c++/target-10.C: New test.
7126         * testsuite/libgomp.c++/target-11.C: New test.
7127         * testsuite/libgomp.c++/target-12.C: New test.
7128         * testsuite/libgomp.c++/taskloop-1.C: New test.
7129         * testsuite/libgomp.c++/taskloop-2.C: New test.
7130         * testsuite/libgomp.c++/taskloop-3.C: New test.
7131         * testsuite/libgomp.c++/taskloop-4.C: New test.
7132         * testsuite/libgomp.c++/taskloop-5.C: New test.
7133         * testsuite/libgomp.c++/taskloop-6.C: New test.
7134         * testsuite/libgomp.c++/taskloop-7.C: New test.
7135         * testsuite/libgomp.c++/taskloop-8.C: New test.
7136         * testsuite/libgomp.c++/taskloop-9.C: New test.
7137         * testsuite/libgomp.fortran/affinity1.f90: New test.
7138         * testsuite/libgomp.fortran/affinity2.f90: New test.
7140 2015-10-13  Tom de Vries  <tom@codesourcery.com>
7142         PR tree-optimization/67476
7143         * testsuite/libgomp.c/autopar-3.c: New test.
7144         * testsuite/libgomp.c/autopar-4.c: New test.
7145         * testsuite/libgomp.c/autopar-5.c: New test.
7146         * testsuite/libgomp.c/autopar-6.c: New test.
7147         * testsuite/libgomp.c/autopar-7.c: New test.
7148         * testsuite/libgomp.c/autopar-8.c: New test.
7150 2015-10-12  James Norris  <jnorris@codesourcery.com>
7152         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
7153         initializer.
7155 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
7157         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
7158         using load_gcc_lib.
7160 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
7162         * oacc-ptx.h: Remove file, moving its content into...
7163         * config/nvptx/fortran.c: ... here...
7164         * config/nvptx/oacc-init.c: ..., here...
7165         * config/nvptx/oacc-parallel.c: ..., and here.
7166         * config/nvptx/openacc.f90: New file.
7167         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
7168         (link_ptx): Don't link in predefined bits of PTX code.
7170 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
7171             Bernd Schmidt <bernds@codesourcery.com>
7173         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
7174         (struct targ_ptx_obj): New.
7175         (nvptx_tdata): Move earlier, change data format.
7176         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
7177         objects.
7178         (GOMP_OFFLOAD_load_image): Adjust.
7180 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
7182         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
7183         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7184         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7185         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7186         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7187         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7188         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7189         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7190         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7191         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7192         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7193         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7194         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7195         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7196         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7197         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7198         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7199         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7200         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7201         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7202         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7203         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7204         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7205         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7206         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7207         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7208         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7209         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7210         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7211         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7212         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7213         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7214         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7215         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7216         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7217         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7218         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7219         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7220         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7221         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7222         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7223         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7224         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7225         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7226         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7227         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7228         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7229         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7230         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7231         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7232         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7233         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7234         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7235         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7236         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7237         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7238         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7239         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7240         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7241         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7242         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7243         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7244         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7246 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7248         * oacc-init.c (acc_on_device): Force optimization level.
7250 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7252         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7253         (cuda_errlist): Delete.
7254         (cuda_error): Reimplement.
7256 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
7258         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7259         array.
7260         * libgomp.map (GOACC_parallel_keyed): New.
7261         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
7262         all callers.
7263         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
7264         and take keyed varargs list.  Adjust call to exec_func.
7265         (GOACC_parallel): Force host fallback.
7266         * libgomp_g.h (GOACC_parallel): Remove.
7267         (GOACC_parallel_keyed): Declare.
7268         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7269         (struct targ_gn_descriptor): Replace name field with launch field.
7270         (nvptx_exec): Lose separate geometry args, take array.  Process
7271         dynamic dimensions and adjust.
7272         (struct nvptx_tdata): Replace fn_names field with fn_descs.
7273         (GOMP_OFFLOAD_load_image): Adjust for change in function table
7274         data.
7275         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7276         passing.
7277         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7278         passing.
7280 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
7282         PR libgomp/67141
7283         * oacc-int.h (goacc_host_init): Add declaration.
7284         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7285         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7287 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
7288             Sebastian Pop  <s.pop@samsung.com>
7290         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7291         match o/p.
7292         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7293         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7294         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7295         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7296         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7298 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
7300         * configure.tgt: Add missing ;; in between nvptx and rtems
7301         snippets.
7303 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7305         * config/posix/pool.h (gomp_adjust_thread_attr): New.
7306         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7307         (gomp_thread_pool_reservoir): Add priority member.
7308         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7309         priority.
7310         (parse_thread_pools): Likewise.
7311         * team.c (gomp_team_start): Call configuration provided
7312         gomp_adjust_thread_attr(). Destroy thread attributes if
7313         necessary.
7314         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7316 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7318         * config/posix/pool.h: New.
7319         * config/rtems/pool.h: Likewise.
7320         * config/rtems/proc.c: Likewise.
7321         * libgomp.h (gomp_thread_destructor): Declare.
7322         * team.c: Include configuration provided "pool.h".
7323         (gomp_get_thread_pool): Define in configuration.
7324         (gomp_team_end): Call configuration defined
7325         gomp_release_thread_pool().
7327 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7329         * config/rtems/bar.c: New.
7330         * config/rtems/bar.h: Likewise.
7331         * config/rtems/mutex.c: Likewise.
7332         * config/rtems/mutex.h: Likewise.
7333         * config/rtems/sem.c: Likewise.
7334         * config/rtems/sem.h: Likewise.
7335         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7336         <sys/lock.h> header file.
7337         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7338         supported by Newlib.
7339         * configure: Regenerate.
7341 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7343         * team.c (gomp_new_thread_pool): Delete and move content to ...
7344         (gomp_get_thread_pool): ... new function.  Allocate and
7345         initialize thread pool on demand.
7346         (get_last_team): Use gomp_get_thread_pool().
7347         (gomp_team_start): Delete thread pool initialization.
7349 2015-09-03  Tom de Vries  <tom@codesourcery.com>
7351         PR tree-optimization/65637
7352         * testsuite/libgomp.c/autopar-2.c: New test.
7354 2015-08-29  Tom de Vries  <tom@codesourcery.com>
7356         PR tree-optimization/46193
7357         * testsuite/libgomp.c/pr46193.c: New test.
7359 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
7361         libgomp/
7362         * libgomp.map: Add 4.0.2 version.
7363         * target.c (offload_image_descr): Add version field.
7364         (gomp_load_image_to_device): Add version argument.  Adjust plugin
7365         call.  Improve load mismatch diagnostic.
7366         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
7367         call.
7368         (GOMP_offload_regster): Make stub function, move bulk to ...
7369         (GOMP_offload_register_ver): ... here.  Process version argument.
7370         (GOMP_offload_unregister): Make stub function, move bulk to ...
7371         (GOMP_offload_unregister_ver): ... here.  Process version argument.
7372         (gomp_init_device): Process version field.
7373         (gomp_unload_device): Process version field.
7374         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7375         macros.  Check plugin version.
7376         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
7377         loader and unloader types.
7378         * oacc-host.c: Include gomp-constants.h.
7379         (host_version): New.
7380         (host_load_image, host_unload_image): Adjust.
7381         (host_dispatch): Add host_version.
7382         * plugin/plugin-nvptx.c: Include gomp-constants.h.
7383         (GOMP_OFFLOAD_version): New.
7384         (GOMP_OFFLOAD_load_image): Add version arg and check it.
7385         (GOMP_OFFLOAD_unload_image): Likewise.
7386         * plugin/plugin-host.c: Include gomp-constants.h.
7387         (GOMP_OFFLOAD_version): New.
7388         (GOMP_OFFLOAD_load_image): Add version arg.
7389         (GOMP_OFFLOAD_unload_image): Likewise.
7391 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7393         PR tree-optimization/65468
7394         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7396 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7398         PR tree-optimization/65468
7399         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7401 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
7403         PR libgomp/66761
7404         PR libgomp/67303
7405         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7406         (gomp_iter_guided_next): Idem.
7407         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7408         (gomp_iter_ull_guided_next): Idem.
7409         * config/linux/wait.h (do_spin): Idem.
7411 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7413         * libgomp-plugin.h (enum offload_target_type): Remove
7414         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7415         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7416         * openacc.h (enum acc_device_t): Likewise.
7417         * openacc_lib.h: Likewise.
7418         * oacc-init.c (name_of_acc_device_t): Don't handle it.
7419         (acc_on_device): Just use __builtin_acc_on_device.
7420         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7421         of acc_on_device builtin.
7422         * plugin/plugin-host.h: Remove file.
7423         * plugin/plugin-host.c: Likewise, but salvage some content into...
7424         * oacc-host.c: ... this file.
7425         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7426         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7427         * Makefile.in: Regenerate.
7428         * configure: Likewise.
7429         * testsuite/lib/libgomp.exp
7430         (check_effective_target_openacc_host_nonshm_selected): Remove.
7431         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7432         ACC_DEVICE_TYPE=host_nonshm.
7433         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7434         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7435         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7436         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7437         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7438         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7440 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7441             Jakub Jelinek  <jakub@redhat.com>
7443         * config/nvptx/affinity.c: New file.
7444         * config/nvptx/alloc.c: Likewise.
7445         * config/nvptx/bar.c: Likewise.
7446         * config/nvptx/barrier.c: Likewise.
7447         * config/nvptx/critical.c: Likewise.
7448         * config/nvptx/env.c: Likewise.
7449         * config/nvptx/error.c: Likewise.
7450         * config/nvptx/fortran.c: Likewise.
7451         * config/nvptx/iter.c: Likewise.
7452         * config/nvptx/iter_ull.c: Likewise.
7453         * config/nvptx/libgomp-plugin.c: Likewise.
7454         * config/nvptx/lock.c: Likewise.
7455         * config/nvptx/loop.c: Likewise.
7456         * config/nvptx/loop_ull.c: Likewise.
7457         * config/nvptx/mutex.c: Likewise.
7458         * config/nvptx/oacc-async.c: Likewise.
7459         * config/nvptx/oacc-cuda.c: Likewise.
7460         * config/nvptx/oacc-host.c: Likewise.
7461         * config/nvptx/oacc-init.c: Likewise.
7462         * config/nvptx/oacc-mem.c: Likewise.
7463         * config/nvptx/oacc-parallel.c: Likewise.
7464         * config/nvptx/oacc-plugin.c: Likewise.
7465         * config/nvptx/omp-lock.h: Likewise.
7466         * config/nvptx/ordered.c: Likewise.
7467         * config/nvptx/parallel.c: Likewise.
7468         * config/nvptx/proc.c: Likewise.
7469         * config/nvptx/ptrlock.c: Likewise.
7470         * config/nvptx/sections.c: Likewise.
7471         * config/nvptx/sem.c: Likewise.
7472         * config/nvptx/single.c: Likewise.
7473         * config/nvptx/splay-tree.c: Likewise.
7474         * config/nvptx/target.c: Likewise.
7475         * config/nvptx/task.c: Likewise.
7476         * config/nvptx/team.c: Likewise.
7477         * config/nvptx/time.c: Likewise.
7478         * config/nvptx/work.c: Likewise.
7479         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7480         * configure: Regenerate.
7481         * configure.tgt (config_path): Set to "nvptx" for target
7482         nvptx*-*-*.
7484 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7486         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7488 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
7490         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7491         (cuda_errlist): Constify.
7492         (errmsg):  Move into ...
7493         (cuda_error): ... here.  Make smaller.
7494         (_XSTR, _STR): Delete.
7495         (cuda_synames): Delete.
7496         (verify_device_library): Delete.
7497         (nvptx_init): Don't call it.
7499 2015-07-28  Tom de Vries  <tom@codesourcery.com>
7501         * testsuite/libgomp.c/uns-outer-4.c: New test.
7503 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
7505         * testsuite/libgomp.c/pr66714.c: New test.
7507 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7509         PR libgomp/66950
7510         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7511         (fib_ref): New function.
7512         (fib): Correct corner cases in the recursion.
7513         (main): Replace the non-simd loop with fib_ref call.
7514         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7515         subroutine.
7516         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
7517         for the last array element value.  Replace the non-simd loop with
7518         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
7519         of the last array element with according Fibonacci sequence element.
7520         (fib): Correct corner cases in the recursion.
7522 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
7524         * target.c (gomp_offload_image_to_device): Rename to ...
7525         (gomp_load_image_to_device): ... here.
7526         (GOMP_offload_register): Adjust call.
7527         (gomp_init_device): Likewise.
7528         (gomp_unload_image_from_device): New.  Broken out of ...
7529         (GOMP_offload_unregister): ... here.  Call it.
7530         (gomp_unload_device): New.
7531         * libgomp.h (gomp_unload_device): Declare.
7532         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7533         mem maps.
7535 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
7537         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7538         wait=-specific if.
7539         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7540         !=0 condition.
7541         (goacc_waits): Move !num_waits handling to ...
7542         (GOACC_wait): ... here, the only caller that might have zero waits.
7544         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7545         (struct ptx_image_data): Move earlier, add fns field.
7546         (struct ptx_device): Add images and image_lock fields.
7547         (ptx_images, ptx_image_lock): Delete.
7548         (nvptx_open_device): Initialize images and image_lock fields.
7549         (nvptx_close_device): Destroy image_lock.
7550         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7551         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7552         fields.
7554 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
7556         * target.c (GOMP_offload_register): Use int for device type arg.
7557         (GOMP_offload_unregister): Likewise.
7559         * target.c (struct_offload_image_descr): Constify host_table.
7560         (gomp_offload_image_to_device): Likewise.
7561         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7563         * libgomp.h (gomp_device_descr): Constify target data arguments.
7564         * target.c (struct offload_image_descr): Constify target_data.
7565         (gomp_offload_image_to_device): Likewise.
7566         (GOMP_offload_register): Likewise.
7567         (GOMP_offload_unregister): Likewise.
7568         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7569         GOMP_OFFLOAD_unload_image): Constify target data.
7570         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7571         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7573 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
7575         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7576         Workaround driver library const error.
7577         (struct nvptx_tdata, nvptx_tdata_t): New.
7578         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7579         type.
7581 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7583         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7584         of EPS parameter from integer to real.
7585         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7586         type of EPS parameter from integer to real.
7588 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7590         * team.c (get_last_team): New.
7591         (gomp_new_team): Recycle last non-nested team if possible.
7592         (gomp_team_end): Move team work share list free lock destruction
7593         to ...
7594         (free_team): ... here.
7596 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7598         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7599         and ref from int to double.  Replaced their comparison with
7600         an inequality of their difference and EPS.
7601         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7602         comparison of pri and a reference number with an inequality of their
7603         difference and EPS.
7604         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7605         the comparison of sum and sum_ref with an inequality of their
7606         difference and EPS.
7607         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7608         the comparison of pri and a reference number with an inequality of
7609         their difference and EPS.
7611 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7613         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7614         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7615         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7616         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7617         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7618         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7619         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7620         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7621         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7622         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7623         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7624         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7625         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7626         variables.
7627         (vec_mult): Likewise.  Add #pragma omp taskwait.
7628         (main): Adjust caller.
7629         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7630         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7631         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7632         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7633         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7634         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7635         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7636         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7637         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7638         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7639         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7640         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7641         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7642         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7643         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7644         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7645         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7646         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7647         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7648         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7649         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7650         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7651         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7652         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7653         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7654         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7655         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7656         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7657         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7658         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7659         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7660         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7661         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7662         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7663         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7664         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7665         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7666         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7667         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7668         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7669         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7670         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7671         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7672         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7673         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7674         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7675         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7676         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7677         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7678         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7679         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7680         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7681         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7682         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7683         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7684         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7685         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7686         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7687         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7688         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7689         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7690         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7691         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7692         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7693         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7694         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7695         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7696         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7697         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7698         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7699         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7700         (vec_mult): Add !$omp taskwait.
7701         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7702         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7703         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7704         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7705         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7706         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7707         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7708         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7709         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7710         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7711         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7712         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7713         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7714         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7715         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7716         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7717         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7718         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7719         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7720         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7721         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7722         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7723         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7724         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7725         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7726         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7727         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7728         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7729         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7730         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7731         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7732         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7733         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7734         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7735         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7736         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7737         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7738         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7739         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7740         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7741         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7742         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7743         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7744         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7745         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7746         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7747         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7748         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7749         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7750         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7751         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7752         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7753         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7754         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7755         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7756         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7757         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7758         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7759         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7760         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7761         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7762         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7763         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7764         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7765         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7766         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7767         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7769 2015-07-10  Tom de Vries  <tom@codesourcery.com>
7771         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7772         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7774 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
7776         PR libgomp/65099
7777         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7778         in a 64-bit configuration.
7779         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7780         offloading testing if no such device is available.
7781         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7782         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7784 2015-07-08  Tom de Vries  <tom@codesourcery.com>
7786         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7787         second call to f.
7788         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7790 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7792         PR tree-optimization/66642
7793         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7794         iteration count case.
7795         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7796         function, factor out of ...
7797         (main): ... here.  Test low iteration count case.
7799 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7801         * libgomp.h (gomp_thread_pool): Comment last_team field.
7803 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
7805         * testsuite/libgomp.c++/pr66702-1.C: Require
7806         vect_simd_clones effective target.
7807         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7809 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7811         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7812         already set.  Use DEFAULT_CFLAGS in dg-runtest.
7813         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7814         "-O2".
7816 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7818         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7819         already set.  Use DEFAULT_CFLAGS in dg-runtest.
7820         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7821         * testsuite/libgomp.c++/pr64824.C: Same.
7822         * testsuite/libgomp.c++/pr64868.C: Same.
7823         * testsuite/libgomp.c++/pr66199-1.C: Same.
7824         * testsuite/libgomp.c++/pr66199-2.C: Same.
7825         * testsuite/libgomp.c++/target-2.C: Same.
7826         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7827         -std=<standard> option.
7828         * testsuite/libgomp.c++/udr-11.C: Same.
7829         * testsuite/libgomp.c++/udr-12.C: Same.
7830         * testsuite/libgomp.c++/udr-13.C: Same.
7831         * testsuite/libgomp.c++/udr-14.C: Same.
7832         * testsuite/libgomp.c++/udr-15.C: Same.
7833         * testsuite/libgomp.c++/udr-16.C: Same.
7834         * testsuite/libgomp.c++/udr-17.C: Same.
7835         * testsuite/libgomp.c++/udr-18.C: Same.
7836         * testsuite/libgomp.c++/udr-19.C: Same.
7837         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7838         * testsuite/libgomp.c++/simd-1.C: Same.
7839         * testsuite/libgomp.c++/simd-2.C: Same.
7840         * testsuite/libgomp.c++/simd-3.C: Same.
7841         * testsuite/libgomp.c++/simd-4.C: Same.
7842         * testsuite/libgomp.c++/simd-5.C: Same.
7843         * testsuite/libgomp.c++/simd-6.C: Same.
7844         * testsuite/libgomp.c++/simd-7.C: Same.
7845         * testsuite/libgomp.c++/simd-8.C: Same.
7846         * testsuite/libgomp.c++/simd-9.C: Same.
7847         * testsuite/libgomp.c++/simd10.C: Same.
7848         * testsuite/libgomp.c++/simd11.C: Same.
7849         * testsuite/libgomp.c++/simd12.C: Same.
7850         * testsuite/libgomp.c++/simd13.C: Same.
7852 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
7854         PR middle-end/66702
7855         * testsuite/libgomp.c++/pr66702-1.C: New test.
7856         * testsuite/libgomp.c++/pr66702-2.C: New test.
7858 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7860         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7861         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7862         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7863         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7865 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7867         PR tree-optimization/66652
7868         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7869         using restrict pointers.
7870         (main): Add arguments to calls to f.
7871         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7873 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
7875         * configure.ac: Fix check for header <sys/sysctl.h>.
7876         * configure: Regenerate.
7877         * config.h.in: Likewise.
7879 2015-06-23  Tom de Vries  <tom@codesourcery.com>
7881         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7882         abort.
7883         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7885 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
7887         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7888         acc_device_nvidia.
7890         PR libgomp/66518
7891         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7892         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7894 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7896         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
7897         dg-additional-options for any remaining options.
7898         * testsuite/libgomp.c/atomic-2.c: Same.
7899         * testsuite/libgomp.c/atomic-4.c: Same.
7900         * testsuite/libgomp.c/atomic-5.c: Same.
7901         * testsuite/libgomp.c/atomic-6.c: Same.
7902         * testsuite/libgomp.c/autopar-1.c: Same.
7903         * testsuite/libgomp.c/copyin-1.c: Same.
7904         * testsuite/libgomp.c/copyin-2.c: Same.
7905         * testsuite/libgomp.c/copyin-3.c: Same.
7906         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7907         * testsuite/libgomp.c/nestedfn-5.c: Same.
7908         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7909         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7910         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7911         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7912         * testsuite/libgomp.c/pr32362-1.c: Same.
7913         * testsuite/libgomp.c/pr32362-2.c: Same.
7914         * testsuite/libgomp.c/pr32362-3.c: Same.
7915         * testsuite/libgomp.c/pr39591-1.c: Same.
7916         * testsuite/libgomp.c/pr39591-2.c: Same.
7917         * testsuite/libgomp.c/pr39591-3.c: Same.
7918         * testsuite/libgomp.c/pr58392.c: Same.
7919         * testsuite/libgomp.c/pr58756.c: Same.
7920         * testsuite/libgomp.c/simd-1.c: Same.
7921         * testsuite/libgomp.c/simd-10.c: Same.
7922         * testsuite/libgomp.c/simd-11.c: Same.
7923         * testsuite/libgomp.c/simd-12.c: Same.
7924         * testsuite/libgomp.c/simd-13.c: Same.
7925         * testsuite/libgomp.c/simd-14.c: Same.
7926         * testsuite/libgomp.c/simd-15.c: Same.
7927         * testsuite/libgomp.c/simd-2.c: Same.
7928         * testsuite/libgomp.c/simd-3.c: Same.
7929         * testsuite/libgomp.c/simd-4.c: Same.
7930         * testsuite/libgomp.c/simd-5.c: Same.
7931         * testsuite/libgomp.c/simd-6.c: Same.
7932         * testsuite/libgomp.c/simd-7.c: Same.
7933         * testsuite/libgomp.c/simd-8.c: Same.
7934         * testsuite/libgomp.c/simd-9.c: Same.
7936 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7938         * testsuite/libgomp.c/pr35625.c: Fix typo.
7940 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7942         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7943         in dg-options.
7944         * testsuite/libgomp.c/atomic-3.c: Same.
7945         * testsuite/libgomp.c/debug-1.c: Same.
7946         * testsuite/libgomp.c/nqueens-1.c: Same.
7947         * testsuite/libgomp.c/pr26171.c: Same.
7948         * testsuite/libgomp.c/pr48591.c: Same.
7949         * testsuite/libgomp.c/pr64824.c: Same.
7950         * testsuite/libgomp.c/pr64868.c: Same.
7951         * testsuite/libgomp.c/pr66133.c: Same.
7952         * testsuite/libgomp.c/pr66199-1.c: Same.
7953         * testsuite/libgomp.c/pr66199-2.c: Same.
7954         * testsuite/libgomp.c/target-8.c: Same.
7956 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7958         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7959         -std={gnu99,c99}.
7960         * testsuite/libgomp.c/for-1.c: Same.
7961         * testsuite/libgomp.c/for-2.c: Same.
7962         * testsuite/libgomp.c/for-3.c: Same.
7963         * testsuite/libgomp.c/pr35625.c: Same.
7964         * testsuite/libgomp.c/pr39154.c: Same.
7965         * testsuite/libgomp.c/simd-16.c: Same.
7966         * testsuite/libgomp.c/simd-17.c: Same.
7968 2015-06-13  Tom de Vries  <tom@codesourcery.com>
7970         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7972 2015-06-13  Tom de Vries  <tom@codesourcery.com>
7974         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7975         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7976         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7977         (N): Define.
7978         (main): Use N instead of hardcoded constants.
7980 2015-06-05  Tom de Vries  <tom@codesourcery.com>
7982         merge from gomp4 branch:
7983         2015-05-28  Tom de Vries  <tom@codesourcery.com>
7985         PR tree-optimization/65443
7986         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7987         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7988         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7990 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7992         * testsuite/libgomp.graphite/bounds.c: Adjust for
7993         cleanup-tree-dump removal.
7994         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7995         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7996         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7997         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7998         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7999         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8000         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8001         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8002         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8003         * testsuite/libgomp.graphite/pr41118.c: Likewise.
8005 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
8007         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
8008         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
8009         (futex_wake) [!__x86_64__]: Ditto.
8011 2015-05-28  Julian Brown  <julian@codesourcery.com>
8013         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
8014         function comment. Only call gomp_fatal if new argument is true.
8015         (acc_dev_num_out_of_range): New function.
8016         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
8017         acc_dev_num_out_of_range as appropriate.
8018         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8019         (acc_get_device_num, acc_set_device_num): Update calls to
8020         resolve_device.
8021         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
8022         output.
8024 2015-05-28  Julian Brown  <julian@codesourcery.com>
8026         PR libgomp/65742
8027         * oacc-init.c (plugin/plugin-host.h): Include.
8028         (acc_on_device): Check whether we're in an offloaded region for
8029         host_nonshm
8030         plugin. Don't use __builtin_acc_on_device.
8031         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
8032         nonshm_exec flag in thread-local data.
8033         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
8034         data for host_nonshm plugin.
8035         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
8036         for host_nonshm plugin.
8037         * plugin/plugin-host.h: New.
8039 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
8041         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
8043 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
8045         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
8046         Declare as int.
8047         (FUTEX_PRIVATE_FLAG): Remove L suffix.
8048         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
8049         Declare as int.
8051 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
8053         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
8055 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
8057         * target.c (gomp_map_pointer): New function abstracting out
8058         GOMP_MAP_POINTER handling.
8059         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
8060         gomp_map_pointer().
8062 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
8064         PR middle-end/66199
8065         * testsuite/libgomp.c/pr66199-1.c: New test.
8066         * testsuite/libgomp.c/pr66199-2.c: New test.
8067         * testsuite/libgomp.c++/pr66199-1.C: New test.
8068         * testsuite/libgomp.c++/pr66199-2.C: New test.
8069         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
8070         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
8072 2015-05-19  Julian Brown  <julian@codesourcery.com>
8074         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
8075         on cuInit failure.
8077 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
8079         PR middle-end/66133
8080         * testsuite/libgomp.c/pr66133.c: New test.
8082 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
8084         * Makefile.in: Regenerated with automake-1.11.6.
8085         * aclocal.m4: Likewise.
8086         * config.h.in: Likewise.
8087         * configure: Likewise.
8088         * testsuite/Makefile.in: Likewise.
8090 2015-05-08  Jason Merrill  <jason@redhat.com>
8092         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
8093         _Complex.
8095         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
8097 2015-05-06  Julian Brown  <julian@codesourcery.com>
8099         * oacc-init.c (acc_device_lock): Add explanatory comment.
8100         (resolve_device): Add comment about locking requirement.
8101         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
8102         gomp_init_device and gomp_fini_device calls.
8103         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
8104         (acc_get_device_num, acc_set_device_num): Add locking around
8105         resolve_device and gomp_init_device calls.
8107 2015-05-06  Julian Brown  <julian@codesourcery.com>
8109         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
8110         goacc_thread_lock on error paths.
8111         * oacc-mem.c (lookup_host): Remove locking from function. Note
8112         locking requirement for caller in function comment.
8113         (lookup_dev): Likewise.
8114         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
8115         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
8116         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8117         Add locking.
8119 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
8121         PR testsuite/65205
8122         PR libgomp/65993
8123         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
8124         don't expect "0x" prefix for "%p" format specifier, don't expect
8125         "(nil)" for NULL pointer.
8126         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8127         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8128         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8129         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8130         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8131         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8132         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8133         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8134         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8135         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8136         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8137         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8138         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8139         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8140         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8141         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8142         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8143         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8144         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8145         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8146         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8147         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8148         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8149         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8150         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8151         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8152         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8153         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8154         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
8155         accurately specify what we're looking for.
8156         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8157         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8158         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8159         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8160         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8162 2015-04-30  James Norris  <jnorris@codesourcery.com>
8164         PR testsuite/65205
8165         * testsuite/lib/libgomp.exp
8166         (check_effective_target_openacc_host_selected)
8167         (check_effective_target_openacc_host_nonshm_selected): New
8168         procedures.
8169         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
8170         dg-shouldfail.
8171         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8172         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8173         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8174         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8175         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8176         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8177         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8178         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8179         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8180         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8181         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8182         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8183         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8184         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8185         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8186         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8187         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8188         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8189         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8190         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8191         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8192         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8193         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8194         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8195         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8196         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8197         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8198         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8199         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8200         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8201         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8202         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8203         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8204         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8205         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8206         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8207         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8208         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8209         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8210         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8211         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8212         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8213         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8215 2015-04-08  Julian Brown  <julian@codesourcery.com>
8217         * libgomp.h (target_mem_desc: Remove mem_map field.
8218         (acc_dispatch_t): Remove open_device_func, close_device_func,
8219         get_device_num_func, set_device_num_func, target_data members.
8220         Change create_thread_data_func argument to device number instead of
8221         generic pointer.
8222         * oacc-async.c (assert.h): Include.
8223         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8224         (acc_wait_all, acc_wait_all_async): Use current host thread's
8225         active device, not base_dev.
8226         * oacc-cuda.c (acc_get_current_cuda_device)
8227         (acc_get_current_cuda_context, acc_get_cuda_stream)
8228         (acc_set_cuda_stream): Likewise.
8229         * oacc-host.c (host_dispatch): Don't set open_device_func,
8230         close_device_func, get_device_num_func or set_device_num_func.
8231         * oacc-init.c (base_dev, init_key): Remove.
8232         (cached_base_dev): New.
8233         (name_of_acc_device_t): New.
8234         (acc_init_1): Initialise default-numbered device, not zeroth.
8235         (acc_shutdown_1): Close all devices of a given type.
8236         (goacc_destroy_thread): Don't use base_dev.
8237         (lazy_open, lazy_init, lazy_init_and_open): Remove.
8238         (goacc_attach_host_thread_to_device): New.
8239         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8240         (acc_get_num_devices): Don't use base_dev.
8241         (acc_set_device_type): Reimplement.
8242         (acc_get_device_type): Don't use base_dev.
8243         (acc_get_device_num): Tweak logic.
8244         (acc_set_device_num): Likewise.
8245         (acc_on_device): Use acc_get_device_type.
8246         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8247         (goacc_lazy_initialize): Reimplement with acc_init and
8248         goacc_attach_host_thread_to_device.
8249         * oacc-int.h (goacc_thread): Add base_dev field.
8250         (base_dev): Remove extern declaration.
8251         (goacc_attach_host_thread_to_device): Add prototype.
8252         * oacc-mem.c (acc_malloc): Use current thread's device instead of
8253         base_dev.
8254         (acc_free): Likewise.
8255         (acc_memcpy_to_device): Likewise.
8256         (acc_memcpy_from_device): Likewise.
8257         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8258         goacc_lazy_initialize (throughout).
8259         (GOACC_parallel): Use tgt_offset to locate target functions.
8260         * target.c (gomp_map_vars): Don't set tgt->mem_map.
8261         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8262         (gomp_load_plugin_for_device): Remove open_device, close_device,
8263         get_device_num, set_device_num openacc hook initialisation. Don't set
8264         openacc.target_data.
8265         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8266         (GOMP_OFFLOAD_openacc_close_device)
8267         (GOMP_OFFLOAD_openacc_get_device_num)
8268         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8269         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8270         to int.
8271         * plugin/plugin-nvptx.c (ptx_inited): Remove.
8272         (instantiated_devices, ptx_dev_lock): New.
8273         (struct ptx_image_data): New.
8274         (ptx_devices, ptx_images, ptx_image_lock): New.
8275         (fini_streams_for_device): Reorder cuStreamDestroy call.
8276         (nvptx_get_num_devices): Remove forward declaration.
8277         (nvptx_init): Change return type to bool.
8278         (nvptx_fini): Remove.
8279         (nvptx_attach_host_thread_to_device): New.
8280         (nvptx_open_device): Return struct ptx_device* instead of void*.
8281         (nvptx_close_device): Change argument type to struct ptx_device*,
8282         return type to void.
8283         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8284         (kernel_target_data, kernel_host_table): Remove static globals.
8285         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8286         (GOMP_OFFLOAD_init_device): Reimplement.
8287         (GOMP_OFFLOAD_fini_device): Likewise.
8288         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8289         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8290         (GOMP_OFFLOAD_host2dev): Use ORD argument.
8291         (GOMP_OFFLOAD_openacc_open_device)
8292         (GOMP_OFFLOAD_openacc_close_device)
8293         (GOMP_OFFLOAD_openacc_set_device_num)
8294         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8295         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8296         (device number).
8298         testsuite/
8299         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8301 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
8303         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8304         * libgomp.h (struct gomp_memory_mapping): Remove.
8305         (struct target_mem_desc): Change type of mem_map from
8306         gomp_memory_mapping * to splay_tree_s *.
8307         (struct gomp_device_descr): Remove register_image_func, get_table_func.
8308         Add load_image_func, unload_image_func.
8309         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8310         Remove offload_regions_registered.
8311         (gomp_init_tables): Remove.
8312         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8313         to splay_tree_s *.
8314         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8315         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8316         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8317         offload_regions_registered.
8318         Initialize load_image_func, unload_image_func, mem_map.root.
8319         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8320         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8321         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8322         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8323         gomp_memory_mapping *.  Use dev's lock and splay_tree.
8324         (lookup_dev): Use dev's lock.
8325         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8326         (acc_is_present): Likewise.
8327         (acc_map_data): Likewise.
8328         (acc_unmap_data): Likewise.  Use dev's lock.
8329         (present_create_copy): Likewise.
8330         (delete_copyout): Pass dev to lookup_host instead of mem_map.
8331         (update_dev_host): Likewise.
8332         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
8333         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8334         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8335         (GOMP_OFFLOAD_get_table): Remove
8336         (GOMP_OFFLOAD_load_image): New function.
8337         (GOMP_OFFLOAD_unload_image): New function.
8338         * target.c (register_lock): New mutex for offload image registration.
8339         (num_devices): Do not guard with PLUGIN_SUPPORT.
8340         (gomp_realloc_unlock): New static function.
8341         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
8342         before gomp_fatal.
8343         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8344         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
8345         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8346         mem_map's.
8347         (gomp_unmap_vars): Likewise.
8348         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
8349         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
8350         (gomp_offload_image_to_device): New static function.
8351         (GOMP_offload_register): Add mutex lock.
8352         Call gomp_offload_image_to_device for all initialized devices.
8353         Replace gomp_realloc with gomp_realloc_unlock.
8354         (GOMP_offload_unregister): New function.
8355         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
8356         get_table_func from the plugin with calls to init_device_func and
8357         gomp_offload_image_to_device.
8358         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8359         to splay_tree_s *.
8360         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
8361         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
8362         (GOMP_target_data): Do not call gomp_init_tables.
8363         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
8364         (gomp_load_plugin_for_device): Replace register_image and get_table
8365         with load_image and unload_image in DLSYM ().
8366         (gomp_register_images_for_device): Remove function.
8367         (gomp_target_init): Do not initialize current_device.mem_map.*,
8368         current_device.offload_regions_registered.
8369         Remove call to gomp_register_images_for_device.
8370         Do not free offload_images and num_offload_images.
8372 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
8374         PR fortran/65597
8375         * testsuite/libgomp.fortran/pr65597.f90: New test.
8377 2015-03-27  Tom de Vries  <tom@codesourcery.com>
8379         PR testsuite/65594
8380         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8381         (init, check): New function.
8382         (foo): Change return type to void.
8383         (main): Call init and check.
8385 2015-03-27  Tom de Vries  <tom@codesourcery.com>
8387         PR testsuite/65594
8388         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8389         (foo): Use M for non-inner loops to scale down test-case.
8391 2015-03-25  Kai Tietz  <ktietz@redhat.com>
8393         PR libgomp/64972
8394         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8395         (GOACC_data_start): Likewise.
8396         * target.c (gomp_map_vars): Likewise.
8398 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
8400         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8401         hppa*-*-hpux*.
8403 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
8405         * testsuite/libgomp.c/target-10.c: New test.
8406         * testsuite/libgomp.c++/target-4.C: New test.
8408 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
8410         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8411         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8413 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8415         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8416         * configure.ac (*-*-rtems*): Assume Pthread is supported.
8417         (pthread.h): Check for this header file.
8418         * configure: Regenerate.
8420 2015-02-25  Tom de Vries  <tom@codesourcery.com>
8422         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8423         (check_reduction_op, check_reduction_macro, max, min):
8424         Declare.
8425         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8426         function.
8427         (main): Use new functions.
8429 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
8431         * target.c (gomp_load_plugin_for_device): Use const char * instead of
8432         char * for variables holding dlerror return values.
8433         (DLSYM_OPT): Ditto.
8435 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
8437         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8439 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
8440             Cesar Philippidis  <cesar@codesourcery.com>
8442         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8443         GOACC_ctaid, and GOACC_nctaid routines.
8445 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
8447         PR c/64824
8448         * testsuite/libgomp.c/atomic-18.c: New test.
8449         * testsuite/libgomp.c++/atomic-16.C: New test.
8451 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
8453         PR c/64824
8454         PR c/64868
8455         * testsuite/libgomp.c/pr64824.c: New test.
8456         * testsuite/libgomp.c/pr64868.c: New test.
8457         * testsuite/libgomp.c++/pr64824.C: New test.
8458         * testsuite/libgomp.c++/pr64868.C: New test.
8460 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
8462         PR libgomp/64635
8463         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8464         Link with -lpthread.
8465         * config/aix/plugin-suffix.h: Delete.
8467 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
8469         PR libgomp/64635
8470         * configure.tgt (*-*-aix*): Use config_path "aix posix".
8471         (*-*-darwin*): Use config_path "bsd darwin posix".
8472         (*-*-hpux*): Use config_path "hpux posix".
8473         * target.c: Add include of plugin-suffix.h and use
8474         SONAME_SUFFIX macro.
8475         * config/aix/plugin-suffix.h: New file.
8476         * config/darwin/plugin-suffix.h: New file.
8477         * config/hpux/plugin-suffix.h: New file.
8478         * config/posix/plugin-suffix.h: New file.
8480 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
8482         PR middle-end/64734
8483         * libgomp.c/pr64734.c: New test.
8485 2015-01-23  Tom de Vries  <tom@codesourcery.com>
8487         PR libgomp/64672
8488         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8490 2015-01-23  Tom de Vries  <tom@codesourcery.com>
8492         PR libgomp/64707
8493         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8494         dg-options.
8496 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
8498         PR libgomp/64625
8499         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8500         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8501         formal parameter.  Update all users.
8502         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8503         Document unused formal parameter.
8505 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
8507         * oacc-parallel.c: Don't include <alloca.h>.
8508         (GOACC_parallel): Use gomp_alloca instead of alloca.
8510 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
8512         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8514 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
8515             James Norris  <jnorris@codesourcery.com>
8516             Tom de Vries  <tom@codesourcery.com>
8517             Julian Brown  <julian@codesourcery.com>
8518             Cesar Philippidis  <cesar@codesourcery.com>
8519             Nathan Sidwell  <nathan@codesourcery.com>
8520             Tobias Burnus  <burnus@net-b.de>
8522         * Makefile.am (search_path): Add $(top_srcdir)/../include.
8523         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8524         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8525         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8526         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8527         Include $(top_srcdir)/plugin/Makefrag.am.
8528         (nodist_libsubinclude_HEADERS): Add openacc.h.
8529         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8530         openacc.f90, openacc.mod, openacc_kinds.mod.
8531         (omp_lib.mod): Generalize into...
8532         (%.mod): ... this new rule.
8533         (openacc_kinds.mod, openacc.mod): New rules.
8534         * plugin/configfrag.ac: New file.
8535         * configure.ac: Move plugin/offloading support into it.  Include
8536         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
8537         * plugin/Makefrag.am: New file.
8538         * testsuite/Makefile.am (OFFLOAD_TARGETS)
8539         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8540         export.
8541         (libgomp-test-support.exp): New rule.
8542         (all-local): Depend on it.
8543         * Makefile.in: Regenerate.
8544         * testsuite/Makefile.in: Regenerate.
8545         * config.h.in: Likewise.
8546         * configure: Likewise.
8547         * configure.tgt: Harden shell syntax.
8548         * env.c: Include "oacc-int.h".
8549         (parse_acc_device_type): New function.
8550         (gomp_debug_var, goacc_device_type, goacc_device_num): New
8551         variables.
8552         (initialize_env): Initialize those.  Call
8553         goacc_runtime_initialize.
8554         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8555         (gomp_fatal): Call gomp_vfatal.
8556         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8557         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8558         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8559         (splay_tree_node, splay_tree, splay_tree_key)
8560         (struct target_mem_desc, struct splay_tree_key_s)
8561         (struct gomp_memory_mapping, struct acc_dispatch_t)
8562         (struct gomp_device_descr, gomp_acc_insert_pointer)
8563         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8564         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8565         (gomp_free_memmap, gomp_fini_device): New declarations.
8566         (gomp_vdebug, gomp_debug): New macros.
8567         Include "splay-tree.h".
8568         * libgomp.map (OACC_2.0): New symbol version.  Use for
8569         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8570         acc_set_device_type_h_, acc_get_device_type,
8571         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8572         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8573         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8574         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8575         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8576         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8577         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8578         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8579         acc_copyin_array_h_, acc_present_or_copyin,
8580         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8581         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8582         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8583         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8584         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8585         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8586         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8587         acc_update_device, acc_update_device_32_h_,
8588         acc_update_device_64_h_, acc_update_device_array_h_,
8589         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8590         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8591         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8592         acc_is_present_64_h_, acc_is_present_array_h_,
8593         acc_memcpy_to_device, acc_memcpy_from_device,
8594         acc_get_current_cuda_device, acc_get_current_cuda_context,
8595         acc_get_cuda_stream, acc_set_cuda_stream.
8596         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
8597         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8598         GOACC_update, GOACC_wait, GOACC_get_thread_num,
8599         GOACC_get_num_threads.
8600         (GOMP_PLUGIN_1.0): New symbol version.  Use for
8601         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8602         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8603         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8604         GOMP_PLUGIN_acc_thread.
8605         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8606         environment variable.
8607         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8608         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8609         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8610         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8611         (splay_tree_remove): New declarations.
8612         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8613         (splay_tree_remove, splay_tree_lookup): Move into...
8614         * splay-tree.c: ... this new file.
8615         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8616         (splay_tree_node, splay_tree, splay_tree_key)
8617         (struct target_mem_desc, struct splay_tree_key_s)
8618         (struct gomp_device_descr): Don't declare.
8619         (num_devices_openmp): New variable.
8620         (gomp_get_num_devices ): Use it.
8621         (gomp_init_targets_once): New function.
8622         (gomp_get_num_devices ): Use it.
8623         (get_kind, gomp_copy_from_async, gomp_free_memmap)
8624         (gomp_fini_device, gomp_register_image_for_device): New functions.
8625         (gomp_map_vars): Add devaddrs parameter.
8626         (gomp_update): Add mm parameter.
8627         (gomp_init_device): Move most of it into...
8628         (gomp_init_tables): ... this new function.
8629         (gomp_register_images_for_device): Remove function.
8630         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8631         Make them hidden instead of static.
8632         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8633         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8634         (GOMP_target_end_data, GOMP_target_update)
8635         (gomp_load_plugin_for_device, gomp_target_init): Update for
8636         OpenACC changes.
8637         * oacc-async.c: New file.
8638         * oacc-cuda.c: Likewise.
8639         * oacc-host.c: Likewise.
8640         * oacc-init.c: Likewise.
8641         * oacc-int.h: Likewise.
8642         * oacc-mem.c: Likewise.
8643         * oacc-parallel.c: Likewise.
8644         * oacc-plugin.c: Likewise.
8645         * oacc-plugin.h: Likewise.
8646         * oacc-ptx.h: Likewise.
8647         * openacc.f90: Likewise.
8648         * openacc.h: Likewise.
8649         * openacc_lib.h: Likewise.
8650         * plugin/plugin-host.c: Likewise.
8651         * plugin/plugin-nvptx.c: Likewise.
8652         * libgomp-plugin.c: Likewise.
8653         * libgomp-plugin.h: Likewise.
8654         * libgomp_target.h: Remove file after merging content into the
8655         former file.  Update all users.
8656         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8657         (offload_targets_s, offload_targets_s_openacc): New variables.
8658         (check_effective_target_openacc_nvidia_accel_present)
8659         (check_effective_target_openacc_nvidia_accel_selected): New
8660         procedures.
8661         (libgomp_init): Update for OpenACC changes.
8662         * testsuite/libgomp-test-support.exp.in: New file.
8663         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8664         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8665         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8666         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8667         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8668         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8669         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8670         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8671         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8672         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8673         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8674         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8675         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8676         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8677         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8678         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8679         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8680         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8681         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8682         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8683         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8684         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8685         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8686         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8687         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8688         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8689         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8690         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8691         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8692         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8693         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8694         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8695         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8696         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8697         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8698         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8699         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8700         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8701         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8702         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8703         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8704         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8705         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8706         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8707         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8708         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8709         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8710         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8711         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8712         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8713         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8714         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8715         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8716         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8717         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8718         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8719         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8720         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8721         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8722         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8723         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8724         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8725         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8726         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8727         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8728         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8729         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8730         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8731         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8732         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8733         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8734         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8735         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8736         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8737         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8738         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8739         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8740         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8741         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8742         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8743         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8744         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8745         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8746         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8747         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8748         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8749         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8750         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8751         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8752         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8753         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8754         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8755         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8756         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8757         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8758         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8759         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8760         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8761         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8762         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8763         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8764         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8765         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8766         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8767         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8768         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8769         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8770         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8771         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8772         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8773         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8774         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8775         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8776         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8777         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8778         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8779         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8780         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8781         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8782         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8783         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8784         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8785         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8786         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8787         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8788         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8789         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8790         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8791         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8792         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8793         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8794         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8795         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8796         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8797         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8798         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8799         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8800         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8801         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8802         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8803         Likewise.
8804         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8805         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8806         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8807         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8808         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8809         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8810         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8811         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8812         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8813         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8814         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8815         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8816         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8817         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8818         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8819         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8820         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8821         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8822         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8823         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8824         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8825         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8826         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8827         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8828         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8829         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8830         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8831         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8832         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8833         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8834         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8835         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8836         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8837         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8838         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8839         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8840         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8841         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8842         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8843         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8844         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8845         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8846         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8847         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8848         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8849         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8850         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8851         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8852         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8853         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8854         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8855         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8856         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8857         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8858         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8859         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8860         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8861         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8862         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8863         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8865 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
8866             Julian Brown  <julian@codesourcery.com>
8867             David Malcolm  <dmalcolm@redhat.com>
8869         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8870         to "GNU Offloading and Multi Processing Runtime Library".  Change
8871         all users.
8872         * configure: Regenerate.
8873         * libgomp.texi: Update.
8875 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
8877         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8878         "$tgt_dir/lib32".
8879         * configure: Regenerate.
8881         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8882         "intelmic" in $offload_targets.
8884 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
8886         Update copyright years.
8888         * libgomp.texi: Bump @copying's copyright year.
8890 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8892         * testsuite/lib/libgomp.exp: Load target-utils.exp.
8893         Move load of target-supports.exp earlier.
8895 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
8897         * testsuite/libgomp.c/target-9.c: New test.
8899 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
8901         * config.h.in: Regenerate.
8902         * configure: Regenerate.
8903         * configure.ac: Add GCC_CHECK_EMUTLS.
8904         * libgomp.h: Add check for USE_EMUTLS: this case
8905         is equal to HAVE_TLS.
8906         * team.c: Likewise.
8908 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
8910         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8912 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8913             Ilya Verbin  <ilya.verbin@intel.com>
8915         * testsuite/libgomp.c/target-critical-1.c: New test.
8917 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
8919         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8920         to dg-options unless expensive testing is on.
8921         (TESTITERS): Define to N if not defined.
8922         (main): Use TESTITERS instead of N.
8923         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8924         dg-additional-options depending on whether expensive testing is on.
8925         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8926         Decrease N to 100000 and CHUNKSZ to 10000.
8928 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
8930         PR fortran/63938
8931         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8932         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8934 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
8936         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8938 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
8940         PR bootstrap/63784
8941         * configure: Regenerated.
8943 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
8945         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8946         vect_simd_clones effective target.
8947         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8949 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
8951         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8952         of 32 as block_size.
8953         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8954         instead of 32 as block_size.
8956 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8957             Ilya Verbin  <ilya.verbin@intel.com>
8959         * Makefile.in: Regenerate.
8960         * configure: Regenerate.
8961         * configure.ac: Set up offload_additional_options,
8962         offload_additional_lib_paths and offload_targets.
8963         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8964         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8965         * testsuite/Makefile.in: Regenerate.
8966         * testsuite/lib/libgomp.exp (libgomp_init): Append
8967         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
8968         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
8969         build directory to LD_LIBRARY_PATH for intelmic offload targets.
8971 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8972             Ilya Verbin  <ilya.verbin@intel.com>
8973             Kirill Yukhin  <kirill.yukhin@intel.com>
8974             Ilya Tocar  <ilya.tocar@intel.com>
8976         * testsuite/lib/libgomp.exp
8977         (check_effective_target_offload_device): New.
8978         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8979         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8980         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8981         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8982         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8983         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8984         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8985         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8986         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8987         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8988         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8989         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8990         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8991         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8992         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8993         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8994         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8995         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8996         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8997         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8998         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8999         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
9000         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
9001         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
9002         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
9003         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
9004         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
9005         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
9006         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
9007         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
9008         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
9009         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
9010         * testsuite/libgomp.c/target-7.c: Fix test.
9011         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
9012         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
9013         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
9014         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
9015         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
9016         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
9017         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
9018         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
9019         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
9020         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
9021         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
9022         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
9023         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
9024         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
9025         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
9026         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
9027         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
9028         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
9029         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
9030         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
9031         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
9032         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
9033         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
9034         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
9035         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
9036         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
9037         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
9038         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
9039         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
9040         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
9041         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
9043 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
9044             Ilya Verbin  <ilya.verbin@intel.com>
9045             Thomas Schwinge  <thomas@codesourcery.com>
9046             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9048         * libgomp.map (GOMP_4.0.1): New symbol version.
9049         Add GOMP_offload_register.
9050         * libgomp_target.h: New file.
9051         * splay-tree.h: New file.
9052         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
9053         (gomp_target_init): New forward declaration.
9054         (gomp_is_initialized): New static variable.
9055         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
9056         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
9057         New structures.
9058         (offload_images, num_offload_images, devices, num_devices): New static
9059         variables.
9060         (splay_compare): New static function.
9061         (struct gomp_device_descr): New structure.
9062         (gomp_get_num_devices): Call gomp_target_init.
9063         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
9064         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
9065         (GOMP_offload_register): New function.
9066         (GOMP_target): Arrange for host callback to be performed in a separate
9067         initial thread and contention group, inheriting ICVs from
9068         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
9069         Add device initialization and lookup for target function in splay tree.
9070         (GOMP_target_data): Add device initialization and call gomp_map_vars.
9071         (GOMP_target_end_data): Call gomp_unmap_vars.
9072         (GOMP_target_update): Add device initialization and call gomp_update.
9073         (gomp_load_plugin_for_device, gomp_register_images_for_device)
9074         (gomp_target_init): New static functions.
9076 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
9077             Thomas Schwinge  <thomas@codesourcery.com>
9078             Ilya Verbin  <ilya.verbin@intel.com>
9079             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9081         * config.h.in: Regenerate.
9082         * configure: Regenerate.
9083         * configure.ac: Check for libdl, required for plugin support.
9084         (PLUGIN_SUPPORT): Define if plugins are supported.
9085         (enable_offload_targets): Support Intel MIC targets.
9086         (OFFLOAD_TARGETS): List of target names suitable for offloading.
9088 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9090         PR target/63610
9091         * configure: Regenerate.
9093 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9095         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
9097 2014-10-06  Marek Polacek  <polacek@redhat.com>
9099         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
9100         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
9101         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
9102         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9104 2014-10-06  Marek Polacek  <polacek@redhat.com>
9106         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
9107         * testsuite/libgomp.c/nqueens-1.c: Likewise.
9108         * testsuite/libgomp.c/pr26943-3.c: Likewise.
9109         * testsuite/libgomp.c/pr26943-4.c: Likewise.
9110         * testsuite/libgomp.c/pr36802-2.c: Likewise.
9111         * testsuite/libgomp.c/pr36802-3.c: Likewise.
9112         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
9113         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
9114         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
9115         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
9116         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
9117         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
9118         * testsuite/libgomp.c/omp-single-1.c: Likewise.
9119         * testsuite/libgomp.c/omp-single-2.c: Likewise.
9120         * testsuite/libgomp.c/omp_matvec.c: Likewise.
9121         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
9122         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
9123         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
9124         declarations.
9126 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
9128         PR libgomp/61200
9129         * testsuite/libgomp.c/pr61200.c: New test.
9131 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
9133         PR c++/63248
9134         * testsuite/libgomp.c++/pr63248.C: New test.
9136 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
9138         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
9139         is not zero, but taskgroup->children is NULL and there are
9140         any task->children, schedule those instead of waiting.
9141         * testsuite/libgomp.c/depend-6.c: New test.
9142         * testsuite/libgomp.c/depend-7.c: New test.
9143         * testsuite/libgomp.c/depend-8.c: New test.
9144         * testsuite/libgomp.c/depend-9.c: New test.
9145         * testsuite/libgomp.c/depend-10.c: New test.
9147 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
9149         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
9150         (struct gomp_taskwait): New type.
9151         (struct gomp_task): Add taskwait and parent_depends_on, remove
9152         in_taskwait and taskwait_sem fields.
9153         (gomp_finish_task): Don't destroy taskwait_sem.
9154         * task.c (gomp_init_task): Don't init in_taskwait, instead init
9155         taskwait and parent_depends_on.
9156         (GOMP_task): For if (0) tasks with depend clause that depend on
9157         earlier tasks don't defer them, instead call
9158         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
9159         Initialize redundant_out field, for redundant out entries just
9160         move them at the end of linked list instead of removing them
9161         completely, and set redundant_out flag instead of redundant.
9162         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
9163         that task.
9164         (gomp_task_run_post_handle_dependers): If parent is in
9165         gomp_task_maybe_wait_for_dependencies and newly runnable task
9166         is not parent_depends_on, queue it in parent->children linked
9167         list after all runnable tasks with parent_depends_on set.
9168         Adjust for addition of taskwait indirection.
9169         (gomp_task_run_post_remove_parent): If parent is in
9170         gomp_task_maybe_wait_for_dependencies and task to be removed
9171         is parent_depends_on, decrement n_depend and if needed awake
9172         parent.  Adjust for addition of taskwait indirection.
9173         (GOMP_taskwait): Adjust for addition of taskwait indirection.
9174         (gomp_task_maybe_wait_for_dependencies): New function.
9175         * testsuite/libgomp.c/depend-5.c: New test.
9177 2014-07-13  Tobias Burnus  <burnus@net-b.de>
9179         * testsuite/libgomp.fortran/pr34020.f90: Make compile
9180         with TS 18508/Fortran 2015.
9182 2014-07-06  Marek Polacek  <polacek@redhat.com>
9184         PR c/6940
9185         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9187 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
9189         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9190         matches regex $lang_source_re, add $lang_include_flags to options.
9191         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9192         * testsuite/libgomp.c++/c++.exp: Likewise.
9193         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
9194         and lang_include_flags instead of adding -fintrinsic-modules-path= to
9195         ALWAYS_CFLAGS.
9196         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9198 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
9200         * testsuite/libgomp.fortran/fortran.exp: Explain
9201         gfortran-dg-runtest usage.
9203 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
9205         * testsuite/libgomp.fortran/simd5.f90: New test.
9206         * testsuite/libgomp.fortran/simd6.f90: New test.
9207         * testsuite/libgomp.fortran/simd7.f90: New test.
9209 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
9211         * testsuite/libgomp.c/for-2.c: Define SC to static for
9212         #pragma omp for simd testing.
9213         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9214         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9215         SC macro.
9216         * testsuite/libgomp.c/simd-14.c: New test.
9217         * testsuite/libgomp.c/simd-15.c: New test.
9218         * testsuite/libgomp.c/simd-16.c: New test.
9219         * testsuite/libgomp.c/simd-17.c: New test.
9220         * testsuite/libgomp.c++/for-10.C: Define SC to static for
9221         #pragma omp for simd testing.
9222         * testsuite/libgomp.c++/simd10.C: New test.
9223         * testsuite/libgomp.c++/simd11.C: New test.
9224         * testsuite/libgomp.c++/simd12.C: New test.
9225         * testsuite/libgomp.c++/simd13.C: New test.
9227         * testsuite/libgomp.fortran/aligned1.f03: New test.
9228         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9229         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9230         tasks with !$omp parallel !$omp single.
9231         * testsuite/libgomp.fortran/target8.f90: New test.
9232         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9233         not to use trim in the combiner, instead call elemental function.
9234         (fn): New elemental function.
9235         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9236         Make elemental.
9237         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9238         omp_in): Likewise.
9239         * testsuite/libgomp.fortran/udr12.f90: New test.
9240         * testsuite/libgomp.fortran/udr13.f90: New test.
9241         * testsuite/libgomp.fortran/udr14.f90: New test.
9242         * testsuite/libgomp.fortran/udr15.f90: New test.
9244 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
9246         * omp_lib.f90.in (openmp_version): Set to 201307.
9247         * omp_lib.h.in (openmp_version): Likewise.
9248         * testsuite/libgomp.c/target-8.c: New test.
9249         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9250         and inbranch clauses.
9251         * testsuite/libgomp.fortran/depend-3.f90: New test.
9252         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9253         openmp_version.
9254         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9255         * testsuite/libgomp.fortran/target1.f90: New test.
9256         * testsuite/libgomp.fortran/target2.f90: New test.
9257         * testsuite/libgomp.fortran/target3.f90: New test.
9258         * testsuite/libgomp.fortran/target4.f90: New test.
9259         * testsuite/libgomp.fortran/target5.f90: New test.
9260         * testsuite/libgomp.fortran/target6.f90: New test.
9261         * testsuite/libgomp.fortran/target7.f90: New test.
9263 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
9265         PR fortran/60928
9266         * testsuite/libgomp.fortran/allocatable9.f90: New test.
9267         * testsuite/libgomp.fortran/allocatable10.f90: New test.
9268         * testsuite/libgomp.fortran/allocatable11.f90: New test.
9269         * testsuite/libgomp.fortran/allocatable12.f90: New test.
9270         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9271         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9272         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9273         * testsuite/libgomp.fortran/associate1.f90: New test.
9274         * testsuite/libgomp.fortran/associate2.f90: New test.
9275         * testsuite/libgomp.fortran/procptr1.f90: New test.
9277 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
9279         * testsuite/libgomp.fortran/simd1.f90: New test.
9280         * testsuite/libgomp.fortran/udr1.f90: New test.
9281         * testsuite/libgomp.fortran/udr2.f90: New test.
9282         * testsuite/libgomp.fortran/udr3.f90: New test.
9283         * testsuite/libgomp.fortran/udr4.f90: New test.
9284         * testsuite/libgomp.fortran/udr5.f90: New test.
9285         * testsuite/libgomp.fortran/udr6.f90: New test.
9286         * testsuite/libgomp.fortran/udr7.f90: New test.
9287         * testsuite/libgomp.fortran/udr8.f90: New test.
9288         * testsuite/libgomp.fortran/udr9.f90: New test.
9289         * testsuite/libgomp.fortran/udr10.f90: New test.
9290         * testsuite/libgomp.fortran/udr11.f90: New test.
9292 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
9294         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9295         vect_simd_clones effective target.
9296         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9298 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
9300         PR middle-end/61252
9301         * testsuite/libgomp.c++/simd-9.C: New test.
9303 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
9305         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9306         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9307         texts according to their @menu entry positions.
9309 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
9311         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9312         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9313         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9314         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9315         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9316         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9317         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9318         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9319         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9320         * testsuite/libgomp.fortran/depend-1.f90: New test.
9321         * testsuite/libgomp.fortran/depend-2.f90: New test.
9322         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9323         * testsuite/libgomp.fortran/simd1.f90: New test.
9324         * testsuite/libgomp.fortran/simd2.f90: New test.
9325         * testsuite/libgomp.fortran/simd3.f90: New test.
9326         * testsuite/libgomp.fortran/simd4.f90: New test.
9327         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9329 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
9331         * testsuite/libgomp.c/simd-10.c: New test.
9332         * testsuite/libgomp.c/simd-11.c: New test.
9333         * testsuite/libgomp.c/simd-12.c: New test.
9334         * testsuite/libgomp.c/simd-13.c: New test.
9336 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
9338         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9339         atomic type clauses in any order and optional comma in between.
9340         * testsuite/libgomp.c++/atomic-15.C: Likewise.
9341         * testsuite/libgomp.c/atomic-17.c: Likewise.
9343         * testsuite/libgomp.c/simd-7.c: New test.
9344         * testsuite/libgomp.c/simd-8.c: New test.
9345         * testsuite/libgomp.c/simd-9.c: New test.
9346         * testsuite/libgomp.c/loop-16.c: New test.
9348 2014-04-02  Richard Henderson  <rth@redhat.com>
9350         * config/linux/futex.h (futex_wait): Get error value from errno.
9351         (futex_wake): Likewise.
9353 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
9355         PR c++/60331
9356         * testsuite/libgomp.c++/udr-11.C: New test.
9357         * testsuite/libgomp.c++/udr-12.C: New test.
9358         * testsuite/libgomp.c++/udr-13.C: New test.
9359         * testsuite/libgomp.c++/udr-14.C: New test.
9360         * testsuite/libgomp.c++/udr-15.C: New test.
9361         * testsuite/libgomp.c++/udr-16.C: New test.
9362         * testsuite/libgomp.c++/udr-17.C: New test.
9363         * testsuite/libgomp.c++/udr-18.C: New test.
9364         * testsuite/libgomp.c++/udr-19.C: New test.
9366 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9368         Update copyright years
9370 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9372         * hashtab.h: Use the standard form for the copyright notice.
9374 2014-01-02  Tobias Burnus  <burnus@net-b.de>
9376         * libgomp.texi: Bump @copying's copyright year.
9378 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
9380         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9381         alloca () with __builtin_alloca ().
9382         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9383         * testsuite/libgomp.c/lock-3.c: Likewise.
9384         * testsuite/libgomp.c/pr48591.c: Likewise.
9386 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
9388         PR testsuite/59534
9389         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9390         comparisons.
9392 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
9394         PR libgomp/58756
9395         * testsuite/libgomp.c/pr58756.c: New test.
9397 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
9399         PR libgomp/59467
9400         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9401         !$omp parallel.
9403 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
9405         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9406         ALWAYS_CFLAGS.
9407         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9408         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9409         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9410         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9411         Likewise.
9413         * libgomp_g.h: Include <stddef.h> for size_t.
9415         * libgomp.spec.in: Update comment about libgomp's dependencies.
9416         * configure.ac: Likewise.
9417         * configure: Regenerate.
9419 2013-10-16  Tobias Burnus  <burnus@net-b.de>
9421         * libgomp.texi: (Runtime Library Routines): Update references for
9422         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9423         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9424         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9425         (Environment Variables): Update references for OpenMP 4.0. Add
9426         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9427         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9428         order.
9430 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
9432         * env.c (parse_bind_var): Initialize value to avoid
9433         (false positive) warning.
9435 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
9437         PR libgomp/58691
9438         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9439         to check variable.
9440         (gomp_init_num_threads): Move i variable declaration into
9441         #ifdef CPU_ALLOC_SIZE block.
9442         * config/linux/affinity.c (gomp_affinity_init_level): Test
9443         gomp_places_list_len == 0 rather than gomp_places_list == 0
9444         when checking for topology reading error.
9445         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9446         * env.c (parse_affinity): Add ignore argument, if true, don't populate
9447         gomp_places_list, only parse env var and always return false.
9448         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
9449         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9450         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9451         and either of these variables were parsed correctly into a places
9452         list.
9454 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
9455             Jakub Jelinek  <jakub@redhat.com>
9457         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9458         of 5 loopfn matches.
9459         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9460         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9461         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9462         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9463         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9464         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9465         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9466         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9468 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
9470         * Makefile.am (omp_lib.mod): Streamline rule.
9471         * Makefile.in: Regenerate.
9473         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9474         exceptions.
9476         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9477         * testsuite/libgomp.fortran/lib1.f90: Likewise.
9478         * testsuite/libgomp.fortran/lib2.f: Likewise.
9479         * testsuite/libgomp.fortran/lib3.f: Likewise.
9481         * configure.ac: Typo fix.
9482         * configure: Regenerate.
9484         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9485         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9487         * omp.h.in: Don't touch the user's namespace.
9489 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9490             Tobias Burnus  <burnus@net-b.de>
9491             Richard Henderson  <rth@redhat.com>
9493         * target.c: New file.
9494         * Makefile.am (libgomp_la_SOURCES): Add target.c.
9495         * Makefile.in: Regenerated.
9496         * libgomp_g.h (GOMP_task): Add depend argument.
9497         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9498         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9499         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9500         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9501         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9502         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9503         GOMP_taskgroup_start, GOMP_taskgroup_end,
9504         GOMP_parallel_sections): New prototypes.
9505         * fortran.c (omp_is_initial_device): Add ialias_redirect.
9506         (omp_is_initial_device_): New function.
9507         (ULP, STR1, STR2, ialias_redirect): Removed.
9508         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9509         omp_set_default_device_8_, omp_get_default_device_,
9510         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9511         functions.
9512         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9513         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9514         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9515         @@GOMP_4.0.
9516         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9517         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9518         omp_set_default_device, omp_set_default_device_,
9519         omp_set_default_device_8_, omp_get_default_device,
9520         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9521         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9522         omp_get_team_num_): Export @@OMP_4.0.
9523         * team.c (struct gomp_thread_start_data): Add place field.
9524         (gomp_thread_start): Clear thr->thread_pool and
9525         thr->task before returning.  Use gomp_team_barrier_wait_final
9526         instead of gomp_team_barrier_wait.  Initialize thr->place.
9527         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9528         team_cancelled and task_queued_count fields.
9529         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9530         before calling pthread_exit.
9531         (gomp_free_thread): No longer static.  Use
9532         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9533         (gomp_team_start): Add flags argument.  Set
9534         thr->thread_pool->threads_busy to nthreads immediately after creating
9535         new pool.  Use gomp_managed_threads_lock instead of
9536         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
9537         (gomp_team_end): Use gomp_managed_threads_lock instead of
9538         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
9539         of gomp_team_barrier_wait.  If team->team_cancelled, call
9540         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9541         rather than thr->ts.work_share.
9542         (initialize_team): Don't call gomp_sem_init here.
9543         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9544         caller.
9545         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9546         * env.c (gomp_global_icv): Add default_device_var, target_data and
9547         bind_var initializers.
9548         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9549         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9550         gomp_places_list_len): New variables.
9551         (parse_bind_var, parse_one_place, parse_places_var): New functions.
9552         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9553         sized places.
9554         (gomp_cancel_var): New global variable.
9555         (parse_int): New function.
9556         (handle_omp_display_env): New function.
9557         (initialize_env): Use it.  Initialize default_device_var.
9558         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
9559         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
9560         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
9561         been successfully parsed (and call gomp_init_affinity in that case).
9562         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9563         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9564         omp_get_team_num, omp_is_initial_device): New functions.
9565         * libgomp.h: Include stdlib.h.
9566         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9567         Define.
9568         (struct target_mem_desc): Forward declare.
9569         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9570         and thread_limit_var fields.
9571         (gomp_get_num_devices): New prototype.
9572         (gomp_cancel_var): New extern decl.
9573         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9574         team_cancelled and task_queued_count fields.  Add comments about
9575         task_{,queued_,running_}count.
9576         (gomp_cancel_kind): New enum.
9577         (gomp_work_share_end_cancel): New prototype.
9578         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9579         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9580         and depend fields.
9581         (struct gomp_taskgroup): New type.
9582         (struct gomp_task_depend_entry,
9583         struct gomp_dependers_vec): New types.
9584         (gomp_finish_task): Free depend_hash if non-NULL.
9585         (struct gomp_team_state): Add place_partition_off
9586         and place_partition_len fields.
9587         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9588         gomp_places_list_len): New extern decls.
9589         (struct gomp_thread): Add place field.
9590         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9591         (gomp_init_thread_affinity): Add place argument.
9592         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9593         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9594         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9595         gomp_affinity_init_level, gomp_affinity_print_place): New
9596         prototypes.
9597         (gomp_team_start): Add flags argument.
9598         (gomp_thread_limit_var, gomp_remaining_threads_count,
9599         gomp_remaining_threads_lock): Remove.
9600         (gomp_managed_threads_lock): New variable.
9601         (struct gomp_thread_pool): Add threads_busy field.
9602         (gomp_free_thread): New prototype.
9603         * task.c: Include hashtab.h.
9604         (hash_entry_type): New typedef.
9605         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9606         (gomp_init_task): Clear dependers, depend_hash, depend_count,
9607         copy_ctors_done and taskgroup fields.
9608         (GOMP_task): Add depend argument, handle depend clauses.  If
9609         gomp_team_barrier_cancelled or if it's taskgroup has been
9610         cancelled, don't queue or start new tasks.  Set copy_ctors_done
9611         field if needed.  Initialize taskgroup field.  If copy_ctors_done
9612         and already cancelled, don't discard the task.  If taskgroup is
9613         non-NULL, enqueue the task into taskgroup queue.  Increment
9614         num_children field in taskgroup.  Increment task_queued_count.
9615         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9616         gomp_task_run_post_remove_taskgroup): New inline functions.
9617         (gomp_task_run_post_handle_depend_hash,
9618         gomp_task_run_post_handle_dependers,
9619         gomp_task_run_post_handle_depend): New functions.
9620         (GOMP_taskwait): Use them.  If more than one new tasks
9621         have been queued, wake other threads if needed.
9622         (gomp_barrier_handle_tasks): Likewise.  If
9623         gomp_team_barrier_cancelled, don't start any new tasks, just free
9624         all tasks.
9625         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9626         * omp_lib.f90.in
9627         (omp_proc_bind_kind, omp_proc_bind_false,
9628         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9629         omp_proc_bind_spread): New params.
9630         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9631         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9632         omp_get_team_num, omp_is_initial_device): New interfaces.
9633         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9634         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9635         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9636         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9637         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9638         useless use omp_lib_kinds.
9639         * omp.h.in (omp_proc_bind_t): New typedef.
9640         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9641         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9642         omp_get_team_num, omp_is_initial_device): New prototypes.
9643         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9644         through to gomp_team_start.
9645         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9646         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9647         Adjust gomp_parallel_loop_start callers.
9648         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9649         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9650         GOMP_loop_end_cancel): New functions.
9651         (GOMP_parallel_end): Add ialias_redirect.
9652         * hashtab.h: New file.
9653         * libgomp.texi (Environment Variables): Minor cleanup,
9654         update section refs to OpenMP 4.0rc2.
9655         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9656         environment variables.
9657         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9658         team->work_shares_to_free to thr->ts.work_share before calling
9659         free_work_share.
9660         (gomp_work_share_end_cancel): New function.
9661         * config/linux/proc.c: Include errno.h.
9662         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9663         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9664         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
9665         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
9666         gomp_cpuset_size is sizeof (cpu_set_t).
9667         (gomp_init_num_threads): Initialize gomp_cpuset_size,
9668         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9669         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9670         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
9671         contain any logical CPUs.
9672         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9673         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
9674         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9675         pthread_getaffinity_np.  Check gomp_places_list instead of
9676         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
9677         * config/linux/bar.c (gomp_barrier_wait_end,
9678         gomp_barrier_wait_last): Use BAR_* defines.
9679         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
9680         from state where needed.  Set work_share_cancelled to 0 on last
9681         thread.
9682         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9683         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9684         functions.
9685         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9686         Add cpusetsize argument.
9687         (gomp_cpuset_size, gomp_cpusetp): Declare.
9688         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9689         (affinity_counter): Remove.
9690         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9691         if CPU_ALLOC_SIZE isn't defined.
9692         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9693         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9694         bind current thread to the first place.
9695         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
9696         pthread_setaffinity_np to gomp_places_list[place].
9697         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9698         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9699         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9700         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9701         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9702         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9703         (gomp_barrier_t): Add awaited_final field.
9704         (gomp_barrier_init): Initialize awaited_final field.
9705         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9706         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9707         prototypes.
9708         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
9709         defines.
9710         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9711         gomp_team_barrier_cancelled): New inline functions.
9712         (gomp_barrier_last_thread,
9713         gomp_team_barrier_set_task_pending,
9714         gomp_team_barrier_clear_task_pending,
9715         gomp_team_barrier_set_waiting_for_tasks,
9716         gomp_team_barrier_waiting_for_tasks,
9717         gomp_team_barrier_done): Use BAR_* defines.
9718         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9719         (gomp_barrier_wait_end): Use BAR_* defines.
9720         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9721         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9722         Use BAR_* defines.
9723         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9724         gomp_team_barrier_cancel): New functions.
9725         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9726         argument.
9727         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9728         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9729         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9730         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9731         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9732         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9733         (gomp_barrier_t): Add cancellable field.
9734         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9735         gomp_team_barrier_cancel): New prototypes.
9736         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9737         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9738         gomp_team_barrier_cancelled): New inline functions.
9739         (gomp_barrier_wait_start, gomp_barrier_last_thread,
9740         gomp_team_barrier_set_task_pending,
9741         gomp_team_barrier_clear_task_pending,
9742         gomp_team_barrier_set_waiting_for_tasks,
9743         gomp_team_barrier_waiting_for_tasks,
9744         gomp_team_barrier_done): Use BAR_* defines.
9745         * barrier.c (GOMP_barrier_cancel): New function.
9746         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9747         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9748         omp_proc_bind_spread): New params.
9749         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9750         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9751         omp_get_team_num, omp_is_initial_device): New externals.
9752         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9753         New functions.
9754         (gomp_resolve_num_threads): Adjust for thread_limit now being in
9755         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
9756         infinity.  If not nested, just return minimum of max_num_threads
9757         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9758         to the returned value.  Otherwise, don't update atomically
9759         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9760         (GOMP_parallel_end): Adjust for thread_limit now being in
9761         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
9762         infinity.  Adjust threads_busy in the pool rather than
9763         gomp_remaining_threads_count.  Remember team->nthreads and call
9764         gomp_team_end before adjusting threads_busy, if not nested
9765         afterwards, just set it to 1 non-atomically.  Add ialias.
9766         (GOMP_parallel_start): Adjust gomp_team_start caller.
9767         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9768         * testsuite/libgomp.c/affinity-1.c: New test.
9769         * testsuite/libgomp.c/atomic-15.c: New test.
9770         * testsuite/libgomp.c/atomic-16.c: New test.
9771         * testsuite/libgomp.c/atomic-17.c: New test.
9772         * testsuite/libgomp.c/cancel-for-1.c: New test.
9773         * testsuite/libgomp.c/cancel-for-2.c: New test.
9774         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9775         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9776         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9777         * testsuite/libgomp.c/cancel-sections-1.c: New test.
9778         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9779         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9780         * testsuite/libgomp.c/depend-1.c: New test.
9781         * testsuite/libgomp.c/depend-2.c: New test.
9782         * testsuite/libgomp.c/depend-3.c: New test.
9783         * testsuite/libgomp.c/depend-4.c: New test.
9784         * testsuite/libgomp.c/for-1.c: New test.
9785         * testsuite/libgomp.c/for-1.h: New file.
9786         * testsuite/libgomp.c/for-2.c: New test.
9787         * testsuite/libgomp.c/for-2.h: New file.
9788         * testsuite/libgomp.c/for-3.c: New test.
9789         * testsuite/libgomp.c/pr58392.c: New test.
9790         * testsuite/libgomp.c/simd-1.c: New test.
9791         * testsuite/libgomp.c/simd-2.c: New test.
9792         * testsuite/libgomp.c/simd-3.c: New test.
9793         * testsuite/libgomp.c/simd-4.c: New test.
9794         * testsuite/libgomp.c/simd-5.c: New test.
9795         * testsuite/libgomp.c/simd-6.c: New test.
9796         * testsuite/libgomp.c/target-1.c: New test.
9797         * testsuite/libgomp.c/target-2.c: New test.
9798         * testsuite/libgomp.c/target-3.c: New test.
9799         * testsuite/libgomp.c/target-4.c: New test.
9800         * testsuite/libgomp.c/target-5.c: New test.
9801         * testsuite/libgomp.c/target-6.c: New test.
9802         * testsuite/libgomp.c/target-7.c: New test.
9803         * testsuite/libgomp.c/taskgroup-1.c: New test.
9804         * testsuite/libgomp.c/thread-limit-1.c: New test.
9805         * testsuite/libgomp.c/thread-limit-2.c: New test.
9806         * testsuite/libgomp.c/thread-limit-3.c: New test.
9807         * testsuite/libgomp.c/udr-1.c: New test.
9808         * testsuite/libgomp.c/udr-2.c: New test.
9809         * testsuite/libgomp.c/udr-3.c: New test.
9810         * testsuite/libgomp.c++/affinity-1.C: New test.
9811         * testsuite/libgomp.c++/atomic-10.C: New test.
9812         * testsuite/libgomp.c++/atomic-11.C: New test.
9813         * testsuite/libgomp.c++/atomic-12.C: New test.
9814         * testsuite/libgomp.c++/atomic-13.C: New test.
9815         * testsuite/libgomp.c++/atomic-14.C: New test.
9816         * testsuite/libgomp.c++/atomic-15.C: New test.
9817         * testsuite/libgomp.c++/cancel-for-1.C: New test.
9818         * testsuite/libgomp.c++/cancel-for-2.C: New test.
9819         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9820         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9821         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9822         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9823         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9824         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9825         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9826         * testsuite/libgomp.c++/cancel-test.h: New file.
9827         * testsuite/libgomp.c++/for-9.C: New test.
9828         * testsuite/libgomp.c++/for-10.C: New test.
9829         * testsuite/libgomp.c++/for-11.C: New test.
9830         * testsuite/libgomp.c++/simd-1.C: New test.
9831         * testsuite/libgomp.c++/simd-2.C: New test.
9832         * testsuite/libgomp.c++/simd-3.C: New test.
9833         * testsuite/libgomp.c++/simd-4.C: New test.
9834         * testsuite/libgomp.c++/simd-5.C: New test.
9835         * testsuite/libgomp.c++/simd-6.C: New test.
9836         * testsuite/libgomp.c++/simd-7.C: New test.
9837         * testsuite/libgomp.c++/simd-8.C: New test.
9838         * testsuite/libgomp.c++/target-1.C: New test.
9839         * testsuite/libgomp.c++/target-2.C: New test.
9840         * testsuite/libgomp.c++/target-2-aux.cc: New file.
9841         * testsuite/libgomp.c++/target-3.C: New test.
9842         * testsuite/libgomp.c++/taskgroup-1.C: New test.
9843         * testsuite/libgomp.c++/udr-1.C: New test.
9844         * testsuite/libgomp.c++/udr-2.C: New test.
9845         * testsuite/libgomp.c++/udr-3.C: New test.
9846         * testsuite/libgomp.c++/udr-4.C: New test.
9847         * testsuite/libgomp.c++/udr-5.C: New test.
9848         * testsuite/libgomp.c++/udr-6.C: New test.
9849         * testsuite/libgomp.c++/udr-7.C: New test.
9850         * testsuite/libgomp.c++/udr-8.C: New test.
9851         * testsuite/libgomp.c++/udr-9.C: New test.
9853 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
9855         PR testsuite/57605
9856         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9857         ALWAYS_CFLAGS.
9859 2013-09-20  Alan Modra  <amodra@gmail.com>
9861         * configure: Regenerate.
9863 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
9865         * testsuite/libgomp.c/sections-2.c: New test.
9867 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9869         * testsuite/libgomp.fortran/strassen.f90:
9870         Add dg-skip-if aarch64_tiny.
9872 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
9873             Cesar Philippidis  <cesar@codesourcery.com>
9875         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9876         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9877         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9878         * testsuite/libgomp.fortran/fortran.exp: Likewise.
9879         * testsuite/libgomp.graphite/graphite.exp: Likewise.
9880         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9881         Use dg-runtest rather than gfortran-dg-runtest.
9883 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
9885         * testsuite/libgomp.c/icv-2.c: Extend current handling of
9886         Linux-based x86 systems to cover all GNU systems.
9887         * testsuite/libgomp.c/lock-3.c: Likewise.
9888         * testsuite/libgomp.c/pr48591.c: Likewise.
9890 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
9892         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9893         GNU/Hurd, as done for Linux-based systems.
9895         * config/posix/ptrlock.h: Fix comment.
9897 2013-05-27  Tobias Burnus  <burnus@net-b.de>
9899         PR fortran/57423
9900         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9901         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9902         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9903         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9904         omp_destroy_nest_lock): Correct arguments to match the one in
9905         the OpenMP spec.
9906         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9907         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9908         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9909         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9911 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
9913         * testsuite/libgomp.c/loop-13.c: New test.
9914         * testsuite/libgomp.c/loop-14.c: New test.
9915         * testsuite/libgomp.c/loop-15.c: New test.
9916         * testsuite/libgomp.c++/loop-13.C: New test.
9917         * testsuite/libgomp.c++/loop-14.C: New test.
9918         * testsuite/libgomp.c++/loop-15.C: New test.
9920 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
9922         PR middle-end/56217
9923         * testsuite/libgomp.c++/pr56217.C: New test.
9925 2013-02-01  Alan Modra  <amodra@gmail.com>
9927         * task.c (GOMP_task, GOMP_taskwait): Comment.
9929 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
9930             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
9932         PR libgomp/55561
9933         * config/linux/wait.h (do_spin): Use atomic load for addr.
9934         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9935         for intptr and ptrlock.
9936         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9937         for ptrlock.
9939 2013-01-22  Alan Modra  <amodra@gmail.com>
9941         PR libgomp/51376
9942         PR libgomp/56073
9943         * task.c (GOMP_task): Revert 2011-12-09 change.
9944         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
9945         barrier to read task->children..
9946         (gomp_barrier_handle_tasks): ..and matching atomic store with
9947         release barrier here when setting parent->children to NULL.
9949 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
9950             Tobias Burnus  <burnus@net-b.de>
9952         PR driver/55884
9953         * testsuite/libgomp.fortran/fortran.exp: Use
9954         -fintrinsic-modules-path= instead of
9955         -fintrinsic-modules-path.
9957 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
9959         Update copyright years.
9961 2012-12-19  Tobias Burnus  <burnus@net-b.de>
9963         * testsuite/libgomp.fortran/fortran.exp: Set
9964         -fintrinsic-modules-path.
9966 2012-12-19  Tobias Burnus  <burnus@net-b.de>
9968         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9969         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9971 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
9973         PR libgomp/55411
9974         * team.c (gomp_free_thread): Decrease gomp_managed_threads
9975         if pool had any threads_used.
9977 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
9979         * testsuite/libgomp.c++/pr24455.C: Use
9980         -Wl,-undefined,dynamic_lookup on darwin.
9982 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
9984         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9986 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
9988         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9990 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
9991             Jim MacArthur  <jim.macarthur@arm.com>
9992             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9993             Nigel Stephens  <nigel.stephens@arm.com>
9994             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9995             Richard Earnshaw  <rearnsha@arm.com>
9996             Sofiane Naci  <sofiane.naci@arm.com>
9997             Stephen Thomas  <stephen.thomas@arm.com>
9998             Tejas Belagod  <tejas.belagod@arm.com>
9999             Yufeng Zhang  <yufeng.zhang@arm.com>
10001         * configure.tgt: Add AArch64.
10003 2012-10-04  Jason Merrill  <jason@redhat.com>
10005         * testsuite/libgomp.c++/tls-init1.C: New.
10007 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
10009         * configure: Regenerated.
10011 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
10013         * config/linux/mips/futex.h (sys_futex0): Change to static
10014         function with noinline, nomips16 attributes under MIPS16. Adjust
10015         asm statement to place 'li v0,SYS_futex' immediately before
10016         syscall insn.
10018 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
10020         * libgomp.texi (Library Index): Renamed from "Index" to prevent
10021         conflict with index.html on case-insensitive file systems.
10023 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
10025         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
10026         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
10028 2012-07-02  Richard Guenther  <rguenther@suse.de>
10029             Michael Matz  <matz@suse.de>
10030             Tobias Grosser <tobias@grosser.es>
10031             Sebastian Pop <sebpop@gmail.com>
10033         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
10034         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10035         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10036         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10038 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
10040         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
10042 2012-06-22  Richard Guenther  <rguenther@suse.de>
10044         Merge from graphite branch
10045         2012-01-13  Tobias Grosser  <tobias@grosser.es>
10047         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10048         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10050 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
10052         PR middle-end/53580
10053         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
10054         use GOMP_barrier () call instead.
10055         * testsuite/libgomp.c/pr26943-3.c: Likewise.
10056         * testsuite/libgomp.c/pr26943-4.c: Likewise.
10057         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
10058         call GOMP_barrier instead.
10059         * testsuite/libgomp.fortran/vla5.f90: Likewise.
10061 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
10063         PR libgomp/52993
10064         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
10065         argument to memset call.
10067 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
10069         * configure: Regenerated.
10071 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10073         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
10075 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
10077         PR bootstrap/52812
10078         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
10080 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
10082         PR middle-end/52547
10083         * testsuite/libgomp.c/pr52547.c: New test.
10085 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10087         * testsuite/lib/libgomp.exp: load fortran-modules.exp
10089 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10091         * configure.tgt (mips-sgi-irix6*): Remove.
10093 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10095         * configure.tgt (alpha*-dec-osf*): Remove.
10097         * config/osf/sem.h: Remove.
10098         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
10100 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
10102         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
10104 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10106         PR libstdc++/52188
10107         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
10108         Remove ENABLE_SYMVERS_SOL2.
10109         * configure: Regenerate.
10110         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
10111         (PREPROCESS): New variable.
10112         (libgomp.ver): New target.
10113         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
10114         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
10115         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
10116         Use libgomp.ver.
10117         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
10118         * Makefile.in: Regenerate.
10120 2012-02-14  Walter Lee  <walt@tilera.com>
10122         * configure.tgt: Handle tilegx and tilepro.
10123         * config/linux/tile/futex.h: New file.
10125 2012-02-08  Richard Guenther  <rguenther@suse.de>
10127         PR tree-optimization/46886
10128         * testsuite/libgomp.c/pr46886.c: New testcase.
10130 2012-01-25  Matthias Klose  <doko@ubuntu.com>
10132         * config/linux/arm: Remove empty directory.
10133         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
10135 2011-12-09  Alan Modra  <amodra@gmail.com>
10137         PR libgomp/51376
10138         * task.c (GOMP_taskwait): Don't access task->children outside of
10139         task_lock mutex region.
10140         (GOMP_task): Likewise.
10142 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
10144         PR libgomp/51132
10145         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
10146         to file scope.
10147         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10148         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10149         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10150         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10151         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10153 2011-12-02  Alan Modra  <amodra@gmail.com>
10155         * config/linux/affinity.c: Use atomic rather than sync builtin.
10156         * config/linux/lock.c: Likewise.
10157         * config/linux/ptrlock.h: Likewise.
10158         * config/linux/ptrlock.c: Likewise.
10159         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
10160         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
10161         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
10162         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
10163         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
10164         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
10165         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
10166         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
10167         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
10168         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
10170 2011-11-30  Alan Modra  <amodra@gmail.com>
10172         PR libgomp/51298
10173         * config/linux/bar.h: Use atomic rather than sync builtins.
10174         * config/linux/bar.c: Likewise.  Add missing acquire
10175         synchronisation on generation field.
10176         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
10177         double unlock.
10179 2011-11-30  Alan Modra  <amodra@gmail.com>
10181         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
10182         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
10183         * config/linux/mutex.h: Use atomic rather than sync builtins.
10184         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
10185         * config/linux/omp-lock.h: Comment fix.
10186         * config/linux/arm/mutex.h: Delete.
10187         * config/linux/powerpc/mutex.h: Delete.
10188         * config/linux/ia64/mutex.h: Delete.
10189         * config/linux/mips/mutex.h: Delete.
10191 2011-11-30  Alan Modra  <amodra@gmail.com>
10193         PR libgomp/51249
10194         * config/linux/sem.h: Rewrite.
10195         * config/linux/sem.c: Rewrite.
10197 2011-11-28  Richard Henderson  <rth@redhat.com>
10199         * libgomp.h (enum memmodel): New.
10201 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
10203         * configure: Regenerate.
10205 2011-10-10  Matthias Klose  <doko@ubuntu.com>
10207         * config/posix95: Remove empty directory.
10209 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
10211         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10213 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
10215         PR fortran/49792
10216         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10217         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10219 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10221         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10223 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10225         PR libgomp/49965
10226         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10228 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
10230         * config/linux/proc.h: New.
10231         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
10232         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
10233         (gomp_init_num_threads): Update call to cpuset_popcount.
10234         (get_num_procs): Ditto.
10235         * config/linux/affinity.c (gomp_init_affinity): Call
10236         gomp_cpuset_popcount.
10238 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
10240         PR fortran/42041
10241         PR fortran/46752
10242         * omp.h.in (omp_in_final): New prototype.
10243         * omp_lib.f90.in (omp_in_final): New interface.
10244         (omp_integer_kind, omp_logical_kind): Remove
10245         and replace all its uses in the module with 4.
10246         (openmp_version): Change to 201107.
10247         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10248         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10249         kind for the parameters.
10250         (omp_in_final): New external.
10251         (openmp_version): Change to 201107.
10252         * task.c (omp_in_final): New function.
10253         (gomp_init_task): Initialize final_task.
10254         (GOMP_task): Remove unused attribute from flags.  Handle final
10255         tasks.
10256         (GOMP_taskyield): New function.
10257         (omp_in_final): Return true if if (false) or final (true) task
10258         or descendant of final (true).
10259         * fortran.c (omp_in_final_): New function.
10260         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10261         (GOMP_3.0): Export GOMP_taskyield.
10262         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10263         variables.
10264         (parse_unsigned_long_list): New function.
10265         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
10266         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
10267         even if parse_affinity returned false.
10268         * config/linux/affinity.c (gomp_init_affinity): Handle
10269         gomp_cpu_affinity_len == 0.
10270         * libgomp_g.h (GOMP_taskyield): New prototype.
10271         * libgomp.h (struct gomp_task): Add final_task field.
10272         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10273         * team.c (gomp_team_start): Override new task's nthreads_var icv
10274         if list form OMP_NUM_THREADS has been used and it has value for
10275         the new nesting level.
10277         * testsuite/libgomp.c/atomic-11.c: New test.
10278         * testsuite/libgomp.c/atomic-12.c: New test.
10279         * testsuite/libgomp.c/atomic-13.c: New test.
10280         * testsuite/libgomp.c/atomic-14.c: New test.
10281         * testsuite/libgomp.c/reduction-6.c: New test.
10282         * testsuite/libgomp.c/task-5.c: New test.
10283         * testsuite/libgomp.c++/atomic-2.C: New test.
10284         * testsuite/libgomp.c++/atomic-3.C: New test.
10285         * testsuite/libgomp.c++/atomic-4.C: New test.
10286         * testsuite/libgomp.c++/atomic-5.C: New test.
10287         * testsuite/libgomp.c++/atomic-6.C: New test.
10288         * testsuite/libgomp.c++/atomic-7.C: New test.
10289         * testsuite/libgomp.c++/atomic-8.C: New test.
10290         * testsuite/libgomp.c++/atomic-9.C: New test.
10291         * testsuite/libgomp.c++/task-8.C: New test.
10292         * testsuite/libgomp.c++/reduction-4.C: New test.
10293         * testsuite/libgomp.fortran/allocatable7.f90: New test.
10294         * testsuite/libgomp.fortran/allocatable8.f90: New test.
10295         * testsuite/libgomp.fortran/crayptr3.f90: New test.
10296         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10297         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10298         * testsuite/libgomp.fortran/pointer1.f90: New test.
10299         * testsuite/libgomp.fortran/pointer2.f90: New test.
10300         * testsuite/libgomp.fortran/task4.f90: New test.
10302 2011-08-02  Tobias Burnus  <burnus@net-b.de>
10304         * libgomp.texi: Update OpenMP spec references to 3.1.
10305         (omp_in_final,OMP_PROC_BIND): New sections.
10306         (OMP_NUM_THREADS): Document that the value can be now a list.
10307         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10309 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10311         * config/linux/x86/futex.h: Check __x86_64__ instead of
10312         __LP64__.
10314 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
10316         PR middle-end/49897
10317         PR middle-end/49898
10318         * testsuite/libgomp.c/pr49897-1.c: New test.
10319         * testsuite/libgomp.c/pr49897-2.c: New test.
10320         * testsuite/libgomp.c/pr49898-1.c: New test.
10321         * testsuite/libgomp.c/pr49898-2.c: New test.
10323 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
10325         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10326         for ia32 instead of ilp32.
10328         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10329         * testsuite/libgomp.c/atomic-6.c: Likewise.
10331 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
10333         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10334         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10336 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10338         PR libgomp/45351
10339         * config/osf/sem.h: New file.
10340         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10342 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10344         PR target/49541
10345         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10346         ldflags.
10348 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
10350         * config/linux/wait.h (do_spin): New inline, largely copied
10351         from do_wait, just don't do futex_wait here, instead return true if
10352         it should be done.
10353         (do_wait): Implement using do_spin.
10354         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10355         to prototype.
10356         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10357         __sync_bool_compare_and_swap, pass the oldval to
10358         gomp_mutex_lock_slow.
10359         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10360         If all mutex contenders are just spinning and not sleeping, don't
10361         change state to 2 unnecessarily.  Optimize the loop when state has
10362         already become 2 to use just one atomic operation per loop instead
10363         of two.
10364         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10365         to prototype.
10366         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10367         __sync_bool_compare_and_swap, pass the oldval to
10368         gomp_mutex_lock_slow.
10370 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10372         PR libgomp/49490
10373         * iter.c (gomp_iter_static_next): For chunk size 0
10374         only use n ceil/ nthreads size for the first
10375         n % nthreads threads in the team instead of
10376         all threads except for the last few ones which
10377         get less work or none at all.
10378         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10379         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10380         chunk argument, set run_sched_modifier to 0 for static
10381         resp. 1 for other kinds.  If chunk argument is 0
10382         and not static, set value to 1.
10384 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
10386         PR c++/49043
10387         * testsuite/libgomp.c++/pr49043.C: New test.
10389         PR c++/48869
10390         * testsuite/libgomp.c++/pr48869.C: New test.
10392 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
10394         PR fortran/48894
10395         * fortran.c: Include limits.h.
10396         (TO_INT): Define.
10397         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10398         *set.
10399         (omp_set_num_threads_8_, omp_set_schedule_8_,
10400         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10401         omp_get_team_size_8_): Use TO_INT macro.
10402         * testsuite/libgomp.fortran/pr48894.f90: New test.
10404 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
10406         PR middle-end/48591
10407         * testsuite/libgomp.c/pr48591.c: New test.
10409 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10411         PR bootstrap/48135
10412         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10413         * configure: Regenerate.
10415 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10417         PR fortran/47886
10418         * testsuite/libgomp.fortran/task3.f90: New test.
10420 2011-02-24  Tobias Burnus  <burnus@net-b.de>
10422         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10424 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
10426         PR libgomp/47854
10427         * libgomp.texi (omp_get_wtime): Don't say time in the past
10428         must be Unix Epoch.
10430 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10432         PR libgomp/47804
10433         * testsuite/libgomp.fortran/fortran.exp: Check for both
10434         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
10435         but $blddir != "", still append ${blddir}/${lang_library_path}
10436         to ld_library_path.
10438 2011-02-16  Tobias Burnus  <burnus@net-b.de>
10440         PR libgomp/47758
10441         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10442         of libquadmath.a before adding its libpath to ldflags.
10444 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
10446         PR libgomp/47731
10447         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10448         to FUTEX_WAIT futex syscall.
10449         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10451 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10453         * configure: Regenerate.
10455 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
10457         PR libstdc++/36104
10458         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10460 2011-01-16  Gerald Pfeifer
10462         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10464 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
10466         PR fortran/46874
10467         * libgomp.fortran/allocatable6.f90: New test.
10469 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10471         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10472         * configure: Regenerate.
10474 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
10476         PR target/40125
10477         PR lto/46695
10478         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10479         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10480         * aclocal.m4: Regenerate.
10481         * configure: Regenerate.
10482         * Makefile.in: Regenerate.
10483         * testsuite/Makefile.in: Regenerate.
10485 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
10487         PR fortran/46753
10488         * libgomp.fortran/pr46753.f90: New test.
10490         PR libgomp/43706
10491         * env.c (initialize_env): Default to spin count 300000
10492         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10493         is specified.
10495         PR libgomp/45240
10496         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10497         at the end if sync builtins aren't supported.
10499 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10501         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10503 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10505         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10507 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
10509         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10511 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10512             Tobias Burnus  <burnus@net-b.de>
10514         PR fortran/32049
10515         * configure.ac:
10516         * configure: Regenerate.
10518 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10520         * config/linux/futex.h: New.
10521         * config/linux/arm/mutex.h: New.
10522         * configure.tgt (arm*-*-linux*): Add config path.
10524 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10526         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10528 2010-09-23  Tobias Burnus  <burnus@net-b.de>
10530         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10531         Change Fortran datatype to LOGICAL.
10532         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10533         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10535 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10537         * configure: Regenerate.
10539 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
10541         * libgomp.texi: Add function keyword to a couple of Fortran
10542         interfaces, use integer instead of int for Fortran.
10544 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
10546         * libgomp.texi: Fix spelling and pasto problems throughout.
10547         Adjust prototypes to match code.
10549 2010-07-24  Tobias Burnus  <burnus@net-b.de>
10551         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10552         silence -fwhole-file warning.
10554 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10556         * configure.tgt (*-*-solaris2.[56]*): Removed.
10558 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10560         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10561         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10562         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10563         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10564         targetting solaris2*.
10565         * configure: Regenerate.
10566         * config.h.in: Regenerate.
10568         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10569         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10570         Add libgomp_version_dep.
10571         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10572         versioning.
10573         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10574         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10575         * Makefile.in: Regenerate.
10577         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10578         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10579         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10580         to common block, protected by
10581         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10583 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
10585         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
10587 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
10589         PR bootstrap/43170
10590         * configure: Regenerate.
10592 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10594         PR other/43620
10595         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10596         * configure: Regenerate.
10597         * Makefile.in: Regenerate.
10598         * testsuite/Makefile.in: Regenerate.
10600 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
10602         PR c/43893
10603         * testsuite/libgomp.c/pr43893.c: New test.
10604         * testsuite/libgomp.c++/pr43893.C: New test.
10606 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
10608         PR middle-end/43570
10609         * testsuite/libgomp.fortran/vla8.f90: New test.
10611 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
10613         PR libgomp/43706
10614         * config/linux/affinity.c (gomp_init_affinity): Decrease
10615         gomp_available_cpus if affinity mask confines the process to fewer
10616         CPUs.
10617         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10618         non-NULL, just return gomp_available_cpus.
10620         PR libgomp/43569
10621         * sections.c (gomp_sections_init): Initialize ws->mode.
10623 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
10625         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10626         not unused bar variable.
10627         * configure: Regenerate.
10629 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10631         * Makefile.in: Regenerate.
10632         * aclocal.m4: Regenerate.
10633         * testsuite/Makefile.in: Regenerate.
10635 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
10637         PR libgomp/42942
10638         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10639         (initialize_env): Adjust callers.
10640         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10641         when the argument is 0.
10643         * testsuite/libgomp.c/pr42942.c: New test.
10645 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
10647         PR middle-end/42644
10648         PR middle-end/42130
10649         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10650         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10652 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10654         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10655         * testsuite/libgomp.c++/task-6.C: Likewise.
10657 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
10659         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10661 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
10663         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10664         * configure: Regenerate.
10666 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
10668         PR fortran/42866
10669         * testsuite/libgomp.fortran/allocatable5.f90: New test.
10671 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
10673         * configure.ac: Test for executability of GFORTRAN.
10674         * configure: Regenerate.
10676 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10678         * configure: Regenerate.
10680 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
10682         PR libgomp/42602
10683         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10685 2010-01-03  Richard Guenther  <rguenther@suse.de>
10687         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10689 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
10691         * testsuite/libgomp.graphite/pr4118.c: New.
10693 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
10695         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10696         for darwin, protect the test with require-effective-target tls_runtime.
10697         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10699 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
10701         PR target/41605
10702         * testsuite/lib/libgomp.exp: Provide -B options to allow for
10703         link spec %s substitutions for static libraries.
10705 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
10707         PR testsuite/42135
10708         * libgomp.graphite/force-parallel-2.c: Reduce array size.
10710 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10712         * Makefile.in: Regenerate.
10713         * configure: Regenerate.
10714         * testsuite/Makefile.in: Regenerate.
10716 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
10718         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10719         settings for LC_ALL and LANG.
10721 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
10723         PR fortran/42162
10724         * testsuite/libgomp.fortran/pr42162.f90: New test.
10726 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
10728         PR middle-end/42029
10729         * testsuite/libgomp.c/pr42029.c: New test.
10731 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
10733         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10734         *s.  Accept ld version without text in ()s.
10735         * configure: Regenerated.
10737 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
10739         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10741 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10743         PR libgomp/41418
10744         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10745         or a hyphen (happens with fortran language disabled).
10746         * configure: Regenerate.
10748 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10750         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10751         use sed script portable to Solaris /bin/sed for extracting ld
10752         version.
10753         * configure: Regenerate.
10755 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
10757         * testsuite/libgomp.graphite/bounds.c: New test.
10759 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10761         * Makefile.am (libgomp_la_LINK): New.
10762         * Makefile.in: Regenerate.
10764 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10766         * configure.ac (AC_PREREQ): Bump to 2.64.
10768 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10770         * Makefile.am (install-html, install-pdf): Remove.
10771         * Makefile.in: Regenerate.
10773         * Makefile.in: Regenerate.
10774         * aclocal.m4: Regenerate.
10775         * config.h.in: Regenerate.
10776         * configure: Regenerate.
10777         * testsuite/Makefile.in: Regenerate.
10779 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10781         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10782         * Makefile.in: Regenerate.
10784 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
10786         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10787         * Makefile.in: Regenerate.
10789 2009-08-19  Tobias Burnus  <burnus@net-b.de>
10791         PR fortran/41102
10792         omp_lib.h.in: Fix -std=f95 errors.
10794 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
10796         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10797         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10798         * testsuite/libgomp.graphite/graphite.exp: New.
10800 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
10802         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10803         only build.
10805 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
10807         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10808         needed memory barrier semantics.
10809         * config/linux/mips/mutex.h: New file.
10811 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10813         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10815 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
10817         * configure: Regenerate.
10819 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
10821         PR testsuite/40699
10822         PR testsuite/40707
10823         PR testsuite/40709
10824         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10825         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10826         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10828 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
10830         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10831         options when choosing a multilib.
10833 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
10835         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10836         ld_library_path.  Use add_path.  Add just find_libgcc_s to
10837         ld_library_path, not every libgcc multilib directory.
10838         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10839         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10840         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10841         Use add_path.
10842         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10844 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
10846         * Makefile.am (LTLDFLAGS): Define.
10847         (LINK): Define.
10848         * Makefile.in: Regenerate.
10850 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
10852         PR fortran/39718
10853         * testsuite/libgomp.fortran/fortran.exp: Don't link with
10854         libgfortranbegin, check existence of libgfortran.a instead of
10855         libgfortranbegin.a.
10857 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
10859         PR libgomp/40174
10860         * team.c (gomp_thread_start): Destroy thr->release semaphore.
10861         (gomp_free_pool_helper): Likewise.
10863 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
10864             Jakub Jelinek  <jakub@redhat.com>
10866         PR fortran/35423
10867         * testsuite/libgomp.fortran/workshare2.f90: New test.
10869 2009-04-09  Nick Clifton  <nickc@redhat.com>
10871         * iter.c: Change copyright header to refer to version 3 of the
10872         GNU General Public License with version 3.1 of the GCC Runtime
10873         Library Exception and to point readers at the COPYING3 and
10874         COPYING3.RUNTIME files and the FSF's license web page.
10875         * alloc.c: Likewise.
10876         * barrier.c: Likewise.
10877         * config/bsd/proc.c: Likewise.
10878         * config/linux/affinity.c: Likewise.
10879         * config/linux/alpha/futex.h: Likewise.
10880         * config/linux/bar.c: Likewise.
10881         * config/linux/bar.h: Likewise.
10882         * config/linux/ia64/futex.h: Likewise.
10883         * config/linux/ia64/mutex.h: Likewise.
10884         * config/linux/lock.c: Likewise.
10885         * config/linux/mips/futex.h: Likewise.
10886         * config/linux/mutex.c: Likewise.
10887         * config/linux/mutex.h: Likewise.
10888         * config/linux/powerpc/futex.h: Likewise.
10889         * config/linux/proc.c: Likewise.
10890         * config/linux/ptrlock.c: Likewise.
10891         * config/linux/ptrlock.h: Likewise.
10892         * config/linux/s390/futex.h: Likewise.
10893         * config/linux/sem.c: Likewise.
10894         * config/linux/sem.h: Likewise.
10895         * config/linux/sparc/futex.h: Likewise.
10896         * config/linux/wait.h: Likewise.
10897         * config/linux/x86/futex.h: Likewise.
10898         * config/mingw32/proc.c: Likewise.
10899         * config/mingw32/time.c: Likewise.
10900         * config/posix/affinity.c: Likewise.
10901         * config/posix/bar.c: Likewise.
10902         * config/posix/bar.h: Likewise.
10903         * config/posix/lock.c: Likewise.
10904         * config/posix/mutex.h: Likewise.
10905         * config/posix/proc.c: Likewise.
10906         * config/posix/ptrlock.h: Likewise.
10907         * config/posix/sem.c: Likewise.
10908         * config/posix/sem.h: Likewise.
10909         * config/posix/time.c: Likewise.
10910         * config/posix95/lock.c: Likewise.
10911         * critical.c: Likewise.
10912         * env.c: Likewise.
10913         * error.c: Likewise.
10914         * fortran.c: Likewise.
10915         * iter_ull.c: Likewise.
10916         * libgomp.h: Likewise.
10917         * libgomp_f.h.in: Likewise.
10918         * libgomp_g.h: Likewise.
10919         * loop.c: Likewise.
10920         * loop_ull.c: Likewise.
10921         * omp.h.in: Likewise.
10922         * omp_lib.f90.in: Likewise.
10923         * omp_lib.h.in: Likewise.
10924         * ordered.c: Likewise.
10925         * parallel.c: Likewise.
10926         * sections.c: Likewise.
10927         * single.c: Likewise.
10928         * task.c: Likewise.
10929         * team.c: Likewise.
10930         * work.c: Likewise.
10932 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
10934         * testsuite/config/default.exp: Change copyright header to refer to
10935         version 3 of the GNU General Public License and to point readers
10936         at the COPYING3 file and the FSF's license web page.
10938 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
10940         PR middle-end/39573
10941         * libgomp.c++/pr39573.C: New test.
10943 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
10945         PR other/39591
10946         * testsuite/libgomp.c/pr39591-1.c: New test.
10947         * testsuite/libgomp.c/pr39591-2.c: New test.
10948         * testsuite/libgomp.c/pr39591-3.c: New test.
10950 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
10952         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10953         * testsuite/libgomp.c/atomic-6.c: Ditto.
10955 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
10957         PR c/39495
10958         * testsuite/libgomp.c/loop-12.c: New test.
10959         * testsuite/libgomp.c/loop-11.c: New test.
10960         * testsuite/libgomp.c++/loop-11.C: New test.
10961         * testsuite/libgomp.c++/loop-12.C: New test.
10962         * testsuite/libgomp.c++/for-8.C: New test.
10964 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10966         * configure: Regenerate.
10968 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
10970         PR middle-end/39154
10971         * testsuite/libgomp.c/pr39154.c: New test.
10973 2009-01-30  Ian Lance Taylor  <iant@google.com>
10975         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10976         libgomp_ld_is_gold.  Get gold version number.
10977         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10978         * configure: Rebuild.
10980 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
10982         * testsuite/lib/libgomp.exp: Add -B option for targets that
10983         use libgfortran.a%s in their specs.
10985 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
10987         PR libgomp/38086
10988         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10989         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10990         HAVE_AS_SYMVER_DIRECTIVE is not defined.
10991         * configure: Regenerated.
10992         * config.h.in: Likewise.
10994 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
10996         PR c++/38650
10997         * testsuite/libgomp.c/pr38650.c: New test.
10998         * testsuite/libgomp.c++/pr38650.C: New test.
11000 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
11002         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
11004 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
11006         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
11008 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11010         * configure: Regenerate.
11012 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
11014         PR middle-end/36802
11015         * testsuite/libgomp.c/pr36802-1.c: New test.
11016         * testsuite/libgomp.c/pr36802-2.c: New test.
11017         * testsuite/libgomp.c/pr36802-3.c: New test.
11019 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
11021         PR libgomp/38270
11022         * config/linux/powerpc/mutex.h: New.
11024 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
11026         PR c++/38257
11027         * testsuite/libgomp.c++/for-7.C: New test.
11029         PR c++/38348
11030         * testsuite/libgomp.c++/for-6.C: New test.
11032 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
11034         PR testsuite/28870
11035         * testsuite/lib/libgomp.exp: Include new timeout library files.
11036         (libgomp_target_compile): Set timeout value from new proc.
11038 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
11040         PR libgomp/37938
11041         * config/linux/ia64/mutex.h: New.
11043 2008-11-04  Tobias Burnus  <burnus@net-b.de>
11045         PR libgomp/37935
11046         * libgomp.texi (Runtime library routines, environment variables):
11047         Update for OpenMP version 3.0.
11049 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
11050             Steve Ellcey  <sje@cup.hp.com>
11052         * configure: Regenerate for new libtool.
11053         * Makefile.in: Ditto.
11054         * testsuite/Makefile.in: Ditto.
11056 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
11057             Andreas Tobler  <a.tobler@schweiz.org>
11059         * config/bsd/proc.c: New file.
11060         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
11061         * configure.ac: Check for header <sys/sysctl.h>
11062         * configure: Regenerate.
11063         * config.h.in: Likewise.
11065 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
11067         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
11069 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
11071         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
11072         * Makefile.in: Regenerated.
11073         * testsuite/Makefile.in: Regenerated.
11075 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
11077         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
11078         depend on blddir if blddir exists.
11079         (libgomp_target_compile): Likewise.
11080         * testsuite/libgomp.c++/c++.exp: Likewise.
11081         * testsuite/libgomp.fortran/fortran.exp: Likewise.
11083 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11085         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
11086         Do not list GPL as Invariant Section.
11088 2008-07-28  Ilie Garbacea  <ilie@mips.com>
11089             Chao-ying Fu  <fu@mips.com>
11091         * configure.tgt: Enable futex for MIPS.
11092         * config/linux/mips/futex.h: New file.
11094 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
11096         * team.c (gomp_team_end): Free team immediately if it has
11097         just one thread.
11099 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
11101         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
11102         * testsuite/libgomp.fortran/fortran.exp: Same.
11103         * testsuite/libgomp.c/c.exp: Same.
11104         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
11105         directory to library path first.
11107 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
11109         * env.c (parse_stacksize): Add cast to avoid warning.
11110         (parse_spincount): Likewise.
11112 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
11114         * testsuite/libgomp.c/loop-10.c: New test.
11115         * libgomp.c/loop-3.c (main): Add lastprivate clause.
11116         * libgomp.c++/loop-6.C (main): Likewise.
11118         PR debug/36617
11119         * testsuite/libgomp.c/debug-1.c: New test.
11121 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
11123         * testsuite/libgomp.c/nqueens-1.c: New test.
11125         PR c++/36523
11126         * testsuite/libgomp.c++/task-7.C: New function.
11128 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11130         * configure: Regenerate.
11132 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11134         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
11135         mutex when HAVE_SYNC_BUILTINS isn't defined.
11137 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11139         * libgomp.texi (omp_test_lock): Fix typo.
11141 2008-06-12  Tobias Burnus  <burnus@net-b.de>
11143         * omp_lib.f90.in: Add "implicit none".
11145 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
11147         PR middle-end/36506
11148         * testsuite/libgomp.c/reduction-5.c: New test.
11150 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
11152         * libgomp.h (struct gomp_task): Add in_tied_task field.
11153         * task.c (gomp_init_task): Initialize it.
11154         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
11155         unconditionally.  Don't call gomp_team_barrier_wake if
11156         current task is implicit or if(0) from implicit and number of
11157         running tasks is equal to nthreads - 1.
11159         PR libgomp/36471
11160         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
11161         omp_get_team_size_8): Fix pastos.
11163         PR libgomp/36469
11164         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
11165         * configure: Regenerated.
11166         * config.h.in: Regenerated.
11167         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
11168         defined.
11170 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
11172         PR bootstrap/36452
11173         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
11174         (GOMP_loop_ull_dynamic_start): Likewise.
11175         (GOMP_loop_ull_guided_start): Likewise.
11176         (GOMP_loop_ull_ordered_static_start): Likewise.
11177         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
11178         (GOMP_loop_ull_ordered_guided_start): Likewise.
11180 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11181             Richard Henderson  <rth@redhat.com>
11182             Ulrich Drepper  <drepper@redhat.com>
11183             Jakob Blomer  <jakob.blomer@ira.uka.de>
11185         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
11186         Substitute also OMP_*LOCK_25*.
11187         * configure: Regenerated.
11188         * config.h.in: Regenerated.
11189         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11190         ptrlock.c and task.c.
11191         * Makefile.in: Regenerated.
11192         * testsuite/Makefile.in: Regenerated.
11193         * task.c: New file.
11194         * loop_ull.c: New file.
11195         * iter_ull.c: New file.
11196         * libgomp.h: Include ptrlock.h.
11197         (enum gomp_task_kind): New type.
11198         (struct gomp_team): Add task_lock, task_queue, task_count,
11199         task_running_count, single_count fields.  Add
11200         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11201         Remove work_share_lock, generation_mask,
11202         oldest_live_gen, num_live_gen and init_work_shares fields, add
11203         work work_share_list_alloc, work_share_list_free and work_share_chunk
11204         fields.  Change work_shares from pointer to pointers into an array.
11205         Change ordered_release field into gomp_sem_t ** from flexible array
11206         member.  Add implicit_task and initial_work_shares fields.
11207         Move close to the end of the struct.
11208         (struct gomp_team_state): Add single_count, last_work_share,
11209         active_level and level fields, remove work_share_generation.
11210         (gomp_barrier_handle_tasks): New prototype.
11211         (gomp_finish_task): New inline function.
11212         (struct gomp_work_share): Move chunk_size, end, incr into
11213         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11214         next_ll fields.  Reshuffle fields.  Add next_alloc,
11215         next_ws, next_free and inline_ordered_team_ids fields, change
11216         ordered_team_ids into pointer from flexible array member.
11217         Add mode field.  Put lock and next into a different cache line
11218         from most of the write-once fields.
11219         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11220         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11221         gomp_iter_ull_guided_next): New prototypes.
11222         (gomp_new_icv): New prototype.
11223         (struct gomp_thread): Add thread_pool and task fields.
11224         (struct gomp_thread_pool): New type.
11225         (gomp_new_team): New prototype.
11226         (gomp_team_start): Change type of last argument.
11227         (gomp_new_work_share): Removed.
11228         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11229         (gomp_work_share_init_done): New static inline.
11230         (gomp_throttled_spin_count_var, gomp_available_cpus,
11231         gomp_managed_threads): New extern decls.
11232         (gomp_init_task): New prototype.
11233         (gomp_spin_count_var): New extern var decl.
11234         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11235         or no alias support, or if not PIC.
11236         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11237         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11238         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11239         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11240         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11241         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11242         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11243         gomp_test_nest_lock_25): New prototypes.
11244         (omp_lock_symver, strong_alias): Define.
11245         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11246         decls.
11247         (gomp_end_task): New.
11248         (struct gomp_task_icv, gomp_global_icv): New.
11249         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11250         (struct gomp_task): New.
11251         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11252         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11253         (gomp_icv): New.
11254         (gomp_schedule_type): Reorder enum to match
11255         omp_sched_t.
11256         * team.c (struct gomp_thread_start_data): Add thread_pool and task
11257         fields.
11258         (gomp_thread_start): Add gomp_team_barrier_wait call.
11259         For non-nested case remove clearing of docked thread thr fields.
11260         Use pool fields instead of global gomp_* variables.  Use
11261         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
11262         Create tasks for each member thread.
11263         (free_team): Only destroy team barrier, task_lock here and free it.
11264         (gomp_free_thread): Free last_team if non-NULL.
11265         (gomp_team_end): Call gomp_team_barrier_wait instead of
11266         gomp_barrier_wait.  For nested case call one extra
11267         gomp_barrier_wait.  Move here some destruction from free_team.
11268         Call free_team on pool->last_team if any, rather than freeing
11269         current team.  Destroy work_share_list_free_lock ifndef
11270         HAVE_SYNC_BUILTINS.
11271         (gomp_new_icv): New function.
11272         (gomp_threads, gomp_threads_size, gomp_threads_used,
11273         gomp_threads_dock): Removed.
11274         (gomp_thread_destructor): New variable.
11275         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11276         functions.
11277         (gomp_team_start): Create new pool if current thread doesn't have
11278         one.  Use pool fields instead of global gomp_* variables.
11279         Initialize thread_pool field for new threads.  Clear single_count.
11280         Change last argument from ws to team, don't create
11281         new team, set ts.work_share to &team->work_shares[0] and clear
11282         ts.last_work_share.  Don't clear ts.work_share_generation.
11283         If number of threads changed, adjust atomically gomp_managed_threads.
11284         Use gomp_init_task instead of gomp_new_task,
11285         set thr->task to the corresponding implicit_task array entry.
11286         Create tasks for each member thread.  Initialize ts.level.
11287         (initialize_team): Call pthread_key_create on
11288         gomp_thread_destructor.
11289         (team_destructor): New function.
11290         (new_team): Removed.
11291         (gomp_new_team): New function.
11292         (free_team): Free gomp_work_share blocks chained through next_alloc,
11293         instead of freeing work_shares and destroying work_share_lock.
11294         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
11295         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
11296         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11297         of gomp_barrier_wait.
11298         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11299         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
11300         if gomp_work_share_start returned true.  Don't unlock ws->lock.
11301         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11302         of gomp_barrier_wait.
11303         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
11304         gomp_work_share_init_done if gomp_work_share_start returned true.
11305         Don't unlock ws->lock.
11306         * work.c: Include stddef.h.
11307         (free_work_share): Use work_share_list_free_lock instead
11308         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
11309         Call gomp_fini_work_share and then either free ws if orphaned, or
11310         put it into work_share_list_free list of the current team.
11311         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11312         functions.
11313         (gomp_work_share_start, gomp_work_share_end,
11314         gomp_work_share_end_nowait): Rewritten.
11315         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11316         (openmp_version): Set to 200805.
11317         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11318         omp_sched_guided, omp_sched_auto): New parameters.
11319         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11320         omp_set_max_active_levels, omp_get_max_active_levels,
11321         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11322         omp_get_active_level): New interfaces.
11323         * omp_lib.h.in (openmp_version): Set to 200805.
11324         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11325         omp_sched_guided, omp_sched_auto): New parameters.
11326         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11327         omp_set_max_active_levels, omp_get_max_active_levels,
11328         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11329         omp_get_active_level): New externals.
11330         * loop.c: Include limits.h.
11331         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11332         GFS_AUTO.
11333         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11334         Likewise.  Use gomp_icv.
11335         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11336         ts.static_trip here.
11337         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11338         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
11339         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11340         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
11341         don't unlock ws->lock, otherwise lock it.
11342         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11343         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
11344         (gomp_parallel_loop_start): Call gomp_new_team instead of
11345         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
11346         Adjust gomp_team_start caller.  Pass 0 as second argument to
11347         gomp_resolve_num_threads.
11348         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11349         If adding ws->chunk_size nthreads + 1 times after end won't
11350         overflow, set ws->mode to 1.
11351         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11352         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11353         GOMP_loop_ull_ordered_static_start,
11354         GOMP_loop_ull_ordered_dynamic_start,
11355         GOMP_loop_ull_ordered_guided_start,
11356         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11357         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11358         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11359         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11360         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11361         prototypes.
11362         * libgomp.map: Export lock routines also @@OMP_2.0.
11363         (GOMP_loop_ordered_dynamic_first,
11364         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11365         GOMP_loop_ordered_static_first): Remove.
11366         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11367         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11368         GOMP_loop_ull_ordered_dynamic_next,
11369         GOMP_loop_ull_ordered_dynamic_start,
11370         GOMP_loop_ull_ordered_guided_next,
11371         GOMP_loop_ull_ordered_guided_start,
11372         GOMP_loop_ull_ordered_runtime_next,
11373         GOMP_loop_ull_ordered_runtime_start,
11374         GOMP_loop_ull_ordered_static_next,
11375         GOMP_loop_ull_ordered_static_start,
11376         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11377         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11378         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11379         (omp_set_schedule, omp_get_schedule,
11380         omp_get_thread_limit, omp_set_max_active_levels,
11381         omp_get_max_active_levels, omp_get_level,
11382         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11383         omp_set_schedule_, omp_set_schedule_8_,
11384         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11385         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11386         omp_get_max_active_levels_, omp_get_level_,
11387         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11388         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11389         New exports @@OMP_3.0.
11390         * omp.h.in (omp_sched_t): New type.
11391         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11392         omp_set_max_active_levels, omp_get_max_active_levels,
11393         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11394         omp_get_active_level): New prototypes.
11395         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11396         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11397         gomp_thread_limit_var, gomp_remaining_threads_count,
11398         gomp_remaining_threads_lock): New variables.
11399         (parse_spincount): New function.
11400         (initialize_env): Call gomp_init_num_threads unconditionally.
11401         Initialize gomp_available_cpus.  Call parse_spincount,
11402         initialize gomp_{,throttled_}spin_count_var
11403         depending on presence and value of OMP_WAIT_POLICY and
11404         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
11405         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11406         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
11407         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
11408         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
11409         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11410         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11411         (gomp_global_icv): New.
11412         (parse_schedule): Use it.  Parse "auto".
11413         (omp_set_num_threads): Use gomp_icv.
11414         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11415         Likewise.
11416         (omp_get_max_threads): Move from parallel.c.
11417         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11418         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11419         add ialias.
11420         (parse_stacksize, parse_wait_policy): New functions.
11421         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11422         both wrappers for compatibility and new locks.
11423         (omp_set_schedule, omp_get_schedule,
11424         omp_get_thread_limit, omp_set_max_active_levels,
11425         omp_get_max_active_levels, omp_get_level,
11426         omp_get_ancestor_thread_num, omp_get_team_size,
11427         omp_get_active_level): New ialias_redirect.
11428         (omp_set_schedule_, omp_set_schedule_8_,
11429         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11430         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11431         omp_get_max_active_levels_, omp_get_level_,
11432         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11433         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11434         New functions.
11435         * parallel.c: Include limits.h.
11436         (gomp_resolve_num_threads): Add count argument.  Rewritten.
11437         (GOMP_parallel_start): Call gomp_new_team and pass that as last
11438         argument to gomp_team_start.  Pass 0 as second argument to
11439         gomp_resolve_num_threads.
11440         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11441         if gomp_thread_limit_var != ULONG_MAX.
11442         (omp_in_parallel): Implement using ts.active_level.
11443         (omp_get_max_threads): Move to env.c.
11444         (omp_get_level, omp_get_ancestor_thread_num,
11445         omp_get_team_size, omp_get_active_level): New functions,
11446         add ialias.
11447         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11448         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
11449         gomp_iter_dynamic_next instead of the _locked variant and don't take
11450         lock around it, otherwise acquire it before calling
11451         gomp_iter_dynamic_next_locked.
11452         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11453         gomp_iter_dynamic_next instead of the _locked variant and don't take
11454         lock around it.
11455         (GOMP_parallel_sections_start): Call gomp_new_team instead of
11456         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
11457         Adjust gomp_team_start caller.  Pass count as second argument to
11458         gomp_resolve_num_threads, don't adjust num_threads after the call.
11459         Use gomp_icv.
11460         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11461         ws->chunk_size by incr.
11462         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
11463         code.
11464         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11465         types.
11466         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11467         (omp_check_defines): Check even the compat defines.
11468         * config/linux/ptrlock.c: New file.
11469         * config/linux/ptrlock.h: New file.
11470         * config/linux/wait.h: New file.
11471         * config/posix/ptrlock.c: New file.
11472         * config/posix/ptrlock.h: New file.
11473         * config/linux/bar.h (gomp_team_barrier_wait,
11474         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11475         (gomp_team_barrier_set_task_pending,
11476         gomp_team_barrier_clear_task_pending,
11477         gomp_team_barrier_set_waiting_for_tasks,
11478         gomp_team_barrier_waiting_for_tasks,
11479         gomp_team_barrier_done): New inlines.
11480         (gomp_barrier_t): Rewritten.
11481         (gomp_barrier_state_t): New typedef.
11482         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11483         gomp_barrier_wait_start): Rewritten.
11484         (gomp_barrier_wait_end): Change second argument to
11485         gomp_barrier_state_t.
11486         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11487         inlines.
11488         * config/linux/bar.c: Include wait.h instead of libgomp.h and
11489         futex.h.
11490         (gomp_barrier_wait_end): Rewritten.
11491         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11492         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11493         * config/posix/bar.h (gomp_barrier_t): Add generation field.
11494         (gomp_barrier_state_t): New typedef.
11495         (gomp_team_barrier_wait,
11496         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11497         (gomp_barrier_wait_start): Or all but low 2 bits from generation
11498         into the return value.  Return gomp_barrier_state_t.
11499         (gomp_team_barrier_set_task_pending,
11500         gomp_team_barrier_clear_task_pending,
11501         gomp_team_barrier_set_waiting_for_tasks,
11502         gomp_team_barrier_waiting_for_tasks,
11503         gomp_team_barrier_done): New inlines.
11504         (gomp_barrier_wait_end): Change second argument to
11505         gomp_barrier_state_t.
11506         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11507         inlines.
11508         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11509         (gomp_barrier_wait_end): Change second argument to
11510         gomp_barrier_state_t.
11511         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11512         gomp_team_barrier_wake): New functions.
11513         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11514         futex.h.
11515         (gomp_futex_wake, gomp_futex_wait): New variables.
11516         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11517         * config/linux/lock.c: Rewrite to make locks task owned,
11518         for backwards compatibility provide the old entrypoints
11519         if symbol versioning.  Include wait.h instead of libgomp.h and
11520         futex.h.
11521         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11522         * config/posix95/lock.c: Rewrite to make locks task owned,
11523         for backwards compatibility provide the old entrypoints
11524         if symbol versioning.
11525         * config/posix/lock.c: Rewrite to make locks task owned,
11526         for backwards compatibility provide the old entrypoints
11527         if symbol versioning.
11528         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11529         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11530         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11531         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11532         (sys_futex0): Return error code.
11533         (futex_wake, futex_wait): If ENOSYS was returned, clear
11534         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11535         (cpu_relax, atomic_write_barrier): New static inlines.
11536         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11537         (futex_wake, futex_wait): If ENOSYS was returned, clear
11538         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11539         (cpu_relax, atomic_write_barrier): New static inlines.
11540         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11541         (sys_futex0): Return error code.
11542         (futex_wake, futex_wait): If ENOSYS was returned, clear
11543         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11544         (cpu_relax, atomic_write_barrier): New static inlines.
11545         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11546         (sys_futex0): Return error code.
11547         (futex_wake, futex_wait): If ENOSYS was returned, clear
11548         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11549         (cpu_relax, atomic_write_barrier): New static inlines.
11550         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11551         (sys_futex0): Return error code.
11552         (futex_wake, futex_wait): If ENOSYS was returned, clear
11553         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11554         (cpu_relax, atomic_write_barrier): New static inlines.
11555         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11556         (sys_futex0): Return error code.
11557         (futex_wake, futex_wait): If ENOSYS was returned, clear
11558         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11559         (cpu_relax, atomic_write_barrier): New static inlines.
11560         * config/linux/sem.c: Include wait.h instead of libgomp.h and
11561         futex.h.
11562         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11563         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11564         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11565         types.
11566         (omp_nest_lock_t): Change owner into void *, add lock field.
11567         * config/posix95/omp-lock.h: Include semaphore.h.
11568         (omp_lock_25_t, omp_nest_lock_25_t): New types.
11569         (omp_lock_t): Use sem_t instead of mutex if semaphores
11570         aren't broken.
11571         (omp_nest_lock_t): Likewise.  Change owner to void *.
11572         * config/posix/omp-lock.h: Include semaphore.h.
11573         (omp_lock_25_t, omp_nest_lock_25_t): New types.
11574         (omp_lock_t): Use sem_t instead of mutex if semaphores
11575         aren't broken.
11576         (omp_nest_lock_t): Likewise.  Add owner field.
11578 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11580         * testsuite/libgomp.c/collapse-1.c: New test.
11581         * testsuite/libgomp.c/collapse-2.c: New test.
11582         * testsuite/libgomp.c/collapse-3.c: New test.
11583         * testsuite/libgomp.c/icv-1.c: New test.
11584         * testsuite/libgomp.c/icv-2.c: New test.
11585         * testsuite/libgomp.c/lib-2.c: New test.
11586         * testsuite/libgomp.c/lock-1.c: New test.
11587         * testsuite/libgomp.c/lock-2.c: New test.
11588         * testsuite/libgomp.c/lock-3.c: New test.
11589         * testsuite/libgomp.c/loop-4.c: New test.
11590         * testsuite/libgomp.c/loop-5.c: New test.
11591         * testsuite/libgomp.c/loop-6.c: New test.
11592         * testsuite/libgomp.c/loop-7.c: New test.
11593         * testsuite/libgomp.c/loop-8.c: New test.
11594         * testsuite/libgomp.c/loop-9.c: New test.
11595         * testsuite/libgomp.c/nested-3.c: New test.
11596         * testsuite/libgomp.c/nestedfn-6.c: New test.
11597         * testsuite/libgomp.c/sort-1.c: New test.
11598         * testsuite/libgomp.c/task-1.c: New test.
11599         * testsuite/libgomp.c/task-2.c: New test.
11600         * testsuite/libgomp.c/task-3.c: New test.
11601         * testsuite/libgomp.c/task-4.c: New test.
11602         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11603         to C++ testsuite default compiler options.
11604         * testsuite/libgomp.c++/collapse-1.C: New test.
11605         * testsuite/libgomp.c++/collapse-2.C: New test.
11606         * testsuite/libgomp.c++/ctor-10.C: New test.
11607         * testsuite/libgomp.c++/for-1.C: New test.
11608         * testsuite/libgomp.c++/for-2.C: New test.
11609         * testsuite/libgomp.c++/for-3.C: New test.
11610         * testsuite/libgomp.c++/for-4.C: New test.
11611         * testsuite/libgomp.c++/for-5.C: New test.
11612         * testsuite/libgomp.c++/loop-8.C: New test.
11613         * testsuite/libgomp.c++/loop-9.C: New test.
11614         * testsuite/libgomp.c++/loop-10.C: New test.
11615         * testsuite/libgomp.c++/task-1.C: New test.
11616         * testsuite/libgomp.c++/task-2.C: New test.
11617         * testsuite/libgomp.c++/task-3.C: New test.
11618         * testsuite/libgomp.c++/task-4.C: New test.
11619         * testsuite/libgomp.c++/task-5.C: New test.
11620         * testsuite/libgomp.c++/task-6.C: New test.
11621         * testsuite/libgomp.fortran/allocatable1.f90: New test.
11622         * testsuite/libgomp.fortran/allocatable2.f90: New test.
11623         * testsuite/libgomp.fortran/allocatable3.f90: New test.
11624         * testsuite/libgomp.fortran/allocatable4.f90: New test.
11625         * testsuite/libgomp.fortran/collapse1.f90: New test.
11626         * testsuite/libgomp.fortran/collapse2.f90: New test.
11627         * testsuite/libgomp.fortran/collapse3.f90: New test.
11628         * testsuite/libgomp.fortran/collapse4.f90: New test.
11629         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11630         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11631         * testsuite/libgomp.fortran/lib4.f90: New test.
11632         * testsuite/libgomp.fortran/lock-1.f90: New test.
11633         * testsuite/libgomp.fortran/lock-2.f90: New test.
11634         * testsuite/libgomp.fortran/nested1.f90: New test.
11635         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11636         * testsuite/libgomp.fortran/strassen.f90: New test.
11637         * testsuite/libgomp.fortran/tabs1.f90: New test.
11638         * testsuite/libgomp.fortran/tabs2.f: New test.
11639         * testsuite/libgomp.fortran/task1.f90: New test.
11640         * testsuite/libgomp.fortran/task2.f90: New test.
11641         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11642         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11643         * testsuite/libgomp.c/pr26943-2.c: Likewise.
11644         * testsuite/libgomp.c/pr26943-3.c: Likewise.
11645         * testsuite/libgomp.c/pr26943-4.c: Likewise.
11647 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
11649         PR c++/36308
11650         * testsuite/libgomp.c++/ctor-11.C: New test.
11651         * testsuite/libgomp.c++/ctor-12.C: New test.
11653 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
11655         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11657 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
11659         PR middle-end/36106
11660         * testsuite/libgomp.c/atomic-5.c: New test.
11661         * testsuite/libgomp.c/atomic-6.c: New test.
11662         * testsuite/libgomp.c/autopar-1.c: New test.
11664 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11666         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11667         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11668         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11669         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11670         * configure: Regenerate.
11671         * Makefile.in, testsuite/Makefile.in: Likewise.
11673 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
11675         PR bootstrap/35457
11676         * aclocal.m4: Regenerate.
11677         * configure: Regenerate.
11679 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
11681         PR middle-end/35611
11682         * testsuite/libgomp.c/atomic-4.c: New test.
11684         PR libgomp/35625
11685         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11686         (gomp_iter_guided_next): Likewise.
11687         * testsuite/libgomp.c/pr35625.c: New test.
11689 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11691         * aclocal.m4: Regenerate.
11692         * configure: Likewise.
11693         * Makefile.in: Likewise.
11694         * testsuite/Makefile.in: Likewise.
11696 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
11698         PR middle-end/35185
11699         * testsuite/libgomp.c++/pr35185.C: New test.
11701 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
11703         PR middle-end/35549
11704         * testsuite/libgomp.c/pr35549.c: New test.
11706 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
11708         * testsuite/libgomp.c/atomic-3.c: New test.
11710 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11712         PR fortran/33197
11713         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11714         .F08 file suffixes.
11716 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
11718         PR libgomp/33131
11719         * configure.ac: Add ACX_HEADER_STRING.
11720         * env.c: Include strings.h.
11721         * aclocal.m4: Regenerate.
11722         * config.h.in: Regenerate.
11723         * configure: Regenerate.
11724         * Makefile.in: Regenerate.
11725         * testsuite/Makefile.in: Regenerate.
11727 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
11729         PR middle-end/35196
11730         * testsuite/libgomp.c/pr35196.c: New test.
11732         PR middle-end/35130
11733         * testsuite/libgomp.fortran/pr35130.f90: New test.
11734         * testsuite/libgomp.c/pr35130.c: New test.
11736 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
11738         PR middle-end/33880
11739         * testsuite/libgomp.c/pr33880.c: New test.
11740         * testsuite/libgomp.fortran/pr33880.f90: New test.
11742 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
11744         * configure: Regenerate.
11746 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
11748         * configure.ac: Move futex checking into ../config/futex.m4.
11749         * configure: Rebuilt.
11750         * aclocal.m4: Rebuilt.
11751         * Makefile.in: Rebuilt.
11753         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11754         2007-10-15 ../config/tls.m4 change.
11756 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
11758         PR c++/34513
11759         * testsuite/libgomp.c/pr34513.c: New test.
11760         * testsuite/libgomp.c++/pr34513.C: New test.
11762 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
11764         PR target/32765
11765         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11767 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
11769         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
11771 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
11773         * testsuite/libgomp.c/private-1.c: New test.
11775 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
11776             Paolo Bonzini  <bonzini@gnu.org>
11778         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
11779         instead of 'VPATH ='.
11780         * Makefile.in: Regenerate.
11782 2007-11-23  Matthias Klose  <doko@ubuntu.com>
11784         * configure.ac: Adjust makeinfo version check.
11785         * configure: Regenerate.
11787 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
11789         PR fortran/34020
11790         * testsuite/libgomp.fortran/pr34020.f90: New test.
11792 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
11794         PR c++/33894
11795         * testsuite/libgomp.c++/atomic-1.C: New test.
11797 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
11799         PR libgomp/33275
11800         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11801         Make x and y integers rather than (implicit) reals.  Add private (j)
11802         clause to the last omp parallel.
11804 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
11806         * configure: Regenerate following changes to ../config/tls.m4.
11808 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
11810         * testsuite/libgomp.fortran/stack.f90: New test.
11812 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
11814         * config/mingw32/proc.c: New file.
11816 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
11818         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11819         (main): Use __get_cpuid to get i386 target fetaures.
11820         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11821         (main): Use __get_cpuid to get x86_64 target fetaures.
11823 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
11825         PR target/32765
11826         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11827         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11829 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
11831         PR fortran/32550
11832         * testsuite/libgomp.fortran/pr32550.f90: New test.
11833         * testsuite/libgomp.fortran/crayptr2.f90: New test.
11835 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11837         * aclocal.m4: Regenerated.
11839 2007-07-05  Tobias Burnus  <burnus@net-b.de>
11841         PR fortran/32359
11842         * testsuite/libgomp.fortran/pr32359.f90: New.
11844 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
11846         PR libgomp/32468
11847         * sections.c (GOMP_parallel_sections_start): Only decrease
11848         number of threads to COUNT if dyn_var is true.
11849         * testsuite/libgomp.c/pr32468.c: New test.
11851 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11853         PR libgomp/26308
11854         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11856 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
11858         PR middle-end/32362
11859         * testsuite/libgomp.c/pr32362-1.c: New test.
11860         * testsuite/libgomp.c/pr32362-2.c: New test.
11861         * testsuite/libgomp.c/pr32362-3.c: New test.
11863 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
11865         * team.c (gomp_team_start): Fix setting up thread_attr
11866         stack size.
11868 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
11870         * configure: Regenerate.
11872 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
11874         * Makefile.in: Regenerate.
11875         * configure: Regenerate.
11876         * aclocal.m4: Regenerate.
11877         * testsuite/Makefile.in: Regenerate.
11879 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
11881         * config/linux/proc.c: New file.
11883         PR libgomp/28482
11884         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11886 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
11888         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11890 2007-04-16  Matthias Klose  <doko@debian.org>
11892         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11893         flags if not building with -m64.
11894         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11895         flag for i?86-*-* targets, if current target matches -m64.
11897 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
11899         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11900         * Makefile.in: Regenerate.
11902 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11904         PR testsuite/31369
11905         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11906         ld_library_path.
11907         * testsuite/libgomp.fortran/fortran.exp: Likewise.
11909 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
11911         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11912         decls.
11913         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11914         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11915         (parse_affinity): New function.
11916         (initialize_env): Call it and gomp_init_affinity.
11917         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11918         create new pthread_attr_t and call gomp_init_thread_affinity
11919         on it for each thread before passing the attribute to pthread_create.
11920         * config/linux/affinity.c: New file.
11921         * config/posix/affinity.c: New file.
11922         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11923         * configure: Rebuilt.
11924         * config.h.in: Rebuilt.
11925         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11926         * Makefile.in: Rebuilt.
11928 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
11930         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11931         *-*-darwin*.
11932         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11933         and use it if found.
11935 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
11937         * testsuite/config/default.exp: New file.
11938         * testsuite/lib/libgomp.exp: New file.
11939         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11940         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11941         load_lib *, load_gcc_lib *): Move to libgomp.exp.
11942         (libgomp_load): Remove.
11943         * testsuite/lib/libgomp.exp (libgomp_init): Compute
11944         always_ld_library_path, not ld_library_path.  Set additional_flags
11945         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11946         (target_compile): Do not call libgomp_init.  Append lang_library_path
11947         and lang_link_flags to options.
11948         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
11949         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
11950         here.
11951         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11952         always_ld_library_path.  Set LD_LIBRARY_PATH here.
11953         * testsuite/libgomp.fortran/fortran.exp: Ditto.
11954         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11955         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11956         CX8 flag.
11957         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11958         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11959         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11960         * testsuite/libgomp.c/pr29947-1.c: Ditto.
11961         * testsuite/libgomp.c/atomic-10.c: Ditto.
11963 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11965         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11966         dg-final cleanup-modules line.
11967         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11968         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11969         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11970         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11971         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11972         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11973         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11975 2007-03-18  Andreas Schwab  <schwab@suse.de>
11977         * acinclude.m4: Adjust regular expression for ld version
11978         extraction.
11979         * configure: Regenerate.
11981 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
11983         * Makefile.am: Add install-pdf target as copied from
11984         automake v1.10 rules.
11985         * Makefile.in: Regenerate
11987 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
11989         PR libgomp/28486
11990         * configure: Regenerate.
11992         PR c++/30703
11993         * testsuite/libgomp.c++/pr30703.C: New test.
11995 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11997         Revert:
11998         2006-07-05  Eric Christopher  <echristo@apple.com>
11999         * configure.ac: Depend addition of -pthread on host OS.
12000         * configure: Regenerate.
12002 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12004         * libgomp.texi: Fix spacing after abbreviations.
12006 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
12008         PR libgomp/30546
12009         * configure.ac: Add check for makeinfo
12010         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
12011         if an appropriate version of makeinfo is found.
12012         * aclocal.m4: Regenerated.
12013         * configure: Regenerated.
12014         * Makefile.in: Regenerated.
12015         * testsuite/Makefile.in: Regenerated.
12017 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
12019         PR libgomp/30540
12020         * libgomp.texi: More about implementation-dependent settings.
12022 2007-01-26  Tobias Burnus  <burnus@net-b.de>
12024         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
12026 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12028         PR middle-end/30494
12029         * testsuite/libgomp.c/pr30494.c: New test.
12031 2007-01-15  Tom Tromey  <tromey@redhat.com>
12033         * configure: Rebuilt.
12034         * configure.ac: Fixed comment.
12036 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
12038         * libgomp.texi: Document implementation specific default values of
12039         environment variables.
12041 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
12043         PR libgomp/28209
12044         * libgomp.texi: New file.
12045         * configure.ac: Add --enable-generated-files-in-srcdir option.
12046         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
12047         files to srcdir.
12048         * Makefile.in: Regenerated.
12049         * config.h.in: Regenerated.
12050         * testsuite/Makefile.in: Regenerated.
12051         * NOTES: Removed.
12053 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
12055         PR libgomp/29949
12056         * env.c (omp_set_num_threads): Set illegal thread count to 1.
12058 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
12060         * configure: Regenerate.
12062 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12064         PR libgomp/29947
12065         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
12066         start if there shouldn't be any loop iterations.
12067         (gomp_loop_ordered_static_start): Remove start == end test.
12068         * testsuite/libgomp.c/pr29947-1.c: New test.
12069         * testsuite/libgomp.c/pr29947-2.c: New test.
12071 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
12073         * configure.tgt: Force initial-exec TLS model on Linux only.
12075 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
12077         * configure: Regenerated.
12079 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
12081         * env.c (parse_schedule): Reject out of range values.
12082         (parse_unsigned_long): Reject out of range, negative or zero values.
12084 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12086         PR fortran/29629
12087         * testsuite/libgomp.fortran/pr29629.f90: New test.
12089 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
12091         PR libgomp/29494
12092         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
12093         * config/posix95: New directory.
12094         * config/posix95/omp-lock.h: New file.
12095         * config/posix95/lock.c: Likewise.
12097 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
12099         * aclocal.m4: Regenerate.
12100         * configure: Regenerate.
12102 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
12104         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
12105         '<' to '<='.
12107 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
12109         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
12110         test.
12111         * configure: Regenerate.
12112         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
12114 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
12116         PR middle-end/25261
12117         PR middle-end/28790
12118         * testsuite/libgomp.c/nestedfn-4.c: New test.
12119         * testsuite/libgomp.c/nestedfn-5.c: New test.
12120         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
12122         PR fortran/29097
12123         * testsuite/libgomp.fortran/condinc1.f: New test.
12124         * testsuite/libgomp.fortran/condinc2.f: New test.
12125         * testsuite/libgomp.fortran/condinc3.f90: New test.
12126         * testsuite/libgomp.fortran/condinc4.f90: New test.
12127         * testsuite/libgomp.fortran/condinc1.inc: New file.
12129 2006-09-18  Tom Tromey  <tromey@redhat.com>
12131         * configure: Rebuilt.
12133 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
12135         PR c/28768
12136         PR preprocessor/14634
12137         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
12138         to AC_DEFINE.
12139         * configure: Regenerate.
12141 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
12143         * testsuite/libgomp.fortran/reduction3.f90: Change
12144         -2147483648 to -huge(i)-1 to avoid overflow.
12145         * testsuite/libgomp.fortran/reduction4.f90: Change
12146         Z'ffffffff' to not(0) to avoid overflow.
12148 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
12150         PR libgomp/25938
12151         * Makefile.am (libsubincludedir): New.
12152         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
12153         * Makefile.in: Regenerate.
12155 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
12157         PR libgomp/28725
12158         * env.c: Include ctype.h.
12159         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
12160         leading and/or trailing whitespace and compare strings case
12161         insensitively.
12163 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
12165         PR fortran/28390
12166         * testsuite/libgomp.fortran/pr28390.f: New test.
12168 2006-07-05  Eric Christopher  <echristo@apple.com>
12170         * configure.ac: Depend addition of -pthread on host OS.
12171         * configure: Regenerate.
12173 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
12175         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
12176         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
12177         defined.
12179 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
12181         PR libgomp/26175
12182         PR libgomp/26477
12183         * configure.ac: If neither --enable-linux-futex nor
12184         --disable-linux-futex is passed, determine the default by checking
12185         for compiling and/or running against NPTL.  With --enable-linux-futex,
12186         check if SYS_gettid and SYS_futex are defined.
12187         * configure: Rebuilt.
12189 2006-06-14  Richard Henderson  <rth@redhat.com>
12191         PR libgomp/28008
12192         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12193         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12195 2006-06-09  Richard Henderson  <rth@redhat.com>
12197         * env.c (gomp_nthreads_var): Change to unsigned long.
12198         (gomp_run_sched_chunk): Likewise.
12199         (parse_unsigned_long): Rename from parse_num_threads and generalize.
12200         (initialize_env): Initialize gomp_thread_attr.
12201         * libgomp.h (gomp_nthreads_var): Update decl.
12202         (gomp_run_sched_chunk): Likewise.
12203         (gomp_thread_attr): Declare.
12204         * team.c (gomp_thread_attr): Export.
12205         (initialize_team): Don't initialize it.
12207 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
12209         PR fortran/27916
12210         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12211         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12213 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12215         * config/mingw32/time.c: New file.
12216         * configure.tgt: Use it.
12218 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
12220         * Makefile.am: Add install-html target. Add install-html to .PHONY
12221         * Makefile.in: Regenerate.
12223 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12225         PR libgomp/27612
12226         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12227         * testsuite/libgomp.c/critical-1.c: Likewise.
12228         * testsuite/libgomp.c/loop-1.c: Likewise.
12229         * testsuite/libgomp.c/loop-2.c: Likewise.
12230         * testsuite/libgomp.c/single-1.c: Likewise.
12231         * testsuite/libgomp.c/ordered-1.c: Likewise.
12232         * testsuite/libgomp.c/ordered-2.c: Likewise.
12234 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12236         PR middle-end/27416
12237         * libgomp.fortran/pr27416-1.f90: New test.
12239 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
12241         PR fortran/27395
12242         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12243         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12245 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
12247         PR c++/26943
12248         * testsuite/libgomp.c/pr26943-1.c: New test.
12249         * testsuite/libgomp.c/pr26943-2.c: New test.
12250         * testsuite/libgomp.c/pr26943-3.c: New test.
12251         * testsuite/libgomp.c/pr26943-4.c: New test.
12252         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12253         * testsuite/libgomp.c++/pr26943.C: New test.
12255 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
12257         PR middle-end/27337
12258         * testsuite/libgomp.c++/pr27337.C: New test.
12260 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
12262         PR c/26171
12263         * testsuite/libgomp.c/pr26171.c: New test.
12265 2006-04-25  Richard Henderson  <rth@redhat.com>
12267         PR libgomp/25865
12268         * configure.ac: Use GCC_CHECK_TLS.
12269         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12270         * Makefile.in, aclocal.m4, configure: Regenerate.
12272 2006-04-10  Matthias Klose  <doko@debian.org>
12274         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12275         directory names containing underscores.
12277 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
12279         PR c++/26691
12280         * testsuite/libgomp.c++/pr26691.C: New test.
12282 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
12284         * testsuite/libgomp.fortran/retval2.f90: New test.
12286 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
12288         * testsuite/libgomp.c++: New directory.
12290 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
12292         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12293         * config/posix/sem.c: Implement the above.
12295 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
12297         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12298         define HAVE_BROKEN_POSIX_SEMAPHORES.
12299         * configure: Rebuilt.
12300         * config.h.in: Rebuilt.
12302 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12304         PR bootstrap/26161
12305         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12306         for the other pthread check.
12307         * configure: Regenerate.
12308         * config.h.in: Regenerate.
12310 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
12312         PR libgomp/25938
12313         PR libgomp/25984
12314         * Makefile.am (fincludedir): New variable.
12315         (nodist_include_HEADERS): Remove Fortran files.
12316         (nodist_finclude_HEADERS): New variable.
12317         * Makefile.in: Regenerated.
12319 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
12321         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12322         Remove tests for returning assumed character length arrays.
12324 2006-02-12  Roger Sayle  <roger@eyesopen.com>
12325             John David Anglin  <dave@hiauly1.hia.nrc.ca>
12327         PR libgomp/25936
12328         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12330 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
12332         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12334 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
12336         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12337         part of LD_LIBRARY_PATH manually.
12339 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
12341         PR libgomp/25852
12342         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12343         libgomp_init.
12345 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
12347         PR libgomp/25884
12348         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12349         * configure.ac (PERL): Don't set.
12350         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12351         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12352         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12353         * omp.h.in: Wrap the new configure substitutions with @ characters.
12354         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12355         * aclocal.m4, configure, Makefile.in: Regenerate.
12356         * mkomp_h.pl: Delete.
12358 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
12360         PR libgomp/25259
12361         * configure.ac: Use GCC_HEADER_STDINT.
12362         * libgomp.h: Include gstdint.h.
12363         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12364         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12366 2006-01-24  Richard Henderson  <rth@redhat.com>
12368         PR libgomp/25942
12369         * configure.ac: Add AM_MAINTAINER_MODE.
12370         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12372 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
12374         * Makefile.in: Regenerate.
12375         * testsuite/Makefile.in: Regenerate.
12376         * aclocal.m4: Regenerate.
12378 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
12380         * config/posix/proc.c: Conditional include of sys/loadavg.h for
12381         Solaris.
12382         * configure.ac: Add check for loadavg.h.
12383         (link_gomp): Adjust comment.
12384         * configure: Regenerate.
12385         * config.h.in: Regenerate.
12387 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
12389         PR libgomp/25877
12390         * configure.ac: Remove check for alloca.h.
12391         * configure: Regenerate.
12392         * config.h.in: Regenerate.
12393         * libgomp.h: define gomp_alloca to be __builtin_alloca.
12394         * team.c: Remove use of alloca.h.
12395         Call gomp_alloca instead of alloca.
12397 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
12399         PR libgomp/25877
12400         * team.c: Add include of alloca.h.
12401         * configure.ac: Add check for alloca.h.
12402         * configure: Regenerate.
12403         * config.h.in: Regenerate.
12405 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
12407         PR fortran/25219
12408         * testsuite/libgomp.fortran/pr25219.f90: New test.
12410 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
12412         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12413         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12414         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12415         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12416         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12417         testsuite/libgomp.fortran/threadprivate1.f90,
12418         testsuite/libgomp.fortran/threadprivate2.f90,
12419         testsuite/libgomp.fortran/threadprivate3.f90,
12420         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12421         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12422         testsuite/libgomp.fortran/omp_parse3.f90: Change required
12423         effective-target to TLS runtime.
12425         * testsuite/libgomp.fortran/pr25162.f: Require
12426         effective-target TLS runtime.
12428 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
12430         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12431         * testsuite/libgomp.c/nestedfn-3.c: New test.
12433 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
12435         PR fortran/25162
12436         * testsuite/libgomp.fortran/pr25162.f: New test.
12438 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
12440         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12441         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12443 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
12445         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12446         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12447         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12448         single.c, team.c, work.c, config/linux/alpha/futex.h,
12449         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12450         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12451         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12452         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12453         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12454         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12455         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12456         FSF address.
12458 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
12460         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12461         to nodist_noinst_HEADERS.
12462         * Makefile.in: Rebuilt.
12464         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12465         add integer count field.
12466         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12467         omp_nest_lock_t type change.
12468         (omp_init_nest_lock): Likewise.  Initialize count to 0.
12469         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12470         Increment count.
12471         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12472         Decrement count.
12473         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12474         Increment count if successful and return the new nesting level.
12475         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12476         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12477         * testsuite/libgomp.c/lib-1.c: New test.
12478         * testsuite/libgomp.fortran/lib1.f90: New test.
12479         * testsuite/libgomp.fortran/lib2.f: New test.
12480         * testsuite/libgomp.fortran/lib3.f: New test.
12482 2005-11-17  Richard Henderson  <rth@redhat.com>
12484         PR 24845
12485         * Makefile.am (nodist_toolexeclib_HEADERS): New.
12486         * configure.ac (link_gomp): New.  Substitute it.
12487         (AC_CONFIG_FILES): Add libgomp.spec.
12488         * libgomp.spec.in: New file.
12489         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12490         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12492 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
12494         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12495         reduction(-:var) behaving the same as reduction(+:var).
12496         * testsuite/libgomp.c/reduction-4.c: New test.
12498 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
12500         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12501         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12502         testsuite/libgomp.c/copyin-3.c,
12503         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12504         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12505         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12506         testsuite/libgomp.c++/pr24455.C,
12507         testsuite/libgomp.fortran/threadprivate1.f90,
12508         testsuite/libgomp.fortran/threadprivate2.f90,
12509         testsuite/libgomp.fortran/threadprivate3.f90,
12510         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12511         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12512         testsuite/libgomp.fortran/omp_parse3.f90: Require
12513         effective-target TLS.
12515 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
12517         * HEADER: Remove.
12519 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
12521         PR libgomp/24797
12522         * team.c (initialize_team): Pass NULL rather than free as
12523         pthread_key_create destructor.  Initialize thread specific data
12524         pointer in initial thread to a static local variable rather than
12525         malloced memory.
12527 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
12529         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12530         its location to ld_library_path.
12532 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
12534         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12536 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
12538         * testsuite/libgomp.c: Rename from libgomp.dg.
12540 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
12542         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12543         threadprivate variable 'i'.
12545 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
12547         * config/linux/s390/futex.h: New file.
12548         * configure.tgt: Use it.
12550         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12551         before the parallel.
12553 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
12555         PR c++/24734
12556         * testsuite/libgomp.c++/master-1.C: New test.
12558 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
12560         * testsuite/libgomp.dg/copyin-3.c: New test.
12562 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
12564         * testsuite/libgomp.fortran/retval1.f90: New test.
12565         * testsuite/libgomp.fortran/vla7.f90: New test.
12567 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
12569         * testsuite/libgomp.fortran/vla2.f90: New test.
12570         * testsuite/libgomp.fortran/vla3.f90: New test.
12571         * testsuite/libgomp.fortran/vla4.f90: New test.
12572         * testsuite/libgomp.fortran/vla5.f90: New test.
12573         * testsuite/libgomp.fortran/vla6.f90: New test.
12575 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
12577         * config/linux/sparc/futex.h: New file.
12578         * configure.tgt: Use it.
12579         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12581         * critical.c: Include stdlib.h.
12582         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12583         ignoring return value.
12584         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12585         LIBGOMP_CHECK_SYNC_BUILTINS check.
12586         * configure: Rebuilt.
12588 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
12590         * testsuite/libgomp.fortran/vla1.f90: New test.
12592 2005-10-31  Richard Henderson  <rth@redhat.com>
12594         * testsuite/libgomp.fortran/character2.f90: Fix race condition
12595         setting 's' in different threads.
12597 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
12599         * libgomp.h (attribute_hidden, ialias): Define.
12600         * config/posix/proc.c (omp_get_num_procs): Add ialias.
12601         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12602         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12603         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12604         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12605         omp_test_lock, omp_test_nest_lock): Likewise.
12606         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12607         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12608         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12609         omp_test_lock, omp_test_nest_lock): Likewise.
12610         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12611         omp_get_dynamic, omp_get_nested): Likewise.
12612         * parallel.c (omp_get_num_threads, omp_get_max_threads,
12613         omp_get_thread_num, omp_in_parallel): Likewise.
12614         * fortran.c (ialias_redirect): Define.
12615         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12616         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12617         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12618         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12619         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12620         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12621         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12622         omp_get_wtime): Add ialias_redirect.
12624 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
12626         * fortran.c: Include stdlib.h.
12628 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
12630         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12631         * Makefile.in: Regenerated.
12633 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
12635         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12636         * libgomp_f.h.in (omp_check_defines): New function.
12637         * env.c: Include libgomp_f.h.
12638         (initialize_env): Call omp_check_defines.
12640         * testsuite/libgomp.dg/copyin-2.c: New test.
12641         * testsuite/libgomp.c++/copyin-2.C: New test.
12642         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12644         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12645         * testsuite/libgomp.fortran/sharing2.f90: New test.
12647         * testsuite/libgomp.dg/copyin-1.c: New test.
12648         * testsuite/libgomp.c++/copyin-1.C: New test.
12650 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
12652         * testsuite/libgomp.fortran/crayptr1.f90: New test.
12654         * testsuite/libgomp.fortran/workshare1.f90: New test.
12656         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12657         only test.
12658         * libgomp.fortran/sharing1.f90: New test.
12660 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
12662         PR c++/24502
12663         * testsuite/libgomp.c++/loop-7.C: New test.
12665         * testsuite/libgomp.dg/nestedfn-2.c: New test.
12667         * testsuite/libgomp.dg/nestedfn-1.c: New test.
12668         * testsuite/libgomp.fortran/reduction6.f90: New test.
12669         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12671 2005-10-23  Richard Henderson  <rth@redhat.com>
12673         * testsuite/libgomp.c++/ctor-1.C: New.
12674         * testsuite/libgomp.c++/ctor-2.C: New.
12675         * testsuite/libgomp.c++/ctor-3.C: New.
12676         * testsuite/libgomp.c++/ctor-4.C: New.
12677         * testsuite/libgomp.c++/ctor-5.C: New.
12678         * testsuite/libgomp.c++/ctor-6.C: New.
12679         * testsuite/libgomp.c++/ctor-7.C: New.
12680         * testsuite/libgomp.c++/ctor-8.C: New.
12681         * testsuite/libgomp.c++/ctor-9.C: New.
12683 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
12685         PR 24455
12686         * testsuite/libgomp.c++/pr24455-1.C: New test.
12687         * testsuite/libgomp.c++/pr24455.C: New test.
12688         * testsuite/libgomp.dg/pr24455-1.c: New test.
12689         * testsuite/libgomp.dg/pr24455.c: New test.
12691 2005-10-20  Richard Henderson  <rth@redhat.com>
12693         * testsuite/libgomp.c++/loop-6.C: New.
12694         * testsuite/libgomp.dg/loop-3.c: New.
12696 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
12698         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12699         explicitly private.
12700         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12701         explicitly shared.
12703 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
12705         * testsuite/libgomp.fortran/jacobi.f: New test.
12707 2005-10-19  Richard Henderson  <rth@redhat.com>
12709         * configure.tgt (i?86-linux): Default to with_arch instead of
12710         CFLAGS.  Add -mtune to match target_cpu.
12711         (x86_64-linux): Tune to i686.
12713         * fortran.c (omp_test_nest_lock_): Fix typo.
12715 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
12717         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12718         gomp_ordered_sync): Do nothing if team->nthreads == 1.
12719         * testsuite/libgomp.dg/ordered-3.c: New test.
12721         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12722         Remove volatile keyword.
12724         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12725         in COMMON block to avoid warnings on 64-bit targets.
12727 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
12729         * testsuite/libgomp.dg/shared-3.c: New test.
12731 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
12733         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12734         * testsuite/libgomp.fortran/reduction5.f90: New test.
12736 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
12738         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12739         dg-options.
12740         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
12741         flush loop now that __sync_synchronize has proper memory barrier.
12742         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12743         Add -ffixed-form to dg-options.
12745 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
12747         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12748         from subdirectories.
12749         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12750         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12751         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12752         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12753         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12754         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12755         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12756         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12757         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12758         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12759         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12760         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12761         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12762         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12763         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12764         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12765         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12766         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12767         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12768         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12769         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12770         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12771         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12772         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12773         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12775 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
12777         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12778         lang_library_path exists.  Use find instead of glob to gather tests.
12779         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12781 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
12783         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12784         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12785         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12786         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12787         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12788         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12789         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12790         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12791         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12792         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12793         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12794         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12795         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12797 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
12799         * testsuite/libgomp.dg/vla-1.c: New test.
12801         * testsuite/libgomp.fortran/reference2.f90: New test.
12803         * testsuite/libgomp.fortran/character2.f90: Remove explicit
12804         declaration of omp_get_thread_num.
12805         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
12806         use omp_lib.
12808         * testsuite/libgomp.fortran/reduction1.f90: New test.
12809         * testsuite/libgomp.fortran/reduction2.f90: New test.
12810         * testsuite/libgomp.fortran/reduction3.f90: New test.
12811         * testsuite/libgomp.fortran/reduction4.f90: New test.
12813 2005-10-13  Richard Henderson  <rth@redhat.com>
12815         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12816         * Makefile.in: Regenerate.
12817         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12818         * libgomp.h: Include bar.h.
12819         (struct gomp_barrier): Remove.
12820         (struct gomp_team): Add barrier.  Replace master_barrier with
12821         master_release.  Replace threads with ordered_release.
12822         (struct gomp_thread): Replace barrier with release.
12823         * ordered.c (gomp_ordered_first): Update for ordered_release change.
12824         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12825         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12826         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12827         (GOMP_single_copy_end): Likewise.
12828         * team.c (gomp_threads_dock): New.
12829         (gomp_barrier_init, gomp_barrier_destroy): Remove.
12830         (gomp_thread_start): Use gomp_barrier_wait.
12831         (new_team, free_team): Update for gomp_team changes.
12832         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12833         (gomp_team_end): Use gomp_barrier_wait.
12834         (initialize_team): Update for gomp_thread changes.
12835         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12836         (gomp_work_share_end_nowait): Use atomic ops when available.
12837         * config/linux/bar.c, config/linux/bar.h: New files.
12838         * config/posix/bar.c, config/posix/bar.h: New files.
12840 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
12842         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12843         * testsuite/libgomp.dg/single-2.c: New test.
12845         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12846         lang_link_flags): Unset, so that they aren't inherited from previously
12847         sourced *.exp.
12849         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12851 2005-10-12  Richard Henderson  <rth@redhat.com>
12853         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12854         (libgomp_init): Use lang_test_file, lang_library_path, and
12855         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
12857         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12858         (lang_test_file, lang_link_flags): New.
12859         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12861         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12862         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12863         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12864         testsuite/libgomp.c++/parallel-1.C,
12865         testsuite/libgomp.c++/reduction-1.C,
12866         testsuite/libgomp.c++/reduction-2.C,
12867         testsuite/libgomp.c++/reduction-3.C,
12868         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12869         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12870         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12871         New files, largely cribbed from the C testsuite.
12873 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
12875         * testsuite/libgomp.fortran/character1.f90: New test.
12876         * testsuite/libgomp.fortran/character2.f90: New test.
12878         * testsuite/libgomp.dg/nested-1.c: New test.
12879         * testsuite/libgomp.dg/nested-2.c: New test.
12880         * testsuite/libgomp.fortran/do1.f90: New test.
12881         * testsuite/libgomp.fortran/do2.f90: New test.
12883         * testsuite/libgomp.fortran/reference1.f90: New test.
12885 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
12887         * testsuite/libgomp.dg/reduction-1.c: New test.
12888         * testsuite/libgomp.dg/reduction-2.c: New test.
12889         * testsuite/libgomp.dg/reduction-3.c: New test.
12891 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
12893         * testsuite/libgomp.dg/atomic-1.c: New test.
12894         * testsuite/libgomp.dg/atomic-2.c: New test.
12896 2005-10-09  Richard Henderson  <rth@redhat.com>
12898         * critical.c (atomic_lock): New.
12899         (initialize_critical): Initialize it.
12900         (GOMP_atomic_start, GOMP_atomic_end): New.
12901         * libgomp.map: Export them.
12902         * libgomp_g.h: Declare them.
12904         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12906 2005-10-02  Richard Henderson  <rth@redhat.com>
12908         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
12909         to XCFLAGS instead of CFLAGS.
12911 2005-09-30  Richard Henderson  <rth@redhat.com>
12913         * configure.ac: Determine whether -pthread or -lpthread is needed.
12914         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12915         * Makefile.in, configure: Rebuild.
12917 2005-09-28  Richard Henderson  <rth@redhat.com>
12919         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12920         * testsuite/libgomp.dg/omp-single-3.c: New test.
12922 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
12924         * testsuite/libgomp.dg/omp-single-2.c: New test.
12925         * testsuite/libgomp.dg/shared-2.c: Fix return code.
12927 2005-09-27  Richard Henderson  <rth@redhat.com>
12929         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12930         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12932 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
12934         * testsuite/libgomp.dg/omp-loop03.c: New test.
12936 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
12938         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12940 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
12942         * testsuite/libgomp.dg/omp-single-1.c: New test.
12943         * testsuite/libgomp.dg/shared-1.c: Return 0.
12944         Add prototype for abort.
12945         * testsuite/libgomp.dg/shared-2.c: Likewise.
12947 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
12949         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12950         constructs.
12952 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
12954         * testsuite/libgomp.dg/shared-1.c: New test.
12955         * testsuite/libgomp.dg/shared-2.c: New test.
12957 2005-09-24  Richard Henderson  <rth@redhat.com>
12959         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12961 2005-09-24  Richard Henderson  <rth@redhat.com>
12963         * iter.c (gomp_iter_static_next): Round up when computing number
12964         of iterations.  Don't bother distributing a remainder equally.
12966         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12967         Don't call srand.  Zero b before testing.
12968         (main): New.
12970 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
12972         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12973         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12975 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
12977         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12978         without !$omp end do, followed immediately by subroutine end.
12980 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
12982         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12984 2005-09-22  Richard Henderson  <rth@redhat.com>
12986         * critical.c (GOMP_critical_name_start): Change argument to void**.
12987         Reuse the pointer space if the mutex fits.
12988         (GOMP_critical_name_end): Likewise.
12989         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12990         * libgomp_g.h (GOMP_critical_name_start): Update decl.
12991         (GOMP_critical_name_end): Likewise.
12992         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12993         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12995 2005-09-20  Richard Henderson  <rth@redhat.com>
12997         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12998         (create_lock_lock): New.
12999         (initialize_critical): Initialize it.
13000         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
13001         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
13003 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
13005         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
13007 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
13009         * testsuite/libgomp.dg/omp-loop01.c: New test.
13010         * testsuite/libgomp.dg/omp-loop02.c: New test.
13012 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
13014         * configure.ac (AC_PROG_FC): Add.
13015         (USE_FORTRAN): New automake conditional.
13016         * configure: Rebuilt.
13017         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
13018         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
13019         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
13020         Add rules to build them.
13021         * Makefile.in: Rebuilt.
13022         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
13023         OMP_NEST_LOCK_KIND.
13024         * libgomp.map: Add Fortran wrappers.
13025         * libgomp_f.h.in: New file.
13026         * omp_lib.h.in: New file.
13027         * omp_lib.f90.in: New file.
13028         * fortran.c: New file.
13029         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
13030         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
13031         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
13032         libgfortran has been built.
13033         * testsuite/libgomp.fortran/fortran.exp: New file.
13034         * testsuite/libgomp.fortran/omp_cond1.f: New test.
13035         * testsuite/libgomp.fortran/omp_cond2.f: New test.
13036         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
13037         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
13038         * testsuite/libgomp.fortran/omp_hello.f: New test.
13039         * testsuite/libgomp.fortran/omp_orphan.f: New test.
13040         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
13041         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
13042         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
13043         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
13044         * testsuite/libgomp.fortran/omp_reduction.f: New test.
13045         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
13046         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
13048 2005-08-30  Richard Henderson  <rth@redhat.com>
13050         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
13051         function for when aliases are not usable.
13052         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
13053         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13054         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
13055         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
13056         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
13057         GOMP_loop_ordered_guided_next): Likewise.
13058         * ordered.c (GOMP_ordered_start): Likewise.
13060 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
13062         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
13063         * testsuite/libgomp.dg/omp_hello.c: Fix return code
13064         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
13065         * testsuite/libgomp.dg/omp_orphan.c: Likewise
13066         * testsuite/libgomp.dg/omp_reduction.c: Likewise
13067         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
13068         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
13069         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
13070         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
13072 2005-07-07  Eric Christopher  <echristo@redhat.com>
13073             Diego Novillo  <dnovillo@redhat.com>
13075         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
13076         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
13077         up code.
13078         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
13079         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
13080         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
13081         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
13082         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
13083         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
13084         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
13086 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
13088         * TOPLEVEL.patch: Remove.
13090 2005-05-16  Richard Henderson  <rth@redhat.com>
13092         * configure.ac: Test for clock_gettime.
13093         * config.h.in, configure: Rebuild.
13094         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
13095         (omp_get_wtime): Use clock_gettime if available.
13096         (omp_get_wtick): Use clock_getres if available.
13098 2005-05-11  Richard Henderson  <rth@redhat.com>
13100         * config/linux/ia64/futex.h: New file.
13101         * configure.tgt: Use it.
13103         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
13105 2005-05-07  Richard Henderson  <rth@redhat.com>
13107         * config/linux/powerpc/futex.h: New file.
13108         * configure.tgt: Use it.
13110         * config/linux/i486/futex.h: Merge ...
13111         * config/linux/x86_64/futex.h: ... into ...
13112         * config/linux/x86/futex.h: ... here.
13113         * configure.tgt: Update to match.
13115 2005-05-06  Richard Henderson  <rth@redhat.com>
13117         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
13118         * config/linux/i486/futex.h: Likewise.
13119         * config/linux/x86_64/futex.h: Likewise.
13121         * config/linux/lock.c: New file.
13122         * config/linux/omp-lock.h: New file.
13124         * critical.c, env.h: Don't include omp.h
13125         * config/posix/lock.c: Include libgomp.h instead of omp.h.
13126         * config/posix/time.c: Likewise.
13127         * config/posix/omp-lock.h: New file.
13128         * libgomp.h: Include omp-lock.h and omp.h.
13129         * Makefile.am (nodist_include_HEADERS): New.
13130         (omp.h): New rule.
13131         * configure.ac (PERL): New.
13132         * mkomp_h.pl: New file.
13133         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
13134         with templates.
13135         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
13137         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
13138         build directory.  Re-add -march=i486 hack.
13140         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
13141         (libgomp_link_flags): Remove.
13142         (libgomp_initialized): Remove.
13143         (libgomp_init): Don't protect from reinitialization.  Copy code
13144         from libstdc++ for getting the multilib set correctly.
13146 2005-05-05  Richard Henderson  <rth@redhat.com>
13148         * config/linux/alpha/futex.h: New file.
13149         * configure.tgt (alpha*-*-linux*): Use it.
13151         * config/posix/mutex.c: New file.
13152         * config/posix/sem.c: Use libgomp.h.
13154         * configure.tgt (x86_64-linux): Also test CC for -m32.
13155         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
13157         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
13158         after $gccpath.
13160         * Makefile.am (SUBDIRS): New.
13161         (libgomp_la_LDFLAGS): Add -lpthread.
13162         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
13163         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
13165         * libgomp_g.h: New file.
13166         * libgomp.h: Split out all public declarations to libgomp_g.h.
13167         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
13168         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
13169         * config/linux/sem.h: Likewise.
13170         * config/posix/sem.h: Likewise.
13172         * Makefile.am (AM_LDFLAGS): New.
13173         (libgomp_version_script): Split out from ...
13174         (libgomp_la_LDFLAGS): ... here.
13175         (libgomp_version_info): New.
13176         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
13177         (LIBGOMP_ENABLE): New.
13178         (LIBGOMP_CHECK_LINKER_FEATURES): New.
13179         (LIBGOMP_ENABLE_SYMVERS): New.
13180         * configure.ac (AC_INIT): Version 1.0.
13181         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
13182         (enable-linux-futex): Likewise.  Rename from enable-futex.
13183         (libtool_VERSION): New.
13184         (LIBGOMP_ENABLE_SYMVERS): Use it.
13185         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
13186         * Makefile.in, aclocal.m4, configure: Rebuild.
13188         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13189         (gomp_mutex_unlock_slow): Fix typo.
13190         * config/linux/sem.c: Similarly.
13191         (gomp_sem_post_slow): Fix typo.
13192         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13193         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13194         [__PIC__] (sys_futex0): Don't use tmp output in asm.
13196         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13197         (libgomp_la_LDFLAGS): Add top_srcdir to path.
13198         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13199         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
13200         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13201         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13202         LDFLAGS.  Pull enable_futex check to top-level.
13203         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
13204         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13206         First attempt at real configury.
13207         * Makefile, config.h: Remove file.
13208         * Makefile.am, Makefile.in: New file.
13209         * acinclude.m4 aclocal.m4: New file.
13210         * configure.ac, configure.tgt, configure: New file.
13212         * config/posix/lock.c: Rename from sys-lock.c.
13213         * config/posix/mutex.h: Rename from sys-mutex.h.
13214         * config/posix/sem.c: Rename from sys-sem.c.
13215         * config/posix/sem.h: Rename from sys-sem.h.
13216         * config/posix/proc.c: Rename from sys-proc.c.
13217         * config/posix/time.c: Rename from sys-proc.c.
13219         * config/linux/mutex.c: New file.
13220         * config/linux/mutex.h: New file.
13221         * config/linux/sem.c: New file.
13222         * config/linux/sem.h: New file.
13223         * config/linux/i486/futex.h: New file.
13224         * config/linux/x86_64/futex.h: New file.
13226 2005-05-04  Richard Henderson  <rth@redhat.com>
13228         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13229         * libgomp.h: Declare them.
13230         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13231         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13233 2005-05-04  Richard Henderson  <rth@redhat.com>
13235         * libgomp-1 code drop
13237 2005-05-04  Richard Henderson  <rth@redhat.com>
13239         * iter.c (gomp_iter_static_next): Return tri-state on 0.
13240         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13241         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13242         (gomp_iter_static_next): Update.
13243         (gomp_ordered_static_next): Update.
13244         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13245         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
13246         totally empty range.
13247         (gomp_loop_ordered_static_next): Refine test for calling
13248         gomp_ordered_static_next.
13249         * testsuite/ordered-1.c: Add case for more threads than iterations.
13251         * iter.c (gomp_iter_runtime_next_locked): Remove.
13252         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13253         gomp_loop_guided_start, gomp_loop_ordered_static_start,
13254         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13255         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13256         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13257         gomp_loop_ordered_guided_next): Downcase name, make static, add
13258         an external alias with the old name.
13259         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13260         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13261         switch and call one of the above static functions.
13262         * libgomp.h: Update.
13264         * work.c (gomp_work_share_start): Lock the mutex for !first too.
13265         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13266         GOMP_loop_guided_start, GOMP_loop_runtime_start,
13267         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13268         GOMP_loop_ordered_guided_start): Update to match.
13269         * sections.c (GOMP_sections_start): Likewise.
13270         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13272         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13273         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13274         Use bounds check instead of modulus.
13275         (gomp_ordered_sync): Split out of GOMP_ordered_start.
13276         (gomp_ordered_last): Don't sync with ordered_owner here.
13277         (gomp_ordered_next): Likewise.
13278         (gomp_ordered_static_loop_next): Likewise.
13279         * loop.c, libgomp.h: Update to match.
13281         * libgomp.h (GOMP_barrier): Declare.
13283         * testsuite/barrier-1.c: New file.
13284         * testsuite/critical-1.c: New file.
13285         * testsuite/ordered-2.c: New file.
13286         * testsuite/ordered-1.c: New file.
13287         * testsuite/sections-1.c: New file.
13288         * testsuite/single-1.c: New file.
13289         * testsuite/Makefile (TESTS): Add them.
13291 2005-05-04  Richard Henderson  <rth@redhat.com>
13293         * libgomp.h (struct gomp_work_share): Add ordered_owner.
13294         * loop.c (GOMP_loop_static_start): If not the startup thread,
13295         acquire the mutex to wait for initialization complete.
13296         (GOMP_loop_ordered_static_start): Likewise.
13297         (GOMP_loop_ordered_runtime_start): Likewise.
13298         (GOMP_loop_ordered_static_first): Remove.
13299         (GOMP_loop_ordered_dynamic_first): Remove.
13300         (GOMP_loop_ordered_guided_first): Remove.
13301         (GOMP_loop_ordered_runtime_first): Remove.
13302         * ordered.c (gomp_ordered_loop_first): Post to own release when
13303         we're the first thread.
13304         (gomp_ordered_loop_last): Wait on release if not owner.
13305         (gomp_ordered_loop_next): Likewise.
13306         (gomp_ordered_static_loop_init): New.
13307         (gomp_ordered_static_loop_next): Use ordered_owner.
13308         (GOMP_ordered_start): Likewise.
13309         * work.c (gomp_new_work_share): Initialize ordered_owner.
13311 2005-05-03  Richard Henderson  <rth@redhat.com>
13313         * Makefile (OPT): New.
13314         (CFLAGS): Use it.
13316         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13317         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13318         * libgomp.h, libgomp.map, NOTES: Update to match.
13320         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13321         Add initialized and thr members.
13322         (gomp_thread_start): Pause when initially spawned to wait for
13323         the whole team to be created.
13324         (gomp_team_start): Release team members at the end.
13326         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
13327         (f_foo_1): Use GOMP_loop_end.
13328         (f_foo_2): Use GOMP_loop_end_nowait.
13330         * testsuite/loop-2.c: New file.
13331         * testsuite/Makefile (TESTS): Add it.
13333 2005-05-03  Richard Henderson  <rth@redhat.com>
13335         * iter.c (gomp_iter_static_next): Fix overflow check typo.
13336         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13337         * team.c (new_team): Initialize oldest_live_gen to 1 if no
13338         initial work_share.
13340         * testsuite/Makefile: New file.
13341         * testsuite/loop-1.c: New file.
13343 2005-05-03  Richard Henderson  <rth@redhat.com>
13345         Initial implementation and checkin.
13347 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13349 Copying and distribution of this file, with or without modification,
13350 are permitted in any medium without royalty provided the copyright
13351 notice and this notice are preserved.